From 8ef4b498007a4da31f1f61f53a1f84064df5ead2 Mon Sep 17 00:00:00 2001 From: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> Date: Wed, 17 Nov 2021 20:00:51 +0600 Subject: [PATCH] channelProviders ids (#320) Signed-off-by: Denis Bykhov --- dev/storage/src/model.tx.json | 2 +- dev/tool/src/model.tx.json | 2 +- models/contact/src/index.ts | 8 ++++---- models/contact/src/plugin.ts | 4 ++-- server/workspace/src/model.tx.json | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dev/storage/src/model.tx.json b/dev/storage/src/model.tx.json index f6f4adea5f..14ebe5bdfe 100644 --- a/dev/storage/src/model.tx.json +++ b/dev/storage/src/model.tx.json @@ -977,7 +977,7 @@ "_id": "618a9e1165ff379e1b3b8fcd", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "618a9e1165ff379e1b3b8fce", + "objectId": "contact:channelProvider:Telegram", "objectClass": "contact:class:ChannelProvider", "objectSpace": "core:space:Model", "modifiedOn": 1636474385880, diff --git a/dev/tool/src/model.tx.json b/dev/tool/src/model.tx.json index f6f4adea5f..14ebe5bdfe 100644 --- a/dev/tool/src/model.tx.json +++ b/dev/tool/src/model.tx.json @@ -977,7 +977,7 @@ "_id": "618a9e1165ff379e1b3b8fcd", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "618a9e1165ff379e1b3b8fce", + "objectId": "contact:channelProvider:Telegram", "objectClass": "contact:class:ChannelProvider", "objectSpace": "core:space:Model", "modifiedOn": 1636474385880, diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index da5dd39112..a7ae1c0eac 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -93,25 +93,25 @@ export function createModel (builder: Builder): void { label: 'Phone' as IntlString, icon: contact.icon.Phone, placeholder: '+1 555 333 7777' - }) + }, contact.channelProvider.Phone) builder.createDoc(contact.class.ChannelProvider, core.space.Model, { label: 'LinkedIn' as IntlString, icon: contact.icon.LinkedIn, placeholder: 'https://linkedin.com/in/jappleseed' - }) + }, contact.channelProvider.LinkedIn) builder.createDoc(contact.class.ChannelProvider, core.space.Model, { label: 'Twitter' as IntlString, icon: contact.icon.Twitter, placeholder: '@appleseed' - }) + }, contact.channelProvider.Twitter) builder.createDoc(contact.class.ChannelProvider, core.space.Model, { label: 'Telegram' as IntlString, icon: contact.icon.Telegram, placeholder: '@appleseed' - }) + }, contact.channelProvider.Telegram) builder.createDoc(core.class.Space, core.space.Model, { name: 'Employees', diff --git a/models/contact/src/plugin.ts b/models/contact/src/plugin.ts index 04d839e574..160ad2ac21 100644 --- a/models/contact/src/plugin.ts +++ b/models/contact/src/plugin.ts @@ -25,9 +25,9 @@ export const ids = mergeIds(contactId, contact, { Email: '' as Ref, Phone: '' as Ref, LinkedIn: '' as Ref, - Twitter: '' as Ref + Twitter: '' as Ref, + Telegram: '' as Ref // GitHub: '' as Ref, - // Telegram: '' as Ref, }, component: { PersonPresenter: '' as AnyComponent, diff --git a/server/workspace/src/model.tx.json b/server/workspace/src/model.tx.json index f6f4adea5f..14ebe5bdfe 100644 --- a/server/workspace/src/model.tx.json +++ b/server/workspace/src/model.tx.json @@ -977,7 +977,7 @@ "_id": "618a9e1165ff379e1b3b8fcd", "_class": "core:class:TxCreateDoc", "space": "core:space:Tx", - "objectId": "618a9e1165ff379e1b3b8fce", + "objectId": "contact:channelProvider:Telegram", "objectClass": "contact:class:ChannelProvider", "objectSpace": "core:space:Model", "modifiedOn": 1636474385880,