@bigfootai/bigfoot-types 3.3.0 → 3.4.0

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 (2) hide show
  1. package/model.ts +70 -17
  2. package/package.json +1 -1
package/model.ts CHANGED
@@ -556,23 +556,24 @@ export class Provider extends Primitive {
556
556
  }
557
557
  }
558
558
 
559
- export const TagQL = `
560
- type Tag {${PrimitiveFields}
561
- alias: String!
559
+ export const TagFields = `${PrimitiveFields}
560
+ alias: String!
562
561
  friendlyName: String
563
562
  tagType: String!
564
- sharingDomains: [SharingDomain]
565
- sharingTenants: [SharingTenant]
566
- url: String
567
- favicon: String
568
- dbpedia: String
569
- email: String
570
- avatar: String
571
- inviteStatus: Int
572
- tenantIdVerified: String
563
+ sharingDomains: [SharingDomain]
564
+ sharingTenants: [SharingTenant]
565
+ url: String
566
+ favicon: String
567
+ dbpedia: String
568
+ email: String
569
+ avatar: String
570
+ inviteStatus: Int
571
+ tenantIdVerified: String`;
572
+ export const TagQL = `
573
+ type Tag {${TagFields}
573
574
  }`;
574
575
  export class Tag extends Primitive {
575
- text: string;
576
+ alias: string;
576
577
  tagType: TagType;
577
578
  friendlyName?: string;
578
579
  sharingDomains?: SharingDomain[]; // The domains this tag is shared with plus domain settings for the tag
@@ -585,11 +586,11 @@ export class Tag extends Primitive {
585
586
  inviteStatus?: InviteStatus;
586
587
  tenantIdVerified?: string; // The tenant._id that claimed/verified this tag as being them
587
588
 
588
- constructor(tenantIdCreated: string, text: string, tagType: TagType) {
589
+ constructor(tenantIdCreated: string, alias: string, tagType: TagType) {
589
590
  super();
590
591
 
591
592
  this.tenantIdCreated = tenantIdCreated;
592
- this.text = text;
593
+ this.alias = alias;
593
594
  this.tagType = tagType;
594
595
  }
595
596
  }
@@ -838,8 +839,7 @@ export class Note extends Block {
838
839
  }
839
840
  }
840
841
 
841
- export const TaskQL = `
842
- type Task {${BlockFields}
842
+ export const TaskFields = `${BlockFields}
843
843
  status: String!
844
844
  dueDate: Int!
845
845
  originNoteId: String!
@@ -848,6 +848,9 @@ type Task {${BlockFields}
848
848
  recurrence: [String]
849
849
  parentId: String
850
850
  groupId: String
851
+ `;
852
+ export const TaskQL = `
853
+ type Task {${TaskFields}
851
854
  }`;
852
855
  export class Task extends Block {
853
856
  status: TaskStatus;
@@ -1466,6 +1469,56 @@ export interface FindSyncInput {
1466
1469
  _id: string;
1467
1470
  }
1468
1471
 
1472
+ export const UpsertTagInputQL = `
1473
+ input UpsertTagInput {${TagFields}
1474
+ }`;
1475
+ export interface UpsertTagInput extends Tag {}
1476
+
1477
+ export const FindTagInputQL = `
1478
+ input FindTagInput {
1479
+ _id: String!
1480
+ archived: Boolean
1481
+ }`;
1482
+ export interface FindTagInput {
1483
+ _id: string;
1484
+ archived?: boolean;
1485
+ }
1486
+
1487
+ export const FindTagsInputQL = `
1488
+ input FindTagsInput {
1489
+ alias: String
1490
+ friendlyName: String
1491
+ archived: Boolean
1492
+ }`;
1493
+ export interface FindTagsInput {
1494
+ archived?: boolean;
1495
+ }
1496
+
1497
+ export const ArchiveTagInputQL = `
1498
+ input ArchiveTagInput {
1499
+ _id: String!
1500
+ archived: Boolean
1501
+ }`;
1502
+ export interface ArchiveTagInput {
1503
+ _id: string;
1504
+ archive?: boolean;
1505
+ }
1506
+
1507
+ export const ArchiveTagOutputQL = `
1508
+ type ArchiveTagOutput {
1509
+ _id: String!
1510
+ archived: Boolean
1511
+ }`;
1512
+ export interface ArchiveTagOutput {
1513
+ _id: string;
1514
+ archive?: boolean;
1515
+ }
1516
+
1517
+ export const UpsertTaskInputQL = `
1518
+ input UpsertTaskInput {${TaskFields}
1519
+ }`;
1520
+ export interface UpsertTaskInput extends Task {}
1521
+
1469
1522
  export const FindTaskInputQL = `
1470
1523
  input FindTaskInput {
1471
1524
  _id: String!
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "3.3.0",
4
+ "version": "3.4.0",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",