@bgx4k3p/huly-mcp-server 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +11 -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,261 +0,0 @@
|
|
|
1
|
-
import type { Arr, AttachedDoc, Class, Data, Doc, Domain, Mixin, OperationDomain, PersonId, PropertyType, Ref, Space, Timestamp } from './classes';
|
|
2
|
-
import type { DocumentQuery, TxResult } from './storage';
|
|
3
|
-
import { type KeysByType } from './utils';
|
|
4
|
-
/**
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export interface Tx extends Doc {
|
|
8
|
-
objectSpace: Ref<Space>;
|
|
9
|
-
meta?: Record<string, string | number | boolean>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export declare enum WorkspaceEvent {
|
|
15
|
-
UpgradeScheduled = 0,
|
|
16
|
-
IndexingUpdate = 1,
|
|
17
|
-
SecurityChange = 2,
|
|
18
|
-
MaintenanceNotification = 3,
|
|
19
|
-
BulkUpdate = 4,
|
|
20
|
-
LastTx = 5
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Event to be send by server during model upgrade procedure.
|
|
24
|
-
* @public
|
|
25
|
-
*/
|
|
26
|
-
export interface TxWorkspaceEvent<T = any> extends Tx {
|
|
27
|
-
event: WorkspaceEvent;
|
|
28
|
-
params: T;
|
|
29
|
-
}
|
|
30
|
-
export interface TxDomainEvent<T = any> extends Tx {
|
|
31
|
-
domain: OperationDomain;
|
|
32
|
-
event: T;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
export interface IndexingUpdateEvent {
|
|
38
|
-
_class: Ref<Class<Doc>>[];
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
|
-
export interface BulkUpdateEvent {
|
|
44
|
-
_class: Ref<Class<Doc>>[];
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @public
|
|
48
|
-
*/
|
|
49
|
-
export interface TxModelUpgrade extends Tx {
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @public
|
|
53
|
-
*/
|
|
54
|
-
export interface TxCUD<T extends Doc> extends Tx {
|
|
55
|
-
objectId: Ref<T>;
|
|
56
|
-
objectClass: Ref<Class<T>>;
|
|
57
|
-
attachedTo?: Ref<Doc>;
|
|
58
|
-
attachedToClass?: Ref<Class<Doc>>;
|
|
59
|
-
collection?: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
export interface TxCreateDoc<T extends Doc> extends TxCUD<T> {
|
|
65
|
-
attributes: Data<T>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @public
|
|
69
|
-
*/
|
|
70
|
-
export interface DocumentClassQuery<T extends Doc> {
|
|
71
|
-
_class: Ref<Class<T>>;
|
|
72
|
-
query: DocumentQuery<T>;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* @public
|
|
76
|
-
* Apply set of transactions in sequential manner with verification of set of queries.
|
|
77
|
-
*/
|
|
78
|
-
export interface TxApplyIf extends Tx {
|
|
79
|
-
scope?: string;
|
|
80
|
-
match?: DocumentClassQuery<Doc>[];
|
|
81
|
-
notMatch?: DocumentClassQuery<Doc>[];
|
|
82
|
-
txes: TxCUD<Doc>[];
|
|
83
|
-
notify?: boolean;
|
|
84
|
-
extraNotify?: Ref<Class<Doc>>[];
|
|
85
|
-
measureName?: string;
|
|
86
|
-
}
|
|
87
|
-
export interface TxApplyResult {
|
|
88
|
-
success: boolean;
|
|
89
|
-
serverTime: number;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* @public
|
|
93
|
-
*/
|
|
94
|
-
export type MixinData<D extends Doc, M extends D> = Omit<M, keyof D> & PushOptions<Omit<M, keyof D>> & IncOptions<Omit<M, keyof D>>;
|
|
95
|
-
/**
|
|
96
|
-
* @public
|
|
97
|
-
*/
|
|
98
|
-
export type MixinUpdate<D extends Doc, M extends D> = Partial<Omit<M, keyof D>> & PushOptions<Omit<M, keyof D>> & IncOptions<Omit<M, keyof D>>;
|
|
99
|
-
/**
|
|
100
|
-
* Define Create/Update for mixin attributes.
|
|
101
|
-
* @public
|
|
102
|
-
*/
|
|
103
|
-
export interface TxMixin<D extends Doc, M extends D> extends TxCUD<D> {
|
|
104
|
-
mixin: Ref<Mixin<M>>;
|
|
105
|
-
attributes: MixinUpdate<D, M>;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* @public
|
|
109
|
-
*/
|
|
110
|
-
export type ArrayAsElement<T> = {
|
|
111
|
-
[P in keyof T]: T[P] extends Arr<infer X> ? Partial<X> | PullArray<X> | X : never;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* @public
|
|
115
|
-
*/
|
|
116
|
-
export interface Position<X extends PropertyType> {
|
|
117
|
-
$each: X[];
|
|
118
|
-
$position: number;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* @public
|
|
122
|
-
*/
|
|
123
|
-
export interface QueryUpdate<X extends PropertyType> {
|
|
124
|
-
$query: Partial<X>;
|
|
125
|
-
$update: Partial<X>;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* @public
|
|
129
|
-
*/
|
|
130
|
-
export interface PullArray<X extends PropertyType> {
|
|
131
|
-
$in: X[];
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* @public
|
|
135
|
-
*/
|
|
136
|
-
export interface MoveDescriptor<X extends PropertyType> {
|
|
137
|
-
$value: X;
|
|
138
|
-
$position: number;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* @public
|
|
142
|
-
*/
|
|
143
|
-
export type ArrayAsElementPosition<T extends object> = {
|
|
144
|
-
[P in keyof T]-?: T[P] extends Arr<infer X> ? X | Position<X> : never;
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* @public
|
|
148
|
-
*/
|
|
149
|
-
export type ArrayAsElementUpdate<T extends object> = {
|
|
150
|
-
[P in keyof T]-?: T[P] extends Arr<infer X> ? X | QueryUpdate<X> : never;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* @public
|
|
154
|
-
*/
|
|
155
|
-
export type ArrayMoveDescriptor<T extends object> = {
|
|
156
|
-
[P in keyof T]: T[P] extends Arr<infer X> ? MoveDescriptor<X> : never;
|
|
157
|
-
};
|
|
158
|
-
/**
|
|
159
|
-
* @public
|
|
160
|
-
*/
|
|
161
|
-
export type NumberProperties<T extends object> = {
|
|
162
|
-
[P in keyof T]: T[P] extends number | undefined | null ? T[P] : never;
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* @public
|
|
166
|
-
*/
|
|
167
|
-
export type OmitNever<T extends object> = Omit<T, KeysByType<T, never>>;
|
|
168
|
-
/**
|
|
169
|
-
* @public
|
|
170
|
-
*/
|
|
171
|
-
export interface PushOptions<T extends object> {
|
|
172
|
-
$push?: Partial<OmitNever<ArrayAsElementPosition<Required<T>>>>;
|
|
173
|
-
$pull?: Partial<OmitNever<ArrayAsElement<Required<T>>>>;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* @public
|
|
177
|
-
*/
|
|
178
|
-
export type UnsetProperties = Record<string, any>;
|
|
179
|
-
/**
|
|
180
|
-
* @public
|
|
181
|
-
*/
|
|
182
|
-
export interface UnsetOptions {
|
|
183
|
-
$unset?: UnsetProperties;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* @public
|
|
187
|
-
*/
|
|
188
|
-
export interface SetEmbeddedOptions<T extends object> {
|
|
189
|
-
$update?: Partial<OmitNever<ArrayAsElementUpdate<Required<T>>>>;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* @public
|
|
193
|
-
*/
|
|
194
|
-
export interface IncOptions<T extends object> {
|
|
195
|
-
$inc?: Partial<OmitNever<NumberProperties<T>>>;
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* @public
|
|
199
|
-
*/
|
|
200
|
-
export interface SpaceUpdate {
|
|
201
|
-
space?: Ref<Space>;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* @public
|
|
205
|
-
*/
|
|
206
|
-
export type DocumentUpdate<T extends Doc> = Partial<Data<T>> & PushOptions<T> & SetEmbeddedOptions<T> & IncOptions<T> & UnsetOptions & SpaceUpdate;
|
|
207
|
-
/**
|
|
208
|
-
* @public
|
|
209
|
-
*/
|
|
210
|
-
export interface TxUpdateDoc<T extends Doc> extends TxCUD<T> {
|
|
211
|
-
operations: DocumentUpdate<T>;
|
|
212
|
-
retrieve?: boolean;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* @public
|
|
216
|
-
*/
|
|
217
|
-
export interface TxRemoveDoc<T extends Doc> extends TxCUD<T> {
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* @public
|
|
221
|
-
*/
|
|
222
|
-
export declare const DOMAIN_TX: Domain;
|
|
223
|
-
/**
|
|
224
|
-
* @public
|
|
225
|
-
*/
|
|
226
|
-
export interface WithTx {
|
|
227
|
-
tx: (...txs: Tx[]) => Promise<TxResult[]>;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* @public
|
|
231
|
-
*/
|
|
232
|
-
export declare abstract class TxProcessor implements WithTx {
|
|
233
|
-
tx(...txes: Tx[]): Promise<TxResult[]>;
|
|
234
|
-
static createDoc2Doc<T extends Doc>(tx: TxCreateDoc<T>, doClone?: boolean): T;
|
|
235
|
-
static updateDoc2Doc<T extends Doc>(rawDoc: T, tx: TxUpdateDoc<T>): T;
|
|
236
|
-
static applyUpdate<T extends Doc>(doc: T, ops: any): void;
|
|
237
|
-
static updateMixin4Doc<D extends Doc, M extends D>(rawDoc: D, tx: TxMixin<D, M>): D;
|
|
238
|
-
static buildDoc2Doc<D extends Doc>(txes: Tx[]): D | undefined | null;
|
|
239
|
-
static isExtendsCUD(_class: Ref<Class<Doc>>): boolean;
|
|
240
|
-
static txHasUpdate<T extends Doc>(tx: TxUpdateDoc<T>, attribute: string): boolean;
|
|
241
|
-
protected abstract txCreateDoc(tx: TxCreateDoc<Doc>): Promise<TxResult>;
|
|
242
|
-
protected abstract txUpdateDoc(tx: TxUpdateDoc<Doc>): Promise<TxResult>;
|
|
243
|
-
protected abstract txRemoveDoc(tx: TxRemoveDoc<Doc>): Promise<TxResult>;
|
|
244
|
-
protected abstract txMixin(tx: TxMixin<Doc, Doc>): Promise<TxResult>;
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* @public
|
|
248
|
-
*/
|
|
249
|
-
export declare class TxFactory {
|
|
250
|
-
readonly account: PersonId;
|
|
251
|
-
readonly isDerived: boolean;
|
|
252
|
-
private readonly txSpace;
|
|
253
|
-
constructor(account: PersonId, isDerived?: boolean);
|
|
254
|
-
createTxCreateDoc<T extends Doc>(_class: Ref<Class<T>>, space: Ref<Space>, attributes: Data<T>, objectId?: Ref<T>, modifiedOn?: Timestamp, modifiedBy?: PersonId): TxCreateDoc<T>;
|
|
255
|
-
createTxCollectionCUD<T extends Doc, P extends AttachedDoc>(_class: Ref<Class<T>>, objectId: Ref<T>, space: Ref<Space>, collection: string, tx: TxCUD<P>, modifiedOn?: Timestamp, modifiedBy?: PersonId): TxCUD<P>;
|
|
256
|
-
createTxUpdateDoc<T extends Doc>(_class: Ref<Class<T>>, space: Ref<Space>, objectId: Ref<T>, operations: DocumentUpdate<T>, retrieve?: boolean, modifiedOn?: Timestamp, modifiedBy?: PersonId): TxUpdateDoc<T>;
|
|
257
|
-
createTxRemoveDoc<T extends Doc>(_class: Ref<Class<T>>, space: Ref<Space>, objectId: Ref<T>, modifiedOn?: Timestamp, modifiedBy?: PersonId): TxRemoveDoc<T>;
|
|
258
|
-
createTxMixin<D extends Doc, M extends D>(objectId: Ref<D>, objectClass: Ref<Class<D>>, objectSpace: Ref<Space>, mixin: Ref<Mixin<M>>, attributes: MixinUpdate<D, M>, modifiedOn?: Timestamp, modifiedBy?: PersonId): TxMixin<D, M>;
|
|
259
|
-
createTxApplyIf(space: Ref<Space>, scope: string | undefined, match: DocumentClassQuery<Doc>[], notMatch: DocumentClassQuery<Doc>[], txes: TxCUD<Doc>[], measureName: string | undefined, notify?: boolean, extraNotify?: Ref<Class<Doc>>[], modifiedOn?: Timestamp, modifiedBy?: PersonId): TxApplyIf;
|
|
260
|
-
}
|
|
261
|
-
//# sourceMappingURL=tx.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tx.d.ts","sourceRoot":"","sources":["../src/tx.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,GAAG,EACH,WAAW,EACX,KAAK,EACL,IAAI,EACJ,GAAG,EACH,MAAM,EACN,KAAK,EACL,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,GAAG,EACH,KAAK,EACL,SAAS,EACV,MAAM,WAAW,CAAA;AAMlB,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACxD,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,EAAG,SAAQ,GAAG;IAC7B,WAAW,EAAE,GAAG,CAAC,KAAK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AAE,kBAAkB,CAAC,GAAG,CAAC,EAAE,EACnC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,EAClB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,MAAM,GAAE,OAAc,EACtB,WAAW,GAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAO,EACnC,UAAU,CAAC,EAAE,SAAS,EACtB,UAAU,CAAC,EAAE,QAAQ,GACpB,SAAS;CAiBb"}
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { type IntlString } from '@hcengineering/platform';
|
|
2
|
-
import { type Account, AccountRole, type AccountUuid, type AnyAttribute, type Class, type Doc, type DocData, type FullTextSearchContext, type Obj, type Permission, type PluginConfiguration, type Rank, type Ref, type SocialId, SocialIdType, type SocialKey, type Space, type TypedSpace, type WorkspaceMode } from './classes';
|
|
3
|
-
import { type Hierarchy } from './hierarchy';
|
|
4
|
-
import { type TxOperations } from './operations';
|
|
5
|
-
import { type Branding, type BrandingMap } from './server';
|
|
6
|
-
import { type DocumentQuery, type FindResult } from './storage';
|
|
7
|
-
import { type Tx } from './tx';
|
|
8
|
-
/**
|
|
9
|
-
* @public
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
export declare function generateId<T extends Doc>(join?: string): Ref<T>;
|
|
13
|
-
export declare function generateUuid(): string;
|
|
14
|
-
/** @public */
|
|
15
|
-
export declare function isId(value: any): value is Ref<any>;
|
|
16
|
-
/**
|
|
17
|
-
* @public
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
export declare function getCurrentAccount(): Account;
|
|
21
|
-
/**
|
|
22
|
-
* @public
|
|
23
|
-
* @param account -
|
|
24
|
-
*/
|
|
25
|
-
export declare function setCurrentAccount(account: Account): void;
|
|
26
|
-
/**
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
29
|
-
export declare function escapeLikeForRegexp(value: string): string;
|
|
30
|
-
/**
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export declare function toFindResult<T extends Doc>(docs: T[], total?: number, lookupMap?: Record<string, Doc>): FindResult<T>;
|
|
34
|
-
export type WorkspaceUuid = string & {
|
|
35
|
-
__workspaceUuid: true;
|
|
36
|
-
};
|
|
37
|
-
export type WorkspaceDataId = string & {
|
|
38
|
-
__workspaceDataId: true;
|
|
39
|
-
};
|
|
40
|
-
export interface WorkspaceIds {
|
|
41
|
-
uuid: WorkspaceUuid;
|
|
42
|
-
url: string;
|
|
43
|
-
dataId?: WorkspaceDataId;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @public
|
|
47
|
-
*/
|
|
48
|
-
export declare function isWorkspaceCreating(mode?: WorkspaceMode): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* @public
|
|
51
|
-
*/
|
|
52
|
-
export declare function docKey(name: string, _class?: Ref<Class<Doc>>): string;
|
|
53
|
-
/**
|
|
54
|
-
* @public
|
|
55
|
-
*/
|
|
56
|
-
export declare function isFullTextAttribute(attr: AnyAttribute): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* @public
|
|
59
|
-
*/
|
|
60
|
-
export declare function isIndexedAttribute(attr: AnyAttribute): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
export interface IdMap<T extends Doc> extends Map<Ref<T>, T> {
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
export declare function toIdMap<T extends Doc>(arr: T[]): IdMap<T>;
|
|
70
|
-
/**
|
|
71
|
-
* @public
|
|
72
|
-
*/
|
|
73
|
-
export declare function concatLink(host: string, path: string): string;
|
|
74
|
-
/**
|
|
75
|
-
* @public
|
|
76
|
-
*/
|
|
77
|
-
export declare function fillDefaults<T extends Doc>(hierarchy: Hierarchy, object: DocData<T> | T, _class: Ref<Class<T>>): DocData<T> | T;
|
|
78
|
-
/**
|
|
79
|
-
* @public
|
|
80
|
-
*/
|
|
81
|
-
export declare class AggregateValueData {
|
|
82
|
-
readonly name: string;
|
|
83
|
-
readonly _id: Ref<Doc>;
|
|
84
|
-
readonly space: Ref<Space>;
|
|
85
|
-
readonly rank?: string | undefined;
|
|
86
|
-
readonly category?: Ref<Doc> | undefined;
|
|
87
|
-
constructor(name: string, _id: Ref<Doc>, space: Ref<Space>, rank?: string | undefined, category?: Ref<Doc> | undefined);
|
|
88
|
-
getRank(): string;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @public
|
|
92
|
-
*/
|
|
93
|
-
export declare class AggregateValue {
|
|
94
|
-
readonly name: string | undefined;
|
|
95
|
-
readonly values: AggregateValueData[];
|
|
96
|
-
constructor(name: string | undefined, values: AggregateValueData[]);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* @public
|
|
100
|
-
*/
|
|
101
|
-
export type CategoryType = number | string | undefined | Ref<Doc> | AggregateValue;
|
|
102
|
-
export interface IDocManager<T extends Doc> {
|
|
103
|
-
get: (ref: Ref<T>) => T | undefined;
|
|
104
|
-
getDocs: () => T[];
|
|
105
|
-
getIdMap: () => IdMap<T>;
|
|
106
|
-
filter: (predicate: (value: T) => boolean) => T[];
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* @public
|
|
110
|
-
*/
|
|
111
|
-
export declare class DocManager<T extends Doc> implements IDocManager<T> {
|
|
112
|
-
protected readonly docs: T[];
|
|
113
|
-
protected readonly byId: IdMap<T>;
|
|
114
|
-
constructor(docs: T[]);
|
|
115
|
-
get(ref: Ref<T>): T | undefined;
|
|
116
|
-
getDocs(): T[];
|
|
117
|
-
getIdMap(): IdMap<T>;
|
|
118
|
-
filter(predicate: (value: T) => boolean): T[];
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* @public
|
|
122
|
-
*/
|
|
123
|
-
export declare class RateLimiter {
|
|
124
|
-
idCounter: number;
|
|
125
|
-
processingQueue: Map<number, Promise<void>>;
|
|
126
|
-
last: number;
|
|
127
|
-
rate: number;
|
|
128
|
-
queue: (() => Promise<void>)[];
|
|
129
|
-
constructor(rate: number);
|
|
130
|
-
notify: (() => void)[];
|
|
131
|
-
exec<T, B extends Record<string, any> = any>(op: (args?: B) => Promise<T>, args?: B): Promise<T>;
|
|
132
|
-
add<T, B extends Record<string, any> = any>(op: (args?: B) => Promise<T>, args?: B, errHandler?: (err: any) => void): Promise<void>;
|
|
133
|
-
waitProcessing(): Promise<void>;
|
|
134
|
-
}
|
|
135
|
-
export declare function mergeQueries<T extends Doc>(query1: DocumentQuery<T>, query2: DocumentQuery<T>): DocumentQuery<T>;
|
|
136
|
-
export declare function cutObjectArray(obj: any): any;
|
|
137
|
-
export declare function includesAny(arr1: string[] | null | undefined, arr2: string[] | null | undefined): boolean;
|
|
138
|
-
export declare const isEnum: <T>(e: T) => (token: any) => token is T[keyof T];
|
|
139
|
-
export declare function checkPermission(client: TxOperations, _id: Ref<Permission>, _space: Ref<TypedSpace>, space?: TypedSpace): Promise<boolean>;
|
|
140
|
-
export declare function checkForbiddenPermission(client: TxOperations, _id: Ref<Permission>, _space: Ref<TypedSpace>, space?: TypedSpace): Promise<boolean>;
|
|
141
|
-
/**
|
|
142
|
-
* @public
|
|
143
|
-
*/
|
|
144
|
-
export declare function getRoleAttributeLabel(roleName: string): IntlString;
|
|
145
|
-
/**
|
|
146
|
-
* @public
|
|
147
|
-
*/
|
|
148
|
-
export declare function getFullTextIndexableAttributes(hierarchy: Hierarchy, clazz: Ref<Class<Obj>>, skipDocs?: boolean): AnyAttribute[];
|
|
149
|
-
/**
|
|
150
|
-
* @public
|
|
151
|
-
*/
|
|
152
|
-
export declare function getFullTextContext(hierarchy: Hierarchy, objectClass: Ref<Class<Doc>>, contexts: Map<Ref<Class<Doc>>, FullTextSearchContext>): Omit<FullTextSearchContext, keyof Class<Doc>>;
|
|
153
|
-
/**
|
|
154
|
-
* @public
|
|
155
|
-
*/
|
|
156
|
-
export declare function isClassIndexable(hierarchy: Hierarchy, c: Ref<Class<Doc>>, contexts: Map<Ref<Class<Doc>>, FullTextSearchContext>): boolean;
|
|
157
|
-
type ReduceParameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
|
|
158
|
-
/**
|
|
159
|
-
* Utility method to skip middle update calls, optimistically if update function is called multiple times with few different parameters, only the last variant will be executed.
|
|
160
|
-
* The last invocation is executed after a few cycles, allowing to skip middle ones.
|
|
161
|
-
*
|
|
162
|
-
* This method can be used inside Svelte components to collapse complex update logic and handle interactions.
|
|
163
|
-
*/
|
|
164
|
-
export declare function reduceCalls<T extends (...args: ReduceParameters<T>) => Promise<void>>(operation: T): (...args: ReduceParameters<T>) => Promise<void>;
|
|
165
|
-
export declare function isOwnerOrMaintainer(): boolean;
|
|
166
|
-
export declare function hasAccountRole(acc: Account, targerRole: AccountRole): boolean;
|
|
167
|
-
export declare function getBranding(brandings: BrandingMap, key: string | undefined): Branding | null;
|
|
168
|
-
export declare function fillConfiguration(systemTx: Tx[], configs: Map<Ref<PluginConfiguration>, PluginConfiguration>): void;
|
|
169
|
-
export declare function pluginFilterTx(excludedPlugins: PluginConfiguration[], configs: Map<Ref<PluginConfiguration>, PluginConfiguration>, systemTx: Tx[]): Tx[];
|
|
170
|
-
/**
|
|
171
|
-
* @public
|
|
172
|
-
*/
|
|
173
|
-
export declare class TimeRateLimiter {
|
|
174
|
-
idCounter: number;
|
|
175
|
-
active: number;
|
|
176
|
-
last: number;
|
|
177
|
-
rate: number;
|
|
178
|
-
period: number;
|
|
179
|
-
executions: {
|
|
180
|
-
time: number;
|
|
181
|
-
running: boolean;
|
|
182
|
-
}[];
|
|
183
|
-
queue: (() => Promise<void>)[];
|
|
184
|
-
notify: (() => void)[];
|
|
185
|
-
constructor(rate: number, period?: number);
|
|
186
|
-
private cleanupExecutions;
|
|
187
|
-
exec<T, B extends Record<string, any> = any>(op: (args?: B) => Promise<T>, args?: B): Promise<T>;
|
|
188
|
-
waitProcessing(): Promise<void>;
|
|
189
|
-
}
|
|
190
|
-
export declare function combineAttributes(attributes: any[], key: string, operator: '$push' | '$pull' | '$unset', arrayKey?: '$each' | '$in'): any[];
|
|
191
|
-
export declare function buildSocialIdString(key: SocialKey): string;
|
|
192
|
-
export declare function parseSocialIdString(id: string): SocialKey;
|
|
193
|
-
export declare function pickPrimarySocialId(socialIds: SocialId[]): SocialId;
|
|
194
|
-
export declare const loginSocialTypes: SocialIdType[];
|
|
195
|
-
export declare function notEmpty<T>(id: T | undefined | null): id is T;
|
|
196
|
-
export declare function unique<T>(arr: T[]): T[];
|
|
197
|
-
export declare function uniqueNotEmpty<T extends NonNullable<unknown>>(arr: Array<T | undefined | null>): T[];
|
|
198
|
-
export { platformNow, platformNowDiff } from '@hcengineering/measurements';
|
|
199
|
-
export interface PermissionsGrant {
|
|
200
|
-
spaces?: Ref<Space>[];
|
|
201
|
-
grantedBy?: AccountUuid;
|
|
202
|
-
}
|
|
203
|
-
export type KeysByType<O extends object, T> = {
|
|
204
|
-
[k in keyof O]-?: O[k] extends T ? k : never;
|
|
205
|
-
}[keyof O];
|
|
206
|
-
export declare function toRank(str: string | undefined): Rank | undefined;
|
|
207
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAeA,OAAO,EAAiC,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAGxF,OAAO,EACL,KAAK,OAAO,EACZ,WAAW,EACX,KAAK,WAAW,EAChB,KAAK,YAAY,EAEjB,KAAK,KAAK,EAGV,KAAK,GAAG,EACR,KAAK,OAAO,EAKZ,KAAK,qBAAqB,EAE1B,KAAK,GAAG,EACR,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,IAAI,EACT,KAAK,GAAG,EAGR,KAAK,QAAQ,EACb,YAAY,EACZ,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,aAAa,EACnB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mB,CAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAQpE;AAED,eAAO,MAAM,gBAAgB,gBAAoF,CAAA;AAEjH,wBAAgB,QAAQ,CAAC,CAAC,EAAG,EAAE,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,GAAG,EAAE,IAAI,CAAC,CAE9D;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAG,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAExC;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,CAAC,OAAO,CAAC,EAAG,GAAG,EAAE,KAAK,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAErG;AACD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAE1E,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IACrB,SAAS,CAAC,EAAE,WAAW,CAAA;CACxB;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CAAE,CAAC,MAAM,CAAC,CAAC,CAAA;AAEvG,wBAAgB,MAAM,CAAE,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAMjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/context.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/metrics.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"performance.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/performance.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { type FullParamsType, type MeasureContext, type MeasureLogger, type Metrics, type ParamsType, type OperationLog, type WithOptions } from './types';
|
|
2
|
-
export declare const consoleLogger: (logParams: Record<string, any>) => MeasureLogger;
|
|
3
|
-
export declare const noParamsLogger: MeasureLogger;
|
|
4
|
-
export declare const nullPromise: Promise<void>;
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare class MeasureMetricsContext implements MeasureContext {
|
|
9
|
-
readonly parent?: MeasureContext | undefined;
|
|
10
|
-
readonly logParams?: ParamsType | undefined;
|
|
11
|
-
private readonly name;
|
|
12
|
-
private readonly params;
|
|
13
|
-
private readonly fullParams;
|
|
14
|
-
logger: MeasureLogger;
|
|
15
|
-
metrics: Metrics;
|
|
16
|
-
id?: string;
|
|
17
|
-
st: number;
|
|
18
|
-
contextData: object;
|
|
19
|
-
private done;
|
|
20
|
-
constructor(name: string, params: ParamsType, fullParams?: FullParamsType | (() => FullParamsType), metrics?: Metrics, logger?: MeasureLogger, parent?: MeasureContext | undefined, logParams?: ParamsType | undefined);
|
|
21
|
-
measure(name: string, value: number, override?: boolean): void;
|
|
22
|
-
newChild(name: string, params: ParamsType, opt?: {
|
|
23
|
-
fullParams?: FullParamsType;
|
|
24
|
-
logger?: MeasureLogger;
|
|
25
|
-
span?: WithOptions['span'];
|
|
26
|
-
}): MeasureContext;
|
|
27
|
-
with<T>(name: string, params: ParamsType, op: (ctx: MeasureContext) => T | Promise<T>, fullParams?: ParamsType | (() => FullParamsType), opt?: WithOptions): Promise<T>;
|
|
28
|
-
extractMeta(): Record<string, string | number | boolean>;
|
|
29
|
-
withSync<T>(name: string, params: ParamsType, op: (ctx: MeasureContext) => T, fullParams?: ParamsType | (() => FullParamsType)): T;
|
|
30
|
-
error(message: string, args?: Record<string, any>): void;
|
|
31
|
-
info(message: string, args?: Record<string, any>): void;
|
|
32
|
-
warn(message: string, args?: Record<string, any>): void;
|
|
33
|
-
end(): void;
|
|
34
|
-
getParams(): ParamsType;
|
|
35
|
-
}
|
|
36
|
-
export declare class NoMetricsContext implements MeasureContext {
|
|
37
|
-
logger: MeasureLogger;
|
|
38
|
-
id?: string;
|
|
39
|
-
contextData: object;
|
|
40
|
-
constructor(logger?: MeasureLogger);
|
|
41
|
-
measure(name: string, value: number, override?: boolean): void;
|
|
42
|
-
newChild(name: string, params: ParamsType, fullParams?: FullParamsType | (() => FullParamsType), logger?: MeasureLogger): MeasureContext;
|
|
43
|
-
with<T>(name: string, params: ParamsType, op: (ctx: MeasureContext) => T | Promise<T>, fullParams?: ParamsType | (() => FullParamsType)): Promise<T>;
|
|
44
|
-
extractMeta(): Record<string, string | number | boolean>;
|
|
45
|
-
withSync<T>(name: string, params: ParamsType, op: (ctx: MeasureContext) => T, fullParams?: ParamsType | (() => FullParamsType)): T;
|
|
46
|
-
withLog<T>(name: string, params: ParamsType, op: (ctx: MeasureContext) => T | Promise<T>, fullParams?: ParamsType): Promise<T>;
|
|
47
|
-
error(message: string, args?: Record<string, any>): void;
|
|
48
|
-
info(message: string, args?: Record<string, any>): void;
|
|
49
|
-
warn(message: string, args?: Record<string, any>): void;
|
|
50
|
-
end(): void;
|
|
51
|
-
getParams(): ParamsType;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Allow to use decorator for context enabled functions
|
|
55
|
-
*/
|
|
56
|
-
export declare function withContext(name: string, params?: ParamsType, options?: WithOptions): any;
|
|
57
|
-
export declare function setOperationLogProfiling(value: boolean): void;
|
|
58
|
-
export declare function registerOperationLog(ctx: MeasureContext): {
|
|
59
|
-
opLogMetrics?: Metrics;
|
|
60
|
-
op?: OperationLog;
|
|
61
|
-
};
|
|
62
|
-
export declare function updateOperationLog(opLogMetrics: Metrics | undefined, op: OperationLog | undefined): void;
|
|
63
|
-
export declare function addOperation<T>(ctx: MeasureContext, name: string, params: ParamsType, op: (ctx: MeasureContext) => Promise<T>, fullParams?: FullParamsType): Promise<T>;
|
|
64
|
-
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,YAAY,EAEjB,KAAK,WAAW,EACjB,MAAM,SAAS,CAAA;AAWhB,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,aAsB7D,CAAA;AAEF,eAAO,MAAM,cAAc,eAAoB,CAAA;AAE/C,eAAO,MAAM,WAAW,eAAoB,CAAA;AAE5C;;GAEG;AACH,qBAAa,qBAAsB,YAAW,cAAc;IAqBxD,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,UAAU;IArBjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAQ;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;IAEnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8C;IACzE,MAAM,EAAE,aAAa,CAAA;IACrB,OAAO,EAAE,OAAO,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX,EAAE,SAAgB;IAClB,WAAW,EAAE,MAAM,CAAK;IACxB,OAAO,CAAC,IAAI;gBAKV,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,UAAU,EAClB,UAAU,GAAE,cAAc,GAAG,CAAC,MAAM,cAAc,CAAM,EACxD,OAAO,GAAE,OAAsB,EAC/B,MAAM,CAAC,EAAE,aAAa,EACb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
|
|
4
|
-
/**
|
|
5
|
-
* Return a current performance timestamp
|
|
6
|
-
*/
|
|
7
|
-
export declare const platformNow: () => number;
|
|
8
|
-
/**
|
|
9
|
-
* Return a diff with previous performance snapshot with 2 digits after . max.
|
|
10
|
-
*/
|
|
11
|
-
export declare const platformNowDiff: (old: number) => number;
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,mBAAmB,SAAS,CAAA;AAE5B;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,MAAgC,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,KAAG,MAA2D,CAAA"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type FullParamsType, type Metrics, type ParamsType } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
export declare const globals: Metrics;
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
export declare function newMetrics(): Metrics;
|
|
11
|
-
/**
|
|
12
|
-
* Measure with tree expansion. Operation counter will be added only to leaf's.
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export declare function measure(metrics: Metrics, params: ParamsType, fullParams?: FullParamsType | (() => FullParamsType), endOp?: (spend: number) => void): () => void;
|
|
16
|
-
export declare function updateMeasure(metrics: Metrics, st: number, params: ParamsType, fullParams: FullParamsType | (() => FullParamsType), endOp?: (spend: number) => void, value?: number, override?: boolean): void;
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
export declare function childMetrics(root: Metrics, path: string[]): Metrics;
|
|
21
|
-
/**
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
export declare function metricsAggregate(m: Metrics, limit?: number, roundMath?: boolean): Metrics;
|
|
25
|
-
/**
|
|
26
|
-
* @public
|
|
27
|
-
*/
|
|
28
|
-
export declare function metricsToString(metrics: Metrics, name: string | undefined, length: number): string;
|
|
29
|
-
export declare function metricsToJson(metrics: Metrics): any;
|
|
30
|
-
/**
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export declare function metricsToRows(metrics: Metrics, name?: string): (number | string)[][];
|
|
34
|
-
//# sourceMappingURL=metrics.d.ts.map
|