@bigfootai/bigfoot-types 4.7.25 → 4.7.26
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/model.js +30 -4
- package/model.ts +44 -0
- package/package.json +1 -1
package/model.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.
|
5
|
-
exports.
|
6
|
-
exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveFolderOutputQL = exports.ArchiveFolderInputQL = exports.FindFoldersInputQL = exports.FindFolderInputQL = exports.UpsertFolderInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.MergeTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = void 0;
|
3
|
+
exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderResponseQL = 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.BusinessObjectLinkQL = exports.BusinessObjectLinkInputQL = exports.SharingTenantQL = 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.TagRecommendationVariation = exports.TagRecommendationType = exports.InviteStatus = exports.OrderByDirection = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.TaskPriority = exports.SharingLevel = exports.ClientType = exports.TagType = exports.UpsertType = exports.RecommendationType = exports.BlockType = void 0;
|
4
|
+
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.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = exports.UpsertRecommendationQL = exports.ConnectRecommendationQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.BusinessObjectLinkingToTagQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.Metadata = exports.MetadataQL = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = void 0;
|
5
|
+
exports.UpdateRecommendationInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = 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 = 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 = void 0;
|
6
|
+
exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveFolderOutputQL = exports.ArchiveFolderInputQL = exports.FindFoldersInputQL = exports.FindFolderInputQL = exports.UpsertFolderInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = 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 = 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
|
@@ -163,6 +163,11 @@ var ProcessingStage;
|
|
163
163
|
ProcessingStage["Waiting"] = "waiting";
|
164
164
|
ProcessingStage["Stopped"] = "stopped";
|
165
165
|
})(ProcessingStage || (exports.ProcessingStage = ProcessingStage = {}));
|
166
|
+
var ThumbsDirection;
|
167
|
+
(function (ThumbsDirection) {
|
168
|
+
ThumbsDirection["Up"] = "up";
|
169
|
+
ThumbsDirection["Down"] = "down";
|
170
|
+
})(ThumbsDirection || (exports.ThumbsDirection = ThumbsDirection = {}));
|
166
171
|
var RecordType;
|
167
172
|
(function (RecordType) {
|
168
173
|
RecordType["Opportunity"] = "opportunity";
|
@@ -677,6 +682,8 @@ type Recommendation {${exports.SharedPrimitiveFields}
|
|
677
682
|
archived: Boolean!
|
678
683
|
favorite: Boolean!
|
679
684
|
snoozed: Boolean!
|
685
|
+
thumbs: String
|
686
|
+
comment: String
|
680
687
|
status: Int
|
681
688
|
}`;
|
682
689
|
class Recommendation extends SharedPrimitive {
|
@@ -1214,6 +1221,22 @@ type ArchiveNoteOutput {
|
|
1214
1221
|
_id: String!
|
1215
1222
|
archived: Boolean!
|
1216
1223
|
}`;
|
1224
|
+
exports.UpdateRecommendationInputQL = `
|
1225
|
+
input UpdateRecommendationInput {
|
1226
|
+
_id: String!
|
1227
|
+
thumbs: String
|
1228
|
+
comment: String
|
1229
|
+
}`;
|
1230
|
+
exports.ArchiveRecommendationInputQL = `
|
1231
|
+
input ArchiveRecommendationInput {
|
1232
|
+
_id: String!
|
1233
|
+
archive: Boolean
|
1234
|
+
}`;
|
1235
|
+
exports.ArchiveRecommendationOutputQL = `
|
1236
|
+
type ArchiveRecommendationOutput {
|
1237
|
+
_id: String!
|
1238
|
+
archived: Boolean!
|
1239
|
+
}`;
|
1217
1240
|
exports.FindProviderInputQL = `
|
1218
1241
|
input FindProviderInput {
|
1219
1242
|
provider: String!
|
@@ -1519,6 +1542,9 @@ ${exports.FindNoteInputQL}
|
|
1519
1542
|
${exports.FindNotesInputQL}
|
1520
1543
|
${exports.ArchiveNoteInputQL}
|
1521
1544
|
${exports.ArchiveNoteOutputQL}
|
1545
|
+
${exports.UpdateRecommendationInputQL}
|
1546
|
+
${exports.ArchiveRecommendationInputQL}
|
1547
|
+
${exports.ArchiveRecommendationOutputQL}
|
1522
1548
|
${exports.FindProviderInputQL}
|
1523
1549
|
${exports.FindSyncInputQL}
|
1524
1550
|
${exports.SharingDomainInputQL}
|
package/model.ts
CHANGED
@@ -158,6 +158,11 @@ export enum ProcessingStage {
|
|
158
158
|
Stopped = 'stopped',
|
159
159
|
}
|
160
160
|
|
161
|
+
export enum ThumbsDirection {
|
162
|
+
Up = 'up',
|
163
|
+
Down = 'down',
|
164
|
+
}
|
165
|
+
|
161
166
|
export enum RecordType {
|
162
167
|
Opportunity = 'opportunity',
|
163
168
|
Case = 'case',
|
@@ -1039,6 +1044,8 @@ type Recommendation {${SharedPrimitiveFields}
|
|
1039
1044
|
archived: Boolean!
|
1040
1045
|
favorite: Boolean!
|
1041
1046
|
snoozed: Boolean!
|
1047
|
+
thumbs: String
|
1048
|
+
comment: String
|
1042
1049
|
status: Int
|
1043
1050
|
}`;
|
1044
1051
|
export class Recommendation extends SharedPrimitive implements BaseTask {
|
@@ -1052,6 +1059,8 @@ export class Recommendation extends SharedPrimitive implements BaseTask {
|
|
1052
1059
|
archived: boolean;
|
1053
1060
|
favorite: boolean;
|
1054
1061
|
snoozed: boolean;
|
1062
|
+
thumbs: ThumbsDirection; // Added so we can get some basic feedback on recommendations
|
1063
|
+
comment: String; // Added likely just for the private beta, but perhaps longer!
|
1055
1064
|
status?: TaskStatus;
|
1056
1065
|
|
1057
1066
|
constructor(
|
@@ -2208,6 +2217,38 @@ export interface ArchiveNoteOutput {
|
|
2208
2217
|
archived: boolean;
|
2209
2218
|
}
|
2210
2219
|
|
2220
|
+
export const UpdateRecommendationInputQL = `
|
2221
|
+
input UpdateRecommendationInput {
|
2222
|
+
_id: String!
|
2223
|
+
thumbs: String
|
2224
|
+
comment: String
|
2225
|
+
}`;
|
2226
|
+
export interface UpdateRecommendationInput {
|
2227
|
+
_id?: string;
|
2228
|
+
thumbs: ThumbsDirection;
|
2229
|
+
comment: string;
|
2230
|
+
}
|
2231
|
+
|
2232
|
+
export const ArchiveRecommendationInputQL = `
|
2233
|
+
input ArchiveRecommendationInput {
|
2234
|
+
_id: String!
|
2235
|
+
archive: Boolean
|
2236
|
+
}`;
|
2237
|
+
export interface ArchiveRecommendationInput {
|
2238
|
+
_id: string;
|
2239
|
+
archive?: boolean;
|
2240
|
+
}
|
2241
|
+
|
2242
|
+
export const ArchiveRecommendationOutputQL = `
|
2243
|
+
type ArchiveRecommendationOutput {
|
2244
|
+
_id: String!
|
2245
|
+
archived: Boolean!
|
2246
|
+
}`;
|
2247
|
+
export interface ArchiveRecommendationOutput {
|
2248
|
+
_id: string;
|
2249
|
+
archived: boolean;
|
2250
|
+
}
|
2251
|
+
|
2211
2252
|
export const FindProviderInputQL = `
|
2212
2253
|
input FindProviderInput {
|
2213
2254
|
provider: String!
|
@@ -2711,6 +2752,9 @@ ${FindNoteInputQL}
|
|
2711
2752
|
${FindNotesInputQL}
|
2712
2753
|
${ArchiveNoteInputQL}
|
2713
2754
|
${ArchiveNoteOutputQL}
|
2755
|
+
${UpdateRecommendationInputQL}
|
2756
|
+
${ArchiveRecommendationInputQL}
|
2757
|
+
${ArchiveRecommendationOutputQL}
|
2714
2758
|
${FindProviderInputQL}
|
2715
2759
|
${FindSyncInputQL}
|
2716
2760
|
${SharingDomainInputQL}
|