@bigfootai/bigfoot-types 2.11.5 → 2.11.7
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 +170 -38
- package/model.ts +177 -46
- package/package.json +1 -1
package/model.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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
5
|
const uuid_1 = require("uuid");
|
|
5
6
|
/*
|
|
6
7
|
These are the core primitives of our model. These represent the entities that show
|
|
@@ -176,39 +177,109 @@ var RelationType;
|
|
|
176
177
|
RelationType["SpouseOf"] = "spouseOf";
|
|
177
178
|
RelationType["SubsidiaryOf"] = "subsidiaryOf";
|
|
178
179
|
})(RelationType || (exports.RelationType = RelationType = {}));
|
|
179
|
-
exports.
|
|
180
|
+
exports.HighlightQL = `
|
|
181
|
+
type Highlight {
|
|
182
|
+
indexStart: Int!
|
|
183
|
+
indexEnd: Int!
|
|
184
|
+
}`;
|
|
185
|
+
exports.EditorQL = `
|
|
186
|
+
type Editor {
|
|
187
|
+
clientType: String!
|
|
188
|
+
clientId: String!
|
|
189
|
+
tenantId: String
|
|
190
|
+
}`;
|
|
191
|
+
exports.SharingTagQL = `
|
|
192
|
+
type SharingTag {
|
|
193
|
+
tagId: String!
|
|
194
|
+
isShared: Boolean!
|
|
195
|
+
sharingApproach: String!
|
|
196
|
+
sharingLevel: String!
|
|
197
|
+
}`;
|
|
198
|
+
exports.ReactionSkinToneQL = `
|
|
199
|
+
type ReactionSkinTone {
|
|
200
|
+
skinTone: String!
|
|
201
|
+
tenantIds: [String]!
|
|
202
|
+
}`;
|
|
203
|
+
exports.ReactionQL = `
|
|
204
|
+
type Reaction {
|
|
205
|
+
skinTones: [ReactionSkinTone]!
|
|
206
|
+
unified: String!
|
|
207
|
+
}`;
|
|
208
|
+
exports.DocumentSentimentQL = `
|
|
209
|
+
type DocumentSentiment {
|
|
210
|
+
name: String!
|
|
211
|
+
score: Int!
|
|
212
|
+
}`;
|
|
213
|
+
exports.EntityReferenceQL = `
|
|
214
|
+
type EntityReference {
|
|
215
|
+
name: String!
|
|
216
|
+
type: String!
|
|
217
|
+
}`;
|
|
218
|
+
exports.ArgumentEntryQL = `
|
|
219
|
+
type ArgumentEntry {
|
|
220
|
+
text: String!
|
|
221
|
+
highlight: Highlight!
|
|
222
|
+
entities: [EntityReference]!
|
|
223
|
+
}`;
|
|
224
|
+
exports.RelationEntryQL = `
|
|
225
|
+
type RelationEntry {
|
|
226
|
+
type: String!
|
|
227
|
+
score: Int!
|
|
228
|
+
highlight: Highlight!
|
|
229
|
+
arguments: [ArgumentEntry]!
|
|
230
|
+
}`;
|
|
231
|
+
exports.MachineLearningEntryFields = `
|
|
232
|
+
highlights: [Highlight]`;
|
|
233
|
+
exports.EntityEntryQL = `
|
|
234
|
+
type EntityEntry {${exports.MachineLearningEntryFields}
|
|
235
|
+
name: String!
|
|
236
|
+
type: String!
|
|
237
|
+
score: Int!
|
|
238
|
+
}`;
|
|
239
|
+
exports.ProviderInfoQL = `
|
|
180
240
|
type ProviderInfo {
|
|
181
241
|
provider: String!
|
|
182
242
|
application: String!
|
|
183
243
|
}`;
|
|
184
|
-
exports.
|
|
244
|
+
exports.ProviderRequestQL = `
|
|
185
245
|
type ProviderRequest {
|
|
186
246
|
providerInfo: ID!
|
|
187
247
|
connectionId: String!
|
|
188
248
|
}`;
|
|
189
|
-
exports.
|
|
249
|
+
exports.CredentialQL = `
|
|
190
250
|
type Credential {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
251
|
+
email: String!
|
|
252
|
+
profile: String!
|
|
253
|
+
accessToken: String!
|
|
254
|
+
refreshToken: String
|
|
255
|
+
instanceUrl: String
|
|
256
|
+
dateExpiry: Float
|
|
197
257
|
}`;
|
|
198
|
-
exports.
|
|
258
|
+
exports.ConnectedProviderQL = `
|
|
199
259
|
type ConnectedProvider {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
260
|
+
providerId: String!
|
|
261
|
+
connectionId: String!
|
|
262
|
+
application: String!
|
|
263
|
+
credential: Credential
|
|
264
|
+
dateCreated: Float
|
|
265
|
+
dateUpdated: Float
|
|
266
|
+
}`;
|
|
267
|
+
exports.ReferenceBlockQL = `
|
|
268
|
+
type ReferenceBlock {
|
|
269
|
+
id: String!
|
|
270
|
+
version: Int!
|
|
271
|
+
type: String!
|
|
272
|
+
}`;
|
|
273
|
+
exports.ChangesQL = `
|
|
274
|
+
type Changes {
|
|
275
|
+
steps: [String]!
|
|
276
|
+
clientIds: [String]!
|
|
206
277
|
}`;
|
|
207
278
|
exports.PrimitiveFields = `
|
|
208
279
|
_id: ID!
|
|
209
280
|
dateCreated: Float!
|
|
210
|
-
|
|
211
|
-
|
|
281
|
+
dateUpdated: Float!
|
|
282
|
+
tenantIdCreated: String`;
|
|
212
283
|
class Primitive {
|
|
213
284
|
constructor() {
|
|
214
285
|
this._id = (0, uuid_1.v4)();
|
|
@@ -246,19 +317,16 @@ class Tag extends Primitive {
|
|
|
246
317
|
}
|
|
247
318
|
}
|
|
248
319
|
exports.Tag = Tag;
|
|
249
|
-
exports.
|
|
250
|
-
type Tenant {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
connectedProviders: [ConnectedProvider]
|
|
260
|
-
}
|
|
261
|
-
`;
|
|
320
|
+
exports.TenantQL = `
|
|
321
|
+
type Tenant {${exports.PrimitiveFields}
|
|
322
|
+
domainMemberships: [String]!
|
|
323
|
+
email: String!
|
|
324
|
+
domainIdEmail: String!
|
|
325
|
+
tagId: String!
|
|
326
|
+
picture: String
|
|
327
|
+
familyName: String
|
|
328
|
+
givenName: String
|
|
329
|
+
}`;
|
|
262
330
|
class Tenant extends Primitive {
|
|
263
331
|
constructor(domainMemberships, email, emailVerified, domainIdEmail, tagId) {
|
|
264
332
|
super();
|
|
@@ -286,6 +354,20 @@ class Person extends Tag {
|
|
|
286
354
|
}
|
|
287
355
|
}
|
|
288
356
|
exports.Person = Person;
|
|
357
|
+
exports.ArticleQL = `
|
|
358
|
+
type Article {${exports.PrimitiveFields}
|
|
359
|
+
referenceBlock: ReferenceBlock!
|
|
360
|
+
sentiment: DocumentSentiment
|
|
361
|
+
dates: [EntityEntry]
|
|
362
|
+
locations: [EntityEntry]
|
|
363
|
+
organizations: [EntityEntry]
|
|
364
|
+
names: [EntityEntry]
|
|
365
|
+
sentiments: [EntityEntry]
|
|
366
|
+
topics: [EntityEntry]
|
|
367
|
+
mentions: [EntityEntry]
|
|
368
|
+
relations: [RelationEntry]
|
|
369
|
+
linkUrls: [String]
|
|
370
|
+
}`;
|
|
289
371
|
class Article extends Primitive {
|
|
290
372
|
constructor(referenceBlock) {
|
|
291
373
|
super();
|
|
@@ -293,6 +375,14 @@ class Article extends Primitive {
|
|
|
293
375
|
}
|
|
294
376
|
}
|
|
295
377
|
exports.Article = Article;
|
|
378
|
+
exports.BlockFields = `${exports.PrimitiveFields}
|
|
379
|
+
editors: [Editor]!
|
|
380
|
+
sharingTags: [SharingTag]!
|
|
381
|
+
version: Float!
|
|
382
|
+
blockType: String!
|
|
383
|
+
archived: Boolean!
|
|
384
|
+
document: String
|
|
385
|
+
reactions: [Reaction]`;
|
|
296
386
|
class Block extends Primitive {
|
|
297
387
|
constructor(tenantIdCreated, editors, sharingTags, version, blockType) {
|
|
298
388
|
super();
|
|
@@ -319,6 +409,19 @@ class BlockProcessingResponse {
|
|
|
319
409
|
}
|
|
320
410
|
}
|
|
321
411
|
exports.BlockProcessingResponse = BlockProcessingResponse;
|
|
412
|
+
exports.BusinessObjectQL = `
|
|
413
|
+
type BusinessObject {${exports.BlockFields}
|
|
414
|
+
provider: String!
|
|
415
|
+
application: String!
|
|
416
|
+
uri: String!
|
|
417
|
+
processingStage: String!
|
|
418
|
+
processingAttempts: Int!
|
|
419
|
+
dateProcessed: Float!
|
|
420
|
+
externalId: String!
|
|
421
|
+
processingReason: String
|
|
422
|
+
iconUrl: String
|
|
423
|
+
parentId: String
|
|
424
|
+
}`;
|
|
322
425
|
class BusinessObject extends Block {
|
|
323
426
|
constructor(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId) {
|
|
324
427
|
super(tenantIdCreated, editors, sharingTags, version, blockType);
|
|
@@ -333,6 +436,9 @@ class BusinessObject extends Block {
|
|
|
333
436
|
}
|
|
334
437
|
}
|
|
335
438
|
exports.BusinessObject = BusinessObject;
|
|
439
|
+
exports.NoteQL = `
|
|
440
|
+
type Note {${exports.BlockFields}
|
|
441
|
+
}`;
|
|
336
442
|
class Note extends Block {
|
|
337
443
|
constructor(tenantIdCreated, editors, sharingTags, version) {
|
|
338
444
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Note);
|
|
@@ -340,6 +446,17 @@ class Note extends Block {
|
|
|
340
446
|
}
|
|
341
447
|
}
|
|
342
448
|
exports.Note = Note;
|
|
449
|
+
exports.TaskQL = `
|
|
450
|
+
type Task {${exports.BlockFields}
|
|
451
|
+
status: String!
|
|
452
|
+
dueDate: Int!
|
|
453
|
+
originNoteId: String!
|
|
454
|
+
snoozed: Boolean!
|
|
455
|
+
dateRemindMe: Int
|
|
456
|
+
recurrence: [String]
|
|
457
|
+
parentId: String
|
|
458
|
+
groupId: String
|
|
459
|
+
}`;
|
|
343
460
|
class Task extends Block {
|
|
344
461
|
constructor(tenantIdCreated, editors, sharingTags, version, originNoteId, dateDue) {
|
|
345
462
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Task);
|
|
@@ -455,9 +572,24 @@ exports.Table = Table;
|
|
|
455
572
|
//// FOR RECORDS END
|
|
456
573
|
// METADATA OBJECTS END
|
|
457
574
|
exports.GraphQLTypes = `
|
|
458
|
-
${exports.
|
|
459
|
-
${exports.
|
|
460
|
-
${exports.
|
|
461
|
-
${exports.
|
|
462
|
-
${exports.
|
|
463
|
-
|
|
575
|
+
${exports.HighlightQL}
|
|
576
|
+
${exports.EditorQL}
|
|
577
|
+
${exports.SharingTagQL}
|
|
578
|
+
${exports.ReactionSkinToneQL}
|
|
579
|
+
${exports.ReactionQL}
|
|
580
|
+
${exports.DocumentSentimentQL}
|
|
581
|
+
${exports.EntityReferenceQL}
|
|
582
|
+
${exports.ArgumentEntryQL}
|
|
583
|
+
${exports.RelationEntryQL}
|
|
584
|
+
${exports.EntityEntryQL}
|
|
585
|
+
${exports.ProviderInfoQL}
|
|
586
|
+
${exports.ProviderRequestQL}
|
|
587
|
+
${exports.CredentialQL}
|
|
588
|
+
${exports.ChangesQL}
|
|
589
|
+
${exports.ConnectedProviderQL}
|
|
590
|
+
${exports.ReferenceBlockQL}
|
|
591
|
+
${exports.ArticleQL}
|
|
592
|
+
${exports.TenantQL}
|
|
593
|
+
${exports.BusinessObjectQL}
|
|
594
|
+
${exports.NoteQL}
|
|
595
|
+
${exports.TaskQL}`;
|
package/model.ts
CHANGED
|
@@ -184,6 +184,11 @@ export interface Mark {
|
|
|
184
184
|
attrs?: Attrs;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
export const HighlightQL = `
|
|
188
|
+
type Highlight {
|
|
189
|
+
indexStart: Int!
|
|
190
|
+
indexEnd: Int!
|
|
191
|
+
}`;
|
|
187
192
|
export interface Highlight {
|
|
188
193
|
indexStart: number;
|
|
189
194
|
indexEnd: number;
|
|
@@ -197,12 +202,25 @@ export interface Document {
|
|
|
197
202
|
marks?: Mark[];
|
|
198
203
|
}
|
|
199
204
|
|
|
205
|
+
export const EditorQL = `
|
|
206
|
+
type Editor {
|
|
207
|
+
clientType: String!
|
|
208
|
+
clientId: String!
|
|
209
|
+
tenantId: String
|
|
210
|
+
}`;
|
|
200
211
|
export interface Editor {
|
|
201
212
|
clientType: ClientType;
|
|
202
213
|
clientId: string;
|
|
203
214
|
tenantId?: string;
|
|
204
215
|
}
|
|
205
216
|
|
|
217
|
+
export const SharingTagQL = `
|
|
218
|
+
type SharingTag {
|
|
219
|
+
tagId: String!
|
|
220
|
+
isShared: Boolean!
|
|
221
|
+
sharingApproach: String!
|
|
222
|
+
sharingLevel: String!
|
|
223
|
+
}`;
|
|
206
224
|
export interface SharingTag {
|
|
207
225
|
tagId: string;
|
|
208
226
|
isShared: boolean;
|
|
@@ -223,37 +241,70 @@ export interface SharingTenant {
|
|
|
223
241
|
sharingLevel: SharingLevel; // Determines what tenants can do with the tag beyond tenant specific settings above
|
|
224
242
|
}
|
|
225
243
|
|
|
226
|
-
export
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
244
|
+
export const ReactionSkinToneQL = `
|
|
245
|
+
type ReactionSkinTone {
|
|
246
|
+
skinTone: String!
|
|
247
|
+
tenantIds: [String]!
|
|
248
|
+
}`;
|
|
231
249
|
export interface ReactionSkinTone {
|
|
232
250
|
skinTone: string;
|
|
233
251
|
tenantIds: string[];
|
|
234
252
|
}
|
|
235
253
|
|
|
254
|
+
export const ReactionQL = `
|
|
255
|
+
type Reaction {
|
|
256
|
+
skinTones: [ReactionSkinTone]!
|
|
257
|
+
unified: String!
|
|
258
|
+
}`;
|
|
259
|
+
export interface Reaction {
|
|
260
|
+
skinTones: ReactionSkinTone[];
|
|
261
|
+
unified: string;
|
|
262
|
+
}
|
|
263
|
+
|
|
236
264
|
export interface Step {
|
|
237
265
|
content: string;
|
|
238
266
|
status: StepStatus;
|
|
239
267
|
}
|
|
240
268
|
|
|
269
|
+
export const DocumentSentimentQL = `
|
|
270
|
+
type DocumentSentiment {
|
|
271
|
+
name: String!
|
|
272
|
+
score: Int!
|
|
273
|
+
}`;
|
|
241
274
|
export interface DocumentSentiment {
|
|
242
275
|
name: string;
|
|
243
276
|
score: number;
|
|
244
277
|
}
|
|
245
278
|
|
|
279
|
+
export const EntityReferenceQL = `
|
|
280
|
+
type EntityReference {
|
|
281
|
+
name: String!
|
|
282
|
+
type: String!
|
|
283
|
+
}`;
|
|
246
284
|
export interface EntityReference {
|
|
247
285
|
name: string;
|
|
248
286
|
type: EntityType;
|
|
249
287
|
}
|
|
250
288
|
|
|
289
|
+
export const ArgumentEntryQL = `
|
|
290
|
+
type ArgumentEntry {
|
|
291
|
+
text: String!
|
|
292
|
+
highlight: Highlight!
|
|
293
|
+
entities: [EntityReference]!
|
|
294
|
+
}`;
|
|
251
295
|
export interface ArgumentEntry {
|
|
252
296
|
text: string;
|
|
253
297
|
highlight: Highlight;
|
|
254
298
|
entities: EntityReference[];
|
|
255
299
|
}
|
|
256
300
|
|
|
301
|
+
export const RelationEntryQL = `
|
|
302
|
+
type RelationEntry {
|
|
303
|
+
type: String!
|
|
304
|
+
score: Int!
|
|
305
|
+
highlight: Highlight!
|
|
306
|
+
arguments: [ArgumentEntry]!
|
|
307
|
+
}`;
|
|
257
308
|
export interface RelationEntry {
|
|
258
309
|
type: RelationType;
|
|
259
310
|
score: number;
|
|
@@ -261,6 +312,18 @@ export interface RelationEntry {
|
|
|
261
312
|
arguments: ArgumentEntry[];
|
|
262
313
|
}
|
|
263
314
|
|
|
315
|
+
export const MachineLearningEntryFields = `
|
|
316
|
+
highlights: [Highlight]`;
|
|
317
|
+
export interface MachineLearningEntry {
|
|
318
|
+
highlights?: Highlight[];
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export const EntityEntryQL = `
|
|
322
|
+
type EntityEntry {${MachineLearningEntryFields}
|
|
323
|
+
name: String!
|
|
324
|
+
type: String!
|
|
325
|
+
score: Int!
|
|
326
|
+
}`;
|
|
264
327
|
export interface EntityEntry extends MachineLearningEntry {
|
|
265
328
|
name: string;
|
|
266
329
|
type: EntityType;
|
|
@@ -271,11 +334,7 @@ export interface DateEntityEntry extends EntityEntry {
|
|
|
271
334
|
date: number;
|
|
272
335
|
}
|
|
273
336
|
|
|
274
|
-
export
|
|
275
|
-
highlights?: Highlight[];
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export const ProviderInfoFields = `
|
|
337
|
+
export const ProviderInfoQL = `
|
|
279
338
|
type ProviderInfo {
|
|
280
339
|
provider: String!
|
|
281
340
|
application: String!
|
|
@@ -285,7 +344,7 @@ export interface ProviderInfo {
|
|
|
285
344
|
application: string;
|
|
286
345
|
}
|
|
287
346
|
|
|
288
|
-
export const
|
|
347
|
+
export const ProviderRequestQL = `
|
|
289
348
|
type ProviderRequest {
|
|
290
349
|
providerInfo: ID!
|
|
291
350
|
connectionId: String!
|
|
@@ -309,14 +368,14 @@ export interface Subscriptions {
|
|
|
309
368
|
linkDomains: string[];
|
|
310
369
|
}
|
|
311
370
|
|
|
312
|
-
export const
|
|
371
|
+
export const CredentialQL = `
|
|
313
372
|
type Credential {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
373
|
+
email: String!
|
|
374
|
+
profile: String!
|
|
375
|
+
accessToken: String!
|
|
376
|
+
refreshToken: String
|
|
377
|
+
instanceUrl: String
|
|
378
|
+
dateExpiry: Float
|
|
320
379
|
}`;
|
|
321
380
|
export interface Credential {
|
|
322
381
|
email: string;
|
|
@@ -332,14 +391,14 @@ export interface ConnectedProviderRegistration {
|
|
|
332
391
|
credential: Credential;
|
|
333
392
|
}
|
|
334
393
|
|
|
335
|
-
export const
|
|
394
|
+
export const ConnectedProviderQL = `
|
|
336
395
|
type ConnectedProvider {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
396
|
+
providerId: String!
|
|
397
|
+
connectionId: String!
|
|
398
|
+
application: String!
|
|
399
|
+
credential: Credential
|
|
400
|
+
dateCreated: Float
|
|
401
|
+
dateUpdated: Float
|
|
343
402
|
}`;
|
|
344
403
|
export interface ConnectedProvider {
|
|
345
404
|
providerId: string;
|
|
@@ -350,12 +409,23 @@ export interface ConnectedProvider {
|
|
|
350
409
|
dateUpdated: number;
|
|
351
410
|
}
|
|
352
411
|
|
|
412
|
+
export const ReferenceBlockQL = `
|
|
413
|
+
type ReferenceBlock {
|
|
414
|
+
id: String!
|
|
415
|
+
version: Int!
|
|
416
|
+
type: String!
|
|
417
|
+
}`;
|
|
353
418
|
export interface ReferenceBlock {
|
|
354
419
|
id: string;
|
|
355
420
|
version: number;
|
|
356
421
|
type: BlockType;
|
|
357
422
|
}
|
|
358
423
|
|
|
424
|
+
export const ChangesQL = `
|
|
425
|
+
type Changes {
|
|
426
|
+
steps: [String]!
|
|
427
|
+
clientIds: [String]!
|
|
428
|
+
}`;
|
|
359
429
|
export interface Changes {
|
|
360
430
|
steps: any[];
|
|
361
431
|
clientIds: string[];
|
|
@@ -368,8 +438,8 @@ export interface PersonReference {
|
|
|
368
438
|
export const PrimitiveFields = `
|
|
369
439
|
_id: ID!
|
|
370
440
|
dateCreated: Float!
|
|
371
|
-
|
|
372
|
-
|
|
441
|
+
dateUpdated: Float!
|
|
442
|
+
tenantIdCreated: String`;
|
|
373
443
|
export class Primitive {
|
|
374
444
|
_id: string;
|
|
375
445
|
dateCreated: number;
|
|
@@ -436,19 +506,16 @@ export class Tag extends Primitive {
|
|
|
436
506
|
}
|
|
437
507
|
}
|
|
438
508
|
|
|
439
|
-
export const
|
|
440
|
-
type Tenant {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
connectedProviders: [ConnectedProvider]
|
|
450
|
-
}
|
|
451
|
-
`;
|
|
509
|
+
export const TenantQL = `
|
|
510
|
+
type Tenant {${PrimitiveFields}
|
|
511
|
+
domainMemberships: [String]!
|
|
512
|
+
email: String!
|
|
513
|
+
domainIdEmail: String!
|
|
514
|
+
tagId: String!
|
|
515
|
+
picture: String
|
|
516
|
+
familyName: String
|
|
517
|
+
givenName: String
|
|
518
|
+
}`;
|
|
452
519
|
export class Tenant extends Primitive {
|
|
453
520
|
domainMemberships: string[]; // The list of all domains this tenant belongs
|
|
454
521
|
email: string;
|
|
@@ -507,6 +574,20 @@ export class Person extends Tag {
|
|
|
507
574
|
}
|
|
508
575
|
}
|
|
509
576
|
|
|
577
|
+
export const ArticleQL = `
|
|
578
|
+
type Article {${PrimitiveFields}
|
|
579
|
+
referenceBlock: ReferenceBlock!
|
|
580
|
+
sentiment: DocumentSentiment
|
|
581
|
+
dates: [EntityEntry]
|
|
582
|
+
locations: [EntityEntry]
|
|
583
|
+
organizations: [EntityEntry]
|
|
584
|
+
names: [EntityEntry]
|
|
585
|
+
sentiments: [EntityEntry]
|
|
586
|
+
topics: [EntityEntry]
|
|
587
|
+
mentions: [EntityEntry]
|
|
588
|
+
relations: [RelationEntry]
|
|
589
|
+
linkUrls: [String]
|
|
590
|
+
}`;
|
|
510
591
|
export class Article extends Primitive {
|
|
511
592
|
referenceBlock: ReferenceBlock;
|
|
512
593
|
changes?: Changes;
|
|
@@ -531,6 +612,14 @@ export class Article extends Primitive {
|
|
|
531
612
|
}
|
|
532
613
|
}
|
|
533
614
|
|
|
615
|
+
export const BlockFields = `${PrimitiveFields}
|
|
616
|
+
editors: [Editor]!
|
|
617
|
+
sharingTags: [SharingTag]!
|
|
618
|
+
version: Float!
|
|
619
|
+
blockType: String!
|
|
620
|
+
archived: Boolean!
|
|
621
|
+
document: String
|
|
622
|
+
reactions: [Reaction]`;
|
|
534
623
|
export class Block extends Primitive {
|
|
535
624
|
editors: Editor[];
|
|
536
625
|
sharingTags: SharingTag[];
|
|
@@ -582,6 +671,19 @@ export class BlockProcessingResponse {
|
|
|
582
671
|
}
|
|
583
672
|
}
|
|
584
673
|
|
|
674
|
+
export const BusinessObjectQL = `
|
|
675
|
+
type BusinessObject {${BlockFields}
|
|
676
|
+
provider: String!
|
|
677
|
+
application: String!
|
|
678
|
+
uri: String!
|
|
679
|
+
processingStage: String!
|
|
680
|
+
processingAttempts: Int!
|
|
681
|
+
dateProcessed: Float!
|
|
682
|
+
externalId: String!
|
|
683
|
+
processingReason: String
|
|
684
|
+
iconUrl: String
|
|
685
|
+
parentId: String
|
|
686
|
+
}`;
|
|
585
687
|
export class BusinessObject extends Block {
|
|
586
688
|
provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
|
|
587
689
|
application: string; // A unique string representing the provider application e.g. "service", "jira", etc
|
|
@@ -621,6 +723,9 @@ export class BusinessObject extends Block {
|
|
|
621
723
|
}
|
|
622
724
|
}
|
|
623
725
|
|
|
726
|
+
export const NoteQL = `
|
|
727
|
+
type Note {${BlockFields}
|
|
728
|
+
}`;
|
|
624
729
|
export class Note extends Block {
|
|
625
730
|
constructor(
|
|
626
731
|
tenantIdCreated: string,
|
|
@@ -634,6 +739,17 @@ export class Note extends Block {
|
|
|
634
739
|
}
|
|
635
740
|
}
|
|
636
741
|
|
|
742
|
+
export const TaskQL = `
|
|
743
|
+
type Task {${BlockFields}
|
|
744
|
+
status: String!
|
|
745
|
+
dueDate: Int!
|
|
746
|
+
originNoteId: String!
|
|
747
|
+
snoozed: Boolean!
|
|
748
|
+
dateRemindMe: Int
|
|
749
|
+
recurrence: [String]
|
|
750
|
+
parentId: String
|
|
751
|
+
groupId: String
|
|
752
|
+
}`;
|
|
637
753
|
export class Task extends Block {
|
|
638
754
|
status: TaskStatus;
|
|
639
755
|
dateDue: number;
|
|
@@ -1082,9 +1198,24 @@ export class Table extends BusinessObject {
|
|
|
1082
1198
|
// METADATA OBJECTS END
|
|
1083
1199
|
|
|
1084
1200
|
export const GraphQLTypes = `
|
|
1085
|
-
${
|
|
1086
|
-
${
|
|
1087
|
-
${
|
|
1088
|
-
${
|
|
1089
|
-
${
|
|
1090
|
-
|
|
1201
|
+
${HighlightQL}
|
|
1202
|
+
${EditorQL}
|
|
1203
|
+
${SharingTagQL}
|
|
1204
|
+
${ReactionSkinToneQL}
|
|
1205
|
+
${ReactionQL}
|
|
1206
|
+
${DocumentSentimentQL}
|
|
1207
|
+
${EntityReferenceQL}
|
|
1208
|
+
${ArgumentEntryQL}
|
|
1209
|
+
${RelationEntryQL}
|
|
1210
|
+
${EntityEntryQL}
|
|
1211
|
+
${ProviderInfoQL}
|
|
1212
|
+
${ProviderRequestQL}
|
|
1213
|
+
${CredentialQL}
|
|
1214
|
+
${ChangesQL}
|
|
1215
|
+
${ConnectedProviderQL}
|
|
1216
|
+
${ReferenceBlockQL}
|
|
1217
|
+
${ArticleQL}
|
|
1218
|
+
${TenantQL}
|
|
1219
|
+
${BusinessObjectQL}
|
|
1220
|
+
${NoteQL}
|
|
1221
|
+
${TaskQL}`;
|