@bigfootai/bigfoot-types 2.6.0 → 2.6.2
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 +4 -1
- package/model.ts +30 -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.Changes = exports.Article = exports.Person = exports.Domain = exports.Tenant = exports.ConnectedProvider = exports.BusinessObject = exports.Tag = 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.EventStatus = exports.Conference = exports.Task = exports.Block = exports.Note = exports.Changes = exports.Article = exports.Person = exports.Domain = exports.Tenant = exports.ConnectedProvider = 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
|
|
@@ -116,6 +116,9 @@ class Primitive {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
exports.Primitive = Primitive;
|
|
119
|
+
class Provider extends Primitive {
|
|
120
|
+
}
|
|
121
|
+
exports.Provider = Provider;
|
|
119
122
|
class Tag extends Primitive {
|
|
120
123
|
}
|
|
121
124
|
exports.Tag = Tag;
|
package/model.ts
CHANGED
|
@@ -164,19 +164,34 @@ export interface Step {
|
|
|
164
164
|
status: StepStatus;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
export interface DateEntry extends MachineLearningEntry {
|
|
168
|
-
dateStart: number;
|
|
169
|
-
dateEnd: number;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
167
|
export interface EntityEntry extends MachineLearningEntry {
|
|
173
168
|
name: string;
|
|
169
|
+
score: number;
|
|
174
170
|
}
|
|
175
171
|
|
|
176
172
|
export interface MachineLearningEntry {
|
|
177
173
|
highlights?: Highlight[];
|
|
178
174
|
}
|
|
179
175
|
|
|
176
|
+
export interface ProviderInfo {
|
|
177
|
+
provider: string;
|
|
178
|
+
application: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface ProviderResponse {
|
|
182
|
+
accessToken: string;
|
|
183
|
+
providerUrl: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface StandardObjects {
|
|
187
|
+
task: boolean;
|
|
188
|
+
calendar: boolean;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface Subscriptions {
|
|
192
|
+
linkDomains: string[];
|
|
193
|
+
}
|
|
194
|
+
|
|
180
195
|
export class Primitive {
|
|
181
196
|
_id: string;
|
|
182
197
|
dateCreated: number;
|
|
@@ -191,6 +206,14 @@ export class Primitive {
|
|
|
191
206
|
}
|
|
192
207
|
}
|
|
193
208
|
|
|
209
|
+
export class Provider extends Primitive {
|
|
210
|
+
provider: string;
|
|
211
|
+
name: string;
|
|
212
|
+
description: string;
|
|
213
|
+
instanceUrl: string;
|
|
214
|
+
applications: any;
|
|
215
|
+
}
|
|
216
|
+
|
|
194
217
|
export class Tag extends Primitive {
|
|
195
218
|
tenantIdCreated: string; // The tenant._id that created the tag initially
|
|
196
219
|
alias: string;
|
|
@@ -216,7 +239,7 @@ export class ConnectedProvider {
|
|
|
216
239
|
bigfootAccessToken: string;
|
|
217
240
|
email?: string;
|
|
218
241
|
instanceUrl?: string;
|
|
219
|
-
profile
|
|
242
|
+
profile?: any;
|
|
220
243
|
accessToken?: string;
|
|
221
244
|
dateCreated: number;
|
|
222
245
|
dateUpdated: number;
|
|
@@ -253,7 +276,7 @@ export interface ReferenceNote {
|
|
|
253
276
|
|
|
254
277
|
export class Article extends Primitive {
|
|
255
278
|
referenceNote: ReferenceNote;
|
|
256
|
-
dates?:
|
|
279
|
+
dates?: EntityEntry[];
|
|
257
280
|
locations?: EntityEntry[];
|
|
258
281
|
organizations?: EntityEntry[];
|
|
259
282
|
names?: EntityEntry[];
|