@bgx4k3p/huly-mcp-server 2.2.3 → 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 +11 -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
@@ -215,6 +215,31 @@ function genMinModel() {
215
215
  kind: import_classes.ClassifierKind.CLASS
216
216
  })
217
217
  );
218
+ txes.push(
219
+ createClass(import_component.default.class.Relation, {
220
+ label: "Relation",
221
+ extends: import_component.default.class.Doc,
222
+ kind: import_classes.ClassifierKind.CLASS,
223
+ domain: import_classes.DOMAIN_RELATION
224
+ })
225
+ );
226
+ txes.push(
227
+ createClass(import_component.default.class.Association, {
228
+ label: "Association",
229
+ extends: import_component.default.class.Doc,
230
+ kind: import_classes.ClassifierKind.CLASS,
231
+ domain: import_classes.DOMAIN_MODEL
232
+ })
233
+ );
234
+ txes.push(
235
+ createDoc(import_component.default.class.Association, {
236
+ nameA: "my-assoc",
237
+ nameB: "my-assoc",
238
+ classA: test.class.TestComment,
239
+ classB: test.class.TestComment,
240
+ type: "1:1"
241
+ })
242
+ );
218
243
  txes.push(
219
244
  createDoc(import_component.default.class.Space, {
220
245
  name: "Sp1",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/__tests__/minmodel.ts"],
4
- "sourcesContent": ["//\n// Copyright \u00A9 2020 Anticrm Platform Contributors.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\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//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport type { IntlString, Plugin } from '@hcengineering/platform'\nimport { plugin } from '@hcengineering/platform'\nimport type { Arr, AttachedDoc, Class, Data, Doc, Interface, Mixin, Obj, Ref, Space } from '../classes'\nimport { ClassifierKind, DOMAIN_MODEL } from '../classes'\nimport core from '../component'\nimport type { DocumentUpdate, TxCUD, TxCreateDoc, TxRemoveDoc, TxUpdateDoc } from '../tx'\nimport { DOMAIN_TX, TxFactory } from '../tx'\n\nconst txFactory = new TxFactory(core.account.System)\n\nfunction createClass (_class: Ref<Class<Obj>>, attributes: Data<Class<Obj>>): TxCreateDoc<Doc> {\n return txFactory.createTxCreateDoc(core.class.Class, core.space.Model, attributes, _class)\n}\n\nfunction createInterface (_interface: Ref<Interface<Doc>>, attributes: Data<Interface<Doc>>): TxCreateDoc<Doc> {\n return txFactory.createTxCreateDoc(core.class.Interface, core.space.Model, attributes, _interface)\n}\n\nexport function createDoc<T extends Doc> (_class: Ref<Class<T>>, attributes: Data<T>): TxCreateDoc<T> {\n return txFactory.createTxCreateDoc(_class, core.space.Model, attributes)\n}\n\nexport function updateDoc<T extends Doc> (\n _class: Ref<Class<T>>,\n space: Ref<Space>,\n objectId: Ref<T>,\n operations: DocumentUpdate<T>\n): TxUpdateDoc<Doc> {\n return txFactory.createTxUpdateDoc(_class, space, objectId, operations)\n}\n\nexport function deleteDoc<T extends Doc> (_class: Ref<Class<T>>, space: Ref<Space>, objectId: Ref<T>): TxRemoveDoc<Doc> {\n return txFactory.createTxRemoveDoc(_class, space, objectId)\n}\n\nexport interface TestMixin extends Doc {\n arr: Arr<string>\n}\n\nexport interface AttachedComment extends AttachedDoc {\n message: string\n}\n\nexport interface WithState extends Doc {\n state: number\n number: number\n}\nexport interface Task extends Doc, WithState {\n name: string\n}\n\nexport interface TaskMixinTodos extends Task {\n todos: number\n}\n\nexport interface TaskMixinTodo extends AttachedDoc {\n text: string\n}\n\nexport interface TaskCheckItem extends AttachedDoc, WithState {\n name: string\n complete: boolean\n}\n\nexport const test = plugin('test' as Plugin, {\n mixin: {\n TestMixin: '' as Ref<Mixin<TestMixin>>,\n TaskMixinTodos: '' as Ref<Mixin<TaskMixinTodos>>\n },\n class: {\n Task: '' as Ref<Class<Task>>,\n TaskCheckItem: '' as Ref<Class<TaskCheckItem>>,\n TestComment: '' as Ref<Class<AttachedComment>>,\n TestMixinTodo: '' as Ref<Mixin<TaskMixinTodo>>\n },\n interface: {\n WithState: '' as Ref<Interface<WithState>>,\n DummyWithState: '' as Ref<Interface<WithState>>\n }\n})\n\n/**\n * Generate minimal model for testing purposes.\n * @returns R\n */\nexport function genMinModel (): TxCUD<Doc>[] {\n const txes = []\n // Fill Tx'es with basic model classes.\n txes.push(createClass(core.class.Obj, { label: 'Obj' as IntlString, kind: ClassifierKind.CLASS }))\n txes.push(\n createClass(core.class.Doc, { label: 'Doc' as IntlString, extends: core.class.Obj, kind: ClassifierKind.CLASS })\n )\n txes.push(\n createClass(core.class.AttachedDoc, {\n label: 'AttachedDoc' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.MIXIN\n })\n )\n txes.push(\n createClass(core.class.Class, {\n label: 'Class' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS,\n domain: DOMAIN_MODEL\n })\n )\n txes.push(\n createClass(core.class.Interface, {\n label: 'Interface' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS\n })\n )\n txes.push(\n createClass(core.class.Space, {\n label: 'Space' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS,\n domain: DOMAIN_MODEL\n })\n )\n // txes.push(\n // createClass(core.class.Account, {\n // label: 'Account' as IntlString,\n // extends: core.class.Doc,\n // kind: ClassifierKind.CLASS,\n // domain: DOMAIN_MODEL\n // })\n // )\n\n txes.push(\n createInterface(test.interface.WithState, {\n label: 'WithState' as IntlString,\n extends: [],\n kind: ClassifierKind.INTERFACE\n })\n )\n\n txes.push(\n createClass(core.class.Tx, {\n label: 'Tx' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS,\n domain: DOMAIN_TX\n })\n )\n txes.push(\n createClass(core.class.TxCUD, {\n label: 'TxCUD' as IntlString,\n extends: core.class.Tx,\n kind: ClassifierKind.CLASS,\n domain: DOMAIN_TX\n })\n )\n txes.push(\n createClass(core.class.TxCreateDoc, {\n label: 'TxCreateDoc' as IntlString,\n extends: core.class.TxCUD,\n kind: ClassifierKind.CLASS\n })\n )\n txes.push(\n createClass(core.class.TxUpdateDoc, {\n label: 'TxUpdateDoc' as IntlString,\n extends: core.class.TxCUD,\n kind: ClassifierKind.CLASS\n })\n )\n txes.push(\n createClass(core.class.TxRemoveDoc, {\n label: 'TxRemoveDoc' as IntlString,\n extends: core.class.TxCUD,\n kind: ClassifierKind.CLASS\n })\n )\n\n txes.push(\n createClass(core.class.Blob, {\n label: 'Blob' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS\n })\n )\n\n txes.push(\n createClass(test.mixin.TestMixin, {\n label: 'TestMixin' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.MIXIN\n })\n )\n\n txes.push(\n createInterface(test.interface.DummyWithState, {\n label: 'DummyWithState' as IntlString,\n extends: [test.interface.WithState],\n kind: ClassifierKind.INTERFACE\n })\n )\n txes.push(\n createClass(test.class.TestComment, {\n label: 'TestComment' as IntlString,\n extends: core.class.AttachedDoc,\n kind: ClassifierKind.CLASS\n })\n )\n txes.push(\n createClass(test.class.Task, {\n label: 'Task' as IntlString,\n extends: core.class.Doc,\n implements: [test.interface.DummyWithState],\n kind: ClassifierKind.CLASS\n })\n )\n txes.push(\n createClass(test.class.TaskCheckItem, {\n label: 'Task' as IntlString,\n extends: core.class.AttachedDoc,\n implements: [test.interface.WithState],\n kind: ClassifierKind.CLASS\n })\n )\n\n txes.push(\n createClass(test.mixin.TaskMixinTodos, {\n label: 'TaskMixinTodos' as IntlString,\n extends: test.class.Task,\n kind: ClassifierKind.MIXIN\n })\n )\n txes.push(\n createClass(test.class.TestMixinTodo, {\n label: 'TestMixinTodo' as IntlString,\n extends: core.class.AttachedDoc,\n kind: ClassifierKind.CLASS\n })\n )\n\n txes.push(\n createDoc(core.class.Space, {\n name: 'Sp1',\n description: '',\n private: false,\n members: [],\n archived: false\n })\n )\n\n txes.push(\n createDoc(core.class.Space, {\n name: 'Sp2',\n description: '',\n private: false,\n members: [],\n archived: false\n })\n )\n return txes\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,sBAAuB;AAEvB,qBAA6C;AAC7C,uBAAiB;AAEjB,gBAAqC;AAErC,MAAM,YAAY,IAAI,oBAAU,iBAAAA,QAAK,QAAQ,MAAM;AAEnD,SAAS,YAAa,QAAyB,YAAgD;AAC7F,SAAO,UAAU,kBAAkB,iBAAAA,QAAK,MAA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iBAAAA,QAAK,MAAM;AAAA,MACpB,YAAY,CAAC,KAAK,UAAU,SAAS;AAAA,MACrC,MAAM,8BAAe;AAAA,IACvB,CAAC;AAAA,EACH;AAEA,OAAK;AAAA,IACH,YAAY,KAAK,MAAM,gBAAgB;AAAA,MACrC,OAAO;AAAA,MACP,SAAS,KAAK,MAAM;AAAA,MACpB,MAAM,8BAAe;AAAA,IACvB,CAAC;AAAA,EACH;AACA,OAAK;AAAA,IACH,YAAY,KAAK,MAAM,eAAe;AAAA,MACpC,OAAO;AAAA,MACP,SAAS,iBAAAA,QAAK,MAAM;AAAA,MACpB,MAAM,8BAAe;AAAA,IACvB,CAAC;AAAA,EACH;AAEA,OAAK;AAAA,IACH,UAAU,iBAAAA,QAAK,MAAM,OAAO;AAAA,MAC1B,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS;AAAA,MACT,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AAEA,OAAK;AAAA,IACH,UAAU,iBAAAA,QAAK,MAAM,OAAO;AAAA,MAC1B,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS;AAAA,MACT,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AACA,SAAO;AACT;AA9KgB;",
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2020 Anticrm Platform Contributors.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\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//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport type { IntlString, Plugin } from '@hcengineering/platform'\nimport { plugin } from '@hcengineering/platform'\nimport type { Arr, AttachedDoc, Class, Data, Doc, Interface, Mixin, Obj, Ref, Space } from '../classes'\nimport { ClassifierKind, DOMAIN_MODEL, DOMAIN_RELATION } from '../classes'\nimport core from '../component'\nimport type { DocumentUpdate, TxCUD, TxCreateDoc, TxRemoveDoc, TxUpdateDoc } from '../tx'\nimport { DOMAIN_TX, TxFactory } from '../tx'\n\nconst txFactory = new TxFactory(core.account.System)\n\nfunction createClass (_class: Ref<Class<Obj>>, attributes: Data<Class<Obj>>): TxCreateDoc<Doc> {\n return txFactory.createTxCreateDoc(core.class.Class, core.space.Model, attributes, _class)\n}\n\nfunction createInterface (_interface: Ref<Interface<Doc>>, attributes: Data<Interface<Doc>>): TxCreateDoc<Doc> {\n return txFactory.createTxCreateDoc(core.class.Interface, core.space.Model, attributes, _interface)\n}\n\nexport function createDoc<T extends Doc> (_class: Ref<Class<T>>, attributes: Data<T>): TxCreateDoc<T> {\n return txFactory.createTxCreateDoc(_class, core.space.Model, attributes)\n}\n\nexport function updateDoc<T extends Doc> (\n _class: Ref<Class<T>>,\n space: Ref<Space>,\n objectId: Ref<T>,\n operations: DocumentUpdate<T>\n): TxUpdateDoc<Doc> {\n return txFactory.createTxUpdateDoc(_class, space, objectId, operations)\n}\n\nexport function deleteDoc<T extends Doc> (_class: Ref<Class<T>>, space: Ref<Space>, objectId: Ref<T>): TxRemoveDoc<Doc> {\n return txFactory.createTxRemoveDoc(_class, space, objectId)\n}\n\nexport interface TestMixin extends Doc {\n arr: Arr<string>\n}\n\nexport interface AttachedComment extends AttachedDoc {\n message: string\n}\n\nexport interface WithState extends Doc {\n state: number\n number: number\n}\nexport interface Task extends Doc, WithState {\n name: string\n}\n\nexport interface TaskMixinTodos extends Task {\n todos: number\n}\n\nexport interface TaskMixinTodo extends AttachedDoc {\n text: string\n}\n\nexport interface TaskCheckItem extends AttachedDoc, WithState {\n name: string\n complete: boolean\n}\n\nexport const test = plugin('test' as Plugin, {\n mixin: {\n TestMixin: '' as Ref<Mixin<TestMixin>>,\n TaskMixinTodos: '' as Ref<Mixin<TaskMixinTodos>>\n },\n class: {\n Task: '' as Ref<Class<Task>>,\n TaskCheckItem: '' as Ref<Class<TaskCheckItem>>,\n TestComment: '' as Ref<Class<AttachedComment>>,\n TestMixinTodo: '' as Ref<Mixin<TaskMixinTodo>>\n },\n interface: {\n WithState: '' as Ref<Interface<WithState>>,\n DummyWithState: '' as Ref<Interface<WithState>>\n }\n})\n\n/**\n * Generate minimal model for testing purposes.\n * @returns R\n */\nexport function genMinModel (): TxCUD<Doc>[] {\n const txes = []\n // Fill Tx'es with basic model classes.\n txes.push(createClass(core.class.Obj, { label: 'Obj' as IntlString, kind: ClassifierKind.CLASS }))\n txes.push(\n createClass(core.class.Doc, { label: 'Doc' as IntlString, extends: core.class.Obj, kind: ClassifierKind.CLASS })\n )\n txes.push(\n createClass(core.class.AttachedDoc, {\n label: 'AttachedDoc' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.MIXIN\n })\n )\n txes.push(\n createClass(core.class.Class, {\n label: 'Class' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS,\n domain: DOMAIN_MODEL\n })\n )\n txes.push(\n createClass(core.class.Interface, {\n label: 'Interface' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS\n })\n )\n txes.push(\n createClass(core.class.Space, {\n label: 'Space' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS,\n domain: DOMAIN_MODEL\n })\n )\n // txes.push(\n // createClass(core.class.Account, {\n // label: 'Account' as IntlString,\n // extends: core.class.Doc,\n // kind: ClassifierKind.CLASS,\n // domain: DOMAIN_MODEL\n // })\n // )\n\n txes.push(\n createInterface(test.interface.WithState, {\n label: 'WithState' as IntlString,\n extends: [],\n kind: ClassifierKind.INTERFACE\n })\n )\n\n txes.push(\n createClass(core.class.Tx, {\n label: 'Tx' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS,\n domain: DOMAIN_TX\n })\n )\n txes.push(\n createClass(core.class.TxCUD, {\n label: 'TxCUD' as IntlString,\n extends: core.class.Tx,\n kind: ClassifierKind.CLASS,\n domain: DOMAIN_TX\n })\n )\n txes.push(\n createClass(core.class.TxCreateDoc, {\n label: 'TxCreateDoc' as IntlString,\n extends: core.class.TxCUD,\n kind: ClassifierKind.CLASS\n })\n )\n txes.push(\n createClass(core.class.TxUpdateDoc, {\n label: 'TxUpdateDoc' as IntlString,\n extends: core.class.TxCUD,\n kind: ClassifierKind.CLASS\n })\n )\n txes.push(\n createClass(core.class.TxRemoveDoc, {\n label: 'TxRemoveDoc' as IntlString,\n extends: core.class.TxCUD,\n kind: ClassifierKind.CLASS\n })\n )\n\n txes.push(\n createClass(core.class.Blob, {\n label: 'Blob' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS\n })\n )\n\n txes.push(\n createClass(test.mixin.TestMixin, {\n label: 'TestMixin' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.MIXIN\n })\n )\n\n txes.push(\n createInterface(test.interface.DummyWithState, {\n label: 'DummyWithState' as IntlString,\n extends: [test.interface.WithState],\n kind: ClassifierKind.INTERFACE\n })\n )\n txes.push(\n createClass(test.class.TestComment, {\n label: 'TestComment' as IntlString,\n extends: core.class.AttachedDoc,\n kind: ClassifierKind.CLASS\n })\n )\n txes.push(\n createClass(test.class.Task, {\n label: 'Task' as IntlString,\n extends: core.class.Doc,\n implements: [test.interface.DummyWithState],\n kind: ClassifierKind.CLASS\n })\n )\n txes.push(\n createClass(test.class.TaskCheckItem, {\n label: 'Task' as IntlString,\n extends: core.class.AttachedDoc,\n implements: [test.interface.WithState],\n kind: ClassifierKind.CLASS\n })\n )\n\n txes.push(\n createClass(test.mixin.TaskMixinTodos, {\n label: 'TaskMixinTodos' as IntlString,\n extends: test.class.Task,\n kind: ClassifierKind.MIXIN\n })\n )\n txes.push(\n createClass(test.class.TestMixinTodo, {\n label: 'TestMixinTodo' as IntlString,\n extends: core.class.AttachedDoc,\n kind: ClassifierKind.CLASS\n })\n )\n\n txes.push(\n createClass(core.class.Relation, {\n label: 'Relation' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS,\n domain: DOMAIN_RELATION\n })\n )\n\n txes.push(\n createClass(core.class.Association, {\n label: 'Association' as IntlString,\n extends: core.class.Doc,\n kind: ClassifierKind.CLASS,\n domain: DOMAIN_MODEL\n })\n )\n\n txes.push(\n createDoc(core.class.Association, {\n nameA: 'my-assoc',\n nameB: 'my-assoc',\n classA: test.class.TestComment,\n classB: test.class.TestComment,\n type: '1:1'\n })\n )\n\n txes.push(\n createDoc(core.class.Space, {\n name: 'Sp1',\n description: '',\n private: false,\n members: [],\n archived: false\n })\n )\n\n txes.push(\n createDoc(core.class.Space, {\n name: 'Sp2',\n description: '',\n private: false,\n members: [],\n archived: false\n })\n )\n return txes\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,sBAAuB;AAEvB,qBAA8D;AAC9D,uBAAiB;AAEjB,gBAAqC;AAErC,MAAM,YAAY,IAAI,oBAAU,iBAAAA,QAAK,QAAQ,MAAM;AAEnD,SAAS,YAAa,QAAyB,YAAgD;AAC7F,SAAO,UAAU,kBAAkB,iBAAAA,QAAK,MAAM,OAAO,iBAAAA,QAAK,MAAM,OAAO,YAAY,MAAM;AAC3F;AAFS;AAIT,SAAS,gBAAiB,YAAiC,YAAoD;AAC7G,SAAO,UAAU,kBAAkB,iBAAAA,QAAK,MAAM,WAAW,iBAAAA,QAAK,MAAM,OAAO,YAAY,UAAU;AACnG;AAFS;AAIF,SAAS,UAA0B,QAAuB,YAAqC;AACpG,SAAO,UAAU,kBAAkB,QAAQ,iBAAAA,QAAK,MAAM,OAAO,UAAU;AACzE;AAFgB;AAIT,SAAS,UACd,QACA,OACA,UACA,YACkB;AAClB,SAAO,UAAU,kBAAkB,QAAQ,OAAO,UAAU,UAAU;AACxE;AAPgB;AAST,SAAS,UAA0B,QAAuB,OAAmB,UAAoC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AAAA,QAAK,MAAM,UAAU;AAAA,MAC/B,OAAO;AAAA,MACP,SAAS,iBAAAA,QAAK,MAAM;AAAA,MACpB,MAAM,8BAAe;AAAA,MACrB,QAAQ;AAAA,IACV,CAAC;AAAA,EACH;AAEA,OAAK;AAAA,IACH,YAAY,iBAAAA,QAAK,MAAM,aAAa;AAAA,MAClC,OAAO;AAAA,MACP,SAAS,iBAAAA,QAAK,MAAM;AAAA,MACpB,MAAM,8BAAe;AAAA,MACrB,QAAQ;AAAA,IACV,CAAC;AAAA,EACH;AAEA,OAAK;AAAA,IACH,UAAU,iBAAAA,QAAK,MAAM,aAAa;AAAA,MAChC,OAAO;AAAA,MACP,OAAO;AAAA,MACP,QAAQ,KAAK,MAAM;AAAA,MACnB,QAAQ,KAAK,MAAM;AAAA,MACnB,MAAM;AAAA,IACR,CAAC;AAAA,EACH;AAEA,OAAK;AAAA,IACH,UAAU,iBAAAA,QAAK,MAAM,OAAO;AAAA,MAC1B,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS;AAAA,MACT,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AAEA,OAAK;AAAA,IACH,UAAU,iBAAAA,QAAK,MAAM,OAAO;AAAA,MAC1B,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS;AAAA,MACT,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AACA,SAAO;AACT;AA1MgB;",
6
6
  "names": ["core"]
7
7
  }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
+ var import_query = require("../query");
5
+ function doc(id, fields = {}) {
6
+ const doc2 = { _id: id, _class: "test:class:Issue", ...fields };
7
+ return doc2;
8
+ }
9
+ __name(doc, "doc");
10
+ describe("findProperty", () => {
11
+ const assigned1 = doc("i1", { assignee: "person:1" });
12
+ const assigned2 = doc("i2", { assignee: "person:2" });
13
+ const unassigned = doc("i3", { assignee: null });
14
+ const missingField = doc("i4");
15
+ const allDocs = [assigned1, assigned2, unassigned, missingField];
16
+ it("should match a specific value", () => {
17
+ const result = (0, import_query.findProperty)(allDocs, "assignee", "person:1");
18
+ expect(result).toEqual([assigned1]);
19
+ });
20
+ it("should match null to docs with null or missing field", () => {
21
+ const result = (0, import_query.findProperty)(allDocs, "assignee", null);
22
+ expect(result).toEqual([unassigned, missingField]);
23
+ });
24
+ it("should match undefined to docs with null or missing field", () => {
25
+ const result = (0, import_query.findProperty)(allDocs, "assignee", void 0);
26
+ expect(result).toEqual([unassigned, missingField]);
27
+ });
28
+ describe("JSON round-trip (simulates server query)", () => {
29
+ it("null survives JSON serialization and filters correctly", () => {
30
+ const query = { assignee: null };
31
+ const roundTripped = JSON.parse(JSON.stringify(query));
32
+ expect(roundTripped).toHaveProperty("assignee");
33
+ const result = (0, import_query.findProperty)(allDocs, "assignee", roundTripped.assignee);
34
+ expect(result).toEqual([unassigned, missingField]);
35
+ });
36
+ it("undefined is stripped by JSON serialization, losing the filter", () => {
37
+ const query = { assignee: void 0 };
38
+ const roundTripped = JSON.parse(JSON.stringify(query));
39
+ expect(roundTripped).not.toHaveProperty("assignee");
40
+ });
41
+ });
42
+ });
43
+ //# sourceMappingURL=query.test.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/__tests__/query.test.ts"],
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2026 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\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//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport { findProperty } from '../query'\nimport type { Doc, Ref, Class } from '../classes'\n\nfunction doc (id: string, fields: Record<string, any> = {}): Doc {\n const doc: Doc = { _id: id as Ref<Doc>, _class: 'test:class:Issue' as Ref<Class<Doc>>, ...fields } as any\n return doc\n}\n\ndescribe('findProperty', () => {\n const assigned1 = doc('i1', { assignee: 'person:1' })\n const assigned2 = doc('i2', { assignee: 'person:2' })\n const unassigned = doc('i3', { assignee: null })\n const missingField = doc('i4')\n const allDocs = [assigned1, assigned2, unassigned, missingField]\n\n it('should match a specific value', () => {\n const result = findProperty(allDocs, 'assignee', 'person:1')\n expect(result).toEqual([assigned1])\n })\n\n it('should match null to docs with null or missing field', () => {\n const result = findProperty(allDocs, 'assignee', null)\n expect(result).toEqual([unassigned, missingField])\n })\n\n it('should match undefined to docs with null or missing field', () => {\n const result = findProperty(allDocs, 'assignee', undefined)\n expect(result).toEqual([unassigned, missingField])\n })\n\n describe('JSON round-trip (simulates server query)', () => {\n it('null survives JSON serialization and filters correctly', () => {\n const query = { assignee: null }\n const roundTripped = JSON.parse(JSON.stringify(query))\n expect(roundTripped).toHaveProperty('assignee')\n\n const result = findProperty(allDocs, 'assignee', roundTripped.assignee)\n expect(result).toEqual([unassigned, missingField])\n })\n\n it('undefined is stripped by JSON serialization, losing the filter', () => {\n const query = { assignee: undefined }\n const roundTripped = JSON.parse(JSON.stringify(query))\n expect(roundTripped).not.toHaveProperty('assignee')\n\n // Without the 'assignee' key, matchQuery iterates only the remaining keys\n // and never calls findProperty for assignee, so all docs pass through.\n // This is the root cause of #10606.\n })\n })\n})\n"],
5
+ "mappings": ";;;AAeA,mBAA6B;AAG7B,SAAS,IAAK,IAAY,SAA8B,CAAC,GAAQ;AAC/D,QAAMA,OAAW,EAAE,KAAK,IAAgB,QAAQ,oBAAuC,GAAG,OAAO;AACjG,SAAOA;AACT;AAHS;AAKT,SAAS,gBAAgB,MAAM;AAC7B,QAAM,YAAY,IAAI,MAAM,EAAE,UAAU,WAAW,CAAC;AACpD,QAAM,YAAY,IAAI,MAA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nPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var autoJoinRoles_exports = {};
21
+ __export(autoJoinRoles_exports, {
22
+ setWorkspaceGuestAutoJoinRoles: () => setWorkspaceGuestAutoJoinRoles
23
+ });
24
+ module.exports = __toCommonJS(autoJoinRoles_exports);
25
+ var import_classes = require("./classes");
26
+ function setWorkspaceGuestAutoJoinRoles(existing, includeGuest) {
27
+ const next = new Set(existing ?? []);
28
+ if (includeGuest) {
29
+ next.add(import_classes.AccountRole.Guest);
30
+ } else {
31
+ next.delete(import_classes.AccountRole.Guest);
32
+ }
33
+ return Array.from(next);
34
+ }
35
+ __name(setWorkspaceGuestAutoJoinRoles, "setWorkspaceGuestAutoJoinRoles");
36
+ //# sourceMappingURL=autoJoinRoles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/autoJoinRoles.ts"],
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2026 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\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//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport { AccountRole } from './classes'\n\n/**\n * Toggle {@link AccountRole.Guest} in {@link Space.autoJoinForRoles}; other roles are preserved.\n * @public\n */\nexport function setWorkspaceGuestAutoJoinRoles (\n existing: AccountRole[] | undefined,\n includeGuest: boolean\n): AccountRole[] {\n const next = new Set(existing ?? [])\n if (includeGuest) {\n next.add(AccountRole.Guest)\n } else {\n next.delete(AccountRole.Guest)\n }\n return Array.from(next)\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,qBAA4B;AAMrB,SAAS,+BACd,UACA,cACe;AACf,QAAM,OAAO,IAAI,IAAI,YAAY,CAAC,CAAC;AACnC,MAAI,cAAc;AAChB,SAAK,IAAI,2BAAY,KAAK;AAAA,EAC5B,OAAO;AACL,SAAK,OAAO,2BAAY,KAAK;AAAA,EAC/B;AACA,SAAO,MAAM,KAAK,IAAI;AACxB;AAXgB;",
6
+ "names": []
7
+ }
@@ -35,6 +35,7 @@ __export(classes_exports, {
35
35
  IndexKind: () => IndexKind,
36
36
  IndexOrder: () => IndexOrder,
37
37
  SocialIdType: () => SocialIdType,
38
+ WorkspaceAccountPermission: () => WorkspaceAccountPermission,
38
39
  isActiveMode: () => isActiveMode,
39
40
  isArchivingMode: () => isArchivingMode,
40
41
  isDeletingMode: () => isDeletingMode,
@@ -137,4 +138,8 @@ var SocialIdType = /* @__PURE__ */ ((SocialIdType2) => {
137
138
  SocialIdType2["HULY_ASSISTANT"] = "huly-assistant";
138
139
  return SocialIdType2;
139
140
  })(SocialIdType || {});
141
+ var WorkspaceAccountPermission = /* @__PURE__ */ ((WorkspaceAccountPermission2) => {
142
+ WorkspaceAccountPermission2["ImportDocument"] = "ImportDocument";
143
+ return WorkspaceAccountPermission2;
144
+ })(WorkspaceAccountPermission || {});
140
145
  //# sourceMappingURL=classes.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/classes.ts"],
4
- "sourcesContent": ["//\n// Copyright \u00A9 2020, 2021 Anticrm Platform Contributors.\n// Copyright \u00A9 2021, 2025 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\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//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport type { Asset, IntlString, Plugin } from '@hcengineering/platform'\nimport type { DocumentQuery } from './storage'\nimport { type WorkspaceDataId, type WorkspaceUuid } from './utils'\nimport { Tx } from '.'\n\n/**\n * @public\n */\nexport type Ref<T extends Doc> = string & { __ref: T }\n\n/**\n * @public\n */\nexport type PrimitiveType = number | string | boolean | undefined | Ref<Doc>\n\n/**\n * @public\n */\nexport type Timestamp = number\n\n/**\n * @public\n */\nexport type Markup = string\n\n/**\n * @public\n */\nexport type Hyperlink = string\n\n/**\n * @public\n */\nexport type CollectionSize<T> = T[]['length']\n\n/**\n * @public\n *\n * String representation of {@link https://www.npmjs.com/package/lexorank LexoRank} type\n */\nexport type Rank = string\n\n/**\n * @public\n *\n * Reference to blob containing snapshot of collaborative doc.\n */\nexport type MarkupBlobRef = Ref<Blob>\n\n/**\n * @public\n */\nexport interface Obj {\n _class: Ref<Class<this>>\n}\n\nexport interface Account {\n uuid: AccountUuid\n role: AccountRole\n primarySocialId: PersonId\n socialIds: PersonId[]\n fullSocialIds: SocialId[]\n}\n\n/**\n * @public\n * Global person UUID.\n */\nexport type PersonUuid = string & { __personUuid: true }\n\n/**\n * @public\n * Global person account UUID.\n * The same UUID as PersonUuid but for when account exists.\n */\nexport type AccountUuid = PersonUuid & { __accountUuid: true }\n\n/**\n * @public\n * Generated identifier of a social id linked to a global person.\n */\nexport type PersonId = string & { __personId: true }\n\nexport interface BasePerson {\n name: string\n personUuid?: PersonUuid\n}\n\n/**\n * @public\n */\nexport interface Doc<S extends Space = Space> extends Obj {\n _id: Ref<this>\n space: Ref<S>\n modifiedOn: Timestamp\n modifiedBy: PersonId\n createdBy?: PersonId // Marked as optional since it will be filled by platform.\n createdOn?: Timestamp // Marked as optional since it will be filled by platform.\n}\n\n/**\n * @public\n */\nexport type PropertyType = any\n\n/**\n * @public\n */\nexport interface UXObject extends Obj {\n label: IntlString\n icon?: Asset\n color?: number\n hidden?: boolean\n readonly?: boolean\n}\n\n/**\n * @public\n */\nexport interface Association extends Doc {\n classA: Ref<Class<Doc>>\n classB: Ref<Class<Doc>>\n nameA: string\n nameB: string\n type: '1:1' | '1:N' | 'N:N'\n}\n\n/**\n * @public\n */\nexport interface Relation extends Doc {\n docA: Ref<Doc>\n docB: Ref<Doc>\n association: Ref<Association>\n}\n\n/**\n * @public\n */\nexport interface AttachedDoc<\n Parent extends Doc = Doc,\n Collection extends Extract<keyof Parent, string> | string = Extract<keyof Parent, string> | string,\n S extends Space = Space\n> extends Doc<S> {\n attachedTo: Ref<Parent>\n attachedToClass: Ref<Class<Parent>>\n collection: Collection\n}\n\n/**\n * @public\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport interface Type<T extends PropertyType> extends UXObject {}\n\n/**\n * @public\n */\nexport enum IndexKind {\n /**\n * Attribute with this index annotation should be added to elastic for search\n * Could be added to string or Ref attribute\n * TODO: rename properly for better code readability\n */\n FullText,\n /**\n * For attribute with this annotation should be created an index in mongo database\n *\n * Also mean to include into Elastic search.\n */\n Indexed,\n\n // Same as indexed but for descending\n IndexedDsc\n}\n\n/**\n * @public\n */\nexport interface Enum extends Doc {\n name: string\n enumValues: string[]\n}\n\n/**\n * @public\n */\nexport interface Attribute<T extends PropertyType> extends Doc, UXObject {\n attributeOf: Ref<Class<Obj>>\n name: string\n type: Type<T>\n index?: IndexKind\n shortLabel?: IntlString\n isCustom?: boolean\n defaultValue?: any\n automationOnly?: boolean\n rank?: Rank\n\n // Extra customization properties\n [key: string]: any\n}\n\n/**\n * @public\n */\nexport type AnyAttribute = Attribute<Type<any>>\n\n/**\n * @public\n */\nexport enum ClassifierKind {\n CLASS,\n INTERFACE,\n MIXIN\n}\n\n/**\n * @public\n */\nexport interface Classifier extends Doc, UXObject {\n kind: ClassifierKind\n}\n\n/**\n * @public\n */\nexport type Domain = string & { __domain: true }\n\n/**\n * @public\n */\nexport type OperationDomain = string & { __domain: true }\n\n/**\n * @public\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport interface Interface<T extends Doc> extends Classifier {\n extends?: Ref<Interface<Doc>>[]\n}\n\n/**\n * @public\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport interface Class<T extends Obj> extends Classifier {\n extends?: Ref<Class<Obj>>\n implements?: Ref<Interface<Doc>>[]\n domain?: Domain\n shortLabel?: string\n sortingKey?: string\n filteringKey?: string\n pluralLabel?: IntlString\n}\n\n/**\n * @public\n * Define a set of plugin to model document bindings.\n */\nexport interface PluginConfiguration extends Doc {\n pluginId: Plugin\n transactions: Ref<Doc>[]\n\n label: IntlString\n icon?: Asset\n description?: IntlString\n enabled: boolean\n\n // If set will not allow to disable this configuration\n system?: true\n\n // If set will not be shown in configuration UI or enabled\n hidden?: boolean\n\n // If specified, will show beta/testing label in UI.\n beta: boolean\n\n // If defined, will only remove classes in list.\n classFilter?: Ref<Class<Obj>>[]\n}\n\n/**\n * @public\n */\nexport type Mixin<T extends Doc> = Class<T>\n\n// D A T A\n\n/**\n * @public\n */\nexport type Data<T extends Doc> = Omit<T, keyof Doc>\n\n/**\n * @public\n */\nexport type AttachedData<T extends AttachedDoc> = Omit<T, keyof AttachedDoc>\n\n/**\n * @public\n */\nexport type DocData<T extends Doc> = T extends AttachedDoc ? AttachedData<T> : Data<T>\n\n// T Y P E S\n\n/**\n * @public\n */\nexport enum DateRangeMode {\n DATE = 'date',\n TIME = 'time',\n DATETIME = 'datetime',\n TIMEONLY = 'timeonly'\n}\n\n/**\n * @public\n */\nexport interface TypeDate extends Type<Date> {\n // If not set date mode default\n mode: DateRangeMode\n // If not set to true, will be false\n withShift: boolean\n}\n\n/**\n * @public\n */\nexport interface TypeIdentifier extends Type<string> {\n of: Ref<CustomSequence>\n}\n\n/**\n * @public\n */\nexport interface TypeNumber extends Type<number> {\n min?: number\n max?: number\n digits?: number // Number of digits after comma\n}\n\n/**\n * @public\n */\nexport interface RefTo<T extends Doc> extends Type<Ref<Class<T>>> {\n to: Ref<Class<T>>\n}\n\n/**\n * @public\n */\nexport interface Collection<T extends AttachedDoc> extends Type<CollectionSize<T>> {\n of: Ref<Class<T>>\n itemLabel?: IntlString\n}\n\n/**\n * @public\n */\nexport type Arr<T extends PropertyType> = T[]\n\n/**\n * @public\n */\nexport interface ArrOf<T extends PropertyType> extends Type<T[]> {\n of: Type<T>\n}\n\n/**\n * @public\n */\nexport interface EnumOf extends Type<string> {\n of: Ref<Enum>\n}\n\n/**\n * @public\n */\nexport interface TypeHyperlink extends Type<Hyperlink> {}\n\n/**\n * @public\n *\n * A type for some custom serialized field with a set of editors\n */\nexport interface TypeAny<AnyComponent = any> extends Type<any> {\n presenter: AnyComponent\n editor?: AnyComponent\n}\n\n/**\n * @public\n */\nexport const DOMAIN_MODEL = 'model' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_MODEL_TX = 'model_tx' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_SPACE = 'space' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_CONFIGURATION = '_configuration' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_MIGRATION = '_migrations' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_TRANSIENT = 'transient' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_RELATION = 'relation' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_COLLABORATOR = 'collaborator' as Domain\n\n/**\n * @public\n */\nexport interface TransientConfiguration extends Class<Doc> {\n // If set will not store transient objects into memdb\n broadcastOnly: boolean\n}\n\n/**\n * Special domain to access s3 blob data.\n * @public\n */\nexport const DOMAIN_BLOB = 'blob' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_SEQUENCE = 'sequence' as Domain\n\n// S P A C E\n\n/**\n * @public\n */\nexport interface Space extends Doc {\n name: string\n description: string\n private: boolean\n members: AccountUuid[]\n archived: boolean\n owners?: AccountUuid[]\n autoJoin?: boolean\n}\n\n/**\n * @public\n */\nexport interface SystemSpace extends Space {}\n\n/**\n * @public\n *\n * Space with custom configured type\n */\nexport interface TypedSpace extends Space {\n type: Ref<SpaceType>\n}\n\n/**\n * @public\n *\n * Is used to describe \"types\" for space type\n */\nexport interface SpaceTypeDescriptor extends Doc {\n name: IntlString\n description: IntlString\n icon: Asset\n baseClass: Ref<Class<Space>> // Child class of Space for which the space type can be defined\n availablePermissions: Ref<Permission>[]\n system?: boolean\n}\n\n/**\n * @public\n *\n * Customisable space type allowing to configure space roles and permissions within them\n */\nexport interface SpaceType extends Doc {\n name: string\n shortDescription?: string\n descriptor: Ref<SpaceTypeDescriptor>\n members?: AccountUuid[] // this members will be added automatically to new space, also change this fiield will affect existing spaces\n autoJoin?: boolean // if true, all new users will be added to space automatically\n targetClass: Ref<Class<Space>> // A dynamic mixin for Spaces to hold custom attributes and roles assignment of the space type\n roles: CollectionSize<Role>\n}\n\n/**\n * @public\n * Role defines permissions for employees assigned to this role within the space\n */\nexport interface Role extends AttachedDoc<SpaceType, 'roles'> {\n name: string\n permissions: Ref<Permission>[]\n}\n\n/**\n * @public\n * Defines assignment of employees to a role within a space\n */\nexport type RolesAssignment = Record<Ref<Role>, AccountUuid[] | undefined>\n\n/**\n * @public\n * Permission is a basic access control item in the system\n */\nexport interface Permission extends Doc {\n label: IntlString\n txClass?: Ref<Class<Tx>>\n forbid?: boolean\n objectClass?: Ref<Class<Doc>>\n scope?: 'space' | 'workspace'\n txMatch?: DocumentQuery<Tx>\n description?: IntlString\n icon?: Asset\n}\n\n/**\n * @public\n */\nexport enum AccountRole {\n ReadOnlyGuest = 'READONLYGUEST',\n DocGuest = 'DocGuest',\n Guest = 'GUEST',\n User = 'USER',\n Maintainer = 'MAINTAINER',\n Owner = 'OWNER',\n Admin = 'ADMIN'\n}\n\n/**\n * @public\n */\nexport const roleOrder: Record<AccountRole, number> = {\n [AccountRole.ReadOnlyGuest]: 5,\n [AccountRole.DocGuest]: 10,\n [AccountRole.Guest]: 20,\n [AccountRole.User]: 30,\n [AccountRole.Maintainer]: 40,\n [AccountRole.Owner]: 50,\n [AccountRole.Admin]: 100\n}\n\nexport interface TxAccessLevel extends Class<Doc> {\n createAccessLevel?: AccountRole\n removeAccessLevel?: AccountRole\n updateAccessLevel?: AccountRole\n isIdentity?: boolean\n}\n\n/**\n * @public\n */\nexport interface Person {\n uuid: PersonUuid\n firstName: string\n lastName: string\n}\n\nexport interface PersonInfo extends BasePerson {\n socialIds: SocialId[]\n}\n\n/**\n * @public\n */\n// TODO: move to contact\nexport interface UserStatus extends Doc {\n online: boolean\n user: AccountUuid\n}\n\n/**\n * @public\n */\nexport interface Version extends Doc {\n major: number\n minor: number\n patch: number\n}\n\n/**\n * @public\n */\nexport interface MigrationState extends Doc {\n plugin: string\n state: string\n}\n\n/**\n * @public\n */\nexport function versionToString (version: Version | Data<Version>): string {\n return `${version?.major}.${version?.minor}.${version?.patch}`\n}\n\n/**\n * @public\n */\nexport interface Sequence extends Doc {\n attachedTo: Ref<Class<Doc>>\n sequence: number\n}\n\nexport interface CustomSequence extends Sequence {\n prefix: string\n}\n\n/**\n * @public\n */\nexport type BlobMetadata = Record<string, any>\n\n/**\n * @public\n *\n * A blob document to manage blob attached documents.\n *\n * _id: is a platform ID and it created using our regular generateId(),\n * and storageId is a provider specified storage id.\n */\nexport interface Blob extends Doc {\n // Provider\n provider: string\n // A provider specific id\n contentType: string\n // A etag for blob\n etag: string\n // Document version if supported by provider\n version: string | null\n // A document size\n size: number\n}\n\nexport interface BlobType {\n file: Ref<Blob>\n\n type: string\n\n name: string\n size: number\n\n metadata?: BlobMetadata\n}\n\nexport type Blobs = Record<string, BlobType>\n\n/**\n * For every blob will automatically add a lookup.\n *\n * It extends Blob to allow for $lookup operations work as expected.\n */\nexport interface BlobLookup extends Blob {\n // An URL document could be downloaded from, with ${id} to put blobId into\n downloadUrl: string\n downloadUrlExpire?: number\n}\n\n/**\n * @public\n *\n * If defined for class, this class will be enabled for embedding search like openai.\n */\nexport interface FullTextSearchContext extends Doc {\n toClass: Ref<Class<Doc>>\n fullTextSummary?: boolean\n forceIndex?: boolean\n}\n\n/**\n * @public\n */\nexport interface ConfigurationElement extends Class<Doc> {\n // Title will be presented to owner.\n title: IntlString\n // Group for grouping.\n group: IntlString\n}\n\n/**\n * @public\n *\n * Define configuration value configuration for workspace.\n *\n * Configuration is accessible only for owners of workspace and under hood services.\n */\nexport interface Configuration extends Doc {\n enabled: boolean\n}\n\n/**\n * @public\n */\nexport type RelatedDocument = Pick<Doc, '_id' | '_class'>\n\n/**\n * @public\n */\nexport enum IndexOrder {\n Ascending = 1,\n Descending = -1\n}\n\n/**\n * @public\n */\nexport type FieldIndex<T extends Doc> = {\n [P in keyof T]?: IndexOrder\n} & Record<string, IndexOrder>\n\nexport interface FieldIndexConfig<T extends Doc> {\n sparse?: boolean\n filter?: Omit<DocumentQuery<T>, '$search'>\n keys: FieldIndex<T> | string\n}\n\n/**\n * @public\n *\n * Mixin for extra indexing fields.\n */\nexport interface IndexingConfiguration<T extends Doc> extends Class<Doc> {\n // Define a list of extra index definitions.\n indexes: (string | FieldIndexConfig<T>)[]\n searchDisabled?: boolean\n}\n\nexport interface DomainIndexConfiguration extends Doc {\n domain: Domain\n disableCollection?: boolean // For some special cases we could decide to disable collection and index creations at all.\n\n // A set of indexes we need to disable for domain\n // Disabled indexes will be removed\n disabled?: (FieldIndex<Doc> | string)[]\n\n // Additional indexes we could like to enabled\n indexes?: (FieldIndexConfig<Doc> | string)[]\n\n skip?: string[]\n}\n\nexport type WorkspaceMode =\n | 'manual-creation'\n | 'pending-creation' // -> 'creating'\n | 'creating' // -> 'active\n | 'upgrading' // -> 'active'\n | 'pending-deletion' // -> 'deleting'\n | 'deleting' // -> \"deleted\"\n | 'active'\n | 'deleted'\n | 'archiving-pending-backup' // -> 'cleaning'\n | 'archiving-backup' // -> 'archiving-pending-clean'\n | 'archiving-pending-clean' // -> 'archiving-clean'\n | 'archiving-clean' // -> 'archived'\n | 'archived'\n | 'migration-pending-backup' // -> 'migration-backup'\n | 'migration-backup' // -> 'migration-pending-cleanup'\n | 'migration-pending-clean' // -> 'migration-pending-cleaning'\n | 'migration-clean' // -> 'pending-restoring'\n | 'pending-restore' // -> 'restoring'\n | 'restoring' // -> 'active'\n\nexport type WorkspaceUserOperation = 'archive' | 'migrate-to' | 'unarchive' | 'delete' | 'reset-attempts'\n\nexport function isActiveMode (mode?: WorkspaceMode): boolean {\n return mode === 'active'\n}\nexport function isDeletingMode (mode: WorkspaceMode): boolean {\n return mode === 'pending-deletion' || mode === 'deleting' || mode === 'deleted'\n}\nexport function isArchivingMode (mode?: WorkspaceMode): boolean {\n return (\n mode === 'archiving-pending-backup' ||\n mode === 'archiving-backup' ||\n mode === 'archiving-pending-clean' ||\n mode === 'archiving-clean' ||\n mode === 'archived'\n )\n}\n\nexport function isMigrationMode (mode?: WorkspaceMode): boolean {\n return (\n mode === 'migration-pending-backup' ||\n mode === 'migration-backup' ||\n mode === 'migration-pending-clean' ||\n mode === 'migration-clean'\n )\n}\nexport function isRestoringMode (mode?: WorkspaceMode): boolean {\n return mode === 'restoring' || mode === 'pending-restore'\n}\n\nexport function isUpgradingMode (mode?: WorkspaceMode): boolean {\n return mode === 'upgrading'\n}\n\nexport type WorkspaceUpdateEvent =\n | 'ping'\n | 'create-started'\n | 'create-done'\n | 'upgrade-started'\n | 'upgrade-done'\n | 'restore-started'\n | 'restore-done'\n | 'progress'\n | 'migrate-backup-started' // -> state = 'migration-backup'\n | 'migrate-backup-done' // -> state = 'migration-pending-cleaning'\n | 'migrate-clean-started' // -> state = 'migration-cleaning'\n | 'migrate-clean-done' // -> state = 'pending-restoring'\n | 'archiving-backup-started' // -> state = 'archiving'\n | 'archiving-backup-done' // -> state = 'archiving-pending-cleaning'\n | 'archiving-clean-started'\n | 'archiving-clean-done'\n | 'archiving-done'\n | 'delete-started'\n | 'delete-done'\n\nexport interface WorkspaceInfo {\n uuid: WorkspaceUuid\n dataId?: WorkspaceDataId // Old workspace identifier. E.g. Database name in Mongo, bucket in R2, etc.\n name: string\n url: string\n region?: string\n branding?: string\n createdOn: number\n createdBy?: PersonUuid // Should always be set for NEW workspaces\n billingAccount?: PersonUuid // Should always be set for NEW workspaces\n allowReadOnlyGuest?: boolean // Should always be set for NEW workspaces\n allowGuestSignUp?: boolean // Should always be set for NEW workspaces\n passwordAgingRule?: number // in days\n}\n\nexport interface BackupStatus {\n dataSize: number\n blobsSize: number\n\n backupSize: number\n\n lastBackup: Timestamp\n backups: number\n}\n\nexport interface UsageStatus {\n usage: Record<string, number>\n startTime: Timestamp\n updateTime: Timestamp\n}\n\nexport interface WorkspaceInfoWithStatus extends WorkspaceInfo {\n isDisabled?: boolean\n versionMajor: number\n versionMinor: number\n versionPatch: number\n lastVisit?: number\n mode: WorkspaceMode\n processingProgress?: number\n backupInfo?: BackupStatus\n usageInfo?: UsageStatus\n processingAttemps: number\n}\n\nexport interface WorkspaceMemberInfo {\n person: AccountUuid\n role: AccountRole\n}\n\nexport enum SocialIdType {\n EMAIL = 'email',\n GITHUB = 'github',\n GOOGLE = 'google',\n PHONE = 'phone',\n OIDC = 'oidc',\n HULY = 'huly',\n TELEGRAM = 'telegram',\n HULY_ASSISTANT = 'huly-assistant'\n}\n\nexport interface SocialId {\n // generated ID so the actual social ID can be detached from a person w/o losing the ID in the linked database records\n _id: PersonId\n\n // Should never be changed after creation\n type: SocialIdType\n value: string\n key: string // Calculated from type and value. Just for convenience.\n\n displayValue?: string\n verifiedOn?: number\n\n isDeleted?: boolean // Social ids are soft-deleted so all objects created with them can still be properly displayed.\n}\n\nexport interface AccountInfo {\n timezone?: string\n locale?: string\n}\n\nexport type SocialKey = Pick<SocialId, 'type' | 'value'>\n\nexport interface ClassCollaborators<T extends Doc> extends Doc {\n attachedTo: Ref<Class<T>>\n fields: (keyof T)[] // PersonId | Ref<Employee> | PersonId[] | Ref<Employee>[]\n provideSecurity?: boolean // If true, will provide security for collaborators\n}\n\nexport interface Collaborator extends AttachedDoc {\n collaborator: AccountUuid\n}\n\n/**\n * @public\n */\nexport type IntegrationKind = string & { __IntegrationKind: true }\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA8KO,IAAK,YAAL,kBAAKA,eAAL;AAML,EAAAA,sBAAA;AAMA,EAAAA,sBAAA;AAGA,EAAAA,sBAAA;AAfU,SAAAA;AAAA,GAAA;AAoDL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gCAAA;AACA,EAAAA,gCAAA;AACA,EAAAA,gCAAA;AAHU,SAAAA;AAAA,GAAA;AAkGL,IAAK,gBAAL,kBAAKC,mBAAL;AACL,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,cAAW;AACX,EAAAA,eAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;AAqFL,MAAM,eAAe;AAKrB,MAAM,kBAAkB;AAKxB,MAAM,eAAe;AAKrB,MAAM,uBAAuB;AAK7B,MAAM,mBAAmB;AAKzB,MAAM,mBAAmB;AAKzB,MAAM,kBAAkB;AAKxB,MAAM,sBAAsB;AAc5B,MAAM,cAAc;AAKpB,MAAM,kBAAkB;AA6FxB,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA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YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,UAAO;AACP,EAAAA,cAAA,UAAO;AACP,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,oBAAiB;AARP,SAAAA;AAAA,GAAA;",
6
- "names": ["IndexKind", "ClassifierKind", "DateRangeMode", "AccountRole", "IndexOrder", "SocialIdType"]
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2020, 2021 Anticrm Platform Contributors.\n// Copyright \u00A9 2021, 2025 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\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//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport type { Asset, IntlString, Plugin } from '@hcengineering/platform'\nimport { Tx } from '.'\nimport type { DocumentQuery } from './storage'\nimport { type WorkspaceDataId, type WorkspaceUuid } from './utils'\n\n/**\n * @public\n */\nexport type Ref<T extends Doc> = string & { __ref: T }\n\n/**\n * @public\n */\nexport type PrimitiveType = number | string | boolean | undefined | Ref<Doc>\n\n/**\n * @public\n */\nexport type Timestamp = number\n\n/**\n * @public\n */\nexport type Markup = string\n\n/**\n * @public\n */\nexport type Hyperlink = string\n\n/**\n * @public\n */\nexport type CollectionSize<T> = T[]['length']\n\n/**\n * @public\n *\n * String representation of {@link https://www.npmjs.com/package/lexorank LexoRank} type\n */\nexport type Rank = string\n\n/**\n * @public\n *\n * Reference to blob containing snapshot of collaborative doc.\n */\nexport type MarkupBlobRef = Ref<Blob>\n\n/**\n * @public\n */\nexport interface Obj {\n _class: Ref<Class<this>>\n}\n\nexport interface Account {\n uuid: AccountUuid\n role: AccountRole\n primarySocialId: PersonId\n socialIds: PersonId[]\n fullSocialIds: SocialId[]\n}\n\n/**\n * @public\n * Global person UUID.\n */\nexport type PersonUuid = string & { __personUuid: true }\n\n/**\n * @public\n * Global person account UUID.\n * The same UUID as PersonUuid but for when account exists.\n */\nexport type AccountUuid = PersonUuid & { __accountUuid: true }\n\n/**\n * @public\n * Generated identifier of a social id linked to a global person.\n */\nexport type PersonId = string & { __personId: true }\n\nexport interface BasePerson {\n name: string\n personUuid?: PersonUuid\n}\n\n/**\n * @public\n */\nexport interface Doc<S extends Space = Space> extends Obj {\n _id: Ref<this>\n space: Ref<S>\n modifiedOn: Timestamp\n modifiedBy: PersonId\n createdBy?: PersonId // Marked as optional since it will be filled by platform.\n createdOn?: Timestamp // Marked as optional since it will be filled by platform.\n}\n\n/**\n * @public\n */\nexport type PropertyType = any\n\n/**\n * @public\n */\nexport interface UXObject extends Obj {\n label: IntlString\n icon?: Asset\n color?: number\n hidden?: boolean\n readonly?: boolean\n}\n\n/**\n * @public\n */\nexport interface Association extends Doc {\n classA: Ref<Class<Doc>>\n classB: Ref<Class<Doc>>\n nameA: string\n nameB: string\n type: '1:1' | '1:N' | 'N:N'\n automationOnly?: boolean\n}\n\n/**\n * @public\n */\nexport interface Relation extends Doc {\n docA: Ref<Doc>\n docB: Ref<Doc>\n association: Ref<Association>\n}\n\n/**\n * Describes an existing class field with reference to other document: which relations to follow when building documents graph.\n * @public\n */\nexport interface RelationMetadata extends Doc {\n /** Class (source) */\n sourceClass: Ref<Class<Doc>>\n /** Class referenced by the field (target) */\n targetClass: Ref<Class<Doc>>\n /** Field on the source class */\n field: string\n /** Whether this is a forward (source\u2192target) or inverse (target\u2192source) relation */\n direction?: 'forward' | 'inverse'\n}\n\n/**\n * @public\n */\nexport interface AttachedDoc<\n Parent extends Doc = Doc,\n Collection extends Extract<keyof Parent, string> | string = Extract<keyof Parent, string> | string,\n S extends Space = Space\n> extends Doc<S> {\n attachedTo: Ref<Parent>\n attachedToClass: Ref<Class<Parent>>\n collection: Collection\n}\n\n/**\n * @public\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport interface Type<T extends PropertyType> extends UXObject {}\n\n/**\n * @public\n */\nexport enum IndexKind {\n /**\n * Attribute with this index annotation should be added to elastic for search\n * Could be added to string or Ref attribute\n * TODO: rename properly for better code readability\n */\n FullText,\n /**\n * For attribute with this annotation should be created an index in mongo database\n *\n * Also mean to include into Elastic search.\n */\n Indexed,\n\n // Same as indexed but for descending\n IndexedDsc\n}\n\n/**\n * @public\n */\nexport interface Enum extends Doc {\n name: string\n enumValues: string[]\n}\n\n/**\n * @public\n */\nexport interface Attribute<T extends PropertyType> extends Doc, UXObject {\n attributeOf: Ref<Class<Obj>>\n name: string\n type: Type<T>\n index?: IndexKind\n shortLabel?: IntlString\n isCustom?: boolean\n defaultValue?: any\n automationOnly?: boolean\n rank?: Rank\n\n // Extra customization properties\n [key: string]: any\n}\n\n/**\n * @public\n */\nexport type AnyAttribute = Attribute<Type<any>>\n\n/**\n * @public\n */\nexport enum ClassifierKind {\n CLASS,\n INTERFACE,\n MIXIN\n}\n\n/**\n * @public\n */\nexport interface Classifier extends Doc, UXObject {\n kind: ClassifierKind\n}\n\n/**\n * @public\n */\nexport type Domain = string & { __domain: true }\n\n/**\n * @public\n */\nexport type OperationDomain = string & { __domain: true }\n\n/**\n * @public\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport interface Interface<T extends Doc> extends Classifier {\n extends?: Ref<Interface<Doc>>[]\n}\n\n/**\n * @public\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport interface Class<T extends Obj> extends Classifier {\n extends?: Ref<Class<Obj>>\n implements?: Ref<Interface<Doc>>[]\n domain?: Domain\n shortLabel?: string\n sortingKey?: string\n filteringKey?: string\n pluralLabel?: IntlString\n}\n\n/**\n * @public\n * Define a set of plugin to model document bindings.\n */\nexport interface PluginConfiguration extends Doc {\n pluginId: Plugin\n transactions: Ref<Doc>[]\n\n label: IntlString\n icon?: Asset\n description?: IntlString\n enabled: boolean\n\n // If set will not allow to disable this configuration\n system?: true\n\n // If set will not be shown in configuration UI or enabled\n hidden?: boolean\n\n // If specified, will show beta/testing label in UI.\n beta: boolean\n\n // If defined, will only remove classes in list.\n classFilter?: Ref<Class<Obj>>[]\n}\n\n/**\n * @public\n */\nexport type Mixin<T extends Doc> = Class<T>\n\n// D A T A\n\n/**\n * @public\n */\nexport type Data<T extends Doc> = Omit<T, keyof Doc>\n\n/**\n * @public\n */\nexport type AttachedData<T extends AttachedDoc> = Omit<T, keyof AttachedDoc>\n\n/**\n * @public\n */\nexport type DocData<T extends Doc> = T extends AttachedDoc ? AttachedData<T> : Data<T>\n\n// T Y P E S\n\n/**\n * @public\n */\nexport enum DateRangeMode {\n DATE = 'date',\n TIME = 'time',\n DATETIME = 'datetime',\n TIMEONLY = 'timeonly'\n}\n\n/**\n * @public\n */\nexport interface TypeDate extends Type<Date> {\n // If not set date mode default\n mode: DateRangeMode\n // If not set to true, will be false\n withShift: boolean\n}\n\n/**\n * @public\n */\nexport interface TypeIdentifier extends Type<string> {\n of: Ref<CustomSequence>\n}\n\n/**\n * @public\n */\nexport interface TypeNumber extends Type<number> {\n min?: number\n max?: number\n digits?: number // Number of digits after comma\n}\n\n/**\n * @public\n */\nexport interface RefTo<T extends Doc> extends Type<Ref<Class<T>>> {\n to: Ref<Class<T>>\n}\n\n/**\n * @public\n */\nexport interface Collection<T extends AttachedDoc> extends Type<CollectionSize<T>> {\n of: Ref<Class<T>>\n itemLabel?: IntlString\n}\n\n/**\n * @public\n */\nexport type Arr<T extends PropertyType> = T[]\n\n/**\n * @public\n */\nexport interface ArrOf<T extends PropertyType> extends Type<T[]> {\n of: Type<T>\n}\n\n/**\n * @public\n */\nexport interface EnumOf extends Type<string> {\n of: Ref<Enum>\n}\n\n/**\n * @public\n */\nexport interface TypeHyperlink extends Type<Hyperlink> {}\n\n/**\n * @public\n */\nexport interface TypeRank extends Type<Rank> {\n pos?: 'start' | 'end'\n}\n\n/**\n * @public\n *\n * A type for some custom serialized field with a set of editors\n */\nexport interface TypeAny<AnyComponent = any> extends Type<any> {\n presenter: AnyComponent\n editor?: AnyComponent\n}\n\n/**\n * @public\n */\nexport const DOMAIN_MODEL = 'model' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_MODEL_TX = 'model_tx' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_SPACE = 'space' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_CONFIGURATION = '_configuration' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_MIGRATION = '_migrations' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_TRANSIENT = 'transient' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_RELATION = 'relation' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_COLLABORATOR = 'collaborator' as Domain\n\n/**\n * @public\n */\nexport interface TransientConfiguration extends Class<Doc> {\n // If set will not store transient objects into memdb\n broadcastOnly: boolean\n}\n\n/**\n * Special domain to access s3 blob data.\n * @public\n */\nexport const DOMAIN_BLOB = 'blob' as Domain\n\n/**\n * @public\n */\nexport const DOMAIN_SEQUENCE = 'sequence' as Domain\n\n// S P A C E\n\n/**\n * @public\n */\nexport interface Space extends Doc {\n name: string\n description: string\n private: boolean\n members: AccountUuid[]\n archived: boolean\n owners?: AccountUuid[]\n autoJoin?: boolean\n /** If it includes {@link AccountRole.Guest}, that guest is auto-added to members on activation (see OnEmployeeCreate). */\n autoJoinForRoles?: AccountRole[]\n}\n\n/**\n * @public\n */\nexport interface SystemSpace extends Space {}\n\n/**\n * @public\n *\n * Space with custom configured type\n */\nexport interface TypedSpace extends Space {\n type: Ref<SpaceType>\n restricted?: boolean // if true user must have permission to any txes\n}\n\n/**\n * @public\n *\n * Is used to describe \"types\" for space type\n */\nexport interface SpaceTypeDescriptor extends Doc {\n name: IntlString\n description: IntlString\n icon: Asset\n baseClass: Ref<Class<Space>> // Child class of Space for which the space type can be defined\n availablePermissions: Ref<Permission>[]\n system?: boolean\n}\n\n/**\n * @public\n *\n * Customisable space type allowing to configure space roles and permissions within them\n */\nexport interface SpaceType extends Doc {\n name: string\n shortDescription?: string\n descriptor: Ref<SpaceTypeDescriptor>\n members?: AccountUuid[] // this members will be added automatically to new space, also change this fiield will affect existing spaces\n autoJoin?: boolean // if true, all new users will be added to space automatically\n targetClass: Ref<Class<Space>> // A dynamic mixin for Spaces to hold custom attributes and roles assignment of the space type\n roles: CollectionSize<Role>\n}\n\n/**\n * @public\n * Role defines permissions for employees assigned to this role within the space\n */\nexport interface Role extends AttachedDoc<SpaceType, 'roles'> {\n name: string\n permissions: Ref<Permission>[]\n}\n\n/**\n * @public\n * Defines assignment of employees to a role within a space\n */\nexport type RolesAssignment = Record<Ref<Role>, AccountUuid[] | undefined>\n\n/**\n * @public\n * Permission is a basic access control item in the system\n */\nexport interface Permission extends Doc {\n label: IntlString\n txClass?: Ref<Class<Tx>>\n forbid?: boolean\n objectClass?: Ref<Class<Doc>>\n scope?: 'space' | 'workspace'\n txMatch?: DocumentQuery<Tx>\n description?: IntlString\n icon?: Asset\n}\n\nexport interface AttributePermission extends Permission {\n attribute: Ref<AnyAttribute>\n}\n\nexport interface ClassPermission extends Permission {\n targetClass: Ref<Class<Doc>>\n}\n\n/**\n * @public\n */\nexport interface ModulePermissionGroup extends Doc {\n application: Ref<Doc>\n role: AccountRole\n permissions: Ref<Permission>[]\n disabledPermissions?: Ref<Permission>[]\n spaceClass?: Ref<Class<Space>>\n enabled: boolean\n order?: number\n}\n\n/**\n * @public\n */\nexport enum AccountRole {\n ReadOnlyGuest = 'READONLYGUEST',\n DocGuest = 'DocGuest',\n Guest = 'GUEST',\n User = 'USER',\n Maintainer = 'MAINTAINER',\n Owner = 'OWNER',\n Admin = 'ADMIN'\n}\n\n/**\n * @public\n */\nexport const roleOrder: Record<AccountRole, number> = {\n [AccountRole.ReadOnlyGuest]: 5,\n [AccountRole.DocGuest]: 10,\n [AccountRole.Guest]: 20,\n [AccountRole.User]: 30,\n [AccountRole.Maintainer]: 40,\n [AccountRole.Owner]: 50,\n [AccountRole.Admin]: 100\n}\n\nexport interface TxAccessLevel extends Class<Doc> {\n createAccessLevel?: AccountRole\n removeAccessLevel?: AccountRole\n updateAccessLevel?: AccountRole\n isIdentity?: boolean\n}\n\n/**\n * @public\n */\nexport interface Person {\n uuid: PersonUuid\n firstName: string\n lastName: string\n}\n\nexport interface PersonInfo extends BasePerson {\n socialIds: SocialId[]\n}\n\n/**\n * @public\n */\n// TODO: move to contact\nexport interface UserStatus extends Doc {\n online: boolean\n user: AccountUuid\n}\n\n/**\n * @public\n */\nexport interface Version extends Doc {\n major: number\n minor: number\n patch: number\n}\n\n/**\n * @public\n */\nexport interface MigrationState extends Doc {\n plugin: string\n state: string\n}\n\n/**\n * @public\n */\nexport function versionToString (version: Version | Data<Version>): string {\n return `${version?.major}.${version?.minor}.${version?.patch}`\n}\n\n/**\n * @public\n */\nexport interface Sequence extends Doc {\n attachedTo: Ref<Class<Doc>>\n sequence: number\n}\n\nexport interface CustomSequence extends Sequence {\n prefix: string\n}\n\n/**\n * @public\n */\nexport type BlobMetadata = Record<string, any>\n\n/**\n * @public\n *\n * A blob document to manage blob attached documents.\n *\n * _id: is a platform ID and it created using our regular generateId(),\n * and storageId is a provider specified storage id.\n */\nexport interface Blob extends Doc {\n // Provider\n provider: string\n // A provider specific id\n contentType: string\n // A etag for blob\n etag: string\n // Document version if supported by provider\n version: string | null\n // A document size\n size: number\n}\n\nexport interface BlobType {\n file: Ref<Blob>\n\n type: string\n\n name: string\n size: number\n\n metadata?: BlobMetadata\n}\n\nexport type Blobs = Record<string, BlobType>\n\n/**\n * For every blob will automatically add a lookup.\n *\n * It extends Blob to allow for $lookup operations work as expected.\n */\nexport interface BlobLookup extends Blob {\n // An URL document could be downloaded from, with ${id} to put blobId into\n downloadUrl: string\n downloadUrlExpire?: number\n}\n\n/**\n * @public\n *\n * If defined for class, this class will be enabled for embedding search like openai.\n */\nexport interface FullTextSearchContext extends Doc {\n toClass: Ref<Class<Doc>>\n fullTextSummary?: boolean\n forceIndex?: boolean\n}\n\n/**\n * @public\n */\nexport interface ConfigurationElement extends Class<Doc> {\n // Title will be presented to owner.\n title: IntlString\n // Group for grouping.\n group: IntlString\n}\n\n/**\n * @public\n *\n * Define configuration value configuration for workspace.\n *\n * Configuration is accessible only for owners of workspace and under hood services.\n */\nexport interface Configuration extends Doc {\n enabled: boolean\n}\n\n/**\n * @public\n */\nexport type RelatedDocument = Pick<Doc, '_id' | '_class'>\n\n/**\n * @public\n */\nexport enum IndexOrder {\n Ascending = 1,\n Descending = -1\n}\n\n/**\n * @public\n */\nexport type FieldIndex<T extends Doc> = {\n [P in keyof T]?: IndexOrder\n} & Record<string, IndexOrder>\n\nexport interface FieldIndexConfig<T extends Doc> {\n sparse?: boolean\n filter?: Omit<DocumentQuery<T>, '$search'>\n keys: FieldIndex<T> | string\n}\n\n/**\n * @public\n *\n * Mixin for extra indexing fields.\n */\nexport interface IndexingConfiguration<T extends Doc> extends Class<Doc> {\n // Define a list of extra index definitions.\n indexes: (string | FieldIndexConfig<T>)[]\n searchDisabled?: boolean\n}\n\nexport interface DomainIndexConfiguration extends Doc {\n domain: Domain\n disableCollection?: boolean // For some special cases we could decide to disable collection and index creations at all.\n\n // A set of indexes we need to disable for domain\n // Disabled indexes will be removed\n disabled?: (FieldIndex<Doc> | string)[]\n\n // Additional indexes we could like to enabled\n indexes?: (FieldIndexConfig<Doc> | string)[]\n\n skip?: string[]\n}\n\nexport type WorkspaceMode =\n | 'manual-creation'\n | 'pending-creation' // -> 'creating'\n | 'creating' // -> 'active\n | 'upgrading' // -> 'active'\n | 'pending-deletion' // -> 'deleting'\n | 'deleting' // -> \"deleted\"\n | 'active'\n | 'deleted'\n | 'archiving-pending-backup' // -> 'cleaning'\n | 'archiving-backup' // -> 'archiving-pending-clean'\n | 'archiving-pending-clean' // -> 'archiving-clean'\n | 'archiving-clean' // -> 'archived'\n | 'archived'\n | 'migration-pending-backup' // -> 'migration-backup'\n | 'migration-backup' // -> 'migration-pending-cleanup'\n | 'migration-pending-clean' // -> 'migration-pending-cleaning'\n | 'migration-clean' // -> 'pending-restoring'\n | 'pending-restore' // -> 'restoring'\n | 'restoring' // -> 'active'\n\nexport type WorkspaceUserOperation = 'archive' | 'migrate-to' | 'unarchive' | 'delete' | 'reset-attempts'\n\nexport function isActiveMode (mode?: WorkspaceMode): boolean {\n return mode === 'active'\n}\nexport function isDeletingMode (mode: WorkspaceMode): boolean {\n return mode === 'pending-deletion' || mode === 'deleting' || mode === 'deleted'\n}\nexport function isArchivingMode (mode?: WorkspaceMode): boolean {\n return (\n mode === 'archiving-pending-backup' ||\n mode === 'archiving-backup' ||\n mode === 'archiving-pending-clean' ||\n mode === 'archiving-clean' ||\n mode === 'archived'\n )\n}\n\nexport function isMigrationMode (mode?: WorkspaceMode): boolean {\n return (\n mode === 'migration-pending-backup' ||\n mode === 'migration-backup' ||\n mode === 'migration-pending-clean' ||\n mode === 'migration-clean'\n )\n}\nexport function isRestoringMode (mode?: WorkspaceMode): boolean {\n return mode === 'restoring' || mode === 'pending-restore'\n}\n\nexport function isUpgradingMode (mode?: WorkspaceMode): boolean {\n return mode === 'upgrading'\n}\n\nexport type WorkspaceUpdateEvent =\n | 'ping'\n | 'create-started'\n | 'create-done'\n | 'upgrade-started'\n | 'upgrade-done'\n | 'restore-started'\n | 'restore-done'\n | 'progress'\n | 'migrate-backup-started' // -> state = 'migration-backup'\n | 'migrate-backup-done' // -> state = 'migration-pending-cleaning'\n | 'migrate-clean-started' // -> state = 'migration-cleaning'\n | 'migrate-clean-done' // -> state = 'pending-restoring'\n | 'archiving-backup-started' // -> state = 'archiving'\n | 'archiving-backup-done' // -> state = 'archiving-pending-cleaning'\n | 'archiving-clean-started'\n | 'archiving-clean-done'\n | 'archiving-done'\n | 'delete-started'\n | 'delete-done'\n\nexport interface WorkspaceInfo {\n uuid: WorkspaceUuid\n dataId?: WorkspaceDataId // Old workspace identifier. E.g. Database name in Mongo, bucket in R2, etc.\n name: string\n url: string\n region?: string\n branding?: string\n createdOn: number\n createdBy?: PersonUuid // Should always be set for NEW workspaces\n billingAccount?: PersonUuid // Should always be set for NEW workspaces\n allowReadOnlyGuest?: boolean // Should always be set for NEW workspaces\n allowGuestSignUp?: boolean // Should always be set for NEW workspaces\n passwordAgingRule?: number // in days\n}\n\nexport interface BackupStatus {\n dataSize: number\n blobsSize: number\n\n backupSize: number\n\n lastBackup: Timestamp\n backups: number\n}\n\nexport interface UsageStatus {\n usage: Record<string, number>\n startTime: Timestamp\n updateTime: Timestamp\n}\n\nexport interface WorkspaceInfoWithStatus extends WorkspaceInfo {\n isDisabled?: boolean\n versionMajor: number\n versionMinor: number\n versionPatch: number\n lastVisit?: number\n mode: WorkspaceMode\n processingProgress?: number\n backupInfo?: BackupStatus\n usageInfo?: UsageStatus\n processingAttemps: number\n}\n\nexport interface WorkspaceMemberInfo {\n person: AccountUuid\n role: AccountRole\n}\n\nexport enum SocialIdType {\n EMAIL = 'email',\n GITHUB = 'github',\n GOOGLE = 'google',\n PHONE = 'phone',\n OIDC = 'oidc',\n HULY = 'huly',\n TELEGRAM = 'telegram',\n HULY_ASSISTANT = 'huly-assistant'\n}\n\nexport interface SocialId {\n // generated ID so the actual social ID can be detached from a person w/o losing the ID in the linked database records\n _id: PersonId\n\n // Should never be changed after creation\n type: SocialIdType\n value: string\n key: string // Calculated from type and value. Just for convenience.\n\n displayValue?: string\n verifiedOn?: number\n\n isDeleted?: boolean // Social ids are soft-deleted so all objects created with them can still be properly displayed.\n}\n\nexport interface AccountInfo {\n timezone?: string\n locale?: string\n tfaEnabled?: boolean\n}\n\nexport type SocialKey = Pick<SocialId, 'type' | 'value'>\n\nexport interface ClassCollaborators<T extends Doc> extends Doc {\n attachedTo: Ref<Class<T>>\n allFields?: boolean // for all (PersonId | Ref<Employee> | PersonId[] | Ref<Employee>[]) attributes\n fields: (keyof T)[] // PersonId | Ref<Employee> | PersonId[] | Ref<Employee>[]\n provideSecurity?: boolean // If true, will provide security for collaborators\n provideAttachedSecurity?: boolean // If true, will provide security for collaborators of attached doc\n}\n\nexport interface Collaborator extends AttachedDoc {\n collaborator: AccountUuid\n}\n\n/**\n * @public\n */\nexport type IntegrationKind = string & { __IntegrationKind: true }\n\n/**\n * @public\n */\nexport enum WorkspaceAccountPermission {\n /**\n * Allows users to import documents to workspace.\n */\n ImportDocument = 'ImportDocument'\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA8LO,IAAK,YAAL,kBAAKA,eAAL;AAML,EAAAA,sBAAA;AAMA,EAAAA,sBAAA;AAGA,EAAAA,sBAAA;AAfU,SAAAA;AAAA,GAAA;AAoDL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gCAAA;AACA,EAAAA,gCAAA;AACA,EAAAA,gCAAA;AAHU,SAAAA;AAAA,GAAA;AAkGL,IAAK,gBAAL,kBAAKC,mBAAL;AACL,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,cAAW;AACX,EAAAA,eAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;AA4FL,MAAM,eAAe;AAKrB,MAAM,kBAAkB;AAKxB,MAAM,eAAe;AAKrB,MAAM,uBAAuB;AAK7B,MAAM,mBAAmB;AAKzB,MAAM,mBAAmB;AAKzB,MAAM,kBAAkB;AAKxB,MAAM,sBAAsB;AAc5B,MAAM,cAAc;AAKpB,MAAM,kBAAkB;AAqHxB,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,mBAAgB;AAChB,EAAAA,aAAA,cAAW;AACX,EAAAA,aAAA,WAAQ;AACR,EAAAA,aAAA,UAAO;AACP,EAAAA,aAAA,gBAAa;AACb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A,cAAA,cAAW;AACX,EAAAA,cAAA,oBAAiB;AARP,SAAAA;AAAA,GAAA;AAsDL,IAAK,6BAAL,kBAAKC,gCAAL;AAIL,EAAAA,4BAAA,oBAAiB;AAJP,SAAAA;AAAA,GAAA;",
6
+ "names": ["IndexKind", "ClassifierKind", "DateRangeMode", "AccountRole", "IndexOrder", "SocialIdType", "WorkspaceAccountPermission"]
7
7
  }
@@ -36,7 +36,14 @@ function getTypeOf(obj) {
36
36
  if (Array.isArray(obj) && (!ste || !(Symbol.toStringTag in obj))) {
37
37
  return "Array";
38
38
  }
39
- const stringTag = ste && obj[Symbol.toStringTag];
39
+ let stringTag;
40
+ if (ste) {
41
+ try {
42
+ stringTag = obj[Symbol.toStringTag];
43
+ } catch {
44
+ stringTag = void 0;
45
+ }
46
+ }
40
47
  if (typeof stringTag === "string") {
41
48
  return stringTag;
42
49
  }
@@ -50,7 +57,11 @@ function getTypeOf(obj) {
50
57
  if (objPrototype === null) {
51
58
  return "Object";
52
59
  }
53
- return {}.toString.call(obj).slice(8, -1);
60
+ try {
61
+ return {}.toString.call(obj).slice(8, -1);
62
+ } catch {
63
+ return "Object";
64
+ }
54
65
  }
55
66
  __name(getTypeOf, "getTypeOf");
56
67
  function clone(obj, as, needAs, depth) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/clone.ts"],
4
- "sourcesContent": ["const se = typeof Symbol !== 'undefined'\nconst ste = se && typeof Symbol.toStringTag !== 'undefined'\n\nexport function getTypeOf (obj: any): string {\n const typeofObj = typeof obj\n if (typeofObj !== 'object') {\n return typeofObj\n }\n if (obj === null) {\n return 'null'\n }\n\n if (Array.isArray(obj) && (!ste || !(Symbol.toStringTag in obj))) {\n return 'Array'\n }\n\n const stringTag = ste && obj[Symbol.toStringTag]\n if (typeof stringTag === 'string') {\n return stringTag\n }\n\n const objPrototype = Object.getPrototypeOf(obj)\n\n if (objPrototype === RegExp.prototype) {\n return 'RegExp'\n }\n if (objPrototype === Date.prototype) {\n return 'Date'\n }\n\n if (objPrototype === null) {\n return 'Object'\n }\n return {}.toString.call(obj).slice(8, -1)\n}\n\nexport function clone (\n obj: any,\n as?: (doc: any, m: any) => any,\n needAs?: (value: any) => any | undefined,\n depth?: number\n): any {\n if (typeof obj === 'undefined') {\n return undefined\n }\n if (typeof obj === 'function') {\n return obj\n }\n if (depth === 0) {\n return obj\n }\n depth = depth === undefined ? depth : depth - 1\n const typeOf = getTypeOf(obj)\n if (typeOf === 'Date') {\n return new Date(obj.getTime())\n } else if (typeOf === 'Array' || typeOf === 'Object') {\n const isArray = Array.isArray(obj)\n const result: any = isArray ? [] : Object.assign({}, obj)\n for (const key in obj) {\n // include prototype properties\n const value = obj[key]\n const type = getTypeOf(value)\n if (type === 'Array') {\n result[key] = clone(value, as, needAs, depth)\n } else if (type === 'Object') {\n const valClone = clone(value, as, needAs, depth)\n result[key] = valClone\n } else if (type === 'Date') {\n result[key] = new Date(value.getTime())\n } else {\n if (isArray) {\n result[key] = value\n }\n }\n }\n if (typeOf === 'Object') {\n const m = needAs?.(obj)\n return m !== undefined && as !== undefined ? as(result, m) : result\n }\n return result\n } else {\n return obj\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,KAAK,OAAO,WAAW;AAC7B,MAAM,MAAM,MAAM,OAAO,OAAO,gBAAgB;AAEzC,SAAS,UAAW,KAAkB;AAC3C,QAAM,YAAY,OAAO;AACzB,MAAI,cAAc,UAAU;AAC1B,WAAO;AAAA,EACT;AACA,MAAI,QAAQ,MAAM;AAChB,WAAO;AAAA,EACT;AAEA,MAAI,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,EAAE,OAAO,eAAe,OAAO;AAChE,WAAO;AAAA,EACT;AAEA,QAAM,YAAY,OAAO,IAAI,OAAO,WAAW;AAC/C,MAAI,OAAO,cAAc,UAAU;AACjC,WAAO;AAAA,EACT;AAEA,QA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,IAAI,SAAS,GAAG;AACtB,aAAO,MAAM,UAAa,OAAO,SAAY,GAAG,QAAQ,CAAC,IAAI;AAAA,IAC/D;AACA,WAAO;AAAA,EACT,OAAO;AACL,WAAO;AAAA,EACT;AACF;AA/CgB;",
4
+ "sourcesContent": ["const se = typeof Symbol !== 'undefined'\nconst ste = se && typeof Symbol.toStringTag !== 'undefined'\n\nexport function getTypeOf (obj: any): string {\n const typeofObj = typeof obj\n if (typeofObj !== 'object') {\n return typeofObj\n }\n if (obj === null) {\n return 'null'\n }\n\n if (Array.isArray(obj) && (!ste || !(Symbol.toStringTag in obj))) {\n return 'Array'\n }\n\n let stringTag: string | undefined\n if (ste) {\n try {\n stringTag = obj[Symbol.toStringTag]\n } catch {\n stringTag = undefined\n }\n }\n if (typeof stringTag === 'string') {\n return stringTag\n }\n\n const objPrototype = Object.getPrototypeOf(obj)\n\n if (objPrototype === RegExp.prototype) {\n return 'RegExp'\n }\n if (objPrototype === Date.prototype) {\n return 'Date'\n }\n\n if (objPrototype === null) {\n return 'Object'\n }\n try {\n return {}.toString.call(obj).slice(8, -1)\n } catch {\n return 'Object'\n }\n}\n\nexport function clone (\n obj: any,\n as?: (doc: any, m: any) => any,\n needAs?: (value: any) => any | undefined,\n depth?: number\n): any {\n if (typeof obj === 'undefined') {\n return undefined\n }\n if (typeof obj === 'function') {\n return obj\n }\n if (depth === 0) {\n return obj\n }\n depth = depth === undefined ? depth : depth - 1\n const typeOf = getTypeOf(obj)\n if (typeOf === 'Date') {\n return new Date(obj.getTime())\n } else if (typeOf === 'Array' || typeOf === 'Object') {\n const isArray = Array.isArray(obj)\n const result: any = isArray ? [] : Object.assign({}, obj)\n for (const key in obj) {\n // include prototype properties\n const value = obj[key]\n const type = getTypeOf(value)\n if (type === 'Array') {\n result[key] = clone(value, as, needAs, depth)\n } else if (type === 'Object') {\n const valClone = clone(value, as, needAs, depth)\n result[key] = valClone\n } else if (type === 'Date') {\n result[key] = new Date(value.getTime())\n } else {\n if (isArray) {\n result[key] = value\n }\n }\n }\n if (typeOf === 'Object') {\n const m = needAs?.(obj)\n return m !== undefined && as !== undefined ? as(result, m) : result\n }\n return result\n } else {\n return obj\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,KAAK,OAAO,WAAW;AAC7B,MAAM,MAAM,MAAM,OAAO,OAAO,gBAAgB;AAEzC,SAAS,UAAW,KAAkB;AAC3C,QAAM,YAAY,OAAO;AACzB,MAAI,cAAc,UAAU;AAC1B,WAAO;AAAA,EACT;AACA,MAAI,QAAQ,MAAM;AAChB,WAAO;AAAA,EACT;AAEA,MAAI,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,EAAE,OAAO,eAAe,OAAO;AAChE,WAAO;AAAA,EACT;AAEA,MAAI;AACJ,MAAI,KAAK;AACP,QAAI;AACF,kBAAY,IAAI,OAAO,WAAW;AAAA,IACpC,QAAQ;AACN,kBAAY;AAAA,IACd;AAAA,EACF;AACA,MAAI,OAAO,cAAc,UAAU;AACjC,WAAO;AAAA,EACT;AAEA,QAAM,eAAe,OAAO,eAAe,GAAG;AAE9C,MAAI,iBAAiB,OAAO,WAAW;AACrC,WAAO;AAAA,EACT;AACA,MAAI,iBAAiB,KAAK,WAAW;AACnC,WAAO;AAAA,EACT;AAEA,MAAI,iBAAiB,MAAM;AACzB,WAAO;AAAA,EACT;AACA,MAAI;AACF,WAAO,CAAC,EAAE,SAAS,KAAK,GAAG,EAAE,MAAM,GAAG,EAAE;AAAA,EAC1C,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AA1CgB;AA4CT,SAAS,MACd,KACA,IACA,QACA,OACK;AACL,MAAI,OAAO,QAAQ,aAAa;AAC9B,WAAO;AAAA,EACT;AACA,MAAI,OAAO,QAAQ,YAAY;AAC7B,WAAO;AAAA,EACT;AACA,MAAI,UAAU,GAAG;AACf,WAAO;AAAA,EACT;AACA,UAAQ,UAAU,SAAY,QAAQ,QAAQ;AAC9C,QAAM,SAAS,UAAU,GAAG;AAC5B,MAAI,WAAW,QAAQ;AACrB,WAAO,IAAI,KAAK,IAAI,QAAQ,CAAC;AAAA,EAC/B,WAAW,WAAW,WAAW,WAAW,UAAU;AACpD,UAAM,UAAU,MAAM,QAAQ,GAAG;AACjC,UAAM,SAAc,UAAU,CAAC,IAAI,OAAO,OAAO,CAAC,GAAG,GAAG;AACxD,eAAW,OAAO,KAAK;AAErB,YAAM,QAAQ,IAAI,GAAG;AACrB,YAAM,OAAO,UAAU,KAAK;AAC5B,UAAI,SAAS,SAAS;AACpB,eAAO,GAAG,IAAI,MAAM,OAAO,IAAI,QAAQ,KAAK;AAAA,MAC9C,WAAW,SAAS,UAAU;AAC5B,cAAM,WAAW,MAAM,OAAO,IAAI,QAAQ,KAAK;AAC/C,eAAO,GAAG,IAAI;AAAA,MAChB,WAAW,SAAS,QAAQ;AAC1B,eAAO,GAAG,IAAI,IAAI,KAAK,MAAM,QAAQ,CAAC;AAAA,MACxC,OAAO;AACL,YAAI,SAAS;AACX,iBAAO,GAAG,IAAI;AAAA,QAChB;AAAA,MACF;AAAA,IACF;AACA,QAAI,WAAW,UAAU;AACvB,YAAM,IAAI,SAAS,GAAG;AACtB,aAAO,MAAM,UAAa,OAAO,SAAY,GAAG,QAAQ,CAAC,IAAI;AAAA,IAC/D;AACA,WAAO;AAAA,EACT,OAAO;AACL,WAAO;AAAA,EACT;AACF;AA/CgB;",
6
6
  "names": []
7
7
  }
@@ -68,6 +68,8 @@ var component_default = (0, import_platform.plugin)(coreId, {
68
68
  SpaceType: "",
69
69
  Role: "",
70
70
  Permission: "",
71
+ AttributePermission: "",
72
+ ClassPermission: "",
71
73
  Type: "",
72
74
  TypeRelation: "",
73
75
  TypeString: "",
@@ -105,10 +107,12 @@ var component_default = (0, import_platform.plugin)(coreId, {
105
107
  FullTextSearchContext: "",
106
108
  Association: "",
107
109
  Relation: "",
110
+ RelationMetadata: "",
108
111
  Sequence: "",
109
112
  CustomSequence: "",
110
113
  ClassCollaborators: "",
111
- Collaborator: ""
114
+ Collaborator: "",
115
+ ModulePermissionGroup: ""
112
116
  },
113
117
  icon: {
114
118
  TypeString: "",
@@ -130,7 +134,8 @@ var component_default = (0, import_platform.plugin)(coreId, {
130
134
  IndexConfiguration: "",
131
135
  SpacesTypeData: "",
132
136
  TransientConfiguration: "",
133
- TxAccessLevel: ""
137
+ TxAccessLevel: "",
138
+ VersionableClass: ""
134
139
  },
135
140
  space: {
136
141
  Tx: "",
@@ -207,6 +212,7 @@ var component_default = (0, import_platform.plugin)(coreId, {
207
212
  Account: "",
208
213
  StatusCategory: "",
209
214
  Rank: "",
215
+ Order: "",
210
216
  Members: "",
211
217
  Owners: "",
212
218
  Permission: "",
@@ -223,7 +229,12 @@ var component_default = (0, import_platform.plugin)(coreId, {
223
229
  UpdateSpaceDescription: "",
224
230
  ArchiveSpaceDescription: "",
225
231
  AutoJoin: "",
226
- AutoJoinDescr: ""
232
+ AutoJoinDescr: "",
233
+ AutoJoinGuests: "",
234
+ AutoJoinGuestsDescr: "",
235
+ RBAC: "",
236
+ RBACDescr: "",
237
+ Version: ""
227
238
  },
228
239
  descriptor: {
229
240
  SpacesType: ""
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/component.ts"],
4
- "sourcesContent": ["//\n// Copyright \u00A9 2020, 2021 Anticrm Platform Contributors.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\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//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\nimport type { Asset, IntlString, Metadata, Plugin, StatusCode } from '@hcengineering/platform'\nimport { plugin } from '@hcengineering/platform'\nimport type { BenchmarkDoc } from './benchmark'\nimport { AccountRole, TxAccessLevel } from './classes'\nimport type {\n Account,\n AnyAttribute,\n ArrOf,\n Association,\n AttachedDoc,\n Blob,\n Class,\n Collection,\n Configuration,\n ConfigurationElement,\n Doc,\n DomainIndexConfiguration,\n Enum,\n EnumOf,\n FullTextSearchContext,\n Hyperlink,\n IndexingConfiguration,\n Interface,\n MarkupBlobRef,\n MigrationState,\n Mixin,\n Obj,\n Permission,\n PersonId,\n PluginConfiguration,\n Rank,\n Ref,\n RefTo,\n RelatedDocument,\n Relation,\n Role,\n Sequence,\n CustomSequence,\n Space,\n SpaceType,\n SpaceTypeDescriptor,\n SystemSpace,\n Timestamp,\n TransientConfiguration,\n Type,\n TypeAny,\n TypedSpace,\n UserStatus,\n Version,\n AccountUuid,\n ClassCollaborators,\n Collaborator\n} from './classes'\nimport { type Status, type StatusCategory } from './status'\nimport type {\n Tx,\n TxApplyIf,\n TxCUD,\n TxCreateDoc,\n TxDomainEvent,\n TxMixin,\n TxModelUpgrade,\n TxRemoveDoc,\n TxUpdateDoc,\n TxWorkspaceEvent\n} from './tx'\n\n/**\n * @public\n */\nexport const coreId = 'core' as Plugin\n\n/**\n * @public\n */\n// TODO: consider removing email?\nexport const systemAccountEmail = 'anticrm@hc.engineering'\nexport const systemAccountUuid = '1749089e-22e6-48de-af4e-165e18fbd2f9' as AccountUuid\nexport const systemAccount: Account = {\n uuid: systemAccountUuid,\n role: AccountRole.Owner,\n primarySocialId: '' as PersonId,\n socialIds: [],\n fullSocialIds: []\n}\n\nexport const configUserAccountUuid = '0d94731c-0787-4bcd-aefe-304efc3706b1' as AccountUuid\n\nexport const readOnlyGuestAccountUuid = '83bbed9a-0867-4851-be32-31d49d1d42ce' as AccountUuid\n\nexport default plugin(coreId, {\n class: {\n Obj: '' as Ref<Class<Obj>>,\n Doc: '' as Ref<Class<Doc>>,\n Blob: '' as Ref<Class<Blob>>,\n AttachedDoc: '' as Ref<Class<AttachedDoc>>,\n Class: '' as Ref<Class<Class<Obj>>>,\n Mixin: '' as Ref<Class<Mixin<Doc>>>,\n Interface: '' as Ref<Class<Interface<Doc>>>,\n Attribute: '' as Ref<Class<AnyAttribute>>,\n Tx: '' as Ref<Class<Tx>>,\n TxModelUpgrade: '' as Ref<Class<TxModelUpgrade>>,\n TxWorkspaceEvent: '' as Ref<Class<TxWorkspaceEvent>>,\n TxDomainEvent: '' as Ref<Class<TxDomainEvent>>,\n TxApplyIf: '' as Ref<Class<TxApplyIf>>,\n TxCUD: '' as Ref<Class<TxCUD<Doc>>>,\n TxCreateDoc: '' as Ref<Class<TxCreateDoc<Doc>>>,\n TxMixin: '' as Ref<Class<TxMixin<Doc, Doc>>>,\n TxUpdateDoc: '' as Ref<Class<TxUpdateDoc<Doc>>>,\n TxRemoveDoc: '' as Ref<Class<TxRemoveDoc<Doc>>>,\n Space: '' as Ref<Class<Space>>,\n SystemSpace: '' as Ref<Class<SystemSpace>>,\n TypedSpace: '' as Ref<Class<TypedSpace>>,\n SpaceTypeDescriptor: '' as Ref<Class<SpaceTypeDescriptor>>,\n SpaceType: '' as Ref<Class<SpaceType>>,\n Role: '' as Ref<Class<Role>>,\n Permission: '' as Ref<Class<Permission>>,\n Type: '' as Ref<Class<Type<any>>>,\n TypeRelation: '' as Ref<Class<Type<string>>>,\n TypeString: '' as Ref<Class<Type<string>>>,\n TypeBlob: '' as Ref<Class<Type<Ref<Blob>>>>,\n TypeIntlString: '' as Ref<Class<Type<IntlString>>>,\n TypeHyperlink: '' as Ref<Class<Type<Hyperlink>>>,\n TypeNumber: '' as Ref<Class<Type<number>>>,\n TypeFileSize: '' as Ref<Class<Type<number>>>,\n TypeMarkup: '' as Ref<Class<Type<string>>>,\n TypeRank: '' as Ref<Class<Type<Rank>>>,\n TypeRecord: '' as Ref<Class<Type<Record<any, any>>>>,\n TypeBoolean: '' as Ref<Class<Type<boolean>>>,\n TypeTimestamp: '' as Ref<Class<Type<Timestamp>>>,\n TypeDate: '' as Ref<Class<Type<Timestamp | Date>>>,\n TypeCollaborativeDoc: '' as Ref<Class<Type<MarkupBlobRef>>>,\n TypePersonId: '' as Ref<Class<Type<string>>>,\n TypeAccountUuid: '' as Ref<Class<Type<string>>>,\n TypeIdentifier: '' as Ref<Class<Type<string>>>,\n RefTo: '' as Ref<Class<RefTo<Doc>>>,\n ArrOf: '' as Ref<Class<ArrOf<Doc>>>,\n Enum: '' as Ref<Class<Enum>>,\n EnumOf: '' as Ref<Class<EnumOf>>,\n Collection: '' as Ref<Class<Collection<AttachedDoc>>>,\n TypeAny: '' as Ref<Class<TypeAny>>,\n Version: '' as Ref<Class<Version>>,\n PluginConfiguration: '' as Ref<Class<PluginConfiguration>>,\n UserStatus: '' as Ref<Class<UserStatus>>,\n\n TypeRelatedDocument: '' as Ref<Class<Type<RelatedDocument>>>,\n DomainIndexConfiguration: '' as Ref<Class<DomainIndexConfiguration>>,\n\n Configuration: '' as Ref<Class<Configuration>>,\n\n Status: '' as Ref<Class<Status>>,\n StatusCategory: '' as Ref<Class<StatusCategory>>,\n MigrationState: '' as Ref<Class<MigrationState>>,\n\n BenchmarkDoc: '' as Ref<Class<BenchmarkDoc>>,\n FullTextSearchContext: '' as Ref<Mixin<FullTextSearchContext>>,\n Association: '' as Ref<Class<Association>>,\n Relation: '' as Ref<Class<Relation>>,\n Sequence: '' as Ref<Class<Sequence>>,\n CustomSequence: '' as Ref<Class<CustomSequence>>,\n ClassCollaborators: '' as Ref<Class<ClassCollaborators<Doc>>>,\n Collaborator: '' as Ref<Class<Collaborator>>\n },\n icon: {\n TypeString: '' as Asset,\n TypeBlob: '' as Asset,\n TypeHyperlink: '' as Asset,\n TypeNumber: '' as Asset,\n TypeMarkup: '' as Asset,\n TypeRank: '' as Asset,\n TypeRecord: '' as Asset,\n TypeBoolean: '' as Asset,\n TypeDate: '' as Asset,\n TypeRef: '' as Asset,\n TypeArray: '' as Asset,\n TypeEnumOf: '' as Asset,\n TypeCollection: '' as Asset\n },\n mixin: {\n ConfigurationElement: '' as Ref<Mixin<ConfigurationElement>>,\n IndexConfiguration: '' as Ref<Mixin<IndexingConfiguration<Doc>>>,\n SpacesTypeData: '' as Ref<Mixin<Space>>,\n TransientConfiguration: '' as Ref<Mixin<TransientConfiguration>>,\n TxAccessLevel: '' as Ref<Mixin<TxAccessLevel>>\n },\n space: {\n Tx: '' as Ref<Space>,\n DerivedTx: '' as Ref<Space>,\n Model: '' as Ref<Space>,\n Space: '' as Ref<TypedSpace>,\n Configuration: '' as Ref<Space>,\n Workspace: '' as Ref<Space>,\n Domain: '' as Ref<Space>\n },\n employee: {\n System: '' as Ref<any> // An system employee reference.\n },\n account: {\n System: '' as PersonId,\n ConfigUser: '' as PersonId\n },\n status: {\n ObjectNotFound: '' as StatusCode<{ _id: Ref<Doc> }>,\n ItemNotFound: '' as StatusCode<{ _id: Ref<Doc>, _localId: string }>\n },\n version: {\n Model: '' as Ref<Version>\n },\n string: {\n Id: '' as IntlString,\n Space: '' as IntlString,\n Spaces: '' as IntlString,\n SpacesDescription: '' as IntlString,\n TypedSpace: '' as IntlString,\n SpaceType: '' as IntlString,\n Modified: '' as IntlString,\n ModifiedDate: '' as IntlString,\n ModifiedBy: '' as IntlString,\n Class: '' as IntlString,\n AttachedTo: '' as IntlString,\n AttachedToClass: '' as IntlString,\n String: '' as IntlString,\n Record: '' as IntlString,\n Markup: '' as IntlString,\n Relation: '' as IntlString,\n Relations: '' as IntlString,\n AddRelation: '' as IntlString,\n Collaborative: '' as IntlString,\n CollaborativeDoc: '' as IntlString,\n MarkupBlobRef: '' as IntlString,\n PersonId: '' as IntlString,\n AccountId: '' as IntlString,\n Number: '' as IntlString,\n Boolean: '' as IntlString,\n Timestamp: '' as IntlString,\n Date: '' as IntlString,\n IntlString: '' as IntlString,\n Ref: '' as IntlString,\n Collection: '' as IntlString,\n Array: '' as IntlString,\n Name: '' as IntlString,\n Enum: '' as IntlString,\n Size: '' as IntlString,\n Description: '' as IntlString,\n ShortDescription: '' as IntlString,\n Descriptor: '' as IntlString,\n TargetClass: '' as IntlString,\n Role: '' as IntlString,\n Roles: '' as IntlString,\n Hyperlink: '' as IntlString,\n Private: '' as IntlString,\n Object: '' as IntlString,\n System: '' as IntlString,\n CreatedBy: '' as IntlString,\n CreatedDate: '' as IntlString,\n Status: '' as IntlString,\n Account: '' as IntlString,\n StatusCategory: '' as IntlString,\n Rank: '' as IntlString,\n Members: '' as IntlString,\n Owners: '' as IntlString,\n Permission: '' as IntlString,\n CreateObject: '' as IntlString,\n UpdateObject: '' as IntlString,\n DeleteObject: '' as IntlString,\n ForbidDeleteObject: '' as IntlString,\n UpdateSpace: '' as IntlString,\n ArchiveSpace: '' as IntlString,\n CreateObjectDescription: '' as IntlString,\n UpdateObjectDescription: '' as IntlString,\n DeleteObjectDescription: '' as IntlString,\n ForbidDeleteObjectDescription: '' as IntlString,\n UpdateSpaceDescription: '' as IntlString,\n ArchiveSpaceDescription: '' as IntlString,\n AutoJoin: '' as IntlString,\n AutoJoinDescr: '' as IntlString\n },\n descriptor: {\n SpacesType: '' as Ref<SpaceTypeDescriptor>\n },\n spaceType: {\n SpacesType: '' as Ref<SpaceType>\n },\n permission: {\n CreateObject: '' as Ref<Permission>,\n UpdateObject: '' as Ref<Permission>,\n DeleteObject: '' as Ref<Permission>,\n ForbidDeleteObject: '' as Ref<Permission>,\n UpdateSpace: '' as Ref<Permission>,\n ArchiveSpace: '' as Ref<Permission>\n },\n role: {\n Admin: '' as Ref<Role>\n },\n metadata: {\n DisablePermissions: '' as Metadata<boolean>\n }\n})\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,sBAAuB;AAEvB,qBAA2C;AAmEpC,MAAM,SAAS;AAMf,MAAM,qBAAqB;AAC3B,MAAM,oBAAoB;AAC1B,MAAM,gBAAyB;AAAA,EACpC,MAAM;AAAA,EACN,MAAM,2BAAY;AAAA,EAClB,iBAAiB;AAAA,EACjB,WAAW,C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.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\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//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\nimport type { Asset, IntlString, Metadata, Plugin, StatusCode } from '@hcengineering/platform'\nimport { plugin } from '@hcengineering/platform'\nimport type { BenchmarkDoc } from './benchmark'\nimport type {\n Account,\n AccountUuid,\n AnyAttribute,\n ArrOf,\n Association,\n AttachedDoc,\n AttributePermission,\n Blob,\n Class,\n ClassCollaborators,\n ClassPermission,\n Collaborator,\n Collection,\n Configuration,\n ConfigurationElement,\n CustomSequence,\n Doc,\n DomainIndexConfiguration,\n Enum,\n EnumOf,\n FullTextSearchContext,\n Hyperlink,\n IndexingConfiguration,\n Interface,\n MarkupBlobRef,\n MigrationState,\n Mixin,\n ModulePermissionGroup,\n Obj,\n Permission,\n PersonId,\n PluginConfiguration,\n Rank,\n Ref,\n RefTo,\n RelatedDocument,\n Relation,\n RelationMetadata,\n Role,\n Sequence,\n Space,\n SpaceType,\n SpaceTypeDescriptor,\n SystemSpace,\n Timestamp,\n TransientConfiguration,\n Type,\n TypeAny,\n TypedSpace,\n UserStatus,\n Version\n} from './classes'\nimport { AccountRole, TxAccessLevel } from './classes'\nimport { type Status, type StatusCategory } from './status'\nimport type {\n Tx,\n TxApplyIf,\n TxCUD,\n TxCreateDoc,\n TxDomainEvent,\n TxMixin,\n TxModelUpgrade,\n TxRemoveDoc,\n TxUpdateDoc,\n TxWorkspaceEvent\n} from './tx'\nimport { VersionableClass } from './versioning'\n\n/**\n * @public\n */\nexport const coreId = 'core' as Plugin\n\n/**\n * @public\n */\n// TODO: consider removing email?\nexport const systemAccountEmail = 'anticrm@hc.engineering'\nexport const systemAccountUuid = '1749089e-22e6-48de-af4e-165e18fbd2f9' as AccountUuid\nexport const systemAccount: Account = {\n uuid: systemAccountUuid,\n role: AccountRole.Owner,\n primarySocialId: '' as PersonId,\n socialIds: [],\n fullSocialIds: []\n}\n\nexport const configUserAccountUuid = '0d94731c-0787-4bcd-aefe-304efc3706b1' as AccountUuid\n\nexport const readOnlyGuestAccountUuid = '83bbed9a-0867-4851-be32-31d49d1d42ce' as AccountUuid\n\nexport default plugin(coreId, {\n class: {\n Obj: '' as Ref<Class<Obj>>,\n Doc: '' as Ref<Class<Doc>>,\n Blob: '' as Ref<Class<Blob>>,\n AttachedDoc: '' as Ref<Class<AttachedDoc>>,\n Class: '' as Ref<Class<Class<Obj>>>,\n Mixin: '' as Ref<Class<Mixin<Doc>>>,\n Interface: '' as Ref<Class<Interface<Doc>>>,\n Attribute: '' as Ref<Class<AnyAttribute>>,\n Tx: '' as Ref<Class<Tx>>,\n TxModelUpgrade: '' as Ref<Class<TxModelUpgrade>>,\n TxWorkspaceEvent: '' as Ref<Class<TxWorkspaceEvent>>,\n TxDomainEvent: '' as Ref<Class<TxDomainEvent>>,\n TxApplyIf: '' as Ref<Class<TxApplyIf>>,\n TxCUD: '' as Ref<Class<TxCUD<Doc>>>,\n TxCreateDoc: '' as Ref<Class<TxCreateDoc<Doc>>>,\n TxMixin: '' as Ref<Class<TxMixin<Doc, Doc>>>,\n TxUpdateDoc: '' as Ref<Class<TxUpdateDoc<Doc>>>,\n TxRemoveDoc: '' as Ref<Class<TxRemoveDoc<Doc>>>,\n Space: '' as Ref<Class<Space>>,\n SystemSpace: '' as Ref<Class<SystemSpace>>,\n TypedSpace: '' as Ref<Class<TypedSpace>>,\n SpaceTypeDescriptor: '' as Ref<Class<SpaceTypeDescriptor>>,\n SpaceType: '' as Ref<Class<SpaceType>>,\n Role: '' as Ref<Class<Role>>,\n Permission: '' as Ref<Class<Permission>>,\n AttributePermission: '' as Ref<Class<AttributePermission>>,\n ClassPermission: '' as Ref<Class<ClassPermission>>,\n Type: '' as Ref<Class<Type<any>>>,\n TypeRelation: '' as Ref<Class<Type<string>>>,\n TypeString: '' as Ref<Class<Type<string>>>,\n TypeBlob: '' as Ref<Class<Type<Ref<Blob>>>>,\n TypeIntlString: '' as Ref<Class<Type<IntlString>>>,\n TypeHyperlink: '' as Ref<Class<Type<Hyperlink>>>,\n TypeNumber: '' as Ref<Class<Type<number>>>,\n TypeFileSize: '' as Ref<Class<Type<number>>>,\n TypeMarkup: '' as Ref<Class<Type<string>>>,\n TypeRank: '' as Ref<Class<Type<Rank>>>,\n TypeRecord: '' as Ref<Class<Type<Record<any, any>>>>,\n TypeBoolean: '' as Ref<Class<Type<boolean>>>,\n TypeTimestamp: '' as Ref<Class<Type<Timestamp>>>,\n TypeDate: '' as Ref<Class<Type<Timestamp | Date>>>,\n TypeCollaborativeDoc: '' as Ref<Class<Type<MarkupBlobRef>>>,\n TypePersonId: '' as Ref<Class<Type<string>>>,\n TypeAccountUuid: '' as Ref<Class<Type<string>>>,\n TypeIdentifier: '' as Ref<Class<Type<string>>>,\n RefTo: '' as Ref<Class<RefTo<Doc>>>,\n ArrOf: '' as Ref<Class<ArrOf<Doc>>>,\n Enum: '' as Ref<Class<Enum>>,\n EnumOf: '' as Ref<Class<EnumOf>>,\n Collection: '' as Ref<Class<Collection<AttachedDoc>>>,\n TypeAny: '' as Ref<Class<TypeAny>>,\n Version: '' as Ref<Class<Version>>,\n PluginConfiguration: '' as Ref<Class<PluginConfiguration>>,\n UserStatus: '' as Ref<Class<UserStatus>>,\n\n TypeRelatedDocument: '' as Ref<Class<Type<RelatedDocument>>>,\n DomainIndexConfiguration: '' as Ref<Class<DomainIndexConfiguration>>,\n\n Configuration: '' as Ref<Class<Configuration>>,\n\n Status: '' as Ref<Class<Status>>,\n StatusCategory: '' as Ref<Class<StatusCategory>>,\n MigrationState: '' as Ref<Class<MigrationState>>,\n\n BenchmarkDoc: '' as Ref<Class<BenchmarkDoc>>,\n FullTextSearchContext: '' as Ref<Mixin<FullTextSearchContext>>,\n Association: '' as Ref<Class<Association>>,\n Relation: '' as Ref<Class<Relation>>,\n RelationMetadata: '' as Ref<Class<RelationMetadata>>,\n Sequence: '' as Ref<Class<Sequence>>,\n CustomSequence: '' as Ref<Class<CustomSequence>>,\n ClassCollaborators: '' as Ref<Class<ClassCollaborators<Doc>>>,\n Collaborator: '' as Ref<Class<Collaborator>>,\n ModulePermissionGroup: '' as Ref<Class<ModulePermissionGroup>>\n },\n icon: {\n TypeString: '' as Asset,\n TypeBlob: '' as Asset,\n TypeHyperlink: '' as Asset,\n TypeNumber: '' as Asset,\n TypeMarkup: '' as Asset,\n TypeRank: '' as Asset,\n TypeRecord: '' as Asset,\n TypeBoolean: '' as Asset,\n TypeDate: '' as Asset,\n TypeRef: '' as Asset,\n TypeArray: '' as Asset,\n TypeEnumOf: '' as Asset,\n TypeCollection: '' as Asset\n },\n mixin: {\n ConfigurationElement: '' as Ref<Mixin<ConfigurationElement>>,\n IndexConfiguration: '' as Ref<Mixin<IndexingConfiguration<Doc>>>,\n SpacesTypeData: '' as Ref<Mixin<Space>>,\n TransientConfiguration: '' as Ref<Mixin<TransientConfiguration>>,\n TxAccessLevel: '' as Ref<Mixin<TxAccessLevel>>,\n VersionableClass: '' as Ref<Mixin<VersionableClass>>\n },\n space: {\n Tx: '' as Ref<Space>,\n DerivedTx: '' as Ref<Space>,\n Model: '' as Ref<Space>,\n Space: '' as Ref<TypedSpace>,\n Configuration: '' as Ref<Space>,\n Workspace: '' as Ref<Space>,\n Domain: '' as Ref<Space>\n },\n employee: {\n System: '' as Ref<any> // An system employee reference.\n },\n account: {\n System: '' as PersonId,\n ConfigUser: '' as PersonId\n },\n status: {\n ObjectNotFound: '' as StatusCode<{ _id: Ref<Doc> }>,\n ItemNotFound: '' as StatusCode<{ _id: Ref<Doc>, _localId: string }>\n },\n version: {\n Model: '' as Ref<Version>\n },\n string: {\n Id: '' as IntlString,\n Space: '' as IntlString,\n Spaces: '' as IntlString,\n SpacesDescription: '' as IntlString,\n TypedSpace: '' as IntlString,\n SpaceType: '' as IntlString,\n Modified: '' as IntlString,\n ModifiedDate: '' as IntlString,\n ModifiedBy: '' as IntlString,\n Class: '' as IntlString,\n AttachedTo: '' as IntlString,\n AttachedToClass: '' as IntlString,\n String: '' as IntlString,\n Record: '' as IntlString,\n Markup: '' as IntlString,\n Relation: '' as IntlString,\n Relations: '' as IntlString,\n AddRelation: '' as IntlString,\n Collaborative: '' as IntlString,\n CollaborativeDoc: '' as IntlString,\n MarkupBlobRef: '' as IntlString,\n PersonId: '' as IntlString,\n AccountId: '' as IntlString,\n Number: '' as IntlString,\n Boolean: '' as IntlString,\n Timestamp: '' as IntlString,\n Date: '' as IntlString,\n IntlString: '' as IntlString,\n Ref: '' as IntlString,\n Collection: '' as IntlString,\n Array: '' as IntlString,\n Name: '' as IntlString,\n Enum: '' as IntlString,\n Size: '' as IntlString,\n Description: '' as IntlString,\n ShortDescription: '' as IntlString,\n Descriptor: '' as IntlString,\n TargetClass: '' as IntlString,\n Role: '' as IntlString,\n Roles: '' as IntlString,\n Hyperlink: '' as IntlString,\n Private: '' as IntlString,\n Object: '' as IntlString,\n System: '' as IntlString,\n CreatedBy: '' as IntlString,\n CreatedDate: '' as IntlString,\n Status: '' as IntlString,\n Account: '' as IntlString,\n StatusCategory: '' as IntlString,\n Rank: '' as IntlString,\n Order: '' as IntlString,\n Members: '' as IntlString,\n Owners: '' as IntlString,\n Permission: '' as IntlString,\n CreateObject: '' as IntlString,\n UpdateObject: '' as IntlString,\n DeleteObject: '' as IntlString,\n ForbidDeleteObject: '' as IntlString,\n UpdateSpace: '' as IntlString,\n ArchiveSpace: '' as IntlString,\n CreateObjectDescription: '' as IntlString,\n UpdateObjectDescription: '' as IntlString,\n DeleteObjectDescription: '' as IntlString,\n ForbidDeleteObjectDescription: '' as IntlString,\n UpdateSpaceDescription: '' as IntlString,\n ArchiveSpaceDescription: '' as IntlString,\n AutoJoin: '' as IntlString,\n AutoJoinDescr: '' as IntlString,\n AutoJoinGuests: '' as IntlString,\n AutoJoinGuestsDescr: '' as IntlString,\n RBAC: '' as IntlString,\n RBACDescr: '' as IntlString,\n Version: '' as IntlString\n },\n descriptor: {\n SpacesType: '' as Ref<SpaceTypeDescriptor>\n },\n spaceType: {\n SpacesType: '' as Ref<SpaceType>\n },\n permission: {\n CreateObject: '' as Ref<Permission>,\n UpdateObject: '' as Ref<Permission>,\n DeleteObject: '' as Ref<Permission>,\n ForbidDeleteObject: '' as Ref<Permission>,\n UpdateSpace: '' as Ref<Permission>,\n ArchiveSpace: '' as Ref<Permission>\n },\n role: {\n Admin: '' as Ref<Role>\n },\n metadata: {\n DisablePermissions: '' as Metadata<boolean>\n }\n})\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,sBAAuB;AAuDvB,qBAA2C;AAmBpC,MAAM,SAAS;AAMf,MAAM,qBAAqB;AAC3B,MAAM,oBAAoB;AAC1B,MAAM,gBAAyB;AAAA,EACpC,MAAM;AAAA,EACN,MAAM,2BAAY;AAAA,EAClB,iBAAiB;AAAA,EACjB,WAAW,CAAC;AAAA,EACZ,eAAe,CAAC;AAClB;AAEO,MAAM,wBAAwB;AAE9B,MAAM,2BAA2B;AAExC,IAAO,wBAAQ,wBAAO,QAAQ;AAAA,EAC5B,OAAO;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,IACP,OAAO;AAAA,IACP,WAAW;AAAA,IACX,WAAW;AAAA,IACX,IAAI;AAAA,IACJ,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,WAAW;AAAA,IACX,OAAO;AAAA,IACP,aAAa;AAAA,IACb,SAAS;AAAA,IACT,aAAa;AAAA,IACb,aAAa;AAAA,IACb,OAAO;AAAA,IACP,aAAa;AAAA,IACb,YAAY;AAAA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A,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,aAAa;AAAA,IACb,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,MAAM;AAAA,IACN,OAAO;AAAA,IACP,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,cAAc;AAAA,IACd,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,aAAa;AAAA,IACb,cAAc;AAAA,IACd,yBAAyB;AAAA,IACzB,yBAAyB;AAAA,IACzB,yBAAyB;AAAA,IACzB,+BAA+B;AAAA,IAC/B,wBAAwB;AAAA,IACxB,yBAAyB;AAAA,IACzB,UAAU;AAAA,IACV,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,qBAAqB;AAAA,IACrB,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EACX;AAAA,EACA,YAAY;AAAA,IACV,YAAY;AAAA,EACd;AAAA,EACA,WAAW;AAAA,IACT,YAAY;AAAA,EACd;AAAA,EACA,YAAY;AAAA,IACV,cAAc;AAAA,IACd,cAAc;AAAA,IACd,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,aAAa;AAAA,IACb,cAAc;AAAA,EAChB;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA,UAAU;AAAA,IACR,oBAAoB;AAAA,EACtB;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -40,6 +40,7 @@ __export(index_exports, {
40
40
  module.exports = __toCommonJS(index_exports);
41
41
  var import_component = __toESM(require("./component"));
42
42
  __reExport(index_exports, require("./classes"), module.exports);
43
+ __reExport(index_exports, require("./autoJoinRoles"), module.exports);
43
44
  __reExport(index_exports, require("./client"), module.exports);
44
45
  __reExport(index_exports, require("./collaboration"), module.exports);
45
46
  var import_component2 = require("./component");
@@ -61,5 +62,6 @@ __reExport(index_exports, require("./common"), module.exports);
61
62
  __reExport(index_exports, require("./time"), module.exports);
62
63
  __reExport(index_exports, require("./benchmark"), module.exports);
63
64
  __reExport(index_exports, require("./collaborators"), module.exports);
65
+ __reExport(index_exports, require("./versioning"), module.exports);
64
66
  var index_default = import_component.default;
65
67
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts"],
4
- "sourcesContent": ["//\n// Copyright \u00A9 2020, 2021 Anticrm Platform Contributors.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\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//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport core from './component'\n\nexport * from './classes'\nexport * from './client'\nexport * from './collaboration'\nexport {\n coreId,\n systemAccountUuid,\n readOnlyGuestAccountUuid,\n systemAccountEmail,\n systemAccount,\n configUserAccountUuid\n} from './component'\nexport * from './hierarchy'\nexport * from '@hcengineering/measurements'\nexport * from './memdb'\nexport * from './objvalue'\nexport * from './operations'\nexport * from './operator'\nexport * from './query'\nexport * from './server'\nexport * from './storage'\nexport * from './tx'\nexport * from './utils'\nexport * from './backup'\nexport * from './status'\nexport * from './clone'\nexport * from './common'\nexport * from './time'\nexport * from './benchmark'\nexport * from './collaborators'\n\nexport default core\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcA,uBAAiB;AAEjB,0BAAc,sBAhBd;AAiBA,0BAAc,qBAjBd;AAkBA,0BAAc,4BAlBd;AAmBA,IAAAA,oBAOO;AACP,0BAAc,wBA3Bd;AA4BA,0BAAc,wCA5Bd;AA6BA,0BAAc,oBA7Bd;AA8BA,0BAAc,uBA9Bd;AA+BA,0BAAc,yBA/Bd;AAgCA,0BAAc,uBAhCd;AAiCA,0BAAc,oBAjCd;AAkCA,0BAAc,qBAlCd;AAmCA,0BAAc,sBAnCd;AAoCA,0BAAc,iBApCd;AAqCA,0BAAc,oBArCd;AAsCA,0BAAc,qBAtCd;AAuCA,0BAAc,qBAvCd;AAwCA,0BAAc,oBAxCd;AAyCA,0BAAc,qBAzCd;AA0CA,0BAAc,mBA1Cd;AA2CA,0BAAc,wBA3Cd;AA4CA,0BAAc,4BA5Cd;AA8CA,IAAO,gBAAQ,iBAAAC;",
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2020, 2021 Anticrm Platform Contributors.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\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//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport core from './component'\n\nexport * from './classes'\nexport * from './autoJoinRoles'\nexport * from './client'\nexport * from './collaboration'\nexport {\n coreId,\n systemAccountUuid,\n readOnlyGuestAccountUuid,\n systemAccountEmail,\n systemAccount,\n configUserAccountUuid\n} from './component'\nexport * from './hierarchy'\nexport * from '@hcengineering/measurements'\nexport * from './memdb'\nexport * from './objvalue'\nexport * from './operations'\nexport * from './operator'\nexport * from './query'\nexport * from './server'\nexport * from './storage'\nexport * from './tx'\nexport * from './utils'\nexport * from './backup'\nexport * from './status'\nexport * from './clone'\nexport * from './common'\nexport * from './time'\nexport * from './benchmark'\nexport * from './collaborators'\nexport * from './versioning'\n\nexport default core\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcA,uBAAiB;AAEjB,0BAAc,sBAhBd;AAiBA,0BAAc,4BAjBd;AAkBA,0BAAc,qBAlBd;AAmBA,0BAAc,4BAnBd;AAoBA,IAAAA,oBAOO;AACP,0BAAc,wBA5Bd;AA6BA,0BAAc,wCA7Bd;AA8BA,0BAAc,oBA9Bd;AA+BA,0BAAc,uBA/Bd;AAgCA,0BAAc,yBAhCd;AAiCA,0BAAc,uBAjCd;AAkCA,0BAAc,oBAlCd;AAmCA,0BAAc,qBAnCd;AAoCA,0BAAc,sBApCd;AAqCA,0BAAc,iBArCd;AAsCA,0BAAc,oBAtCd;AAuCA,0BAAc,qBAvCd;AAwCA,0BAAc,qBAxCd;AAyCA,0BAAc,oBAzCd;AA0CA,0BAAc,qBA1Cd;AA2CA,0BAAc,mBA3Cd;AA4CA,0BAAc,wBA5Cd;AA6CA,0BAAc,4BA7Cd;AA8CA,0BAAc,yBA9Cd;AAgDA,IAAO,gBAAQ,iBAAAC;",
6
6
  "names": ["import_component", "core"]
7
7
  }