@bgx4k3p/huly-mcp-server 2.2.4 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +186 -56
- package/node_modules/@hcengineering/account-client/lib/__tests__/utils.test.js +249 -0
- package/node_modules/@hcengineering/account-client/lib/__tests__/utils.test.js.map +7 -0
- package/node_modules/@hcengineering/account-client/lib/client.js +88 -3
- package/node_modules/@hcengineering/account-client/lib/client.js.map +2 -2
- package/node_modules/@hcengineering/account-client/lib/types.js.map +2 -2
- package/node_modules/@hcengineering/account-client/lib/utils.js +50 -0
- package/node_modules/@hcengineering/account-client/lib/utils.js.map +2 -2
- package/node_modules/@hcengineering/account-client/package.json +22 -19
- package/node_modules/@hcengineering/account-client/src/__tests__/utils.test.ts +304 -0
- package/node_modules/@hcengineering/account-client/src/client.ts +127 -6
- package/node_modules/@hcengineering/account-client/src/types.ts +7 -0
- package/node_modules/@hcengineering/account-client/src/utils.ts +65 -1
- package/node_modules/@hcengineering/analytics/lib/index.js +1 -1
- package/node_modules/@hcengineering/analytics/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/analytics/package.json +19 -16
- package/node_modules/@hcengineering/analytics/src/index.ts +2 -1
- package/node_modules/@hcengineering/api-client/lib/client.js +9 -4
- package/node_modules/@hcengineering/api-client/lib/client.js.map +2 -2
- package/node_modules/@hcengineering/api-client/lib/rest/adapter.js +64 -0
- package/node_modules/@hcengineering/api-client/lib/rest/adapter.js.map +7 -0
- package/node_modules/@hcengineering/api-client/lib/rest/index.js +2 -0
- package/node_modules/@hcengineering/api-client/lib/rest/index.js.map +2 -2
- package/node_modules/@hcengineering/api-client/lib/socket/node.js +5 -1
- package/node_modules/@hcengineering/api-client/lib/socket/node.js.map +2 -2
- package/node_modules/@hcengineering/api-client/package.json +28 -25
- package/node_modules/@hcengineering/api-client/src/client.ts +10 -1
- package/node_modules/@hcengineering/api-client/src/rest/adapter.ts +96 -0
- package/node_modules/@hcengineering/api-client/src/rest/index.ts +1 -0
- package/node_modules/@hcengineering/api-client/src/socket/node.ts +6 -1
- package/node_modules/@hcengineering/chunter/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/chunter/package.json +13 -10
- package/node_modules/@hcengineering/client/package.json +21 -18
- package/node_modules/@hcengineering/client-resources/package.json +24 -21
- package/node_modules/@hcengineering/collaborator-client/package.json +21 -18
- package/node_modules/@hcengineering/contact/lib/__tests__/workspaceMemberStatusUtils.test.js +38 -0
- package/node_modules/@hcengineering/contact/lib/__tests__/workspaceMemberStatusUtils.test.js.map +7 -0
- package/node_modules/@hcengineering/contact/lib/index.js +13 -4
- package/node_modules/@hcengineering/contact/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/contact/lib/types.js.map +1 -1
- package/node_modules/@hcengineering/contact/lib/utils.js +132 -108
- package/node_modules/@hcengineering/contact/lib/utils.js.map +3 -3
- package/node_modules/@hcengineering/contact/lib/workspaceMemberStatusUtils.js +79 -0
- package/node_modules/@hcengineering/contact/lib/workspaceMemberStatusUtils.js.map +7 -0
- package/node_modules/@hcengineering/contact/package.json +12 -9
- package/node_modules/@hcengineering/core/CHANGELOG.md +9 -1
- package/node_modules/@hcengineering/core/lang/cs.json +6 -1
- package/node_modules/@hcengineering/core/lang/de.json +6 -1
- package/node_modules/@hcengineering/core/lang/en.json +6 -1
- package/node_modules/@hcengineering/core/lang/es.json +6 -1
- package/node_modules/@hcengineering/core/lang/fr.json +6 -1
- package/node_modules/@hcengineering/core/lang/it.json +6 -1
- package/node_modules/@hcengineering/core/lang/ja.json +6 -1
- package/node_modules/@hcengineering/core/lang/pt-br.json +70 -0
- package/node_modules/@hcengineering/core/lang/pt.json +6 -1
- package/node_modules/@hcengineering/core/lang/ru.json +6 -1
- package/node_modules/@hcengineering/core/lang/tr.json +6 -1
- package/node_modules/@hcengineering/core/lang/zh.json +6 -1
- package/node_modules/@hcengineering/core/lib/__tests__/autoJoinRoles.test.js +13 -0
- package/node_modules/@hcengineering/core/lib/__tests__/autoJoinRoles.test.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/__tests__/memdb.test.js +133 -0
- package/node_modules/@hcengineering/core/lib/__tests__/memdb.test.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/__tests__/minmodel.js +25 -0
- package/node_modules/@hcengineering/core/lib/__tests__/minmodel.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/__tests__/query.test.js +43 -0
- package/node_modules/@hcengineering/core/lib/__tests__/query.test.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/autoJoinRoles.js +36 -0
- package/node_modules/@hcengineering/core/lib/autoJoinRoles.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/classes.js +5 -0
- package/node_modules/@hcengineering/core/lib/classes.js.map +3 -3
- package/node_modules/@hcengineering/core/lib/clone.js +13 -2
- package/node_modules/@hcengineering/core/lib/clone.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/component.js +14 -3
- package/node_modules/@hcengineering/core/lib/component.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/index.js +2 -0
- package/node_modules/@hcengineering/core/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/memdb.js +6 -2
- package/node_modules/@hcengineering/core/lib/memdb.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/operations.js +11 -0
- package/node_modules/@hcengineering/core/lib/operations.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/predicate.js +3 -0
- package/node_modules/@hcengineering/core/lib/predicate.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/storage.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/tx.js +3 -1
- package/node_modules/@hcengineering/core/lib/tx.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/utils.js +1 -1
- package/node_modules/@hcengineering/core/lib/utils.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/versioning.js +17 -0
- package/node_modules/@hcengineering/core/lib/versioning.js.map +7 -0
- package/node_modules/@hcengineering/core/package.json +22 -19
- package/node_modules/@hcengineering/core/src/__tests__/autoJoinRoles.test.ts +27 -0
- package/node_modules/@hcengineering/core/src/__tests__/memdb.test.ts +150 -1
- package/node_modules/@hcengineering/core/src/__tests__/minmodel.ts +29 -1
- package/node_modules/@hcengineering/core/src/__tests__/query.test.ts +66 -0
- package/node_modules/@hcengineering/core/src/autoJoinRoles.ts +33 -0
- package/node_modules/@hcengineering/core/src/classes.ts +61 -1
- package/node_modules/@hcengineering/core/src/clone.ts +13 -2
- package/node_modules/@hcengineering/core/src/component.ts +25 -9
- package/node_modules/@hcengineering/core/src/index.ts +2 -0
- package/node_modules/@hcengineering/core/src/memdb.ts +7 -3
- package/node_modules/@hcengineering/core/src/operations.ts +11 -0
- package/node_modules/@hcengineering/core/src/predicate.ts +3 -0
- package/node_modules/@hcengineering/core/src/storage.ts +6 -3
- package/node_modules/@hcengineering/core/src/tx.ts +4 -1
- package/node_modules/@hcengineering/core/src/utils.ts +1 -1
- package/node_modules/@hcengineering/core/src/versioning.ts +13 -0
- package/node_modules/@hcengineering/measurements/lib/__tests__/performance.test.js +3 -3
- package/node_modules/@hcengineering/measurements/lib/__tests__/performance.test.js.map +2 -2
- package/node_modules/@hcengineering/measurements/package.json +17 -14
- package/node_modules/@hcengineering/measurements/src/__tests__/performance.test.ts +3 -3
- package/node_modules/@hcengineering/platform/lang/pt-br.json +31 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/i18n.test.js +100 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/i18n.test.js.map +2 -2
- package/node_modules/@hcengineering/platform/lib/__tests__/status.test.js +78 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/status.test.js.map +7 -0
- package/node_modules/@hcengineering/platform/lib/i18n.js +78 -69
- package/node_modules/@hcengineering/platform/lib/i18n.js.map +3 -3
- package/node_modules/@hcengineering/platform/lib/status.js +25 -0
- package/node_modules/@hcengineering/platform/lib/status.js.map +2 -2
- package/node_modules/@hcengineering/platform/package.json +18 -15
- package/node_modules/@hcengineering/platform/src/__tests__/i18n.test.ts +114 -2
- package/node_modules/@hcengineering/platform/src/__tests__/status.test.ts +77 -0
- package/node_modules/@hcengineering/platform/src/i18n.ts +99 -71
- package/node_modules/@hcengineering/platform/src/status.ts +30 -0
- package/node_modules/@hcengineering/rank/package.json +19 -16
- package/node_modules/@hcengineering/rpc/package.json +21 -18
- package/node_modules/@hcengineering/tags/package.json +12 -9
- package/node_modules/@hcengineering/task/package.json +14 -11
- package/node_modules/@hcengineering/text/lib/markup/__tests__/utils.test.js +25 -0
- package/node_modules/@hcengineering/text/lib/markup/__tests__/utils.test.js.map +2 -2
- package/node_modules/@hcengineering/text/lib/tiptapExtensions.js +6 -0
- package/node_modules/@hcengineering/text/lib/tiptapExtensions.js.map +2 -2
- package/node_modules/@hcengineering/text/package.json +23 -18
- package/node_modules/@hcengineering/text/src/markup/__tests__/utils.test.ts +27 -0
- package/node_modules/@hcengineering/text/src/tiptapExtensions.ts +3 -0
- package/node_modules/@hcengineering/text-core/lib/markup/model.js +1 -0
- package/node_modules/@hcengineering/text-core/lib/markup/model.js.map +2 -2
- package/node_modules/@hcengineering/text-core/package.json +20 -17
- package/node_modules/@hcengineering/text-core/src/markup/model.ts +2 -1
- package/node_modules/@hcengineering/text-html/package.json +19 -16
- package/node_modules/@hcengineering/text-markdown/lib/serializer.js +14 -0
- package/node_modules/@hcengineering/text-markdown/lib/serializer.js.map +2 -2
- package/node_modules/@hcengineering/text-markdown/package.json +20 -17
- package/node_modules/@hcengineering/text-markdown/src/serializer.ts +14 -0
- package/node_modules/@hcengineering/tracker/lib/index.js +1 -0
- package/node_modules/@hcengineering/tracker/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/tracker/package.json +16 -13
- package/node_modules/@tiptap/core/dist/commands/focus.d.ts.map +1 -1
- package/node_modules/@tiptap/core/dist/index.cjs +19 -2
- package/node_modules/@tiptap/core/dist/index.cjs.map +1 -1
- package/node_modules/@tiptap/core/dist/index.js +19 -3
- package/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/node_modules/@tiptap/core/dist/index.umd.js +19 -2
- package/node_modules/@tiptap/core/dist/index.umd.js.map +1 -1
- package/node_modules/@tiptap/core/dist/utilities/index.d.ts +1 -0
- package/node_modules/@tiptap/core/dist/utilities/index.d.ts.map +1 -1
- package/node_modules/@tiptap/core/dist/utilities/isSafari.d.ts +10 -0
- package/node_modules/@tiptap/core/dist/utilities/isSafari.d.ts.map +1 -0
- package/node_modules/@tiptap/core/package.json +2 -2
- package/node_modules/@tiptap/core/src/commands/focus.ts +7 -2
- package/node_modules/@tiptap/core/src/utilities/index.ts +1 -0
- package/node_modules/@tiptap/core/src/utilities/isSafari.ts +11 -0
- package/node_modules/@tiptap/extension-blockquote/package.json +2 -2
- package/node_modules/@tiptap/extension-bold/package.json +2 -2
- package/node_modules/@tiptap/extension-bullet-list/package.json +2 -2
- package/node_modules/@tiptap/extension-code/package.json +2 -2
- package/node_modules/@tiptap/extension-code-block/package.json +3 -3
- package/node_modules/@tiptap/extension-document/package.json +2 -2
- package/node_modules/@tiptap/extension-dropcursor/package.json +3 -3
- package/node_modules/@tiptap/extension-gapcursor/package.json +3 -3
- package/node_modules/@tiptap/extension-hard-break/package.json +2 -2
- package/node_modules/@tiptap/extension-heading/package.json +2 -2
- package/node_modules/@tiptap/extension-highlight/package.json +2 -2
- package/node_modules/@tiptap/extension-history/package.json +3 -3
- package/node_modules/@tiptap/extension-horizontal-rule/package.json +3 -3
- package/node_modules/@tiptap/extension-italic/package.json +2 -2
- package/node_modules/@tiptap/extension-link/package.json +3 -3
- package/node_modules/@tiptap/extension-list-item/package.json +2 -2
- package/node_modules/@tiptap/extension-mention/package.json +4 -4
- package/node_modules/@tiptap/extension-ordered-list/package.json +2 -2
- package/node_modules/@tiptap/extension-paragraph/package.json +2 -2
- package/node_modules/@tiptap/extension-strike/package.json +2 -2
- package/node_modules/@tiptap/extension-subscript/README.md +14 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs +61 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +4 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js +56 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.umd.js +65 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.umd.js.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/subscript.d.ts +36 -0
- package/node_modules/@tiptap/extension-subscript/dist/subscript.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-subscript/package.json +49 -0
- package/node_modules/@tiptap/extension-subscript/src/index.ts +5 -0
- package/node_modules/@tiptap/extension-subscript/src/subscript.ts +91 -0
- package/node_modules/@tiptap/extension-superscript/README.md +14 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs +61 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +4 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js +56 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.umd.js +65 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.umd.js.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/superscript.d.ts +36 -0
- package/node_modules/@tiptap/extension-superscript/dist/superscript.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-superscript/package.json +49 -0
- package/node_modules/@tiptap/extension-superscript/src/index.ts +5 -0
- package/node_modules/@tiptap/extension-superscript/src/superscript.ts +91 -0
- package/node_modules/@tiptap/extension-table/package.json +3 -3
- package/node_modules/@tiptap/extension-table-cell/package.json +2 -2
- package/node_modules/@tiptap/extension-table-header/package.json +2 -2
- package/node_modules/@tiptap/extension-table-row/package.json +2 -2
- package/node_modules/@tiptap/extension-task-item/package.json +3 -3
- package/node_modules/@tiptap/extension-task-list/package.json +2 -2
- package/node_modules/@tiptap/extension-text/package.json +2 -2
- package/node_modules/@tiptap/extension-typography/package.json +2 -2
- package/node_modules/@tiptap/extension-underline/package.json +2 -2
- package/node_modules/@tiptap/html/package.json +3 -3
- package/node_modules/@tiptap/pm/package.json +1 -1
- package/node_modules/@tiptap/starter-kit/node_modules/@tiptap/extension-text-style/package.json +2 -2
- package/node_modules/@tiptap/starter-kit/package.json +22 -22
- package/node_modules/@tiptap/suggestion/package.json +3 -3
- package/node_modules/linkify-it/build/index.cjs.js +99 -94
- package/node_modules/linkify-it/index.mjs +99 -94
- package/node_modules/linkify-it/package.json +11 -1
- package/node_modules/linkifyjs/README.md +4 -2
- package/node_modules/linkifyjs/dist/linkify.cjs +8 -11
- package/node_modules/linkifyjs/dist/linkify.d.cts +14 -14
- package/node_modules/linkifyjs/dist/linkify.d.mts +14 -14
- package/node_modules/linkifyjs/dist/linkify.js +8 -11
- package/node_modules/linkifyjs/dist/linkify.min.js +1 -1
- package/node_modules/linkifyjs/dist/linkify.mjs +8 -11
- package/node_modules/linkifyjs/package.json +1 -1
- package/node_modules/markdown-it/README.md +13 -17
- package/node_modules/markdown-it/dist/index.cjs.js +111 -31
- package/node_modules/markdown-it/dist/markdown-it.js +117 -31
- package/node_modules/markdown-it/dist/markdown-it.min.js +2 -2
- package/node_modules/markdown-it/lib/common/utils.mjs +30 -1
- package/node_modules/markdown-it/lib/index.mjs +1 -1
- package/node_modules/markdown-it/lib/rules_block/heading.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_block/html_block.mjs +12 -1
- package/node_modules/markdown-it/lib/rules_block/lheading.mjs +4 -1
- package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +3 -1
- package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +37 -21
- package/node_modules/markdown-it/lib/rules_inline/entity.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +37 -6
- package/node_modules/markdown-it/package.json +14 -3
- package/node_modules/msgpackr/README.md +1 -3
- package/node_modules/msgpackr/benchmark.md +26 -16
- package/node_modules/msgpackr/dist/index-no-eval.cjs +35 -16
- package/node_modules/msgpackr/dist/index-no-eval.cjs.map +1 -1
- package/node_modules/msgpackr/dist/index-no-eval.min.js +1 -1
- package/node_modules/msgpackr/dist/index-no-eval.min.js.map +1 -1
- package/node_modules/msgpackr/dist/index.js +35 -16
- package/node_modules/msgpackr/dist/index.js.map +1 -1
- package/node_modules/msgpackr/dist/index.min.js +1 -1
- package/node_modules/msgpackr/dist/index.min.js.map +1 -1
- package/node_modules/msgpackr/dist/node.cjs +50 -26
- package/node_modules/msgpackr/dist/node.cjs.map +1 -1
- package/node_modules/msgpackr/dist/test.js +44 -16
- package/node_modules/msgpackr/dist/test.js.map +1 -1
- package/node_modules/msgpackr/dist/unpack-no-eval.cjs +35 -16
- package/node_modules/msgpackr/dist/unpack-no-eval.cjs.map +1 -1
- package/node_modules/msgpackr/index.d.cts +2 -0
- package/node_modules/msgpackr/index.d.ts +2 -0
- package/node_modules/msgpackr/package.json +1 -1
- package/node_modules/msgpackr/stream.js +15 -10
- package/node_modules/msgpackr/unpack.js +35 -16
- package/node_modules/prosemirror-changeset/CHANGELOG.md +12 -0
- package/node_modules/prosemirror-changeset/README.md +31 -2
- package/node_modules/prosemirror-changeset/dist/index.cjs +17 -2
- package/node_modules/prosemirror-changeset/dist/index.d.cts +32 -2
- package/node_modules/prosemirror-changeset/dist/index.d.ts +32 -2
- package/node_modules/prosemirror-changeset/dist/index.js +18 -3
- package/node_modules/prosemirror-changeset/package.json +2 -2
- package/node_modules/prosemirror-changeset/src/README.md +4 -2
- package/node_modules/prosemirror-changeset/src/change.ts +18 -0
- package/node_modules/prosemirror-changeset/src/changeset.ts +10 -4
- package/node_modules/prosemirror-changeset/src/simplify.ts +1 -1
- package/node_modules/prosemirror-changeset/test/test-simplify.ts +3 -0
- package/node_modules/prosemirror-gapcursor/CHANGELOG.md +6 -0
- package/node_modules/prosemirror-gapcursor/dist/index.cjs +1 -1
- package/node_modules/prosemirror-gapcursor/dist/index.js +1 -1
- package/node_modules/prosemirror-gapcursor/package.json +3 -2
- package/node_modules/prosemirror-gapcursor/src/gapcursor.ts +1 -1
- package/node_modules/prosemirror-markdown/CHANGELOG.md +12 -0
- package/node_modules/prosemirror-markdown/dist/index.cjs +11 -1
- package/node_modules/prosemirror-markdown/dist/index.js +14 -2
- package/node_modules/prosemirror-markdown/package.json +1 -1
- package/node_modules/prosemirror-markdown/src/to_markdown.ts +12 -3
- package/node_modules/prosemirror-menu/CHANGELOG.md +18 -0
- package/node_modules/prosemirror-menu/CONTRIBUTING.md +22 -18
- package/node_modules/prosemirror-menu/README.md +69 -29
- package/node_modules/prosemirror-menu/dist/index.cjs +232 -48
- package/node_modules/prosemirror-menu/dist/index.d.cts +29 -14
- package/node_modules/prosemirror-menu/dist/index.d.ts +29 -14
- package/node_modules/prosemirror-menu/dist/index.js +229 -36
- package/node_modules/prosemirror-menu/package.json +2 -2
- package/node_modules/prosemirror-menu/src/README.md +30 -1
- package/node_modules/prosemirror-menu/src/icons.ts +3 -2
- package/node_modules/prosemirror-menu/src/menu.ts +193 -40
- package/node_modules/prosemirror-menu/src/menubar.ts +50 -5
- package/node_modules/prosemirror-menu/style/menu.css +28 -7
- package/node_modules/prosemirror-model/CHANGELOG.md +20 -0
- package/node_modules/prosemirror-model/CONTRIBUTING.md +19 -19
- package/node_modules/prosemirror-model/README.md +3 -3
- package/node_modules/prosemirror-model/dist/index.cjs +13 -10
- package/node_modules/prosemirror-model/dist/index.d.cts +25 -21
- package/node_modules/prosemirror-model/dist/index.d.ts +25 -21
- package/node_modules/prosemirror-model/dist/index.js +19 -23
- package/node_modules/prosemirror-model/package.json +2 -2
- package/node_modules/prosemirror-model/src/fragment.ts +1 -1
- package/node_modules/prosemirror-model/src/from_dom.ts +4 -1
- package/node_modules/prosemirror-model/src/node.ts +5 -4
- package/node_modules/prosemirror-model/src/replace.ts +6 -15
- package/node_modules/prosemirror-model/src/schema.ts +1 -1
- package/node_modules/prosemirror-model/src/to_dom.ts +24 -20
- package/node_modules/prosemirror-transform/CHANGELOG.md +16 -0
- package/node_modules/prosemirror-transform/dist/index.cjs +38 -4
- package/node_modules/prosemirror-transform/dist/index.d.cts +19 -0
- package/node_modules/prosemirror-transform/dist/index.d.ts +19 -0
- package/node_modules/prosemirror-transform/dist/index.js +52 -1
- package/node_modules/prosemirror-transform/package.json +1 -1
- package/node_modules/prosemirror-transform/src/replace.ts +16 -0
- package/node_modules/prosemirror-transform/src/replace_step.ts +10 -1
- package/node_modules/prosemirror-transform/src/transform.ts +21 -2
- package/node_modules/prosemirror-view/CHANGELOG.md +34 -2
- package/node_modules/prosemirror-view/CONTRIBUTING.md +19 -19
- package/node_modules/prosemirror-view/README.md +3 -3
- package/node_modules/prosemirror-view/dist/index.cjs +96 -40
- package/node_modules/prosemirror-view/dist/index.d.cts +2 -2
- package/node_modules/prosemirror-view/dist/index.d.ts +2 -2
- package/node_modules/prosemirror-view/dist/index.js +90 -39
- package/node_modules/prosemirror-view/package.json +2 -2
- package/node_modules/prosemirror-view/src/domchange.ts +1 -1
- package/node_modules/prosemirror-view/src/domobserver.ts +59 -16
- package/node_modules/prosemirror-view/src/index.ts +4 -4
- package/node_modules/prosemirror-view/src/input.ts +9 -6
- package/node_modules/prosemirror-view/src/viewdesc.ts +26 -22
- package/node_modules/prosemirror-view/style/prosemirror.css +1 -1
- package/package.json +5 -4
- package/src/client.mjs +2 -2
- package/src/config.mjs +1 -0
- package/src/helpers.mjs +2 -2
- package/src/index.mjs +31 -1
- package/src/initCodex.mjs +281 -0
- package/src/mcp.mjs +1 -1
- package/src/mcpShared.mjs +95 -5
- package/node_modules/@hcengineering/account-client/types/client.d.ts +0 -140
- package/node_modules/@hcengineering/account-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/index.d.ts +0 -4
- package/node_modules/@hcengineering/account-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/types.d.ts +0 -177
- package/node_modules/@hcengineering/account-client/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/utils.d.ts +0 -5
- package/node_modules/@hcengineering/account-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/analytics/types/index.d.ts +0 -25
- package/node_modules/@hcengineering/analytics/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/config.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/config.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-client.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-types.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-types.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/rest-utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/rest-utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/client.d.ts +0 -6
- package/node_modules/@hcengineering/api-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/config.d.ts +0 -8
- package/node_modules/@hcengineering/api-client/types/config.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/index.d.ts +0 -9
- package/node_modules/@hcengineering/api-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/client.d.ts +0 -5
- package/node_modules/@hcengineering/api-client/types/markup/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/index.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/markup/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/types.d.ts +0 -41
- package/node_modules/@hcengineering/api-client/types/markup/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/index.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/rest/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/rest.d.ts +0 -39
- package/node_modules/@hcengineering/api-client/types/rest/rest.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/tx.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/rest/tx.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/types.d.ts +0 -16
- package/node_modules/@hcengineering/api-client/types/rest/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/utils.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/rest/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/browser.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/socket/browser.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/index.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/socket/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/node.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/socket/node.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/client.d.ts +0 -21
- package/node_modules/@hcengineering/api-client/types/storage/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/error.d.ts +0 -10
- package/node_modules/@hcengineering/api-client/types/storage/error.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/index.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/storage/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/types.d.ts +0 -10
- package/node_modules/@hcengineering/api-client/types/storage/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/types.d.ts +0 -101
- package/node_modules/@hcengineering/api-client/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/utils.d.ts +0 -12
- package/node_modules/@hcengineering/api-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/analytics.d.ts +0 -5
- package/node_modules/@hcengineering/chunter/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/index.d.ts +0 -211
- package/node_modules/@hcengineering/chunter/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/utils.d.ts +0 -7
- package/node_modules/@hcengineering/chunter/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/client/types/__tests__/client.test.d.ts +0 -2
- package/node_modules/@hcengineering/client/types/__tests__/client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client/types/index.d.ts +0 -69
- package/node_modules/@hcengineering/client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts +0 -2
- package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts +0 -45
- package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/connection.d.ts +0 -7
- package/node_modules/@hcengineering/client-resources/types/connection.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/index.d.ts +0 -11
- package/node_modules/@hcengineering/client-resources/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/collaborator-client/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/client.d.ts +0 -34
- package/node_modules/@hcengineering/collaborator-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/collaborator-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/utils.d.ts +0 -9
- package/node_modules/@hcengineering/collaborator-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/__tests__/cache.test.d.ts +0 -2
- package/node_modules/@hcengineering/contact/types/__tests__/cache.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/analytics.d.ts +0 -6
- package/node_modules/@hcengineering/contact/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/avatar.d.ts +0 -12
- package/node_modules/@hcengineering/contact/types/avatar.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/cache.d.ts +0 -49
- package/node_modules/@hcengineering/contact/types/cache.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/index.d.ts +0 -367
- package/node_modules/@hcengineering/contact/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/types.d.ts +0 -25
- package/node_modules/@hcengineering/contact/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/utils.d.ts +0 -110
- package/node_modules/@hcengineering/contact/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/client.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/clone.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/clone.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/collaboration.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/collaboration.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/collaborators.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/collaborators.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/common.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/common.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/connection.d.ts +0 -4
- package/node_modules/@hcengineering/core/types/__tests__/connection.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/contexts.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/contexts.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/hierarchy.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/hierarchy.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/lang.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/lang.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/limiter-edge-cases.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/limiter-edge-cases.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/limits.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/limits.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/memdb.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/memdb.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/minmodel.d.ts +0 -50
- package/node_modules/@hcengineering/core/types/__tests__/minmodel.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/objvalue.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/objvalue.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/operator-bugs.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/operator-bugs.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/operator.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/operator.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/rate-limiter.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/rate-limiter.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/time.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/time.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/backup.d.ts +0 -26
- package/node_modules/@hcengineering/core/types/backup.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/benchmark.d.ts +0 -19
- package/node_modules/@hcengineering/core/types/benchmark.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/classes.d.ts +0 -716
- package/node_modules/@hcengineering/core/types/classes.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/client.d.ts +0 -69
- package/node_modules/@hcengineering/core/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/clone.d.ts +0 -3
- package/node_modules/@hcengineering/core/types/clone.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/collaboration.d.ts +0 -16
- package/node_modules/@hcengineering/core/types/collaboration.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/collaborators.d.ts +0 -3
- package/node_modules/@hcengineering/core/types/collaborators.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/common.d.ts +0 -4
- package/node_modules/@hcengineering/core/types/common.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/component.d.ts +0 -229
- package/node_modules/@hcengineering/core/types/component.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/hierarchy.d.ts +0 -84
- package/node_modules/@hcengineering/core/types/hierarchy.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/index.d.ts +0 -25
- package/node_modules/@hcengineering/core/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/memdb.d.ts +0 -60
- package/node_modules/@hcengineering/core/types/memdb.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/objvalue.d.ts +0 -10
- package/node_modules/@hcengineering/core/types/objvalue.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/operations.d.ts +0 -87
- package/node_modules/@hcengineering/core/types/operations.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/operator.d.ts +0 -16
- package/node_modules/@hcengineering/core/types/operator.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/predicate.d.ts +0 -6
- package/node_modules/@hcengineering/core/types/predicate.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/proxy.d.ts +0 -21
- package/node_modules/@hcengineering/core/types/proxy.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/query.d.ts +0 -21
- package/node_modules/@hcengineering/core/types/query.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/server.d.ts +0 -82
- package/node_modules/@hcengineering/core/types/server.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/status.d.ts +0 -30
- package/node_modules/@hcengineering/core/types/status.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/storage.d.ts +0 -233
- package/node_modules/@hcengineering/core/types/storage.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/time.d.ts +0 -8
- package/node_modules/@hcengineering/core/types/time.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/tx.d.ts +0 -261
- package/node_modules/@hcengineering/core/types/tx.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/utils.d.ts +0 -207
- package/node_modules/@hcengineering/core/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/context.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/context.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/index.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/index.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/metrics.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/metrics.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/performance.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/performance.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/context.d.ts +0 -64
- package/node_modules/@hcengineering/measurements/types/context.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/index.d.ts +0 -12
- package/node_modules/@hcengineering/measurements/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/metrics.d.ts +0 -34
- package/node_modules/@hcengineering/measurements/types/metrics.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/types.d.ts +0 -88
- package/node_modules/@hcengineering/measurements/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/i18n.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/i18n.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/ident.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/ident.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/plugin.d.ts +0 -7
- package/node_modules/@hcengineering/platform/types/__tests__/plugin.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/resource.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/resource.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/event.d.ts +0 -39
- package/node_modules/@hcengineering/platform/types/event.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/i18n.d.ts +0 -28
- package/node_modules/@hcengineering/platform/types/i18n.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/ident.d.ts +0 -14
- package/node_modules/@hcengineering/platform/types/ident.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/index.d.ts +0 -19
- package/node_modules/@hcengineering/platform/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/metadata.d.ts +0 -38
- package/node_modules/@hcengineering/platform/types/metadata.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/platform.d.ts +0 -218
- package/node_modules/@hcengineering/platform/types/platform.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/resource.d.ts +0 -49
- package/node_modules/@hcengineering/platform/types/resource.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/status.d.ts +0 -60
- package/node_modules/@hcengineering/platform/types/status.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/testUtils.d.ts +0 -8
- package/node_modules/@hcengineering/platform/types/testUtils.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/rank/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/rank/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/types.d.ts +0 -2
- package/node_modules/@hcengineering/rank/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/utils.d.ts +0 -6
- package/node_modules/@hcengineering/rank/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/rpc/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/rpc.d.ts +0 -96
- package/node_modules/@hcengineering/rpc/types/rpc.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/sliding.d.ts +0 -11
- package/node_modules/@hcengineering/rpc/types/sliding.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/test/rateLimit.spec.d.ts +0 -2
- package/node_modules/@hcengineering/rpc/types/test/rateLimit.spec.d.ts.map +0 -1
- package/node_modules/@hcengineering/tags/types/analytics.d.ts +0 -5
- package/node_modules/@hcengineering/tags/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/tags/types/index.d.ts +0 -105
- package/node_modules/@hcengineering/tags/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/task/types/index.d.ts +0 -227
- package/node_modules/@hcengineering/task/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/task/types/utils.d.ts +0 -61
- package/node_modules/@hcengineering/task/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/extensions.d.ts +0 -53
- package/node_modules/@hcengineering/text/types/extensions.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/index.d.ts +0 -13
- package/node_modules/@hcengineering/text/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kit.d.ts +0 -12
- package/node_modules/@hcengineering/text/types/kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kits/common-kit.d.ts +0 -72
- package/node_modules/@hcengineering/text/types/kits/common-kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kits/server-kit.d.ts +0 -106
- package/node_modules/@hcengineering/text/types/kits/server-kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/code.d.ts +0 -8
- package/node_modules/@hcengineering/text/types/marks/code.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/colors.d.ts +0 -21
- package/node_modules/@hcengineering/text/types/marks/colors.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/inlineComment.d.ts +0 -5
- package/node_modules/@hcengineering/text/types/marks/inlineComment.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/noteBase.d.ts +0 -23
- package/node_modules/@hcengineering/text/types/marks/noteBase.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/qmsInlineCommentMark.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/marks/qmsInlineCommentMark.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/__tests__/dsl.test.d.ts +0 -2
- package/node_modules/@hcengineering/text/types/markup/__tests__/dsl.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/__tests__/utils.test.d.ts +0 -5
- package/node_modules/@hcengineering/text/types/markup/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/utils.d.ts +0 -19
- package/node_modules/@hcengineering/text/types/markup/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/codeblock.d.ts +0 -12
- package/node_modules/@hcengineering/text/types/nodes/codeblock.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/comment.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/nodes/comment.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/embed.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/embed.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/emoji.d.ts +0 -17
- package/node_modules/@hcengineering/text/types/nodes/emoji.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/file.d.ts +0 -13
- package/node_modules/@hcengineering/text/types/nodes/file.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/image.d.ts +0 -52
- package/node_modules/@hcengineering/text/types/nodes/image.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/index.d.ts +0 -11
- package/node_modules/@hcengineering/text/types/nodes/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/markdown.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/markdown.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/mermaid.d.ts +0 -4
- package/node_modules/@hcengineering/text/types/nodes/mermaid.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/reference.d.ts +0 -18
- package/node_modules/@hcengineering/text/types/nodes/reference.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/todo.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/todo.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/utils.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/nodes/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/tiptapExtensions.d.ts +0 -28
- package/node_modules/@hcengineering/text/types/tiptapExtensions.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/index.d.ts +0 -6
- package/node_modules/@hcengineering/text-core/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/traverse.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/traverse.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/dsl.d.ts +0 -25
- package/node_modules/@hcengineering/text-core/types/markup/dsl.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/model.d.ts +0 -74
- package/node_modules/@hcengineering/text-core/types/markup/model.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/reference.d.ts +0 -15
- package/node_modules/@hcengineering/text-core/types/markup/reference.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/traverse.d.ts +0 -6
- package/node_modules/@hcengineering/text-core/types/markup/traverse.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/utils.d.ts +0 -25
- package/node_modules/@hcengineering/text-core/types/markup/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/__tests__/html.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-html/types/__tests__/html.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/index.d.ts +0 -6
- package/node_modules/@hcengineering/text-html/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/parser.d.ts +0 -10
- package/node_modules/@hcengineering/text-html/types/parser.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/serializer.d.ts +0 -9
- package/node_modules/@hcengineering/text-html/types/serializer.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/__tests__/markdown.test.d.ts +0 -9
- package/node_modules/@hcengineering/text-markdown/types/__tests__/markdown.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/compare.d.ts +0 -10
- package/node_modules/@hcengineering/text-markdown/types/compare.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/index.d.ts +0 -14
- package/node_modules/@hcengineering/text-markdown/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/marks.d.ts +0 -8
- package/node_modules/@hcengineering/text-markdown/types/marks.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/node.d.ts +0 -4
- package/node_modules/@hcengineering/text-markdown/types/node.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/parser.d.ts +0 -50
- package/node_modules/@hcengineering/text-markdown/types/parser.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/serializer.d.ts +0 -102
- package/node_modules/@hcengineering/text-markdown/types/serializer.d.ts.map +0 -1
- package/node_modules/@hcengineering/tracker/types/analytics.d.ts +0 -24
- package/node_modules/@hcengineering/tracker/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/tracker/types/index.d.ts +0 -431
- package/node_modules/@hcengineering/tracker/types/index.d.ts.map +0 -1
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Change Log - @hcengineering/core
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sun, 22 Feb 2026 06:34:18 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.7.26
|
|
6
|
+
Sun, 22 Feb 2026 06:34:18 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Add workspace permission enum
|
|
11
|
+
- Fix object clone
|
|
4
12
|
|
|
5
13
|
## 0.7.23
|
|
6
14
|
Wed, 26 Nov 2025 15:28:11 GMT
|
|
@@ -61,12 +61,17 @@
|
|
|
61
61
|
"ArchiveSpaceDescription": "Umožňuje uživatelům archivovat prostor",
|
|
62
62
|
"AutoJoin": "Automatické připojení",
|
|
63
63
|
"AutoJoinDescr": "Automaticky připojit nové zaměstnance k tomuto prostoru",
|
|
64
|
+
"AutoJoinGuests": "Automaticky připojit hosty",
|
|
65
|
+
"AutoJoinGuestsDescr": "Pokud je zapnuto, hosté pracovního prostoru se při aktivaci přidají do tohoto prostoru",
|
|
66
|
+
"RBAC": "Řízení přístupu na základě rolí",
|
|
67
|
+
"RBACDescr": "Vyžadovat řízení přístupu na základě rolí pro provádění akcí v tomto prostoru",
|
|
64
68
|
"BlobSize": "Velikost",
|
|
65
69
|
"BlobContentType": "Typ obsahu",
|
|
66
70
|
"Relation": "Vztah",
|
|
67
71
|
"Relations": "Vztahy",
|
|
68
72
|
"AddRelation": "Přidat vztah",
|
|
69
73
|
"PersonId": "Osoba",
|
|
70
|
-
"AccountId": "Účet"
|
|
74
|
+
"AccountId": "Účet",
|
|
75
|
+
"Version": "Verze"
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -61,12 +61,17 @@
|
|
|
61
61
|
"ArchiveSpaceDescription": "Gewährt Benutzern die Möglichkeit, den Arbeitsbereich zu archivieren",
|
|
62
62
|
"AutoJoin": "Automatisch beitreten",
|
|
63
63
|
"AutoJoinDescr": "Neue Mitarbeiter automatisch diesem Arbeitsbereich hinzufügen",
|
|
64
|
+
"AutoJoinGuests": "Gäste automatisch hinzufügen",
|
|
65
|
+
"AutoJoinGuestsDescr": "Wenn aktiviert, werden Arbeitsbereichs-Gäste bei der Aktivierung diesem Bereich hinzugefügt",
|
|
66
|
+
"RBAC": "Rollenbasierte Zugriffskontrolle",
|
|
67
|
+
"RBACDescr": "Erfordert rollenbasierten Zugriff, um Aktionen in diesem Arbeitsbereich auszuführen",
|
|
64
68
|
"BlobSize": "Größe",
|
|
65
69
|
"BlobContentType": "Inhaltstyp",
|
|
66
70
|
"Relation": "Beziehung",
|
|
67
71
|
"Relations": "Beziehungen",
|
|
68
72
|
"AddRelation": "Beziehung hinzufügen",
|
|
69
73
|
"PersonId": "Person",
|
|
70
|
-
"AccountId": "Konto"
|
|
74
|
+
"AccountId": "Konto",
|
|
75
|
+
"Version": "Version"
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -61,12 +61,17 @@
|
|
|
61
61
|
"ArchiveSpaceDescription": "Grants users ability to archive the space",
|
|
62
62
|
"AutoJoin": "Auto join",
|
|
63
63
|
"AutoJoinDescr": "Automatically join new employees to this space",
|
|
64
|
+
"AutoJoinGuests": "Auto-join guests",
|
|
65
|
+
"AutoJoinGuestsDescr": "When enabled, workspace guests are added to this space on activation",
|
|
66
|
+
"RBAC": "Role-based access control",
|
|
67
|
+
"RBACDescr": "Require role-based access to perform actions in this space",
|
|
64
68
|
"BlobSize": "Size",
|
|
65
69
|
"BlobContentType": "Content type",
|
|
66
70
|
"Relation": "Relation",
|
|
67
71
|
"Relations": "Relations",
|
|
68
72
|
"AddRelation": "Add relation",
|
|
69
73
|
"PersonId": "Person",
|
|
70
|
-
"AccountId": "Account"
|
|
74
|
+
"AccountId": "Account",
|
|
75
|
+
"Version": "Version"
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -54,12 +54,17 @@
|
|
|
54
54
|
"ArchiveSpaceDescription": "Concede a los usuarios la capacidad de archivar el espacio",
|
|
55
55
|
"AutoJoin": "Auto unirse",
|
|
56
56
|
"AutoJoinDescr": "Unirse automáticamente a los nuevos empleados a este espacio",
|
|
57
|
+
"AutoJoinGuests": "Unir invitados automáticamente",
|
|
58
|
+
"AutoJoinGuestsDescr": "Si está activado, los invitados del espacio de trabajo se añaden a este espacio al activarse",
|
|
59
|
+
"RBAC": "Control de acceso basado en roles",
|
|
60
|
+
"RBACDescr": "Requerir acceso basado en roles para realizar acciones en este espacio",
|
|
57
61
|
"BlobSize": "Tamaño",
|
|
58
62
|
"BlobContentType": "Tipo de contenido",
|
|
59
63
|
"Relation": "Relación",
|
|
60
64
|
"Relations": "Relaciones",
|
|
61
65
|
"AddRelation": "Añadir relación",
|
|
62
66
|
"PersonId": "Id. de persona",
|
|
63
|
-
"AccountId": "Cuenta"
|
|
67
|
+
"AccountId": "Cuenta",
|
|
68
|
+
"Version": "Versión"
|
|
64
69
|
}
|
|
65
70
|
}
|
|
@@ -61,12 +61,17 @@
|
|
|
61
61
|
"ArchiveSpaceDescription": "Accorde aux utilisateurs la capacité d'archiver l'espace",
|
|
62
62
|
"AutoJoin": "Rejoindre automatiquement",
|
|
63
63
|
"AutoJoinDescr": "Ajouter automatiquement les nouveaux employés à cet espace",
|
|
64
|
+
"AutoJoinGuests": "Rejoindre automatiquement les invités",
|
|
65
|
+
"AutoJoinGuestsDescr": "Si activé, les invités de l’espace de travail sont ajoutés à cet espace à l’activation",
|
|
66
|
+
"RBAC": "Contrôle d'accès basé sur les rôles",
|
|
67
|
+
"RBACDescr": "Exiger un accès basé sur les rôles pour effectuer des actions dans cet espace",
|
|
64
68
|
"BlobSize": "Taille",
|
|
65
69
|
"BlobContentType": "Type de contenu",
|
|
66
70
|
"Relation": "Relation",
|
|
67
71
|
"Relations": "Relations",
|
|
68
72
|
"AddRelation": "Ajouter une relation",
|
|
69
73
|
"PersonId": "Id de personne",
|
|
70
|
-
"AccountId": "Compte"
|
|
74
|
+
"AccountId": "Compte",
|
|
75
|
+
"Version": "Version"
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -61,12 +61,17 @@
|
|
|
61
61
|
"ArchiveSpaceDescription": "Concede agli utenti la possibilità di archiviare lo spazio",
|
|
62
62
|
"AutoJoin": "Partecipazione automatica",
|
|
63
63
|
"AutoJoinDescr": "Aggiungi automaticamente i nuovi dipendenti a questo spazio",
|
|
64
|
+
"AutoJoinGuests": "Partecipazione automatica ospiti",
|
|
65
|
+
"AutoJoinGuestsDescr": "Se abilitato, gli ospiti del workspace vengono aggiunti a questo spazio all’attivazione",
|
|
66
|
+
"RBAC": "Controllo accessi basato sui ruoli",
|
|
67
|
+
"RBACDescr": "Richiedi accesso basato sui ruoli per eseguire azioni in questo spazio",
|
|
64
68
|
"BlobSize": "Dimensione",
|
|
65
69
|
"BlobContentType": "Tipo di contenuto",
|
|
66
70
|
"Relation": "Relazione",
|
|
67
71
|
"Relations": "Relazioni",
|
|
68
72
|
"AddRelation": "Aggiungi relazione",
|
|
69
73
|
"PersonId": "ID persona",
|
|
70
|
-
"AccountId": "ID account"
|
|
74
|
+
"AccountId": "ID account",
|
|
75
|
+
"Version": "Versione"
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -61,12 +61,17 @@
|
|
|
61
61
|
"ArchiveSpaceDescription": "ユーザーにスペースをアーカイブする権限を付与します",
|
|
62
62
|
"AutoJoin": "自動参加",
|
|
63
63
|
"AutoJoinDescr": "新しいユーザーを自動的にこのスペースに参加させます",
|
|
64
|
+
"AutoJoinGuests": "ゲストの自動参加",
|
|
65
|
+
"AutoJoinGuestsDescr": "有効にすると、ワークスペースのゲストは有効化時にこのスペースのメンバーに追加されます",
|
|
66
|
+
"RBAC": "ロールベースアクセス制御",
|
|
67
|
+
"RBACDescr": "このスペースでの操作を実行するためにロールベースのアクセスを要求します",
|
|
64
68
|
"BlobSize": "サイズ",
|
|
65
69
|
"BlobContentType": "コンテンツタイプ",
|
|
66
70
|
"Relation": "関係",
|
|
67
71
|
"Relations": "関係一覧",
|
|
68
72
|
"AddRelation": "関係を追加",
|
|
69
73
|
"PersonId": "人物",
|
|
70
|
-
"AccountId": "アカウント"
|
|
74
|
+
"AccountId": "アカウント",
|
|
75
|
+
"Version": "バージョン"
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"string": {
|
|
3
|
+
"Id": "Id",
|
|
4
|
+
"Space": "Espaço",
|
|
5
|
+
"Spaces": "Espaços",
|
|
6
|
+
"SpacesDescription": "Gerenciamento do tipo de espaço para todos os espaços",
|
|
7
|
+
"Modified": "Modificado",
|
|
8
|
+
"ModifiedDate": "Data de modificação",
|
|
9
|
+
"ModifiedBy": "Modificado por",
|
|
10
|
+
"Class": "Classe",
|
|
11
|
+
"AttachedTo": "Anexado à",
|
|
12
|
+
"AttachedToClass": "Classe anexada",
|
|
13
|
+
"Name": "Nome",
|
|
14
|
+
"Description": "Descrição",
|
|
15
|
+
"Private": "Privado",
|
|
16
|
+
"Archived": "Arquivado",
|
|
17
|
+
"ClassLabel": "Tipo",
|
|
18
|
+
"ClassPropertyLabel": "Legenda",
|
|
19
|
+
"String": "Texto",
|
|
20
|
+
"Markup": "Marcação",
|
|
21
|
+
"Number": "Número",
|
|
22
|
+
"Boolean": "Caixa de seleção",
|
|
23
|
+
"Timestamp": "Marca de data/hora",
|
|
24
|
+
"Date": "Data",
|
|
25
|
+
"IntlString": "Texto internacional",
|
|
26
|
+
"Ref": "Referência",
|
|
27
|
+
"Collection": "Coleção",
|
|
28
|
+
"Array": "Seleção múltipla",
|
|
29
|
+
"Enum": "Seleção",
|
|
30
|
+
"Members": "Membros",
|
|
31
|
+
"Hyperlink": "URL",
|
|
32
|
+
"MarkupBlobRef": "Colaborativo",
|
|
33
|
+
"Object": "Objeto",
|
|
34
|
+
"System": "Sistema",
|
|
35
|
+
"CreatedBy": "Criado por",
|
|
36
|
+
"CreatedDate": "Data de criação",
|
|
37
|
+
"Status": "Estado",
|
|
38
|
+
"StatusCategory": "Categoria do estado",
|
|
39
|
+
"Account": "Conta",
|
|
40
|
+
"Rank": "Ranking",
|
|
41
|
+
"Owners": "Proprietários",
|
|
42
|
+
"Permission": "Permissão",
|
|
43
|
+
"CreateObject": "Criar objeto",
|
|
44
|
+
"UpdateObject": "Atualizar objeto",
|
|
45
|
+
"DeleteObject": "Apagar objeto",
|
|
46
|
+
"ForbidDeleteObject": "Proibir apagar objeto",
|
|
47
|
+
"UpdateSpace": "Atualizar espaço",
|
|
48
|
+
"ArchiveSpace": "Arquivar espaço",
|
|
49
|
+
"CreateObjectDescription": "Concede aos usuários a capacidade de criar objetos no espaço",
|
|
50
|
+
"UpdateObjectDescription": "Concede aos usuários a capacidade de atualizar objetos no espaço",
|
|
51
|
+
"DeleteObjectDescription": "Concede aos usuários a capacidade de apagar objetos no espaço",
|
|
52
|
+
"ForbidDeleteObjectDescription": "Proíbe aos usuários a capacidade de apagar objetos no espaço",
|
|
53
|
+
"UpdateSpaceDescription": "Concede aos usuários a capacidade de atualizar o espaço",
|
|
54
|
+
"ArchiveSpaceDescription": "Concede aos usuários a capacidade de arquivar o espaço",
|
|
55
|
+
"AutoJoin": "Auto adesão",
|
|
56
|
+
"AutoJoinDescr": "Adesão automática de novos funcionários a este espaço",
|
|
57
|
+
"AutoJoinGuests": "Adesão automática de convidados",
|
|
58
|
+
"AutoJoinGuestsDescr": "Se ativado, convidados do espaço de trabalho são adicionados a este espaço na ativação",
|
|
59
|
+
"RBAC": "Controle de acesso baseado em funções",
|
|
60
|
+
"RBACDescr": "Exigir acesso baseado em funções para executar ações neste espaço",
|
|
61
|
+
"BlobSize": "Tamanho",
|
|
62
|
+
"BlobContentType": "Tipo de conteúdo",
|
|
63
|
+
"Relation": "Relação",
|
|
64
|
+
"Relations": "Relações",
|
|
65
|
+
"AddRelation": "Adicionar relação",
|
|
66
|
+
"PersonId": "ID de pessoa",
|
|
67
|
+
"AccountId": "Conta",
|
|
68
|
+
"Version": "Versão"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -54,12 +54,17 @@
|
|
|
54
54
|
"ArchiveSpaceDescription": "Concede aos usuários a capacidade de arquivar o espaço",
|
|
55
55
|
"AutoJoin": "Auto adesão",
|
|
56
56
|
"AutoJoinDescr": "Adesão automática de novos funcionários a este espaço",
|
|
57
|
+
"AutoJoinGuests": "Adesão automática de convidados",
|
|
58
|
+
"AutoJoinGuestsDescr": "Se ativado, convidados do espaço de trabalho são adicionados a este espaço na ativação",
|
|
59
|
+
"RBAC": "Controle de acesso baseado em funções",
|
|
60
|
+
"RBACDescr": "Exigir acesso baseado em funções para executar ações neste espaço",
|
|
57
61
|
"BlobSize": "Tamanho",
|
|
58
62
|
"BlobContentType": "Tipo de conteúdo",
|
|
59
63
|
"Relation": "Relação",
|
|
60
64
|
"Relations": "Relações",
|
|
61
65
|
"AddRelation": "Adicionar relação",
|
|
62
66
|
"PersonId": "ID de pessoa",
|
|
63
|
-
"AccountId": "Conta"
|
|
67
|
+
"AccountId": "Conta",
|
|
68
|
+
"Version": "Versão"
|
|
64
69
|
}
|
|
65
70
|
}
|
|
@@ -61,12 +61,17 @@
|
|
|
61
61
|
"ArchiveSpaceDescription": "Дает пользователям разрешение архивировать пространство",
|
|
62
62
|
"AutoJoin": "Автоприсоединение",
|
|
63
63
|
"AutoJoinDescr": "Автоматически присоединять новых сотрудников к этому пространству",
|
|
64
|
+
"AutoJoinGuests": "Автоприсоединение гостей",
|
|
65
|
+
"AutoJoinGuestsDescr": "При активации добавлять гостей воркспейса в участники этого пространства",
|
|
66
|
+
"RBAC": "Ролевой доступ",
|
|
67
|
+
"RBACDescr": "Требовать ролевой доступ для выполнения действий в этом пространстве",
|
|
64
68
|
"BlobSize": "Размер",
|
|
65
69
|
"BlobContentType": "Тип контента",
|
|
66
70
|
"Relation": "Связь",
|
|
67
71
|
"Relations": "Связи",
|
|
68
72
|
"AddRelation": "Добавить связь",
|
|
69
73
|
"PersonId": "Персона",
|
|
70
|
-
"AccountId": "Аккаунт"
|
|
74
|
+
"AccountId": "Аккаунт",
|
|
75
|
+
"Version": "Версия"
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -61,12 +61,17 @@
|
|
|
61
61
|
"ArchiveSpaceDescription": "Kullanıcılara alanı arşivleme yetkisi verir",
|
|
62
62
|
"AutoJoin": "Otomatik katıl",
|
|
63
63
|
"AutoJoinDescr": "Yeni çalışanları bu alana otomatik olarak ekle",
|
|
64
|
+
"AutoJoinGuests": "Misafirleri otomatik katıl",
|
|
65
|
+
"AutoJoinGuestsDescr": "Etkinleştirilirse, çalışma alanı misafirleri etkinleştirmede bu alana eklenir",
|
|
66
|
+
"RBAC": "Rol tabanlı erişim kontrolü",
|
|
67
|
+
"RBACDescr": "Bu alanda işlemleri gerçekleştirmek için rol tabanlı erişim gerektir",
|
|
64
68
|
"BlobSize": "Boyut",
|
|
65
69
|
"BlobContentType": "İçerik türü",
|
|
66
70
|
"Relation": "İlişki",
|
|
67
71
|
"Relations": "İlişkiler",
|
|
68
72
|
"AddRelation": "İlişki ekle",
|
|
69
73
|
"PersonId": "Kişi",
|
|
70
|
-
"AccountId": "Hesap"
|
|
74
|
+
"AccountId": "Hesap",
|
|
75
|
+
"Version": "Sürüm"
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -61,12 +61,17 @@
|
|
|
61
61
|
"ArchiveSpaceDescription": "授予用户归档空间的权限",
|
|
62
62
|
"AutoJoin": "自动加入",
|
|
63
63
|
"AutoJoinDescr": "自动将新员工加入此空间",
|
|
64
|
+
"AutoJoinGuests": "访客自动加入",
|
|
65
|
+
"AutoJoinGuestsDescr": "启用后,工作区访客在激活时会加入此空间",
|
|
66
|
+
"RBAC": "基于角色的访问控制",
|
|
67
|
+
"RBACDescr": "要求基于角色的访问权限以在此空间中执行操作",
|
|
64
68
|
"BlobSize": "大小",
|
|
65
69
|
"BlobContentType": "內容類型",
|
|
66
70
|
"Relation": "关系",
|
|
67
71
|
"Relations": "关系",
|
|
68
72
|
"AddRelation": "添加关系",
|
|
69
73
|
"PersonId": "人员 ID",
|
|
70
|
-
"AccountId": "帐户"
|
|
74
|
+
"AccountId": "帐户",
|
|
75
|
+
"Version": "版本"
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var import_classes = require("../classes");
|
|
3
|
+
var import_autoJoinRoles = require("../autoJoinRoles");
|
|
4
|
+
describe("autoJoinRoles", () => {
|
|
5
|
+
test("setWorkspaceGuestAutoJoinRoles toggles Guest only", () => {
|
|
6
|
+
expect((0, import_autoJoinRoles.setWorkspaceGuestAutoJoinRoles)(void 0, false)).toEqual([]);
|
|
7
|
+
expect((0, import_autoJoinRoles.setWorkspaceGuestAutoJoinRoles)([import_classes.AccountRole.User], true).sort()).toEqual(
|
|
8
|
+
[import_classes.AccountRole.User, import_classes.AccountRole.Guest].sort()
|
|
9
|
+
);
|
|
10
|
+
expect((0, import_autoJoinRoles.setWorkspaceGuestAutoJoinRoles)([import_classes.AccountRole.Guest, import_classes.AccountRole.User], false)).toEqual([import_classes.AccountRole.User]);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=autoJoinRoles.test.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/__tests__/autoJoinRoles.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 { AccountRole } from '../classes'\nimport { setWorkspaceGuestAutoJoinRoles } from '../autoJoinRoles'\n\ndescribe('autoJoinRoles', () => {\n test('setWorkspaceGuestAutoJoinRoles toggles Guest only', () => {\n expect(setWorkspaceGuestAutoJoinRoles(undefined, false)).toEqual([])\n expect(setWorkspaceGuestAutoJoinRoles([AccountRole.User], true).sort()).toEqual(\n [AccountRole.User, AccountRole.Guest].sort()\n )\n expect(setWorkspaceGuestAutoJoinRoles([AccountRole.Guest, AccountRole.User], false)).toEqual([AccountRole.User])\n })\n})\n"],
|
|
5
|
+
"mappings": ";AAeA,qBAA4B;AAC5B,2BAA+C;AAE/C,SAAS,iBAAiB,MAAM;AAC9B,OAAK,qDAAqD,MAAM;AAC9D,eAAO,qDAA+B,QAAW,KAAK,CAAC,EAAE,QAAQ,CAAC,CAAC;AACnE,eAAO,qDAA+B,CAAC,2BAAY,IAAI,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE;AAAA,MACtE,CAAC,2BAAY,MAAM,2BAAY,KAAK,EAAE,KAAK;AAAA,IAC7C;AACA,eAAO,qDAA+B,CAAC,2BAAY,OAAO,2BAAY,IAAI,GAAG,KAAK,CAAC,EAAE,QAAQ,CAAC,2BAAY,IAAI,CAAC;AAAA,EACjH,CAAC;AACH,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -229,6 +229,139 @@ describe("memdb", () => {
|
|
|
229
229
|
const result2 = await client.findAll(import_minmodel.test.class.TestComment, {});
|
|
230
230
|
expect(result2).toHaveLength(1);
|
|
231
231
|
});
|
|
232
|
+
it("check associations", async () => {
|
|
233
|
+
const { model } = await createModel();
|
|
234
|
+
const operations = new import_operations.TxOperations(model, import_component.default.account.System);
|
|
235
|
+
const association = await operations.findOne(import_component.default.class.Association, {});
|
|
236
|
+
if (association == null) {
|
|
237
|
+
throw new Error("Association not found");
|
|
238
|
+
}
|
|
239
|
+
const spaces = await operations.findAll(import_component.default.class.Space, {});
|
|
240
|
+
expect(spaces).toHaveLength(2);
|
|
241
|
+
const first = await operations.addCollection(
|
|
242
|
+
import_minmodel.test.class.TestComment,
|
|
243
|
+
import_component.default.space.Model,
|
|
244
|
+
spaces[0]._id,
|
|
245
|
+
spaces[0]._class,
|
|
246
|
+
"comments",
|
|
247
|
+
{
|
|
248
|
+
message: "msg"
|
|
249
|
+
}
|
|
250
|
+
);
|
|
251
|
+
const second = await operations.addCollection(
|
|
252
|
+
import_minmodel.test.class.TestComment,
|
|
253
|
+
import_component.default.space.Model,
|
|
254
|
+
first,
|
|
255
|
+
import_minmodel.test.class.TestComment,
|
|
256
|
+
"comments",
|
|
257
|
+
{
|
|
258
|
+
message: "msg2"
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
await operations.createDoc(import_component.default.class.Relation, "", {
|
|
262
|
+
docA: first,
|
|
263
|
+
docB: second,
|
|
264
|
+
association: association._id
|
|
265
|
+
});
|
|
266
|
+
const r = await operations.findAll(
|
|
267
|
+
import_minmodel.test.class.TestComment,
|
|
268
|
+
{ _id: first },
|
|
269
|
+
{
|
|
270
|
+
associations: [[association._id, 1]]
|
|
271
|
+
}
|
|
272
|
+
);
|
|
273
|
+
expect(r.length).toEqual(1);
|
|
274
|
+
expect(r[0].$associations?.[association._id + "_b"][0]?._id).toEqual(second);
|
|
275
|
+
});
|
|
276
|
+
it("check deep associations", async () => {
|
|
277
|
+
const { model } = await createModel();
|
|
278
|
+
const operations = new import_operations.TxOperations(model, import_component.default.account.System);
|
|
279
|
+
const association = await operations.findOne(import_component.default.class.Association, {});
|
|
280
|
+
if (association == null) {
|
|
281
|
+
throw new Error("Association not found");
|
|
282
|
+
}
|
|
283
|
+
const spaces = await operations.findAll(import_component.default.class.Space, {});
|
|
284
|
+
expect(spaces).toHaveLength(2);
|
|
285
|
+
const zero = await operations.addCollection(
|
|
286
|
+
import_minmodel.test.class.TestComment,
|
|
287
|
+
import_component.default.space.Model,
|
|
288
|
+
spaces[0]._id,
|
|
289
|
+
spaces[0]._class,
|
|
290
|
+
"comments",
|
|
291
|
+
{
|
|
292
|
+
message: "msg"
|
|
293
|
+
}
|
|
294
|
+
);
|
|
295
|
+
const first = await operations.addCollection(
|
|
296
|
+
import_minmodel.test.class.TestComment,
|
|
297
|
+
import_component.default.space.Model,
|
|
298
|
+
spaces[0]._id,
|
|
299
|
+
spaces[0]._class,
|
|
300
|
+
"comments",
|
|
301
|
+
{
|
|
302
|
+
message: "msg"
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
const second = await operations.addCollection(
|
|
306
|
+
import_minmodel.test.class.TestComment,
|
|
307
|
+
import_component.default.space.Model,
|
|
308
|
+
first,
|
|
309
|
+
import_minmodel.test.class.TestComment,
|
|
310
|
+
"comments",
|
|
311
|
+
{
|
|
312
|
+
message: "msg2"
|
|
313
|
+
}
|
|
314
|
+
);
|
|
315
|
+
const second2 = await operations.addCollection(
|
|
316
|
+
import_minmodel.test.class.TestComment,
|
|
317
|
+
import_component.default.space.Model,
|
|
318
|
+
first,
|
|
319
|
+
import_minmodel.test.class.TestComment,
|
|
320
|
+
"comments",
|
|
321
|
+
{
|
|
322
|
+
message: "msg2"
|
|
323
|
+
}
|
|
324
|
+
);
|
|
325
|
+
const third = await operations.addCollection(
|
|
326
|
+
import_minmodel.test.class.TestComment,
|
|
327
|
+
import_component.default.space.Model,
|
|
328
|
+
spaces[0]._id,
|
|
329
|
+
spaces[0]._class,
|
|
330
|
+
"comments",
|
|
331
|
+
{
|
|
332
|
+
message: "msg3"
|
|
333
|
+
}
|
|
334
|
+
);
|
|
335
|
+
await operations.createDoc(import_component.default.class.Relation, "", {
|
|
336
|
+
docA: first,
|
|
337
|
+
docB: second,
|
|
338
|
+
association: association._id
|
|
339
|
+
});
|
|
340
|
+
await operations.createDoc(import_component.default.class.Relation, "", {
|
|
341
|
+
docA: first,
|
|
342
|
+
docB: second2,
|
|
343
|
+
association: association._id
|
|
344
|
+
});
|
|
345
|
+
await operations.createDoc(import_component.default.class.Relation, "", {
|
|
346
|
+
docA: second,
|
|
347
|
+
docB: third,
|
|
348
|
+
association: association._id
|
|
349
|
+
});
|
|
350
|
+
const r = await operations.findAll(
|
|
351
|
+
import_minmodel.test.class.TestComment,
|
|
352
|
+
{ _id: { $in: [zero, first] } },
|
|
353
|
+
{
|
|
354
|
+
associations: [[association._id, 1, [[association._id, 1]]]]
|
|
355
|
+
}
|
|
356
|
+
);
|
|
357
|
+
expect(r.length).toEqual(2);
|
|
358
|
+
expect(r[1].$associations?.[`${association._id}_b`]).toHaveLength(2);
|
|
359
|
+
expect(r[1].$associations?.[`${association._id}_b`][0]?._id).toEqual(second);
|
|
360
|
+
expect(r[1].$associations?.[`${association._id}_b`][1]?.$associations?.[`${association._id}_b`]).toHaveLength(0);
|
|
361
|
+
expect(
|
|
362
|
+
r[1].$associations?.[`${association._id}_b`][0]?.$associations?.[`${association._id}_b`][0]?._id
|
|
363
|
+
).toEqual(third);
|
|
364
|
+
});
|
|
232
365
|
it("lookups", async () => {
|
|
233
366
|
const { model } = await createModel();
|
|
234
367
|
const client = new import_operations.TxOperations(model, import_component.default.account.System);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/__tests__/memdb.test.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 Client, type DomainParams, type DomainRequestOptions, type DomainResult } from '..'\nimport type { Class, Doc, Obj, OperationDomain, Ref } from '../classes'\nimport core from '../component'\nimport { Hierarchy } from '../hierarchy'\nimport { ModelDb, TxDb } from '../memdb'\nimport { TxOperations } from '../operations'\nimport {\n type DocumentQuery,\n type FindOptions,\n type SearchOptions,\n type SearchQuery,\n type SearchResult,\n SortingOrder,\n type WithLookup\n} from '../storage'\nimport { type Tx } from '../tx'\nimport { genMinModel, test, type TestMixin } from './minmodel'\n\nconst txes = genMinModel()\n\nclass ClientModel extends ModelDb implements Client {\n notify?: ((...tx: Tx[]) => void) | undefined\n\n getHierarchy (): Hierarchy {\n return this.hierarchy\n }\n\n getModel (): ModelDb {\n return this\n }\n\n async findOne<T extends Doc>(\n _class: Ref<Class<T>>,\n query: DocumentQuery<T>,\n options?: FindOptions<T>\n ): Promise<WithLookup<T> | undefined> {\n return (await this.findAll(_class, query, options)).shift()\n }\n\n async searchFulltext (query: SearchQuery, options: SearchOptions): Promise<SearchResult> {\n return { docs: [] }\n }\n\n async domainRequest<T>(\n domain: OperationDomain,\n params: DomainParams,\n options?: DomainRequestOptions\n ): Promise<DomainResult<T>> {\n return { domain, value: null as any }\n }\n\n async close (): Promise<void> {}\n}\n\nasync function createModel (modelTxes: Tx[] = txes): Promise<{ model: ClientModel, hierarchy: Hierarchy, txDb: TxDb }> {\n const hierarchy = new Hierarchy()\n for (const tx of modelTxes) {\n hierarchy.tx(tx)\n }\n const model = new ClientModel(hierarchy)\n for (const tx of modelTxes) {\n await model.tx(tx)\n }\n const txDb = new TxDb(hierarchy)\n for (const tx of modelTxes) await txDb.tx(tx)\n return { model, hierarchy, txDb }\n}\n\ndescribe('memdb', () => {\n it('should save all tx', async () => {\n const { txDb } = await createModel()\n\n const result = await txDb.findAll(core.class.Tx, {})\n expect(result.length).toBe(txes.length)\n })\n\n it('should create space', async () => {\n const { model } = await createModel()\n\n const client = new TxOperations(model, core.account.System)\n const result = await client.findAll(core.class.Space, {})\n expect(result).toHaveLength(2)\n\n await client.createDoc(core.class.Space, core.space.Model, {\n private: false,\n name: 'NewSpace',\n description: '',\n members: [],\n archived: false\n })\n const result2 = await client.findAll(core.class.Space, {})\n expect(result2).toHaveLength(3)\n\n await client.createDoc(core.class.Space, core.space.Model, {\n private: false,\n name: 'NewSpace',\n description: '',\n members: [],\n archived: false\n })\n const result3 = await client.findAll(core.class.Space, {})\n expect(result3).toHaveLength(4)\n })\n\n it('should query model', async () => {\n const { model } = await createModel()\n const result = await model.findAll(core.class.Class, {})\n const names = result.map((d) => d._id)\n expect(names.includes(core.class.Class)).toBe(true)\n const result2 = await model.findAll(core.class.Class, { _id: undefined })\n expect(result2.length).toBe(0)\n })\n\n it('should fail query wrong class', async () => {\n const { model } = await createModel()\n\n await expect(model.findAll('class:workbench.Application' as Ref<Class<Doc>>, { _id: undefined })).rejects.toThrow()\n })\n\n it('should create mixin', async () => {\n const { model } = await createModel()\n const ops = new TxOperations(model, core.account.System)\n\n await ops.createMixin<Doc, TestMixin>(core.class.Obj, core.class.Class, core.space.Model, test.mixin.TestMixin, {\n arr: ['hello']\n })\n const objClass = (await model.findAll(core.class.Class, { _id: core.class.Obj }))[0] as any\n expect(objClass['test:mixin:TestMixin'].arr).toEqual(expect.arrayContaining(['hello']))\n })\n\n it('should allow delete', async () => {\n const { model } = await createModel()\n const result = await model.findAll(core.class.Space, {})\n expect(result.length).toBe(2)\n\n const ops = new TxOperations(model, core.account.System)\n await ops.removeDoc(result[0]._class, result[0].space, result[0]._id)\n const result2 = await model.findAll(core.class.Space, {})\n expect(result2).toHaveLength(1)\n })\n\n it('should query model with params', async () => {\n const { model } = await createModel()\n const first = await model.findAll(core.class.Class, {\n _id: txes[1].objectId as Ref<Class<Obj>>,\n kind: 0\n })\n expect(first.length).toBe(1)\n const second = await model.findAll(core.class.Class, {\n _id: { $in: [txes[1].objectId as Ref<Class<Obj>>, txes[3].objectId as Ref<Class<Obj>>] }\n })\n expect(second.length).toBe(2)\n const incorrectId = await model.findAll(core.class.Class, {\n _id: (txes[1].objectId + 'test') as Ref<Class<Obj>>\n })\n expect(incorrectId.length).toBe(0)\n const result = await model.findAll(core.class.Class, {\n _id: txes[1].objectId as Ref<Class<Obj>>,\n kind: 1\n })\n expect(result.length).toBe(0)\n const multipleParam = await model.findAll(core.class.Doc, {\n space: { $in: [core.space.Model, core.space.Tx] }\n })\n expect(multipleParam.length).toBeGreaterThan(5)\n\n const classes = await model.findAll(core.class.Class, {})\n const gt = await model.findAll(core.class.Class, {\n kind: { $gt: 1 }\n })\n expect(gt.length).toBe(classes.filter((p) => p.kind > 1).length)\n const gte = await model.findAll(core.class.Class, {\n kind: { $gte: 1 }\n })\n expect(gte.length).toBe(classes.filter((p) => p.kind >= 1).length)\n const lt = await model.findAll(core.class.Class, {\n kind: { $lt: 1 }\n })\n expect(lt.length).toBe(classes.filter((p) => p.kind < 1).length)\n const lte = await model.findAll(core.class.Class, {\n kind: { $lt: 1 }\n })\n expect(lte.length).toBe(classes.filter((p) => p.kind <= 1).length)\n })\n\n it('should query model like params', async () => {\n const { model } = await createModel()\n const expectedLength = txes.filter((tx) => tx.objectSpace === core.space.Model).length\n const without = await model.findAll(core.class.Doc, {\n space: { $like: core.space.Model }\n })\n expect(without).toHaveLength(expectedLength)\n const begin = await model.findAll(core.class.Doc, {\n space: { $like: '%Model' }\n })\n expect(begin).toHaveLength(expectedLength)\n const zero = await model.findAll(core.class.Doc, {\n space: { $like: 'Model' }\n })\n expect(zero).toHaveLength(0)\n const end = await model.findAll(core.class.Doc, {\n space: { $like: 'core:space:M%' }\n })\n expect(end).toHaveLength(expectedLength)\n const mid = await model.findAll(core.class.Doc, {\n space: { $like: '%M%de%' }\n })\n expect(mid).toHaveLength(expectedLength)\n const all = await model.findAll(core.class.Doc, {\n space: { $like: '%Mod%' }\n })\n expect(all).toHaveLength(expectedLength)\n\n const regex = await model.findAll(core.class.Doc, {\n space: { $regex: '.*Mod.*' }\n })\n expect(regex).toHaveLength(expectedLength)\n })\n\n // TODO: fix this test\n // it('should push to array', async () => {\n // const hierarchy = new Hierarchy()\n // for (const tx of txes) hierarchy.tx(tx)\n // const model = new TxOperations(new ClientModel(hierarchy), core.account.System)\n // for (const tx of txes) await model.tx(tx)\n // const space = await model.createDoc(core.class.Space, core.space.Model, {\n // name: 'name',\n // description: 'desc',\n // private: false,\n // members: [],\n // archived: false\n // })\n // const account = await model.createDoc(core.class.Account, core.space.Model, {\n // email: 'email',\n // role: AccountRole.User\n // })\n // await model.updateDoc(core.class.Space, core.space.Model, space, { $push: { members: account } })\n // const txSpace = await model.findAll(core.class.Space, { _id: space })\n // expect(txSpace[0].members).toEqual(expect.arrayContaining([account]))\n // })\n\n it('limit and sorting', async () => {\n const hierarchy = new Hierarchy()\n for (const tx of txes) hierarchy.tx(tx)\n const model = new TxOperations(new ClientModel(hierarchy), core.account.System)\n for (const tx of txes) await model.tx(tx)\n\n const without = await model.findAll(core.class.Space, {})\n expect(without).toHaveLength(2)\n\n const limit = await model.findAll(core.class.Space, {}, { limit: 1 })\n expect(limit).toHaveLength(1)\n\n const sortAsc = await model.findAll(core.class.Space, {}, { limit: 1, sort: { name: SortingOrder.Ascending } })\n expect(sortAsc[0].name).toMatch('Sp1')\n\n const sortDesc = await model.findAll(core.class.Space, {}, { limit: 1, sort: { name: SortingOrder.Descending } })\n expect(sortDesc[0].name).toMatch('Sp2')\n\n const numberSortDesc = await model.findAll(core.class.Doc, {}, { sort: { modifiedOn: SortingOrder.Descending } })\n expect(numberSortDesc[0].modifiedOn).toBeGreaterThanOrEqual(numberSortDesc[numberSortDesc.length - 1].modifiedOn)\n\n const numberSort = await model.findAll(core.class.Doc, {}, { sort: { modifiedOn: SortingOrder.Ascending } })\n expect(numberSort[0].modifiedOn).toBeLessThanOrEqual(numberSort[numberSortDesc.length - 1].modifiedOn)\n })\n\n it('should add attached document', async () => {\n const { model } = await createModel()\n\n const client = new TxOperations(model, core.account.System)\n const result = await client.findAll(core.class.Space, {})\n expect(result).toHaveLength(2)\n\n await client.addCollection(test.class.TestComment, core.space.Model, result[0]._id, result[0]._class, 'comments', {\n message: 'msg'\n })\n const result2 = await client.findAll(test.class.TestComment, {})\n expect(result2).toHaveLength(1)\n })\n\n it('lookups', async () => {\n const { model } = await createModel()\n\n const client = new TxOperations(model, core.account.System)\n const spaces = await client.findAll(core.class.Space, {})\n expect(spaces).toHaveLength(2)\n\n const first = await client.addCollection(\n test.class.TestComment,\n core.space.Model,\n spaces[0]._id,\n spaces[0]._class,\n 'comments',\n {\n message: 'msg'\n }\n )\n\n const second = await client.addCollection(\n test.class.TestComment,\n core.space.Model,\n first,\n test.class.TestComment,\n 'comments',\n {\n message: 'msg2'\n }\n )\n\n await client.addCollection(test.class.TestComment, core.space.Model, spaces[0]._id, spaces[0]._class, 'comments', {\n message: 'msg3'\n })\n\n const simple = await client.findAll(\n test.class.TestComment,\n { _id: first },\n { lookup: { attachedTo: spaces[0]._class } }\n )\n expect(simple[0].$lookup?.attachedTo).toEqual(spaces[0])\n\n const nested = await client.findAll(\n test.class.TestComment,\n { _id: second },\n { lookup: { attachedTo: [test.class.TestComment, { attachedTo: spaces[0]._class } as any] } }\n )\n expect((nested[0].$lookup?.attachedTo as any).$lookup?.attachedTo).toEqual(spaces[0])\n\n const reverse = await client.findAll(\n spaces[0]._class,\n { _id: spaces[0]._id },\n { lookup: { _id: { comments: test.class.TestComment } } }\n )\n expect((reverse[0].$lookup as any).comments).toHaveLength(2)\n })\n\n it('mixin lookups', async () => {\n const { model } = await createModel()\n\n const client = new TxOperations(model, core.account.System)\n const spaces = await client.findAll(core.class.Space, {})\n expect(spaces).toHaveLength(2)\n\n const task = await client.createDoc(test.class.Task, spaces[0]._id, {\n name: 'TSK1',\n number: 1,\n state: 0\n })\n\n await client.createMixin(task, test.class.Task, spaces[0]._id, test.mixin.TaskMixinTodos, {\n todos: 0\n })\n\n await client.addCollection(test.class.TestMixinTodo, spaces[0]._id, task, test.mixin.TaskMixinTodos, 'todos', {\n text: 'qwe'\n })\n await client.addCollection(test.class.TestMixinTodo, spaces[0]._id, task, test.mixin.TaskMixinTodos, 'todos', {\n text: 'qwe2'\n })\n\n const results = await client.findAll(\n test.class.TestMixinTodo,\n {},\n { lookup: { attachedTo: test.mixin.TaskMixinTodos } }\n )\n expect(results.length).toEqual(2)\n const attached = results[0].$lookup?.attachedTo\n expect(attached).toBeDefined()\n expect(Hierarchy.mixinOrClass(attached as Doc)).toEqual(test.mixin.TaskMixinTodos)\n })\n\n it('createDoc for AttachedDoc', async () => {\n expect.assertions(1)\n const { model } = await createModel()\n\n const client = new TxOperations(model, core.account.System)\n const spaces = await client.findAll(core.class.Space, {})\n const task = await client.createDoc(test.class.Task, spaces[0]._id, {\n name: 'TSK1',\n number: 1,\n state: 0\n })\n try {\n await client.createDoc(test.class.TestMixinTodo, spaces[0]._id, {\n text: '',\n attachedTo: task,\n attachedToClass: test.mixin.TaskMixinTodos,\n collection: 'todos'\n })\n } catch (e) {\n expect(e).toEqual(new Error('createDoc cannot be used for objects inherited from AttachedDoc'))\n }\n })\n})\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAiBA,uBAAiB;AACjB,uBAA0B;AAC1B,mBAA8B;AAC9B,wBAA6B;AAC7B,qBAQO;AAEP,sBAAkD;AAElD,MAAM,WAAO,6BAAY;AAEzB,MAAM,oBAAoB,qBAA0B;AAAA,EAnCpD,OA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AAA,MAC3B,qBAAK,MAAM;AAAA,MACX,CAAC;AAAA,MACD,EAAE,QAAQ,EAAE,YAAY,qBAAK,MAAM,eAAe,EAAE;AAAA,IACtD;AACA,WAAO,QAAQ,MAAM,EAAE,QAAQ,CAAC;AAChC,UAAM,WAAW,QAAQ,CAAC,EAAE,SAAS;AACrC,WAAO,QAAQ,EAAE,YAAY;AAC7B,WAAO,2BAAU,aAAa,QAAe,CAAC,EAAE,QAAQ,qBAAK,MAAM,cAAc;AAAA,EACnF,CAAC;AAED,KAAG,6BAA6B,YAAY;AAC1C,WAAO,WAAW,CAAC;AACnB,UAAM,EAAE,MAAM,IAAI,MAAM,YAAY;AAEpC,UAAM,SAAS,IAAI,+BAAa,OAAO,iBAAAA,QAAK,QAAQ,MAAM;AAC1D,UAAM,SAAS,MAAM,OAAO,QAAQ,iBAAAA,QAAK,MAAM,OAAO,CAAC,CAAC;AACxD,UAAM,OAAO,MAAM,OAAO,UAAU,qBAAK,MAAM,MAAM,OAAO,CAAC,EAAE,KAAK;AAAA,MAClE,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO;AAAA,IACT,CAAC;AACD,QAAI;AACF,YAAM,OAAO,UAAU,qBAAK,MAAM,eAAe,OAAO,CAAC,EAAE,KAAK;AAAA,QAC9D,MAAM;AAAA,QACN,YAAY;AAAA,QACZ,iBAAiB,qBAAK,MAAM;AAAA,QAC5B,YAAY;AAAA,MACd,CAAC;AAAA,IACH,SAAS,GAAG;AACV,aAAO,CAAC,EAAE,QAAQ,IAAI,MAAM,iEAAiE,CAAC;AAAA,IAChG;AAAA,EACF,CAAC;AACH,CAAC;",
|
|
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 Client, type DomainParams, type DomainRequestOptions, type DomainResult } from '..'\nimport type { Class, Doc, Obj, OperationDomain, Ref, Space } from '../classes'\nimport core from '../component'\nimport { Hierarchy } from '../hierarchy'\nimport { ModelDb, TxDb } from '../memdb'\nimport { TxOperations } from '../operations'\nimport {\n type DocumentQuery,\n type FindOptions,\n type SearchOptions,\n type SearchQuery,\n type SearchResult,\n SortingOrder,\n type WithLookup\n} from '../storage'\nimport { type Tx } from '../tx'\nimport { genMinModel, test, type TestMixin } from './minmodel'\n\nconst txes = genMinModel()\n\nclass ClientModel extends ModelDb implements Client {\n notify?: ((...tx: Tx[]) => void) | undefined\n\n getHierarchy (): Hierarchy {\n return this.hierarchy\n }\n\n getModel (): ModelDb {\n return this\n }\n\n async findOne<T extends Doc>(\n _class: Ref<Class<T>>,\n query: DocumentQuery<T>,\n options?: FindOptions<T>\n ): Promise<WithLookup<T> | undefined> {\n return (await this.findAll(_class, query, options)).shift()\n }\n\n async searchFulltext (query: SearchQuery, options: SearchOptions): Promise<SearchResult> {\n return { docs: [] }\n }\n\n async domainRequest<T>(\n domain: OperationDomain,\n params: DomainParams,\n options?: DomainRequestOptions\n ): Promise<DomainResult<T>> {\n return { domain, value: null as any }\n }\n\n async close (): Promise<void> {}\n}\n\nasync function createModel (modelTxes: Tx[] = txes): Promise<{ model: ClientModel, hierarchy: Hierarchy, txDb: TxDb }> {\n const hierarchy = new Hierarchy()\n for (const tx of modelTxes) {\n hierarchy.tx(tx)\n }\n const model = new ClientModel(hierarchy)\n for (const tx of modelTxes) {\n await model.tx(tx)\n }\n const txDb = new TxDb(hierarchy)\n for (const tx of modelTxes) await txDb.tx(tx)\n return { model, hierarchy, txDb }\n}\n\ndescribe('memdb', () => {\n it('should save all tx', async () => {\n const { txDb } = await createModel()\n\n const result = await txDb.findAll(core.class.Tx, {})\n expect(result.length).toBe(txes.length)\n })\n\n it('should create space', async () => {\n const { model } = await createModel()\n\n const client = new TxOperations(model, core.account.System)\n const result = await client.findAll(core.class.Space, {})\n expect(result).toHaveLength(2)\n\n await client.createDoc(core.class.Space, core.space.Model, {\n private: false,\n name: 'NewSpace',\n description: '',\n members: [],\n archived: false\n })\n const result2 = await client.findAll(core.class.Space, {})\n expect(result2).toHaveLength(3)\n\n await client.createDoc(core.class.Space, core.space.Model, {\n private: false,\n name: 'NewSpace',\n description: '',\n members: [],\n archived: false\n })\n const result3 = await client.findAll(core.class.Space, {})\n expect(result3).toHaveLength(4)\n })\n\n it('should query model', async () => {\n const { model } = await createModel()\n const result = await model.findAll(core.class.Class, {})\n const names = result.map((d) => d._id)\n expect(names.includes(core.class.Class)).toBe(true)\n const result2 = await model.findAll(core.class.Class, { _id: undefined })\n expect(result2.length).toBe(0)\n })\n\n it('should fail query wrong class', async () => {\n const { model } = await createModel()\n\n await expect(model.findAll('class:workbench.Application' as Ref<Class<Doc>>, { _id: undefined })).rejects.toThrow()\n })\n\n it('should create mixin', async () => {\n const { model } = await createModel()\n const ops = new TxOperations(model, core.account.System)\n\n await ops.createMixin<Doc, TestMixin>(core.class.Obj, core.class.Class, core.space.Model, test.mixin.TestMixin, {\n arr: ['hello']\n })\n const objClass = (await model.findAll(core.class.Class, { _id: core.class.Obj }))[0] as any\n expect(objClass['test:mixin:TestMixin'].arr).toEqual(expect.arrayContaining(['hello']))\n })\n\n it('should allow delete', async () => {\n const { model } = await createModel()\n const result = await model.findAll(core.class.Space, {})\n expect(result.length).toBe(2)\n\n const ops = new TxOperations(model, core.account.System)\n await ops.removeDoc(result[0]._class, result[0].space, result[0]._id)\n const result2 = await model.findAll(core.class.Space, {})\n expect(result2).toHaveLength(1)\n })\n\n it('should query model with params', async () => {\n const { model } = await createModel()\n const first = await model.findAll(core.class.Class, {\n _id: txes[1].objectId as Ref<Class<Obj>>,\n kind: 0\n })\n expect(first.length).toBe(1)\n const second = await model.findAll(core.class.Class, {\n _id: { $in: [txes[1].objectId as Ref<Class<Obj>>, txes[3].objectId as Ref<Class<Obj>>] }\n })\n expect(second.length).toBe(2)\n const incorrectId = await model.findAll(core.class.Class, {\n _id: (txes[1].objectId + 'test') as Ref<Class<Obj>>\n })\n expect(incorrectId.length).toBe(0)\n const result = await model.findAll(core.class.Class, {\n _id: txes[1].objectId as Ref<Class<Obj>>,\n kind: 1\n })\n expect(result.length).toBe(0)\n const multipleParam = await model.findAll(core.class.Doc, {\n space: { $in: [core.space.Model, core.space.Tx] }\n })\n expect(multipleParam.length).toBeGreaterThan(5)\n\n const classes = await model.findAll(core.class.Class, {})\n const gt = await model.findAll(core.class.Class, {\n kind: { $gt: 1 }\n })\n expect(gt.length).toBe(classes.filter((p) => p.kind > 1).length)\n const gte = await model.findAll(core.class.Class, {\n kind: { $gte: 1 }\n })\n expect(gte.length).toBe(classes.filter((p) => p.kind >= 1).length)\n const lt = await model.findAll(core.class.Class, {\n kind: { $lt: 1 }\n })\n expect(lt.length).toBe(classes.filter((p) => p.kind < 1).length)\n const lte = await model.findAll(core.class.Class, {\n kind: { $lt: 1 }\n })\n expect(lte.length).toBe(classes.filter((p) => p.kind <= 1).length)\n })\n\n it('should query model like params', async () => {\n const { model } = await createModel()\n const expectedLength = txes.filter((tx) => tx.objectSpace === core.space.Model).length\n const without = await model.findAll(core.class.Doc, {\n space: { $like: core.space.Model }\n })\n expect(without).toHaveLength(expectedLength)\n const begin = await model.findAll(core.class.Doc, {\n space: { $like: '%Model' }\n })\n expect(begin).toHaveLength(expectedLength)\n const zero = await model.findAll(core.class.Doc, {\n space: { $like: 'Model' }\n })\n expect(zero).toHaveLength(0)\n const end = await model.findAll(core.class.Doc, {\n space: { $like: 'core:space:M%' }\n })\n expect(end).toHaveLength(expectedLength)\n const mid = await model.findAll(core.class.Doc, {\n space: { $like: '%M%de%' }\n })\n expect(mid).toHaveLength(expectedLength)\n const all = await model.findAll(core.class.Doc, {\n space: { $like: '%Mod%' }\n })\n expect(all).toHaveLength(expectedLength)\n\n const regex = await model.findAll(core.class.Doc, {\n space: { $regex: '.*Mod.*' }\n })\n expect(regex).toHaveLength(expectedLength)\n })\n\n // TODO: fix this test\n // it('should push to array', async () => {\n // const hierarchy = new Hierarchy()\n // for (const tx of txes) hierarchy.tx(tx)\n // const model = new TxOperations(new ClientModel(hierarchy), core.account.System)\n // for (const tx of txes) await model.tx(tx)\n // const space = await model.createDoc(core.class.Space, core.space.Model, {\n // name: 'name',\n // description: 'desc',\n // private: false,\n // members: [],\n // archived: false\n // })\n // const account = await model.createDoc(core.class.Account, core.space.Model, {\n // email: 'email',\n // role: AccountRole.User\n // })\n // await model.updateDoc(core.class.Space, core.space.Model, space, { $push: { members: account } })\n // const txSpace = await model.findAll(core.class.Space, { _id: space })\n // expect(txSpace[0].members).toEqual(expect.arrayContaining([account]))\n // })\n\n it('limit and sorting', async () => {\n const hierarchy = new Hierarchy()\n for (const tx of txes) hierarchy.tx(tx)\n const model = new TxOperations(new ClientModel(hierarchy), core.account.System)\n for (const tx of txes) await model.tx(tx)\n\n const without = await model.findAll(core.class.Space, {})\n expect(without).toHaveLength(2)\n\n const limit = await model.findAll(core.class.Space, {}, { limit: 1 })\n expect(limit).toHaveLength(1)\n\n const sortAsc = await model.findAll(core.class.Space, {}, { limit: 1, sort: { name: SortingOrder.Ascending } })\n expect(sortAsc[0].name).toMatch('Sp1')\n\n const sortDesc = await model.findAll(core.class.Space, {}, { limit: 1, sort: { name: SortingOrder.Descending } })\n expect(sortDesc[0].name).toMatch('Sp2')\n\n const numberSortDesc = await model.findAll(core.class.Doc, {}, { sort: { modifiedOn: SortingOrder.Descending } })\n expect(numberSortDesc[0].modifiedOn).toBeGreaterThanOrEqual(numberSortDesc[numberSortDesc.length - 1].modifiedOn)\n\n const numberSort = await model.findAll(core.class.Doc, {}, { sort: { modifiedOn: SortingOrder.Ascending } })\n expect(numberSort[0].modifiedOn).toBeLessThanOrEqual(numberSort[numberSortDesc.length - 1].modifiedOn)\n })\n\n it('should add attached document', async () => {\n const { model } = await createModel()\n\n const client = new TxOperations(model, core.account.System)\n const result = await client.findAll(core.class.Space, {})\n expect(result).toHaveLength(2)\n\n await client.addCollection(test.class.TestComment, core.space.Model, result[0]._id, result[0]._class, 'comments', {\n message: 'msg'\n })\n const result2 = await client.findAll(test.class.TestComment, {})\n expect(result2).toHaveLength(1)\n })\n\n it('check associations', async () => {\n const { model } = await createModel()\n const operations = new TxOperations(model, core.account.System)\n const association = await operations.findOne(core.class.Association, {})\n if (association == null) {\n throw new Error('Association not found')\n }\n\n const spaces = await operations.findAll(core.class.Space, {})\n expect(spaces).toHaveLength(2)\n\n const first = await operations.addCollection(\n test.class.TestComment,\n core.space.Model,\n spaces[0]._id,\n spaces[0]._class,\n 'comments',\n {\n message: 'msg'\n }\n )\n\n const second = await operations.addCollection(\n test.class.TestComment,\n core.space.Model,\n first,\n test.class.TestComment,\n 'comments',\n {\n message: 'msg2'\n }\n )\n\n await operations.createDoc(core.class.Relation, '' as Ref<Space>, {\n docA: first,\n docB: second,\n association: association._id\n })\n\n const r = await operations.findAll(\n test.class.TestComment,\n { _id: first },\n {\n associations: [[association._id, 1]]\n }\n )\n expect(r.length).toEqual(1)\n expect((r[0].$associations?.[association._id + '_b'][0] as any)?._id).toEqual(second)\n })\n\n it('check deep associations', async () => {\n const { model } = await createModel()\n const operations = new TxOperations(model, core.account.System)\n const association = await operations.findOne(core.class.Association, {})\n if (association == null) {\n throw new Error('Association not found')\n }\n\n const spaces = await operations.findAll(core.class.Space, {})\n expect(spaces).toHaveLength(2)\n\n const zero = await operations.addCollection(\n test.class.TestComment,\n core.space.Model,\n spaces[0]._id,\n spaces[0]._class,\n 'comments',\n {\n message: 'msg'\n }\n )\n\n const first = await operations.addCollection(\n test.class.TestComment,\n core.space.Model,\n spaces[0]._id,\n spaces[0]._class,\n 'comments',\n {\n message: 'msg'\n }\n )\n\n const second = await operations.addCollection(\n test.class.TestComment,\n core.space.Model,\n first,\n test.class.TestComment,\n 'comments',\n {\n message: 'msg2'\n }\n )\n\n const second2 = await operations.addCollection(\n test.class.TestComment,\n core.space.Model,\n first,\n test.class.TestComment,\n 'comments',\n {\n message: 'msg2'\n }\n )\n\n const third = await operations.addCollection(\n test.class.TestComment,\n core.space.Model,\n spaces[0]._id,\n spaces[0]._class,\n 'comments',\n {\n message: 'msg3'\n }\n )\n await operations.createDoc(core.class.Relation, '' as Ref<Space>, {\n docA: first,\n docB: second,\n association: association._id\n })\n\n await operations.createDoc(core.class.Relation, '' as Ref<Space>, {\n docA: first,\n docB: second2,\n association: association._id\n })\n\n await operations.createDoc(core.class.Relation, '' as Ref<Space>, {\n docA: second,\n docB: third,\n association: association._id\n })\n\n const r = await operations.findAll(\n test.class.TestComment,\n { _id: { $in: [zero, first] } },\n {\n associations: [[association._id, 1, [[association._id, 1]]]]\n }\n )\n expect(r.length).toEqual(2)\n expect(r[1].$associations?.[`${association._id}_b`]).toHaveLength(2)\n expect((r[1].$associations?.[`${association._id}_b`][0] as any)?._id).toEqual(second)\n expect(r[1].$associations?.[`${association._id}_b`][1]?.$associations?.[`${association._id}_b`]).toHaveLength(0)\n expect(\n (r[1].$associations?.[`${association._id}_b`][0]?.$associations?.[`${association._id}_b`][0] as any)?._id\n ).toEqual(third)\n })\n\n it('lookups', async () => {\n const { model } = await createModel()\n\n const client = new TxOperations(model, core.account.System)\n const spaces = await client.findAll(core.class.Space, {})\n expect(spaces).toHaveLength(2)\n\n const first = await client.addCollection(\n test.class.TestComment,\n core.space.Model,\n spaces[0]._id,\n spaces[0]._class,\n 'comments',\n {\n message: 'msg'\n }\n )\n\n const second = await client.addCollection(\n test.class.TestComment,\n core.space.Model,\n first,\n test.class.TestComment,\n 'comments',\n {\n message: 'msg2'\n }\n )\n\n await client.addCollection(test.class.TestComment, core.space.Model, spaces[0]._id, spaces[0]._class, 'comments', {\n message: 'msg3'\n })\n\n const simple = await client.findAll(\n test.class.TestComment,\n { _id: first },\n { lookup: { attachedTo: spaces[0]._class } }\n )\n expect(simple[0].$lookup?.attachedTo).toEqual(spaces[0])\n\n const nested = await client.findAll(\n test.class.TestComment,\n { _id: second },\n { lookup: { attachedTo: [test.class.TestComment, { attachedTo: spaces[0]._class } as any] } }\n )\n expect((nested[0].$lookup?.attachedTo as any).$lookup?.attachedTo).toEqual(spaces[0])\n\n const reverse = await client.findAll(\n spaces[0]._class,\n { _id: spaces[0]._id },\n { lookup: { _id: { comments: test.class.TestComment } } }\n )\n expect((reverse[0].$lookup as any).comments).toHaveLength(2)\n })\n\n it('mixin lookups', async () => {\n const { model } = await createModel()\n\n const client = new TxOperations(model, core.account.System)\n const spaces = await client.findAll(core.class.Space, {})\n expect(spaces).toHaveLength(2)\n\n const task = await client.createDoc(test.class.Task, spaces[0]._id, {\n name: 'TSK1',\n number: 1,\n state: 0\n })\n\n await client.createMixin(task, test.class.Task, spaces[0]._id, test.mixin.TaskMixinTodos, {\n todos: 0\n })\n\n await client.addCollection(test.class.TestMixinTodo, spaces[0]._id, task, test.mixin.TaskMixinTodos, 'todos', {\n text: 'qwe'\n })\n await client.addCollection(test.class.TestMixinTodo, spaces[0]._id, task, test.mixin.TaskMixinTodos, 'todos', {\n text: 'qwe2'\n })\n\n const results = await client.findAll(\n test.class.TestMixinTodo,\n {},\n { lookup: { attachedTo: test.mixin.TaskMixinTodos } }\n )\n expect(results.length).toEqual(2)\n const attached = results[0].$lookup?.attachedTo\n expect(attached).toBeDefined()\n expect(Hierarchy.mixinOrClass(attached as Doc)).toEqual(test.mixin.TaskMixinTodos)\n })\n\n it('createDoc for AttachedDoc', async () => {\n expect.assertions(1)\n const { model } = await createModel()\n\n const client = new TxOperations(model, core.account.System)\n const spaces = await client.findAll(core.class.Space, {})\n const task = await client.createDoc(test.class.Task, spaces[0]._id, {\n name: 'TSK1',\n number: 1,\n state: 0\n })\n try {\n await client.createDoc(test.class.TestMixinTodo, spaces[0]._id, {\n text: '',\n attachedTo: task,\n attachedToClass: test.mixin.TaskMixinTodos,\n collection: 'todos'\n })\n } catch (e) {\n expect(e).toEqual(new Error('createDoc cannot be used for objects inherited from AttachedDoc'))\n }\n })\n})\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAiBA,uBAAiB;AACjB,uBAA0B;AAC1B,mBAA8B;AAC9B,wBAA6B;AAC7B,qBAQO;AAEP,sBAAkD;AAElD,MAAM,WAAO,6BAAY;AAEzB,MAAM,oBAAoB,qBAA0B;AAAA,EAnCpD,OAmCoD;AAAA;AAAA;AAAA,EAClD;AAAA,EAEA,eAA2B;AACzB,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,WAAqB;AACnB,WAAO;AAAA,EACT;AAAA,EAEA,MAAM,QACJ,QACA,OACA,SACoC;AACpC,YAAQ,MAAM,KAAK,QAAQ,QAAQ,OAAO,OAAO,GAAG,MAAM;AAAA,EAC5D;AAAA,EAEA,MAAM,eAAgB,OAAoB,SAA+C;AACvF,WAAO,EAAE,MAAM,CAAC,EAAE;AAAA,EACpB;AAAA,EAEA,MAAM,cACJ,QACA,QACA,SAC0B;AAC1B,WAAO,EAAE,QAAQ,OAAO,KAAY;AAAA,EACtC;AAAA,EAEA,MAAM,QAAwB;AAAA,EAAC;AACjC;AAEA,eAAe,YAAa,YAAkB,MAAyE;AACrH,QAAM,YAAY,IAAI,2BAAU;AAChC,aAAW,MAAM,WAAW;AAC1B,cAAU,GAAG,EAAE;AAAA,EACjB;AACA,QAAM,QAAQ,IAAI,YAAY,SAAS;AACvC,aAAW,MAAM,WAAW;AAC1B,UAAM,MAAM,GAAG,EAAE;AAAA,EACnB;AACA,QAAM,OAAO,IAAI,kBAAK,SAAS;AAC/B,aAAW,MAAM,UAAW,OAAM,KAAK,GAAG,EAAE;AAC5C,SAAO,EAAE,OAAO,WAAW,KAAK;AAClC;AAZe;AAcf,SAAS,SAAS,MAAM;AACtB,KAAG,sBAAsB,YAAY;AACnC,UAAM,EAAE,KAAK,IAAI,MAAM,YAAY;AAEnC,U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