@bigfootai/bigfoot-types 2.6.11 → 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.
- package/model.js +12 -1
- package/model.ts +37 -7
- 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
|
@@ -198,6 +198,7 @@ export interface Credential {
|
|
|
198
198
|
accessToken: string;
|
|
199
199
|
refreshToken?: string;
|
|
200
200
|
instanceUrl?: string;
|
|
201
|
+
dateExpiry?: number;
|
|
201
202
|
}
|
|
202
203
|
|
|
203
204
|
export interface ConnectedProviderRegistration {
|
|
@@ -539,20 +540,49 @@ export interface Calendar extends BusinessObject {
|
|
|
539
540
|
timeZone: string;
|
|
540
541
|
}
|
|
541
542
|
|
|
542
|
-
export
|
|
543
|
+
export class Event extends BusinessObject {
|
|
543
544
|
calendarId: string;
|
|
544
545
|
status: EventStatus;
|
|
545
|
-
subject?: string;
|
|
546
|
-
description?: string;
|
|
547
|
-
location: string;
|
|
548
546
|
startDate: number;
|
|
549
|
-
endDate?: number;
|
|
550
|
-
recurrence: RecurrenceRFC[];
|
|
551
|
-
originalStartDate: number;
|
|
552
547
|
organizedBy: Person;
|
|
548
|
+
location?: string;
|
|
549
|
+
originalStartDate?: number;
|
|
550
|
+
recurrence?: RecurrenceRFC[];
|
|
551
|
+
endDate?: number;
|
|
552
|
+
subject?: string;
|
|
553
|
+
description?: string;
|
|
553
554
|
attendees?: PersonAcceptance[];
|
|
554
555
|
conference?: Conference;
|
|
555
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
|
+
}
|
|
556
586
|
}
|
|
557
587
|
//// EVENT END
|
|
558
588
|
|