diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index bf0979de86..31b32699c5 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -11,6 +11,7 @@ specifiers: '@rush-temp/login-assets': file:./projects/login-assets.tgz '@rush-temp/login-resources': file:./projects/login-resources.tgz '@rush-temp/model': file:./projects/model.tgz + '@rush-temp/model-all': file:./projects/model-all.tgz '@rush-temp/model-core': file:./projects/model-core.tgz '@rush-temp/model-rig': file:./projects/model-rig.tgz '@rush-temp/platform': file:./projects/platform.tgz @@ -76,6 +77,7 @@ dependencies: '@rush-temp/login-assets': file:projects/login-assets.tgz '@rush-temp/login-resources': file:projects/login-resources.tgz_c38cf1a7a413db8918b0b4754c21e4c5 '@rush-temp/model': file:projects/model.tgz_6c259fadfeb3a4b20890aefe87070b8b + '@rush-temp/model-all': file:projects/model-all.tgz_6c259fadfeb3a4b20890aefe87070b8b '@rush-temp/model-core': file:projects/model-core.tgz_6c259fadfeb3a4b20890aefe87070b8b '@rush-temp/model-rig': file:projects/model-rig.tgz_6ab28797e7a22071465f7d680ae81ae5 '@rush-temp/platform': file:projects/platform.tgz_6c259fadfeb3a4b20890aefe87070b8b @@ -1071,6 +1073,10 @@ packages: resolution: {integrity: sha512-TmVHsm43br64js9BqHWqiDZA+xMtbUpI1MBIA0EyiBmoV9pcEYFOSdj5fr6enZNfh4fChh+AGOLIzGwJnkshyQ==} dev: false + /@types/node/16.4.13: + resolution: {integrity: sha512-bLL69sKtd25w7p1nvg9pigE4gtKVpGTPojBFLMkGHXuUgap2sLqQt2qUnqmVCDfzGUL0DRNZP+1prIZJbMeAXg==} + dev: false + /@types/normalize-package-data/2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} dev: false @@ -7089,6 +7095,35 @@ packages: webpack: 5.48.0_webpack-cli@4.7.2 dev: false + /ts-node/10.1.0_dea0625f6d31b223e93dc3dc354b8b43: + resolution: {integrity: sha512-6szn3+J9WyG2hE+5W8e0ruZrzyk1uFLYye6IGMBadnOzDh8aP7t8CbFpsfCiEx2+wMixAhjFt7lOZC4+l+WbEA==} + 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: + '@tsconfig/node10': 1.0.8 + '@tsconfig/node12': 1.0.9 + '@tsconfig/node14': 1.0.1 + '@tsconfig/node16': 1.0.2 + '@types/node': 16.4.13 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + source-map-support: 0.5.19 + typescript: 4.3.5 + yn: 3.1.1 + dev: false + /ts-node/10.1.0_typescript@4.3.5: resolution: {integrity: sha512-6szn3+J9WyG2hE+5W8e0ruZrzyk1uFLYye6IGMBadnOzDh8aP7t8CbFpsfCiEx2+wMixAhjFt7lOZC4+l+WbEA==} engines: {node: '>=12.0.0'} @@ -7918,6 +7953,27 @@ packages: - typescript dev: false + file:projects/model-all.tgz_6c259fadfeb3a4b20890aefe87070b8b: + resolution: {integrity: sha512-LvpfR+r7PaQCz/9Hyd3fpNON/ngE+8A78/LML7s2Z56598J9kwI/hvsVEemfBcOrktgix2QTLOWTzNKb8mdb1g==, tarball: file:projects/model-all.tgz} + id: file:projects/model-all.tgz + name: '@rush-temp/model-all' + version: 0.0.0 + dependencies: + '@types/node': 16.4.13 + '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea + eslint: 7.32.0 + 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.1.0_dea0625f6d31b223e93dc3dc354b8b43 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + - '@typescript-eslint/parser' + - supports-color + - typescript + dev: false + file:projects/model-core.tgz_6c259fadfeb3a4b20890aefe87070b8b: resolution: {integrity: sha512-b+T4XuPdhuCukXIUMmumuia+6h/NiXZYDFrCExC3qE30DcDgfvY8ugkOZwhsKblA2USCZlgex4HTN5w7KUrl2Q==, tarball: file:projects/model-core.tgz} id: file:projects/model-core.tgz @@ -7937,7 +7993,7 @@ packages: dev: false file:projects/model-rig.tgz_6ab28797e7a22071465f7d680ae81ae5: - resolution: {integrity: sha512-pKxEgd9zwHZfmAtKBZp73PsuEZgSUNJIlgXofWwCa90AqkGi07hGb5w+ihP8Qy8bR7moLAtLvJi6Fqs5rIOYGg==, tarball: file:projects/model-rig.tgz} + resolution: {integrity: sha512-dt7CdKGQAqmtNHpwxDSBqYX/VMBMzPwx1q0bw4EEcdg+GMnClODo7CkYL6VEB++jAFt71USv6AJicS6cdnF8Pg==, tarball: file:projects/model-rig.tgz} id: file:projects/model-rig.tgz name: '@rush-temp/model-rig' version: 0.0.0 @@ -7949,14 +8005,11 @@ packages: typescript: 4.3.5 transitivePeerDependencies: - '@typescript-eslint/eslint-plugin' - - bufferutil - - canvas - eslint - eslint-plugin-import - eslint-plugin-node - eslint-plugin-promise - supports-color - - utf-8-validate dev: false file:projects/model.tgz_6c259fadfeb3a4b20890aefe87070b8b: @@ -8109,7 +8162,7 @@ packages: version: 0.0.0 dependencies: '@types/heft-jest': 1.0.2 - '@types/node': 16.4.10 + '@types/node': 16.4.13 '@types/ws': 7.4.7 '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea eslint: 7.32.0 @@ -8129,7 +8182,7 @@ packages: version: 0.0.0 dependencies: '@types/heft-jest': 1.0.2 - '@types/node': 16.4.10 + '@types/node': 16.4.13 '@types/ws': 7.4.7 '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea eslint: 7.32.0 @@ -8153,7 +8206,7 @@ packages: version: 0.0.0 dependencies: '@types/heft-jest': 1.0.2 - '@types/node': 16.4.10 + '@types/node': 16.4.13 '@types/ws': 7.4.7 '@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea eslint: 7.32.0 diff --git a/dev/storage/src/model.tx.json b/dev/storage/src/model.tx.json index f8f795b450..9e2a9d2fbf 100644 --- a/dev/storage/src/model.tx.json +++ b/dev/storage/src/model.tx.json @@ -1,1018 +1,187 @@ [ { - "_id": "610828bdad975a4e5f24b461", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.Obj", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", + "_id": "610e1edc40f76c380b4b6cef", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:Obj", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", "attributes": { "kind": 0 } }, { - "_id": "610828bdad975a4e5f24b462", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.Doc", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", + "_id": "610e1edc40f76c380b4b6cf0", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:Doc", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", "attributes": { "kind": 0, - "extends": "core.class.Obj" + "extends": "core:class:Obj" } }, { - "_id": "610828bdad975a4e5f24b463", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.Type", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", + "_id": "610e1edc40f76c380b4b6cf1", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:Type", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", "attributes": { "kind": 0, - "extends": "core.class.Doc" + "extends": "core:class:Doc" } }, { - "_id": "610828bdad975a4e5f24b464", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.TypeString", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", + "_id": "610e1edc40f76c380b4b6cf2", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:TypeString", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", "attributes": { "kind": 0, - "extends": "core.class.Type" + "extends": "core:class:Type" } }, { - "_id": "610828bdad975a4e5f24b465", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.Attribute", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", + "_id": "610e1edc40f76c380b4b6cf3", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:Attribute", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", "attributes": { "kind": 0, - "extends": "core.class.Doc" + "extends": "core:class:Doc" } }, { - "_id": "610828bdad975a4e5f24b466", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.Account", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", + "_id": "610e1edc40f76c380b4b6cf4", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:Account", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", "attributes": { "domain": "model", "kind": 0, - "extends": "core.class.Doc" + "extends": "core:class:Doc" } }, { - "_id": "610828bdad975a4e5f24b467", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.Space", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", + "_id": "610e1edc40f76c380b4b6cf5", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:Space", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", "attributes": { "domain": "model", "kind": 0, - "extends": "core.class.Doc" + "extends": "core:class:Doc" } }, { - "_id": "610828bdad975a4e5f24b468", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.Tx", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", + "_id": "610e1edc40f76c380b4b6cf6", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:TxUpdateDoc", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", + "attributes": { + "kind": 0, + "extends": "core:class:TxCUD" + } + }, + { + "_id": "610e1edc40f76c380b4b6cf7", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:TxMixin", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", + "attributes": { + "kind": 0, + "extends": "core:class:TxCUD" + } + }, + { + "_id": "610e1edc40f76c380b4b6cf8", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:TxCreateDoc", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", + "attributes": { + "kind": 0, + "extends": "core:class:TxCUD" + } + }, + { + "_id": "610e1edc40f76c380b4b6cf9", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:Tx", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", "attributes": { "domain": "tx", "kind": 0, - "extends": "core.class.Doc" + "extends": "core:class:Doc" } }, { - "_id": "610828bdad975a4e5f24b469", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.TxUpdateDoc", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Tx" - } - }, - { - "_id": "610828bdad975a4e5f24b46a", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.TxMixin", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Tx" - } - }, - { - "_id": "610828bdad975a4e5f24b46b", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.TxCreateDoc", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Tx" - } - }, - { - "_id": "610828bdad975a4e5f24b46c", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.Class", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", + "_id": "610e1edc40f76c380b4b6cfa", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:Class", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", "attributes": { "domain": "model", "kind": 0, - "extends": "core.class.Doc" + "extends": "core:class:Doc" } }, { - "_id": "610828bdad975a4e5f24b46d", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "core.class.Mixin", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", + "_id": "610e1edc40f76c380b4b6cfb", + "_class": "core:class:TxCreateDoc", + "space": "core:space:Tx", + "objectId": "core:class:Mixin", + "objectClass": "core:class:Class", + "objectSpace": "core:space:Model", + "modifiedOn": 1628315356280, + "modifiedBy": "core:account:System", "attributes": { "kind": 0, - "extends": "core.class.Class" - } - }, - { - "_id": "610828bdad975a4e5f24b46e", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "view.class.Viewlet", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", - "attributes": { - "domain": "model", - "kind": 0, - "extends": "core.class.Doc" - } - }, - { - "_id": "610828bdad975a4e5f24b46f", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "view.class.ViewletDescriptor", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", - "attributes": { - "domain": "model", - "kind": 0, - "extends": "core.class.Doc" - } - }, - { - "_id": "610828bdad975a4e5f24b470", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "view.mixin.AttributePresenter", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Class" - } - }, - { - "_id": "610828bdad975a4e5f24b471", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "view.mixin.AttributeEditor", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669333, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Class" - } - }, - { - "_id": "610828bdad975a4e5f24b472", - "_class": "core.class.TxMixin", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669333, - "objectId": "core.class.TypeString", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "mixin": "view.mixin.AttributeEditor", - "attributes": { - "editor": "view.component.StringEditor" - } - }, - { - "_id": "610828bdad975a4e5f24b473", - "_class": "core.class.TxMixin", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669333, - "objectId": "core.class.TypeString", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "mixin": "view.mixin.AttributePresenter", - "attributes": { - "presenter": "view.component.StringPresenter" - } - }, - { - "_id": "610828bdad975a4e5f24b474", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "view.viewlet.Table", - "objectClass": "view.class.ViewletDescriptor", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "label": "Table", - "icon": "view.icon.Table", - "component": "table.component.TableView" - } - }, - { - "_id": "610828bdad975a4e5f24b475", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "workbench.mixin.SpaceView", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Class" - } - }, - { - "_id": "610828bdad975a4e5f24b476", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "workbench.class.Application", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "domain": "model", - "kind": 0, - "extends": "core.class.Doc" - } - }, - { - "_id": "610828bdad975a4e5f24b477", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "contact.class.Contact", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Doc" - } - }, - { - "_id": "610828bdad975a4e5f24b478", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "contact.class.Organization", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "contact.class.Contact" - } - }, - { - "_id": "610828bdad975a4e5f24b479", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "contact.class.Person", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "contact.class.Contact", - "label": "Person" - } - }, - { - "_id": "610828bdad975a4e5f24b47a", - "objectId": "610828bdad975a4e5f24b47b", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669178, - "objectSpace": "core.space.Model", - "objectClass": "core.class.Attribute", - "attributes": { - "type": { - "_class": "core.class.TypeString" - }, - "name": "firstName", - "label": "First name", - "attributeOf": "contact.class.Person" - } - }, - { - "_id": "610828bdad975a4e5f24b47c", - "objectId": "610828bdad975a4e5f24b47d", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669178, - "objectSpace": "core.space.Model", - "objectClass": "core.class.Attribute", - "attributes": { - "type": { - "_class": "core.class.TypeString" - }, - "name": "lastName", - "label": "Last name", - "attributeOf": "contact.class.Person" - } - }, - { - "_id": "610828bdad975a4e5f24b47e", - "objectId": "610828bdad975a4e5f24b47f", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669178, - "objectSpace": "core.space.Model", - "objectClass": "core.class.Attribute", - "attributes": { - "type": { - "_class": "core.class.TypeString" - }, - "name": "email", - "label": "Email", - "attributeOf": "contact.class.Person" - } - }, - { - "_id": "610828bdad975a4e5f24b480", - "objectId": "610828bdad975a4e5f24b481", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669178, - "objectSpace": "core.space.Model", - "objectClass": "core.class.Attribute", - "attributes": { - "type": { - "_class": "core.class.TypeString" - }, - "name": "phone", - "label": "Phone", - "attributeOf": "contact.class.Person" - } - }, - { - "_id": "610828bdad975a4e5f24b482", - "objectId": "610828bdad975a4e5f24b483", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669178, - "objectSpace": "core.space.Model", - "objectClass": "core.class.Attribute", - "attributes": { - "type": { - "_class": "core.class.TypeString" - }, - "name": "city", - "label": "City", - "attributeOf": "contact.class.Person" - } - }, - { - "_id": "610828bdad975a4e5f24b484", - "_class": "core.class.TxMixin", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669334, - "objectId": "contact.class.Person", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "mixin": "view.mixin.AttributePresenter", - "attributes": { - "presenter": "contact.component.PersonPresenter" - } - }, - { - "_id": "610828bdad975a4e5f24b485", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "chunter.class.Backlink", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Doc" - } - }, - { - "_id": "610828bdad975a4e5f24b486", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "chunter.class.Message", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Doc", - "triggers": [ - "chunter-server.trigger.OnMessage" - ] - } - }, - { - "_id": "610828bdad975a4e5f24b487", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "chunter.class.Channel", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Space", - "label": "chunter.string.Channel", - "icon": "chunter.icon.Hashtag" - } - }, - { - "_id": "610828bdad975a4e5f24b488", - "_class": "core.class.TxMixin", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669334, - "objectId": "chunter.class.Channel", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "mixin": "workbench.mixin.SpaceView", - "attributes": { - "view": { - "class": "chunter.class.Message" - } - } - }, - { - "_id": "610828bdad975a4e5f24b489", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "chunter.viewlet.Chat", - "objectClass": "view.class.ViewletDescriptor", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "label": "Chat", - "icon": "view.icon.Table", - "component": "chunter.component.ChannelView" - } - }, - { - "_id": "610828bdad975a4e5f24b48a", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b48b", - "objectClass": "view.class.Viewlet", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "attachTo": "chunter.class.Message", - "descriptor": "chunter.viewlet.Chat", - "open": "X", - "config": {} - } - }, - { - "_id": "610828bdad975a4e5f24b48c", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b48d", - "objectClass": "workbench.class.Application", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "label": "chunter.string.ApplicationLabelChunter", - "icon": "chunter.icon.Chunter", - "navigatorModel": { - "spaces": [ - { - "label": "chunter.string.Channels", - "spaceClass": "chunter.class.Channel", - "addSpaceLabel": "chunter.string.CreateChannel", - "createComponent": "chunter.component.CreateChannel" - } - ] - } - } - }, - { - "_id": "610828bdad975a4e5f24b48e", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b48f", - "objectClass": "chunter.class.Channel", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "name": "general", - "description": "General Channel", - "private": false, - "members": [] - } - }, - { - "_id": "610828bdad975a4e5f24b490", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b491", - "objectClass": "chunter.class.Channel", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "name": "random", - "description": "Random Talks", - "private": false, - "members": [] - } - }, - { - "_id": "610828bdad975a4e5f24b492", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "task.class.Task", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Doc" - } - }, - { - "_id": "610828bdad975a4e5f24b493", - "objectId": "610828bdad975a4e5f24b494", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669332, - "objectSpace": "core.space.Model", - "objectClass": "core.class.Attribute", - "attributes": { - "type": { - "_class": "core.class.TypeString" - }, - "name": "title", - "label": "Title", - "attributeOf": "task.class.Task" - } - }, - { - "_id": "610828bdad975a4e5f24b495", - "objectId": "610828bdad975a4e5f24b496", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669332, - "objectSpace": "core.space.Model", - "objectClass": "core.class.Attribute", - "attributes": { - "type": { - "_class": "core.class.TypeString" - }, - "name": "description", - "label": "Description", - "attributeOf": "task.class.Task" - } - }, - { - "_id": "610828bdad975a4e5f24b497", - "objectId": "610828bdad975a4e5f24b498", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669332, - "objectSpace": "core.space.Model", - "objectClass": "core.class.Attribute", - "attributes": { - "type": { - "_class": "core.class.TypeString" - }, - "name": "assignee", - "label": "Assignee", - "attributeOf": "task.class.Task" - } - }, - { - "_id": "610828bdad975a4e5f24b499", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "task.class.Project", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Space", - "label": "Project", - "icon": "task.icon.Task" - } - }, - { - "_id": "610828bdad975a4e5f24b49a", - "_class": "core.class.TxMixin", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669334, - "objectId": "task.class.Project", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "mixin": "workbench.mixin.SpaceView", - "attributes": { - "view": { - "class": "task.class.Task", - "createItemDialog": "task.component.CreateTask" - } - } - }, - { - "_id": "610828bdad975a4e5f24b49b", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b49c", - "objectClass": "view.class.Viewlet", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "attachTo": "task.class.Task", - "descriptor": "view.viewlet.Table", - "open": "ZX", - "options": { - "lookup": { - "assignee": "contact.class.Person" - } - }, - "config": [ - "title", - "$lookup.assignee" - ] - } - }, - { - "_id": "610828bdad975a4e5f24b49d", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b49e", - "objectClass": "workbench.class.Application", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "label": "task.string.ApplicationLabelTask", - "icon": "task.icon.Task", - "navigatorModel": { - "spaces": [ - { - "label": "task.string.Projects", - "spaceClass": "task.class.Project", - "addSpaceLabel": "task.string.CreateProject", - "createComponent": "task.component.CreateProject" - } - ] - } - } - }, - { - "_id": "610828bdad975a4e5f24b49f", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b4a0", - "objectClass": "task.class.Project", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "name": "demo", - "description": "Demo Project", - "private": false, - "members": [] - } - }, - { - "_id": "610828bdad975a4e5f24b4a1", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "recruit.class.Applicant", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Doc" - } - }, - { - "_id": "610828bdad975a4e5f24b4a2", - "objectId": "610828bdad975a4e5f24b4a3", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669299, - "objectSpace": "core.space.Model", - "objectClass": "core.class.Attribute", - "attributes": { - "type": { - "_class": "core.class.TypeString" - }, - "name": "candidate", - "label": "Candidate", - "attributeOf": "recruit.class.Applicant" - } - }, - { - "_id": "610828bdad975a4e5f24b4a4", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "recruit.class.Candidate", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "contact.class.Person", - "label": "Candidate" - } - }, - { - "_id": "610828bdad975a4e5f24b4a5", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "recruit.class.Candidates", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Space", - "label": "recruit.string.CandidatePools", - "icon": "recruit.icon.RecruitApplication" - } - }, - { - "_id": "610828bdad975a4e5f24b4a6", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "recruit.class.Vacancy", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "kind": 0, - "extends": "core.class.Space", - "label": "recruit.string.Vacancy", - "icon": "recruit.icon.Vacancy" - } - }, - { - "_id": "610828bdad975a4e5f24b4a7", - "_class": "core.class.TxMixin", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669334, - "objectId": "recruit.class.Vacancy", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "mixin": "workbench.mixin.SpaceView", - "attributes": { - "view": { - "class": "recruit.class.Applicant", - "createItemDialog": "recruit.component.CreateApplication" - } - } - }, - { - "_id": "610828bdad975a4e5f24b4a8", - "_class": "core.class.TxMixin", - "space": "core.space.Tx", - "modifiedBy": "core.account.System", - "modifiedOn": 1627924669334, - "objectId": "recruit.class.Candidates", - "objectClass": "core.class.Class", - "objectSpace": "core.space.Model", - "mixin": "workbench.mixin.SpaceView", - "attributes": { - "view": { - "class": "recruit.class.Candidate", - "createItemDialog": "recruit.component.CreateCandidate" - } - } - }, - { - "_id": "610828bdad975a4e5f24b4a9", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b4aa", - "objectClass": "workbench.class.Application", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "label": "recruit.string.RecruitApplication", - "icon": "recruit.icon.RecruitApplication", - "navigatorModel": { - "spaces": [ - { - "label": "recruit.string.Vacancies", - "spaceClass": "recruit.class.Vacancy", - "addSpaceLabel": "recruit.string.CreateVacancy", - "createComponent": "recruit.component.CreateVacancy" - }, - { - "label": "recruit.string.CandidatePools", - "spaceClass": "recruit.class.Candidates", - "addSpaceLabel": "recruit.string.CreateCandidates", - "createComponent": "recruit.component.CreateCandidates" - } - ] - } - } - }, - { - "_id": "610828bdad975a4e5f24b4ab", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "recruit.space.CandidatesPublic", - "objectClass": "recruit.class.Candidates", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "name": "public", - "description": "Public Candidates", - "private": false, - "members": [] - } - }, - { - "_id": "610828bdad975a4e5f24b4ac", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b4ad", - "objectClass": "view.class.Viewlet", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "attachTo": "recruit.class.Candidate", - "descriptor": "view.viewlet.Table", - "open": "recruit.component.EditCandidate", - "config": [ - "", - "email", - "phone", - "city" - ] - } - }, - { - "_id": "610828bdad975a4e5f24b4ae", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b4af", - "objectClass": "view.class.Viewlet", - "objectSpace": "core.space.Model", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "attachTo": "recruit.class.Applicant", - "descriptor": "view.viewlet.Table", - "open": "recruit.component.EditCandidate", - "options": { - "lookup": { - "candidate": "recruit.class.Candidate" - } - }, - "config": [ - "$lookup.candidate", - "$lookup.candidate.email", - "$lookup.candidate.city" - ] - } - }, - { - "_id": "610828bdad975a4e5f24b4b0", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b4b1", - "objectClass": "recruit.class.Candidate", - "objectSpace": "recruit.space.CandidatesPublic", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "firstName": "Andrey", - "lastName": "P.", - "email": "andrey@hc.engineering", - "phone": "+1 646 667 6832", - "city": "Monte Carlo" - } - }, - { - "_id": "610828bdad975a4e5f24b4b2", - "_class": "core.class.TxCreateDoc", - "space": "core.space.Tx", - "objectId": "610828bdad975a4e5f24b4b3", - "objectClass": "recruit.class.Candidate", - "objectSpace": "recruit.space.CandidatesPublic", - "modifiedOn": 1627924669334, - "modifiedBy": "core.account.System", - "attributes": { - "firstName": "Marina", - "lastName": "M.", - "email": "marina@hc.engineering", - "phone": "+1 646 777 3333", - "city": "Los Angeles" + "extends": "core:class:Class" } } ] \ No newline at end of file diff --git a/models/all/.eslintrc.js b/models/all/.eslintrc.js new file mode 100644 index 0000000000..1375671262 --- /dev/null +++ b/models/all/.eslintrc.js @@ -0,0 +1,6 @@ +module.exports = { + extends: ['./node_modules/@anticrm/model-rig/profiles/default/config/eslint.config.json'], + parserOptions: { + project: './tsconfig.json' + } +} \ No newline at end of file diff --git a/models/all/.npmignore b/models/all/.npmignore new file mode 100644 index 0000000000..e3ec093c38 --- /dev/null +++ b/models/all/.npmignore @@ -0,0 +1,4 @@ +* +!/lib/** +!CHANGELOG.md +/lib/**/__tests__/ diff --git a/models/all/config/rig.json b/models/all/config/rig.json new file mode 100644 index 0000000000..e9a9ee9add --- /dev/null +++ b/models/all/config/rig.json @@ -0,0 +1,18 @@ +// The "rig.json" file directs tools to look for their config files in an external package. +// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package +{ + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + /** + * (Required) The name of the rig package to inherit from. + * It should be an NPM package name with the "-rig" suffix. + */ + "rigPackageName": "@anticrm/model-rig" + + /** + * (Optional) Selects a config profile from the rig package. The name must consist of + * lowercase alphanumeric words separated by hyphens, for example "sample-profile". + * If omitted, then the "default" profile will be used." + */ + // "rigProfile": "your-profile-name" +} diff --git a/models/all/package.json b/models/all/package.json new file mode 100644 index 0000000000..f97613e4ec --- /dev/null +++ b/models/all/package.json @@ -0,0 +1,26 @@ +{ + "name": "@anticrm/model-all", + "version": "0.6.0", + "main": "lib/index.js", + "author": "Anticrm Platform Contributors", + "license": "EPL-2.0", + "scripts": { + "build": "heft build", + "lint:fix": "eslint --fix src", + "genmodel": "ts-node src/__genmodel.ts" + }, + "devDependencies": { + "@anticrm/model-rig":"~0.6.0", + "@typescript-eslint/eslint-plugin":"4", + "eslint-plugin-import":"2", + "eslint-plugin-promise":"4", + "eslint-plugin-node":"11", + "eslint":"^7.32.0", + "@types/node":"^16.4.13", + "ts-node":"^10.1.0" + }, + "dependencies": { + "@anticrm/model": "~0.6.0", + "@anticrm/model-core": "~0.6.0" + } +} diff --git a/models/all/src/__genmodel.ts b/models/all/src/__genmodel.ts new file mode 100644 index 0000000000..a8b0358540 --- /dev/null +++ b/models/all/src/__genmodel.ts @@ -0,0 +1,20 @@ +// +// Copyright © 2020 Anticrm Platform Contributors. +// +// Licensed under the Eclipse Public License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. You may +// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +import builder from '.' +import { writeFileSync } from 'fs' + +const content = JSON.stringify(builder.getTxes(), undefined, 2) +writeFileSync('../../dev/storage/src/model.tx.json', content) diff --git a/models/all/src/index.ts b/models/all/src/index.ts new file mode 100644 index 0000000000..f842c210f6 --- /dev/null +++ b/models/all/src/index.ts @@ -0,0 +1,40 @@ +// +// Copyright © 2020 Anticrm Platform Contributors. +// +// Licensed under the Eclipse Public License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. You may +// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +import { Builder } from '@anticrm/model' + +import { createModel as coreModel } from '@anticrm/model-core' +// import { createModel as workbenchModel } from '@anticrm/model-workbench' +// import { createModel as contactModel } from '@anticrm/model-contact' +// import { createModel as chunterModel } from '@anticrm/model-chunter' +// import { createModel as recruitModel } from '@anticrm/model-recruit' +// import { createModel as viewModel } from '@anticrm/model-view' +// import { createModel as taskModel } from '@anticrm/model-task' + +// import { createDemo } from '@anticrm/model-demo' + +const builder = new Builder() + +coreModel(builder) +// viewModel(builder) +// workbenchModel(builder) +// contactModel(builder) +// chunterModel(builder) +// taskModel(builder) +// recruitModel(builder) + +// createDemo(builder) + +export default builder diff --git a/models/all/tsconfig.json b/models/all/tsconfig.json new file mode 100644 index 0000000000..6f603ffd11 --- /dev/null +++ b/models/all/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "./node_modules/@anticrm/model-rig/profiles/default/tsconfig.json", + + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib", + "types": ["node"] + } +} \ No newline at end of file diff --git a/models/core/tsconfig.json b/models/core/tsconfig.json index 0e1a972b6d..1d60db76b4 100644 --- a/models/core/tsconfig.json +++ b/models/core/tsconfig.json @@ -4,6 +4,5 @@ "compilerOptions": { "rootDir": "./src", "outDir": "./lib", - "experimentalDecorators": true, } } \ No newline at end of file diff --git a/rush.json b/rush.json index 125cdf4cf6..edea9a49ba 100644 --- a/rush.json +++ b/rush.json @@ -566,5 +566,10 @@ "projectFolder": "models/model-rig", "shouldPublish": true }, + { + "packageName": "@anticrm/model-all", + "projectFolder": "models/all", + "shouldPublish": true + }, ] }