-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.json
More file actions
167 lines (167 loc) · 9.29 KB
/
manifest.json
File metadata and controls
167 lines (167 loc) · 9.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
"appId": "crm",
"name": "CRM",
"version": "0.8.0",
"icon": "assets/icon.png",
"description": "A full-featured CRM to manage contacts, companies, deals, activities, and notes",
"dataContract": [
{
"entityName": "companies",
"fields": [
{ "name": "name", "type": "text", "required": true },
{ "name": "domain_name", "type": "text" },
{ "name": "industry", "type": "text", "enum_values": ["Technology", "Finance", "Healthcare", "Retail", "Manufacturing", "Real Estate", "Education", "Other"] },
{ "name": "employees", "type": "number" },
{ "name": "annual_recurring_revenue","type": "number" },
{ "name": "ideal_customer_profile", "type": "boolean" },
{ "name": "description", "type": "text" },
{ "name": "website", "type": "text" },
{ "name": "phone", "type": "text" },
{ "name": "address", "type": "text" },
{ "name": "linkedin_url", "type": "text" }
]
},
{
"entityName": "contacts",
"fields": [
{ "name": "first_name", "type": "text", "required": true },
{ "name": "last_name", "type": "text", "required": true },
{ "name": "email", "type": "text" },
{ "name": "phone", "type": "text" },
{ "name": "job_title", "type": "text" },
{ "name": "city", "type": "text" },
{ "name": "avatar_url", "type": "text" },
{ "name": "linkedin_url", "type": "text" },
{ "name": "twitter_handle","type": "text" },
{ "name": "company_id", "type": "entity_link", "onDelete": "set_null", "references": { "entity": "companies", "field": "id" } },
{ "name": "status", "type": "text", "enum_values": ["Lead", "Prospect", "Customer", "Churned"] }
]
},
{
"entityName": "deals",
"fields": [
{ "name": "title", "type": "text", "required": true },
{ "name": "value", "type": "number" },
{ "name": "currency", "type": "text", "enum_values": ["USD", "EUR", "GBP", "CHF", "CAD", "AUD", "JPY"] },
{ "name": "probability", "type": "number" },
{ "name": "stage", "type": "text", "required": true, "enum_values": ["Lead", "Qualified", "Proposal", "Negotiation", "Closed Won", "Closed Lost"] },
{ "name": "source", "type": "text", "enum_values": ["Inbound", "Outbound", "Referral", "Partner", "Event", "Other"] },
{ "name": "contact_id", "type": "entity_link", "onDelete": "set_null", "references": { "entity": "contacts", "field": "id" } },
{ "name": "company_id", "type": "entity_link", "onDelete": "set_null", "references": { "entity": "companies", "field": "id" } },
{ "name": "close_date", "type": "date" },
{ "name": "position", "type": "number" }
]
},
{
"entityName": "deal_contacts",
"fields": [
{ "name": "deal_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "deals", "field": "id" }, "required": true },
{ "name": "contact_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "contacts", "field": "id" }, "required": true }
]
},
{
"entityName": "notes",
"fields": [
{ "name": "title", "type": "text" },
{ "name": "body", "type": "text" },
{ "name": "contact_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "contacts", "field": "id" } },
{ "name": "company_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "companies", "field": "id" } },
{ "name": "deal_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "deals", "field": "id" } },
{ "name": "pinned", "type": "boolean" }
]
},
{
"entityName": "contact_emails",
"fields": [
{ "name": "contact_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "contacts", "field": "id" }, "required": true },
{ "name": "gmail_id", "type": "text", "required": true },
{ "name": "subject", "type": "text" },
{ "name": "from", "type": "text" },
{ "name": "to", "type": "text" },
{ "name": "date", "type": "timestamp" },
{ "name": "snippet", "type": "text" },
{ "name": "body", "type": "text" }
]
},
{
"entityName": "activities",
"fields": [
{ "name": "type", "type": "text", "required": true, "enum_values": ["Call", "Email", "Meeting", "Task"] },
{ "name": "subject", "type": "text", "required": true },
{ "name": "body", "type": "text" },
{ "name": "contact_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "contacts", "field": "id" } },
{ "name": "company_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "companies", "field": "id" } },
{ "name": "deal_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "deals", "field": "id" } },
{ "name": "due_date", "type": "date" },
{ "name": "done", "type": "boolean" }
]
},
{
"entityName": "lists",
"fields": [
{ "name": "name", "type": "text", "required": true },
{ "name": "entity_type", "type": "text", "required": true, "enum_values": ["contacts", "companies", "deals"] },
{ "name": "icon", "type": "text" },
{ "name": "position", "type": "number" }
]
},
{
"entityName": "list_records",
"fields": [
{ "name": "list_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "lists", "field": "id" }, "required": true },
{ "name": "contact_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "contacts", "field": "id" } },
{ "name": "company_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "companies", "field": "id" } },
{ "name": "deal_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "deals", "field": "id" } },
{ "name": "position", "type": "number" }
]
},
{
"entityName": "attachments",
"fields": [
{ "name": "file_id", "type": "text", "required": true },
{ "name": "filename", "type": "text", "required": true },
{ "name": "content_type", "type": "text" },
{ "name": "size", "type": "number" },
{ "name": "note_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "notes", "field": "id" } },
{ "name": "contact_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "contacts", "field": "id" } },
{ "name": "company_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "companies", "field": "id" } },
{ "name": "deal_id", "type": "entity_link", "onDelete": "cascade", "references": { "entity": "deals", "field": "id" } }
]
},
{
"entityName": "favorites",
"fields": [
{ "name": "entity_type", "type": "text", "required": true, "enum_values": ["contact", "company", "deal"] },
{ "name": "entity_id", "type": "text", "required": true },
{ "name": "label", "type": "text" },
{ "name": "position", "type": "number" }
]
}
],
"permissions": {
"permissions": [
{ "key": "companies.read", "description": "View companies" },
{ "key": "companies.write", "description": "Create and edit companies" },
{ "key": "contacts.read", "description": "View contacts" },
{ "key": "contacts.write", "description": "Create and edit contacts" },
{ "key": "deals.read", "description": "View deals" },
{ "key": "deals.write", "description": "Create and edit deals" },
{ "key": "deal_contacts.read", "description": "View deal-contact relations" },
{ "key": "deal_contacts.write", "description": "Manage deal-contact relations" },
{ "key": "notes.read", "description": "View notes" },
{ "key": "notes.write", "description": "Create and edit notes" },
{ "key": "activities.read", "description": "View activities" },
{ "key": "activities.write", "description": "Create and edit activities" },
{ "key": "contact_emails.read", "description": "View cached contact emails" },
{ "key": "contact_emails.write","description": "Store cached contact emails" },
{ "key": "lists.read", "description": "View lists" },
{ "key": "lists.write", "description": "Create and manage lists" },
{ "key": "list_records.read", "description": "View list records" },
{ "key": "list_records.write", "description": "Add and remove list records" },
{ "key": "attachments.read", "description": "View attachments" },
{ "key": "attachments.write", "description": "Upload and manage attachments" },
{ "key": "favorites.read", "description": "View favorites" },
{ "key": "favorites.write", "description": "Manage favorites" }
]
}
}