@bgx4k3p/huly-mcp-server 2.2.4 → 2.2.5

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 (696) hide show
  1. package/README.md +186 -56
  2. package/node_modules/@hcengineering/account-client/lib/__tests__/utils.test.js +249 -0
  3. package/node_modules/@hcengineering/account-client/lib/__tests__/utils.test.js.map +7 -0
  4. package/node_modules/@hcengineering/account-client/lib/client.js +88 -3
  5. package/node_modules/@hcengineering/account-client/lib/client.js.map +2 -2
  6. package/node_modules/@hcengineering/account-client/lib/types.js.map +2 -2
  7. package/node_modules/@hcengineering/account-client/lib/utils.js +50 -0
  8. package/node_modules/@hcengineering/account-client/lib/utils.js.map +2 -2
  9. package/node_modules/@hcengineering/account-client/package.json +22 -19
  10. package/node_modules/@hcengineering/account-client/src/__tests__/utils.test.ts +304 -0
  11. package/node_modules/@hcengineering/account-client/src/client.ts +127 -6
  12. package/node_modules/@hcengineering/account-client/src/types.ts +7 -0
  13. package/node_modules/@hcengineering/account-client/src/utils.ts +65 -1
  14. package/node_modules/@hcengineering/analytics/lib/index.js +1 -1
  15. package/node_modules/@hcengineering/analytics/lib/index.js.map +2 -2
  16. package/node_modules/@hcengineering/analytics/package.json +19 -16
  17. package/node_modules/@hcengineering/analytics/src/index.ts +2 -1
  18. package/node_modules/@hcengineering/api-client/lib/client.js +9 -4
  19. package/node_modules/@hcengineering/api-client/lib/client.js.map +2 -2
  20. package/node_modules/@hcengineering/api-client/lib/rest/adapter.js +64 -0
  21. package/node_modules/@hcengineering/api-client/lib/rest/adapter.js.map +7 -0
  22. package/node_modules/@hcengineering/api-client/lib/rest/index.js +2 -0
  23. package/node_modules/@hcengineering/api-client/lib/rest/index.js.map +2 -2
  24. package/node_modules/@hcengineering/api-client/lib/socket/node.js +5 -1
  25. package/node_modules/@hcengineering/api-client/lib/socket/node.js.map +2 -2
  26. package/node_modules/@hcengineering/api-client/package.json +28 -25
  27. package/node_modules/@hcengineering/api-client/src/client.ts +10 -1
  28. package/node_modules/@hcengineering/api-client/src/rest/adapter.ts +96 -0
  29. package/node_modules/@hcengineering/api-client/src/rest/index.ts +1 -0
  30. package/node_modules/@hcengineering/api-client/src/socket/node.ts +6 -1
  31. package/node_modules/@hcengineering/chunter/lib/index.js.map +2 -2
  32. package/node_modules/@hcengineering/chunter/package.json +13 -10
  33. package/node_modules/@hcengineering/client/package.json +21 -18
  34. package/node_modules/@hcengineering/client-resources/package.json +24 -21
  35. package/node_modules/@hcengineering/collaborator-client/package.json +21 -18
  36. package/node_modules/@hcengineering/contact/lib/__tests__/workspaceMemberStatusUtils.test.js +38 -0
  37. package/node_modules/@hcengineering/contact/lib/__tests__/workspaceMemberStatusUtils.test.js.map +7 -0
  38. package/node_modules/@hcengineering/contact/lib/index.js +13 -4
  39. package/node_modules/@hcengineering/contact/lib/index.js.map +2 -2
  40. package/node_modules/@hcengineering/contact/lib/types.js.map +1 -1
  41. package/node_modules/@hcengineering/contact/lib/utils.js +132 -108
  42. package/node_modules/@hcengineering/contact/lib/utils.js.map +3 -3
  43. package/node_modules/@hcengineering/contact/lib/workspaceMemberStatusUtils.js +79 -0
  44. package/node_modules/@hcengineering/contact/lib/workspaceMemberStatusUtils.js.map +7 -0
  45. package/node_modules/@hcengineering/contact/package.json +12 -9
  46. package/node_modules/@hcengineering/core/CHANGELOG.md +9 -1
  47. package/node_modules/@hcengineering/core/lang/cs.json +6 -1
  48. package/node_modules/@hcengineering/core/lang/de.json +6 -1
  49. package/node_modules/@hcengineering/core/lang/en.json +6 -1
  50. package/node_modules/@hcengineering/core/lang/es.json +6 -1
  51. package/node_modules/@hcengineering/core/lang/fr.json +6 -1
  52. package/node_modules/@hcengineering/core/lang/it.json +6 -1
  53. package/node_modules/@hcengineering/core/lang/ja.json +6 -1
  54. package/node_modules/@hcengineering/core/lang/pt-br.json +70 -0
  55. package/node_modules/@hcengineering/core/lang/pt.json +6 -1
  56. package/node_modules/@hcengineering/core/lang/ru.json +6 -1
  57. package/node_modules/@hcengineering/core/lang/tr.json +6 -1
  58. package/node_modules/@hcengineering/core/lang/zh.json +6 -1
  59. package/node_modules/@hcengineering/core/lib/__tests__/autoJoinRoles.test.js +13 -0
  60. package/node_modules/@hcengineering/core/lib/__tests__/autoJoinRoles.test.js.map +7 -0
  61. package/node_modules/@hcengineering/core/lib/__tests__/memdb.test.js +133 -0
  62. package/node_modules/@hcengineering/core/lib/__tests__/memdb.test.js.map +2 -2
  63. package/node_modules/@hcengineering/core/lib/__tests__/minmodel.js +25 -0
  64. package/node_modules/@hcengineering/core/lib/__tests__/minmodel.js.map +2 -2
  65. package/node_modules/@hcengineering/core/lib/__tests__/query.test.js +43 -0
  66. package/node_modules/@hcengineering/core/lib/__tests__/query.test.js.map +7 -0
  67. package/node_modules/@hcengineering/core/lib/autoJoinRoles.js +36 -0
  68. package/node_modules/@hcengineering/core/lib/autoJoinRoles.js.map +7 -0
  69. package/node_modules/@hcengineering/core/lib/classes.js +5 -0
  70. package/node_modules/@hcengineering/core/lib/classes.js.map +3 -3
  71. package/node_modules/@hcengineering/core/lib/clone.js +13 -2
  72. package/node_modules/@hcengineering/core/lib/clone.js.map +2 -2
  73. package/node_modules/@hcengineering/core/lib/component.js +14 -3
  74. package/node_modules/@hcengineering/core/lib/component.js.map +2 -2
  75. package/node_modules/@hcengineering/core/lib/index.js +2 -0
  76. package/node_modules/@hcengineering/core/lib/index.js.map +2 -2
  77. package/node_modules/@hcengineering/core/lib/memdb.js +6 -2
  78. package/node_modules/@hcengineering/core/lib/memdb.js.map +2 -2
  79. package/node_modules/@hcengineering/core/lib/operations.js +11 -0
  80. package/node_modules/@hcengineering/core/lib/operations.js.map +2 -2
  81. package/node_modules/@hcengineering/core/lib/predicate.js +3 -0
  82. package/node_modules/@hcengineering/core/lib/predicate.js.map +2 -2
  83. package/node_modules/@hcengineering/core/lib/storage.js.map +2 -2
  84. package/node_modules/@hcengineering/core/lib/tx.js +3 -1
  85. package/node_modules/@hcengineering/core/lib/tx.js.map +2 -2
  86. package/node_modules/@hcengineering/core/lib/utils.js +1 -1
  87. package/node_modules/@hcengineering/core/lib/utils.js.map +2 -2
  88. package/node_modules/@hcengineering/core/lib/versioning.js +17 -0
  89. package/node_modules/@hcengineering/core/lib/versioning.js.map +7 -0
  90. package/node_modules/@hcengineering/core/package.json +22 -19
  91. package/node_modules/@hcengineering/core/src/__tests__/autoJoinRoles.test.ts +27 -0
  92. package/node_modules/@hcengineering/core/src/__tests__/memdb.test.ts +150 -1
  93. package/node_modules/@hcengineering/core/src/__tests__/minmodel.ts +29 -1
  94. package/node_modules/@hcengineering/core/src/__tests__/query.test.ts +66 -0
  95. package/node_modules/@hcengineering/core/src/autoJoinRoles.ts +33 -0
  96. package/node_modules/@hcengineering/core/src/classes.ts +61 -1
  97. package/node_modules/@hcengineering/core/src/clone.ts +13 -2
  98. package/node_modules/@hcengineering/core/src/component.ts +25 -9
  99. package/node_modules/@hcengineering/core/src/index.ts +2 -0
  100. package/node_modules/@hcengineering/core/src/memdb.ts +7 -3
  101. package/node_modules/@hcengineering/core/src/operations.ts +11 -0
  102. package/node_modules/@hcengineering/core/src/predicate.ts +3 -0
  103. package/node_modules/@hcengineering/core/src/storage.ts +6 -3
  104. package/node_modules/@hcengineering/core/src/tx.ts +4 -1
  105. package/node_modules/@hcengineering/core/src/utils.ts +1 -1
  106. package/node_modules/@hcengineering/core/src/versioning.ts +13 -0
  107. package/node_modules/@hcengineering/measurements/lib/__tests__/performance.test.js +3 -3
  108. package/node_modules/@hcengineering/measurements/lib/__tests__/performance.test.js.map +2 -2
  109. package/node_modules/@hcengineering/measurements/package.json +17 -14
  110. package/node_modules/@hcengineering/measurements/src/__tests__/performance.test.ts +3 -3
  111. package/node_modules/@hcengineering/platform/lang/pt-br.json +31 -0
  112. package/node_modules/@hcengineering/platform/lib/__tests__/i18n.test.js +100 -0
  113. package/node_modules/@hcengineering/platform/lib/__tests__/i18n.test.js.map +2 -2
  114. package/node_modules/@hcengineering/platform/lib/__tests__/status.test.js +78 -0
  115. package/node_modules/@hcengineering/platform/lib/__tests__/status.test.js.map +7 -0
  116. package/node_modules/@hcengineering/platform/lib/i18n.js +78 -69
  117. package/node_modules/@hcengineering/platform/lib/i18n.js.map +3 -3
  118. package/node_modules/@hcengineering/platform/lib/status.js +25 -0
  119. package/node_modules/@hcengineering/platform/lib/status.js.map +2 -2
  120. package/node_modules/@hcengineering/platform/package.json +18 -15
  121. package/node_modules/@hcengineering/platform/src/__tests__/i18n.test.ts +114 -2
  122. package/node_modules/@hcengineering/platform/src/__tests__/status.test.ts +77 -0
  123. package/node_modules/@hcengineering/platform/src/i18n.ts +99 -71
  124. package/node_modules/@hcengineering/platform/src/status.ts +30 -0
  125. package/node_modules/@hcengineering/rank/package.json +19 -16
  126. package/node_modules/@hcengineering/rpc/package.json +21 -18
  127. package/node_modules/@hcengineering/tags/package.json +12 -9
  128. package/node_modules/@hcengineering/task/package.json +14 -11
  129. package/node_modules/@hcengineering/text/lib/markup/__tests__/utils.test.js +25 -0
  130. package/node_modules/@hcengineering/text/lib/markup/__tests__/utils.test.js.map +2 -2
  131. package/node_modules/@hcengineering/text/lib/tiptapExtensions.js +6 -0
  132. package/node_modules/@hcengineering/text/lib/tiptapExtensions.js.map +2 -2
  133. package/node_modules/@hcengineering/text/package.json +23 -18
  134. package/node_modules/@hcengineering/text/src/markup/__tests__/utils.test.ts +27 -0
  135. package/node_modules/@hcengineering/text/src/tiptapExtensions.ts +3 -0
  136. package/node_modules/@hcengineering/text-core/lib/markup/model.js +1 -0
  137. package/node_modules/@hcengineering/text-core/lib/markup/model.js.map +2 -2
  138. package/node_modules/@hcengineering/text-core/package.json +20 -17
  139. package/node_modules/@hcengineering/text-core/src/markup/model.ts +2 -1
  140. package/node_modules/@hcengineering/text-html/package.json +19 -16
  141. package/node_modules/@hcengineering/text-markdown/lib/serializer.js +14 -0
  142. package/node_modules/@hcengineering/text-markdown/lib/serializer.js.map +2 -2
  143. package/node_modules/@hcengineering/text-markdown/package.json +20 -17
  144. package/node_modules/@hcengineering/text-markdown/src/serializer.ts +14 -0
  145. package/node_modules/@hcengineering/tracker/lib/index.js +1 -0
  146. package/node_modules/@hcengineering/tracker/lib/index.js.map +2 -2
  147. package/node_modules/@hcengineering/tracker/package.json +16 -13
  148. package/node_modules/@tiptap/core/dist/commands/focus.d.ts.map +1 -1
  149. package/node_modules/@tiptap/core/dist/index.cjs +19 -2
  150. package/node_modules/@tiptap/core/dist/index.cjs.map +1 -1
  151. package/node_modules/@tiptap/core/dist/index.js +19 -3
  152. package/node_modules/@tiptap/core/dist/index.js.map +1 -1
  153. package/node_modules/@tiptap/core/dist/index.umd.js +19 -2
  154. package/node_modules/@tiptap/core/dist/index.umd.js.map +1 -1
  155. package/node_modules/@tiptap/core/dist/utilities/index.d.ts +1 -0
  156. package/node_modules/@tiptap/core/dist/utilities/index.d.ts.map +1 -1
  157. package/node_modules/@tiptap/core/dist/utilities/isSafari.d.ts +10 -0
  158. package/node_modules/@tiptap/core/dist/utilities/isSafari.d.ts.map +1 -0
  159. package/node_modules/@tiptap/core/package.json +2 -2
  160. package/node_modules/@tiptap/core/src/commands/focus.ts +7 -2
  161. package/node_modules/@tiptap/core/src/utilities/index.ts +1 -0
  162. package/node_modules/@tiptap/core/src/utilities/isSafari.ts +11 -0
  163. package/node_modules/@tiptap/extension-blockquote/package.json +2 -2
  164. package/node_modules/@tiptap/extension-bold/package.json +2 -2
  165. package/node_modules/@tiptap/extension-bullet-list/package.json +2 -2
  166. package/node_modules/@tiptap/extension-code/package.json +2 -2
  167. package/node_modules/@tiptap/extension-code-block/package.json +3 -3
  168. package/node_modules/@tiptap/extension-document/package.json +2 -2
  169. package/node_modules/@tiptap/extension-dropcursor/package.json +3 -3
  170. package/node_modules/@tiptap/extension-gapcursor/package.json +3 -3
  171. package/node_modules/@tiptap/extension-hard-break/package.json +2 -2
  172. package/node_modules/@tiptap/extension-heading/package.json +2 -2
  173. package/node_modules/@tiptap/extension-highlight/package.json +2 -2
  174. package/node_modules/@tiptap/extension-history/package.json +3 -3
  175. package/node_modules/@tiptap/extension-horizontal-rule/package.json +3 -3
  176. package/node_modules/@tiptap/extension-italic/package.json +2 -2
  177. package/node_modules/@tiptap/extension-link/package.json +3 -3
  178. package/node_modules/@tiptap/extension-list-item/package.json +2 -2
  179. package/node_modules/@tiptap/extension-mention/package.json +4 -4
  180. package/node_modules/@tiptap/extension-ordered-list/package.json +2 -2
  181. package/node_modules/@tiptap/extension-paragraph/package.json +2 -2
  182. package/node_modules/@tiptap/extension-strike/package.json +2 -2
  183. package/node_modules/@tiptap/extension-subscript/README.md +14 -0
  184. package/node_modules/@tiptap/extension-subscript/dist/index.cjs +61 -0
  185. package/node_modules/@tiptap/extension-subscript/dist/index.cjs.map +1 -0
  186. package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +4 -0
  187. package/node_modules/@tiptap/extension-subscript/dist/index.d.ts.map +1 -0
  188. package/node_modules/@tiptap/extension-subscript/dist/index.js +56 -0
  189. package/node_modules/@tiptap/extension-subscript/dist/index.js.map +1 -0
  190. package/node_modules/@tiptap/extension-subscript/dist/index.umd.js +65 -0
  191. package/node_modules/@tiptap/extension-subscript/dist/index.umd.js.map +1 -0
  192. package/node_modules/@tiptap/extension-subscript/dist/subscript.d.ts +36 -0
  193. package/node_modules/@tiptap/extension-subscript/dist/subscript.d.ts.map +1 -0
  194. package/node_modules/@tiptap/extension-subscript/package.json +49 -0
  195. package/node_modules/@tiptap/extension-subscript/src/index.ts +5 -0
  196. package/node_modules/@tiptap/extension-subscript/src/subscript.ts +91 -0
  197. package/node_modules/@tiptap/extension-superscript/README.md +14 -0
  198. package/node_modules/@tiptap/extension-superscript/dist/index.cjs +61 -0
  199. package/node_modules/@tiptap/extension-superscript/dist/index.cjs.map +1 -0
  200. package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +4 -0
  201. package/node_modules/@tiptap/extension-superscript/dist/index.d.ts.map +1 -0
  202. package/node_modules/@tiptap/extension-superscript/dist/index.js +56 -0
  203. package/node_modules/@tiptap/extension-superscript/dist/index.js.map +1 -0
  204. package/node_modules/@tiptap/extension-superscript/dist/index.umd.js +65 -0
  205. package/node_modules/@tiptap/extension-superscript/dist/index.umd.js.map +1 -0
  206. package/node_modules/@tiptap/extension-superscript/dist/superscript.d.ts +36 -0
  207. package/node_modules/@tiptap/extension-superscript/dist/superscript.d.ts.map +1 -0
  208. package/node_modules/@tiptap/extension-superscript/package.json +49 -0
  209. package/node_modules/@tiptap/extension-superscript/src/index.ts +5 -0
  210. package/node_modules/@tiptap/extension-superscript/src/superscript.ts +91 -0
  211. package/node_modules/@tiptap/extension-table/package.json +3 -3
  212. package/node_modules/@tiptap/extension-table-cell/package.json +2 -2
  213. package/node_modules/@tiptap/extension-table-header/package.json +2 -2
  214. package/node_modules/@tiptap/extension-table-row/package.json +2 -2
  215. package/node_modules/@tiptap/extension-task-item/package.json +3 -3
  216. package/node_modules/@tiptap/extension-task-list/package.json +2 -2
  217. package/node_modules/@tiptap/extension-text/package.json +2 -2
  218. package/node_modules/@tiptap/extension-typography/package.json +2 -2
  219. package/node_modules/@tiptap/extension-underline/package.json +2 -2
  220. package/node_modules/@tiptap/html/package.json +3 -3
  221. package/node_modules/@tiptap/pm/package.json +1 -1
  222. package/node_modules/@tiptap/starter-kit/node_modules/@tiptap/extension-text-style/package.json +2 -2
  223. package/node_modules/@tiptap/starter-kit/package.json +22 -22
  224. package/node_modules/@tiptap/suggestion/package.json +3 -3
  225. package/node_modules/linkify-it/build/index.cjs.js +99 -94
  226. package/node_modules/linkify-it/index.mjs +99 -94
  227. package/node_modules/linkify-it/package.json +11 -1
  228. package/node_modules/linkifyjs/README.md +4 -2
  229. package/node_modules/linkifyjs/dist/linkify.cjs +8 -11
  230. package/node_modules/linkifyjs/dist/linkify.d.cts +14 -14
  231. package/node_modules/linkifyjs/dist/linkify.d.mts +14 -14
  232. package/node_modules/linkifyjs/dist/linkify.js +8 -11
  233. package/node_modules/linkifyjs/dist/linkify.min.js +1 -1
  234. package/node_modules/linkifyjs/dist/linkify.mjs +8 -11
  235. package/node_modules/linkifyjs/package.json +1 -1
  236. package/node_modules/markdown-it/README.md +13 -17
  237. package/node_modules/markdown-it/dist/index.cjs.js +111 -31
  238. package/node_modules/markdown-it/dist/markdown-it.js +117 -31
  239. package/node_modules/markdown-it/dist/markdown-it.min.js +2 -2
  240. package/node_modules/markdown-it/lib/common/utils.mjs +30 -1
  241. package/node_modules/markdown-it/lib/index.mjs +1 -1
  242. package/node_modules/markdown-it/lib/rules_block/heading.mjs +2 -2
  243. package/node_modules/markdown-it/lib/rules_block/html_block.mjs +12 -1
  244. package/node_modules/markdown-it/lib/rules_block/lheading.mjs +4 -1
  245. package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +3 -1
  246. package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +37 -21
  247. package/node_modules/markdown-it/lib/rules_inline/entity.mjs +2 -2
  248. package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +37 -6
  249. package/node_modules/markdown-it/package.json +14 -3
  250. package/node_modules/msgpackr/README.md +1 -3
  251. package/node_modules/msgpackr/benchmark.md +26 -16
  252. package/node_modules/msgpackr/dist/index-no-eval.cjs +35 -16
  253. package/node_modules/msgpackr/dist/index-no-eval.cjs.map +1 -1
  254. package/node_modules/msgpackr/dist/index-no-eval.min.js +1 -1
  255. package/node_modules/msgpackr/dist/index-no-eval.min.js.map +1 -1
  256. package/node_modules/msgpackr/dist/index.js +35 -16
  257. package/node_modules/msgpackr/dist/index.js.map +1 -1
  258. package/node_modules/msgpackr/dist/index.min.js +1 -1
  259. package/node_modules/msgpackr/dist/index.min.js.map +1 -1
  260. package/node_modules/msgpackr/dist/node.cjs +50 -26
  261. package/node_modules/msgpackr/dist/node.cjs.map +1 -1
  262. package/node_modules/msgpackr/dist/test.js +44 -16
  263. package/node_modules/msgpackr/dist/test.js.map +1 -1
  264. package/node_modules/msgpackr/dist/unpack-no-eval.cjs +35 -16
  265. package/node_modules/msgpackr/dist/unpack-no-eval.cjs.map +1 -1
  266. package/node_modules/msgpackr/index.d.cts +2 -0
  267. package/node_modules/msgpackr/index.d.ts +2 -0
  268. package/node_modules/msgpackr/package.json +1 -1
  269. package/node_modules/msgpackr/stream.js +15 -10
  270. package/node_modules/msgpackr/unpack.js +35 -16
  271. package/node_modules/prosemirror-changeset/CHANGELOG.md +12 -0
  272. package/node_modules/prosemirror-changeset/README.md +31 -2
  273. package/node_modules/prosemirror-changeset/dist/index.cjs +17 -2
  274. package/node_modules/prosemirror-changeset/dist/index.d.cts +32 -2
  275. package/node_modules/prosemirror-changeset/dist/index.d.ts +32 -2
  276. package/node_modules/prosemirror-changeset/dist/index.js +18 -3
  277. package/node_modules/prosemirror-changeset/package.json +2 -2
  278. package/node_modules/prosemirror-changeset/src/README.md +4 -2
  279. package/node_modules/prosemirror-changeset/src/change.ts +18 -0
  280. package/node_modules/prosemirror-changeset/src/changeset.ts +10 -4
  281. package/node_modules/prosemirror-changeset/src/simplify.ts +1 -1
  282. package/node_modules/prosemirror-changeset/test/test-simplify.ts +3 -0
  283. package/node_modules/prosemirror-gapcursor/CHANGELOG.md +6 -0
  284. package/node_modules/prosemirror-gapcursor/dist/index.cjs +1 -1
  285. package/node_modules/prosemirror-gapcursor/dist/index.js +1 -1
  286. package/node_modules/prosemirror-gapcursor/package.json +3 -2
  287. package/node_modules/prosemirror-gapcursor/src/gapcursor.ts +1 -1
  288. package/node_modules/prosemirror-markdown/CHANGELOG.md +12 -0
  289. package/node_modules/prosemirror-markdown/dist/index.cjs +11 -1
  290. package/node_modules/prosemirror-markdown/dist/index.js +14 -2
  291. package/node_modules/prosemirror-markdown/package.json +1 -1
  292. package/node_modules/prosemirror-markdown/src/to_markdown.ts +12 -3
  293. package/node_modules/prosemirror-menu/CHANGELOG.md +18 -0
  294. package/node_modules/prosemirror-menu/CONTRIBUTING.md +22 -18
  295. package/node_modules/prosemirror-menu/README.md +69 -29
  296. package/node_modules/prosemirror-menu/dist/index.cjs +232 -48
  297. package/node_modules/prosemirror-menu/dist/index.d.cts +29 -14
  298. package/node_modules/prosemirror-menu/dist/index.d.ts +29 -14
  299. package/node_modules/prosemirror-menu/dist/index.js +229 -36
  300. package/node_modules/prosemirror-menu/package.json +2 -2
  301. package/node_modules/prosemirror-menu/src/README.md +30 -1
  302. package/node_modules/prosemirror-menu/src/icons.ts +3 -2
  303. package/node_modules/prosemirror-menu/src/menu.ts +193 -40
  304. package/node_modules/prosemirror-menu/src/menubar.ts +50 -5
  305. package/node_modules/prosemirror-menu/style/menu.css +28 -7
  306. package/node_modules/prosemirror-model/CHANGELOG.md +20 -0
  307. package/node_modules/prosemirror-model/CONTRIBUTING.md +19 -19
  308. package/node_modules/prosemirror-model/README.md +3 -3
  309. package/node_modules/prosemirror-model/dist/index.cjs +13 -10
  310. package/node_modules/prosemirror-model/dist/index.d.cts +25 -21
  311. package/node_modules/prosemirror-model/dist/index.d.ts +25 -21
  312. package/node_modules/prosemirror-model/dist/index.js +19 -23
  313. package/node_modules/prosemirror-model/package.json +2 -2
  314. package/node_modules/prosemirror-model/src/fragment.ts +1 -1
  315. package/node_modules/prosemirror-model/src/from_dom.ts +4 -1
  316. package/node_modules/prosemirror-model/src/node.ts +5 -4
  317. package/node_modules/prosemirror-model/src/replace.ts +6 -15
  318. package/node_modules/prosemirror-model/src/schema.ts +1 -1
  319. package/node_modules/prosemirror-model/src/to_dom.ts +24 -20
  320. package/node_modules/prosemirror-transform/CHANGELOG.md +16 -0
  321. package/node_modules/prosemirror-transform/dist/index.cjs +38 -4
  322. package/node_modules/prosemirror-transform/dist/index.d.cts +19 -0
  323. package/node_modules/prosemirror-transform/dist/index.d.ts +19 -0
  324. package/node_modules/prosemirror-transform/dist/index.js +52 -1
  325. package/node_modules/prosemirror-transform/package.json +1 -1
  326. package/node_modules/prosemirror-transform/src/replace.ts +16 -0
  327. package/node_modules/prosemirror-transform/src/replace_step.ts +10 -1
  328. package/node_modules/prosemirror-transform/src/transform.ts +21 -2
  329. package/node_modules/prosemirror-view/CHANGELOG.md +34 -2
  330. package/node_modules/prosemirror-view/CONTRIBUTING.md +19 -19
  331. package/node_modules/prosemirror-view/README.md +3 -3
  332. package/node_modules/prosemirror-view/dist/index.cjs +96 -40
  333. package/node_modules/prosemirror-view/dist/index.d.cts +2 -2
  334. package/node_modules/prosemirror-view/dist/index.d.ts +2 -2
  335. package/node_modules/prosemirror-view/dist/index.js +90 -39
  336. package/node_modules/prosemirror-view/package.json +2 -2
  337. package/node_modules/prosemirror-view/src/domchange.ts +1 -1
  338. package/node_modules/prosemirror-view/src/domobserver.ts +59 -16
  339. package/node_modules/prosemirror-view/src/index.ts +4 -4
  340. package/node_modules/prosemirror-view/src/input.ts +9 -6
  341. package/node_modules/prosemirror-view/src/viewdesc.ts +26 -22
  342. package/node_modules/prosemirror-view/style/prosemirror.css +1 -1
  343. package/package.json +5 -4
  344. package/src/client.mjs +2 -2
  345. package/src/config.mjs +1 -0
  346. package/src/helpers.mjs +2 -2
  347. package/src/index.mjs +31 -1
  348. package/src/initCodex.mjs +281 -0
  349. package/src/mcp.mjs +1 -1
  350. package/src/mcpShared.mjs +95 -5
  351. package/node_modules/@hcengineering/account-client/types/client.d.ts +0 -140
  352. package/node_modules/@hcengineering/account-client/types/client.d.ts.map +0 -1
  353. package/node_modules/@hcengineering/account-client/types/index.d.ts +0 -4
  354. package/node_modules/@hcengineering/account-client/types/index.d.ts.map +0 -1
  355. package/node_modules/@hcengineering/account-client/types/types.d.ts +0 -177
  356. package/node_modules/@hcengineering/account-client/types/types.d.ts.map +0 -1
  357. package/node_modules/@hcengineering/account-client/types/utils.d.ts +0 -5
  358. package/node_modules/@hcengineering/account-client/types/utils.d.ts.map +0 -1
  359. package/node_modules/@hcengineering/analytics/types/index.d.ts +0 -25
  360. package/node_modules/@hcengineering/analytics/types/index.d.ts.map +0 -1
  361. package/node_modules/@hcengineering/api-client/types/__tests__/config.test.d.ts +0 -2
  362. package/node_modules/@hcengineering/api-client/types/__tests__/config.test.d.ts.map +0 -1
  363. package/node_modules/@hcengineering/api-client/types/__tests__/markup-client.test.d.ts +0 -2
  364. package/node_modules/@hcengineering/api-client/types/__tests__/markup-client.test.d.ts.map +0 -1
  365. package/node_modules/@hcengineering/api-client/types/__tests__/markup-types.test.d.ts +0 -2
  366. package/node_modules/@hcengineering/api-client/types/__tests__/markup-types.test.d.ts.map +0 -1
  367. package/node_modules/@hcengineering/api-client/types/__tests__/rest-utils.test.d.ts +0 -2
  368. package/node_modules/@hcengineering/api-client/types/__tests__/rest-utils.test.d.ts.map +0 -1
  369. package/node_modules/@hcengineering/api-client/types/__tests__/utils.test.d.ts +0 -2
  370. package/node_modules/@hcengineering/api-client/types/__tests__/utils.test.d.ts.map +0 -1
  371. package/node_modules/@hcengineering/api-client/types/client.d.ts +0 -6
  372. package/node_modules/@hcengineering/api-client/types/client.d.ts.map +0 -1
  373. package/node_modules/@hcengineering/api-client/types/config.d.ts +0 -8
  374. package/node_modules/@hcengineering/api-client/types/config.d.ts.map +0 -1
  375. package/node_modules/@hcengineering/api-client/types/index.d.ts +0 -9
  376. package/node_modules/@hcengineering/api-client/types/index.d.ts.map +0 -1
  377. package/node_modules/@hcengineering/api-client/types/markup/client.d.ts +0 -5
  378. package/node_modules/@hcengineering/api-client/types/markup/client.d.ts.map +0 -1
  379. package/node_modules/@hcengineering/api-client/types/markup/index.d.ts +0 -3
  380. package/node_modules/@hcengineering/api-client/types/markup/index.d.ts.map +0 -1
  381. package/node_modules/@hcengineering/api-client/types/markup/types.d.ts +0 -41
  382. package/node_modules/@hcengineering/api-client/types/markup/types.d.ts.map +0 -1
  383. package/node_modules/@hcengineering/api-client/types/rest/index.d.ts +0 -4
  384. package/node_modules/@hcengineering/api-client/types/rest/index.d.ts.map +0 -1
  385. package/node_modules/@hcengineering/api-client/types/rest/rest.d.ts +0 -39
  386. package/node_modules/@hcengineering/api-client/types/rest/rest.d.ts.map +0 -1
  387. package/node_modules/@hcengineering/api-client/types/rest/tx.d.ts +0 -3
  388. package/node_modules/@hcengineering/api-client/types/rest/tx.d.ts.map +0 -1
  389. package/node_modules/@hcengineering/api-client/types/rest/types.d.ts +0 -16
  390. package/node_modules/@hcengineering/api-client/types/rest/types.d.ts.map +0 -1
  391. package/node_modules/@hcengineering/api-client/types/rest/utils.d.ts +0 -3
  392. package/node_modules/@hcengineering/api-client/types/rest/utils.d.ts.map +0 -1
  393. package/node_modules/@hcengineering/api-client/types/socket/browser.d.ts +0 -4
  394. package/node_modules/@hcengineering/api-client/types/socket/browser.d.ts.map +0 -1
  395. package/node_modules/@hcengineering/api-client/types/socket/index.d.ts +0 -3
  396. package/node_modules/@hcengineering/api-client/types/socket/index.d.ts.map +0 -1
  397. package/node_modules/@hcengineering/api-client/types/socket/node.d.ts +0 -4
  398. package/node_modules/@hcengineering/api-client/types/socket/node.d.ts.map +0 -1
  399. package/node_modules/@hcengineering/api-client/types/storage/client.d.ts +0 -21
  400. package/node_modules/@hcengineering/api-client/types/storage/client.d.ts.map +0 -1
  401. package/node_modules/@hcengineering/api-client/types/storage/error.d.ts +0 -10
  402. package/node_modules/@hcengineering/api-client/types/storage/error.d.ts.map +0 -1
  403. package/node_modules/@hcengineering/api-client/types/storage/index.d.ts +0 -4
  404. package/node_modules/@hcengineering/api-client/types/storage/index.d.ts.map +0 -1
  405. package/node_modules/@hcengineering/api-client/types/storage/types.d.ts +0 -10
  406. package/node_modules/@hcengineering/api-client/types/storage/types.d.ts.map +0 -1
  407. package/node_modules/@hcengineering/api-client/types/types.d.ts +0 -101
  408. package/node_modules/@hcengineering/api-client/types/types.d.ts.map +0 -1
  409. package/node_modules/@hcengineering/api-client/types/utils.d.ts +0 -12
  410. package/node_modules/@hcengineering/api-client/types/utils.d.ts.map +0 -1
  411. package/node_modules/@hcengineering/chunter/types/analytics.d.ts +0 -5
  412. package/node_modules/@hcengineering/chunter/types/analytics.d.ts.map +0 -1
  413. package/node_modules/@hcengineering/chunter/types/index.d.ts +0 -211
  414. package/node_modules/@hcengineering/chunter/types/index.d.ts.map +0 -1
  415. package/node_modules/@hcengineering/chunter/types/utils.d.ts +0 -7
  416. package/node_modules/@hcengineering/chunter/types/utils.d.ts.map +0 -1
  417. package/node_modules/@hcengineering/client/types/__tests__/client.test.d.ts +0 -2
  418. package/node_modules/@hcengineering/client/types/__tests__/client.test.d.ts.map +0 -1
  419. package/node_modules/@hcengineering/client/types/index.d.ts +0 -69
  420. package/node_modules/@hcengineering/client/types/index.d.ts.map +0 -1
  421. package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts +0 -2
  422. package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts.map +0 -1
  423. package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts +0 -45
  424. package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts.map +0 -1
  425. package/node_modules/@hcengineering/client-resources/types/connection.d.ts +0 -7
  426. package/node_modules/@hcengineering/client-resources/types/connection.d.ts.map +0 -1
  427. package/node_modules/@hcengineering/client-resources/types/index.d.ts +0 -11
  428. package/node_modules/@hcengineering/client-resources/types/index.d.ts.map +0 -1
  429. package/node_modules/@hcengineering/collaborator-client/types/__tests__/utils.test.d.ts +0 -2
  430. package/node_modules/@hcengineering/collaborator-client/types/__tests__/utils.test.d.ts.map +0 -1
  431. package/node_modules/@hcengineering/collaborator-client/types/client.d.ts +0 -34
  432. package/node_modules/@hcengineering/collaborator-client/types/client.d.ts.map +0 -1
  433. package/node_modules/@hcengineering/collaborator-client/types/index.d.ts +0 -3
  434. package/node_modules/@hcengineering/collaborator-client/types/index.d.ts.map +0 -1
  435. package/node_modules/@hcengineering/collaborator-client/types/utils.d.ts +0 -9
  436. package/node_modules/@hcengineering/collaborator-client/types/utils.d.ts.map +0 -1
  437. package/node_modules/@hcengineering/contact/types/__tests__/cache.test.d.ts +0 -2
  438. package/node_modules/@hcengineering/contact/types/__tests__/cache.test.d.ts.map +0 -1
  439. package/node_modules/@hcengineering/contact/types/analytics.d.ts +0 -6
  440. package/node_modules/@hcengineering/contact/types/analytics.d.ts.map +0 -1
  441. package/node_modules/@hcengineering/contact/types/avatar.d.ts +0 -12
  442. package/node_modules/@hcengineering/contact/types/avatar.d.ts.map +0 -1
  443. package/node_modules/@hcengineering/contact/types/cache.d.ts +0 -49
  444. package/node_modules/@hcengineering/contact/types/cache.d.ts.map +0 -1
  445. package/node_modules/@hcengineering/contact/types/index.d.ts +0 -367
  446. package/node_modules/@hcengineering/contact/types/index.d.ts.map +0 -1
  447. package/node_modules/@hcengineering/contact/types/types.d.ts +0 -25
  448. package/node_modules/@hcengineering/contact/types/types.d.ts.map +0 -1
  449. package/node_modules/@hcengineering/contact/types/utils.d.ts +0 -110
  450. package/node_modules/@hcengineering/contact/types/utils.d.ts.map +0 -1
  451. package/node_modules/@hcengineering/core/types/__tests__/client.test.d.ts +0 -2
  452. package/node_modules/@hcengineering/core/types/__tests__/client.test.d.ts.map +0 -1
  453. package/node_modules/@hcengineering/core/types/__tests__/clone.test.d.ts +0 -2
  454. package/node_modules/@hcengineering/core/types/__tests__/clone.test.d.ts.map +0 -1
  455. package/node_modules/@hcengineering/core/types/__tests__/collaboration.test.d.ts +0 -2
  456. package/node_modules/@hcengineering/core/types/__tests__/collaboration.test.d.ts.map +0 -1
  457. package/node_modules/@hcengineering/core/types/__tests__/collaborators.test.d.ts +0 -2
  458. package/node_modules/@hcengineering/core/types/__tests__/collaborators.test.d.ts.map +0 -1
  459. package/node_modules/@hcengineering/core/types/__tests__/common.test.d.ts +0 -2
  460. package/node_modules/@hcengineering/core/types/__tests__/common.test.d.ts.map +0 -1
  461. package/node_modules/@hcengineering/core/types/__tests__/connection.d.ts +0 -4
  462. package/node_modules/@hcengineering/core/types/__tests__/connection.d.ts.map +0 -1
  463. package/node_modules/@hcengineering/core/types/__tests__/contexts.test.d.ts +0 -2
  464. package/node_modules/@hcengineering/core/types/__tests__/contexts.test.d.ts.map +0 -1
  465. package/node_modules/@hcengineering/core/types/__tests__/hierarchy.test.d.ts +0 -2
  466. package/node_modules/@hcengineering/core/types/__tests__/hierarchy.test.d.ts.map +0 -1
  467. package/node_modules/@hcengineering/core/types/__tests__/lang.test.d.ts +0 -2
  468. package/node_modules/@hcengineering/core/types/__tests__/lang.test.d.ts.map +0 -1
  469. package/node_modules/@hcengineering/core/types/__tests__/limiter-edge-cases.test.d.ts +0 -2
  470. package/node_modules/@hcengineering/core/types/__tests__/limiter-edge-cases.test.d.ts.map +0 -1
  471. package/node_modules/@hcengineering/core/types/__tests__/limits.test.d.ts +0 -2
  472. package/node_modules/@hcengineering/core/types/__tests__/limits.test.d.ts.map +0 -1
  473. package/node_modules/@hcengineering/core/types/__tests__/memdb.test.d.ts +0 -2
  474. package/node_modules/@hcengineering/core/types/__tests__/memdb.test.d.ts.map +0 -1
  475. package/node_modules/@hcengineering/core/types/__tests__/minmodel.d.ts +0 -50
  476. package/node_modules/@hcengineering/core/types/__tests__/minmodel.d.ts.map +0 -1
  477. package/node_modules/@hcengineering/core/types/__tests__/objvalue.test.d.ts +0 -2
  478. package/node_modules/@hcengineering/core/types/__tests__/objvalue.test.d.ts.map +0 -1
  479. package/node_modules/@hcengineering/core/types/__tests__/operator-bugs.test.d.ts +0 -2
  480. package/node_modules/@hcengineering/core/types/__tests__/operator-bugs.test.d.ts.map +0 -1
  481. package/node_modules/@hcengineering/core/types/__tests__/operator.test.d.ts +0 -2
  482. package/node_modules/@hcengineering/core/types/__tests__/operator.test.d.ts.map +0 -1
  483. package/node_modules/@hcengineering/core/types/__tests__/rate-limiter.test.d.ts +0 -2
  484. package/node_modules/@hcengineering/core/types/__tests__/rate-limiter.test.d.ts.map +0 -1
  485. package/node_modules/@hcengineering/core/types/__tests__/time.test.d.ts +0 -2
  486. package/node_modules/@hcengineering/core/types/__tests__/time.test.d.ts.map +0 -1
  487. package/node_modules/@hcengineering/core/types/__tests__/utils.test.d.ts +0 -2
  488. package/node_modules/@hcengineering/core/types/__tests__/utils.test.d.ts.map +0 -1
  489. package/node_modules/@hcengineering/core/types/backup.d.ts +0 -26
  490. package/node_modules/@hcengineering/core/types/backup.d.ts.map +0 -1
  491. package/node_modules/@hcengineering/core/types/benchmark.d.ts +0 -19
  492. package/node_modules/@hcengineering/core/types/benchmark.d.ts.map +0 -1
  493. package/node_modules/@hcengineering/core/types/classes.d.ts +0 -716
  494. package/node_modules/@hcengineering/core/types/classes.d.ts.map +0 -1
  495. package/node_modules/@hcengineering/core/types/client.d.ts +0 -69
  496. package/node_modules/@hcengineering/core/types/client.d.ts.map +0 -1
  497. package/node_modules/@hcengineering/core/types/clone.d.ts +0 -3
  498. package/node_modules/@hcengineering/core/types/clone.d.ts.map +0 -1
  499. package/node_modules/@hcengineering/core/types/collaboration.d.ts +0 -16
  500. package/node_modules/@hcengineering/core/types/collaboration.d.ts.map +0 -1
  501. package/node_modules/@hcengineering/core/types/collaborators.d.ts +0 -3
  502. package/node_modules/@hcengineering/core/types/collaborators.d.ts.map +0 -1
  503. package/node_modules/@hcengineering/core/types/common.d.ts +0 -4
  504. package/node_modules/@hcengineering/core/types/common.d.ts.map +0 -1
  505. package/node_modules/@hcengineering/core/types/component.d.ts +0 -229
  506. package/node_modules/@hcengineering/core/types/component.d.ts.map +0 -1
  507. package/node_modules/@hcengineering/core/types/hierarchy.d.ts +0 -84
  508. package/node_modules/@hcengineering/core/types/hierarchy.d.ts.map +0 -1
  509. package/node_modules/@hcengineering/core/types/index.d.ts +0 -25
  510. package/node_modules/@hcengineering/core/types/index.d.ts.map +0 -1
  511. package/node_modules/@hcengineering/core/types/memdb.d.ts +0 -60
  512. package/node_modules/@hcengineering/core/types/memdb.d.ts.map +0 -1
  513. package/node_modules/@hcengineering/core/types/objvalue.d.ts +0 -10
  514. package/node_modules/@hcengineering/core/types/objvalue.d.ts.map +0 -1
  515. package/node_modules/@hcengineering/core/types/operations.d.ts +0 -87
  516. package/node_modules/@hcengineering/core/types/operations.d.ts.map +0 -1
  517. package/node_modules/@hcengineering/core/types/operator.d.ts +0 -16
  518. package/node_modules/@hcengineering/core/types/operator.d.ts.map +0 -1
  519. package/node_modules/@hcengineering/core/types/predicate.d.ts +0 -6
  520. package/node_modules/@hcengineering/core/types/predicate.d.ts.map +0 -1
  521. package/node_modules/@hcengineering/core/types/proxy.d.ts +0 -21
  522. package/node_modules/@hcengineering/core/types/proxy.d.ts.map +0 -1
  523. package/node_modules/@hcengineering/core/types/query.d.ts +0 -21
  524. package/node_modules/@hcengineering/core/types/query.d.ts.map +0 -1
  525. package/node_modules/@hcengineering/core/types/server.d.ts +0 -82
  526. package/node_modules/@hcengineering/core/types/server.d.ts.map +0 -1
  527. package/node_modules/@hcengineering/core/types/status.d.ts +0 -30
  528. package/node_modules/@hcengineering/core/types/status.d.ts.map +0 -1
  529. package/node_modules/@hcengineering/core/types/storage.d.ts +0 -233
  530. package/node_modules/@hcengineering/core/types/storage.d.ts.map +0 -1
  531. package/node_modules/@hcengineering/core/types/time.d.ts +0 -8
  532. package/node_modules/@hcengineering/core/types/time.d.ts.map +0 -1
  533. package/node_modules/@hcengineering/core/types/tx.d.ts +0 -261
  534. package/node_modules/@hcengineering/core/types/tx.d.ts.map +0 -1
  535. package/node_modules/@hcengineering/core/types/utils.d.ts +0 -207
  536. package/node_modules/@hcengineering/core/types/utils.d.ts.map +0 -1
  537. package/node_modules/@hcengineering/measurements/types/__tests__/context.test.d.ts +0 -2
  538. package/node_modules/@hcengineering/measurements/types/__tests__/context.test.d.ts.map +0 -1
  539. package/node_modules/@hcengineering/measurements/types/__tests__/index.test.d.ts +0 -2
  540. package/node_modules/@hcengineering/measurements/types/__tests__/index.test.d.ts.map +0 -1
  541. package/node_modules/@hcengineering/measurements/types/__tests__/metrics.test.d.ts +0 -2
  542. package/node_modules/@hcengineering/measurements/types/__tests__/metrics.test.d.ts.map +0 -1
  543. package/node_modules/@hcengineering/measurements/types/__tests__/performance.test.d.ts +0 -2
  544. package/node_modules/@hcengineering/measurements/types/__tests__/performance.test.d.ts.map +0 -1
  545. package/node_modules/@hcengineering/measurements/types/context.d.ts +0 -64
  546. package/node_modules/@hcengineering/measurements/types/context.d.ts.map +0 -1
  547. package/node_modules/@hcengineering/measurements/types/index.d.ts +0 -12
  548. package/node_modules/@hcengineering/measurements/types/index.d.ts.map +0 -1
  549. package/node_modules/@hcengineering/measurements/types/metrics.d.ts +0 -34
  550. package/node_modules/@hcengineering/measurements/types/metrics.d.ts.map +0 -1
  551. package/node_modules/@hcengineering/measurements/types/types.d.ts +0 -88
  552. package/node_modules/@hcengineering/measurements/types/types.d.ts.map +0 -1
  553. package/node_modules/@hcengineering/platform/types/__tests__/i18n.test.d.ts +0 -2
  554. package/node_modules/@hcengineering/platform/types/__tests__/i18n.test.d.ts.map +0 -1
  555. package/node_modules/@hcengineering/platform/types/__tests__/ident.test.d.ts +0 -2
  556. package/node_modules/@hcengineering/platform/types/__tests__/ident.test.d.ts.map +0 -1
  557. package/node_modules/@hcengineering/platform/types/__tests__/plugin.d.ts +0 -7
  558. package/node_modules/@hcengineering/platform/types/__tests__/plugin.d.ts.map +0 -1
  559. package/node_modules/@hcengineering/platform/types/__tests__/resource.test.d.ts +0 -2
  560. package/node_modules/@hcengineering/platform/types/__tests__/resource.test.d.ts.map +0 -1
  561. package/node_modules/@hcengineering/platform/types/event.d.ts +0 -39
  562. package/node_modules/@hcengineering/platform/types/event.d.ts.map +0 -1
  563. package/node_modules/@hcengineering/platform/types/i18n.d.ts +0 -28
  564. package/node_modules/@hcengineering/platform/types/i18n.d.ts.map +0 -1
  565. package/node_modules/@hcengineering/platform/types/ident.d.ts +0 -14
  566. package/node_modules/@hcengineering/platform/types/ident.d.ts.map +0 -1
  567. package/node_modules/@hcengineering/platform/types/index.d.ts +0 -19
  568. package/node_modules/@hcengineering/platform/types/index.d.ts.map +0 -1
  569. package/node_modules/@hcengineering/platform/types/metadata.d.ts +0 -38
  570. package/node_modules/@hcengineering/platform/types/metadata.d.ts.map +0 -1
  571. package/node_modules/@hcengineering/platform/types/platform.d.ts +0 -218
  572. package/node_modules/@hcengineering/platform/types/platform.d.ts.map +0 -1
  573. package/node_modules/@hcengineering/platform/types/resource.d.ts +0 -49
  574. package/node_modules/@hcengineering/platform/types/resource.d.ts.map +0 -1
  575. package/node_modules/@hcengineering/platform/types/status.d.ts +0 -60
  576. package/node_modules/@hcengineering/platform/types/status.d.ts.map +0 -1
  577. package/node_modules/@hcengineering/platform/types/testUtils.d.ts +0 -8
  578. package/node_modules/@hcengineering/platform/types/testUtils.d.ts.map +0 -1
  579. package/node_modules/@hcengineering/rank/types/__tests__/utils.test.d.ts +0 -2
  580. package/node_modules/@hcengineering/rank/types/__tests__/utils.test.d.ts.map +0 -1
  581. package/node_modules/@hcengineering/rank/types/index.d.ts +0 -3
  582. package/node_modules/@hcengineering/rank/types/index.d.ts.map +0 -1
  583. package/node_modules/@hcengineering/rank/types/types.d.ts +0 -2
  584. package/node_modules/@hcengineering/rank/types/types.d.ts.map +0 -1
  585. package/node_modules/@hcengineering/rank/types/utils.d.ts +0 -6
  586. package/node_modules/@hcengineering/rank/types/utils.d.ts.map +0 -1
  587. package/node_modules/@hcengineering/rpc/types/index.d.ts +0 -3
  588. package/node_modules/@hcengineering/rpc/types/index.d.ts.map +0 -1
  589. package/node_modules/@hcengineering/rpc/types/rpc.d.ts +0 -96
  590. package/node_modules/@hcengineering/rpc/types/rpc.d.ts.map +0 -1
  591. package/node_modules/@hcengineering/rpc/types/sliding.d.ts +0 -11
  592. package/node_modules/@hcengineering/rpc/types/sliding.d.ts.map +0 -1
  593. package/node_modules/@hcengineering/rpc/types/test/rateLimit.spec.d.ts +0 -2
  594. package/node_modules/@hcengineering/rpc/types/test/rateLimit.spec.d.ts.map +0 -1
  595. package/node_modules/@hcengineering/tags/types/analytics.d.ts +0 -5
  596. package/node_modules/@hcengineering/tags/types/analytics.d.ts.map +0 -1
  597. package/node_modules/@hcengineering/tags/types/index.d.ts +0 -105
  598. package/node_modules/@hcengineering/tags/types/index.d.ts.map +0 -1
  599. package/node_modules/@hcengineering/task/types/index.d.ts +0 -227
  600. package/node_modules/@hcengineering/task/types/index.d.ts.map +0 -1
  601. package/node_modules/@hcengineering/task/types/utils.d.ts +0 -61
  602. package/node_modules/@hcengineering/task/types/utils.d.ts.map +0 -1
  603. package/node_modules/@hcengineering/text/types/extensions.d.ts +0 -53
  604. package/node_modules/@hcengineering/text/types/extensions.d.ts.map +0 -1
  605. package/node_modules/@hcengineering/text/types/index.d.ts +0 -13
  606. package/node_modules/@hcengineering/text/types/index.d.ts.map +0 -1
  607. package/node_modules/@hcengineering/text/types/kit.d.ts +0 -12
  608. package/node_modules/@hcengineering/text/types/kit.d.ts.map +0 -1
  609. package/node_modules/@hcengineering/text/types/kits/common-kit.d.ts +0 -72
  610. package/node_modules/@hcengineering/text/types/kits/common-kit.d.ts.map +0 -1
  611. package/node_modules/@hcengineering/text/types/kits/server-kit.d.ts +0 -106
  612. package/node_modules/@hcengineering/text/types/kits/server-kit.d.ts.map +0 -1
  613. package/node_modules/@hcengineering/text/types/marks/code.d.ts +0 -8
  614. package/node_modules/@hcengineering/text/types/marks/code.d.ts.map +0 -1
  615. package/node_modules/@hcengineering/text/types/marks/colors.d.ts +0 -21
  616. package/node_modules/@hcengineering/text/types/marks/colors.d.ts.map +0 -1
  617. package/node_modules/@hcengineering/text/types/marks/inlineComment.d.ts +0 -5
  618. package/node_modules/@hcengineering/text/types/marks/inlineComment.d.ts.map +0 -1
  619. package/node_modules/@hcengineering/text/types/marks/noteBase.d.ts +0 -23
  620. package/node_modules/@hcengineering/text/types/marks/noteBase.d.ts.map +0 -1
  621. package/node_modules/@hcengineering/text/types/marks/qmsInlineCommentMark.d.ts +0 -6
  622. package/node_modules/@hcengineering/text/types/marks/qmsInlineCommentMark.d.ts.map +0 -1
  623. package/node_modules/@hcengineering/text/types/markup/__tests__/dsl.test.d.ts +0 -2
  624. package/node_modules/@hcengineering/text/types/markup/__tests__/dsl.test.d.ts.map +0 -1
  625. package/node_modules/@hcengineering/text/types/markup/__tests__/utils.test.d.ts +0 -5
  626. package/node_modules/@hcengineering/text/types/markup/__tests__/utils.test.d.ts.map +0 -1
  627. package/node_modules/@hcengineering/text/types/markup/utils.d.ts +0 -19
  628. package/node_modules/@hcengineering/text/types/markup/utils.d.ts.map +0 -1
  629. package/node_modules/@hcengineering/text/types/nodes/codeblock.d.ts +0 -12
  630. package/node_modules/@hcengineering/text/types/nodes/codeblock.d.ts.map +0 -1
  631. package/node_modules/@hcengineering/text/types/nodes/comment.d.ts +0 -6
  632. package/node_modules/@hcengineering/text/types/nodes/comment.d.ts.map +0 -1
  633. package/node_modules/@hcengineering/text/types/nodes/embed.d.ts +0 -3
  634. package/node_modules/@hcengineering/text/types/nodes/embed.d.ts.map +0 -1
  635. package/node_modules/@hcengineering/text/types/nodes/emoji.d.ts +0 -17
  636. package/node_modules/@hcengineering/text/types/nodes/emoji.d.ts.map +0 -1
  637. package/node_modules/@hcengineering/text/types/nodes/file.d.ts +0 -13
  638. package/node_modules/@hcengineering/text/types/nodes/file.d.ts.map +0 -1
  639. package/node_modules/@hcengineering/text/types/nodes/image.d.ts +0 -52
  640. package/node_modules/@hcengineering/text/types/nodes/image.d.ts.map +0 -1
  641. package/node_modules/@hcengineering/text/types/nodes/index.d.ts +0 -11
  642. package/node_modules/@hcengineering/text/types/nodes/index.d.ts.map +0 -1
  643. package/node_modules/@hcengineering/text/types/nodes/markdown.d.ts +0 -3
  644. package/node_modules/@hcengineering/text/types/nodes/markdown.d.ts.map +0 -1
  645. package/node_modules/@hcengineering/text/types/nodes/mermaid.d.ts +0 -4
  646. package/node_modules/@hcengineering/text/types/nodes/mermaid.d.ts.map +0 -1
  647. package/node_modules/@hcengineering/text/types/nodes/reference.d.ts +0 -18
  648. package/node_modules/@hcengineering/text/types/nodes/reference.d.ts.map +0 -1
  649. package/node_modules/@hcengineering/text/types/nodes/todo.d.ts +0 -3
  650. package/node_modules/@hcengineering/text/types/nodes/todo.d.ts.map +0 -1
  651. package/node_modules/@hcengineering/text/types/nodes/utils.d.ts +0 -6
  652. package/node_modules/@hcengineering/text/types/nodes/utils.d.ts.map +0 -1
  653. package/node_modules/@hcengineering/text/types/tiptapExtensions.d.ts +0 -28
  654. package/node_modules/@hcengineering/text/types/tiptapExtensions.d.ts.map +0 -1
  655. package/node_modules/@hcengineering/text-core/types/index.d.ts +0 -6
  656. package/node_modules/@hcengineering/text-core/types/index.d.ts.map +0 -1
  657. package/node_modules/@hcengineering/text-core/types/markup/__tests__/traverse.test.d.ts +0 -2
  658. package/node_modules/@hcengineering/text-core/types/markup/__tests__/traverse.test.d.ts.map +0 -1
  659. package/node_modules/@hcengineering/text-core/types/markup/__tests__/utils.test.d.ts +0 -2
  660. package/node_modules/@hcengineering/text-core/types/markup/__tests__/utils.test.d.ts.map +0 -1
  661. package/node_modules/@hcengineering/text-core/types/markup/dsl.d.ts +0 -25
  662. package/node_modules/@hcengineering/text-core/types/markup/dsl.d.ts.map +0 -1
  663. package/node_modules/@hcengineering/text-core/types/markup/model.d.ts +0 -74
  664. package/node_modules/@hcengineering/text-core/types/markup/model.d.ts.map +0 -1
  665. package/node_modules/@hcengineering/text-core/types/markup/reference.d.ts +0 -15
  666. package/node_modules/@hcengineering/text-core/types/markup/reference.d.ts.map +0 -1
  667. package/node_modules/@hcengineering/text-core/types/markup/traverse.d.ts +0 -6
  668. package/node_modules/@hcengineering/text-core/types/markup/traverse.d.ts.map +0 -1
  669. package/node_modules/@hcengineering/text-core/types/markup/utils.d.ts +0 -25
  670. package/node_modules/@hcengineering/text-core/types/markup/utils.d.ts.map +0 -1
  671. package/node_modules/@hcengineering/text-html/types/__tests__/html.test.d.ts +0 -2
  672. package/node_modules/@hcengineering/text-html/types/__tests__/html.test.d.ts.map +0 -1
  673. package/node_modules/@hcengineering/text-html/types/index.d.ts +0 -6
  674. package/node_modules/@hcengineering/text-html/types/index.d.ts.map +0 -1
  675. package/node_modules/@hcengineering/text-html/types/parser.d.ts +0 -10
  676. package/node_modules/@hcengineering/text-html/types/parser.d.ts.map +0 -1
  677. package/node_modules/@hcengineering/text-html/types/serializer.d.ts +0 -9
  678. package/node_modules/@hcengineering/text-html/types/serializer.d.ts.map +0 -1
  679. package/node_modules/@hcengineering/text-markdown/types/__tests__/markdown.test.d.ts +0 -9
  680. package/node_modules/@hcengineering/text-markdown/types/__tests__/markdown.test.d.ts.map +0 -1
  681. package/node_modules/@hcengineering/text-markdown/types/compare.d.ts +0 -10
  682. package/node_modules/@hcengineering/text-markdown/types/compare.d.ts.map +0 -1
  683. package/node_modules/@hcengineering/text-markdown/types/index.d.ts +0 -14
  684. package/node_modules/@hcengineering/text-markdown/types/index.d.ts.map +0 -1
  685. package/node_modules/@hcengineering/text-markdown/types/marks.d.ts +0 -8
  686. package/node_modules/@hcengineering/text-markdown/types/marks.d.ts.map +0 -1
  687. package/node_modules/@hcengineering/text-markdown/types/node.d.ts +0 -4
  688. package/node_modules/@hcengineering/text-markdown/types/node.d.ts.map +0 -1
  689. package/node_modules/@hcengineering/text-markdown/types/parser.d.ts +0 -50
  690. package/node_modules/@hcengineering/text-markdown/types/parser.d.ts.map +0 -1
  691. package/node_modules/@hcengineering/text-markdown/types/serializer.d.ts +0 -102
  692. package/node_modules/@hcengineering/text-markdown/types/serializer.d.ts.map +0 -1
  693. package/node_modules/@hcengineering/tracker/types/analytics.d.ts +0 -24
  694. package/node_modules/@hcengineering/tracker/types/analytics.d.ts.map +0 -1
  695. package/node_modules/@hcengineering/tracker/types/index.d.ts +0 -431
  696. package/node_modules/@hcengineering/tracker/types/index.d.ts.map +0 -1
