@bigfootai/bigfoot-types 2.11.7 → 2.12.1
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 +90 -4
- package/model.ts +159 -3
- package/package.json +1 -1
package/model.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Domain = exports.Tenant = exports.TenantQL = exports.Tag = exports.Provider = exports.Sync = exports.Primitive = exports.PrimitiveFields = exports.ChangesQL = exports.ReferenceBlockQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.EntityEntryQL = exports.MachineLearningEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.DocumentSentimentQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.SharingTagQL = exports.EditorQL = exports.HighlightQL = exports.RelationType = exports.EntityType = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.InviteStatus = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
|
|
4
|
-
exports.GraphQLTypes = exports.Table = exports.FieldVariation = exports.FieldType = exports.Template = exports.Website = exports.Thread = exports.Todo = exports.Event = exports.Calendar = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.Task = exports.TaskQL = exports.Note = void 0;
|
|
4
|
+
exports.GraphQLTypes = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.InsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.Table = exports.FieldVariation = exports.FieldType = exports.Template = exports.Website = exports.Thread = exports.Todo = exports.Event = exports.Calendar = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.Task = exports.TaskQL = exports.Note = void 0;
|
|
5
5
|
const uuid_1 = require("uuid");
|
|
6
6
|
/*
|
|
7
7
|
These are the core primitives of our model. These represent the entities that show
|
|
@@ -219,14 +219,14 @@ exports.ArgumentEntryQL = `
|
|
|
219
219
|
type ArgumentEntry {
|
|
220
220
|
text: String!
|
|
221
221
|
highlight: Highlight!
|
|
222
|
-
|
|
222
|
+
entities: [EntityReference]!
|
|
223
223
|
}`;
|
|
224
224
|
exports.RelationEntryQL = `
|
|
225
225
|
type RelationEntry {
|
|
226
226
|
type: String!
|
|
227
227
|
score: Int!
|
|
228
228
|
highlight: Highlight!
|
|
229
|
-
|
|
229
|
+
arguments: [ArgumentEntry]!
|
|
230
230
|
}`;
|
|
231
231
|
exports.MachineLearningEntryFields = `
|
|
232
232
|
highlights: [Highlight]`;
|
|
@@ -571,6 +571,78 @@ class Table extends BusinessObject {
|
|
|
571
571
|
exports.Table = Table;
|
|
572
572
|
//// FOR RECORDS END
|
|
573
573
|
// METADATA OBJECTS END
|
|
574
|
+
// API OBJECTS START
|
|
575
|
+
exports.FindArticleInputQL = `
|
|
576
|
+
type FindArticleInput {
|
|
577
|
+
originBlockId: String!
|
|
578
|
+
type: String!
|
|
579
|
+
}`;
|
|
580
|
+
exports.FindArticlesInputQL = `
|
|
581
|
+
type FindArticlesInput {
|
|
582
|
+
originBlockId: String!
|
|
583
|
+
type: String!
|
|
584
|
+
}`;
|
|
585
|
+
exports.FindCalendarInputQL = `
|
|
586
|
+
type FindCalendarInput {
|
|
587
|
+
_id: String!
|
|
588
|
+
}`;
|
|
589
|
+
exports.FindEventInputQL = `
|
|
590
|
+
type FindEventInput {
|
|
591
|
+
_id: String!
|
|
592
|
+
}`;
|
|
593
|
+
exports.InsertNoteInputQL = `
|
|
594
|
+
type InsertNoteInput {
|
|
595
|
+
document: String!
|
|
596
|
+
editor: Editor!
|
|
597
|
+
changes: Changes!
|
|
598
|
+
}`;
|
|
599
|
+
exports.UpsertNoteInputQL = `
|
|
600
|
+
type UpsertNoteInput {
|
|
601
|
+
_id: String!
|
|
602
|
+
document: String!
|
|
603
|
+
editor: Editor!
|
|
604
|
+
changes: Changes!
|
|
605
|
+
}`;
|
|
606
|
+
exports.FindNoteInputQL = `
|
|
607
|
+
type FindNoteInput {
|
|
608
|
+
_id: String!
|
|
609
|
+
archived: Boolean
|
|
610
|
+
}`;
|
|
611
|
+
exports.FindNotesInputQL = `
|
|
612
|
+
type FindNotesInput {
|
|
613
|
+
tagIds: [String]
|
|
614
|
+
archived: Boolean
|
|
615
|
+
}`;
|
|
616
|
+
exports.ArchiveNoteInputQL = `
|
|
617
|
+
type ArchiveNoteInput {
|
|
618
|
+
_id: String!
|
|
619
|
+
archived: Boolean
|
|
620
|
+
}`;
|
|
621
|
+
exports.FindProviderInputQL = `
|
|
622
|
+
type FindProviderInput {
|
|
623
|
+
provider: String!
|
|
624
|
+
}`;
|
|
625
|
+
exports.FindSyncInputQL = `
|
|
626
|
+
type FindSyncInput {
|
|
627
|
+
_id: String!
|
|
628
|
+
}`;
|
|
629
|
+
exports.FindTaskInputQL = `
|
|
630
|
+
type FindTaskInput {
|
|
631
|
+
_id: String!
|
|
632
|
+
archived: Boolean
|
|
633
|
+
}`;
|
|
634
|
+
exports.FindTasksInputQL = `
|
|
635
|
+
type FindTasksInput {
|
|
636
|
+
originNoteId: String
|
|
637
|
+
tagIds: [String]
|
|
638
|
+
archived: Boolean
|
|
639
|
+
}`;
|
|
640
|
+
exports.ArchiveTaskInputQL = `
|
|
641
|
+
type ArchiveTaskInput {
|
|
642
|
+
_id: String!
|
|
643
|
+
archived: Boolean
|
|
644
|
+
}`;
|
|
645
|
+
// THE GRAPH QL DEFINITIONS
|
|
574
646
|
exports.GraphQLTypes = `
|
|
575
647
|
${exports.HighlightQL}
|
|
576
648
|
${exports.EditorQL}
|
|
@@ -592,4 +664,18 @@ ${exports.ArticleQL}
|
|
|
592
664
|
${exports.TenantQL}
|
|
593
665
|
${exports.BusinessObjectQL}
|
|
594
666
|
${exports.NoteQL}
|
|
595
|
-
${exports.TaskQL}
|
|
667
|
+
${exports.TaskQL}
|
|
668
|
+
${exports.FindArticleInputQL}
|
|
669
|
+
${exports.FindArticlesInputQL}
|
|
670
|
+
${exports.FindCalendarInputQL}
|
|
671
|
+
${exports.FindEventInputQL}
|
|
672
|
+
${exports.InsertNoteInputQL}
|
|
673
|
+
${exports.UpsertNoteInputQL}
|
|
674
|
+
${exports.FindNoteInputQL}
|
|
675
|
+
${exports.FindNotesInputQL}
|
|
676
|
+
${exports.ArchiveNoteInputQL}
|
|
677
|
+
${exports.FindProviderInputQL}
|
|
678
|
+
${exports.FindSyncInputQL}
|
|
679
|
+
${exports.FindTaskInputQL}
|
|
680
|
+
${exports.FindTasksInputQL}
|
|
681
|
+
${exports.ArchiveTaskInputQL}`;
|
package/model.ts
CHANGED
|
@@ -290,7 +290,7 @@ export const ArgumentEntryQL = `
|
|
|
290
290
|
type ArgumentEntry {
|
|
291
291
|
text: String!
|
|
292
292
|
highlight: Highlight!
|
|
293
|
-
|
|
293
|
+
entities: [EntityReference]!
|
|
294
294
|
}`;
|
|
295
295
|
export interface ArgumentEntry {
|
|
296
296
|
text: string;
|
|
@@ -303,7 +303,7 @@ type RelationEntry {
|
|
|
303
303
|
type: String!
|
|
304
304
|
score: Int!
|
|
305
305
|
highlight: Highlight!
|
|
306
|
-
|
|
306
|
+
arguments: [ArgumentEntry]!
|
|
307
307
|
}`;
|
|
308
308
|
export interface RelationEntry {
|
|
309
309
|
type: RelationType;
|
|
@@ -1197,6 +1197,148 @@ export class Table extends BusinessObject {
|
|
|
1197
1197
|
|
|
1198
1198
|
// METADATA OBJECTS END
|
|
1199
1199
|
|
|
1200
|
+
// API OBJECTS START
|
|
1201
|
+
export const FindArticleInputQL = `
|
|
1202
|
+
type FindArticleInput {
|
|
1203
|
+
originBlockId: String!
|
|
1204
|
+
type: String!
|
|
1205
|
+
}`;
|
|
1206
|
+
export interface FindArticleInput {
|
|
1207
|
+
originBlockId: string;
|
|
1208
|
+
type: BlockType;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
export const FindArticlesInputQL = `
|
|
1212
|
+
type FindArticlesInput {
|
|
1213
|
+
originBlockId: String!
|
|
1214
|
+
type: String!
|
|
1215
|
+
}`;
|
|
1216
|
+
export interface FindArticlesInput {
|
|
1217
|
+
originBlockId: string;
|
|
1218
|
+
type: BlockType;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
export const FindCalendarInputQL = `
|
|
1222
|
+
type FindCalendarInput {
|
|
1223
|
+
_id: String!
|
|
1224
|
+
}`;
|
|
1225
|
+
export interface FindCalendarInput {
|
|
1226
|
+
_id: string;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
export const FindEventInputQL = `
|
|
1230
|
+
type FindEventInput {
|
|
1231
|
+
_id: String!
|
|
1232
|
+
}`;
|
|
1233
|
+
export interface FindEventInput {
|
|
1234
|
+
_id: string;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
export const InsertNoteInputQL = `
|
|
1238
|
+
type InsertNoteInput {
|
|
1239
|
+
document: String!
|
|
1240
|
+
editor: Editor!
|
|
1241
|
+
changes: Changes!
|
|
1242
|
+
}`;
|
|
1243
|
+
export interface InsertNoteInput {
|
|
1244
|
+
document: string;
|
|
1245
|
+
editor: Editor;
|
|
1246
|
+
changes: Changes;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
export const UpsertNoteInputQL = `
|
|
1250
|
+
type UpsertNoteInput {
|
|
1251
|
+
_id: String!
|
|
1252
|
+
document: String!
|
|
1253
|
+
editor: Editor!
|
|
1254
|
+
changes: Changes!
|
|
1255
|
+
}`;
|
|
1256
|
+
export interface UpsertNoteInput {
|
|
1257
|
+
_id: string;
|
|
1258
|
+
document: string;
|
|
1259
|
+
editor: Editor;
|
|
1260
|
+
version: number;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
export const FindNoteInputQL = `
|
|
1264
|
+
type FindNoteInput {
|
|
1265
|
+
_id: String!
|
|
1266
|
+
archived: Boolean
|
|
1267
|
+
}`;
|
|
1268
|
+
export interface FindNoteInput {
|
|
1269
|
+
_id: string;
|
|
1270
|
+
archived?: boolean;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
export const FindNotesInputQL = `
|
|
1274
|
+
type FindNotesInput {
|
|
1275
|
+
tagIds: [String]
|
|
1276
|
+
archived: Boolean
|
|
1277
|
+
}`;
|
|
1278
|
+
export interface FindNotesInput {
|
|
1279
|
+
tagIds?: string[];
|
|
1280
|
+
archived?: boolean;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
export const ArchiveNoteInputQL = `
|
|
1284
|
+
type ArchiveNoteInput {
|
|
1285
|
+
_id: String!
|
|
1286
|
+
archived: Boolean
|
|
1287
|
+
}`;
|
|
1288
|
+
export interface ArchiveNoteInput {
|
|
1289
|
+
_id: string;
|
|
1290
|
+
archive?: boolean;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
export const FindProviderInputQL = `
|
|
1294
|
+
type FindProviderInput {
|
|
1295
|
+
provider: String!
|
|
1296
|
+
}`;
|
|
1297
|
+
export interface FindProviderInput {
|
|
1298
|
+
provider: string;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
export const FindSyncInputQL = `
|
|
1302
|
+
type FindSyncInput {
|
|
1303
|
+
_id: String!
|
|
1304
|
+
}`;
|
|
1305
|
+
export interface FindSyncInput {
|
|
1306
|
+
_id: string;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
export const FindTaskInputQL = `
|
|
1310
|
+
type FindTaskInput {
|
|
1311
|
+
_id: String!
|
|
1312
|
+
archived: Boolean
|
|
1313
|
+
}`;
|
|
1314
|
+
export interface FindTaskInput {
|
|
1315
|
+
_id: string;
|
|
1316
|
+
archived?: boolean;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
export const FindTasksInputQL = `
|
|
1320
|
+
type FindTasksInput {
|
|
1321
|
+
originNoteId: String
|
|
1322
|
+
tagIds: [String]
|
|
1323
|
+
archived: Boolean
|
|
1324
|
+
}`;
|
|
1325
|
+
export interface FindTasksInput {
|
|
1326
|
+
originNoteId?: string;
|
|
1327
|
+
tagIds?: string[];
|
|
1328
|
+
archived?: boolean;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
export const ArchiveTaskInputQL = `
|
|
1332
|
+
type ArchiveTaskInput {
|
|
1333
|
+
_id: String!
|
|
1334
|
+
archived: Boolean
|
|
1335
|
+
}`;
|
|
1336
|
+
export interface ArchiveTaskInput {
|
|
1337
|
+
_id: string;
|
|
1338
|
+
archive?: boolean;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
// THE GRAPH QL DEFINITIONS
|
|
1200
1342
|
export const GraphQLTypes = `
|
|
1201
1343
|
${HighlightQL}
|
|
1202
1344
|
${EditorQL}
|
|
@@ -1218,4 +1360,18 @@ ${ArticleQL}
|
|
|
1218
1360
|
${TenantQL}
|
|
1219
1361
|
${BusinessObjectQL}
|
|
1220
1362
|
${NoteQL}
|
|
1221
|
-
${TaskQL}
|
|
1363
|
+
${TaskQL}
|
|
1364
|
+
${FindArticleInputQL}
|
|
1365
|
+
${FindArticlesInputQL}
|
|
1366
|
+
${FindCalendarInputQL}
|
|
1367
|
+
${FindEventInputQL}
|
|
1368
|
+
${InsertNoteInputQL}
|
|
1369
|
+
${UpsertNoteInputQL}
|
|
1370
|
+
${FindNoteInputQL}
|
|
1371
|
+
${FindNotesInputQL}
|
|
1372
|
+
${ArchiveNoteInputQL}
|
|
1373
|
+
${FindProviderInputQL}
|
|
1374
|
+
${FindSyncInputQL}
|
|
1375
|
+
${FindTaskInputQL}
|
|
1376
|
+
${FindTasksInputQL}
|
|
1377
|
+
${ArchiveTaskInputQL}`;
|