@bigfootai/bigfoot-types 4.4.9 → 4.4.11
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/model.js +2 -0
- package/model.ts +11 -2
- package/package.json +1 -1
- package/metadata/case.js +0 -123
- package/metadata/case.ts +0 -134
- package/metadata/opportunity.js +0 -126
- package/metadata/opportunity.ts +0 -139
package/model.js
CHANGED
@@ -459,6 +459,7 @@ type ProviderApplication {
|
|
459
459
|
name: String!
|
460
460
|
sobjects: StandardObjects!
|
461
461
|
linkSubscriptions: [String]!
|
462
|
+
recordTypeSubscriptions: [String]!
|
462
463
|
}`;
|
463
464
|
exports.ProviderQL = `
|
464
465
|
type Provider {${exports.PrimitiveFields}
|
@@ -467,6 +468,7 @@ type Provider {${exports.PrimitiveFields}
|
|
467
468
|
description: String!
|
468
469
|
instanceUrl: String!
|
469
470
|
applications: [ProviderApplication]!
|
471
|
+
tableMetadata: [TableMetadata]!
|
470
472
|
}`;
|
471
473
|
class Provider extends Primitive {
|
472
474
|
constructor(provider, name, description, instanceUrl, applications) {
|
package/model.ts
CHANGED
@@ -459,6 +459,7 @@ export interface LinkSubscriptionProviderRequest {
|
|
459
459
|
callbackId: string;
|
460
460
|
url: string;
|
461
461
|
connectedProvider: ConnectedProvider;
|
462
|
+
tableMetadata?: TableMetadata[];
|
462
463
|
}
|
463
464
|
|
464
465
|
export const CredentialQL = `
|
@@ -663,11 +664,13 @@ type ProviderApplication {
|
|
663
664
|
name: String!
|
664
665
|
sobjects: StandardObjects!
|
665
666
|
linkSubscriptions: [String]!
|
667
|
+
recordTypeSubscriptions: [String]!
|
666
668
|
}`;
|
667
669
|
export interface ProviderApplication {
|
668
670
|
name: string;
|
669
671
|
sobjects: StandardObjects;
|
670
672
|
linkSubscriptions: string[];
|
673
|
+
recordTypeSubscriptions: string[];
|
671
674
|
}
|
672
675
|
|
673
676
|
export const ProviderQL = `
|
@@ -677,6 +680,7 @@ type Provider {${PrimitiveFields}
|
|
677
680
|
description: String!
|
678
681
|
instanceUrl: String!
|
679
682
|
applications: [ProviderApplication]!
|
683
|
+
tableMetadata: [TableMetadata]!
|
680
684
|
}`;
|
681
685
|
export class Provider extends Primitive {
|
682
686
|
provider: string;
|
@@ -684,6 +688,7 @@ export class Provider extends Primitive {
|
|
684
688
|
description: string;
|
685
689
|
instanceUrl: string;
|
686
690
|
applications: ProviderApplication[];
|
691
|
+
tableMetadata: TableMetadata[];
|
687
692
|
|
688
693
|
constructor(
|
689
694
|
provider: string,
|
@@ -1256,12 +1261,11 @@ export interface SyncCalendarProviderRequest {
|
|
1256
1261
|
}
|
1257
1262
|
|
1258
1263
|
export interface RecordTypeFilter {
|
1259
|
-
|
1264
|
+
tableMetadata: TableMetadata;
|
1260
1265
|
externalIds: string[];
|
1261
1266
|
}
|
1262
1267
|
|
1263
1268
|
export interface RecordFilter {
|
1264
|
-
updateMetadata: boolean;
|
1265
1269
|
recordTypeFilters: RecordTypeFilter[];
|
1266
1270
|
}
|
1267
1271
|
|
@@ -1270,6 +1274,11 @@ export interface SyncTableProviderRequest {
|
|
1270
1274
|
connectedProvider: ConnectedProvider;
|
1271
1275
|
}
|
1272
1276
|
|
1277
|
+
export interface SyncTableMetadataProviderRequest {
|
1278
|
+
tableMetadata: TableMetadata[];
|
1279
|
+
connectedProvider: ConnectedProvider;
|
1280
|
+
}
|
1281
|
+
|
1273
1282
|
export const EventQL = `
|
1274
1283
|
type Event {${BusinessObjectFields}
|
1275
1284
|
calendarId: String!
|
package/package.json
CHANGED
package/metadata/case.js
DELETED
@@ -1,123 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getCaseMetadata = void 0;
|
4
|
-
const model_1 = require("../model");
|
5
|
-
const getCaseMetadata = () => {
|
6
|
-
const fields = [
|
7
|
-
{
|
8
|
-
label: 'Summary',
|
9
|
-
name: 'Summary',
|
10
|
-
description: 'A summary description of the issue.',
|
11
|
-
monitor: true,
|
12
|
-
fieldType: model_1.FieldType.Text,
|
13
|
-
maximumCharacters: 255,
|
14
|
-
readOnly: false,
|
15
|
-
},
|
16
|
-
{
|
17
|
-
label: 'Priority',
|
18
|
-
name: 'Priority',
|
19
|
-
description: 'The priority of the issue.',
|
20
|
-
monitor: true,
|
21
|
-
fieldType: model_1.FieldType.Select,
|
22
|
-
readOnly: false,
|
23
|
-
options: [
|
24
|
-
{
|
25
|
-
label: 'High',
|
26
|
-
value: 'High',
|
27
|
-
},
|
28
|
-
{
|
29
|
-
label: 'Medium',
|
30
|
-
value: 'Medium',
|
31
|
-
},
|
32
|
-
{
|
33
|
-
label: 'Low',
|
34
|
-
value: 'Low',
|
35
|
-
},
|
36
|
-
],
|
37
|
-
},
|
38
|
-
{
|
39
|
-
label: 'Status',
|
40
|
-
name: 'Status',
|
41
|
-
description: 'The status of the issue.',
|
42
|
-
monitor: true,
|
43
|
-
fieldType: model_1.FieldType.Select,
|
44
|
-
readOnly: false,
|
45
|
-
options: [
|
46
|
-
{
|
47
|
-
label: 'New',
|
48
|
-
value: 'New',
|
49
|
-
},
|
50
|
-
{
|
51
|
-
label: 'Open',
|
52
|
-
value: 'Open',
|
53
|
-
},
|
54
|
-
{
|
55
|
-
label: 'Pending',
|
56
|
-
value: 'Pending',
|
57
|
-
},
|
58
|
-
{
|
59
|
-
label: 'Hold',
|
60
|
-
value: 'Hold',
|
61
|
-
},
|
62
|
-
{
|
63
|
-
label: 'Solved',
|
64
|
-
value: 'Solved',
|
65
|
-
},
|
66
|
-
{
|
67
|
-
label: 'Closed',
|
68
|
-
value: 'Closed',
|
69
|
-
},
|
70
|
-
],
|
71
|
-
},
|
72
|
-
{
|
73
|
-
label: 'Account',
|
74
|
-
name: 'Account.Name',
|
75
|
-
description: 'Name of the account associated with this issue.',
|
76
|
-
monitor: true,
|
77
|
-
fieldType: model_1.FieldType.Text,
|
78
|
-
readOnly: false,
|
79
|
-
},
|
80
|
-
{
|
81
|
-
label: 'Contact Name',
|
82
|
-
name: 'Contact.Name',
|
83
|
-
description: 'Name of the contact associated with this issue.',
|
84
|
-
monitor: true,
|
85
|
-
fieldType: model_1.FieldType.Text,
|
86
|
-
readOnly: false,
|
87
|
-
},
|
88
|
-
{
|
89
|
-
label: 'Due Date',
|
90
|
-
name: 'DueDate',
|
91
|
-
description: 'Date and time when the issue is due to be completed.',
|
92
|
-
monitor: true,
|
93
|
-
fieldType: model_1.FieldType.Text,
|
94
|
-
fieldVariation: model_1.FieldVariation.DateTime,
|
95
|
-
readOnly: false,
|
96
|
-
},
|
97
|
-
{
|
98
|
-
label: 'Owner',
|
99
|
-
name: 'Owner.Name',
|
100
|
-
description: 'Name of the User who has been assigned to work on this issue.',
|
101
|
-
monitor: true,
|
102
|
-
fieldType: model_1.FieldType.Text,
|
103
|
-
readOnly: false,
|
104
|
-
},
|
105
|
-
{
|
106
|
-
label: 'Description',
|
107
|
-
name: 'Description',
|
108
|
-
description: 'Text description of the issue.',
|
109
|
-
monitor: false,
|
110
|
-
fieldType: model_1.FieldType.Text,
|
111
|
-
fieldVariation: model_1.FieldVariation.Multi,
|
112
|
-
maximumCharacters: 32000,
|
113
|
-
readOnly: false,
|
114
|
-
},
|
115
|
-
];
|
116
|
-
const caseMetadata = new model_1.TableMetadata('Case', 'Represents an case/ticket, which is a problem that needs to be resolved.', fields, model_1.RecordType.Case);
|
117
|
-
caseMetadata.references = [
|
118
|
-
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
|
119
|
-
'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
|
120
|
-
];
|
121
|
-
return caseMetadata;
|
122
|
-
};
|
123
|
-
exports.getCaseMetadata = getCaseMetadata;
|
package/metadata/case.ts
DELETED
@@ -1,134 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
Field,
|
3
|
-
FieldType,
|
4
|
-
FieldVariation,
|
5
|
-
RecordType,
|
6
|
-
TableMetadata,
|
7
|
-
} from '../model';
|
8
|
-
|
9
|
-
export const getCaseMetadata = (): TableMetadata => {
|
10
|
-
const fields: Field[] = [
|
11
|
-
{
|
12
|
-
label: 'Summary',
|
13
|
-
name: 'Summary',
|
14
|
-
description: 'A summary description of the issue.',
|
15
|
-
monitor: true,
|
16
|
-
fieldType: FieldType.Text,
|
17
|
-
maximumCharacters: 255,
|
18
|
-
readOnly: false,
|
19
|
-
},
|
20
|
-
{
|
21
|
-
label: 'Priority',
|
22
|
-
name: 'Priority',
|
23
|
-
description: 'The priority of the issue.',
|
24
|
-
monitor: true,
|
25
|
-
fieldType: FieldType.Select,
|
26
|
-
readOnly: false,
|
27
|
-
options: [
|
28
|
-
{
|
29
|
-
label: 'High',
|
30
|
-
value: 'High',
|
31
|
-
},
|
32
|
-
{
|
33
|
-
label: 'Medium',
|
34
|
-
value: 'Medium',
|
35
|
-
},
|
36
|
-
{
|
37
|
-
label: 'Low',
|
38
|
-
value: 'Low',
|
39
|
-
},
|
40
|
-
],
|
41
|
-
},
|
42
|
-
{
|
43
|
-
label: 'Status',
|
44
|
-
name: 'Status',
|
45
|
-
description: 'The status of the issue.',
|
46
|
-
monitor: true,
|
47
|
-
fieldType: FieldType.Select,
|
48
|
-
readOnly: false,
|
49
|
-
options: [
|
50
|
-
{
|
51
|
-
label: 'New',
|
52
|
-
value: 'New',
|
53
|
-
},
|
54
|
-
{
|
55
|
-
label: 'Open',
|
56
|
-
value: 'Open',
|
57
|
-
},
|
58
|
-
{
|
59
|
-
label: 'Pending',
|
60
|
-
value: 'Pending',
|
61
|
-
},
|
62
|
-
{
|
63
|
-
label: 'Hold',
|
64
|
-
value: 'Hold',
|
65
|
-
},
|
66
|
-
{
|
67
|
-
label: 'Solved',
|
68
|
-
value: 'Solved',
|
69
|
-
},
|
70
|
-
{
|
71
|
-
label: 'Closed',
|
72
|
-
value: 'Closed',
|
73
|
-
},
|
74
|
-
],
|
75
|
-
},
|
76
|
-
{
|
77
|
-
label: 'Account',
|
78
|
-
name: 'Account.Name',
|
79
|
-
description: 'Name of the account associated with this issue.',
|
80
|
-
monitor: true,
|
81
|
-
fieldType: FieldType.Text,
|
82
|
-
readOnly: false,
|
83
|
-
},
|
84
|
-
{
|
85
|
-
label: 'Contact Name',
|
86
|
-
name: 'Contact.Name',
|
87
|
-
description: 'Name of the contact associated with this issue.',
|
88
|
-
monitor: true,
|
89
|
-
fieldType: FieldType.Text,
|
90
|
-
readOnly: false,
|
91
|
-
},
|
92
|
-
{
|
93
|
-
label: 'Due Date',
|
94
|
-
name: 'DueDate',
|
95
|
-
description: 'Date and time when the issue is due to be completed.',
|
96
|
-
monitor: true,
|
97
|
-
fieldType: FieldType.Text,
|
98
|
-
fieldVariation: FieldVariation.DateTime,
|
99
|
-
readOnly: false,
|
100
|
-
},
|
101
|
-
{
|
102
|
-
label: 'Owner',
|
103
|
-
name: 'Owner.Name',
|
104
|
-
description:
|
105
|
-
'Name of the User who has been assigned to work on this issue.',
|
106
|
-
monitor: true,
|
107
|
-
fieldType: FieldType.Text,
|
108
|
-
readOnly: false,
|
109
|
-
},
|
110
|
-
{
|
111
|
-
label: 'Description',
|
112
|
-
name: 'Description',
|
113
|
-
description: 'Text description of the issue.',
|
114
|
-
monitor: false,
|
115
|
-
fieldType: FieldType.Text,
|
116
|
-
fieldVariation: FieldVariation.Multi,
|
117
|
-
maximumCharacters: 32000,
|
118
|
-
readOnly: false,
|
119
|
-
},
|
120
|
-
];
|
121
|
-
|
122
|
-
const caseMetadata: TableMetadata = new TableMetadata(
|
123
|
-
'Case',
|
124
|
-
'Represents an case/ticket, which is a problem that needs to be resolved.',
|
125
|
-
fields,
|
126
|
-
RecordType.Case
|
127
|
-
);
|
128
|
-
caseMetadata.references = [
|
129
|
-
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
|
130
|
-
'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
|
131
|
-
];
|
132
|
-
|
133
|
-
return caseMetadata;
|
134
|
-
};
|
package/metadata/opportunity.js
DELETED
@@ -1,126 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getOpportunityMetadata = void 0;
|
4
|
-
const model_1 = require("../model");
|
5
|
-
const getOpportunityMetadata = () => {
|
6
|
-
const fields = [
|
7
|
-
{
|
8
|
-
label: 'Name',
|
9
|
-
name: 'Name',
|
10
|
-
description: 'A name for this opportunity.',
|
11
|
-
monitor: true,
|
12
|
-
fieldType: model_1.FieldType.Text,
|
13
|
-
maximumCharacters: 120,
|
14
|
-
readOnly: false,
|
15
|
-
},
|
16
|
-
{
|
17
|
-
label: 'Account',
|
18
|
-
name: 'Account.Name',
|
19
|
-
description: 'Name of the account associated with this opportunity.',
|
20
|
-
monitor: true,
|
21
|
-
fieldType: model_1.FieldType.Text,
|
22
|
-
readOnly: false,
|
23
|
-
},
|
24
|
-
{
|
25
|
-
label: 'Amount',
|
26
|
-
name: 'Amount',
|
27
|
-
description: 'Estimated total sale amount.',
|
28
|
-
monitor: true,
|
29
|
-
fieldType: model_1.FieldType.Text,
|
30
|
-
fieldVariation: model_1.FieldVariation.Currency,
|
31
|
-
readOnly: false,
|
32
|
-
},
|
33
|
-
{
|
34
|
-
label: 'Close Date',
|
35
|
-
name: 'CloseDate',
|
36
|
-
description: 'Date when the opportunity is expected to close.',
|
37
|
-
monitor: true,
|
38
|
-
fieldType: model_1.FieldType.Text,
|
39
|
-
fieldVariation: model_1.FieldVariation.Date,
|
40
|
-
readOnly: false,
|
41
|
-
},
|
42
|
-
{
|
43
|
-
label: 'Stage',
|
44
|
-
name: 'StageName',
|
45
|
-
description: 'Current stage of this opportunity.',
|
46
|
-
monitor: true,
|
47
|
-
fieldType: model_1.FieldType.Select,
|
48
|
-
readOnly: false,
|
49
|
-
options: [
|
50
|
-
{
|
51
|
-
label: 'Prospecting',
|
52
|
-
value: 'Prospecting',
|
53
|
-
},
|
54
|
-
{
|
55
|
-
label: 'Qualification',
|
56
|
-
value: 'Qualification',
|
57
|
-
},
|
58
|
-
{
|
59
|
-
label: 'Needs Analysis',
|
60
|
-
value: 'Needs Analysis',
|
61
|
-
},
|
62
|
-
{
|
63
|
-
label: 'Value Proposition',
|
64
|
-
value: 'Value Proposition',
|
65
|
-
},
|
66
|
-
{
|
67
|
-
label: 'Id. Decision Makers',
|
68
|
-
value: 'Id. Decision Makers',
|
69
|
-
},
|
70
|
-
{
|
71
|
-
label: 'Perception Analysis',
|
72
|
-
value: 'Perception Analysis',
|
73
|
-
},
|
74
|
-
{
|
75
|
-
label: 'Proposal/Price Quote',
|
76
|
-
value: 'Proposal/Price Quote',
|
77
|
-
},
|
78
|
-
{
|
79
|
-
label: 'Negotiation/Review',
|
80
|
-
value: 'Negotiation/Review',
|
81
|
-
},
|
82
|
-
{
|
83
|
-
label: 'Closed Won',
|
84
|
-
value: 'Closed Won',
|
85
|
-
},
|
86
|
-
{
|
87
|
-
label: 'Closed Lost',
|
88
|
-
value: 'Closed Lost',
|
89
|
-
},
|
90
|
-
],
|
91
|
-
},
|
92
|
-
{
|
93
|
-
label: 'Owner',
|
94
|
-
name: 'Owner.Name',
|
95
|
-
description: 'Name of the User who has been assigned to work on this opportunity.',
|
96
|
-
monitor: true,
|
97
|
-
fieldType: model_1.FieldType.Text,
|
98
|
-
readOnly: false,
|
99
|
-
},
|
100
|
-
{
|
101
|
-
label: 'Next Step',
|
102
|
-
name: 'NextStep',
|
103
|
-
description: 'A short description of next task in closing opportunity.',
|
104
|
-
monitor: true,
|
105
|
-
fieldType: model_1.FieldType.Text,
|
106
|
-
maximumCharacters: 250,
|
107
|
-
readOnly: false,
|
108
|
-
},
|
109
|
-
{
|
110
|
-
label: 'Description',
|
111
|
-
name: 'Description',
|
112
|
-
description: 'Text description of the opportunity.',
|
113
|
-
monitor: false,
|
114
|
-
fieldType: model_1.FieldType.Text,
|
115
|
-
fieldVariation: model_1.FieldVariation.Multi,
|
116
|
-
maximumCharacters: 32000,
|
117
|
-
readOnly: false,
|
118
|
-
},
|
119
|
-
];
|
120
|
-
const opportunityMetadata = new model_1.TableMetadata('Opportunity', 'Represents an opportunity, which is a sale or pending deal.', fields, model_1.RecordType.Opportunity);
|
121
|
-
opportunityMetadata.references = [
|
122
|
-
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_opportunity.htm',
|
123
|
-
];
|
124
|
-
return opportunityMetadata;
|
125
|
-
};
|
126
|
-
exports.getOpportunityMetadata = getOpportunityMetadata;
|
package/metadata/opportunity.ts
DELETED
@@ -1,139 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
Field,
|
3
|
-
FieldType,
|
4
|
-
FieldVariation,
|
5
|
-
RecordType,
|
6
|
-
TableMetadata,
|
7
|
-
} from '../model';
|
8
|
-
|
9
|
-
export const getOpportunityMetadata = (): TableMetadata => {
|
10
|
-
const fields: Field[] = [
|
11
|
-
{
|
12
|
-
label: 'Name',
|
13
|
-
name: 'Name',
|
14
|
-
description: 'A name for this opportunity.',
|
15
|
-
monitor: true,
|
16
|
-
fieldType: FieldType.Text,
|
17
|
-
maximumCharacters: 120,
|
18
|
-
readOnly: false,
|
19
|
-
},
|
20
|
-
{
|
21
|
-
label: 'Account',
|
22
|
-
name: 'Account.Name',
|
23
|
-
description:
|
24
|
-
'Name of the account associated with this opportunity.',
|
25
|
-
monitor: true,
|
26
|
-
fieldType: FieldType.Text,
|
27
|
-
readOnly: false,
|
28
|
-
},
|
29
|
-
{
|
30
|
-
label: 'Amount',
|
31
|
-
name: 'Amount',
|
32
|
-
description: 'Estimated total sale amount.',
|
33
|
-
monitor: true,
|
34
|
-
fieldType: FieldType.Text,
|
35
|
-
fieldVariation: FieldVariation.Currency,
|
36
|
-
readOnly: false,
|
37
|
-
},
|
38
|
-
{
|
39
|
-
label: 'Close Date',
|
40
|
-
name: 'CloseDate',
|
41
|
-
description: 'Date when the opportunity is expected to close.',
|
42
|
-
monitor: true,
|
43
|
-
fieldType: FieldType.Text,
|
44
|
-
fieldVariation: FieldVariation.Date,
|
45
|
-
readOnly: false,
|
46
|
-
},
|
47
|
-
{
|
48
|
-
label: 'Stage',
|
49
|
-
name: 'StageName',
|
50
|
-
description: 'Current stage of this opportunity.',
|
51
|
-
monitor: true,
|
52
|
-
fieldType: FieldType.Select,
|
53
|
-
readOnly: false,
|
54
|
-
options: [
|
55
|
-
{
|
56
|
-
label: 'Prospecting',
|
57
|
-
value: 'Prospecting',
|
58
|
-
},
|
59
|
-
{
|
60
|
-
label: 'Qualification',
|
61
|
-
value: 'Qualification',
|
62
|
-
},
|
63
|
-
{
|
64
|
-
label: 'Needs Analysis',
|
65
|
-
value: 'Needs Analysis',
|
66
|
-
},
|
67
|
-
{
|
68
|
-
label: 'Value Proposition',
|
69
|
-
value: 'Value Proposition',
|
70
|
-
},
|
71
|
-
{
|
72
|
-
label: 'Id. Decision Makers',
|
73
|
-
value: 'Id. Decision Makers',
|
74
|
-
},
|
75
|
-
{
|
76
|
-
label: 'Perception Analysis',
|
77
|
-
value: 'Perception Analysis',
|
78
|
-
},
|
79
|
-
{
|
80
|
-
label: 'Proposal/Price Quote',
|
81
|
-
value: 'Proposal/Price Quote',
|
82
|
-
},
|
83
|
-
{
|
84
|
-
label: 'Negotiation/Review',
|
85
|
-
value: 'Negotiation/Review',
|
86
|
-
},
|
87
|
-
{
|
88
|
-
label: 'Closed Won',
|
89
|
-
value: 'Closed Won',
|
90
|
-
},
|
91
|
-
{
|
92
|
-
label: 'Closed Lost',
|
93
|
-
value: 'Closed Lost',
|
94
|
-
},
|
95
|
-
],
|
96
|
-
},
|
97
|
-
{
|
98
|
-
label: 'Owner',
|
99
|
-
name: 'Owner.Name',
|
100
|
-
description:
|
101
|
-
'Name of the User who has been assigned to work on this opportunity.',
|
102
|
-
monitor: true,
|
103
|
-
fieldType: FieldType.Text,
|
104
|
-
readOnly: false,
|
105
|
-
},
|
106
|
-
{
|
107
|
-
label: 'Next Step',
|
108
|
-
name: 'NextStep',
|
109
|
-
description:
|
110
|
-
'A short description of next task in closing opportunity.',
|
111
|
-
monitor: true,
|
112
|
-
fieldType: FieldType.Text,
|
113
|
-
maximumCharacters: 250,
|
114
|
-
readOnly: false,
|
115
|
-
},
|
116
|
-
{
|
117
|
-
label: 'Description',
|
118
|
-
name: 'Description',
|
119
|
-
description: 'Text description of the opportunity.',
|
120
|
-
monitor: false,
|
121
|
-
fieldType: FieldType.Text,
|
122
|
-
fieldVariation: FieldVariation.Multi,
|
123
|
-
maximumCharacters: 32000,
|
124
|
-
readOnly: false,
|
125
|
-
},
|
126
|
-
];
|
127
|
-
|
128
|
-
const opportunityMetadata: TableMetadata = new TableMetadata(
|
129
|
-
'Opportunity',
|
130
|
-
'Represents an opportunity, which is a sale or pending deal.',
|
131
|
-
fields,
|
132
|
-
RecordType.Opportunity
|
133
|
-
);
|
134
|
-
opportunityMetadata.references = [
|
135
|
-
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_opportunity.htm',
|
136
|
-
];
|
137
|
-
|
138
|
-
return opportunityMetadata;
|
139
|
-
};
|