@bigfootai/bigfoot-types 2.7.5 → 2.7.6

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 +2 -3
  2. package/model.ts +16 -5
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -232,12 +232,11 @@ var ResponseStatus;
232
232
  ResponseStatus["Accepted"] = "accepted";
233
233
  })(ResponseStatus || (exports.ResponseStatus = ResponseStatus = {}));
234
234
  class Event extends BusinessObject {
235
- constructor(provider, uri, externalId, externalResponse, calendarId, status, location, startDate, organizedBy) {
235
+ constructor(provider, uri, externalId, externalResponse, calendarId, status, dateStart, organizedBy) {
236
236
  super(provider, uri, externalId, BusinessObjectType.Event, externalResponse);
237
237
  this.calendarId = calendarId;
238
238
  this.status = status;
239
- this.location = location;
240
- this.startDate = startDate;
239
+ this.dateStart = dateStart;
241
240
  this.organizedBy = organizedBy;
242
241
  }
243
242
  }
package/model.ts CHANGED
@@ -549,15 +549,26 @@ export interface Attachment {
549
549
  title?: string | null;
550
550
  }
551
551
 
552
+ export interface CalendarFilter {
553
+ dateStart?: number;
554
+ dateEnd?: number;
555
+ limit: number;
556
+ }
557
+
558
+ export interface CalendarRequest {
559
+ filter: CalendarFilter;
560
+ credential: Credential;
561
+ }
562
+
552
563
  export class Event extends BusinessObject {
553
564
  calendarId: string;
554
565
  status: EventStatus;
555
- startDate: number;
566
+ dateStart: number;
556
567
  organizedBy: PersonReference;
557
568
  location?: string | null;
558
- originalStartDate?: number | null;
569
+ dateStartOriginal?: number | null;
559
570
  recurrence?: RecurrenceRFC[] | null;
560
- endDate?: number | null;
571
+ dateEnd?: number | null;
561
572
  subject?: string | null;
562
573
  description?: string | null;
563
574
  attendees?: PersonAcceptance[] | null;
@@ -571,7 +582,7 @@ export class Event extends BusinessObject {
571
582
  externalResponse: any,
572
583
  calendarId: string,
573
584
  status: EventStatus,
574
- startDate: number,
585
+ dateStart: number,
575
586
  organizedBy: PersonReference
576
587
  ) {
577
588
  super(
@@ -584,7 +595,7 @@ export class Event extends BusinessObject {
584
595
 
585
596
  this.calendarId = calendarId;
586
597
  this.status = status;
587
- this.startDate = startDate;
598
+ this.dateStart = dateStart;
588
599
  this.organizedBy = organizedBy;
589
600
  }
590
601
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.7.5",
4
+ "version": "2.7.6",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",