@bigfootai/bigfoot-types 2.7.8 → 2.7.10
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.ts +23 -7
- package/package.json +1 -1
package/model.ts
CHANGED
|
@@ -180,6 +180,11 @@ export interface ProviderInfo {
|
|
|
180
180
|
application: string;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
export interface ProviderRequest {
|
|
184
|
+
providerInfo: ProviderInfo;
|
|
185
|
+
email: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
183
188
|
export interface ProviderResponse {
|
|
184
189
|
connectionId: string;
|
|
185
190
|
providerUrl: string;
|
|
@@ -236,6 +241,7 @@ export class Primitive {
|
|
|
236
241
|
_id: string;
|
|
237
242
|
dateCreated: number;
|
|
238
243
|
dateUpdated: number;
|
|
244
|
+
tenantIdCreated?: string;
|
|
239
245
|
|
|
240
246
|
constructor() {
|
|
241
247
|
this._id = uuidv4();
|
|
@@ -246,6 +252,23 @@ export class Primitive {
|
|
|
246
252
|
}
|
|
247
253
|
}
|
|
248
254
|
|
|
255
|
+
export class Sync extends Primitive {
|
|
256
|
+
connectionId: string;
|
|
257
|
+
providerRequest: ProviderRequest;
|
|
258
|
+
|
|
259
|
+
constructor(
|
|
260
|
+
connectionId: string,
|
|
261
|
+
tenantIdCreated: string,
|
|
262
|
+
providerRequest: ProviderRequest
|
|
263
|
+
) {
|
|
264
|
+
super();
|
|
265
|
+
|
|
266
|
+
this.connectionId = connectionId;
|
|
267
|
+
this.tenantIdCreated = tenantIdCreated;
|
|
268
|
+
this.providerRequest = providerRequest;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
249
272
|
export class Provider extends Primitive {
|
|
250
273
|
provider: string;
|
|
251
274
|
name: string;
|
|
@@ -271,7 +294,6 @@ export class Provider extends Primitive {
|
|
|
271
294
|
}
|
|
272
295
|
|
|
273
296
|
export class Tag extends Primitive {
|
|
274
|
-
tenantIdCreated: string; // The tenant._id that created the tag initially
|
|
275
297
|
alias: string;
|
|
276
298
|
friendlyName?: string;
|
|
277
299
|
sharingDomains?: SharingDomain[]; // The domains this tag is shared with plus domain settings for the tag
|
|
@@ -388,7 +410,6 @@ export class Article extends Primitive {
|
|
|
388
410
|
}
|
|
389
411
|
|
|
390
412
|
export class Note extends Primitive {
|
|
391
|
-
tenantIdCreated: string;
|
|
392
413
|
editors: Editor[];
|
|
393
414
|
sharingTags: SharingTag[];
|
|
394
415
|
version: number;
|
|
@@ -555,11 +576,6 @@ export interface CalendarFilter {
|
|
|
555
576
|
limit: number;
|
|
556
577
|
}
|
|
557
578
|
|
|
558
|
-
export interface CalendarRequest {
|
|
559
|
-
filter: CalendarFilter;
|
|
560
|
-
providerInfo: ProviderInfo;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
579
|
export interface CalendarProviderRequest {
|
|
564
580
|
filter: CalendarFilter;
|
|
565
581
|
credential: Credential;
|