@bigfootai/bigfoot-types 2.11.3 → 2.11.4
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 +12 -8
- package/model.ts +14 -14
- package/package.json +1 -1
package/model.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.Note = exports.BusinessObject = exports.
|
|
3
|
+
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.Note = exports.BusinessObject = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.Article = exports.Person = exports.Domain = exports.Tenant = exports.Tag = exports.Provider = exports.Sync = exports.Primitive = 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
4
|
const uuid_1 = require("uuid");
|
|
5
5
|
/*
|
|
6
6
|
These are the core primitives of our model. These represent the entities that show
|
|
@@ -259,15 +259,19 @@ class Block extends Primitive {
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
exports.Block = Block;
|
|
262
|
-
class
|
|
263
|
-
constructor(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
262
|
+
class BlockProcessingRequest {
|
|
263
|
+
constructor(block) {
|
|
264
|
+
this.block = block;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
exports.BlockProcessingRequest = BlockProcessingRequest;
|
|
268
|
+
class BlockProcessingResponse {
|
|
269
|
+
constructor(block, article) {
|
|
270
|
+
this.block = block;
|
|
271
|
+
this.article = article;
|
|
268
272
|
}
|
|
269
273
|
}
|
|
270
|
-
exports.
|
|
274
|
+
exports.BlockProcessingResponse = BlockProcessingResponse;
|
|
271
275
|
class BusinessObject extends Block {
|
|
272
276
|
constructor(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId) {
|
|
273
277
|
super(tenantIdCreated, editors, sharingTags, version, blockType);
|
package/model.ts
CHANGED
|
@@ -463,7 +463,6 @@ export class Person extends Tag {
|
|
|
463
463
|
|
|
464
464
|
export class Article extends Primitive {
|
|
465
465
|
referenceBlock: ReferenceBlock;
|
|
466
|
-
document?: any;
|
|
467
466
|
changes?: Changes;
|
|
468
467
|
embedding?: any;
|
|
469
468
|
text?: string;
|
|
@@ -516,21 +515,22 @@ export class Block extends Primitive {
|
|
|
516
515
|
}
|
|
517
516
|
}
|
|
518
517
|
|
|
519
|
-
export class
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
dateProcessed: number; // The date this document was last processed
|
|
523
|
-
processingReason?: string; // The reason the processing is at this stage
|
|
524
|
-
externalResponse?: any; // The full response from the external system that created this object
|
|
525
|
-
iconUrl?: string | null; // The url of an icon that represents the business object
|
|
526
|
-
parentId?: string | null; // The business object that is the parent of this business object
|
|
518
|
+
export class BlockProcessingRequest {
|
|
519
|
+
block: Block;
|
|
520
|
+
credential?: Credential;
|
|
527
521
|
|
|
528
|
-
constructor(
|
|
529
|
-
|
|
522
|
+
constructor(block: Block) {
|
|
523
|
+
this.block = block;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
530
526
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
527
|
+
export class BlockProcessingResponse {
|
|
528
|
+
block: Block;
|
|
529
|
+
article: Article;
|
|
530
|
+
|
|
531
|
+
constructor(block: Block, article: Article) {
|
|
532
|
+
this.block = block;
|
|
533
|
+
this.article = article;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
|