@bigfootai/bigfoot-types 2.7.9 → 2.7.11
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 +10 -1
- package/model.ts +1 -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.Event = exports.ResponseStatus = 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.ResponseStatus = 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.Sync = 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
|
|
@@ -118,6 +118,15 @@ class Primitive {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
exports.Primitive = Primitive;
|
|
121
|
+
class Sync extends Primitive {
|
|
122
|
+
constructor(connectionId, tenantIdCreated, providerRequest) {
|
|
123
|
+
super();
|
|
124
|
+
this.connectionId = connectionId;
|
|
125
|
+
this.tenantIdCreated = tenantIdCreated;
|
|
126
|
+
this.providerRequest = providerRequest;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.Sync = Sync;
|
|
121
130
|
class Provider extends Primitive {
|
|
122
131
|
constructor(provider, name, description, instanceUrl, applications) {
|
|
123
132
|
super();
|
package/model.ts
CHANGED
|
@@ -241,6 +241,7 @@ export class Primitive {
|
|
|
241
241
|
_id: string;
|
|
242
242
|
dateCreated: number;
|
|
243
243
|
dateUpdated: number;
|
|
244
|
+
tenantIdCreated?: string;
|
|
244
245
|
|
|
245
246
|
constructor() {
|
|
246
247
|
this._id = uuidv4();
|
|
@@ -253,7 +254,6 @@ export class Primitive {
|
|
|
253
254
|
|
|
254
255
|
export class Sync extends Primitive {
|
|
255
256
|
connectionId: string;
|
|
256
|
-
tenantIdCreated: string;
|
|
257
257
|
providerRequest: ProviderRequest;
|
|
258
258
|
|
|
259
259
|
constructor(
|
|
@@ -294,7 +294,6 @@ export class Provider extends Primitive {
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
export class Tag extends Primitive {
|
|
297
|
-
tenantIdCreated: string; // The tenant._id that created the tag initially
|
|
298
297
|
alias: string;
|
|
299
298
|
friendlyName?: string;
|
|
300
299
|
sharingDomains?: SharingDomain[]; // The domains this tag is shared with plus domain settings for the tag
|
|
@@ -411,7 +410,6 @@ export class Article extends Primitive {
|
|
|
411
410
|
}
|
|
412
411
|
|
|
413
412
|
export class Note extends Primitive {
|
|
414
|
-
tenantIdCreated: string;
|
|
415
413
|
editors: Editor[];
|
|
416
414
|
sharingTags: SharingTag[];
|
|
417
415
|
version: number;
|