@bigfootai/bigfoot-types 2.6.12 → 2.6.13

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 (3) hide show
  1. package/model.js +12 -1
  2. package/model.ts +36 -7
  3. 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.Thread = exports.ExternalTask = exports.EventStatus = exports.Conference = exports.Task = exports.Block = exports.Note = exports.Article = exports.Person = exports.Domain = exports.Tenant = exports.BusinessObject = exports.Tag = exports.Provider = exports.Primitive = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.InviteStatus = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = exports.BusinessObjectType = void 0;
3
+ exports.Table = exports.FieldVariation = exports.FieldType = exports.Template = exports.Thread = exports.ExternalTask = exports.Event = exports.EventStatus = exports.Conference = exports.Task = exports.Block = exports.Note = exports.Article = exports.Person = exports.Domain = exports.Tenant = exports.BusinessObject = exports.Tag = exports.Provider = exports.Primitive = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.InviteStatus = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = exports.BusinessObjectType = 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
@@ -225,6 +225,17 @@ var EventStatus;
225
225
  EventStatus["Tentative"] = "tentative";
226
226
  EventStatus["Cancelled"] = "cancelled";
227
227
  })(EventStatus || (exports.EventStatus = EventStatus = {}));
228
+ class Event extends BusinessObject {
229
+ constructor(provider, uri, externalId, businessObjectType, externalResponse, document, calendarId, status, location, startDate, organizedBy) {
230
+ super(provider, uri, externalId, businessObjectType, externalResponse, document);
231
+ this.calendarId = calendarId;
232
+ this.status = status;
233
+ this.location = location;
234
+ this.startDate = startDate;
235
+ this.organizedBy = organizedBy;
236
+ }
237
+ }
238
+ exports.Event = Event;
228
239
  //// EVENT END
229
240
  //// EXTERNAL TASK START
230
241
  class ExternalTask extends BusinessObject {
package/model.ts CHANGED
@@ -540,20 +540,49 @@ export interface Calendar extends BusinessObject {
540
540
  timeZone: string;
541
541
  }
542
542
 
543
- export interface Event extends BusinessObject {
543
+ export class Event extends BusinessObject {
544
544
  calendarId: string;
545
545
  status: EventStatus;
546
- subject?: string;
547
- description?: string;
548
- location: string;
549
546
  startDate: number;
550
- endDate?: number;
551
- recurrence: RecurrenceRFC[];
552
- originalStartDate: number;
553
547
  organizedBy: Person;
548
+ location?: string;
549
+ originalStartDate?: number;
550
+ recurrence?: RecurrenceRFC[];
551
+ endDate?: number;
552
+ subject?: string;
553
+ description?: string;
554
554
  attendees?: PersonAcceptance[];
555
555
  conference?: Conference;
556
556
  businessObjectIds?: string[]; // Attachments
557
+
558
+ constructor(
559
+ provider: string,
560
+ uri: string,
561
+ externalId: string,
562
+ businessObjectType: BusinessObjectType,
563
+ externalResponse: string,
564
+ document: any,
565
+ calendarId: string,
566
+ status: EventStatus,
567
+ location: string,
568
+ startDate: number,
569
+ organizedBy: Person
570
+ ) {
571
+ super(
572
+ provider,
573
+ uri,
574
+ externalId,
575
+ businessObjectType,
576
+ externalResponse,
577
+ document
578
+ );
579
+
580
+ this.calendarId = calendarId;
581
+ this.status = status;
582
+ this.location = location;
583
+ this.startDate = startDate;
584
+ this.organizedBy = organizedBy;
585
+ }
557
586
  }
558
587
  //// EVENT END
559
588
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.6.12",
4
+ "version": "2.6.13",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",