-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #656 from The-Commit-Company/rav-39-raven-bot-doct…
…ype-setup fix: updated Raven Message doctype
- Loading branch information
Showing
1 changed file
with
178 additions
and
176 deletions.
There are no files selected for viewing
354 changes: 178 additions & 176 deletions
354
raven/raven_messaging/doctype/raven_message/raven_message.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,178 +1,180 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"autoname": "hash", | ||
"creation": "2023-02-12 17:29:25.498988", | ||
"default_view": "List", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"channel_id", | ||
"text", | ||
"json", | ||
"message_type", | ||
"file", | ||
"image_width", | ||
"image_height", | ||
"file_thumbnail", | ||
"thumbnail_width", | ||
"thumbnail_height", | ||
"message_reactions", | ||
"is_reply", | ||
"linked_message", | ||
"link_doctype", | ||
"link_document", | ||
"is_bot_message", | ||
"bot" | ||
"content" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "channel_id", | ||
"fieldtype": "Link", | ||
"in_list_view": 1, | ||
"in_standard_filter": 1, | ||
"label": "Channel ID", | ||
"options": "Raven Channel", | ||
"reqd": 1, | ||
"search_index": 1 | ||
}, | ||
{ | ||
"fieldname": "text", | ||
"fieldtype": "Long Text", | ||
"label": "Text" | ||
}, | ||
{ | ||
"fieldname": "json", | ||
"fieldtype": "JSON", | ||
"label": "JSON" | ||
}, | ||
{ | ||
"fieldname": "file", | ||
"fieldtype": "Attach", | ||
"label": "File" | ||
}, | ||
{ | ||
"fieldname": "message_type", | ||
"fieldtype": "Select", | ||
"label": "Message Type", | ||
"options": "Text\nImage\nFile" | ||
}, | ||
{ | ||
"fieldname": "message_reactions", | ||
"fieldtype": "JSON", | ||
"label": "Message Reactions" | ||
}, | ||
{ | ||
"default": "0", | ||
"fieldname": "is_reply", | ||
"fieldtype": "Check", | ||
"label": "Is Reply" | ||
}, | ||
{ | ||
"fieldname": "linked_message", | ||
"fieldtype": "Link", | ||
"label": "Linked Message", | ||
"options": "Raven Message" | ||
}, | ||
{ | ||
"fieldname": "file_thumbnail", | ||
"fieldtype": "Attach", | ||
"label": "File Thumbnail" | ||
}, | ||
{ | ||
"fieldname": "image_width", | ||
"fieldtype": "Data", | ||
"label": "Image Width" | ||
}, | ||
{ | ||
"fieldname": "image_height", | ||
"fieldtype": "Data", | ||
"label": "Image Height" | ||
}, | ||
{ | ||
"fieldname": "thumbnail_width", | ||
"fieldtype": "Data", | ||
"label": "Thumbnail Width" | ||
}, | ||
{ | ||
"fieldname": "thumbnail_height", | ||
"fieldtype": "Data", | ||
"label": "Thumbnail Height" | ||
}, | ||
{ | ||
"fieldname": "link_doctype", | ||
"fieldtype": "Link", | ||
"label": "Link Doctype", | ||
"options": "DocType" | ||
}, | ||
{ | ||
"fieldname": "link_document", | ||
"fieldtype": "Dynamic Link", | ||
"label": "Link Document", | ||
"options": "link_doctype" | ||
}, | ||
{ | ||
"default": "0", | ||
"fieldname": "is_bot_message", | ||
"fieldtype": "Check", | ||
"label": "Is Bot Message" | ||
}, | ||
{ | ||
"depends_on": "eval: doc.is_bot_message == 1", | ||
"fieldname": "bot", | ||
"fieldtype": "Link", | ||
"label": "Bot", | ||
"mandatory_depends_on": "eval: doc.is_bot_message == 1", | ||
"options": "Raven User" | ||
"fieldname": "content", | ||
"fieldtype": "Long Text", | ||
"label": "Content", | ||
"read_only": 1 | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"links": [], | ||
"modified": "2024-01-19 17:41:28.463058", | ||
"modified_by": "Administrator", | ||
"module": "Raven Messaging", | ||
"name": "Raven Message", | ||
"naming_rule": "Random", | ||
"owner": "Administrator", | ||
"permissions": [ | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "System Manager", | ||
"select": 1, | ||
"share": 1, | ||
"write": 1 | ||
}, | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"if_owner": 1, | ||
"print": 1, | ||
"report": 1, | ||
"role": "Raven User", | ||
"share": 1, | ||
"write": 1 | ||
}, | ||
{ | ||
"read": 1, | ||
"role": "Raven User" | ||
} | ||
], | ||
"search_fields": "text", | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
"actions": [], | ||
"allow_rename": 1, | ||
"autoname": "hash", | ||
"creation": "2023-02-12 17:29:25.498988", | ||
"default_view": "List", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"channel_id", | ||
"text", | ||
"json", | ||
"message_type", | ||
"file", | ||
"image_width", | ||
"image_height", | ||
"file_thumbnail", | ||
"thumbnail_width", | ||
"thumbnail_height", | ||
"message_reactions", | ||
"is_reply", | ||
"linked_message", | ||
"link_doctype", | ||
"link_document", | ||
"is_bot_message", | ||
"bot", | ||
"content" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "channel_id", | ||
"fieldtype": "Link", | ||
"in_list_view": 1, | ||
"in_standard_filter": 1, | ||
"label": "Channel ID", | ||
"options": "Raven Channel", | ||
"reqd": 1, | ||
"search_index": 1 | ||
}, | ||
{ | ||
"fieldname": "text", | ||
"fieldtype": "Long Text", | ||
"label": "Text" | ||
}, | ||
{ | ||
"fieldname": "json", | ||
"fieldtype": "JSON", | ||
"label": "JSON" | ||
}, | ||
{ | ||
"fieldname": "file", | ||
"fieldtype": "Attach", | ||
"label": "File" | ||
}, | ||
{ | ||
"fieldname": "message_type", | ||
"fieldtype": "Select", | ||
"label": "Message Type", | ||
"options": "Text\nImage\nFile" | ||
}, | ||
{ | ||
"fieldname": "message_reactions", | ||
"fieldtype": "JSON", | ||
"label": "Message Reactions" | ||
}, | ||
{ | ||
"default": "0", | ||
"fieldname": "is_reply", | ||
"fieldtype": "Check", | ||
"label": "Is Reply" | ||
}, | ||
{ | ||
"fieldname": "linked_message", | ||
"fieldtype": "Link", | ||
"label": "Linked Message", | ||
"options": "Raven Message" | ||
}, | ||
{ | ||
"fieldname": "file_thumbnail", | ||
"fieldtype": "Attach", | ||
"label": "File Thumbnail" | ||
}, | ||
{ | ||
"fieldname": "image_width", | ||
"fieldtype": "Data", | ||
"label": "Image Width" | ||
}, | ||
{ | ||
"fieldname": "image_height", | ||
"fieldtype": "Data", | ||
"label": "Image Height" | ||
}, | ||
{ | ||
"fieldname": "thumbnail_width", | ||
"fieldtype": "Data", | ||
"label": "Thumbnail Width" | ||
}, | ||
{ | ||
"fieldname": "thumbnail_height", | ||
"fieldtype": "Data", | ||
"label": "Thumbnail Height" | ||
}, | ||
{ | ||
"fieldname": "link_doctype", | ||
"fieldtype": "Link", | ||
"label": "Link Doctype", | ||
"options": "DocType" | ||
}, | ||
{ | ||
"fieldname": "link_document", | ||
"fieldtype": "Dynamic Link", | ||
"label": "Link Document", | ||
"options": "link_doctype" | ||
}, | ||
{ | ||
"default": "0", | ||
"fieldname": "is_bot_message", | ||
"fieldtype": "Check", | ||
"label": "Is Bot Message" | ||
}, | ||
{ | ||
"depends_on": "eval: doc.is_bot_message == 1", | ||
"fieldname": "bot", | ||
"fieldtype": "Link", | ||
"label": "Bot", | ||
"mandatory_depends_on": "eval: doc.is_bot_message == 1", | ||
"options": "Raven User" | ||
}, | ||
{ | ||
"fieldname": "content", | ||
"fieldtype": "Long Text", | ||
"label": "Content", | ||
"read_only": 1 | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"links": [], | ||
"modified": "2024-01-19 17:41:28.463058", | ||
"modified_by": "Administrator", | ||
"module": "Raven Messaging", | ||
"name": "Raven Message", | ||
"naming_rule": "Random", | ||
"owner": "Administrator", | ||
"permissions": [ | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "System Manager", | ||
"select": 1, | ||
"share": 1, | ||
"write": 1 | ||
}, | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"if_owner": 1, | ||
"print": 1, | ||
"report": 1, | ||
"role": "Raven User", | ||
"share": 1, | ||
"write": 1 | ||
}, | ||
{ | ||
"read": 1, | ||
"role": "Raven User" | ||
} | ||
], | ||
"search_fields": "text", | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |