From 632dddf35677c3a5d569c053ef945753eaf26d1b Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Sun, 29 Aug 2021 13:27:25 +0200 Subject: [PATCH] cleanup Signed-off-by: Andrey Platov --- common/config/rush/pnpm-lock.yaml | 60 ++- dev/prod/.env-prod | 2 +- dev/storage/src/model.tx.json | 361 +++++++++--------- models/all/src/__genmodel.ts | 1 + models/chunter/src/index.ts | 13 +- .../src/components/DialogHeader.svelte | 7 + server/front/build.sh | 20 + server/front/package.json | 2 +- server/upload/src/app.ts | 29 +- server/workspace/build.sh | 20 + server/workspace/package.json | 9 +- server/workspace/src/__create.ts | 2 +- server/workspace/src/index.ts | 8 +- server/workspace/src/model.tx.json | 361 +++++++++--------- server/workspace/tsconfig.json | 3 +- 15 files changed, 512 insertions(+), 386 deletions(-) create mode 100755 server/front/build.sh create mode 100755 server/workspace/build.sh diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 030ddcfe2f..fd52183e31 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -86,6 +86,7 @@ specifiers: cross-env: ^7.0.3 css-loader: ^5.2.1 dotenv-webpack: ^7.0.2 + esbuild: ^0.12.24 eslint: ^7.32.0 eslint-config-standard-with-typescript: ^20.0.0 eslint-plugin-import: '2' @@ -96,6 +97,7 @@ specifiers: file-loader: ^6.2.0 intl-messageformat: ^9.7.1 mini-css-extract-plugin: ^2.2.0 + minio: ^7.0.19 mongodb: ^4.1.0 node-html-parser: ^4.1.3 postcss: ^8.3.4 @@ -202,6 +204,7 @@ dependencies: cross-env: 7.0.3 css-loader: 5.2.7_webpack@5.48.0 dotenv-webpack: 7.0.3_webpack@5.48.0 + esbuild: 0.12.24 eslint: 7.32.0 eslint-config-standard-with-typescript: 20.0.0_2e482f375e273d762fe67cbd5e194b49 eslint-plugin-import: 2.23.4_eslint@7.32.0 @@ -212,6 +215,7 @@ dependencies: file-loader: 6.2.0_webpack@5.48.0 intl-messageformat: 9.8.1 mini-css-extract-plugin: 2.2.0_webpack@5.48.0 + minio: 7.0.19 mongodb: 4.1.1 node-html-parser: 4.1.3 postcss: 8.3.6 @@ -1508,6 +1512,10 @@ packages: resolution: {integrity: sha512-ncRdc45SoYJ2H4eWU9ReDfp3vtFqDYhjOsKlFFUDEn8V1Bgr2RjYal8YT5byfadWIRluhPFU6JiDOl0H6Sl87A==} dev: false + /@types/node/16.7.5: + resolution: {integrity: sha512-E7SpxDXoHEpmZ9C1gSqwadhE6zPRtf3g0gJy9Y51DsImnR5TcDs3QEiV/3Q7zOM8LWaZp5Gph71NK6ElVMG1IQ==} + dev: false + /@types/normalize-package-data/2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} dev: false @@ -8163,6 +8171,37 @@ packages: webpack: 5.48.0_webpack-cli@4.7.2 dev: false + /ts-node/10.2.1_eb14afb1492fcd444e277f1fdb668e87: + resolution: {integrity: sha512-hCnyOyuGmD5wHleOQX6NIjJtYVIO8bPP8F2acWkB4W06wdlkgyvJtubO/I9NkI88hCFECbsEgoLc0VNkYmcSfw==} + engines: {node: '>=12.0.0'} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.6.1 + '@tsconfig/node10': 1.0.8 + '@tsconfig/node12': 1.0.9 + '@tsconfig/node14': 1.0.1 + '@tsconfig/node16': 1.0.2 + '@types/node': 16.7.5 + acorn: 8.4.1 + acorn-walk: 8.1.1 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 4.3.5 + yn: 3.1.1 + dev: false + /ts-node/10.2.1_f50b86b1778cd2aa4e5405c08bb39559: resolution: {integrity: sha512-hCnyOyuGmD5wHleOQX6NIjJtYVIO8bPP8F2acWkB4W06wdlkgyvJtubO/I9NkI88hCFECbsEgoLc0VNkYmcSfw==} engines: {node: '>=12.0.0'} @@ -9797,7 +9836,7 @@ packages: version: 0.0.0 dependencies: '@types/heft-jest': 1.0.2 - '@types/node': 16.7.1 + '@types/node': 16.7.5 '@types/ws': 7.4.7 '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea eslint: 7.32.0 @@ -9817,7 +9856,7 @@ packages: version: 0.0.0 dependencies: '@types/heft-jest': 1.0.2 - '@types/node': 16.7.1 + '@types/node': 16.7.5 '@types/ws': 7.4.7 '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea eslint: 7.32.0 @@ -9837,7 +9876,7 @@ packages: version: 0.0.0 dependencies: '@types/heft-jest': 1.0.2 - '@types/node': 16.7.1 + '@types/node': 16.7.5 '@types/ws': 7.4.7 '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea eslint: 7.32.0 @@ -9862,7 +9901,7 @@ packages: version: 0.0.0 dependencies: '@types/heft-jest': 1.0.2 - '@types/node': 16.7.1 + '@types/node': 16.7.5 '@types/ws': 7.4.7 '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea esbuild: 0.12.24 @@ -9870,7 +9909,7 @@ packages: eslint-plugin-import: 2.23.4_eslint@7.32.0 eslint-plugin-node: 11.1.0_eslint@7.32.0 eslint-plugin-promise: 4.3.1 - ts-node: 10.2.1_f50b86b1778cd2aa4e5405c08bb39559 + ts-node: 10.2.1_eb14afb1492fcd444e277f1fdb668e87 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -10012,7 +10051,7 @@ packages: '@types/express-fileupload': 1.1.7 '@types/heft-jest': 1.0.2 '@types/minio': 7.0.10 - '@types/node': 16.7.1 + '@types/node': 16.7.5 '@types/uuid': 8.3.1 '@types/ws': 7.4.7 '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea @@ -10029,7 +10068,7 @@ packages: minio: 7.0.19 mongodb: 4.1.1 server-core: 0.1.0 - ts-node: 10.2.1_f50b86b1778cd2aa4e5405c08bb39559 + ts-node: 10.2.1_eb14afb1492fcd444e277f1fdb668e87 uuid: 8.3.2 transitivePeerDependencies: - '@swc/core' @@ -10128,14 +10167,14 @@ packages: dev: false file:projects/workspace.tgz_6c259fadfeb3a4b20890aefe87070b8b: - resolution: {integrity: sha512-Du1dJ9lKTjiLDhFbpM6d7IL3XaPksCXlPeaKBG3xz4v2v1odoMjXqMA/fjGnw091khBJi0+QqnsjR7zt2/ROpQ==, tarball: file:projects/workspace.tgz} + resolution: {integrity: sha512-xsi1Oqd00ZntGoGAMsxj9vzdN9ff9tEgf//ZmaAH4GqaVT0VF2pzeWwDNlS8cmQR0ECP61Cbu1Jd2Ppyinz8+g==, tarball: file:projects/workspace.tgz} id: file:projects/workspace.tgz name: '@rush-temp/workspace' version: 0.0.0 dependencies: '@types/heft-jest': 1.0.2 '@types/minio': 7.0.10 - '@types/node': 16.7.1 + '@types/node': 16.7.5 '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea esbuild: 0.12.24 eslint: 7.32.0 @@ -10145,11 +10184,10 @@ packages: jwt-simple: 0.5.6 minio: 7.0.19 mongodb: 4.1.1 - ts-node: 10.2.1_typescript@4.3.5 + ts-node: 10.2.1_eb14afb1492fcd444e277f1fdb668e87 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - - '@types/node' - '@typescript-eslint/parser' - supports-color - typescript diff --git a/dev/prod/.env-prod b/dev/prod/.env-prod index 87c952dac8..e7ed051a44 100644 --- a/dev/prod/.env-prod +++ b/dev/prod/.env-prod @@ -1,4 +1,4 @@ ACCOUNTS_URL=https://ftwm71rwag.execute-api.us-west-2.amazonaws.com/stage/ -UPLOAD_URL=https://anticrm-upload.herokuapp.com/ +UPLOAD_URL=https://upload.hc.engineering/ diff --git a/dev/storage/src/model.tx.json b/dev/storage/src/model.tx.json index 3b13f553d5..2dd4c9b1f7 100644 --- a/dev/storage/src/model.tx.json +++ b/dev/storage/src/model.tx.json @@ -1,25 +1,25 @@ [ { - "_id": "6127d57ec1de958c9b1fb54e", + "_id": "612b62fa2b1f6f56e7828787", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Obj", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "kind": 0 } }, { - "_id": "6127d57ec1de958c9b1fb54f", + "_id": "612b62fa2b1f6f56e7828788", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Doc", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -27,13 +27,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb550", + "_id": "612b62fa2b1f6f56e7828789", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Type", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -41,13 +41,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb551", + "_id": "612b62fa2b1f6f56e782878a", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TypeString", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -55,13 +55,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb552", + "_id": "612b62fa2b1f6f56e782878b", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Attribute", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -69,13 +69,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb553", + "_id": "612b62fa2b1f6f56e782878c", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Account", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -84,13 +84,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb554", + "_id": "612b62fa2b1f6f56e782878d", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Space", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -99,13 +99,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb555", + "_id": "612b62fa2b1f6f56e782878e", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Tx", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "domain": "tx", @@ -114,13 +114,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb556", + "_id": "612b62fa2b1f6f56e782878f", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxCUD", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -128,13 +128,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb557", + "_id": "612b62fa2b1f6f56e7828790", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxUpdateDoc", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -142,13 +142,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb558", + "_id": "612b62fa2b1f6f56e7828791", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxMixin", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -156,13 +156,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb559", + "_id": "612b62fa2b1f6f56e7828792", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:TxCreateDoc", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -170,13 +170,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb55a", + "_id": "612b62fa2b1f6f56e7828793", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Class", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -185,13 +185,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb55b", + "_id": "612b62fa2b1f6f56e7828794", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "core:class:Mixin", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338045, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -199,13 +199,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb55c", + "_id": "612b62fa2b1f6f56e7828795", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:class:Viewlet", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -214,13 +214,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb55d", + "_id": "612b62fa2b1f6f56e7828796", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:class:ViewletDescriptor", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -229,13 +229,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb55e", + "_id": "612b62fa2b1f6f56e7828797", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:mixin:AttributePresenter", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -243,13 +243,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb55f", + "_id": "612b62fa2b1f6f56e7828798", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:mixin:AttributeEditor", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -257,11 +257,11 @@ } }, { - "_id": "6127d57ec1de958c9b1fb560", + "_id": "612b62fa2b1f6f56e7828799", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000510000, + "modifiedOn": 1630233338046, "objectId": "core:class:TypeString", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -271,11 +271,11 @@ } }, { - "_id": "6127d57ec1de958c9b1fb561", + "_id": "612b62fa2b1f6f56e782879a", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "objectId": "core:class:TypeString", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -285,13 +285,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb562", + "_id": "612b62fa2b1f6f56e782879b", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "view:viewlet:Table", "objectClass": "view:class:ViewletDescriptor", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "label": "Table", @@ -300,13 +300,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb563", + "_id": "612b62fa2b1f6f56e782879c", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "workbench:mixin:SpaceView", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -314,13 +314,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb564", + "_id": "612b62fa2b1f6f56e782879d", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "workbench:class:Application", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -329,13 +329,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb565", + "_id": "612b62fa2b1f6f56e782879e", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Contact", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "domain": "contact", @@ -344,13 +344,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb566", + "_id": "612b62fa2b1f6f56e782879f", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Person", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -359,12 +359,12 @@ } }, { - "_id": "6127d57ec1de958c9b1fb567", - "objectId": "6127d57ec1de958c9b1fb568", + "_id": "612b62fa2b1f6f56e78287a0", + "objectId": "612b62fa2b1f6f56e78287a1", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000509834, + "modifiedOn": 1630233337874, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -377,12 +377,12 @@ } }, { - "_id": "6127d57ec1de958c9b1fb569", - "objectId": "6127d57ec1de958c9b1fb56a", + "_id": "612b62fa2b1f6f56e78287a2", + "objectId": "612b62fa2b1f6f56e78287a3", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000509834, + "modifiedOn": 1630233337874, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -395,12 +395,12 @@ } }, { - "_id": "6127d57ec1de958c9b1fb56b", - "objectId": "6127d57ec1de958c9b1fb56c", + "_id": "612b62fa2b1f6f56e78287a4", + "objectId": "612b62fa2b1f6f56e78287a5", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000509834, + "modifiedOn": 1630233337874, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -413,12 +413,12 @@ } }, { - "_id": "6127d57ec1de958c9b1fb56d", - "objectId": "6127d57ec1de958c9b1fb56e", + "_id": "612b62fa2b1f6f56e78287a6", + "objectId": "612b62fa2b1f6f56e78287a7", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000509834, + "modifiedOn": 1630233337874, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -431,12 +431,12 @@ } }, { - "_id": "6127d57ec1de958c9b1fb56f", - "objectId": "6127d57ec1de958c9b1fb570", + "_id": "612b62fa2b1f6f56e78287a8", + "objectId": "612b62fa2b1f6f56e78287a9", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000509834, + "modifiedOn": 1630233337874, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -449,13 +449,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb571", + "_id": "612b62fa2b1f6f56e78287aa", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Employee", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -463,13 +463,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb572", + "_id": "612b62fa2b1f6f56e78287ab", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:class:Organization", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -477,13 +477,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb573", + "_id": "612b62fa2b1f6f56e78287ac", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "contact:space:Employee", "objectClass": "core:class:Space", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "name": "Employees", @@ -493,11 +493,11 @@ } }, { - "_id": "6127d57ec1de958c9b1fb574", + "_id": "612b62fa2b1f6f56e78287ad", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "objectId": "contact:class:Person", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -507,13 +507,28 @@ } }, { - "_id": "6127d57ec1de958c9b1fb575", + "_id": "612b62fa2b1f6f56e78287ae", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "chunter:class:Attachment", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1630233338046, + "modifiedBy": "core:account:System", + "attributes": { + "domain": "attachment", + "kind": 0, + "extends": "core:class:Doc" + } + }, + { + "_id": "612b62fa2b1f6f56e78287af", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:class:Comment", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "domain": "comment", @@ -522,13 +537,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb576", + "_id": "612b62fa2b1f6f56e78287b0", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:class:Backlink", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -536,13 +551,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb577", + "_id": "612b62fa2b1f6f56e78287b1", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:class:Message", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "domain": "chunter", @@ -551,12 +566,12 @@ } }, { - "_id": "6127d57ec1de958c9b1fb578", - "objectId": "6127d57ec1de958c9b1fb579", + "_id": "612b62fa2b1f6f56e78287b2", + "objectId": "612b62fa2b1f6f56e78287b3", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000509938, + "modifiedOn": 1630233337980, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -570,13 +585,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb57a", + "_id": "612b62fa2b1f6f56e78287b4", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:class:Channel", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -586,11 +601,11 @@ } }, { - "_id": "6127d57ec1de958c9b1fb57b", + "_id": "612b62fa2b1f6f56e78287b5", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "objectId": "chunter:class:Channel", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -602,13 +617,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb57c", + "_id": "612b62fa2b1f6f56e78287b6", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "chunter:viewlet:Chat", "objectClass": "view:class:ViewletDescriptor", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "label": "Chat", @@ -617,13 +632,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb57d", + "_id": "612b62fa2b1f6f56e78287b7", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb57e", + "objectId": "612b62fa2b1f6f56e78287b8", "objectClass": "view:class:Viewlet", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "attachTo": "chunter:class:Message", @@ -633,13 +648,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb57f", + "_id": "612b62fa2b1f6f56e78287b9", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb580", + "objectId": "612b62fa2b1f6f56e78287ba", "objectClass": "workbench:class:Application", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "label": "chunter:string:ApplicationLabelChunter", @@ -657,13 +672,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb581", + "_id": "612b62fa2b1f6f56e78287bb", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb582", + "objectId": "612b62fa2b1f6f56e78287bc", "objectClass": "chunter:class:Channel", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "name": "general", @@ -673,13 +688,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb583", + "_id": "612b62fa2b1f6f56e78287bd", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb584", + "objectId": "612b62fa2b1f6f56e78287be", "objectClass": "chunter:class:Channel", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "name": "random", @@ -689,13 +704,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb585", + "_id": "612b62fa2b1f6f56e78287bf", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "task:class:Task", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -703,12 +718,12 @@ } }, { - "_id": "6127d57ec1de958c9b1fb586", - "objectId": "6127d57ec1de958c9b1fb587", + "_id": "612b62fa2b1f6f56e78287c0", + "objectId": "612b62fa2b1f6f56e78287c1", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000509882, + "modifiedOn": 1630233337921, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -721,12 +736,12 @@ } }, { - "_id": "6127d57ec1de958c9b1fb588", - "objectId": "6127d57ec1de958c9b1fb589", + "_id": "612b62fa2b1f6f56e78287c2", + "objectId": "612b62fa2b1f6f56e78287c3", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000509882, + "modifiedOn": 1630233337921, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -739,12 +754,12 @@ } }, { - "_id": "6127d57ec1de958c9b1fb58a", - "objectId": "6127d57ec1de958c9b1fb58b", + "_id": "612b62fa2b1f6f56e78287c4", + "objectId": "612b62fa2b1f6f56e78287c5", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000509882, + "modifiedOn": 1630233337921, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -757,13 +772,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb58c", + "_id": "612b62fa2b1f6f56e78287c6", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "task:class:Project", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -773,11 +788,11 @@ } }, { - "_id": "6127d57ec1de958c9b1fb58d", + "_id": "612b62fa2b1f6f56e78287c7", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "objectId": "task:class:Project", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -790,13 +805,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb58e", + "_id": "612b62fa2b1f6f56e78287c8", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb58f", + "objectId": "612b62fa2b1f6f56e78287c9", "objectClass": "view:class:Viewlet", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "attachTo": "task:class:Task", @@ -814,13 +829,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb590", + "_id": "612b62fa2b1f6f56e78287ca", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb591", + "objectId": "612b62fa2b1f6f56e78287cb", "objectClass": "workbench:class:Application", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "label": "task:string:ApplicationLabelTask", @@ -838,13 +853,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb592", + "_id": "612b62fa2b1f6f56e78287cc", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb593", + "objectId": "612b62fa2b1f6f56e78287cd", "objectClass": "task:class:Project", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "name": "demo", @@ -854,13 +869,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb594", + "_id": "612b62fa2b1f6f56e78287ce", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "recruit:class:Applicant", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "domain": "recruit", @@ -869,12 +884,12 @@ } }, { - "_id": "6127d57ec1de958c9b1fb595", - "objectId": "6127d57ec1de958c9b1fb596", + "_id": "612b62fa2b1f6f56e78287cf", + "objectId": "612b62fa2b1f6f56e78287d0", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000509995, + "modifiedOn": 1630233338036, "objectSpace": "core:space:Model", "objectClass": "core:class:Attribute", "attributes": { @@ -887,13 +902,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb597", + "_id": "612b62fa2b1f6f56e78287d1", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "recruit:class:Candidate", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -902,13 +917,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb598", + "_id": "612b62fa2b1f6f56e78287d2", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "recruit:class:Candidates", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -918,13 +933,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb599", + "_id": "612b62fa2b1f6f56e78287d3", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "recruit:class:Vacancy", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "kind": 0, @@ -934,11 +949,11 @@ } }, { - "_id": "6127d57ec1de958c9b1fb59a", + "_id": "612b62fa2b1f6f56e78287d4", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "objectId": "recruit:class:Vacancy", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -951,11 +966,11 @@ } }, { - "_id": "6127d57ec1de958c9b1fb59b", + "_id": "612b62fa2b1f6f56e78287d5", "_class": "core:class:TxMixin", "space": "core:space:Tx", "modifiedBy": "core:account:System", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "objectId": "recruit:class:Candidates", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", @@ -968,13 +983,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb59c", + "_id": "612b62fa2b1f6f56e78287d6", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb59d", + "objectId": "612b62fa2b1f6f56e78287d7", "objectClass": "workbench:class:Application", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "label": "recruit:string:RecruitApplication", @@ -998,13 +1013,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb59e", + "_id": "612b62fa2b1f6f56e78287d8", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "recruit:space:CandidatesPublic", "objectClass": "recruit:class:Candidates", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "name": "public", @@ -1014,13 +1029,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb59f", + "_id": "612b62fa2b1f6f56e78287d9", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb5a0", + "objectId": "612b62fa2b1f6f56e78287da", "objectClass": "view:class:Viewlet", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "attachTo": "recruit:class:Candidate", @@ -1035,13 +1050,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb5a1", + "_id": "612b62fa2b1f6f56e78287db", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb5a2", + "objectId": "612b62fa2b1f6f56e78287dc", "objectClass": "view:class:Viewlet", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "attachTo": "recruit:class:Applicant", @@ -1060,13 +1075,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb5a3", + "_id": "612b62fa2b1f6f56e78287dd", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", "objectId": "server-core:class:Trigger", "objectClass": "core:class:Class", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "domain": "model", @@ -1075,26 +1090,26 @@ } }, { - "_id": "6127d57ec1de958c9b1fb5a4", + "_id": "612b62fa2b1f6f56e78287de", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb5a5", + "objectId": "612b62fa2b1f6f56e78287df", "objectClass": "server-core:class:Trigger", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338046, "modifiedBy": "core:account:System", "attributes": { "trigger": "server-chunter:trigger:OnMessage" } }, { - "_id": "6127d57ec1de958c9b1fb5a6", + "_id": "612b62fa2b1f6f56e78287e0", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb5a7", + "objectId": "612b62fa2b1f6f56e78287e1", "objectClass": "contact:class:Employee", "objectSpace": "contact:space:Employee", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338047, "modifiedBy": "core:account:System", "attributes": { "firstName": "Rosamund", @@ -1105,26 +1120,26 @@ } }, { - "_id": "6127d57ec1de958c9b1fb5a8", + "_id": "612b62fa2b1f6f56e78287e2", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb5a9", + "objectId": "612b62fa2b1f6f56e78287e3", "objectClass": "core:class:Account", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338047, "modifiedBy": "core:account:System", "attributes": { "email": "rosamund@hc.engineering" } }, { - "_id": "6127d57ec1de958c9b1fb5aa", + "_id": "612b62fa2b1f6f56e78287e4", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb5ab", + "objectId": "612b62fa2b1f6f56e78287e5", "objectClass": "contact:class:Employee", "objectSpace": "contact:space:Employee", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338047, "modifiedBy": "core:account:System", "attributes": { "firstName": "Elon", @@ -1135,26 +1150,26 @@ } }, { - "_id": "6127d57ec1de958c9b1fb5ac", + "_id": "612b62fa2b1f6f56e78287e6", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb5ad", + "objectId": "612b62fa2b1f6f56e78287e7", "objectClass": "core:class:Account", "objectSpace": "core:space:Model", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338047, "modifiedBy": "core:account:System", "attributes": { "email": "elon@hc.engineering" } }, { - "_id": "6127d57ec1de958c9b1fb5ae", + "_id": "612b62fa2b1f6f56e78287e8", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb5af", + "objectId": "612b62fa2b1f6f56e78287e9", "objectClass": "recruit:class:Candidate", "objectSpace": "recruit:space:CandidatesPublic", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338047, "modifiedBy": "core:account:System", "attributes": { "firstName": "Andrey", @@ -1165,13 +1180,13 @@ } }, { - "_id": "6127d57ec1de958c9b1fb5b0", + "_id": "612b62fa2b1f6f56e78287ea", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "6127d57ec1de958c9b1fb5b1", + "objectId": "612b62fa2b1f6f56e78287eb", "objectClass": "recruit:class:Candidate", "objectSpace": "recruit:space:CandidatesPublic", - "modifiedOn": 1630000510001, + "modifiedOn": 1630233338047, "modifiedBy": "core:account:System", "attributes": { "firstName": "Marina", diff --git a/models/all/src/__genmodel.ts b/models/all/src/__genmodel.ts index a8b0358540..5f5a0290c7 100644 --- a/models/all/src/__genmodel.ts +++ b/models/all/src/__genmodel.ts @@ -18,3 +18,4 @@ import { writeFileSync } from 'fs' const content = JSON.stringify(builder.getTxes(), undefined, 2) writeFileSync('../../dev/storage/src/model.tx.json', content) +writeFileSync('../../server/workspace/src/model.tx.json', content) diff --git a/models/chunter/src/index.ts b/models/chunter/src/index.ts index 35a4b2fd18..4353dd0f4b 100644 --- a/models/chunter/src/index.ts +++ b/models/chunter/src/index.ts @@ -18,7 +18,7 @@ import { Builder, Model, Prop, UX, TypeString, Index } from '@anticrm/model' import type { Ref, Doc, Class, Domain } from '@anticrm/core' import { IndexKind } from '@anticrm/core' import core, { TSpace, TDoc } from '@anticrm/model-core' -import type { Backlink, Channel, Message, Comment } from '@anticrm/chunter' +import type { Backlink, Channel, Message, Comment, Attachment } from '@anticrm/chunter' import type { AnyComponent } from '@anticrm/ui' import workbench from '@anticrm/model-workbench' @@ -28,6 +28,7 @@ import chunter from './plugin' export const DOMAIN_CHUNTER = 'chunter' as Domain export const DOMAIN_COMMENT = 'comment' as Domain +export const DOMAIN_ATTACHMENT = 'attachment' as Domain @Model(chunter.class.Channel, core.class.Space) @UX(chunter.string.Channel, chunter.icon.Hashtag) @@ -52,8 +53,16 @@ export class TBacklink extends TComment implements Backlink { backlinkClass!: Ref> } +@Model(chunter.class.Attachment, core.class.Doc, DOMAIN_ATTACHMENT) +export class TAttachment extends TDoc implements Attachment { + attachmentTo!: Ref + collection!: string + name!: string + file!: string +} + export function createModel (builder: Builder): void { - builder.createModel(TChannel, TMessage, TComment, TBacklink) + builder.createModel(TChannel, TMessage, TComment, TBacklink, TAttachment) builder.mixin(chunter.class.Channel, core.class.Class, workbench.mixin.SpaceView, { view: { class: chunter.class.Message diff --git a/plugins/recruit-resources/src/components/DialogHeader.svelte b/plugins/recruit-resources/src/components/DialogHeader.svelte index e15f396236..fa9696afdf 100644 --- a/plugins/recruit-resources/src/components/DialogHeader.svelte +++ b/plugins/recruit-resources/src/components/DialogHeader.svelte @@ -17,6 +17,7 @@