@@ -1,261 +0,0 @@
1
- import type { Arr, AttachedDoc, Class, Data, Doc, Domain, Mixin, OperationDomain, PersonId, PropertyType, Ref, Space, Timestamp } from './classes';
2
- import type { DocumentQuery, TxResult } from './storage';
3
- import { type KeysByType } from './utils';
4
- /**
5
- * @public
6
- */
7
- export interface Tx extends Doc {
8
- objectSpace: Ref<Space>;
9
- meta?: Record<string, string | number | boolean>;
10
- }
11
- /**
12
- * @public
13
- */
14
- export declare enum WorkspaceEvent {
15
- UpgradeScheduled = 0,
16
- IndexingUpdate = 1,
17
- SecurityChange = 2,
18
- MaintenanceNotification = 3,
19
- BulkUpdate = 4,
20
- LastTx = 5
21
- }
22
- /**
23
- * Event to be send by server during model upgrade procedure.
24
- * @public
25
- */
26
- export interface TxWorkspaceEvent<T = any> extends Tx {
27
- event: WorkspaceEvent;
28
- params: T;
29
- }
30
- export interface TxDomainEvent<T = any> extends Tx {
31
- domain: OperationDomain;
32
- event: T;
33
- }
34
- /**
35
- * @public
36
- */
37
- export interface IndexingUpdateEvent {
38
- _class: Ref<Class<Doc>>[];
39
- }
40
- /**
41
- * @public
42
- */
43
- export interface BulkUpdateEvent {
44
- _class: Ref<Class<Doc>>[];
45
- }
46
- /**
47
- * @public
48
- */
49
- export interface TxModelUpgrade extends Tx {
50
- }
51
- /**
52
- * @public
53
- */
54
- export interface TxCUD<T extends Doc> extends Tx {
55
- objectId: Ref<T>;
56
- objectClass: Ref<Class<T>>;
57
- attachedTo?: Ref<Doc>;
58
- attachedToClass?: Ref<Class<Doc>>;
59
- collection?: string;
60
- }
61
- /**
62
- * @public
63
- */
64
- export interface TxCreateDoc<T extends Doc> extends TxCUD<T> {
65
- attributes: Data<T>;
66
- }
67
- /**
68
- * @public
69
- */
70
- export interface DocumentClassQuery<T extends Doc> {
71
- _class: Ref<Class<T>>;
72
- query: DocumentQuery<T>;
73
- }
74
- /**
75
- * @public
76
- * Apply set of transactions in sequential manner with verification of set of queries.
77
- */
78
- export interface TxApplyIf extends Tx {
79
- scope?: string;
80
- match?: DocumentClassQuery<Doc>[];
81
- notMatch?: DocumentClassQuery<Doc>[];
82
- txes: TxCUD<Doc>[];
83
- notify?: boolean;
84
- extraNotify?: Ref<Class<Doc>>[];
85
- measureName?: string;
86
- }
87
- export interface TxApplyResult {
88
- success: boolean;
89
- serverTime: number;
90
- }
91
- /**
92
- * @public
93
- */
94
- export type MixinData<D extends Doc, M extends D> = Omit<M, keyof D> & PushOptions<Omit<M, keyof D>> & IncOptions<Omit<M, keyof D>>;
95
- /**
96
- * @public
97
- */
98
- export type MixinUpdate<D extends Doc, M extends D> = Partial<Omit<M, keyof D>> & PushOptions<Omit<M, keyof D>> & IncOptions<Omit<M, keyof D>>;
99
- /**
100
- * Define Create/Update for mixin attributes.
101
- * @public
102
- */
103
- export interface TxMixin<D extends Doc, M extends D> extends TxCUD<D> {
104
- mixin: Ref<Mixin<M>>;
105
- attributes: MixinUpdate<D, M>;
106
- }
107
- /**
108
- * @public
109
- */
110
- export type ArrayAsElement<T> = {
111
- [P in keyof T]: T[P] extends Arr<infer X> ? Partial<X> | PullArray<X> | X : never;
112
- };
113
- /**
114
- * @public
115
- */
116
- export interface Position<X extends PropertyType> {
117
- $each: X[];
118
- $position: number;
119
- }
120
- /**
121
- * @public
122
- */
123
- export interface QueryUpdate<X extends PropertyType> {
124
- $query: Partial<X>;
125
- $update: Partial<X>;
126
- }
127
- /**
128
- * @public
129
- */
130
- export interface PullArray<X extends PropertyType> {
131
- $in: X[];
132
- }
133
- /**
134
- * @public
135
- */
136
- export interface MoveDescriptor<X extends PropertyType> {
137
- $value: X;
138
- $position: number;
139
- }
140
- /**
141
- * @public
142
- */
143
- export type ArrayAsElementPosition<T extends object> = {
144
- [P in keyof T]-?: T[P] extends Arr<infer X> ? X | Position<X> : never;
145
- };
146
- /**
147
- * @public
148
- */
149
- export type ArrayAsElementUpdate<T extends object> = {
150
- [P in keyof T]-?: T[P] extends Arr<infer X> ? X | QueryUpdate<X> : never;
151
- };
152
- /**
153
- * @public
154
- */
155
- export type ArrayMoveDescriptor<T extends object> = {
156
- [P in keyof T]: T[P] extends Arr<infer X> ? MoveDescriptor<X> : never;
157
- };
158
- /**
159
- * @public
160
- */
161
- export type NumberProperties<T extends object> = {
162
- [P in keyof T]: T[P] extends number | undefined | null ? T[P] : never;
163
- };
164
- /**
165
- * @public
166
- */
167
- export type OmitNever<T extends object> = Omit<T, KeysByType<T, never>>;
168
- /**
169
- * @public
170
- */
171
- export interface PushOptions<T extends object> {
172
- $push?: Partial<OmitNever<ArrayAsElementPosition<Required<T>>>>;
173
- $pull?: Partial<OmitNever<ArrayAsElement<Required<T>>>>;
174
- }
175
- /**
176
- * @public
177
- */
178
- export type UnsetProperties = Record<string, any>;
179
- /**
180
- * @public
181
- */
182
- export interface UnsetOptions {
183
- $unset?: UnsetProperties;
184
- }
185
- /**
186
- * @public
187
- */
188
- export interface SetEmbeddedOptions<T extends object> {
189
- $update?: Partial<OmitNever<ArrayAsElementUpdate<Required<T>>>>;
190
- }
191
- /**
192
- * @public
193
- */
194
- export interface IncOptions<T extends object> {
195
- $inc?: Partial<OmitNever<NumberProperties<T>>>;
196
- }
197
- /**
198
- * @public
199
- */
200
- export interface SpaceUpdate {
201
- space?: Ref<Space>;
202
- }
203
- /**
204
- * @public
205
- */
206
- export type DocumentUpdate<T extends Doc> = Partial<Data<T>> & PushOptions<T> & SetEmbeddedOptions<T> & IncOptions<T> & UnsetOptions & SpaceUpdate;
207
- /**
208
- * @public
209
- */
210
- export interface TxUpdateDoc<T extends Doc> extends TxCUD<T> {
211
- operations: DocumentUpdate<T>;
212
- retrieve?: boolean;
213
- }
214
- /**
215
- * @public
216
- */
217
- export interface TxRemoveDoc<T extends Doc> extends TxCUD<T> {
218
- }
219
- /**
220
- * @public
221
- */
222
- export declare const DOMAIN_TX: Domain;
223
- /**
224
- * @public
225
- */
226
- export interface WithTx {
227
- tx: (...txs: Tx[]) => Promise<TxResult[]>;
228
- }
229
- /**
230
- * @public
231
- */
232
- export declare abstract class TxProcessor implements WithTx {
233
- tx(...txes: Tx[]): Promise<TxResult[]>;
234
- static createDoc2Doc<T extends Doc>(tx: TxCreateDoc<T>, doClone?: boolean): T;
235
- static updateDoc2Doc<T extends Doc>(rawDoc: T, tx: TxUpdateDoc<T>): T;
236
- static applyUpdate<T extends Doc>(doc: T, ops: any): void;
237
- static updateMixin4Doc<D extends Doc, M extends D>(rawDoc: D, tx: TxMixin<D, M>): D;
238
- static buildDoc2Doc<D extends Doc>(txes: Tx[]): D | undefined | null;
239
- static isExtendsCUD(_class: Ref<Class<Doc>>): boolean;
240
- static txHasUpdate<T extends Doc>(tx: TxUpdateDoc<T>, attribute: string): boolean;
241
- protected abstract txCreateDoc(tx: TxCreateDoc<Doc>): Promise<TxResult>;
242
- protected abstract txUpdateDoc(tx: TxUpdateDoc<Doc>): Promise<TxResult>;
243
- protected abstract txRemoveDoc(tx: TxRemoveDoc<Doc>): Promise<TxResult>;
244
- protected abstract txMixin(tx: TxMixin<Doc, Doc>): Promise<TxResult>;
245
- }
246
- /**
247
- * @public
248
- */
249
- export declare class TxFactory {
250
- readonly account: PersonId;
251
- readonly isDerived: boolean;
252
- private readonly txSpace;
253
- constructor(account: PersonId, isDerived?: boolean);
254
- createTxCreateDoc<T extends Doc>(_class: Ref<Class<T>>, space: Ref<Space>, attributes: Data<T>, objectId?: Ref<T>, modifiedOn?: Timestamp, modifiedBy?: PersonId): TxCreateDoc<T>;
255
- createTxCollectionCUD<T extends Doc, P extends AttachedDoc>(_class: Ref<Class<T>>, objectId: Ref<T>, space: Ref<Space>, collection: string, tx: TxCUD<P>, modifiedOn?: Timestamp, modifiedBy?: PersonId): TxCUD<P>;
256
- createTxUpdateDoc<T extends Doc>(_class: Ref<Class<T>>, space: Ref<Space>, objectId: Ref<T>, operations: DocumentUpdate<T>, retrieve?: boolean, modifiedOn?: Timestamp, modifiedBy?: PersonId): TxUpdateDoc<T>;
257
- createTxRemoveDoc<T extends Doc>(_class: Ref<Class<T>>, space: Ref<Space>, objectId: Ref<T>, modifiedOn?: Timestamp, modifiedBy?: PersonId): TxRemoveDoc<T>;
258
- createTxMixin<D extends Doc, M extends D>(objectId: Ref<D>, objectClass: Ref<Class<D>>, objectSpace: Ref<Space>, mixin: Ref<Mixin<M>>, attributes: MixinUpdate<D, M>, modifiedOn?: Timestamp, modifiedBy?: PersonId): TxMixin<D, M>;
259
- createTxApplyIf(space: Ref<Space>, scope: string | undefined, match: DocumentClassQuery<Doc>[], notMatch: DocumentClassQuery<Doc>[], txes: TxCUD<Doc>[], measureName: string | undefined, notify?: boolean, extraNotify?: Ref<Class<Doc>>[], modifiedOn?: Timestamp, modifiedBy?: PersonId): TxApplyIf;
260
- }
261
- //# sourceMappingURL=tx.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tx.d.ts","sourceRoot":"","sources":["../src/tx.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,GAAG,EACH,WAAW,EACX,KAAK,EACL,IAAI,EACJ,GAAG,EACH,MAAM,EACN,KAAK,EACL,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,GAAG,EACH,KAAK,EACL,SAAS,EACV,MAAM,WAAW,CAAA;AAMlB,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACxD,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,EAAG,SAAQ,GAAG;IAC7B,WAAW,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAA;CACjD;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,gBAAgB,IAAA;IAChB,cAAc,IAAA;IACd,cAAc,IAAA;IACd,uBAAuB,IAAA;IACvB,UAAU,IAAA;IACV,MAAM,IAAA;CACP;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,EAAE;IACnD,KAAK,EAAE,cAAc,CAAA;IACrB,MAAM,EAAE,CAAC,CAAA;CACV;AACD,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,EAAE;IAChD,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,CAAC,CAAA;CACT;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC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AAC,EAAE,SAAS,EACtB,UAAU,CAAC,EAAE,QAAQ,GACpB,WAAW,CAAC,CAAC,CAAC;IAajB,aAAa,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC,EACtC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAChB,WAAW,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1B,WAAW,EAAE,GAAG,CAAC,KAAK,CAAC,EACvB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpB,UAAU,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC7B,UAAU,CAAC,EAAE,SAAS,EACtB,UAAU,CAAC,EAAE,QAAQ,GACpB,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAehB,eAAe,CACb,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,EACjB,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,KAAK,EAAE,kBAAkB,CAAC,GAAG,CAAC,EAAE,EAChC,QAAQ,EAAE,kBAAkB,CAAC,GAAG,CAAC,EAAE,EACnC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,EAClB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,MAAM,GAAE,OAAc,EACtB,WAAW,GAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAO,EACnC,UAAU,CAAC,EAAE,SAAS,EACtB,UAAU,CAAC,EAAE,QAAQ,GACpB,SAAS;CAiBb"}
@@ -1,207 +0,0 @@
1
- import { type IntlString } from '@hcengineering/platform';
2
- import { type Account, AccountRole, type AccountUuid, type AnyAttribute, type Class, type Doc, type DocData, type FullTextSearchContext, type Obj, type Permission, type PluginConfiguration, type Rank, type Ref, type SocialId, SocialIdType, type SocialKey, type Space, type TypedSpace, type WorkspaceMode } from './classes';
3
- import { type Hierarchy } from './hierarchy';
4
- import { type TxOperations } from './operations';
5
- import { type Branding, type BrandingMap } from './server';
6
- import { type DocumentQuery, type FindResult } from './storage';
7
- import { type Tx } from './tx';
8
- /**
9
- * @public
10
- * @returns
11
- */
12
- export declare function generateId<T extends Doc>(join?: string): Ref<T>;
13
- export declare function generateUuid(): string;
14
- /** @public */
15
- export declare function isId(value: any): value is Ref<any>;
16
- /**
17
- * @public
18
- * @returns
19
- */
20
- export declare function getCurrentAccount(): Account;
21
- /**
22
- * @public
23
- * @param account -
24
- */
25
- export declare function setCurrentAccount(account: Account): void;
26
- /**
27
- * @public
28
- */
29
- export declare function escapeLikeForRegexp(value: string): string;
30
- /**
31
- * @public
32
- */
33
- export declare function toFindResult<T extends Doc>(docs: T[], total?: number, lookupMap?: Record<string, Doc>): FindResult<T>;
34
- export type WorkspaceUuid = string & {
35
- __workspaceUuid: true;
36
- };
37
- export type WorkspaceDataId = string & {
38
- __workspaceDataId: true;
39
- };
40
- export interface WorkspaceIds {
41
- uuid: WorkspaceUuid;
42
- url: string;
43
- dataId?: WorkspaceDataId;
44
- }
45
- /**
46
- * @public
47
- */
48
- export declare function isWorkspaceCreating(mode?: WorkspaceMode): boolean;
49
- /**
50
- * @public
51
- */
52
- export declare function docKey(name: string, _class?: Ref<Class<Doc>>): string;
53
- /**
54
- * @public
55
- */
56
- export declare function isFullTextAttribute(attr: AnyAttribute): boolean;
57
- /**
58
- * @public
59
- */
60
- export declare function isIndexedAttribute(attr: AnyAttribute): boolean;
61
- /**
62
- * @public
63
- */
64
- export interface IdMap<T extends Doc> extends Map<Ref<T>, T> {
65
- }
66
- /**
67
- * @public
68
- */
69
- export declare function toIdMap<T extends Doc>(arr: T[]): IdMap<T>;
70
- /**
71
- * @public
72
- */
73
- export declare function concatLink(host: string, path: string): string;
74
- /**
75
- * @public
76
- */
77
- export declare function fillDefaults<T extends Doc>(hierarchy: Hierarchy, object: DocData<T> | T, _class: Ref<Class<T>>): DocData<T> | T;
78
- /**
79
- * @public
80
- */
81
- export declare class AggregateValueData {
82
- readonly name: string;
83
- readonly _id: Ref<Doc>;
84
- readonly space: Ref<Space>;
85
- readonly rank?: string | undefined;
86
- readonly category?: Ref<Doc> | undefined;
87
- constructor(name: string, _id: Ref<Doc>, space: Ref<Space>, rank?: string | undefined, category?: Ref<Doc> | undefined);
88
- getRank(): string;
89
- }
90
- /**
91
- * @public
92
- */
93
- export declare class AggregateValue {
94
- readonly name: string | undefined;
95
- readonly values: AggregateValueData[];
96
- constructor(name: string | undefined, values: AggregateValueData[]);
97
- }
98
- /**
99
- * @public
100
- */
101
- export type CategoryType = number | string | undefined | Ref<Doc> | AggregateValue;
102
- export interface IDocManager<T extends Doc> {
103
- get: (ref: Ref<T>) => T | undefined;
104
- getDocs: () => T[];
105
- getIdMap: () => IdMap<T>;
106
- filter: (predicate: (value: T) => boolean) => T[];
107
- }
108
- /**
109
- * @public
110
- */
111
- export declare class DocManager<T extends Doc> implements IDocManager<T> {
112
- protected readonly docs: T[];
113
- protected readonly byId: IdMap<T>;
114
- constructor(docs: T[]);
115
- get(ref: Ref<T>): T | undefined;
116
- getDocs(): T[];
117
- getIdMap(): IdMap<T>;
118
- filter(predicate: (value: T) => boolean): T[];
119
- }
120
- /**
121
- * @public
122
- */
123
- export declare class RateLimiter {
124
- idCounter: number;
125
- processingQueue: Map<number, Promise<void>>;
126
- last: number;
127
- rate: number;
128
- queue: (() => Promise<void>)[];
129
- constructor(rate: number);
130
- notify: (() => void)[];
131
- exec<T, B extends Record<string, any> = any>(op: (args?: B) => Promise<T>, args?: B): Promise<T>;
132
- add<T, B extends Record<string, any> = any>(op: (args?: B) => Promise<T>, args?: B, errHandler?: (err: any) => void): Promise<void>;
133
- waitProcessing(): Promise<void>;
134
- }
135
- export declare function mergeQueries<T extends Doc>(query1: DocumentQuery<T>, query2: DocumentQuery<T>): DocumentQuery<T>;
136
- export declare function cutObjectArray(obj: any): any;
137
- export declare function includesAny(arr1: string[] | null | undefined, arr2: string[] | null | undefined): boolean;
138
- export declare const isEnum: <T>(e: T) => (token: any) => token is T[keyof T];
139
- export declare function checkPermission(client: TxOperations, _id: Ref<Permission>, _space: Ref<TypedSpace>, space?: TypedSpace): Promise<boolean>;
140
- export declare function checkForbiddenPermission(client: TxOperations, _id: Ref<Permission>, _space: Ref<TypedSpace>, space?: TypedSpace): Promise<boolean>;
141
- /**
142
- * @public
143
- */
144
- export declare function getRoleAttributeLabel(roleName: string): IntlString;
145
- /**
146
- * @public
147
- */
148
- export declare function getFullTextIndexableAttributes(hierarchy: Hierarchy, clazz: Ref<Class<Obj>>, skipDocs?: boolean): AnyAttribute[];
149
- /**
150
- * @public
151
- */
152
- export declare function getFullTextContext(hierarchy: Hierarchy, objectClass: Ref<Class<Doc>>, contexts: Map<Ref<Class<Doc>>, FullTextSearchContext>): Omit<FullTextSearchContext, keyof Class<Doc>>;
153
- /**
154
- * @public
155
- */
156
- export declare function isClassIndexable(hierarchy: Hierarchy, c: Ref<Class<Doc>>, contexts: Map<Ref<Class<Doc>>, FullTextSearchContext>): boolean;
157
- type ReduceParameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
158
- /**
159
- * Utility method to skip middle update calls, optimistically if update function is called multiple times with few different parameters, only the last variant will be executed.
160
- * The last invocation is executed after a few cycles, allowing to skip middle ones.
161
- *
162
- * This method can be used inside Svelte components to collapse complex update logic and handle interactions.
163
- */
164
- export declare function reduceCalls<T extends (...args: ReduceParameters<T>) => Promise<void>>(operation: T): (...args: ReduceParameters<T>) => Promise<void>;
165
- export declare function isOwnerOrMaintainer(): boolean;
166
- export declare function hasAccountRole(acc: Account, targerRole: AccountRole): boolean;
167
- export declare function getBranding(brandings: BrandingMap, key: string | undefined): Branding | null;
168
- export declare function fillConfiguration(systemTx: Tx[], configs: Map<Ref<PluginConfiguration>, PluginConfiguration>): void;
169
- export declare function pluginFilterTx(excludedPlugins: PluginConfiguration[], configs: Map<Ref<PluginConfiguration>, PluginConfiguration>, systemTx: Tx[]): Tx[];
170
- /**
171
- * @public
172
- */
173
- export declare class TimeRateLimiter {
174
- idCounter: number;
175
- active: number;
176
- last: number;
177
- rate: number;
178
- period: number;
179
- executions: {
180
- time: number;
181
- running: boolean;
182
- }[];
183
- queue: (() => Promise<void>)[];
184
- notify: (() => void)[];
185
- constructor(rate: number, period?: number);
186
- private cleanupExecutions;
187
- exec<T, B extends Record<string, any> = any>(op: (args?: B) => Promise<T>, args?: B): Promise<T>;
188
- waitProcessing(): Promise<void>;
189
- }
190
- export declare function combineAttributes(attributes: any[], key: string, operator: '$push' | '$pull' | '$unset', arrayKey?: '$each' | '$in'): any[];
191
- export declare function buildSocialIdString(key: SocialKey): string;
192
- export declare function parseSocialIdString(id: string): SocialKey;
193
- export declare function pickPrimarySocialId(socialIds: SocialId[]): SocialId;
194
- export declare const loginSocialTypes: SocialIdType[];
195
- export declare function notEmpty<T>(id: T | undefined | null): id is T;
196
- export declare function unique<T>(arr: T[]): T[];
197
- export declare function uniqueNotEmpty<T extends NonNullable<unknown>>(arr: Array<T | undefined | null>): T[];
198
- export { platformNow, platformNowDiff } from '@hcengineering/measurements';
199
- export interface PermissionsGrant {
200
- spaces?: Ref<Space>[];
201
- grantedBy?: AccountUuid;
202
- }
203
- export type KeysByType<O extends object, T> = {
204
- [k in keyof O]-?: O[k] extends T ? k : never;
205
- }[keyof O];
206
- export declare function toRank(str: string | undefined): Rank | undefined;
207
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAeA,OAAO,EAAiC,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAGxF,OAAO,EACL,KAAK,OAAO,EACZ,WAAW,EACX,KAAK,WAAW,EAChB,KAAK,YAAY,EAEjB,KAAK,KAAK,EAGV,KAAK,GAAG,EACR,KAAK,OAAO,EAKZ,KAAK,qBAAqB,EAE1B,KAAK,GAAG,EACR,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,IAAI,EACT,KAAK,GAAG,EAGR,KA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AAM,CAE3D;AAED,wBAAgB,mBAAmB,CAAE,EAAE,EAAE,MAAM,GAAG,SAAS,CAY1D;AAED,wBAAgB,mBAAmB,CAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAQpE;AAED,eAAO,MAAM,gBAAgB,gBAAoF,CAAA;AAEjH,wBAAgB,QAAQ,CAAC,CAAC,EAAG,EAAE,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,GAAG,EAAE,IAAI,CAAC,CAE9D;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAG,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAExC;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,CAAC,OAAO,CAAC,EAAG,GAAG,EAAE,KAAK,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAErG;AACD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAE1E,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IACrB,SAAS,CAAC,EAAE,WAAW,CAAA;CACxB;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CAAE,CAAC,MAAM,CAAC,CAAC,CAAA;AAEvG,wBAAgB,MAAM,CAAE,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAMjE"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=context.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/context.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=metrics.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metrics.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/metrics.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=performance.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"performance.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/performance.test.ts"],"names":[],"mappings":""}
@@ -1,64 +0,0 @@
1
- import { type FullParamsType, type MeasureContext, type MeasureLogger, type Metrics, type ParamsType, type OperationLog, type WithOptions } from './types';
2
- export declare const consoleLogger: (logParams: Record<string, any>) => MeasureLogger;
3
- export declare const noParamsLogger: MeasureLogger;
4
- export declare const nullPromise: Promise<void>;
5
- /**
6
- * @public
7
- */
8
- export declare class MeasureMetricsContext implements MeasureContext {
9
- readonly parent?: MeasureContext | undefined;
10
- readonly logParams?: ParamsType | undefined;
11
- private readonly name;
12
- private readonly params;
13
- private readonly fullParams;
14
- logger: MeasureLogger;
15
- metrics: Metrics;
16
- id?: string;
17
- st: number;
18
- contextData: object;
19
- private done;
20
- constructor(name: string, params: ParamsType, fullParams?: FullParamsType | (() => FullParamsType), metrics?: Metrics, logger?: MeasureLogger, parent?: MeasureContext | undefined, logParams?: ParamsType | undefined);
21
- measure(name: string, value: number, override?: boolean): void;
22
- newChild(name: string, params: ParamsType, opt?: {
23
- fullParams?: FullParamsType;
24
- logger?: MeasureLogger;
25
- span?: WithOptions['span'];
26
- }): MeasureContext;
27
- with<T>(name: string, params: ParamsType, op: (ctx: MeasureContext) => T | Promise<T>, fullParams?: ParamsType | (() => FullParamsType), opt?: WithOptions): Promise<T>;
28
- extractMeta(): Record<string, string | number | boolean>;
29
- withSync<T>(name: string, params: ParamsType, op: (ctx: MeasureContext) => T, fullParams?: ParamsType | (() => FullParamsType)): T;
30
- error(message: string, args?: Record<string, any>): void;
31
- info(message: string, args?: Record<string, any>): void;
32
- warn(message: string, args?: Record<string, any>): void;
33
- end(): void;
34
- getParams(): ParamsType;
35
- }
36
- export declare class NoMetricsContext implements MeasureContext {
37
- logger: MeasureLogger;
38
- id?: string;
39
- contextData: object;
40
- constructor(logger?: MeasureLogger);
41
- measure(name: string, value: number, override?: boolean): void;
42
- newChild(name: string, params: ParamsType, fullParams?: FullParamsType | (() => FullParamsType), logger?: MeasureLogger): MeasureContext;
43
- with<T>(name: string, params: ParamsType, op: (ctx: MeasureContext) => T | Promise<T>, fullParams?: ParamsType | (() => FullParamsType)): Promise<T>;
44
- extractMeta(): Record<string, string | number | boolean>;
45
- withSync<T>(name: string, params: ParamsType, op: (ctx: MeasureContext) => T, fullParams?: ParamsType | (() => FullParamsType)): T;
46
- withLog<T>(name: string, params: ParamsType, op: (ctx: MeasureContext) => T | Promise<T>, fullParams?: ParamsType): Promise<T>;
47
- error(message: string, args?: Record<string, any>): void;
48
- info(message: string, args?: Record<string, any>): void;
49
- warn(message: string, args?: Record<string, any>): void;
50
- end(): void;
51
- getParams(): ParamsType;
52
- }
53
- /**
54
- * Allow to use decorator for context enabled functions
55
- */
56
- export declare function withContext(name: string, params?: ParamsType, options?: WithOptions): any;
57
- export declare function setOperationLogProfiling(value: boolean): void;
58
- export declare function registerOperationLog(ctx: MeasureContext): {
59
- opLogMetrics?: Metrics;
60
- op?: OperationLog;
61
- };
62
- export declare function updateOperationLog(opLogMetrics: Metrics | undefined, op: OperationLog | undefined): void;
63
- export declare function addOperation<T>(ctx: MeasureContext, name: string, params: ParamsType, op: (ctx: MeasureContext) => Promise<T>, fullParams?: FullParamsType): Promise<T>;
64
- //# sourceMappingURL=context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"A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,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;IAIxD,GAAG,IAAK,IAAI;IAEZ,SAAS,IAAK,UAAU;CAGzB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,UAAe,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,GAAG,CAe9F;AAID,wBAAgB,wBAAwB,CAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAE9D;AAID,wBAAgB,oBAAoB,CAAE,GAAG,EAAE,cAAc,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,EAAE,CAAC,EAAE,YAAY,CAAA;CAAE,CAkBxG;AAED,wBAAgB,kBAAkB,CAAE,YAAY,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE,YAAY,GAAG,SAAS,GAAG,IAAI,CAoBzG;AAED,wBAAgB,YAAY,CAAC,CAAC,EAC5B,GAAG,EAAE,cAAc,EACnB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,UAAU,EAClB,EAAE,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,EACvC,UAAU,CAAC,EAAE,cAAc,GAC1B,OAAO,CAAC,CAAC,CAAC,CAwCZ"}
@@ -1,12 +0,0 @@
1
- export * from './context';
2
- export * from './metrics';
3
- export type * from './types';
4
- /**
5
- * Return a current performance timestamp
6
- */
7
- export declare const platformNow: () => number;
8
- /**
9
- * Return a diff with previous performance snapshot with 2 digits after . max.
10
- */
11
- export declare const platformNowDiff: (old: number) => number;
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,mBAAmB,SAAS,CAAA;AAE5B;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,MAAgC,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,KAAG,MAA2D,CAAA"}
@@ -1,34 +0,0 @@
1
- import { type FullParamsType, type Metrics, type ParamsType } from './types';
2
- /**
3
- * @public
4
- */
5
- export declare const globals: Metrics;
6
- /**
7
- * @public
8
- * @returns
9
- */
10
- export declare function newMetrics(): Metrics;
11
- /**
12
- * Measure with tree expansion. Operation counter will be added only to leaf's.
13
- * @public
14
- */
15
- export declare function measure(metrics: Metrics, params: ParamsType, fullParams?: FullParamsType | (() => FullParamsType), endOp?: (spend: number) => void): () => void;
16
- export declare function updateMeasure(metrics: Metrics, st: number, params: ParamsType, fullParams: FullParamsType | (() => FullParamsType), endOp?: (spend: number) => void, value?: number, override?: boolean): void;
17
- /**
18
- * @public
19
- */
20
- export declare function childMetrics(root: Metrics, path: string[]): Metrics;
21
- /**
22
- * @public
23
- */
24
- export declare function metricsAggregate(m: Metrics, limit?: number, roundMath?: boolean): Metrics;
25
- /**
26
- * @public
27
- */
28
- export declare function metricsToString(metrics: Metrics, name: string | undefined, length: number): string;
29
- export declare function metricsToJson(metrics: Metrics): any;
30
- /**
31
- * @public
32
- */
33
- export declare function metricsToRows(metrics: Metrics, name?: string): (number | string)[][];
34
- //# sourceMappingURL=metrics.d.ts.map