@bigfootai/bigfoot-types 4.4.7 → 4.4.9
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/metadata/case.js +123 -0
- package/metadata/case.ts +134 -0
- package/metadata/opportunity.js +126 -0
- package/metadata/opportunity.ts +139 -0
- package/model.js +27 -23
- package/model.ts +39 -49
- package/package.json +1 -1
package/metadata/case.js
ADDED
@@ -0,0 +1,123 @@
|
|
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
ADDED
@@ -0,0 +1,134 @@
|
|
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
|
+
};
|
@@ -0,0 +1,126 @@
|
|
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;
|
@@ -0,0 +1,139 @@
|
|
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
|
+
};
|
package/model.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.Calendar = exports.CalendarQL = exports.Event = exports.EventQL = exports.PersonAcceptanceQL = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.ConferenceQL = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.TaskFields = exports.Note = exports.NoteQL = exports.
|
5
|
-
exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.Table = exports.TableQL = exports.Record = exports.RecordQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Document = exports.DocumentQL = exports.Thread =
|
6
|
-
exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL =
|
3
|
+
exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.DateEntityEntryQL = exports.EntityEntryQL = exports.EntityEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.DocumentSentimentQL = exports.TaskStepQL = exports.TaskStepInputQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.SharingTenantQL = exports.SharingDomainQL = exports.SharingTagQL = exports.SharingTagInputQL = exports.EditorQL = exports.EditorInputQL = exports.HighlightQL = exports.RelationType = exports.EntityType = exports.RecordType = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.TagRecommendationVariation = exports.TagRecommendationType = exports.InviteStatus = exports.OrderByDirection = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
|
4
|
+
exports.Todo = exports.Calendar = exports.CalendarQL = exports.Event = exports.EventQL = exports.PersonAcceptanceQL = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.ConferenceQL = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.History = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = exports.Domain = exports.Tenant = exports.TenantQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Metadata = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFields = void 0;
|
5
|
+
exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.Table = exports.TableQL = exports.Record = exports.RecordQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Document = exports.DocumentQL = exports.Thread = void 0;
|
6
|
+
exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = void 0;
|
7
7
|
const uuid_1 = require("uuid");
|
8
8
|
/*
|
9
9
|
These are the core primitives of our model. These represent the entities that show
|
@@ -142,7 +142,13 @@ var ProcessingStage;
|
|
142
142
|
ProcessingStage["NoCredential"] = "no_credential";
|
143
143
|
ProcessingStage["Failed"] = "failed";
|
144
144
|
ProcessingStage["Waiting"] = "waiting";
|
145
|
+
ProcessingStage["Stopped"] = "stopped";
|
145
146
|
})(ProcessingStage || (exports.ProcessingStage = ProcessingStage = {}));
|
147
|
+
var RecordType;
|
148
|
+
(function (RecordType) {
|
149
|
+
RecordType["Opportunity"] = "opportunity";
|
150
|
+
RecordType["Case"] = "case";
|
151
|
+
})(RecordType || (exports.RecordType = RecordType = {}));
|
146
152
|
// Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types-version-2
|
147
153
|
var EntityType;
|
148
154
|
(function (EntityType) {
|
@@ -403,13 +409,11 @@ class SharedPrimitive extends Primitive {
|
|
403
409
|
exports.SharedPrimitive = SharedPrimitive;
|
404
410
|
exports.MetadataFields = `${exports.PrimitiveFields}
|
405
411
|
label: String!
|
406
|
-
name: String!
|
407
412
|
description: String!
|
408
413
|
references: [String]`;
|
409
414
|
class Metadata extends Primitive {
|
410
|
-
constructor(
|
415
|
+
constructor(label, description) {
|
411
416
|
super();
|
412
|
-
this.name = name;
|
413
417
|
this.label = label;
|
414
418
|
this.description = description;
|
415
419
|
}
|
@@ -437,12 +441,16 @@ exports.Search = Search;
|
|
437
441
|
exports.SyncQL = `
|
438
442
|
type Sync {${exports.PrimitiveFields}
|
439
443
|
providerRequest: ProviderRequest!
|
444
|
+
enabled: Boolean!
|
445
|
+
processingStage: String
|
446
|
+
processingReason: String
|
440
447
|
}`;
|
441
448
|
class Sync extends Primitive {
|
442
449
|
constructor(tenantIdCreated, providerRequest) {
|
443
450
|
super();
|
444
451
|
this.tenantIdCreated = tenantIdCreated;
|
445
452
|
this.providerRequest = providerRequest;
|
453
|
+
this.enabled = true;
|
446
454
|
}
|
447
455
|
}
|
448
456
|
exports.Sync = Sync;
|
@@ -664,14 +672,6 @@ class BusinessObject extends Block {
|
|
664
672
|
}
|
665
673
|
}
|
666
674
|
exports.BusinessObject = BusinessObject;
|
667
|
-
exports.MetadataBusinessObjectFields = `${exports.BusinessObjectFields}
|
668
|
-
metadataId: String`;
|
669
|
-
class MetadataBusinessObject extends BusinessObject {
|
670
|
-
constructor(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId) {
|
671
|
-
super(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId);
|
672
|
-
}
|
673
|
-
}
|
674
|
-
exports.MetadataBusinessObject = MetadataBusinessObject;
|
675
675
|
exports.NoteQL = `
|
676
676
|
type Note {${exports.BlockFields}
|
677
677
|
}`;
|
@@ -872,16 +872,16 @@ type DocumentMetadata {${exports.MetadataFields}
|
|
872
872
|
}`;
|
873
873
|
class DocumentMetadata extends Metadata {
|
874
874
|
constructor(name, label, description, contentBlocks) {
|
875
|
-
super(
|
875
|
+
super(label, description);
|
876
876
|
this.contentBlocks = contentBlocks;
|
877
877
|
}
|
878
878
|
}
|
879
879
|
exports.DocumentMetadata = DocumentMetadata;
|
880
880
|
exports.TemplateQL = `
|
881
|
-
type Template {${exports.
|
881
|
+
type Template {${exports.BusinessObjectFields}
|
882
882
|
metadata: DocumentMetadata
|
883
883
|
}`;
|
884
|
-
class Template extends
|
884
|
+
class Template extends BusinessObject {
|
885
885
|
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
|
886
886
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Template, provider, application, uri, externalId);
|
887
887
|
}
|
@@ -933,11 +933,13 @@ type FieldValue {
|
|
933
933
|
exports.TableMetadataQL = `
|
934
934
|
type TableMetadata {${exports.MetadataFields}
|
935
935
|
fields: [Field]!
|
936
|
+
recordType: String!
|
936
937
|
}`;
|
937
938
|
class TableMetadata extends Metadata {
|
938
|
-
constructor(
|
939
|
-
super(
|
939
|
+
constructor(label, description, fields, recordType) {
|
940
|
+
super(label, description);
|
940
941
|
this.fields = fields;
|
942
|
+
this.recordType = recordType;
|
941
943
|
}
|
942
944
|
}
|
943
945
|
exports.TableMetadata = TableMetadata;
|
@@ -949,17 +951,19 @@ class Record extends BusinessObject {
|
|
949
951
|
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, values) {
|
950
952
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Record, provider, application, uri, externalId);
|
951
953
|
this.values = values;
|
954
|
+
this.enabled = true;
|
952
955
|
}
|
953
956
|
}
|
954
957
|
exports.Record = Record;
|
955
958
|
exports.TableQL = `
|
956
|
-
type Table {${exports.
|
959
|
+
type Table {${exports.BusinessObjectFields}
|
957
960
|
records: [Record]
|
958
961
|
metadata: TableMetadata
|
959
962
|
}`;
|
960
|
-
class Table extends
|
961
|
-
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
|
963
|
+
class Table extends BusinessObject {
|
964
|
+
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, metadata) {
|
962
965
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Table, provider, application, uri, externalId);
|
966
|
+
this.metadata = metadata;
|
963
967
|
}
|
964
968
|
}
|
965
969
|
exports.Table = Table;
|
package/model.ts
CHANGED
@@ -136,6 +136,12 @@ export enum ProcessingStage {
|
|
136
136
|
NoCredential = 'no_credential',
|
137
137
|
Failed = 'failed',
|
138
138
|
Waiting = 'waiting',
|
139
|
+
Stopped = 'stopped',
|
140
|
+
}
|
141
|
+
|
142
|
+
export enum RecordType {
|
143
|
+
Opportunity = 'opportunity',
|
144
|
+
Case = 'case',
|
139
145
|
}
|
140
146
|
|
141
147
|
// Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types-version-2
|
@@ -585,19 +591,16 @@ export class SharedPrimitive extends Primitive {
|
|
585
591
|
|
586
592
|
export const MetadataFields = `${PrimitiveFields}
|
587
593
|
label: String!
|
588
|
-
name: String!
|
589
594
|
description: String!
|
590
595
|
references: [String]`;
|
591
596
|
export class Metadata extends Primitive {
|
592
|
-
name: string;
|
593
597
|
label: string;
|
594
598
|
description: string;
|
595
599
|
references?: string[];
|
596
600
|
|
597
|
-
constructor(
|
601
|
+
constructor(label: string, description: string) {
|
598
602
|
super();
|
599
603
|
|
600
|
-
this.name = name;
|
601
604
|
this.label = label;
|
602
605
|
this.description = description;
|
603
606
|
}
|
@@ -636,15 +639,22 @@ export class Search extends SharedPrimitive {
|
|
636
639
|
export const SyncQL = `
|
637
640
|
type Sync {${PrimitiveFields}
|
638
641
|
providerRequest: ProviderRequest!
|
642
|
+
enabled: Boolean!
|
643
|
+
processingStage: String
|
644
|
+
processingReason: String
|
639
645
|
}`;
|
640
646
|
export class Sync extends Primitive {
|
641
647
|
providerRequest: ProviderRequest;
|
648
|
+
enabled: boolean;
|
649
|
+
processingStage?: ProcessingStage;
|
650
|
+
processingReason?: string;
|
642
651
|
|
643
652
|
constructor(tenantIdCreated: string, providerRequest: ProviderRequest) {
|
644
653
|
super();
|
645
654
|
|
646
655
|
this.tenantIdCreated = tenantIdCreated;
|
647
656
|
this.providerRequest = providerRequest;
|
657
|
+
this.enabled = true;
|
648
658
|
}
|
649
659
|
}
|
650
660
|
|
@@ -1050,36 +1060,6 @@ export class BusinessObject extends Block {
|
|
1050
1060
|
}
|
1051
1061
|
}
|
1052
1062
|
|
1053
|
-
export const MetadataBusinessObjectFields = `${BusinessObjectFields}
|
1054
|
-
metadataId: String`;
|
1055
|
-
export class MetadataBusinessObject extends BusinessObject {
|
1056
|
-
metadataId?: string;
|
1057
|
-
|
1058
|
-
constructor(
|
1059
|
-
tenantIdCreated: string,
|
1060
|
-
editors: Editor[],
|
1061
|
-
sharingTags: SharingTag[],
|
1062
|
-
version: number,
|
1063
|
-
blockType: BlockType,
|
1064
|
-
provider: string,
|
1065
|
-
application: string,
|
1066
|
-
uri: string,
|
1067
|
-
externalId: string
|
1068
|
-
) {
|
1069
|
-
super(
|
1070
|
-
tenantIdCreated,
|
1071
|
-
editors,
|
1072
|
-
sharingTags,
|
1073
|
-
version,
|
1074
|
-
blockType,
|
1075
|
-
provider,
|
1076
|
-
application,
|
1077
|
-
uri,
|
1078
|
-
externalId
|
1079
|
-
);
|
1080
|
-
}
|
1081
|
-
}
|
1082
|
-
|
1083
1063
|
export const NoteQL = `
|
1084
1064
|
type Note {${BlockFields}
|
1085
1065
|
}`;
|
@@ -1271,22 +1251,22 @@ export interface CalendarFilter {
|
|
1271
1251
|
}
|
1272
1252
|
|
1273
1253
|
export interface SyncCalendarProviderRequest {
|
1274
|
-
|
1254
|
+
calendarFilter: CalendarFilter;
|
1275
1255
|
connectedProvider: ConnectedProvider;
|
1276
1256
|
}
|
1277
1257
|
|
1278
1258
|
export interface RecordTypeFilter {
|
1279
1259
|
recordType: string;
|
1280
|
-
|
1260
|
+
externalIds: string[];
|
1281
1261
|
}
|
1282
1262
|
|
1283
1263
|
export interface RecordFilter {
|
1284
|
-
|
1285
|
-
|
1264
|
+
updateMetadata: boolean;
|
1265
|
+
recordTypeFilters: RecordTypeFilter[];
|
1286
1266
|
}
|
1287
1267
|
|
1288
1268
|
export interface SyncTableProviderRequest {
|
1289
|
-
|
1269
|
+
recordFilter: RecordFilter;
|
1290
1270
|
connectedProvider: ConnectedProvider;
|
1291
1271
|
}
|
1292
1272
|
|
@@ -1570,17 +1550,17 @@ export class DocumentMetadata extends Metadata {
|
|
1570
1550
|
description: string,
|
1571
1551
|
contentBlocks: BlockDescription[]
|
1572
1552
|
) {
|
1573
|
-
super(
|
1553
|
+
super(label, description);
|
1574
1554
|
|
1575
1555
|
this.contentBlocks = contentBlocks;
|
1576
1556
|
}
|
1577
1557
|
}
|
1578
1558
|
|
1579
1559
|
export const TemplateQL = `
|
1580
|
-
type Template {${
|
1560
|
+
type Template {${BusinessObjectFields}
|
1581
1561
|
metadata: DocumentMetadata
|
1582
1562
|
}`;
|
1583
|
-
export class Template extends
|
1563
|
+
export class Template extends BusinessObject {
|
1584
1564
|
metadata?: DocumentMetadata;
|
1585
1565
|
|
1586
1566
|
constructor(
|
@@ -1676,19 +1656,22 @@ export interface FieldValue {
|
|
1676
1656
|
export const TableMetadataQL = `
|
1677
1657
|
type TableMetadata {${MetadataFields}
|
1678
1658
|
fields: [Field]!
|
1659
|
+
recordType: String!
|
1679
1660
|
}`;
|
1680
1661
|
export class TableMetadata extends Metadata {
|
1681
1662
|
fields: Field[];
|
1663
|
+
recordType: string;
|
1682
1664
|
|
1683
1665
|
constructor(
|
1684
|
-
name: string,
|
1685
1666
|
label: string,
|
1686
1667
|
description: string,
|
1687
|
-
fields: Field[]
|
1668
|
+
fields: Field[],
|
1669
|
+
recordType: string
|
1688
1670
|
) {
|
1689
|
-
super(
|
1671
|
+
super(label, description);
|
1690
1672
|
|
1691
1673
|
this.fields = fields;
|
1674
|
+
this.recordType = recordType;
|
1692
1675
|
}
|
1693
1676
|
}
|
1694
1677
|
|
@@ -1698,6 +1681,9 @@ type Record {${BusinessObjectFields}
|
|
1698
1681
|
}`;
|
1699
1682
|
export class Record extends BusinessObject {
|
1700
1683
|
values: FieldValue[];
|
1684
|
+
enabled: boolean;
|
1685
|
+
processingStage?: ProcessingStage;
|
1686
|
+
processingReason?: string;
|
1701
1687
|
|
1702
1688
|
constructor(
|
1703
1689
|
tenantIdCreated: string,
|
@@ -1723,17 +1709,18 @@ export class Record extends BusinessObject {
|
|
1723
1709
|
);
|
1724
1710
|
|
1725
1711
|
this.values = values;
|
1712
|
+
this.enabled = true;
|
1726
1713
|
}
|
1727
1714
|
}
|
1728
1715
|
|
1729
1716
|
export const TableQL = `
|
1730
|
-
type Table {${
|
1717
|
+
type Table {${BusinessObjectFields}
|
1731
1718
|
records: [Record]
|
1732
1719
|
metadata: TableMetadata
|
1733
1720
|
}`;
|
1734
|
-
export class Table extends
|
1721
|
+
export class Table extends BusinessObject {
|
1722
|
+
metadata: TableMetadata;
|
1735
1723
|
records?: Record[];
|
1736
|
-
metadata?: TableMetadata;
|
1737
1724
|
|
1738
1725
|
constructor(
|
1739
1726
|
tenantIdCreated: string,
|
@@ -1743,7 +1730,8 @@ export class Table extends MetadataBusinessObject {
|
|
1743
1730
|
provider: string,
|
1744
1731
|
application: string,
|
1745
1732
|
uri: string,
|
1746
|
-
externalId: string
|
1733
|
+
externalId: string,
|
1734
|
+
metadata: TableMetadata
|
1747
1735
|
) {
|
1748
1736
|
super(
|
1749
1737
|
tenantIdCreated,
|
@@ -1756,6 +1744,8 @@ export class Table extends MetadataBusinessObject {
|
|
1756
1744
|
uri,
|
1757
1745
|
externalId
|
1758
1746
|
);
|
1747
|
+
|
1748
|
+
this.metadata = metadata;
|
1759
1749
|
}
|
1760
1750
|
}
|
1761
1751
|
//// FOR RECORDS END
|