@bigfootai/bigfoot-types 4.3.8 → 4.4.0
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/tables/opportunity.json +119 -125
- package/model.js +121 -10
- package/model.ts +159 -24
- package/package.json +1 -1
@@ -1,127 +1,121 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
"fieldType": "textarea",
|
122
|
-
"maximumCharacters": 32000,
|
123
|
-
"order": 7,
|
124
|
-
"isReadOnly": false
|
125
|
-
}
|
126
|
-
]
|
2
|
+
"label": "Opportunity",
|
3
|
+
"name": "Opportunity",
|
4
|
+
"references": [
|
5
|
+
"https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_opportunity.htm"
|
6
|
+
],
|
7
|
+
"description": "Represents an opportunity, which is a sale or pending deal.",
|
8
|
+
"fields": [
|
9
|
+
{
|
10
|
+
"label": "Name",
|
11
|
+
"name": "Name",
|
12
|
+
"description": "A name for this opportunity.",
|
13
|
+
"monitor": true,
|
14
|
+
"fieldType": "input",
|
15
|
+
"maximumCharacters": 120,
|
16
|
+
"readOnly": false
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"label": "Account",
|
20
|
+
"name": "Account.Name",
|
21
|
+
"description": "Name of the account associated with this opportunity.",
|
22
|
+
"monitor": true,
|
23
|
+
"fieldType": "input",
|
24
|
+
"readOnly": false
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"label": "Amount",
|
28
|
+
"name": "Amount",
|
29
|
+
"description": "Estimated total sale amount.",
|
30
|
+
"monitor": true,
|
31
|
+
"fieldType": "input",
|
32
|
+
"fieldVariation": "currency",
|
33
|
+
"readOnly": false
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"label": "Close Date",
|
37
|
+
"name": "CloseDate",
|
38
|
+
"description": "Date when the opportunity is expected to close.",
|
39
|
+
"monitor": true,
|
40
|
+
"fieldType": "input",
|
41
|
+
"fieldVariation": "date",
|
42
|
+
"readOnly": false
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"label": "Stage",
|
46
|
+
"name": "StageName",
|
47
|
+
"description": "Current stage of this opportunity.",
|
48
|
+
"monitor": true,
|
49
|
+
"fieldType": "select",
|
50
|
+
"readOnly": false,
|
51
|
+
"options": [
|
52
|
+
{
|
53
|
+
"label": "Prospecting",
|
54
|
+
"value": "Prospecting"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"label": "Qualification",
|
58
|
+
"value": "Qualification"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"label": "Needs Analysis",
|
62
|
+
"value": "Needs Analysis"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"label": "Value Proposition",
|
66
|
+
"value": "Value Proposition"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"label": "Id. Decision Makers",
|
70
|
+
"value": "Id. Decision Makers"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"label": "Perception Analysis",
|
74
|
+
"value": "Perception Analysis"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"label": "Proposal/Price Quote",
|
78
|
+
"value": "Proposal/Price Quote"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"label": "Negotiation/Review",
|
82
|
+
"value": "Negotiation/Review"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"label": "Closed Won",
|
86
|
+
"value": "Closed Won"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"label": "Closed Lost",
|
90
|
+
"value": "Closed Lost"
|
91
|
+
}
|
92
|
+
]
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"label": "Owner.Name",
|
96
|
+
"name": "Owner",
|
97
|
+
"description": "Name of the User who has been assigned to work on this opportunity.",
|
98
|
+
"monitor": true,
|
99
|
+
"fieldType": "input",
|
100
|
+
"readOnly": false
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"label": "Next Step",
|
104
|
+
"name": "NextStep",
|
105
|
+
"description": "A short description of next task in closing opportunity.",
|
106
|
+
"monitor": true,
|
107
|
+
"fieldType": "input",
|
108
|
+
"maximumCharacters": 250,
|
109
|
+
"readOnly": false
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"label": "Description",
|
113
|
+
"name": "Description",
|
114
|
+
"description": "Text description of the opportunity.",
|
115
|
+
"monitor": false,
|
116
|
+
"fieldType": "textarea",
|
117
|
+
"maximumCharacters": 32000,
|
118
|
+
"readOnly": false
|
119
|
+
}
|
120
|
+
]
|
127
121
|
}
|
package/model.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
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.
|
5
|
-
exports.
|
4
|
+
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.BusinessObjectIngestionResponse = 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.ProviderApplication = 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.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 = exports.Calendar = exports.CalendarQL = void 0;
|
6
|
+
exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = void 0;
|
6
7
|
const uuid_1 = require("uuid");
|
7
8
|
/*
|
8
9
|
These are the core primitives of our model. These represent the entities that show
|
@@ -400,6 +401,20 @@ class SharedPrimitive extends Primitive {
|
|
400
401
|
}
|
401
402
|
}
|
402
403
|
exports.SharedPrimitive = SharedPrimitive;
|
404
|
+
exports.MetadataFields = `${exports.PrimitiveFields}
|
405
|
+
label: String!
|
406
|
+
name: String!
|
407
|
+
description: String!
|
408
|
+
references: [String]`;
|
409
|
+
class Metadata extends Primitive {
|
410
|
+
constructor(name, label, description) {
|
411
|
+
super();
|
412
|
+
this.name = name;
|
413
|
+
this.label = label;
|
414
|
+
this.description = description;
|
415
|
+
}
|
416
|
+
}
|
417
|
+
exports.Metadata = Metadata;
|
403
418
|
exports.SearchQL = `
|
404
419
|
type Search {${exports.SharedPrimitiveFields}
|
405
420
|
search: String
|
@@ -471,7 +486,8 @@ exports.TagFieldsWithoutSharing = `${exports.PrimitiveFields}
|
|
471
486
|
inviteStatus: Int
|
472
487
|
originNoteId: String
|
473
488
|
tenantIdVerified: String
|
474
|
-
archived: Boolean
|
489
|
+
archived: Boolean!
|
490
|
+
taskCount: Int`;
|
475
491
|
exports.TagFieldsJustSharing = `
|
476
492
|
sharingDomains: [SharingDomain]
|
477
493
|
sharingTenants: [SharingTenant]`;
|
@@ -654,6 +670,14 @@ class BusinessObject extends Block {
|
|
654
670
|
}
|
655
671
|
}
|
656
672
|
exports.BusinessObject = BusinessObject;
|
673
|
+
exports.MetadataBusinessObjectFields = `${exports.BusinessObjectFields}
|
674
|
+
metadataId: String`;
|
675
|
+
class MetadataBusinessObject extends BusinessObject {
|
676
|
+
constructor(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId) {
|
677
|
+
super(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId);
|
678
|
+
}
|
679
|
+
}
|
680
|
+
exports.MetadataBusinessObject = MetadataBusinessObject;
|
657
681
|
exports.NoteQL = `
|
658
682
|
type Note {${exports.BlockFields}
|
659
683
|
}`;
|
@@ -810,6 +834,13 @@ class Thread extends BusinessObject {
|
|
810
834
|
exports.Thread = Thread;
|
811
835
|
//// MESSAGING END
|
812
836
|
//// DOCUMENT START
|
837
|
+
exports.DocumentQL = `
|
838
|
+
type Document {${exports.BusinessObjectFields}
|
839
|
+
title: String
|
840
|
+
description: String
|
841
|
+
previewImage: String
|
842
|
+
htmlContent: String
|
843
|
+
}`;
|
813
844
|
class Document extends BusinessObject {
|
814
845
|
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
|
815
846
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Document, provider, application, uri, externalId);
|
@@ -818,16 +849,47 @@ class Document extends BusinessObject {
|
|
818
849
|
exports.Document = Document;
|
819
850
|
//// DOCUMENT END
|
820
851
|
//// WEBSITE START
|
852
|
+
exports.WebsiteQL = `
|
853
|
+
type Website {${exports.BusinessObjectFields}
|
854
|
+
title: String
|
855
|
+
description: String
|
856
|
+
bannerImage: String
|
857
|
+
htmlContent: String
|
858
|
+
}`;
|
821
859
|
class Website extends BusinessObject {
|
822
860
|
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
|
823
861
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Website, provider, application, uri, externalId);
|
824
862
|
}
|
825
863
|
}
|
826
864
|
exports.Website = Website;
|
827
|
-
|
828
|
-
|
865
|
+
//// WEBSITE END
|
866
|
+
// BUSINESS OBJECTS END
|
867
|
+
// METADATA OBJECTS START
|
868
|
+
//// FOR DOCUMENTS START
|
869
|
+
exports.BlockDescriptionQL = `
|
870
|
+
type BlockDescription {
|
871
|
+
title: String
|
872
|
+
name: String!
|
873
|
+
description: String!
|
874
|
+
}`;
|
875
|
+
exports.DocumentMetadataQL = `
|
876
|
+
type DocumentMetadata {${exports.MetadataFields}
|
877
|
+
contentBlocks: [BlockDescription]!
|
878
|
+
}`;
|
879
|
+
class DocumentMetadata extends Metadata {
|
880
|
+
constructor(name, label, description, contentBlocks) {
|
881
|
+
super(name, label, description);
|
882
|
+
this.contentBlocks = contentBlocks;
|
883
|
+
}
|
884
|
+
}
|
885
|
+
exports.DocumentMetadata = DocumentMetadata;
|
886
|
+
exports.TemplateQL = `
|
887
|
+
type Template {${exports.MetadataBusinessObjectFields}
|
888
|
+
metadata: DocumentMetadata
|
889
|
+
}`;
|
890
|
+
class Template extends MetadataBusinessObject {
|
891
|
+
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
|
829
892
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Template, provider, application, uri, externalId);
|
830
|
-
this.metadata = metadata;
|
831
893
|
}
|
832
894
|
}
|
833
895
|
exports.Template = Template;
|
@@ -851,11 +913,50 @@ var FieldVariation;
|
|
851
913
|
FieldVariation["Phone"] = "phone";
|
852
914
|
FieldVariation["Url"] = "url";
|
853
915
|
})(FieldVariation || (exports.FieldVariation = FieldVariation = {}));
|
854
|
-
|
855
|
-
|
916
|
+
exports.OptionQL = `
|
917
|
+
type Option {
|
918
|
+
label: String!
|
919
|
+
value: String!
|
920
|
+
}`;
|
921
|
+
exports.FieldQL = `
|
922
|
+
type Field {
|
923
|
+
label: String!
|
924
|
+
name: String!
|
925
|
+
description: String!
|
926
|
+
monitor: Boolean!
|
927
|
+
fieldType: String!
|
928
|
+
fieldVariation: String
|
929
|
+
maximumCharacters: Int
|
930
|
+
readOnly: Boolean!
|
931
|
+
options: [Option]
|
932
|
+
}`;
|
933
|
+
exports.FieldValueQL = `
|
934
|
+
type FieldValue {
|
935
|
+
name: String!
|
936
|
+
previousValue: String!
|
937
|
+
nextValue: String!
|
938
|
+
value: String!
|
939
|
+
changed: Boolean!
|
940
|
+
}`;
|
941
|
+
exports.TableMetadataQL = `
|
942
|
+
type TableMetadata {${exports.MetadataFields}
|
943
|
+
fields: [Field]!
|
944
|
+
}`;
|
945
|
+
class TableMetadata extends Metadata {
|
946
|
+
constructor(name, label, description, fields) {
|
947
|
+
super(name, label, description);
|
948
|
+
this.fields = fields;
|
949
|
+
}
|
950
|
+
}
|
951
|
+
exports.TableMetadata = TableMetadata;
|
952
|
+
exports.TableQL = `
|
953
|
+
type Table {${exports.MetadataBusinessObjectFields}
|
954
|
+
values: [FieldValue]!
|
955
|
+
metadata: TableMetadata
|
956
|
+
}`;
|
957
|
+
class Table extends MetadataBusinessObject {
|
958
|
+
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, values) {
|
856
959
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Table, provider, application, uri, externalId);
|
857
|
-
this.recordType = recordType;
|
858
|
-
this.metadata = metadata;
|
859
960
|
this.values = values;
|
860
961
|
}
|
861
962
|
}
|
@@ -1132,6 +1233,16 @@ ${exports.ConferenceQL}
|
|
1132
1233
|
${exports.PersonAcceptanceQL}
|
1133
1234
|
${exports.EventQL}
|
1134
1235
|
${exports.CalendarQL}
|
1236
|
+
${exports.DocumentQL}
|
1237
|
+
${exports.WebsiteQL}
|
1238
|
+
${exports.BlockDescriptionQL}
|
1239
|
+
${exports.DocumentMetadataQL}
|
1240
|
+
${exports.TemplateQL}
|
1241
|
+
${exports.OptionQL}
|
1242
|
+
${exports.FieldQL}
|
1243
|
+
${exports.FieldValueQL}
|
1244
|
+
${exports.TableMetadataQL}
|
1245
|
+
${exports.TableQL}
|
1135
1246
|
${exports.FindArticleInputQL}
|
1136
1247
|
${exports.FindArticlesInputQL}
|
1137
1248
|
${exports.FindCalendarInputQL}
|
package/model.ts
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
import { describe } from 'node:test';
|
2
|
+
import { loadavg } from 'os';
|
1
3
|
import { v4 as uuidv4 } from 'uuid';
|
2
4
|
|
3
5
|
/*
|
@@ -583,6 +585,26 @@ export class SharedPrimitive extends Primitive {
|
|
583
585
|
}
|
584
586
|
}
|
585
587
|
|
588
|
+
export const MetadataFields = `${PrimitiveFields}
|
589
|
+
label: String!
|
590
|
+
name: String!
|
591
|
+
description: String!
|
592
|
+
references: [String]`;
|
593
|
+
export class Metadata extends Primitive {
|
594
|
+
name: string;
|
595
|
+
label: string;
|
596
|
+
description: string;
|
597
|
+
references?: string[];
|
598
|
+
|
599
|
+
constructor(name: string, label: string, description: string) {
|
600
|
+
super();
|
601
|
+
|
602
|
+
this.name = name;
|
603
|
+
this.label = label;
|
604
|
+
this.description = description;
|
605
|
+
}
|
606
|
+
}
|
607
|
+
|
586
608
|
export const SearchQL = `
|
587
609
|
type Search {${SharedPrimitiveFields}
|
588
610
|
search: String
|
@@ -684,7 +706,8 @@ export const TagFieldsWithoutSharing = `${PrimitiveFields}
|
|
684
706
|
inviteStatus: Int
|
685
707
|
originNoteId: String
|
686
708
|
tenantIdVerified: String
|
687
|
-
archived: Boolean
|
709
|
+
archived: Boolean!
|
710
|
+
taskCount: Int`;
|
688
711
|
export const TagFieldsJustSharing = `
|
689
712
|
sharingDomains: [SharingDomain]
|
690
713
|
sharingTenants: [SharingTenant]`;
|
@@ -706,6 +729,7 @@ export class Tag extends Primitive {
|
|
706
729
|
originNoteId?: string; // If the tag originated from a note, we store that here
|
707
730
|
tenantIdVerified?: string; // The tenant._id that claimed/verified this tag as being them
|
708
731
|
archived: boolean;
|
732
|
+
taskCount?: number;
|
709
733
|
_createdByAI: boolean;
|
710
734
|
_orphan?: boolean;
|
711
735
|
|
@@ -1028,6 +1052,36 @@ export class BusinessObject extends Block {
|
|
1028
1052
|
}
|
1029
1053
|
}
|
1030
1054
|
|
1055
|
+
export const MetadataBusinessObjectFields = `${BusinessObjectFields}
|
1056
|
+
metadataId: String`;
|
1057
|
+
export class MetadataBusinessObject extends BusinessObject {
|
1058
|
+
metadataId?: string;
|
1059
|
+
|
1060
|
+
constructor(
|
1061
|
+
tenantIdCreated: string,
|
1062
|
+
editors: Editor[],
|
1063
|
+
sharingTags: SharingTag[],
|
1064
|
+
version: number,
|
1065
|
+
blockType: BlockType,
|
1066
|
+
provider: string,
|
1067
|
+
application: string,
|
1068
|
+
uri: string,
|
1069
|
+
externalId: string
|
1070
|
+
) {
|
1071
|
+
super(
|
1072
|
+
tenantIdCreated,
|
1073
|
+
editors,
|
1074
|
+
sharingTags,
|
1075
|
+
version,
|
1076
|
+
blockType,
|
1077
|
+
provider,
|
1078
|
+
application,
|
1079
|
+
uri,
|
1080
|
+
externalId
|
1081
|
+
);
|
1082
|
+
}
|
1083
|
+
}
|
1084
|
+
|
1031
1085
|
export const NoteQL = `
|
1032
1086
|
type Note {${BlockFields}
|
1033
1087
|
}`;
|
@@ -1396,6 +1450,13 @@ export class Thread extends BusinessObject {
|
|
1396
1450
|
//// MESSAGING END
|
1397
1451
|
|
1398
1452
|
//// DOCUMENT START
|
1453
|
+
export const DocumentQL = `
|
1454
|
+
type Document {${BusinessObjectFields}
|
1455
|
+
title: String
|
1456
|
+
description: String
|
1457
|
+
previewImage: String
|
1458
|
+
htmlContent: String
|
1459
|
+
}`;
|
1399
1460
|
export class Document extends BusinessObject {
|
1400
1461
|
title?: string;
|
1401
1462
|
description?: string;
|
@@ -1428,6 +1489,13 @@ export class Document extends BusinessObject {
|
|
1428
1489
|
//// DOCUMENT END
|
1429
1490
|
|
1430
1491
|
//// WEBSITE START
|
1492
|
+
export const WebsiteQL = `
|
1493
|
+
type Website {${BusinessObjectFields}
|
1494
|
+
title: String
|
1495
|
+
description: String
|
1496
|
+
bannerImage: String
|
1497
|
+
htmlContent: String
|
1498
|
+
}`;
|
1431
1499
|
export class Website extends BusinessObject {
|
1432
1500
|
title?: string;
|
1433
1501
|
description?: string;
|
@@ -1464,19 +1532,43 @@ export class Website extends BusinessObject {
|
|
1464
1532
|
// METADATA OBJECTS START
|
1465
1533
|
|
1466
1534
|
//// FOR DOCUMENTS START
|
1535
|
+
export const BlockDescriptionQL = `
|
1536
|
+
type BlockDescription {
|
1537
|
+
title: String
|
1538
|
+
name: String!
|
1539
|
+
description: String!
|
1540
|
+
}`;
|
1467
1541
|
export interface BlockDescription {
|
1468
1542
|
title?: string;
|
1469
1543
|
name: string;
|
1470
1544
|
description: string;
|
1471
|
-
blockType: BlockType;
|
1472
1545
|
}
|
1473
1546
|
|
1474
|
-
export
|
1547
|
+
export const DocumentMetadataQL = `
|
1548
|
+
type DocumentMetadata {${MetadataFields}
|
1549
|
+
contentBlocks: [BlockDescription]!
|
1550
|
+
}`;
|
1551
|
+
export class DocumentMetadata extends Metadata {
|
1475
1552
|
contentBlocks: BlockDescription[];
|
1553
|
+
|
1554
|
+
constructor(
|
1555
|
+
name: string,
|
1556
|
+
label: string,
|
1557
|
+
description: string,
|
1558
|
+
contentBlocks: BlockDescription[]
|
1559
|
+
) {
|
1560
|
+
super(name, label, description);
|
1561
|
+
|
1562
|
+
this.contentBlocks = contentBlocks;
|
1563
|
+
}
|
1476
1564
|
}
|
1477
1565
|
|
1478
|
-
export
|
1479
|
-
|
1566
|
+
export const TemplateQL = `
|
1567
|
+
type Template {${MetadataBusinessObjectFields}
|
1568
|
+
metadata: DocumentMetadata
|
1569
|
+
}`;
|
1570
|
+
export class Template extends MetadataBusinessObject {
|
1571
|
+
metadata?: DocumentMetadata;
|
1480
1572
|
|
1481
1573
|
constructor(
|
1482
1574
|
tenantIdCreated: string,
|
@@ -1486,8 +1578,7 @@ export class Template extends BusinessObject {
|
|
1486
1578
|
provider: string,
|
1487
1579
|
application: string,
|
1488
1580
|
uri: string,
|
1489
|
-
externalId: string
|
1490
|
-
metadata: DocumentMetadata
|
1581
|
+
externalId: string
|
1491
1582
|
) {
|
1492
1583
|
super(
|
1493
1584
|
tenantIdCreated,
|
@@ -1500,8 +1591,6 @@ export class Template extends BusinessObject {
|
|
1500
1591
|
uri,
|
1501
1592
|
externalId
|
1502
1593
|
);
|
1503
|
-
|
1504
|
-
this.metadata = metadata;
|
1505
1594
|
}
|
1506
1595
|
}
|
1507
1596
|
//// FOR DOCUMENTS END
|
@@ -1525,24 +1614,48 @@ export enum FieldVariation {
|
|
1525
1614
|
Url = 'url',
|
1526
1615
|
}
|
1527
1616
|
|
1617
|
+
export const OptionQL = `
|
1618
|
+
type Option {
|
1619
|
+
label: String!
|
1620
|
+
value: String!
|
1621
|
+
}`;
|
1528
1622
|
export interface Option {
|
1529
1623
|
label: string;
|
1530
1624
|
value: string;
|
1531
1625
|
}
|
1532
1626
|
|
1627
|
+
export const FieldQL = `
|
1628
|
+
type Field {
|
1629
|
+
label: String!
|
1630
|
+
name: String!
|
1631
|
+
description: String!
|
1632
|
+
monitor: Boolean!
|
1633
|
+
fieldType: String!
|
1634
|
+
fieldVariation: String
|
1635
|
+
maximumCharacters: Int
|
1636
|
+
readOnly: Boolean!
|
1637
|
+
options: [Option]
|
1638
|
+
}`;
|
1533
1639
|
export interface Field {
|
1534
|
-
label
|
1640
|
+
label: string;
|
1535
1641
|
name: string;
|
1536
1642
|
description: string;
|
1537
|
-
|
1643
|
+
monitor: boolean;
|
1538
1644
|
fieldType: FieldType;
|
1539
1645
|
fieldVariation?: FieldVariation;
|
1540
|
-
order: number;
|
1541
1646
|
maximumCharacters?: number;
|
1542
|
-
|
1647
|
+
readOnly: boolean;
|
1543
1648
|
options?: Option[];
|
1544
1649
|
}
|
1545
1650
|
|
1651
|
+
export const FieldValueQL = `
|
1652
|
+
type FieldValue {
|
1653
|
+
name: String!
|
1654
|
+
previousValue: String!
|
1655
|
+
nextValue: String!
|
1656
|
+
value: String!
|
1657
|
+
changed: Boolean!
|
1658
|
+
}`;
|
1546
1659
|
export interface FieldValue {
|
1547
1660
|
name: string;
|
1548
1661
|
previousValue: string;
|
@@ -1551,17 +1664,33 @@ export interface FieldValue {
|
|
1551
1664
|
changed: boolean;
|
1552
1665
|
}
|
1553
1666
|
|
1554
|
-
export
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1667
|
+
export const TableMetadataQL = `
|
1668
|
+
type TableMetadata {${MetadataFields}
|
1669
|
+
fields: [Field]!
|
1670
|
+
}`;
|
1671
|
+
export class TableMetadata extends Metadata {
|
1558
1672
|
fields: Field[];
|
1673
|
+
|
1674
|
+
constructor(
|
1675
|
+
name: string,
|
1676
|
+
label: string,
|
1677
|
+
description: string,
|
1678
|
+
fields: Field[]
|
1679
|
+
) {
|
1680
|
+
super(name, label, description);
|
1681
|
+
|
1682
|
+
this.fields = fields;
|
1683
|
+
}
|
1559
1684
|
}
|
1560
1685
|
|
1561
|
-
export
|
1562
|
-
|
1563
|
-
|
1686
|
+
export const TableQL = `
|
1687
|
+
type Table {${MetadataBusinessObjectFields}
|
1688
|
+
values: [FieldValue]!
|
1689
|
+
metadata: TableMetadata
|
1690
|
+
}`;
|
1691
|
+
export class Table extends MetadataBusinessObject {
|
1564
1692
|
values: FieldValue[];
|
1693
|
+
metadata?: TableMetadata;
|
1565
1694
|
|
1566
1695
|
constructor(
|
1567
1696
|
tenantIdCreated: string,
|
@@ -1572,8 +1701,6 @@ export class Table extends BusinessObject {
|
|
1572
1701
|
application: string,
|
1573
1702
|
uri: string,
|
1574
1703
|
externalId: string,
|
1575
|
-
recordType: string,
|
1576
|
-
metadata: TableMetadata,
|
1577
1704
|
values: FieldValue[]
|
1578
1705
|
) {
|
1579
1706
|
super(
|
@@ -1588,8 +1715,6 @@ export class Table extends BusinessObject {
|
|
1588
1715
|
externalId
|
1589
1716
|
);
|
1590
1717
|
|
1591
|
-
this.recordType = recordType;
|
1592
|
-
this.metadata = metadata;
|
1593
1718
|
this.values = values;
|
1594
1719
|
}
|
1595
1720
|
}
|
@@ -2062,6 +2187,16 @@ ${ConferenceQL}
|
|
2062
2187
|
${PersonAcceptanceQL}
|
2063
2188
|
${EventQL}
|
2064
2189
|
${CalendarQL}
|
2190
|
+
${DocumentQL}
|
2191
|
+
${WebsiteQL}
|
2192
|
+
${BlockDescriptionQL}
|
2193
|
+
${DocumentMetadataQL}
|
2194
|
+
${TemplateQL}
|
2195
|
+
${OptionQL}
|
2196
|
+
${FieldQL}
|
2197
|
+
${FieldValueQL}
|
2198
|
+
${TableMetadataQL}
|
2199
|
+
${TableQL}
|
2065
2200
|
${FindArticleInputQL}
|
2066
2201
|
${FindArticlesInputQL}
|
2067
2202
|
${FindCalendarInputQL}
|