@bigfootai/bigfoot-types 4.4.8 → 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.
@@ -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;
@@ -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.SharedPrimitiveFields = 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.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.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.MetadataBusinessObject = exports.MetadataBusinessObjectFields = 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 = void 0;
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 = exports.Todo = void 0;
6
- exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = void 0;
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(name, label, description) {
415
+ constructor(label, description) {
411
416
  super();
412
- this.name = name;
413
417
  this.label = label;
414
418
  this.description = description;
415
419
  }
@@ -668,14 +672,6 @@ class BusinessObject extends Block {
668
672
  }
669
673
  }
670
674
  exports.BusinessObject = BusinessObject;
671
- exports.MetadataBusinessObjectFields = `${exports.BusinessObjectFields}
672
- metadataId: String`;
673
- class MetadataBusinessObject extends BusinessObject {
674
- constructor(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId) {
675
- super(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId);
676
- }
677
- }
678
- exports.MetadataBusinessObject = MetadataBusinessObject;
679
675
  exports.NoteQL = `
680
676
  type Note {${exports.BlockFields}
681
677
  }`;
@@ -876,16 +872,16 @@ type DocumentMetadata {${exports.MetadataFields}
876
872
  }`;
877
873
  class DocumentMetadata extends Metadata {
878
874
  constructor(name, label, description, contentBlocks) {
879
- super(name, label, description);
875
+ super(label, description);
880
876
  this.contentBlocks = contentBlocks;
881
877
  }
882
878
  }
883
879
  exports.DocumentMetadata = DocumentMetadata;
884
880
  exports.TemplateQL = `
