@bigfootai/bigfoot-types 4.3.9 → 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 +119 -9
- package/model.ts +156 -23
- 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
|
@@ -655,6 +670,14 @@ class BusinessObject extends Block {
|
|
655
670
|
}
|
656
671
|
}
|
657
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;
|
658
681
|
exports.NoteQL = `
|
659
682
|
type Note {${exports.BlockFields}
|
660
683
|
}`;
|
@@ -811,6 +834,13 @@ class Thread extends BusinessObject {
|
|
811
834
|
exports.Thread = Thread;
|
812
835
|
//// MESSAGING END
|
813
836
|
//// DOCUMENT START
|
837
|
+
exports.DocumentQL = `
|
838
|
+
type Document {${exports.BusinessObjectFields}
|
839
|
+
title: String
|
840
|
+
description: String
|
841
|
+
previewImage: String
|
842
|
+
htmlContent: String
|
843
|
+
}`;
|
814
844
|
class Document extends BusinessObject {
|
815
845
|
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
|
816
846
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Document, provider, application, uri, externalId);
|
@@ -819,16 +849,47 @@ class Document extends BusinessObject {
|
|
819
849
|
exports.Document = Document;
|
820
850
|
//// DOCUMENT END
|
821
851
|
//// WEBSITE START
|
852
|
+
exports.WebsiteQL = `
|
853
|
+
type Website {${exports.BusinessObjectFields}
|
854
|
+
title: String
|
855
|
+
description: String
|
856
|
+
bannerImage: String
|
857
|
+
htmlContent: String
|
858
|
+
}`;
|
822
859
|
class Website extends BusinessObject {
|
823
860
|
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
|
824
861
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Website, provider, application, uri, externalId);
|
825
862
|
}
|
826
863
|
}
|
827
864
|
exports.Website = Website;
|
828
|
-
|
829
|
-
|
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) {
|
830
892
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Template, provider, application, uri, externalId);
|
831
|
-
this.metadata = metadata;
|
832
893
|
}
|
833
894
|
}
|
834
895
|
exports.Template = Template;
|
@@ -852,11 +913,50 @@ var FieldVariation;
|
|
852
913
|
FieldVariation["Phone"] = "phone";
|
853
914
|
FieldVariation["Url"] = "url";
|
854
915
|
})(FieldVariation || (exports.FieldVariation = FieldVariation = {}));
|
855
|
-
|
856
|
-
|
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) {
|
857
959
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Table, provider, application, uri, externalId);
|
858
|
-
this.recordType = recordType;
|
859
|
-
this.metadata = metadata;
|
860
960
|
this.values = values;
|
861
961
|
}
|
862
962
|
}
|
@@ -1133,6 +1233,16 @@ ${exports.ConferenceQL}
|
|
1133
1233
|
${exports.PersonAcceptanceQL}
|
1134
1234
|
${exports.EventQL}
|
1135
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}
|
1136
1246
|
${exports.FindArticleInputQL}
|
1137
1247
|
${exports.FindArticlesInputQL}
|
1138
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
|
@@ -1030,6 +1052,36 @@ export class BusinessObject extends Block {
|
|
1030
1052
|
}
|
1031
1053
|
}
|
1032
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
|
+
|
1033
1085
|
export const NoteQL = `
|
1034
1086
|
type Note {${BlockFields}
|
1035
1087
|
}`;
|
@@ -1398,6 +1450,13 @@ export class Thread extends BusinessObject {
|
|
1398
1450
|
//// MESSAGING END
|
1399
1451
|
|
1400
1452
|
//// DOCUMENT START
|
1453
|
+
export const DocumentQL = `
|
1454
|
+
type Document {${BusinessObjectFields}
|
1455
|
+
title: String
|
1456
|
+
description: String
|
1457
|
+
previewImage: String
|
1458
|
+
htmlContent: String
|
1459
|
+
}`;
|
1401
1460
|
export class Document extends BusinessObject {
|
1402
1461
|
title?: string;
|
1403
1462
|
description?: string;
|
@@ -1430,6 +1489,13 @@ export class Document extends BusinessObject {
|
|
1430
1489
|
//// DOCUMENT END
|
1431
1490
|
|
1432
1491
|
//// WEBSITE START
|
1492
|
+
export const WebsiteQL = `
|
1493
|
+
type Website {${BusinessObjectFields}
|
1494
|
+
title: String
|
1495
|
+
description: String
|
1496
|
+
bannerImage: String
|
1497
|
+
htmlContent: String
|
1498
|
+
}`;
|
1433
1499
|
export class Website extends BusinessObject {
|
1434
1500
|
title?: string;
|
1435
1501
|
description?: string;
|
@@ -1466,19 +1532,43 @@ export class Website extends BusinessObject {
|
|
1466
1532
|
// METADATA OBJECTS START
|
1467
1533
|
|
1468
1534
|
//// FOR DOCUMENTS START
|
1535
|
+
export const BlockDescriptionQL = `
|
1536
|
+
type BlockDescription {
|
1537
|
+
title: String
|
1538
|
+
name: String!
|
1539
|
+
description: String!
|
1540
|
+
}`;
|
1469
1541
|
export interface BlockDescription {
|
1470
1542
|
title?: string;
|
1471
1543
|
name: string;
|
1472
1544
|
description: string;
|
1473
|
-
blockType: BlockType;
|
1474
1545
|
}
|
1475
1546
|
|
1476
|
-
export
|
1547
|
+
export const DocumentMetadataQL = `
|
1548
|
+
type DocumentMetadata {${MetadataFields}
|
1549
|
+
contentBlocks: [BlockDescription]!
|
1550
|
+
}`;
|
1551
|
+
export class DocumentMetadata extends Metadata {
|
1477
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
|
+
}
|
1478
1564
|
}
|
1479
1565
|
|
1480
|
-
export
|
1481
|
-
|
1566
|
+
export const TemplateQL = `
|
1567
|
+
type Template {${MetadataBusinessObjectFields}
|
1568
|
+
metadata: DocumentMetadata
|
1569
|
+
}`;
|
1570
|
+
export class Template extends MetadataBusinessObject {
|
1571
|
+
metadata?: DocumentMetadata;
|
1482
1572
|
|
1483
1573
|
constructor(
|
1484
1574
|
tenantIdCreated: string,
|
@@ -1488,8 +1578,7 @@ export class Template extends BusinessObject {
|
|
1488
1578
|
provider: string,
|
1489
1579
|
application: string,
|
1490
1580
|
uri: string,
|
1491
|
-
externalId: string
|
1492
|
-
metadata: DocumentMetadata
|
1581
|
+
externalId: string
|
1493
1582
|
) {
|
1494
1583
|
super(
|
1495
1584
|
tenantIdCreated,
|
@@ -1502,8 +1591,6 @@ export class Template extends BusinessObject {
|
|
1502
1591
|
uri,
|
1503
1592
|
externalId
|
1504
1593
|
);
|
1505
|
-
|
1506
|
-
this.metadata = metadata;
|
1507
1594
|
}
|
1508
1595
|
}
|
1509
1596
|
//// FOR DOCUMENTS END
|
@@ -1527,24 +1614,48 @@ export enum FieldVariation {
|
|
1527
1614
|
Url = 'url',
|
1528
1615
|
}
|
1529
1616
|
|
1617
|
+
export const OptionQL = `
|
1618
|
+
type Option {
|
1619
|
+
label: String!
|
1620
|
+
value: String!
|
1621
|
+
}`;
|
1530
1622
|
export interface Option {
|
1531
1623
|
label: string;
|
1532
1624
|
value: string;
|
1533
1625
|
}
|
1534
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
|
+
}`;
|
1535
1639
|
export interface Field {
|
1536
|
-
label
|
1640
|
+
label: string;
|
1537
1641
|
name: string;
|
1538
1642
|
description: string;
|
1539
|
-
|
1643
|
+
monitor: boolean;
|
1540
1644
|
fieldType: FieldType;
|
1541
1645
|
fieldVariation?: FieldVariation;
|
1542
|
-
order: number;
|
1543
1646
|
maximumCharacters?: number;
|
1544
|
-
|
1647
|
+
readOnly: boolean;
|
1545
1648
|
options?: Option[];
|
1546
1649
|
}
|
1547
1650
|
|
1651
|
+
export const FieldValueQL = `
|
1652
|
+
type FieldValue {
|
1653
|
+
name: String!
|
1654
|
+
previousValue: String!
|
1655
|
+
nextValue: String!
|
1656
|
+
value: String!
|
1657
|
+
changed: Boolean!
|
1658
|
+
}`;
|
1548
1659
|
export interface FieldValue {
|
1549
1660
|
name: string;
|
1550
1661
|
previousValue: string;
|
@@ -1553,17 +1664,33 @@ export interface FieldValue {
|
|
1553
1664
|
changed: boolean;
|
1554
1665
|
}
|
1555
1666
|
|
1556
|
-
export
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1667
|
+
export const TableMetadataQL = `
|
1668
|
+
type TableMetadata {${MetadataFields}
|
1669
|
+
fields: [Field]!
|
1670
|
+
}`;
|
1671
|
+
export class TableMetadata extends Metadata {
|
1560
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
|
+
}
|
1561
1684
|
}
|
1562
1685
|
|
1563
|
-
export
|
1564
|
-
|
1565
|
-
|
1686
|
+
export const TableQL = `
|
1687
|
+
type Table {${MetadataBusinessObjectFields}
|
1688
|
+
values: [FieldValue]!
|
1689
|
+
metadata: TableMetadata
|
1690
|
+
}`;
|
1691
|
+
export class Table extends MetadataBusinessObject {
|
1566
1692
|
values: FieldValue[];
|
1693
|
+
metadata?: TableMetadata;
|
1567
1694
|
|
1568
1695
|
constructor(
|
1569
1696
|
tenantIdCreated: string,
|
@@ -1574,8 +1701,6 @@ export class Table extends BusinessObject {
|
|
1574
1701
|
application: string,
|
1575
1702
|
uri: string,
|
1576
1703
|
externalId: string,
|
1577
|
-
recordType: string,
|
1578
|
-
metadata: TableMetadata,
|
1579
1704
|
values: FieldValue[]
|
1580
1705
|
) {
|
1581
1706
|
super(
|
@@ -1590,8 +1715,6 @@ export class Table extends BusinessObject {
|
|
1590
1715
|
externalId
|
1591
1716
|
);
|
1592
1717
|
|
1593
|
-
this.recordType = recordType;
|
1594
|
-
this.metadata = metadata;
|
1595
1718
|
this.values = values;
|
1596
1719
|
}
|
1597
1720
|
}
|
@@ -2064,6 +2187,16 @@ ${ConferenceQL}
|
|
2064
2187
|
${PersonAcceptanceQL}
|
2065
2188
|
${EventQL}
|
2066
2189
|
${CalendarQL}
|
2190
|
+
${DocumentQL}
|
2191
|
+
${WebsiteQL}
|
2192
|
+
${BlockDescriptionQL}
|
2193
|
+
${DocumentMetadataQL}
|
2194
|
+
${TemplateQL}
|
2195
|
+
${OptionQL}
|
2196
|
+
${FieldQL}
|
2197
|
+
${FieldValueQL}
|
2198
|
+
${TableMetadataQL}
|
2199
|
+
${TableQL}
|
2067
2200
|
${FindArticleInputQL}
|
2068
2201
|
${FindArticlesInputQL}
|
2069
2202
|
${FindCalendarInputQL}
|