@bigfootai/bigfoot-types 2.7.1 → 2.7.3

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.
Files changed (2) hide show
  1. package/model.ts +22 -14
  2. package/package.json +1 -1
package/model.ts CHANGED
@@ -290,12 +290,12 @@ export class Tag extends Primitive {
290
290
  export class BusinessObject extends Primitive {
291
291
  provider: string; // A unique string representing the provider e.g. "salesforce", "jira", etc
292
292
  uri: string; // A uri to locate the specific instance of the business object
293
- iconUrl?: string; // The url of an icon that represents the business object
294
293
  externalId: string; // An identifier that allows us to do entity resolution
295
294
  businessObjectType: BusinessObjectType;
296
295
  externalResponse: any; // The full response from the external system that created this object
297
- document?: Document; // The business object formatted as a document for ML to ingest
298
- parentId?: string; // The business object that is the parent of this business object
296
+ iconUrl?: string | null; // The url of an icon that represents the business object
297
+ document?: Document | null; // The business object formatted as a document for ML to ingest
298
+ parentId?: string | null; // The business object that is the parent of this business object
299
299
 
300
300
  constructor(
301
301
  provider: string,
@@ -536,9 +536,17 @@ export interface PersonAcceptance extends PersonReference {
536
536
  }
537
537
 
538
538
  export interface Calendar extends BusinessObject {
539
- description?: string;
540
- location?: string;
541
539
  timeZone: string;
540
+ description?: string | null;
541
+ location?: string | null;
542
+ }
543
+
544
+ export interface Attachment {
545
+ externalId: string;
546
+ url: string;
547
+ iconUrl?: string | null;
548
+ mimeType?: string | null;
549
+ title?: string | null;
542
550
  }
543
551
 
544
552
  export class Event extends BusinessObject {
@@ -546,15 +554,15 @@ export class Event extends BusinessObject {
546
554
  status: EventStatus;
547
555
  startDate: number;
548
556
  organizedBy: PersonReference;
549
- location?: string;
550
- originalStartDate?: number;
551
- recurrence?: RecurrenceRFC[];
552
- endDate?: number;
553
- subject?: string;
554
- description?: string;
555
- attendees?: PersonAcceptance[];
556
- conference?: Conference;
557
- businessObjectIds?: string[]; // Attachments
557
+ location?: string | null;
558
+ originalStartDate?: number | null;
559
+ recurrence?: RecurrenceRFC[] | null;
560
+ endDate?: number | null;
561
+ subject?: string | null;
562
+ description?: string | null;
563
+ attendees?: PersonAcceptance[] | null;
564
+ conference?: Conference | null;
565
+ attachments?: Attachment[] | null;
558
566
 
559
567
  constructor(
560
568
  provider: string,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.7.1",
4
+ "version": "2.7.3",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",