@bigfootai/bigfoot-types 5.4.27 → 5.4.29
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.
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/metadata/dashboards/account_overview.d.ts +3 -0
- package/dist/metadata/dashboards/account_overview.d.ts.map +1 -0
- package/{metadata → dist/metadata}/dashboards/account_overview.js +8 -10
- package/dist/metadata/dashboards/account_overview.js.map +1 -0
- package/dist/metadata/dashboards/record_update.d.ts +3 -0
- package/dist/metadata/dashboards/record_update.d.ts.map +1 -0
- package/{metadata → dist/metadata}/dashboards/record_update.js +9 -11
- package/dist/metadata/dashboards/record_update.js.map +1 -0
- package/dist/metadata/documents/healthcheck.d.ts +3 -0
- package/dist/metadata/documents/healthcheck.d.ts.map +1 -0
- package/{metadata → dist/metadata}/documents/healthcheck.js +9 -16
- package/dist/metadata/documents/healthcheck.js.map +1 -0
- package/dist/metadata/providers/gong.d.ts +4 -0
- package/dist/metadata/providers/gong.d.ts.map +1 -0
- package/{metadata → dist/metadata}/providers/gong.js +4 -6
- package/dist/metadata/providers/gong.js.map +1 -0
- package/dist/metadata/providers/google.d.ts +3 -0
- package/dist/metadata/providers/google.d.ts.map +1 -0
- package/{metadata → dist/metadata}/providers/google.js +8 -10
- package/dist/metadata/providers/google.js.map +1 -0
- package/dist/metadata/providers/hubspot.d.ts +3 -0
- package/dist/metadata/providers/hubspot.d.ts.map +1 -0
- package/{metadata → dist/metadata}/providers/hubspot.js +11 -13
- package/dist/metadata/providers/hubspot.js.map +1 -0
- package/dist/metadata/providers/index.d.ts +7 -0
- package/dist/metadata/providers/index.d.ts.map +1 -0
- package/dist/metadata/providers/index.js +7 -0
- package/dist/metadata/providers/index.js.map +1 -0
- package/dist/metadata/providers/noded.d.ts +3 -0
- package/dist/metadata/providers/noded.d.ts.map +1 -0
- package/dist/metadata/providers/noded.js +49 -0
- package/dist/metadata/providers/noded.js.map +1 -0
- package/dist/metadata/providers/salesforce.d.ts +3 -0
- package/dist/metadata/providers/salesforce.d.ts.map +1 -0
- package/{metadata → dist/metadata}/providers/salesforce.js +11 -13
- package/dist/metadata/providers/salesforce.js.map +1 -0
- package/dist/metadata/providers/slack.d.ts +3 -0
- package/dist/metadata/providers/slack.d.ts.map +1 -0
- package/{metadata → dist/metadata}/providers/slack.js +11 -13
- package/dist/metadata/providers/slack.js.map +1 -0
- package/dist/metadata/tables/case.d.ts +3 -0
- package/dist/metadata/tables/case.d.ts.map +1 -0
- package/{metadata → dist/metadata}/tables/case.js +24 -31
- package/dist/metadata/tables/case.js.map +1 -0
- package/dist/metadata/tables/issue.d.ts +3 -0
- package/dist/metadata/tables/issue.d.ts.map +1 -0
- package/{metadata → dist/metadata}/tables/issue.js +27 -34
- package/dist/metadata/tables/issue.js.map +1 -0
- package/dist/metadata/tables/opportunity.d.ts +3 -0
- package/dist/metadata/tables/opportunity.d.ts.map +1 -0
- package/{metadata → dist/metadata}/tables/opportunity.js +28 -35
- package/dist/metadata/tables/opportunity.js.map +1 -0
- package/dist/metadata/tables/organization.d.ts +3 -0
- package/dist/metadata/tables/organization.d.ts.map +1 -0
- package/{metadata → dist/metadata}/tables/organization.js +7 -9
- package/dist/metadata/tables/organization.js.map +1 -0
- package/dist/types.d.ts +1641 -0
- package/dist/types.d.ts.map +1 -0
- package/{model.js → dist/types.js} +872 -581
- package/dist/types.js.map +1 -0
- package/package.json +30 -24
- package/.eslintignore +0 -3
- package/.eslintrc.json +0 -10
- package/.prettierrc +0 -9
- package/.vscode-sample/settings.json +0 -10
- package/a_article.txt +0 -58
- package/metadata/dashboards/account_overview.ts +0 -51
- package/metadata/dashboards/record_update.ts +0 -56
- package/metadata/documents/healthcheck.ts +0 -49
- package/metadata/providers/gong.ts +0 -35
- package/metadata/providers/google.ts +0 -66
- package/metadata/providers/hubspot.ts +0 -56
- package/metadata/providers/noded.js +0 -58
- package/metadata/providers/noded.ts +0 -58
- package/metadata/providers/salesforce.ts +0 -57
- package/metadata/providers/slack.ts +0 -53
- package/metadata/tables/case.ts +0 -153
- package/metadata/tables/issue.ts +0 -164
- package/metadata/tables/opportunity.ts +0 -166
- package/metadata/tables/organization.ts +0 -77
- package/model.ts +0 -3748
- package/tsconfig.json +0 -9
@@ -1,58 +0,0 @@
|
|
1
|
-
import { Provider, TagType } from '../../model';
|
2
|
-
import { AccountOverview } from '../dashboards/account_overview';
|
3
|
-
import { RecordUpdate } from '../dashboards/record_update';
|
4
|
-
import { HealthCheck } from '../documents/healthcheck';
|
5
|
-
import { Case } from '../tables/case';
|
6
|
-
import { Opportunity } from '../tables/opportunity';
|
7
|
-
import { Organization } from '../tables/organization';
|
8
|
-
|
9
|
-
export const CustomerSuccess = {
|
10
|
-
name: 'customer_success',
|
11
|
-
documentTypeSubscriptions: ['healthcheck'],
|
12
|
-
sobjects: {
|
13
|
-
calendar: false,
|
14
|
-
task: true,
|
15
|
-
transcription: false,
|
16
|
-
document: true,
|
17
|
-
thread: false,
|
18
|
-
template: true,
|
19
|
-
table: true,
|
20
|
-
},
|
21
|
-
recordTypeSubscriptions: [
|
22
|
-
Opportunity.metadataType,
|
23
|
-
Case.metadataType,
|
24
|
-
Organization.metadataType,
|
25
|
-
],
|
26
|
-
description:
|
27
|
-
'Noded customized to make it more productive for customer success use-cases.',
|
28
|
-
iconUrl: 'https://app.noded.so/notify_favicon.svg',
|
29
|
-
label: 'Noded for Customer Success',
|
30
|
-
linkSubscriptions: [],
|
31
|
-
authentication: false,
|
32
|
-
externalStorage: false,
|
33
|
-
dashboardTagSubscriptions: [
|
34
|
-
{
|
35
|
-
tagType: TagType.Organization,
|
36
|
-
dashboardSubscriptions: [AccountOverview.metadataType],
|
37
|
-
},
|
38
|
-
],
|
39
|
-
dashboardTypeSubscriptions: [
|
40
|
-
AccountOverview.metadataType,
|
41
|
-
RecordUpdate.metadataType,
|
42
|
-
],
|
43
|
-
};
|
44
|
-
|
45
|
-
export const Noded: Provider = {
|
46
|
-
_id: '6635a69bf0985154b603b7fa',
|
47
|
-
dateCreated: 0,
|
48
|
-
dateUpdated: 0,
|
49
|
-
name: 'noded',
|
50
|
-
description: 'The Noded applications for Noded',
|
51
|
-
instanceUrl: 'https://api.noded.so',
|
52
|
-
applications: [CustomerSuccess],
|
53
|
-
tableMetadata: [Opportunity, Case, Organization],
|
54
|
-
documentMetadata: [HealthCheck],
|
55
|
-
dashboardMetadata: [AccountOverview, RecordUpdate],
|
56
|
-
label: 'Noded',
|
57
|
-
iconUrl: 'https://app.noded.so/notify_favicon.svg',
|
58
|
-
};
|
@@ -1,57 +0,0 @@
|
|
1
|
-
import { BlockType, Provider, ProviderApplication, TagType } from '../../model';
|
2
|
-
|
3
|
-
export const Crm: ProviderApplication = {
|
4
|
-
name: 'crm',
|
5
|
-
sobjects: {
|
6
|
-
calendar: false,
|
7
|
-
task: false,
|
8
|
-
transcription: false,
|
9
|
-
document: false,
|
10
|
-
thread: false,
|
11
|
-
template: false,
|
12
|
-
table: true,
|
13
|
-
},
|
14
|
-
linkSubscriptions: ['*.lightning.force.com'],
|
15
|
-
linkToExternalIdRegex: '([a-zA-Z0-9]{15,18})(?=[^a-zA-Z0-9]|$)',
|
16
|
-
recordTypeSubscriptions: ['noded.opportunity', 'noded.case'],
|
17
|
-
dashboardTypeSubscriptions: ['noded.record_update'],
|
18
|
-
description:
|
19
|
-
"Add Case and Opportunity previews and monitor changes over time so you're always up-to-date.",
|
20
|
-
iconUrl:
|
21
|
-
'https://images.squarespace-cdn.com/content/v1/5e6cfa89c315535aba12ee9d/1620071046709-UG6FBU7AKYVDYWNFQAFT/Logo+-+Sales+Cloud+%281%29.png',
|
22
|
-
label: 'Salesforce CRM',
|
23
|
-
authentication: true,
|
24
|
-
externalStorage: true,
|
25
|
-
externalIds: [
|
26
|
-
{
|
27
|
-
label: 'Account',
|
28
|
-
blockType: BlockType.Record,
|
29
|
-
tagType: TagType.Organization,
|
30
|
-
},
|
31
|
-
{
|
32
|
-
label: 'Contact',
|
33
|
-
blockType: BlockType.Record,
|
34
|
-
tagType: TagType.Person,
|
35
|
-
tagSubType: 'contact',
|
36
|
-
},
|
37
|
-
{
|
38
|
-
label: 'User',
|
39
|
-
blockType: BlockType.Record,
|
40
|
-
tagType: TagType.Person,
|
41
|
-
tagSubType: 'user',
|
42
|
-
},
|
43
|
-
],
|
44
|
-
};
|
45
|
-
|
46
|
-
export const Salesforce: Provider = {
|
47
|
-
_id: '66331c02f0985154b603b789',
|
48
|
-
dateCreated: 0,
|
49
|
-
dateUpdated: 0,
|
50
|
-
name: 'salesforce',
|
51
|
-
description: 'Salesforce automation for Noded',
|
52
|
-
instanceUrl: 'https://connect-salesforce-dev.noded.so',
|
53
|
-
applications: [Crm],
|
54
|
-
label: 'Salesforce Connect',
|
55
|
-
iconUrl:
|
56
|
-
'https://upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Salesforce.com_logo.svg/320px-Salesforce.com_logo.svg.png',
|
57
|
-
};
|
@@ -1,53 +0,0 @@
|
|
1
|
-
import { BlockType, Provider, ProviderApplication, TagType } from '../../model';
|
2
|
-
|
3
|
-
export const Platform: ProviderApplication = {
|
4
|
-
name: 'platform',
|
5
|
-
sobjects: {
|
6
|
-
calendar: false,
|
7
|
-
task: false,
|
8
|
-
transcription: false,
|
9
|
-
document: false,
|
10
|
-
thread: false,
|
11
|
-
template: false,
|
12
|
-
table: true,
|
13
|
-
},
|
14
|
-
linkSubscriptions: ['*.slack.com/archives'],
|
15
|
-
linkToExternalIdRegex: '([a-zA-Z0-9]{15,18})(?=[^a-zA-Z0-9]|$)',
|
16
|
-
description: 'Collaborate with Slack and Noded together.',
|
17
|
-
iconUrl:
|
18
|
-
'https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/306_Slack_logo-512.png',
|
19
|
-
label: 'Slack Messaging',
|
20
|
-
authentication: true,
|
21
|
-
externalStorage: true,
|
22
|
-
externalIds: [
|
23
|
-
{
|
24
|
-
label: 'Channel',
|
25
|
-
blockType: BlockType.Record,
|
26
|
-
tagType: TagType.Topic,
|
27
|
-
},
|
28
|
-
{
|
29
|
-
label: 'Channel',
|
30
|
-
blockType: BlockType.Record,
|
31
|
-
tagType: TagType.Organization,
|
32
|
-
},
|
33
|
-
{
|
34
|
-
label: 'Profile',
|
35
|
-
blockType: BlockType.Record,
|
36
|
-
tagType: TagType.Person,
|
37
|
-
tagSubType: 'user',
|
38
|
-
},
|
39
|
-
],
|
40
|
-
};
|
41
|
-
|
42
|
-
export const Slack: Provider = {
|
43
|
-
_id: '677df7f4184df79de50f5c71',
|
44
|
-
dateCreated: 0,
|
45
|
-
dateUpdated: 0,
|
46
|
-
name: 'slack',
|
47
|
-
description: 'Slack collaboration for Noded',
|
48
|
-
instanceUrl: 'https://connect-slack-dev.noded.so',
|
49
|
-
applications: [Platform],
|
50
|
-
label: 'Slack',
|
51
|
-
iconUrl:
|
52
|
-
'https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/306_Slack_logo-512.png',
|
53
|
-
};
|
package/metadata/tables/case.ts
DELETED
@@ -1,153 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
FieldType,
|
3
|
-
FieldVariation,
|
4
|
-
TableMetadata,
|
5
|
-
TagType,
|
6
|
-
TaskPriority,
|
7
|
-
TaskStatus,
|
8
|
-
} from '../../model';
|
9
|
-
|
10
|
-
export const Case: TableMetadata = {
|
11
|
-
_id: '',
|
12
|
-
dateCreated: 0,
|
13
|
-
dateUpdated: 0,
|
14
|
-
label: 'Case',
|
15
|
-
description:
|
16
|
-
'Represents an case/ticket, which is a problem that needs to be resolved.',
|
17
|
-
metadataType: 'case',
|
18
|
-
tasky: true,
|
19
|
-
references: [
|
20
|
-
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
|
21
|
-
'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
|
22
|
-
],
|
23
|
-
fields: [
|
24
|
-
{
|
25
|
-
label: 'Subject',
|
26
|
-
name: 'Subject',
|
27
|
-
description: 'A summary description of the case.',
|
28
|
-
fieldType: FieldType.Text,
|
29
|
-
maximumCharacters: 255,
|
30
|
-
readOnly: false,
|
31
|
-
important: true,
|
32
|
-
status: false,
|
33
|
-
},
|
34
|
-
{
|
35
|
-
label: 'Priority',
|
36
|
-
name: 'Priority',
|
37
|
-
description: 'The priority of the case.',
|
38
|
-
fieldType: FieldType.Select,
|
39
|
-
readOnly: false,
|
40
|
-
options: [
|
41
|
-
{
|
42
|
-
label: 'High',
|
43
|
-
value: 'High',
|
44
|
-
priority: TaskPriority.High,
|
45
|
-
},
|
46
|
-
{
|
47
|
-
label: 'Medium',
|
48
|
-
value: 'Medium',
|
49
|
-
priority: TaskPriority.Medium,
|
50
|
-
},
|
51
|
-
{
|
52
|
-
label: 'Low',
|
53
|
-
value: 'Low',
|
54
|
-
priority: TaskPriority.Low,
|
55
|
-
},
|
56
|
-
],
|
57
|
-
important: true,
|
58
|
-
priority: true,
|
59
|
-
},
|
60
|
-
{
|
61
|
-
label: 'Status',
|
62
|
-
name: 'Status',
|
63
|
-
description: 'The status of the case.',
|
64
|
-
fieldType: FieldType.Select,
|
65
|
-
readOnly: false,
|
66
|
-
options: [
|
67
|
-
{
|
68
|
-
label: 'New',
|
69
|
-
value: 'New',
|
70
|
-
status: TaskStatus.NotStarted,
|
71
|
-
},
|
72
|
-
{
|
73
|
-
label: 'Open',
|
74
|
-
value: 'Open',
|
75
|
-
status: TaskStatus.NotStarted,
|
76
|
-
},
|
77
|
-
{
|
78
|
-
label: 'Pending',
|
79
|
-
value: 'Pending',
|
80
|
-
status: TaskStatus.InProgress,
|
81
|
-
},
|
82
|
-
{
|
83
|
-
label: 'Hold',
|
84
|
-
value: 'Hold',
|
85
|
-
status: TaskStatus.Completed,
|
86
|
-
},
|
87
|
-
{
|
88
|
-
label: 'Solved',
|
89
|
-
value: 'Solved',
|
90
|
-
status: TaskStatus.Completed,
|
91
|
-
},
|
92
|
-
{
|
93
|
-
label: 'Closed',
|
94
|
-
value: 'Closed',
|
95
|
-
status: TaskStatus.Completed,
|
96
|
-
},
|
97
|
-
],
|
98
|
-
important: true,
|
99
|
-
status: true,
|
100
|
-
},
|
101
|
-
{
|
102
|
-
label: 'Account',
|
103
|
-
name: 'Account.Name',
|
104
|
-
description: 'Name of the account associated with this case.',
|
105
|
-
tagType: TagType.Organization,
|
106
|
-
fieldType: FieldType.Lookup,
|
107
|
-
readOnly: false,
|
108
|
-
important: true,
|
109
|
-
status: false,
|
110
|
-
},
|
111
|
-
{
|
112
|
-
label: 'Contact Name',
|
113
|
-
name: 'Contact.Name',
|
114
|
-
description: 'Name of the contact associated with this case.',
|
115
|
-
tagType: TagType.Person,
|
116
|
-
tagSubType: 'contact',
|
117
|
-
fieldType: FieldType.Lookup,
|
118
|
-
readOnly: false,
|
119
|
-
important: true,
|
120
|
-
status: false,
|
121
|
-
},
|
122
|
-
{
|
123
|
-
label: 'Owner',
|
124
|
-
name: 'Owner.Name',
|
125
|
-
description:
|
126
|
-
'Name of the User who has been assigned to work on this case.',
|
127
|
-
tagType: TagType.Person,
|
128
|
-
tagSubType: 'user',
|
129
|
-
fieldType: FieldType.Lookup,
|
130
|
-
readOnly: false,
|
131
|
-
important: true,
|
132
|
-
status: false,
|
133
|
-
},
|
134
|
-
{
|
135
|
-
label: 'Description',
|
136
|
-
name: 'Description',
|
137
|
-
description: 'Text description of the case.',
|
138
|
-
fieldType: FieldType.Text,
|
139
|
-
fieldVariation: FieldVariation.Multi,
|
140
|
-
maximumCharacters: 32000,
|
141
|
-
readOnly: false,
|
142
|
-
important: false,
|
143
|
-
status: false,
|
144
|
-
},
|
145
|
-
],
|
146
|
-
classifiers: [
|
147
|
-
'issue with our product',
|
148
|
-
'problems getting it working',
|
149
|
-
'errors using',
|
150
|
-
'struggling to get it going',
|
151
|
-
],
|
152
|
-
threshold: 0.24,
|
153
|
-
};
|
package/metadata/tables/issue.ts
DELETED
@@ -1,164 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
FieldType,
|
3
|
-
FieldVariation,
|
4
|
-
TableMetadata,
|
5
|
-
TagType,
|
6
|
-
TaskPriority,
|
7
|
-
TaskStatus,
|
8
|
-
} from '../../model';
|
9
|
-
|
10
|
-
export const Issue: TableMetadata = {
|
11
|
-
_id: '',
|
12
|
-
dateCreated: 0,
|
13
|
-
dateUpdated: 0,
|
14
|
-
label: 'Issue',
|
15
|
-
description:
|
16
|
-
'Represents an issue or feature enhancement, which is a request to improve a product or service.',
|
17
|
-
metadataType: 'issue',
|
18
|
-
tasky: true,
|
19
|
-
references: [
|
20
|
-
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
|
21
|
-
'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
|
22
|
-
],
|
23
|
-
fields: [
|
24
|
-
{
|
25
|
-
label: 'Subject',
|
26
|
-
name: 'Subject',
|
27
|
-
description: 'A summary description of the issue.',
|
28
|
-
fieldType: FieldType.Text,
|
29
|
-
maximumCharacters: 255,
|
30
|
-
readOnly: false,
|
31
|
-
important: true,
|
32
|
-
status: false,
|
33
|
-
},
|
34
|
-
{
|
35
|
-
label: 'Priority',
|
36
|
-
name: 'Priority',
|
37
|
-
description: 'The priority of the issue.',
|
38
|
-
fieldType: FieldType.Select,
|
39
|
-
readOnly: false,
|
40
|
-
options: [
|
41
|
-
{
|
42
|
-
label: 'High',
|
43
|
-
value: 'High',
|
44
|
-
priority: TaskPriority.High,
|
45
|
-
},
|
46
|
-
{
|
47
|
-
label: 'Medium',
|
48
|
-
value: 'Medium',
|
49
|
-
priority: TaskPriority.Medium,
|
50
|
-
},
|
51
|
-
{
|
52
|
-
label: 'Low',
|
53
|
-
value: 'Low',
|
54
|
-
priority: TaskPriority.Low,
|
55
|
-
},
|
56
|
-
],
|
57
|
-
important: true,
|
58
|
-
status: false,
|
59
|
-
},
|
60
|
-
{
|
61
|
-
label: 'Status',
|
62
|
-
name: 'Status',
|
63
|
-
description: 'The status of the issue.',
|
64
|
-
fieldType: FieldType.Select,
|
65
|
-
readOnly: false,
|
66
|
-
options: [
|
67
|
-
{
|
68
|
-
label: 'New',
|
69
|
-
value: 'New',
|
70
|
-
status: TaskStatus.NotStarted,
|
71
|
-
},
|
72
|
-
{
|
73
|
-
label: 'Open',
|
74
|
-
value: 'Open',
|
75
|
-
status: TaskStatus.NotStarted,
|
76
|
-
},
|
77
|
-
{
|
78
|
-
label: 'Pending',
|
79
|
-
value: 'Pending',
|
80
|
-
status: TaskStatus.InProgress,
|
81
|
-
},
|
82
|
-
{
|
83
|
-
label: 'Hold',
|
84
|
-
value: 'Hold',
|
85
|
-
status: TaskStatus.Completed,
|
86
|
-
},
|
87
|
-
{
|
88
|
-
label: 'Solved',
|
89
|
-
value: 'Solved',
|
90
|
-
status: TaskStatus.Completed,
|
91
|
-
},
|
92
|
-
{
|
93
|
-
label: 'Closed',
|
94
|
-
value: 'Closed',
|
95
|
-
status: TaskStatus.Completed,
|
96
|
-
},
|
97
|
-
],
|
98
|
-
important: true,
|
99
|
-
status: true,
|
100
|
-
},
|
101
|
-
{
|
102
|
-
label: 'Due Date',
|
103
|
-
name: 'DueDate',
|
104
|
-
description: 'Date when the issue is expected to be completed.',
|
105
|
-
tagType: TagType.Date,
|
106
|
-
fieldType: FieldType.Text,
|
107
|
-
fieldVariation: FieldVariation.Date,
|
108
|
-
readOnly: false,
|
109
|
-
important: true,
|
110
|
-
status: false,
|
111
|
-
},
|
112
|
-
{
|
113
|
-
label: 'Account',
|
114
|
-
name: 'Account.Name',
|
115
|
-
description: 'Name of the account associated with this issue.',
|
116
|
-
tagType: TagType.Organization,
|
117
|
-
fieldType: FieldType.Lookup,
|
118
|
-
readOnly: false,
|
119
|
-
important: true,
|
120
|
-
status: false,
|
121
|
-
},
|
122
|
-
{
|
123
|
-
label: 'Contact Name',
|
124
|
-
name: 'Contact.Name',
|
125
|
-
description: 'Name of the contact associated with this issue.',
|
126
|
-
tagType: TagType.Person,
|
127
|
-
tagSubType: 'contact',
|
128
|
-
fieldType: FieldType.Lookup,
|
129
|
-
readOnly: false,
|
130
|
-
important: true,
|
131
|
-
status: false,
|
132
|
-
},
|
133
|
-
{
|
134
|
-
label: 'Owner',
|
135
|
-
name: 'Owner.Name',
|
136
|
-
description:
|
137
|
-
'Name of the User who has been assigned to work on this issue.',
|
138
|
-
tagType: TagType.Person,
|
139
|
-
tagSubType: 'user',
|
140
|
-
fieldType: FieldType.Lookup,
|
141
|
-
readOnly: false,
|
142
|
-
important: true,
|
143
|
-
status: false,
|
144
|
-
},
|
145
|
-
{
|
146
|
-
label: 'Description',
|
147
|
-
name: 'Description',
|
148
|
-
description: 'Text description of the issue.',
|
149
|
-
fieldType: FieldType.Text,
|
150
|
-
fieldVariation: FieldVariation.Multi,
|
151
|
-
maximumCharacters: 32000,
|
152
|
-
readOnly: false,
|
153
|
-
important: false,
|
154
|
-
status: false,
|
155
|
-
},
|
156
|
-
],
|
157
|
-
classifiers: [
|
158
|
-
'product improvement',
|
159
|
-
'new feature',
|
160
|
-
'product enhancement',
|
161
|
-
'new capability',
|
162
|
-
],
|
163
|
-
threshold: 0.24,
|
164
|
-
};
|
@@ -1,166 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
FieldType,
|
3
|
-
FieldVariation,
|
4
|
-
TableMetadata,
|
5
|
-
TagType,
|
6
|
-
TaskStatus,
|
7
|
-
} from '../../model';
|
8
|
-
|
9
|
-
export const Opportunity: TableMetadata = {
|
10
|
-
_id: '',
|
11
|
-
dateCreated: 0,
|
12
|
-
dateUpdated: 0,
|
13
|
-
label: 'Opportunity',
|
14
|
-
description: 'Represents an opportunity, which is a sale or pending deal.',
|
15
|
-
metadataType: 'opportunity',
|
16
|
-
tasky: true,
|
17
|
-
references: [
|
18
|
-
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_opportunity.htm',
|
19
|
-
],
|
20
|
-
fields: [
|
21
|
-
{
|
22
|
-
label: 'Name',
|
23
|
-
name: 'Name',
|
24
|
-
description: 'A name for this opportunity.',
|
25
|
-
fieldType: FieldType.Text,
|
26
|
-
maximumCharacters: 120,
|
27
|
-
readOnly: false,
|
28
|
-
important: true,
|
29
|
-
status: false,
|
30
|
-
},
|
31
|
-
{
|
32
|
-
label: 'Account',
|
33
|
-
name: 'Account.Name',
|
34
|
-
description:
|
35
|
-
'Name of the account associated with this opportunity.',
|
36
|
-
tagType: TagType.Organization,
|
37
|
-
fieldType: FieldType.Lookup,
|
38
|
-
readOnly: false,
|
39
|
-
important: true,
|
40
|
-
status: false,
|
41
|
-
},
|
42
|
-
{
|
43
|
-
label: 'Amount',
|
44
|
-
name: 'Amount',
|
45
|
-
description: 'Estimated total sale amount.',
|
46
|
-
fieldType: FieldType.Text,
|
47
|
-
fieldVariation: FieldVariation.Currency,
|
48
|
-
readOnly: false,
|
49
|
-
important: true,
|
50
|
-
status: false,
|
51
|
-
},
|
52
|
-
{
|
53
|
-
label: 'Close Date',
|
54
|
-
name: 'CloseDate',
|
55
|
-
description: 'Date when the opportunity is expected to close.',
|
56
|
-
tagType: TagType.Date,
|
57
|
-
fieldType: FieldType.Text,
|
58
|
-
fieldVariation: FieldVariation.Date,
|
59
|
-
readOnly: false,
|
60
|
-
important: true,
|
61
|
-
status: false,
|
62
|
-
},
|
63
|
-
{
|
64
|
-
label: 'Stage',
|
65
|
-
name: 'StageName',
|
66
|
-
description: 'Current stage of this opportunity.',
|
67
|
-
fieldType: FieldType.Select,
|
68
|
-
readOnly: false,
|
69
|
-
options: [
|
70
|
-
{
|
71
|
-
label: 'Prospecting',
|
72
|
-
value: 'Prospecting',
|
73
|
-
status: TaskStatus.NotStarted,
|
74
|
-
},
|
75
|
-
{
|
76
|
-
label: 'Qualification',
|
77
|
-
value: 'Qualification',
|
78
|
-
status: TaskStatus.InProgress,
|
79
|
-
},
|
80
|
-
{
|
81
|
-
label: 'Needs Analysis',
|
82
|
-
value: 'Needs Analysis',
|
83
|
-
status: TaskStatus.InProgress,
|
84
|
-
},
|
85
|
-
{
|
86
|
-
label: 'Value Proposition',
|
87
|
-
value: 'Value Proposition',
|
88
|
-
status: TaskStatus.InProgress,
|
89
|
-
},
|
90
|
-
{
|
91
|
-
label: 'Id. Decision Makers',
|
92
|
-
value: 'Id. Decision Makers',
|
93
|
-
status: TaskStatus.InProgress,
|
94
|
-
},
|
95
|
-
{
|
96
|
-
label: 'Perception Analysis',
|
97
|
-
value: 'Perception Analysis',
|
98
|
-
status: TaskStatus.InProgress,
|
99
|
-
},
|
100
|
-
{
|
101
|
-
label: 'Proposal/Price Quote',
|
102
|
-
value: 'Proposal/Price Quote',
|
103
|
-
status: TaskStatus.InProgress,
|
104
|
-
},
|
105
|
-
{
|
106
|
-
label: 'Negotiation/Review',
|
107
|
-
value: 'Negotiation/Review',
|
108
|
-
status: TaskStatus.InProgress,
|
109
|
-
},
|
110
|
-
{
|
111
|
-
label: 'Closed Won',
|
112
|
-
value: 'Closed Won',
|
113
|
-
status: TaskStatus.Completed,
|
114
|
-
},
|
115
|
-
{
|
116
|
-
label: 'Closed Lost',
|
117
|
-
value: 'Closed Lost',
|
118
|
-
status: TaskStatus.Completed,
|
119
|
-
},
|
120
|
-
],
|
121
|
-
important: true,
|
122
|
-
status: true,
|
123
|
-
},
|
124
|
-
{
|
125
|
-
label: 'Owner',
|
126
|
-
name: 'Owner.Name',
|
127
|
-
description:
|
128
|
-
'Name of the User who has been assigned to work on this opportunity.',
|
129
|
-
tagType: TagType.Person,
|
130
|
-
tagSubType: 'user',
|
131
|
-
fieldType: FieldType.Lookup,
|
132
|
-
readOnly: false,
|
133
|
-
important: true,
|
134
|
-
status: false,
|
135
|
-
},
|
136
|
-
{
|
137
|
-
label: 'Next Step',
|
138
|
-
name: 'NextStep',
|
139
|
-
description:
|
140
|
-
'A short description of next task in closing opportunity.',
|
141
|
-
fieldType: FieldType.Text,
|
142
|
-
maximumCharacters: 250,
|
143
|
-
readOnly: false,
|
144
|
-
important: true,
|
145
|
-
status: false,
|
146
|
-
},
|
147
|
-
{
|
148
|
-
label: 'Description',
|
149
|
-
name: 'Description',
|
150
|
-
description: 'Text description of the opportunity.',
|
151
|
-
fieldType: FieldType.Text,
|
152
|
-
fieldVariation: FieldVariation.Multi,
|
153
|
-
maximumCharacters: 32000,
|
154
|
-
readOnly: false,
|
155
|
-
important: false,
|
156
|
-
status: false,
|
157
|
-
},
|
158
|
-
],
|
159
|
-
classifiers: [
|
160
|
-
'interested in purchasing',
|
161
|
-
'new opportunity',
|
162
|
-
'interested in moving forward',
|
163
|
-
'followup with sales',
|
164
|
-
],
|
165
|
-
threshold: 0.24,
|
166
|
-
};
|