@bigfootai/bigfoot-types 5.1.29 → 5.1.31
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/dashboards/account_overview.js +1 -6
- package/metadata/dashboards/account_overview.ts +1 -6
- package/metadata/dashboards/record_update.js +52 -0
- package/metadata/dashboards/record_update.ts +55 -0
- package/metadata/tables/case.js +1 -0
- package/metadata/tables/case.ts +1 -0
- package/metadata/tables/issue.js +3 -2
- package/metadata/tables/issue.ts +2 -1
- package/metadata/tables/opportunity.js +1 -0
- package/metadata/tables/opportunity.ts +1 -0
- package/metadata/tables/organization.js +1 -0
- package/metadata/tables/organization.ts +1 -0
- package/model.js +25 -4
- package/model.ts +30 -6
- package/package.json +1 -1
@@ -0,0 +1,52 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AccountOverview = void 0;
|
4
|
+
const model_1 = require("../../model");
|
5
|
+
exports.AccountOverview = {
|
6
|
+
_id: '',
|
7
|
+
dateCreated: 0,
|
8
|
+
dateUpdated: 0,
|
9
|
+
label: 'Record Update',
|
10
|
+
description: 'This template is a notification dashboard to be used when notifying users about record updates.',
|
11
|
+
metadataType: 'record_update',
|
12
|
+
blockDescriptions: [
|
13
|
+
{
|
14
|
+
title: 'What changed?',
|
15
|
+
name: 'what',
|
16
|
+
description: 'The changes that happened to create this notification',
|
17
|
+
blockType: model_1.BlockType.Changeset,
|
18
|
+
},
|
19
|
+
{
|
20
|
+
title: 'Why is this important?',
|
21
|
+
name: 'why',
|
22
|
+
description: 'Write short summary for the user that focuses on why this recommendation is important. Use the above context only. Keep the response concise, in the language of a 7th grader, and the length less than 5 sentences.',
|
23
|
+
blockType: model_1.BlockType.Section,
|
24
|
+
},
|
25
|
+
{
|
26
|
+
title: 'Potential impact of this change',
|
27
|
+
name: 'impact',
|
28
|
+
description: 'Write a short summary that assesses the potential impact of this update on alignment/business/revenue/etc for the user. Use the above context only. Keep the response concise, in the language of a 7th grader, and the length less than 5 sentences.',
|
29
|
+
blockType: model_1.BlockType.Section,
|
30
|
+
},
|
31
|
+
{
|
32
|
+
title: 'Next steps',
|
33
|
+
name: 'next_steps',
|
34
|
+
description: 'Write a short summary that helps the user understand what they could do next. Focus on any actions or tasks that may be in the notes. Use the above context only. Keep the response concise, in the language of a 7th grader, and the length less than 5 sentences.',
|
35
|
+
blockType: model_1.BlockType.Section,
|
36
|
+
},
|
37
|
+
{
|
38
|
+
title: 'Related records',
|
39
|
+
name: 'related_records',
|
40
|
+
description: 'The records related to this change',
|
41
|
+
blockType: model_1.BlockType.Table,
|
42
|
+
},
|
43
|
+
{
|
44
|
+
title: 'Related notes',
|
45
|
+
name: 'related_notes',
|
46
|
+
description: 'The records related to this change',
|
47
|
+
blockType: model_1.BlockType.Note,
|
48
|
+
},
|
49
|
+
],
|
50
|
+
classifiers: [],
|
51
|
+
threshold: 0,
|
52
|
+
};
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { BlockType, DashboardMetadata, TagType } from '../../model';
|
2
|
+
|
3
|
+
export const AccountOverview: DashboardMetadata = {
|
4
|
+
_id: '',
|
5
|
+
dateCreated: 0,
|
6
|
+
dateUpdated: 0,
|
7
|
+
label: 'Record Update',
|
8
|
+
description:
|
9
|
+
'This template is a notification dashboard to be used when notifying users about record updates.',
|
10
|
+
metadataType: 'record_update',
|
11
|
+
blockDescriptions: [
|
12
|
+
{
|
13
|
+
title: 'What changed?',
|
14
|
+
name: 'what',
|
15
|
+
description:
|
16
|
+
'The changes that happened to create this notification',
|
17
|
+
blockType: BlockType.Changeset,
|
18
|
+
},
|
19
|
+
{
|
20
|
+
title: 'Why is this important?',
|
21
|
+
name: 'why',
|
22
|
+
description:
|
23
|
+
'Write short summary for the user that focuses on why this recommendation is important. Use the above context only. Keep the response concise, in the language of a 7th grader, and the length less than 5 sentences.',
|
24
|
+
blockType: BlockType.Section,
|
25
|
+
},
|
26
|
+
{
|
27
|
+
title: 'Potential impact of this change',
|
28
|
+
name: 'impact',
|
29
|
+
description:
|
30
|
+
'Write a short summary that assesses the potential impact of this update on alignment/business/revenue/etc for the user. Use the above context only. Keep the response concise, in the language of a 7th grader, and the length less than 5 sentences.',
|
31
|
+
blockType: BlockType.Section,
|
32
|
+
},
|
33
|
+
{
|
34
|
+
title: 'Next steps',
|
35
|
+
name: 'next_steps',
|
36
|
+
description:
|
37
|
+
'Write a short summary that helps the user understand what they could do next. Focus on any actions or tasks that may be in the notes. Use the above context only. Keep the response concise, in the language of a 7th grader, and the length less than 5 sentences.',
|
38
|
+
blockType: BlockType.Section,
|
39
|
+
},
|
40
|
+
{
|
41
|
+
title: 'Related records',
|
42
|
+
name: 'related_records',
|
43
|
+
description: 'The records related to this change',
|
44
|
+
blockType: BlockType.Table,
|
45
|
+
},
|
46
|
+
{
|
47
|
+
title: 'Related notes',
|
48
|
+
name: 'related_notes',
|
49
|
+
description: 'The records related to this change',
|
50
|
+
blockType: BlockType.Note,
|
51
|
+
},
|
52
|
+
],
|
53
|
+
classifiers: [],
|
54
|
+
threshold: 0,
|
55
|
+
};
|
package/metadata/tables/case.js
CHANGED
@@ -9,6 +9,7 @@ exports.Case = {
|
|
9
9
|
label: 'Case',
|
10
10
|
description: 'Represents an case/ticket, which is a problem that needs to be resolved.',
|
11
11
|
metadataType: 'case',
|
12
|
+
tasky: true,
|
12
13
|
references: [
|
13
14
|
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
|
14
15
|
'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
|
package/metadata/tables/case.ts
CHANGED
@@ -15,6 +15,7 @@ export const Case: TableMetadata = {
|
|
15
15
|
description:
|
16
16
|
'Represents an case/ticket, which is a problem that needs to be resolved.',
|
17
17
|
metadataType: 'case',
|
18
|
+
tasky: true,
|
18
19
|
references: [
|
19
20
|
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
|
20
21
|
'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
|
package/metadata/tables/issue.js
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.Issue = void 0;
|
4
4
|
const model_1 = require("../../model");
|
5
|
-
exports.
|
5
|
+
exports.Issue = {
|
6
6
|
_id: '',
|
7
7
|
dateCreated: 0,
|
8
8
|
dateUpdated: 0,
|
9
9
|
label: 'Issue',
|
10
10
|
description: 'Represents an issue or feature enhancement, which is a request to improve a product or service.',
|
11
11
|
metadataType: 'issue',
|
12
|
+
tasky: true,
|
12
13
|
references: [
|
13
14
|
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
|
14
15
|
'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
|
package/metadata/tables/issue.ts
CHANGED
@@ -7,7 +7,7 @@ import {
|
|
7
7
|
TaskStatus,
|
8
8
|
} from '../../model';
|
9
9
|
|
10
|
-
export const
|
10
|
+
export const Issue: TableMetadata = {
|
11
11
|
_id: '',
|
12
12
|
dateCreated: 0,
|
13
13
|
dateUpdated: 0,
|
@@ -15,6 +15,7 @@ export const Case: TableMetadata = {
|
|
15
15
|
description:
|
16
16
|
'Represents an issue or feature enhancement, which is a request to improve a product or service.',
|
17
17
|
metadataType: 'issue',
|
18
|
+
tasky: true,
|
18
19
|
references: [
|
19
20
|
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
|
20
21
|
'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
|
@@ -9,6 +9,7 @@ exports.Opportunity = {
|
|
9
9
|
label: 'Opportunity',
|
10
10
|
description: 'Represents an opportunity, which is a sale or pending deal.',
|
11
11
|
metadataType: 'opportunity',
|
12
|
+
tasky: true,
|
12
13
|
references: [
|
13
14
|
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_opportunity.htm',
|
14
15
|
],
|
@@ -13,6 +13,7 @@ export const Opportunity: TableMetadata = {
|
|
13
13
|
label: 'Opportunity',
|
14
14
|
description: 'Represents an opportunity, which is a sale or pending deal.',
|
15
15
|
metadataType: 'opportunity',
|
16
|
+
tasky: true,
|
16
17
|
references: [
|
17
18
|
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_opportunity.htm',
|
18
19
|
],
|
@@ -9,6 +9,7 @@ exports.Organization = {
|
|
9
9
|
label: 'Organization',
|
10
10
|
description: 'Represents an organization, which is a company we are working with.',
|
11
11
|
metadataType: 'organization',
|
12
|
+
tasky: false,
|
12
13
|
references: [
|
13
14
|
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_account.htm',
|
14
15
|
],
|
@@ -8,6 +8,7 @@ export const Organization: TableMetadata = {
|
|
8
8
|
description:
|
9
9
|
'Represents an organization, which is a company we are working with.',
|
10
10
|
metadataType: 'organization',
|
11
|
+
tasky: false,
|
11
12
|
references: [
|
12
13
|
'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_account.htm',
|
13
14
|
],
|
package/model.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderResponseQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.EntityEntryQL = exports.EntityEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.TaskStepQL = exports.TaskStepInputQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.BusinessObjectLinkQL = exports.BusinessObjectLinkInputQL = exports.SharingTenantQL = exports.TenantSettingQL = exports.SharingDomainQL = exports.SharingTagQL = exports.SharingTagInputQL = exports.InviteSharingTagInputQL = exports.EditorQL = exports.EditorInputQL = exports.HighlightQL = exports.RelationType = exports.EntityType = exports.RecordType = exports.ThumbsDirection = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.TagRecommendationType = exports.InviteStatus = exports.OrderByDirection = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.TaskPriority = exports.AccessType = exports.SharingLevel = exports.ClientType = exports.ExportType = exports.TagType = exports.UpsertType = exports.RecommendationType = exports.BlockType = void 0;
|
4
|
-
exports.
|
5
|
-
exports.
|
6
|
-
exports.
|
7
|
-
exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.GraphSearchEventsInputQL = exports.GraphSearchInputQL = exports.GraphSearchInputFields = exports.SortOptionInputQL = exports.BusinessObjectFilterInputQL = exports.StringFilterInputQL = exports.NumberFilterInputQL = exports.ChildItemQL = exports.ChildItemInputQL = exports.ChildItemFields = exports.ParentItemQL = exports.ParentItemInputQL = exports.ParentItemFields = exports.OrderDirection = exports.OrderDirectionQL = exports.TaskStatusQL = exports.BlockTypeQL = void 0;
|
4
|
+
exports.BlockFieldsForUpsert = exports.BlockFields = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = exports.NotificationRecommendationQL = exports.ShareRecommendationQL = exports.UpsertRecommendationQL = exports.ConnectRecommendationQL = exports.TenantLight = exports.TenantLightQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.GraphTagsInputQL = exports.GraphTagQL = exports.TagTypeQL = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.DashboardTagSubscriptionQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.History = exports.Metadata = exports.MetadataQL = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFieldsForUpsert = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFieldsForUpsert = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = void 0;
|
5
|
+
exports.TableMetadataQL = exports.FieldValueQL = exports.FieldValueInputQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DashboardMetadata = exports.DashboardMetadataQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Dashboard = exports.DashboardQL = exports.BlockDataQL = exports.Document = exports.DocumentQL = exports.DocumentFields = exports.Thread = 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.Note = exports.NoteQL = exports.Section = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFieldsForUpsert = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockQL = void 0;
|
6
|
+
exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveFolderOutputQL = exports.ArchiveFolderInputQL = exports.FindFoldersInputQL = exports.FindFolderInputQL = exports.UpsertFolderInputQL = exports.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.MergeTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveRecommendationOutputQL = exports.ArchiveRecommendationInputQL = exports.UpdateRecommendationInputQL = exports.ArchiveBlockOutputQL = exports.ArchiveBlockInputQL = exports.FindBlocksInputQL = exports.FindBlockInputQL = exports.UpsertNoteInputQL = exports.FindDashboardInputQL = exports.UpsertDocumentInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindDomainInputQL = exports.FindTenantsInputQL = exports.FindTenantInputQL = exports.UpsertRecordsInputQL = exports.FindRecordsInputQL = exports.FindRecordInputQL = exports.Table = exports.TableQL = exports.TableFields = exports.Record = exports.RecordQL = exports.RecordInputQL = exports.TableMetadata = void 0;
|
7
|
+
exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.GraphSearchEventsInputQL = exports.GraphSearchInputQL = exports.GraphSearchInputFields = exports.SortOptionInputQL = exports.BusinessObjectFilterInputQL = exports.StringFilterInputQL = exports.NumberFilterInputQL = exports.ChildItemQL = exports.ChildItemInputQL = exports.ChildItemFields = exports.ParentItemQL = exports.ParentItemInputQL = exports.ParentItemFields = exports.OrderDirection = exports.OrderDirectionQL = exports.TaskStatusQL = exports.RecommendationTypeQL = exports.BlockTypeQL = exports.SearchInputQL = void 0;
|
8
8
|
const uuid_1 = require("uuid");
|
9
9
|
/*
|
10
10
|
These are the core primitives of our model. These represent the entities that show
|
@@ -30,12 +30,14 @@ var BlockType;
|
|
30
30
|
BlockType["Table"] = "table";
|
31
31
|
BlockType["Folder"] = "folder";
|
32
32
|
BlockType["Search"] = "search";
|
33
|
+
BlockType["Changeset"] = "changeset";
|
33
34
|
})(BlockType || (exports.BlockType = BlockType = {}));
|
34
35
|
var RecommendationType;
|
35
36
|
(function (RecommendationType) {
|
36
37
|
RecommendationType["Connect"] = "connect";
|
37
38
|
RecommendationType["Upsert"] = "upsert";
|
38
39
|
RecommendationType["Share"] = "share";
|
40
|
+
RecommendationType["Notification"] = "notification";
|
39
41
|
})(RecommendationType || (exports.RecommendationType = RecommendationType = {}));
|
40
42
|
var UpsertType;
|
41
43
|
(function (UpsertType) {
|
@@ -757,6 +759,10 @@ type ShareRecommendation {
|
|
757
759
|
shared: Boolean!
|
758
760
|
tenant: TenantLight!
|
759
761
|
}`;
|
762
|
+
exports.NotificationRecommendationQL = `
|
763
|
+
type NotificationRecommendation {
|
764
|
+
dashboard: Dashboard!
|
765
|
+
}`;
|
760
766
|
exports.RecommendationQL = `
|
761
767
|
type Recommendation {${exports.SharedPrimitiveFields}
|
762
768
|
referenceBlock: ReferenceBlock
|
@@ -764,6 +770,7 @@ type Recommendation {${exports.SharedPrimitiveFields}
|
|
764
770
|
connectRecommendation: ConnectRecommendation
|
765
771
|
upsertRecommendation: UpsertRecommendation
|
766
772
|
shareRecommendation: ShareRecommendation
|
773
|
+
notificationRecommendation: NotificationRecommendation
|
767
774
|
parentId: String
|
768
775
|
dateDue: Float
|
769
776
|
dateRemindMe: Float
|
@@ -1103,6 +1110,7 @@ exports.Document = Document;
|
|
1103
1110
|
exports.BlockDataQL = `
|
1104
1111
|
type BlockData {
|
1105
1112
|
name: String!
|
1113
|
+
_ids: String
|
1106
1114
|
blockType: String
|
1107
1115
|
title: String
|
1108
1116
|
document: String
|
@@ -1255,10 +1263,12 @@ type FieldValue {
|
|
1255
1263
|
exports.TableMetadataQL = `
|
1256
1264
|
type TableMetadata {${exports.MetadataFields}
|
1257
1265
|
fields: [Field]!
|
1266
|
+
tasky: Boolean!
|
1258
1267
|
}`;
|
1259
1268
|
class TableMetadata extends Metadata {
|
1260
1269
|
constructor(label, description, metadataType, fields, classifiers, threshold) {
|
1261
1270
|
super(label, description, metadataType, classifiers, threshold);
|
1271
|
+
this.tasky = false;
|
1262
1272
|
this.fields = fields;
|
1263
1273
|
}
|
1264
1274
|
}
|
@@ -1575,6 +1585,7 @@ input SearchTagsInput {
|
|
1575
1585
|
exports.SearchInputQL = `
|
1576
1586
|
input SearchInput {
|
1577
1587
|
blockType: String
|
1588
|
+
recommendationType: String
|
1578
1589
|
label: String
|
1579
1590
|
search: String
|
1580
1591
|
_ids: [String]
|
@@ -1616,6 +1627,13 @@ enum BlockType {
|
|
1616
1627
|
${BlockType.Todo.toUpperCase()}
|
1617
1628
|
${BlockType.Website.toUpperCase()}
|
1618
1629
|
}`;
|
1630
|
+
exports.RecommendationTypeQL = `
|
1631
|
+
enum RecommendationType {
|
1632
|
+
${RecommendationType.Connect.toUpperCase()}
|
1633
|
+
${RecommendationType.Share.toUpperCase()}
|
1634
|
+
${RecommendationType.Upsert.toUpperCase()}
|
1635
|
+
${RecommendationType.Notification.toUpperCase()}
|
1636
|
+
}`;
|
1619
1637
|
exports.TaskStatusQL = `
|
1620
1638
|
enum TaskStatus {
|
1621
1639
|
${TaskStatus.Completed.toUpperCase()}
|
@@ -1687,6 +1705,7 @@ exports.GraphSearchInputFields = `
|
|
1687
1705
|
_ids: [String]
|
1688
1706
|
tenantIdCreateds: [String]
|
1689
1707
|
tagIds: [String]
|
1708
|
+
recommendationTypes: [RecommendationType]
|
1690
1709
|
blockTypes: [BlockType]
|
1691
1710
|
statuses: [TaskStatus]
|
1692
1711
|
businessObjects: [BusinessObjectFilterInput]
|
@@ -1765,6 +1784,7 @@ ${exports.TenantLightQL}
|
|
1765
1784
|
${exports.ConnectRecommendationQL}
|
1766
1785
|
${exports.UpsertRecommendationQL}
|
1767
1786
|
${exports.ShareRecommendationQL}
|
1787
|
+
${exports.NotificationRecommendationQL}
|
1768
1788
|
${exports.RecommendationQL}
|
1769
1789
|
${exports.ConnectedProviderQL}
|
1770
1790
|
${exports.ReferenceBlockInputQL}
|
@@ -1843,6 +1863,7 @@ ${exports.SearchTagsInputQL}
|
|
1843
1863
|
${exports.SearchInputQL}
|
1844
1864
|
${exports.UpdateTagSharingInputQL}
|
1845
1865
|
${exports.BlockTypeQL}
|
1866
|
+
${exports.RecommendationTypeQL}
|
1846
1867
|
${exports.TaskStatusQL}
|
1847
1868
|
${exports.OrderDirectionQL}
|
1848
1869
|
${exports.ParentItemQL}
|
package/model.ts
CHANGED
@@ -23,12 +23,14 @@ export enum BlockType {
|
|
23
23
|
Table = 'table',
|
24
24
|
Folder = 'folder',
|
25
25
|
Search = 'search',
|
26
|
+
Changeset = 'changeset',
|
26
27
|
}
|
27
28
|
|
28
29
|
export enum RecommendationType {
|
29
30
|
Connect = 'connect',
|
30
31
|
Upsert = 'upsert',
|
31
32
|
Share = 'share',
|
33
|
+
Notification = 'notification',
|
32
34
|
}
|
33
35
|
|
34
36
|
export enum UpsertType {
|
@@ -1153,6 +1155,14 @@ export interface ShareRecommendation {
|
|
1153
1155
|
tenant: TenantLight;
|
1154
1156
|
}
|
1155
1157
|
|
1158
|
+
export const NotificationRecommendationQL = `
|
1159
|
+
type NotificationRecommendation {
|
1160
|
+
dashboard: Dashboard!
|
1161
|
+
}`;
|
1162
|
+
export interface NotificationRecommendation {
|
1163
|
+
dashboard: Dashboard;
|
1164
|
+
}
|
1165
|
+
|
1156
1166
|
export interface BaseTask {
|
1157
1167
|
dateDue?: number;
|
1158
1168
|
dateRemindMe?: number;
|
@@ -1169,6 +1179,7 @@ type Recommendation {${SharedPrimitiveFields}
|
|
1169
1179
|
connectRecommendation: ConnectRecommendation
|
1170
1180
|
upsertRecommendation: UpsertRecommendation
|
1171
1181
|
shareRecommendation: ShareRecommendation
|
1182
|
+
notificationRecommendation: NotificationRecommendation
|
1172
1183
|
parentId: String
|
1173
1184
|
dateDue: Float
|
1174
1185
|
dateRemindMe: Float
|
@@ -1185,6 +1196,7 @@ export class Recommendation extends SharedPrimitive implements BaseTask {
|
|
1185
1196
|
connectRecommendation?: ConnectRecommendation; // For provider recommendations, we use this field
|
1186
1197
|
upsertRecommendation?: UpsertRecommendation; // For data upsert recommendations, we use this field
|
1187
1198
|
shareRecommendation?: ShareRecommendation; // For instances when a block is shared with a tenant
|
1199
|
+
notificationRecommendation?: NotificationRecommendation; // For instances where the app wants to tell us something
|
1188
1200
|
parentId?: string; // Any parent recommendation that generated this recommendation
|
1189
1201
|
dateDue?: number;
|
1190
1202
|
dateRemindMe?: number;
|
@@ -1887,6 +1899,7 @@ export class Document extends BusinessObject {
|
|
1887
1899
|
export const BlockDataQL = `
|
1888
1900
|
type BlockData {
|
1889
1901
|
name: String!
|
1902
|
+
_ids: String
|
1890
1903
|
blockType: String
|
1891
1904
|
title: String
|
1892
1905
|
document: String
|
@@ -1896,6 +1909,7 @@ type BlockData {
|
|
1896
1909
|
}`;
|
1897
1910
|
export interface BlockData {
|
1898
1911
|
name: string;
|
1912
|
+
_ids?: string[];
|
1899
1913
|
blockType?: BlockType;
|
1900
1914
|
title?: string;
|
1901
1915
|
document?: string;
|
@@ -2014,12 +2028,6 @@ export interface BlockDescription {
|
|
2014
2028
|
tagType?: TagType;
|
2015
2029
|
}
|
2016
2030
|
|
2017
|
-
export interface BlockDescriptionResult {
|
2018
|
-
name: string;
|
2019
|
-
title?: string;
|
2020
|
-
content: string;
|
2021
|
-
}
|
2022
|
-
|
2023
2031
|
export const DocumentMetadataQL = `
|
2024
2032
|
type DocumentMetadata {${MetadataFields}
|
2025
2033
|
blockDescriptions: [BlockDescription]!
|
@@ -2182,9 +2190,11 @@ export interface FieldValue {
|
|
2182
2190
|
export const TableMetadataQL = `
|
2183
2191
|
type TableMetadata {${MetadataFields}
|
2184
2192
|
fields: [Field]!
|
2193
|
+
tasky: Boolean!
|
2185
2194
|
}`;
|
2186
2195
|
export class TableMetadata extends Metadata {
|
2187
2196
|
fields: Field[];
|
2197
|
+
tasky: boolean;
|
2188
2198
|
|
2189
2199
|
constructor(
|
2190
2200
|
label: string,
|
@@ -2196,6 +2206,7 @@ export class TableMetadata extends Metadata {
|
|
2196
2206
|
) {
|
2197
2207
|
super(label, description, metadataType, classifiers, threshold);
|
2198
2208
|
|
2209
|
+
this.tasky = false;
|
2199
2210
|
this.fields = fields;
|
2200
2211
|
}
|
2201
2212
|
}
|
@@ -2813,6 +2824,7 @@ export interface SearchTagsInput {
|
|
2813
2824
|
export const SearchInputQL = `
|
2814
2825
|
input SearchInput {
|
2815
2826
|
blockType: String
|
2827
|
+
recommendationType: String
|
2816
2828
|
label: String
|
2817
2829
|
search: String
|
2818
2830
|
_ids: [String]
|
@@ -2837,6 +2849,7 @@ input SearchInput {
|
|
2837
2849
|
}`;
|
2838
2850
|
export interface SearchInput {
|
2839
2851
|
blockType?: BlockType;
|
2852
|
+
recommendationType?: RecommendationType;
|
2840
2853
|
label?: string;
|
2841
2854
|
search?: string;
|
2842
2855
|
_ids?: string[];
|
@@ -2880,6 +2893,14 @@ enum BlockType {
|
|
2880
2893
|
${BlockType.Website.toUpperCase()}
|
2881
2894
|
}`;
|
2882
2895
|
|
2896
|
+
export const RecommendationTypeQL = `
|
2897
|
+
enum RecommendationType {
|
2898
|
+
${RecommendationType.Connect.toUpperCase()}
|
2899
|
+
${RecommendationType.Share.toUpperCase()}
|
2900
|
+
${RecommendationType.Upsert.toUpperCase()}
|
2901
|
+
${RecommendationType.Notification.toUpperCase()}
|
2902
|
+
}`;
|
2903
|
+
|
2883
2904
|
export const TaskStatusQL = `
|
2884
2905
|
enum TaskStatus {
|
2885
2906
|
${TaskStatus.Completed.toUpperCase()}
|
@@ -2993,6 +3014,7 @@ export const GraphSearchInputFields = `
|
|
2993
3014
|
_ids: [String]
|
2994
3015
|
tenantIdCreateds: [String]
|
2995
3016
|
tagIds: [String]
|
3017
|
+
recommendationTypes: [RecommendationType]
|
2996
3018
|
blockTypes: [BlockType]
|
2997
3019
|
statuses: [TaskStatus]
|
2998
3020
|
businessObjects: [BusinessObjectFilterInput]
|
@@ -3112,6 +3134,7 @@ ${TenantLightQL}
|
|
3112
3134
|
${ConnectRecommendationQL}
|
3113
3135
|
${UpsertRecommendationQL}
|
3114
3136
|
${ShareRecommendationQL}
|
3137
|
+
${NotificationRecommendationQL}
|
3115
3138
|
${RecommendationQL}
|
3116
3139
|
${ConnectedProviderQL}
|
3117
3140
|
${ReferenceBlockInputQL}
|
@@ -3190,6 +3213,7 @@ ${SearchTagsInputQL}
|
|
3190
3213
|
${SearchInputQL}
|
3191
3214
|
${UpdateTagSharingInputQL}
|
3192
3215
|
${BlockTypeQL}
|
3216
|
+
${RecommendationTypeQL}
|
3193
3217
|
${TaskStatusQL}
|
3194
3218
|
${OrderDirectionQL}
|
3195
3219
|
${ParentItemQL}
|