@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,716 +0,0 @@
|
|
|
1
|
-
import type { Asset, IntlString, Plugin } from '@hcengineering/platform';
|
|
2
|
-
import type { DocumentQuery } from './storage';
|
|
3
|
-
import { type WorkspaceDataId, type WorkspaceUuid } from './utils';
|
|
4
|
-
import { Tx } from '.';
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type Ref<T extends Doc> = string & {
|
|
9
|
-
__ref: T;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export type PrimitiveType = number | string | boolean | undefined | Ref<Doc>;
|
|
15
|
-
/**
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
export type Timestamp = number;
|
|
19
|
-
/**
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export type Markup = string;
|
|
23
|
-
/**
|
|
24
|
-
* @public
|
|
25
|
-
*/
|
|
26
|
-
export type Hyperlink = string;
|
|
27
|
-
/**
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
export type CollectionSize<T> = T[]['length'];
|
|
31
|
-
/**
|
|
32
|
-
* @public
|
|
33
|
-
*
|
|
34
|
-
* String representation of {@link https://www.npmjs.com/package/lexorank LexoRank} type
|
|
35
|
-
*/
|
|
36
|
-
export type Rank = string;
|
|
37
|
-
/**
|
|
38
|
-
* @public
|
|
39
|
-
*
|
|
40
|
-
* Reference to blob containing snapshot of collaborative doc.
|
|
41
|
-
*/
|
|
42
|
-
export type MarkupBlobRef = Ref<Blob>;
|
|
43
|
-
/**
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
46
|
-
export interface Obj {
|
|
47
|
-
_class: Ref<Class<this>>;
|
|
48
|
-
}
|
|
49
|
-
export interface Account {
|
|
50
|
-
uuid: AccountUuid;
|
|
51
|
-
role: AccountRole;
|
|
52
|
-
primarySocialId: PersonId;
|
|
53
|
-
socialIds: PersonId[];
|
|
54
|
-
fullSocialIds: SocialId[];
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @public
|
|
58
|
-
* Global person UUID.
|
|
59
|
-
*/
|
|
60
|
-
export type PersonUuid = string & {
|
|
61
|
-
__personUuid: true;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* @public
|
|
65
|
-
* Global person account UUID.
|
|
66
|
-
* The same UUID as PersonUuid but for when account exists.
|
|
67
|
-
*/
|
|
68
|
-
export type AccountUuid = PersonUuid & {
|
|
69
|
-
__accountUuid: true;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* @public
|
|
73
|
-
* Generated identifier of a social id linked to a global person.
|
|
74
|
-
*/
|
|
75
|
-
export type PersonId = string & {
|
|
76
|
-
__personId: true;
|
|
77
|
-
};
|
|
78
|
-
export interface BasePerson {
|
|
79
|
-
name: string;
|
|
80
|
-
personUuid?: PersonUuid;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* @public
|
|
84
|
-
*/
|
|
85
|
-
export interface Doc<S extends Space = Space> extends Obj {
|
|
86
|
-
_id: Ref<this>;
|
|
87
|
-
space: Ref<S>;
|
|
88
|
-
modifiedOn: Timestamp;
|
|
89
|
-
modifiedBy: PersonId;
|
|
90
|
-
createdBy?: PersonId;
|
|
91
|
-
createdOn?: Timestamp;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @public
|
|
95
|
-
*/
|
|
96
|
-
export type PropertyType = any;
|
|
97
|
-
/**
|
|
98
|
-
* @public
|
|
99
|
-
*/
|
|
100
|
-
export interface UXObject extends Obj {
|
|
101
|
-
label: IntlString;
|
|
102
|
-
icon?: Asset;
|
|
103
|
-
color?: number;
|
|
104
|
-
hidden?: boolean;
|
|
105
|
-
readonly?: boolean;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* @public
|
|
109
|
-
*/
|
|
110
|
-
export interface Association extends Doc {
|
|
111
|
-
classA: Ref<Class<Doc>>;
|
|
112
|
-
classB: Ref<Class<Doc>>;
|
|
113
|
-
nameA: string;
|
|
114
|
-
nameB: string;
|
|
115
|
-
type: '1:1' | '1:N' | 'N:N';
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* @public
|
|
119
|
-
*/
|
|
120
|
-
export interface Relation extends Doc {
|
|
121
|
-
docA: Ref<Doc>;
|
|
122
|
-
docB: Ref<Doc>;
|
|
123
|
-
association: Ref<Association>;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* @public
|
|
127
|
-
*/
|
|
128
|
-
export interface AttachedDoc<Parent extends Doc = Doc, Collection extends Extract<keyof Parent, string> | string = Extract<keyof Parent, string> | string, S extends Space = Space> extends Doc<S> {
|
|
129
|
-
attachedTo: Ref<Parent>;
|
|
130
|
-
attachedToClass: Ref<Class<Parent>>;
|
|
131
|
-
collection: Collection;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* @public
|
|
135
|
-
*/
|
|
136
|
-
export interface Type<T extends PropertyType> extends UXObject {
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* @public
|
|
140
|
-
*/
|
|
141
|
-
export declare enum IndexKind {
|
|
142
|
-
/**
|
|
143
|
-
* Attribute with this index annotation should be added to elastic for search
|
|
144
|
-
* Could be added to string or Ref attribute
|
|
145
|
-
* TODO: rename properly for better code readability
|
|
146
|
-
*/
|
|
147
|
-
FullText = 0,
|
|
148
|
-
/**
|
|
149
|
-
* For attribute with this annotation should be created an index in mongo database
|
|
150
|
-
*
|
|
151
|
-
* Also mean to include into Elastic search.
|
|
152
|
-
*/
|
|
153
|
-
Indexed = 1,
|
|
154
|
-
IndexedDsc = 2
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* @public
|
|
158
|
-
*/
|
|
159
|
-
export interface Enum extends Doc {
|
|
160
|
-
name: string;
|
|
161
|
-
enumValues: string[];
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* @public
|
|
165
|
-
*/
|
|
166
|
-
export interface Attribute<T extends PropertyType> extends Doc, UXObject {
|
|
167
|
-
attributeOf: Ref<Class<Obj>>;
|
|
168
|
-
name: string;
|
|
169
|
-
type: Type<T>;
|
|
170
|
-
index?: IndexKind;
|
|
171
|
-
shortLabel?: IntlString;
|
|
172
|
-
isCustom?: boolean;
|
|
173
|
-
defaultValue?: any;
|
|
174
|
-
automationOnly?: boolean;
|
|
175
|
-
rank?: Rank;
|
|
176
|
-
[key: string]: any;
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* @public
|
|
180
|
-
*/
|
|
181
|
-
export type AnyAttribute = Attribute<Type<any>>;
|
|
182
|
-
/**
|
|
183
|
-
* @public
|
|
184
|
-
*/
|
|
185
|
-
export declare enum ClassifierKind {
|
|
186
|
-
CLASS = 0,
|
|
187
|
-
INTERFACE = 1,
|
|
188
|
-
MIXIN = 2
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* @public
|
|
192
|
-
*/
|
|
193
|
-
export interface Classifier extends Doc, UXObject {
|
|
194
|
-
kind: ClassifierKind;
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* @public
|
|
198
|
-
*/
|
|
199
|
-
export type Domain = string & {
|
|
200
|
-
__domain: true;
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* @public
|
|
204
|
-
*/
|
|
205
|
-
export type OperationDomain = string & {
|
|
206
|
-
__domain: true;
|
|
207
|
-
};
|
|
208
|
-
/**
|
|
209
|
-
* @public
|
|
210
|
-
*/
|
|
211
|
-
export interface Interface<T extends Doc> extends Classifier {
|
|
212
|
-
extends?: Ref<Interface<Doc>>[];
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* @public
|
|
216
|
-
*/
|
|
217
|
-
export interface Class<T extends Obj> extends Classifier {
|
|
218
|
-
extends?: Ref<Class<Obj>>;
|
|
219
|
-
implements?: Ref<Interface<Doc>>[];
|
|
220
|
-
domain?: Domain;
|
|
221
|
-
shortLabel?: string;
|
|
222
|
-
sortingKey?: string;
|
|
223
|
-
filteringKey?: string;
|
|
224
|
-
pluralLabel?: IntlString;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* @public
|
|
228
|
-
* Define a set of plugin to model document bindings.
|
|
229
|
-
*/
|
|
230
|
-
export interface PluginConfiguration extends Doc {
|
|
231
|
-
pluginId: Plugin;
|
|
232
|
-
transactions: Ref<Doc>[];
|
|
233
|
-
label: IntlString;
|
|
234
|
-
icon?: Asset;
|
|
235
|
-
description?: IntlString;
|
|
236
|
-
enabled: boolean;
|
|
237
|
-
system?: true;
|
|
238
|
-
hidden?: boolean;
|
|
239
|
-
beta: boolean;
|
|
240
|
-
classFilter?: Ref<Class<Obj>>[];
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* @public
|
|
244
|
-
*/
|
|
245
|
-
export type Mixin<T extends Doc> = Class<T>;
|
|
246
|
-
/**
|
|
247
|
-
* @public
|
|
248
|
-
*/
|
|
249
|
-
export type Data<T extends Doc> = Omit<T, keyof Doc>;
|
|
250
|
-
/**
|
|
251
|
-
* @public
|
|
252
|
-
*/
|
|
253
|
-
export type AttachedData<T extends AttachedDoc> = Omit<T, keyof AttachedDoc>;
|
|
254
|
-
/**
|
|
255
|
-
* @public
|
|
256
|
-
*/
|
|
257
|
-
export type DocData<T extends Doc> = T extends AttachedDoc ? AttachedData<T> : Data<T>;
|
|
258
|
-
/**
|
|
259
|
-
* @public
|
|
260
|
-
*/
|
|
261
|
-
export declare enum DateRangeMode {
|
|
262
|
-
DATE = "date",
|
|
263
|
-
TIME = "time",
|
|
264
|
-
DATETIME = "datetime",
|
|
265
|
-
TIMEONLY = "timeonly"
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* @public
|
|
269
|
-
*/
|
|
270
|
-
export interface TypeDate extends Type<Date> {
|
|
271
|
-
mode: DateRangeMode;
|
|
272
|
-
withShift: boolean;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* @public
|
|
276
|
-
*/
|
|
277
|
-
export interface TypeIdentifier extends Type<string> {
|
|
278
|
-
of: Ref<CustomSequence>;
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* @public
|
|
282
|
-
*/
|
|
283
|
-
export interface TypeNumber extends Type<number> {
|
|
284
|
-
min?: number;
|
|
285
|
-
max?: number;
|
|
286
|
-
digits?: number;
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* @public
|
|
290
|
-
*/
|
|
291
|
-
export interface RefTo<T extends Doc> extends Type<Ref<Class<T>>> {
|
|
292
|
-
to: Ref<Class<T>>;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* @public
|
|
296
|
-
*/
|
|
297
|
-
export interface Collection<T extends AttachedDoc> extends Type<CollectionSize<T>> {
|
|
298
|
-
of: Ref<Class<T>>;
|
|
299
|
-
itemLabel?: IntlString;
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* @public
|
|
303
|
-
*/
|
|
304
|
-
export type Arr<T extends PropertyType> = T[];
|
|
305
|
-
/**
|
|
306
|
-
* @public
|
|
307
|
-
*/
|
|
308
|
-
export interface ArrOf<T extends PropertyType> extends Type<T[]> {
|
|
309
|
-
of: Type<T>;
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* @public
|
|
313
|
-
*/
|
|
314
|
-
export interface EnumOf extends Type<string> {
|
|
315
|
-
of: Ref<Enum>;
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* @public
|
|
319
|
-
*/
|
|
320
|
-
export interface TypeHyperlink extends Type<Hyperlink> {
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* @public
|
|
324
|
-
*
|
|
325
|
-
* A type for some custom serialized field with a set of editors
|
|
326
|
-
*/
|
|
327
|
-
export interface TypeAny<AnyComponent = any> extends Type<any> {
|
|
328
|
-
presenter: AnyComponent;
|
|
329
|
-
editor?: AnyComponent;
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* @public
|
|
333
|
-
*/
|
|
334
|
-
export declare const DOMAIN_MODEL: Domain;
|
|
335
|
-
/**
|
|
336
|
-
* @public
|
|
337
|
-
*/
|
|
338
|
-
export declare const DOMAIN_MODEL_TX: Domain;
|
|
339
|
-
/**
|
|
340
|
-
* @public
|
|
341
|
-
*/
|
|
342
|
-
export declare const DOMAIN_SPACE: Domain;
|
|
343
|
-
/**
|
|
344
|
-
* @public
|
|
345
|
-
*/
|
|
346
|
-
export declare const DOMAIN_CONFIGURATION: Domain;
|
|
347
|
-
/**
|
|
348
|
-
* @public
|
|
349
|
-
*/
|
|
350
|
-
export declare const DOMAIN_MIGRATION: Domain;
|
|
351
|
-
/**
|
|
352
|
-
* @public
|
|
353
|
-
*/
|
|
354
|
-
export declare const DOMAIN_TRANSIENT: Domain;
|
|
355
|
-
/**
|
|
356
|
-
* @public
|
|
357
|
-
*/
|
|
358
|
-
export declare const DOMAIN_RELATION: Domain;
|
|
359
|
-
/**
|
|
360
|
-
* @public
|
|
361
|
-
*/
|
|
362
|
-
export declare const DOMAIN_COLLABORATOR: Domain;
|
|
363
|
-
/**
|
|
364
|
-
* @public
|
|
365
|
-
*/
|
|
366
|
-
export interface TransientConfiguration extends Class<Doc> {
|
|
367
|
-
broadcastOnly: boolean;
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* Special domain to access s3 blob data.
|
|
371
|
-
* @public
|
|
372
|
-
*/
|
|
373
|
-
export declare const DOMAIN_BLOB: Domain;
|
|
374
|
-
/**
|
|
375
|
-
* @public
|
|
376
|
-
*/
|
|
377
|
-
export declare const DOMAIN_SEQUENCE: Domain;
|
|
378
|
-
/**
|
|
379
|
-
* @public
|
|
380
|
-
*/
|
|
381
|
-
export interface Space extends Doc {
|
|
382
|
-
name: string;
|
|
383
|
-
description: string;
|
|
384
|
-
private: boolean;
|
|
385
|
-
members: AccountUuid[];
|
|
386
|
-
archived: boolean;
|
|
387
|
-
owners?: AccountUuid[];
|
|
388
|
-
autoJoin?: boolean;
|
|
389
|
-
}
|
|
390
|
-
/**
|
|
391
|
-
* @public
|
|
392
|
-
*/
|
|
393
|
-
export interface SystemSpace extends Space {
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* @public
|
|
397
|
-
*
|
|
398
|
-
* Space with custom configured type
|
|
399
|
-
*/
|
|
400
|
-
export interface TypedSpace extends Space {
|
|
401
|
-
type: Ref<SpaceType>;
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* @public
|
|
405
|
-
*
|
|
406
|
-
* Is used to describe "types" for space type
|
|
407
|
-
*/
|
|
408
|
-
export interface SpaceTypeDescriptor extends Doc {
|
|
409
|
-
name: IntlString;
|
|
410
|
-
description: IntlString;
|
|
411
|
-
icon: Asset;
|
|
412
|
-
baseClass: Ref<Class<Space>>;
|
|
413
|
-
availablePermissions: Ref<Permission>[];
|
|
414
|
-
system?: boolean;
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
* @public
|
|
418
|
-
*
|
|
419
|
-
* Customisable space type allowing to configure space roles and permissions within them
|
|
420
|
-
*/
|
|
421
|
-
export interface SpaceType extends Doc {
|
|
422
|
-
name: string;
|
|
423
|
-
shortDescription?: string;
|
|
424
|
-
descriptor: Ref<SpaceTypeDescriptor>;
|
|
425
|
-
members?: AccountUuid[];
|
|
426
|
-
autoJoin?: boolean;
|
|
427
|
-
targetClass: Ref<Class<Space>>;
|
|
428
|
-
roles: CollectionSize<Role>;
|
|
429
|
-
}
|
|
430
|
-
/**
|
|
431
|
-
* @public
|
|
432
|
-
* Role defines permissions for employees assigned to this role within the space
|
|
433
|
-
*/
|
|
434
|
-
export interface Role extends AttachedDoc<SpaceType, 'roles'> {
|
|
435
|
-
name: string;
|
|
436
|
-
permissions: Ref<Permission>[];
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* @public
|
|
440
|
-
* Defines assignment of employees to a role within a space
|
|
441
|
-
*/
|
|
442
|
-
export type RolesAssignment = Record<Ref<Role>, AccountUuid[] | undefined>;
|
|
443
|
-
/**
|
|
444
|
-
* @public
|
|
445
|
-
* Permission is a basic access control item in the system
|
|
446
|
-
*/
|
|
447
|
-
export interface Permission extends Doc {
|
|
448
|
-
label: IntlString;
|
|
449
|
-
txClass?: Ref<Class<Tx>>;
|
|
450
|
-
forbid?: boolean;
|
|
451
|
-
objectClass?: Ref<Class<Doc>>;
|
|
452
|
-
scope?: 'space' | 'workspace';
|
|
453
|
-
txMatch?: DocumentQuery<Tx>;
|
|
454
|
-
description?: IntlString;
|
|
455
|
-
icon?: Asset;
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* @public
|
|
459
|
-
*/
|
|
460
|
-
export declare enum AccountRole {
|
|
461
|
-
ReadOnlyGuest = "READONLYGUEST",
|
|
462
|
-
DocGuest = "DocGuest",
|
|
463
|
-
Guest = "GUEST",
|
|
464
|
-
User = "USER",
|
|
465
|
-
Maintainer = "MAINTAINER",
|
|
466
|
-
Owner = "OWNER",
|
|
467
|
-
Admin = "ADMIN"
|
|
468
|
-
}
|
|
469
|
-
/**
|
|
470
|
-
* @public
|
|
471
|
-
*/
|
|
472
|
-
export declare const roleOrder: Record<AccountRole, number>;
|
|
473
|
-
export interface TxAccessLevel extends Class<Doc> {
|
|
474
|
-
createAccessLevel?: AccountRole;
|
|
475
|
-
removeAccessLevel?: AccountRole;
|
|
476
|
-
updateAccessLevel?: AccountRole;
|
|
477
|
-
isIdentity?: boolean;
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* @public
|
|
481
|
-
*/
|
|
482
|
-
export interface Person {
|
|
483
|
-
uuid: PersonUuid;
|
|
484
|
-
firstName: string;
|
|
485
|
-
lastName: string;
|
|
486
|
-
}
|
|
487
|
-
export interface PersonInfo extends BasePerson {
|
|
488
|
-
socialIds: SocialId[];
|
|
489
|
-
}
|
|
490
|
-
/**
|
|
491
|
-
* @public
|
|
492
|
-
*/
|
|
493
|
-
export interface UserStatus extends Doc {
|
|
494
|
-
online: boolean;
|
|
495
|
-
user: AccountUuid;
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* @public
|
|
499
|
-
*/
|
|
500
|
-
export interface Version extends Doc {
|
|
501
|
-
major: number;
|
|
502
|
-
minor: number;
|
|
503
|
-
patch: number;
|
|
504
|
-
}
|
|
505
|
-
/**
|
|
506
|
-
* @public
|
|
507
|
-
*/
|
|
508
|
-
export interface MigrationState extends Doc {
|
|
509
|
-
plugin: string;
|
|
510
|
-
state: string;
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* @public
|
|
514
|
-
*/
|
|
515
|
-
export declare function versionToString(version: Version | Data<Version>): string;
|
|
516
|
-
/**
|
|
517
|
-
* @public
|
|
518
|
-
*/
|
|
519
|
-
export interface Sequence extends Doc {
|
|
520
|
-
attachedTo: Ref<Class<Doc>>;
|
|
521
|
-
sequence: number;
|
|
522
|
-
}
|
|
523
|
-
export interface CustomSequence extends Sequence {
|
|
524
|
-
prefix: string;
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* @public
|
|
528
|
-
*/
|
|
529
|
-
export type BlobMetadata = Record<string, any>;
|
|
530
|
-
/**
|
|
531
|
-
* @public
|
|
532
|
-
*
|
|
533
|
-
* A blob document to manage blob attached documents.
|
|
534
|
-
*
|
|
535
|
-
* _id: is a platform ID and it created using our regular generateId(),
|
|
536
|
-
* and storageId is a provider specified storage id.
|
|
537
|
-
*/
|
|
538
|
-
export interface Blob extends Doc {
|
|
539
|
-
provider: string;
|
|
540
|
-
contentType: string;
|
|
541
|
-
etag: string;
|
|
542
|
-
version: string | null;
|
|
543
|
-
size: number;
|
|
544
|
-
}
|
|
545
|
-
export interface BlobType {
|
|
546
|
-
file: Ref<Blob>;
|
|
547
|
-
type: string;
|
|
548
|
-
name: string;
|
|
549
|
-
size: number;
|
|
550
|
-
metadata?: BlobMetadata;
|
|
551
|
-
}
|
|
552
|
-
export type Blobs = Record<string, BlobType>;
|
|
553
|
-
/**
|
|
554
|
-
* For every blob will automatically add a lookup.
|
|
555
|
-
*
|
|
556
|
-
* It extends Blob to allow for $lookup operations work as expected.
|
|
557
|
-
*/
|
|
558
|
-
export interface BlobLookup extends Blob {
|
|
559
|
-
downloadUrl: string;
|
|
560
|
-
downloadUrlExpire?: number;
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* @public
|
|
564
|
-
*
|
|
565
|
-
* If defined for class, this class will be enabled for embedding search like openai.
|
|
566
|
-
*/
|
|
567
|
-
export interface FullTextSearchContext extends Doc {
|
|
568
|
-
toClass: Ref<Class<Doc>>;
|
|
569
|
-
fullTextSummary?: boolean;
|
|
570
|
-
forceIndex?: boolean;
|
|
571
|
-
}
|
|
572
|
-
/**
|
|
573
|
-
* @public
|
|
574
|
-
*/
|
|
575
|
-
export interface ConfigurationElement extends Class<Doc> {
|
|
576
|
-
title: IntlString;
|
|
577
|
-
group: IntlString;
|
|
578
|
-
}
|
|
579
|
-
/**
|
|
580
|
-
* @public
|
|
581
|
-
*
|
|
582
|
-
* Define configuration value configuration for workspace.
|
|
583
|
-
*
|
|
584
|
-
* Configuration is accessible only for owners of workspace and under hood services.
|
|
585
|
-
*/
|
|
586
|
-
export interface Configuration extends Doc {
|
|
587
|
-
enabled: boolean;
|
|
588
|
-
}
|
|
589
|
-
/**
|
|
590
|
-
* @public
|
|
591
|
-
*/
|
|
592
|
-
export type RelatedDocument = Pick<Doc, '_id' | '_class'>;
|
|
593
|
-
/**
|
|
594
|
-
* @public
|
|
595
|
-
*/
|
|
596
|
-
export declare enum IndexOrder {
|
|
597
|
-
Ascending = 1,
|
|
598
|
-
Descending = -1
|
|
599
|
-
}
|
|
600
|
-
/**
|
|
601
|
-
* @public
|
|
602
|
-
*/
|
|
603
|
-
export type FieldIndex<T extends Doc> = {
|
|
604
|
-
[P in keyof T]?: IndexOrder;
|
|
605
|
-
} & Record<string, IndexOrder>;
|
|
606
|
-
export interface FieldIndexConfig<T extends Doc> {
|
|
607
|
-
sparse?: boolean;
|
|
608
|
-
filter?: Omit<DocumentQuery<T>, '$search'>;
|
|
609
|
-
keys: FieldIndex<T> | string;
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* @public
|
|
613
|
-
*
|
|
614
|
-
* Mixin for extra indexing fields.
|
|
615
|
-
*/
|
|
616
|
-
export interface IndexingConfiguration<T extends Doc> extends Class<Doc> {
|
|
617
|
-
indexes: (string | FieldIndexConfig<T>)[];
|
|
618
|
-
searchDisabled?: boolean;
|
|
619
|
-
}
|
|
620
|
-
export interface DomainIndexConfiguration extends Doc {
|
|
621
|
-
domain: Domain;
|
|
622
|
-
disableCollection?: boolean;
|
|
623
|
-
disabled?: (FieldIndex<Doc> | string)[];
|
|
624
|
-
indexes?: (FieldIndexConfig<Doc> | string)[];
|
|
625
|
-
skip?: string[];
|
|
626
|
-
}
|
|
627
|
-
export type WorkspaceMode = 'manual-creation' | 'pending-creation' | 'creating' | 'upgrading' | 'pending-deletion' | 'deleting' | 'active' | 'deleted' | 'archiving-pending-backup' | 'archiving-backup' | 'archiving-pending-clean' | 'archiving-clean' | 'archived' | 'migration-pending-backup' | 'migration-backup' | 'migration-pending-clean' | 'migration-clean' | 'pending-restore' | 'restoring';
|
|
628
|
-
export type WorkspaceUserOperation = 'archive' | 'migrate-to' | 'unarchive' | 'delete' | 'reset-attempts';
|
|
629
|
-
export declare function isActiveMode(mode?: WorkspaceMode): boolean;
|
|
630
|
-
export declare function isDeletingMode(mode: WorkspaceMode): boolean;
|
|
631
|
-
export declare function isArchivingMode(mode?: WorkspaceMode): boolean;
|
|
632
|
-
export declare function isMigrationMode(mode?: WorkspaceMode): boolean;
|
|
633
|
-
export declare function isRestoringMode(mode?: WorkspaceMode): boolean;
|
|
634
|
-
export declare function isUpgradingMode(mode?: WorkspaceMode): boolean;
|
|
635
|
-
export type WorkspaceUpdateEvent = 'ping' | 'create-started' | 'create-done' | 'upgrade-started' | 'upgrade-done' | 'restore-started' | 'restore-done' | 'progress' | 'migrate-backup-started' | 'migrate-backup-done' | 'migrate-clean-started' | 'migrate-clean-done' | 'archiving-backup-started' | 'archiving-backup-done' | 'archiving-clean-started' | 'archiving-clean-done' | 'archiving-done' | 'delete-started' | 'delete-done';
|
|
636
|
-
export interface WorkspaceInfo {
|
|
637
|
-
uuid: WorkspaceUuid;
|
|
638
|
-
dataId?: WorkspaceDataId;
|
|
639
|
-
name: string;
|
|
640
|
-
url: string;
|
|
641
|
-
region?: string;
|
|
642
|
-
branding?: string;
|
|
643
|
-
createdOn: number;
|
|
644
|
-
createdBy?: PersonUuid;
|
|
645
|
-
billingAccount?: PersonUuid;
|
|
646
|
-
allowReadOnlyGuest?: boolean;
|
|
647
|
-
allowGuestSignUp?: boolean;
|
|
648
|
-
passwordAgingRule?: number;
|
|
649
|
-
}
|
|
650
|
-
export interface BackupStatus {
|
|
651
|
-
dataSize: number;
|
|
652
|
-
blobsSize: number;
|
|
653
|
-
backupSize: number;
|
|
654
|
-
lastBackup: Timestamp;
|
|
655
|
-
backups: number;
|
|
656
|
-
}
|
|
657
|
-
export interface UsageStatus {
|
|
658
|
-
usage: Record<string, number>;
|
|
659
|
-
startTime: Timestamp;
|
|
660
|
-
updateTime: Timestamp;
|
|
661
|
-
}
|
|
662
|
-
export interface WorkspaceInfoWithStatus extends WorkspaceInfo {
|
|
663
|
-
isDisabled?: boolean;
|
|
664
|
-
versionMajor: number;
|
|
665
|
-
versionMinor: number;
|
|
666
|
-
versionPatch: number;
|
|
667
|
-
lastVisit?: number;
|
|
668
|
-
mode: WorkspaceMode;
|
|
669
|
-
processingProgress?: number;
|
|
670
|
-
backupInfo?: BackupStatus;
|
|
671
|
-
usageInfo?: UsageStatus;
|
|
672
|
-
processingAttemps: number;
|
|
673
|
-
}
|
|
674
|
-
export interface WorkspaceMemberInfo {
|
|
675
|
-
person: AccountUuid;
|
|
676
|
-
role: AccountRole;
|
|
677
|
-
}
|
|
678
|
-
export declare enum SocialIdType {
|
|
679
|
-
EMAIL = "email",
|
|
680
|
-
GITHUB = "github",
|
|
681
|
-
GOOGLE = "google",
|
|
682
|
-
PHONE = "phone",
|
|
683
|
-
OIDC = "oidc",
|
|
684
|
-
HULY = "huly",
|
|
685
|
-
TELEGRAM = "telegram",
|
|
686
|
-
HULY_ASSISTANT = "huly-assistant"
|
|
687
|
-
}
|
|
688
|
-
export interface SocialId {
|
|
689
|
-
_id: PersonId;
|
|
690
|
-
type: SocialIdType;
|
|
691
|
-
value: string;
|
|
692
|
-
key: string;
|
|
693
|
-
displayValue?: string;
|
|
694
|
-
verifiedOn?: number;
|
|
695
|
-
isDeleted?: boolean;
|
|
696
|
-
}
|
|
697
|
-
export interface AccountInfo {
|
|
698
|
-
timezone?: string;
|
|
699
|
-
locale?: string;
|
|
700
|
-
}
|
|
701
|
-
export type SocialKey = Pick<SocialId, 'type' | 'value'>;
|
|
702
|
-
export interface ClassCollaborators<T extends Doc> extends Doc {
|
|
703
|
-
attachedTo: Ref<Class<T>>;
|
|
704
|
-
fields: (keyof T)[];
|
|
705
|
-
provideSecurity?: boolean;
|
|
706
|
-
}
|
|
707
|
-
export interface Collaborator extends AttachedDoc {
|
|
708
|
-
collaborator: AccountUuid;
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* @public
|
|
712
|
-
*/
|
|
713
|
-
export type IntegrationKind = string & {
|
|
714
|
-
__IntegrationKind: true;
|
|
715
|
-
};
|
|
716
|
-
//# sourceMappingURL=classes.d.ts.map
|