@bigfootai/bigfoot-types 4.7.19 → 4.7.21

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.
@@ -36,4 +36,5 @@ exports.HealthCheck = {
36
36
  'customer status meeting',
37
37
  'customer feedback session',
38
38
  ],
39
+ threshold: 0.24,
39
40
  };
@@ -39,4 +39,5 @@ export const HealthCheck: DocumentMetadata = {
39
39
  'customer status meeting',
40
40
  'customer feedback session',
41
41
  ],
42
+ threshold: 0.24,
42
43
  };
@@ -136,4 +136,5 @@ exports.Case = {
136
136
  'errors using',
137
137
  'struggling to get it going',
138
138
  ],
139
+ threshold: 0.24,
139
140
  };
@@ -142,4 +142,5 @@ export const Case: TableMetadata = {
142
142
  'errors using',
143
143
  'struggling to get it going',
144
144
  ],
145
+ threshold: 0.24,
145
146
  };
@@ -146,4 +146,5 @@ exports.Case = {
146
146
  'product enhancement',
147
147
  'new capability',
148
148
  ],
149
+ threshold: 0.24,
149
150
  };
@@ -152,4 +152,5 @@ export const Case: TableMetadata = {
152
152
  'product enhancement',
153
153
  'new capability',
154
154
  ],
155
+ threshold: 0.24,
155
156
  };
@@ -150,4 +150,5 @@ exports.Opportunity = {
150
150
  'interested in moving forward',
151
151
  'followup with sales',
152
152
  ],
153
+ threshold: 0.24,
153
154
  };
@@ -156,4 +156,5 @@ export const Opportunity: TableMetadata = {
156
156
  'interested in moving forward',
157
157
  'followup with sales',
158
158
  ],
159
+ threshold: 0.24,
159
160
  };
package/model.js CHANGED
@@ -466,14 +466,17 @@ exports.MetadataFields = `${exports.PrimitiveFields}
466
466
  metadataType: String!
467
467
  references: [String]
468
468
  classifiers: [String]!
469
+ threshold: Float!
469
470
  provider: String
470
471
  application: String`;
471
472
  class Metadata extends Primitive {
472
- constructor(label, description, metadataType) {
473
+ constructor(label, description, metadataType, classifiers, threshold) {
473
474
  super();
474
475
  this.label = label;
475
476
  this.description = description;
476
477
  this.metadataType = metadataType;
478
+ this.classifiers = classifiers;
479
+ this.threshold = threshold;
477
480
  }
478
481
  }
479
482
  exports.Metadata = Metadata;
@@ -1007,7 +1010,6 @@ type Document {${exports.BusinessObjectFields}
1007
1010
  description: String
1008
1011
  previewImage: String
1009
1012
  htmlContent: String
1010
- metadata: DocumentMetadata
1011
1013
  }`;
1012
1014
  class Document extends BusinessObject {
1013
1015
  constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
@@ -1045,8 +1047,8 @@ type DocumentMetadata {${exports.MetadataFields}
1045
1047
  blockDescriptions: [BlockDescription]!
1046
1048
  }`;
1047
1049
  class DocumentMetadata extends Metadata {
1048
- constructor(label, description, metadataType, blockDescriptions) {
1049
- super(label, description, metadataType);
1050
+ constructor(label, description, metadataType, classifiers, threshold, blockDescriptions) {
1051
+ super(label, description, metadataType, classifiers, threshold);
1050
1052
  this.blockDescriptions = blockDescriptions;
1051
1053
  }
1052
1054
  }
@@ -1113,8 +1115,8 @@ type TableMetadata {${exports.MetadataFields}
1113
1115
  fields: [Field]!
1114
1116
  }`;
1115
1117
  class TableMetadata extends Metadata {
1116
- constructor(label, description, metadataType, fields) {
1117
- super(label, description, metadataType);
1118
+ constructor(label, description, metadataType, fields, classifiers, threshold) {
1119
+ super(label, description, metadataType, classifiers, threshold);
1118
1120
  this.fields = fields;
1119
1121
  }
1120
1122
  }
package/model.ts CHANGED
@@ -669,6 +669,7 @@ export const MetadataFields = `${PrimitiveFields}
669
669
  metadataType: String!
670
670
  references: [String]
671
671
  classifiers: [String]!
672
+ threshold: Float!
672
673
  provider: String
673
674
  application: String`;
674
675
  export class Metadata extends Primitive {
@@ -677,15 +678,24 @@ export class Metadata extends Primitive {
677
678
  metadataType: string;
678
679
  references?: string[];
679
680
  classifiers: string[];
681
+ threshold: number;
680
682
  provider?: string;
681
683
  application?: string;
682
684
 
683
- constructor(label: string, description: string, metadataType: string) {
685
+ constructor(
686
+ label: string,
687
+ description: string,
688
+ metadataType: string,
689
+ classifiers: string[],
690
+ threshold: number
691
+ ) {
684
692
  super();
685
693
 
686
694
  this.label = label;
687
695
  this.description = description;
688
696
  this.metadataType = metadataType;
697
+ this.classifiers = classifiers;
698
+ this.threshold = threshold;
689
699
  }
690
700
  }
691
701
 
@@ -1755,14 +1765,12 @@ type Document {${BusinessObjectFields}
1755
1765
  description: String
1756
1766
  previewImage: String
1757
1767
  htmlContent: String
1758
- metadata: DocumentMetadata
1759
1768
  }`;
1760
1769
  export class Document extends BusinessObject {
1761
1770
  title?: string;
1762
1771
  description?: string;
1763
1772
  previewImage?: string;
1764
1773
  htmlContent?: string;
1765
- metadata?: DocumentMetadata;
1766
1774
 
1767
1775
  constructor(
1768
1776
  tenantIdCreated: string,
@@ -1856,9 +1864,11 @@ export class DocumentMetadata extends Metadata {
1856
1864
  label: string,
1857
1865
  description: string,
1858
1866
  metadataType: string,
1867
+ classifiers: string[],
1868
+ threshold: number,
1859
1869
  blockDescriptions: BlockDescription[]
1860
1870
  ) {
1861
- super(label, description, metadataType);
1871
+ super(label, description, metadataType, classifiers, threshold);
1862
1872
 
1863
1873
  this.blockDescriptions = blockDescriptions;
1864
1874
  }
@@ -1981,9 +1991,11 @@ export class TableMetadata extends Metadata {
1981
1991
  label: string,
1982
1992
  description: string,
1983
1993
  metadataType: string,
1984
- fields: Field[]
1994
+ fields: Field[],
1995
+ classifiers: string[],
1996
+ threshold: number
1985
1997
  ) {
1986
- super(label, description, metadataType);
1998
+ super(label, description, metadataType, classifiers, threshold);
1987
1999
 
1988
2000
  this.fields = fields;
1989
2001
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.7.19",
4
+ "version": "4.7.21",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",