@bigfootai/bigfoot-types 2.5.4 → 2.6.1

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 +7 -1
  2. package/model.ts +40 -0
  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.Changes = exports.Article = exports.Person = exports.Domain = exports.Tenant = 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,12 +116,18 @@ 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;
122
125
  class BusinessObject extends Primitive {
123
126
  }
124
127
  exports.BusinessObject = BusinessObject;
128
+ class ConnectedProvider {
129
+ }
130
+ exports.ConnectedProvider = ConnectedProvider;
125
131
  class Tenant extends Primitive {
126
132
  }
127
133
  exports.Tenant = Tenant;
package/model.ts CHANGED
@@ -177,6 +177,25 @@ export interface MachineLearningEntry {
177
177
  highlights?: Highlight[];
178
178
  }
179
179
 
180
+ export interface ProviderInfo {
181
+ provider: string;
182
+ application: string;
183
+ }
184
+
185
+ export interface ProviderResponse {
186
+ accessToken: string;
187
+ providerUrl: string;
188
+ }
189
+
190
+ export interface StandardObjects {
191
+ task: boolean;
192
+ calendar: boolean;
193
+ }
194
+
195
+ export interface Subscriptions {
196
+ linkDomains: string[];
197
+ }
198
+
180
199
  export class Primitive {
181
200
  _id: string;
182
201
  dateCreated: number;
@@ -191,6 +210,14 @@ export class Primitive {
191
210
  }
192
211
  }
193
212
 
213
+ export class Provider extends Primitive {
214
+ provider: string;
215
+ name: string;
216
+ description: string;
217
+ instanceUrl: string;
218
+ applications: any;
219
+ }
220
+
194
221
  export class Tag extends Primitive {
195
222
  tenantIdCreated: string; // The tenant._id that created the tag initially
196
223
  alias: string;
@@ -210,6 +237,18 @@ export class BusinessObject extends Primitive {
210
237
  document: Document; // The business object formatted as a document for ML to ingest
211
238
  }
212
239
 
240
+ export class ConnectedProvider {
241
+ providerId: string;
242
+ application: string;
243
+ bigfootAccessToken: string;
244
+ email?: string;
245
+ instanceUrl?: string;
246
+ profile: any;
247
+ accessToken?: string;
248
+ dateCreated: number;
249
+ dateUpdated: number;
250
+ }
251
+
213
252
  export class Tenant extends Primitive {
214
253
  domainMemberships: string[]; // The list of all domains this tenant belongs
215
254
  email: string;
@@ -219,6 +258,7 @@ export class Tenant extends Primitive {
219
258
  picture?: string;
220
259
  familyName?: string;
221
260
  givenName?: string;
261
+ connectedProviders?: ConnectedProvider[];
222
262
  }
223
263
 
224
264
  export class Domain extends Primitive {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.5.4",
4
+ "version": "2.6.1",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",