@bigfootai/bigfoot-types 2.3.2 → 2.3.4
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 +6 -2
- package/model.ts +8 -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.Person = exports.Domain = exports.Tenant = exports.BusinessObject = exports.Tag = exports.Primitive = exports.RecurrenceRFC = exports.InviteStatus = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = 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.Person = exports.Domain = exports.Tenant = exports.BusinessObject = exports.Tag = exports.Primitive = 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
|
|
@@ -29,6 +29,11 @@ var TagType;
|
|
|
29
29
|
TagType["Person"] = "person";
|
|
30
30
|
TagType["Topic"] = "topic";
|
|
31
31
|
})(TagType || (exports.TagType = TagType = {}));
|
|
32
|
+
var ClientType;
|
|
33
|
+
(function (ClientType) {
|
|
34
|
+
ClientType["Web"] = "web";
|
|
35
|
+
ClientType["Mobile"] = "mobile";
|
|
36
|
+
})(ClientType || (exports.ClientType = ClientType = {}));
|
|
32
37
|
var SharingLevel;
|
|
33
38
|
(function (SharingLevel) {
|
|
34
39
|
SharingLevel[SharingLevel["ReadOnly"] = 0] = "ReadOnly";
|
|
@@ -50,7 +55,6 @@ var SharingApproach;
|
|
|
50
55
|
(function (SharingApproach) {
|
|
51
56
|
SharingApproach[SharingApproach["Inline"] = 0] = "Inline";
|
|
52
57
|
SharingApproach[SharingApproach["Explicit"] = 1] = "Explicit";
|
|
53
|
-
SharingApproach[SharingApproach["Automated"] = 2] = "Automated";
|
|
54
58
|
})(SharingApproach || (exports.SharingApproach = SharingApproach = {}));
|
|
55
59
|
var InviteStatus;
|
|
56
60
|
(function (InviteStatus) {
|
package/model.ts
CHANGED
|
@@ -27,6 +27,11 @@ export enum TagType {
|
|
|
27
27
|
Topic = 'topic',
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
export enum ClientType {
|
|
31
|
+
Web = 'web',
|
|
32
|
+
Mobile = 'mobile',
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
export enum SharingLevel {
|
|
31
36
|
ReadOnly = 0,
|
|
32
37
|
Editor = 1,
|
|
@@ -90,9 +95,9 @@ export interface Document {
|
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
export interface Editor {
|
|
93
|
-
|
|
98
|
+
clientType: ClientType;
|
|
94
99
|
clientId: string;
|
|
95
|
-
|
|
100
|
+
tenantId: string;
|
|
96
101
|
}
|
|
97
102
|
|
|
98
103
|
export interface SharingTag {
|
|
@@ -187,7 +192,7 @@ export class Person extends Tag {
|
|
|
187
192
|
|
|
188
193
|
export class Note extends Primitive {
|
|
189
194
|
tenantIdCreated: string; // The tenant._id that created the note initially
|
|
190
|
-
document:
|
|
195
|
+
document: string; // The note serialized as a JSON string
|
|
191
196
|
editors: Editor[]; // The list of people/devices that were used in creating this note
|
|
192
197
|
sharingTags: SharingTag[]; // The list of tags that this note is shared with
|
|
193
198
|
_sharedTags?: string[]; // The list of tags that have sharing equal to true
|