@bigfootai/bigfoot-types 2.7.5 → 2.7.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.
Files changed (3) hide show
  1. package/model.js +2 -3
  2. package/model.ts +21 -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,31 @@ 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
+ providerInfo: ProviderInfo;
561
+ }
562
+
563
+ export interface CalendarProviderRequest {
564
+ filter: CalendarFilter;
565
+ credential: Credential;
566
+ }
567
+
552
568
  export class Event extends BusinessObject {
553
569
  calendarId: string;
554
570
  status: EventStatus;
555
- startDate: number;
571
+ dateStart: number;
556
572
  organizedBy: PersonReference;
557
573
  location?: string | null;
558
- originalStartDate?: number | null;
574
+ dateStartOriginal?: number | null;
559
575
  recurrence?: RecurrenceRFC[] | null;
560
- endDate?: number | null;
576
+ dateEnd?: number | null;
561
577
  subject?: string | null;
562
578
  description?: string | null;
563
579
  attendees?: PersonAcceptance[] | null;
@@ -571,7 +587,7 @@ export class Event extends BusinessObject {
571
587
  externalResponse: any,
572
588
  calendarId: string,
573
589
  status: EventStatus,
574
- startDate: number,
590
+ dateStart: number,
575
591
  organizedBy: PersonReference
576
592
  ) {
577
593
  super(
@@ -584,7 +600,7 @@ export class Event extends BusinessObject {
584
600
 
585
601
  this.calendarId = calendarId;
586
602
  this.status = status;
587
- this.startDate = startDate;
603
+ this.dateStart = dateStart;
588
604
  this.organizedBy = organizedBy;
589
605
  }
590
606
  }
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.7",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",