@bigfootai/bigfoot-types 4.7.10 → 4.7.12

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 (3) hide show
  1. package/model.js +9 -5
  2. package/model.ts +15 -7
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -463,7 +463,10 @@ exports.SharedPrimitive = SharedPrimitive;
463
463
  exports.MetadataFields = `${exports.PrimitiveFields}
464
464
  label: String!
465
465
  description: String!
466
- references: [String]`;
466
+ references: [String]
467
+ classifiers: [String]
468
+ provider: String
469
+ application: String`;
467
470
  class Metadata extends Primitive {
468
471
  constructor(label, description) {
469
472
  super();
@@ -549,6 +552,7 @@ type ProviderApplication {
549
552
  sobjects: StandardObjects!
550
553
  linkSubscriptions: [String]!
551
554
  recordTypeSubscriptions: [String]!
555
+ documentTypeSubscriptions: [String]!
552
556
  authentication: Boolean!
553
557
  }`;
554
558
  exports.ProviderQL = `
@@ -560,6 +564,7 @@ type Provider {${exports.PrimitiveFields}
560
564
  instanceUrl: String!
561
565
  applications: [ProviderApplication]!
562
566
  tableMetadata: [TableMetadata]!
567
+ documentMetadata: [DocumentMetadata]!
563
568
  }`;
564
569
  class Provider extends Primitive {
565
570
  constructor(name, label, description, instanceUrl, applications) {
@@ -570,6 +575,7 @@ class Provider extends Primitive {
570
575
  this.instanceUrl = instanceUrl;
571
576
  this.applications = applications;
572
577
  this.tableMetadata = [];
578
+ this.documentMetadata = [];
573
579
  }
574
580
  }
575
581
  exports.Provider = Provider;
@@ -1034,8 +1040,9 @@ type DocumentMetadata {${exports.MetadataFields}
1034
1040
  contentBlocks: [BlockDescription]!
1035
1041
  }`;
1036
1042
  class DocumentMetadata extends Metadata {
1037
- constructor(label, description, contentBlocks) {
1043
+ constructor(documentType, label, description, contentBlocks) {
1038
1044
  super(label, description);
1045
+ this.documentType = documentType;
1039
1046
  this.contentBlocks = contentBlocks;
1040
1047
  }
1041
1048
  }
@@ -1101,9 +1108,6 @@ exports.TableMetadataQL = `
1101
1108
  type TableMetadata {${exports.MetadataFields}
1102
1109
  fields: [Field]!
1103
1110
  recordType: String!
1104
- provider: String
1105
- application: String
1106
- classifiers: [String]
1107
1111
  }`;
1108
1112
  class TableMetadata extends Metadata {
1109
1113
  constructor(label, description, fields, recordType) {
package/model.ts CHANGED
@@ -666,11 +666,17 @@ export class SharedPrimitive extends Primitive {
666
666
  export const MetadataFields = `${PrimitiveFields}
667
667
  label: String!
668
668
  description: String!
669
- references: [String]`;
669
+ references: [String]
670
+ classifiers: [String]
671
+ provider: String
672
+ application: String`;
670
673
  export class Metadata extends Primitive {
671
674
  label: string;
672
675
  description: string;
673
676
  references?: string[];
677
+ classifiers?: string[];
678
+ provider?: string;
679
+ application?: string;
674
680
 
675
681
  constructor(label: string, description: string) {
676
682
  super();
@@ -801,6 +807,7 @@ type ProviderApplication {
801
807
  sobjects: StandardObjects!
802
808
  linkSubscriptions: [String]!
803
809
  recordTypeSubscriptions: [String]!
810
+ documentTypeSubscriptions: [String]!
804
811
  authentication: Boolean!
805
812
  }`;
806
813
  export interface ProviderApplication {
@@ -811,6 +818,7 @@ export interface ProviderApplication {
811
818
  sobjects: StandardObjects;
812
819
  linkSubscriptions: string[];
813
820
  recordTypeSubscriptions: string[];
821
+ documentTypeSubscriptions: string[];
814
822
  authentication: boolean;
815
823
  }
816
824
 
@@ -823,6 +831,7 @@ type Provider {${PrimitiveFields}
823
831
  instanceUrl: String!
824
832
  applications: [ProviderApplication]!
825
833
  tableMetadata: [TableMetadata]!
834
+ documentMetadata: [DocumentMetadata]!
826
835
  }`;
827
836
  export class Provider extends Primitive {
828
837
  name: string;
@@ -832,6 +841,7 @@ export class Provider extends Primitive {
832
841
  instanceUrl: string;
833
842
  applications: ProviderApplication[];
834
843
  tableMetadata: TableMetadata[];
844
+ documentMetadata: DocumentMetadata[];
835
845
 
836
846
  constructor(
837
847
  name: string,
@@ -849,6 +859,7 @@ export class Provider extends Primitive {
849
859
  this.applications = applications;
850
860
 
851
861
  this.tableMetadata = [];
862
+ this.documentMetadata = [];
852
863
  }
853
864
  }
854
865
 
@@ -1829,15 +1840,18 @@ type DocumentMetadata {${MetadataFields}
1829
1840
  contentBlocks: [BlockDescription]!
1830
1841
  }`;
1831
1842
  export class DocumentMetadata extends Metadata {
1843
+ documentType: string;
1832
1844
  contentBlocks: BlockDescription[];
1833
1845
 
1834
1846
  constructor(
1847
+ documentType: string,
1835
1848
  label: string,
1836
1849
  description: string,
1837
1850
  contentBlocks: BlockDescription[]
1838
1851
  ) {
1839
1852
  super(label, description);
1840
1853
 
1854
+ this.documentType = documentType;
1841
1855
  this.contentBlocks = contentBlocks;
1842
1856
  }
1843
1857
  }
@@ -1952,16 +1966,10 @@ export const TableMetadataQL = `
1952
1966
  type TableMetadata {${MetadataFields}
1953
1967
  fields: [Field]!
1954
1968
  recordType: String!
1955
- provider: String
1956
- application: String
1957
- classifiers: [String]
1958
1969
  }`;
1959
1970
  export class TableMetadata extends Metadata {
1960
1971
  fields: Field[];
1961
1972
  recordType: string;
1962
- provider?: string;
1963
- application?: string;
1964
- classifiers?: string[];
1965
1973
 
1966
1974
  constructor(
1967
1975
  label: string,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.7.10",
4
+ "version": "4.7.12",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",