885
- type Template {${exports.MetadataBusinessObjectFields}
881
+ type Template {${exports.BusinessObjectFields}
886
882
  metadata: DocumentMetadata
887
883
  }`;
888
- class Template extends MetadataBusinessObject {
884
+ class Template extends BusinessObject {
889
885
  constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
890
886
  super(tenantIdCreated, editors, sharingTags, version, BlockType.Template, provider, application, uri, externalId);
891
887
  }
@@ -937,11 +933,13 @@ type FieldValue {
937
933
  exports.TableMetadataQL = `
938
934
  type TableMetadata {${exports.MetadataFields}
939
935
  fields: [Field]!
936
+ recordType: String!
940
937
  }`;
941
938
  class TableMetadata extends Metadata {
942
- constructor(name, label, description, fields) {
943
- super(name, label, description);
939
+ constructor(label, description, fields, recordType) {
940
+ super(label, description);
944
941
  this.fields = fields;
942
+ this.recordType = recordType;
945
943
  }
946
944
  }
947
945
  exports.TableMetadata = TableMetadata;
@@ -953,17 +951,19 @@ class Record extends BusinessObject {
953
951
  constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, values) {
954
952
  super(tenantIdCreated, editors, sharingTags, version, BlockType.Record, provider, application, uri, externalId);
955
953
  this.values = values;
954
+ this.enabled = true;
956
955
  }
957
956
  }
958
957
  exports.Record = Record;
959
958
  exports.TableQL = `
960
- type Table {${exports.MetadataBusinessObjectFields}
959
+ type Table {${exports.BusinessObjectFields}
961
960
  records: [Record]
962
961
  metadata: TableMetadata
963
962
  }`;
964
- class Table extends MetadataBusinessObject {
965
- 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) {
966
965
  super(tenantIdCreated, editors, sharingTags, version, BlockType.Table, provider, application, uri, externalId);
966
+ this.metadata = metadata;
967
967
  }
968
968
  }
969
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(name: string, label: string, description: string) {
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
  }
@@ -1057,36 +1060,6 @@ export class BusinessObject extends Block {
1057
1060
  }
1058
1061
  }
1059
1062
 
1060
- export const MetadataBusinessObjectFields = `${BusinessObjectFields}
1061
- metadataId: String`;
1062
- export class MetadataBusinessObject extends BusinessObject {
1063
- metadataId?: string;
1064
-
1065
- constructor(
1066
- tenantIdCreated: string,
1067
- editors: Editor[],
1068
- sharingTags: SharingTag[],
1069
- version: number,
1070
- blockType: BlockType,
1071
- provider: string,
1072
- application: string,
1073
- uri: string,
1074
- externalId: string
1075
- ) {
1076
- super(
1077
- tenantIdCreated,
1078
- editors,
1079
- sharingTags,
1080
- version,
1081
- blockType,
1082
- provider,
1083
- application,
1084
- uri,
1085
- externalId
1086
- );
1087
- }
1088
- }
1089
-
1090
1063
  export const NoteQL = `
1091
1064
  type Note {${BlockFields}
1092
1065
  }`;
@@ -1278,22 +1251,22 @@ export interface CalendarFilter {
1278
1251
  }
1279
1252
 
1280
1253
  export interface SyncCalendarProviderRequest {
1281
- filter: CalendarFilter;
1254
+ calendarFilter: CalendarFilter;
1282
1255
  connectedProvider: ConnectedProvider;
1283
1256
  }
1284
1257
 
1285
1258
  export interface RecordTypeFilter {
1286
1259
  recordType: string;
1287
- recordIds: string[];
1260
+ externalIds: string[];
1288
1261
  }
1289
1262
 
1290
1263
  export interface RecordFilter {
1291
- provideMetadata: boolean;
1292
- records: RecordTypeFilter[];
1264
+ updateMetadata: boolean;
1265
+ recordTypeFilters: RecordTypeFilter[];
1293
1266
  }
1294
1267
 
1295
1268
  export interface SyncTableProviderRequest {
1296
- filter: RecordFilter;
1269
+ recordFilter: RecordFilter;
1297
1270
  connectedProvider: ConnectedProvider;
1298
1271
  }
1299
1272
 
@@ -1577,17 +1550,17 @@ export class DocumentMetadata extends Metadata {
1577
1550
  description: string,
1578
1551
  contentBlocks: BlockDescription[]
1579
1552
  ) {
1580
- super(name, label, description);
1553
+ super(label, description);
1581
1554
 
1582
1555
  this.contentBlocks = contentBlocks;
1583
1556
  }
1584
1557
  }
1585
1558
 
1586
1559
  export const TemplateQL = `
1587
- type Template {${MetadataBusinessObjectFields}
1560
+ type Template {${BusinessObjectFields}
1588
1561
  metadata: DocumentMetadata
1589
1562
  }`;
1590
- export class Template extends MetadataBusinessObject {
1563
+ export class Template extends BusinessObject {
1591
1564
  metadata?: DocumentMetadata;
1592
1565
 
1593
1566
  constructor(
@@ -1683,19 +1656,22 @@ export interface FieldValue {
1683
1656
  export const TableMetadataQL = `
1684
1657
  type TableMetadata {${MetadataFields}
1685
1658
  fields: [Field]!
1659
+ recordType: String!
1686
1660
  }`;
1687
1661
  export class TableMetadata extends Metadata {
1688
1662
  fields: Field[];
1663
+ recordType: string;
1689
1664
 
1690
1665
  constructor(
1691
- name: string,
1692
1666
  label: string,
1693
1667
  description: string,
1694
- fields: Field[]
1668
+ fields: Field[],
1669
+ recordType: string
1695
1670
  ) {
1696
- super(name, label, description);
1671
+ super(label, description);
1697
1672
 
1698
1673
  this.fields = fields;
1674
+ this.recordType = recordType;
1699
1675
  }
1700
1676
  }
1701
1677
 
@@ -1705,6 +1681,9 @@ type Record {${BusinessObjectFields}
1705
1681
  }`;
1706
1682
  export class Record extends BusinessObject {
1707
1683
  values: FieldValue[];
1684
+ enabled: boolean;
1685
+ processingStage?: ProcessingStage;
1686
+ processingReason?: string;
1708
1687
 
1709
1688
  constructor(
1710
1689
  tenantIdCreated: string,
@@ -1730,17 +1709,18 @@ export class Record extends BusinessObject {
1730
1709
  );
1731
1710
 
1732
1711
  this.values = values;
1712
+ this.enabled = true;
1733
1713
  }
1734
1714
  }
1735
1715
 
1736
1716
  export const TableQL = `
1737
- type Table {${MetadataBusinessObjectFields}
1717
+ type Table {${BusinessObjectFields}
1738
1718
  records: [Record]
1739
1719
  metadata: TableMetadata
1740
1720
  }`;
1741
- export class Table extends MetadataBusinessObject {
1721
+ export class Table extends BusinessObject {
1722
+ metadata: TableMetadata;
1742
1723
  records?: Record[];
1743
- metadata?: TableMetadata;
1744
1724
 
1745
1725
  constructor(
1746
1726
  tenantIdCreated: string,
@@ -1750,7 +1730,8 @@ export class Table extends MetadataBusinessObject {
1750
1730
  provider: string,
1751
1731
  application: string,
1752
1732
  uri: string,
1753
- externalId: string
1733
+ externalId: string,
1734
+ metadata: TableMetadata
1754
1735
  ) {
1755
1736
  super(
1756
1737
  tenantIdCreated,
@@ -1763,6 +1744,8 @@ export class Table extends MetadataBusinessObject {
1763
1744
  uri,
1764
1745
  externalId
1765
1746
  );
1747
+
1748
+ this.metadata = metadata;
1766
1749
  }
1767
1750
  }
1768
1751
  //// FOR RECORDS END
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.4.8",
4
+ "version": "4.4.9",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",