spine-framework-cortex 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/seed/types.json +54 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spine-framework-cortex",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Cortex — AI-powered support, CRM, and knowledge base app for Spine Framework",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/seed/types.json CHANGED
@@ -777,5 +777,59 @@
777
777
  "functionality": null
778
778
  },
779
779
  "validation_schema": {}
780
+ },
781
+ {
782
+ "kind": "item",
783
+ "slug": "support_ticket",
784
+ "name": "Support Ticket",
785
+ "description": "Customer support request or issue",
786
+ "icon": "ticket",
787
+ "color": "#F59E0B",
788
+ "ownership": "tenant",
789
+ "is_active": true,
790
+ "design_schema": {
791
+ "fields": {
792
+ "title": { "data_type": "text", "label": "Title", "required": true, "permissions": { "system_admin": ["read", "write"], "support": ["read", "write"], "member": ["read", "write"] } },
793
+ "description": { "data_type": "richtext", "label": "Description", "required": true, "permissions": { "system_admin": ["read", "write"], "support": ["read", "write"], "member": ["read", "write"] } },
794
+ "status": { "data_type": "select", "label": "Status", "required": true, "options": [{"label": "Open", "value": "open"}, {"label": "In Progress", "value": "in_progress"}, {"label": "Resolved", "value": "resolved"}, {"label": "Closed", "value": "closed"}], "permissions": { "system_admin": ["read", "write"], "support": ["read", "write"], "member": ["read"] } },
795
+ "priority": { "data_type": "select", "label": "Priority", "required": false, "options": [{"label": "Low", "value": "low"}, {"label": "Medium", "value": "medium"}, {"label": "High", "value": "high"}, {"label": "Urgent", "value": "urgent"}], "permissions": { "system_admin": ["read", "write"], "support": ["read", "write"], "member": ["read"] } },
796
+ "channel": { "data_type": "select", "label": "Channel", "required": false, "options": [{"label": "Email", "value": "email"}, {"label": "Chat", "value": "chat"}, {"label": "Portal", "value": "portal"}, {"label": "Phone", "value": "phone"}], "permissions": { "system_admin": ["read", "write"], "support": ["read", "write"], "member": ["read"] } },
797
+ "assignee_id": { "data_type": "uuid", "label": "Assigned To", "required": false, "permissions": { "system_admin": ["read", "write"], "support": ["read", "write"], "member": ["read"] } },
798
+ "resolved_at": { "data_type": "datetime", "label": "Resolved At", "required": false, "permissions": { "system_admin": ["read", "write"], "support": ["read", "write"], "member": ["read"] } },
799
+ "satisfaction_score": { "data_type": "number", "label": "Satisfaction Score", "required": false, "validation": { "min": 1, "max": 5 }, "permissions": { "system_admin": ["read", "write"], "support": ["read"], "member": ["read", "write"] } }
800
+ },
801
+ "views": {
802
+ "default_list": {
803
+ "type": "list",
804
+ "display": "table",
805
+ "label": "Support Tickets",
806
+ "fields": {
807
+ "title": { "sortable": true, "display_type": "text" },
808
+ "status": { "sortable": true, "display_type": "badge" },
809
+ "priority": { "sortable": true, "display_type": "badge" },
810
+ "channel": { "sortable": false, "display_type": "badge" }
811
+ },
812
+ "default_sort": { "field": "created_at", "direction": "desc" }
813
+ },
814
+ "default_detail": {
815
+ "type": "detail",
816
+ "label": "Support Ticket",
817
+ "sections": [
818
+ { "title": "Ticket", "fields": { "title": { "display_type": "input" }, "description": { "display_type": "richtext" }, "status": { "display_type": "select" }, "priority": { "display_type": "select" } } },
819
+ { "title": "Assignment", "fields": { "assignee_id": { "display_type": "text" }, "channel": { "display_type": "select" }, "resolved_at": { "display_type": "timestamp" } } },
820
+ { "title": "Feedback", "fields": { "satisfaction_score": { "display_type": "number" } } }
821
+ ]
822
+ }
823
+ },
824
+ "record_permissions": { "system_admin": ["create", "read", "update", "delete"], "support": ["create", "read", "update"], "member": ["create", "read"] },
825
+ "functionality": null
826
+ },
827
+ "validation_schema": {
828
+ "fields": {
829
+ "title": { "data_type": "text", "required": true },
830
+ "description": { "data_type": "richtext", "required": true },
831
+ "status": { "data_type": "text", "required": true }
832
+ }
833
+ }
780
834
  }
781
835
  ]