@bigfootai/bigfoot-types 4.7.11 → 4.7.13

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.
@@ -8,7 +8,7 @@ exports.Case = {
8
8
  dateUpdated: 0,
9
9
  label: 'Case',
10
10
  description: 'Represents an case/ticket, which is a problem that needs to be resolved.',
11
- recordType: 'case',
11
+ metadataType: 'case',
12
12
  references: [
13
13
  'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
14
14
  'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
@@ -13,7 +13,7 @@ export const Case: TableMetadata = {
13
13
  label: 'Case',
14
14
  description:
15
15
  'Represents an case/ticket, which is a problem that needs to be resolved.',
16
- recordType: 'case',
16
+ metadataType: 'case',
17
17
  references: [
18
18
  'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
19
19
  'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
@@ -8,7 +8,7 @@ exports.Case = {
8
8
  dateUpdated: 0,
9
9
  label: 'Issue',
10
10
  description: 'Represents an issue or feature enhancement, which is a request to improve a product or service.',
11
- recordType: 'issue',
11
+ metadataType: 'issue',
12
12
  references: [
13
13
  'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
14
14
  'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
@@ -13,7 +13,7 @@ export const Case: TableMetadata = {
13
13
  label: 'Issue',
14
14
  description:
15
15
  'Represents an issue or feature enhancement, which is a request to improve a product or service.',
16
- recordType: 'issue',
16
+ metadataType: 'issue',
17
17
  references: [
18
18
  'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm',
19
19
  'https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/',
@@ -8,7 +8,7 @@ exports.Opportunity = {
8
8
  dateUpdated: 0,
9
9
  label: 'Opportunity',
10
10
  description: 'Represents an opportunity, which is a sale or pending deal.',
11
- recordType: 'opportunity',
11
+ metadataType: 'opportunity',
12
12
  references: [
13
13
  'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_opportunity.htm',
14
14
  ],
@@ -11,7 +11,7 @@ export const Opportunity: TableMetadata = {
11
11
  dateUpdated: 0,
12
12
  label: 'Opportunity',
13
13
  description: 'Represents an opportunity, which is a sale or pending deal.',
14
- recordType: 'opportunity',
14
+ metadataType: 'opportunity',
15
15
  references: [
16
16
  'https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_opportunity.htm',
17
17
  ],
package/model.js CHANGED
@@ -463,13 +463,17 @@ exports.SharedPrimitive = SharedPrimitive;
463
463
  exports.MetadataFields = `${exports.PrimitiveFields}
464
464
  label: String!
465
465
  description: String!
466
+ metadataType: String!
466
467
  references: [String]
467
- classifiers: [String]`;
468
+ classifiers: [String]
469
+ provider: String
470
+ application: String`;
468
471
  class Metadata extends Primitive {
469
- constructor(label, description) {
472
+ constructor(label, description, metadataType) {
470
473
  super();
471
474
  this.label = label;
472
475
  this.description = description;
476
+ this.metadataType = metadataType;
473
477
  }
474
478
  }
475
479
  exports.Metadata = Metadata;
@@ -1038,9 +1042,8 @@ type DocumentMetadata {${exports.MetadataFields}
1038
1042
  contentBlocks: [BlockDescription]!
1039
1043
  }`;
1040
1044
  class DocumentMetadata extends Metadata {
1041
- constructor(documentType, label, description, contentBlocks) {
1042
- super(label, description);
1043
- this.documentType = documentType;
1045
+ constructor(label, description, metadataType, contentBlocks) {
1046
+ super(label, description, metadataType);
1044
1047
  this.contentBlocks = contentBlocks;
1045
1048
  }
1046
1049
  }
@@ -1105,15 +1108,11 @@ type FieldValue {
1105
1108
  exports.TableMetadataQL = `
1106
1109
  type TableMetadata {${exports.MetadataFields}
1107
1110
  fields: [Field]!
1108
- recordType: String!
1109
- provider: String
1110
- application: String
1111
1111
  }`;
1112
1112
  class TableMetadata extends Metadata {
1113
- constructor(label, description, fields, recordType) {
1114
- super(label, description);
1113
+ constructor(label, description, metadataType, fields) {
1114
+ super(label, description, metadataType);
1115
1115
  this.fields = fields;
1116
- this.recordType = recordType;
1117
1116
  }
1118
1117
  }
1119
1118
  exports.TableMetadata = TableMetadata;
package/model.ts CHANGED
@@ -666,19 +666,26 @@ export class SharedPrimitive extends Primitive {
666
666
  export const MetadataFields = `${PrimitiveFields}
667
667
  label: String!
668
668
  description: String!
669
+ metadataType: String!
669
670
  references: [String]
670
- classifiers: [String]`;
671
+ classifiers: [String]
672
+ provider: String
673
+ application: String`;
671
674
  export class Metadata extends Primitive {
672
675
  label: string;
673
676
  description: string;
677
+ metadataType: string;
674
678
  references?: string[];
675
679
  classifiers?: string[];
680
+ provider?: string;
681
+ application?: string;
676
682
 
677
- constructor(label: string, description: string) {
683
+ constructor(label: string, description: string, metadataType: string) {
678
684
  super();
679
685
 
680
686
  this.label = label;
681
687
  this.description = description;
688
+ this.metadataType = metadataType;
682
689
  }
683
690
  }
684
691
 
@@ -1836,18 +1843,16 @@ type DocumentMetadata {${MetadataFields}
1836
1843
  contentBlocks: [BlockDescription]!
1837
1844
  }`;
1838
1845
  export class DocumentMetadata extends Metadata {
1839
- documentType: string;
1840
1846
  contentBlocks: BlockDescription[];
1841
1847
 
1842
1848
  constructor(
1843
- documentType: string,
1844
1849
  label: string,
1845
1850
  description: string,
1851
+ metadataType: string,
1846
1852
  contentBlocks: BlockDescription[]
1847
1853
  ) {
1848
- super(label, description);
1854
+ super(label, description, metadataType);
1849
1855
 
1850
- this.documentType = documentType;
1851
1856
  this.contentBlocks = contentBlocks;
1852
1857
  }
1853
1858
  }
@@ -1961,26 +1966,19 @@ export interface FieldValue {
1961
1966
  export const TableMetadataQL = `
1962
1967
  type TableMetadata {${MetadataFields}
1963
1968
  fields: [Field]!
1964
- recordType: String!
1965
- provider: String
1966
- application: String
1967
1969
  }`;
1968
1970
  export class TableMetadata extends Metadata {
1969
1971
  fields: Field[];
1970
- recordType: string;
1971
- provider?: string;
1972
- application?: string;
1973
1972
 
1974
1973
  constructor(
1975
1974
  label: string,
1976
1975
  description: string,
1977
- fields: Field[],
1978
- recordType: string
1976
+ metadataType: string,
1977
+ fields: Field[]
1979
1978
  ) {
1980
- super(label, description);
1979
+ super(label, description, metadataType);
1981
1980
 
1982
1981
  this.fields = fields;
1983
- this.recordType = recordType;
1984
1982
  }
1985
1983
  }
1986
1984
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.7.11",
4
+ "version": "4.7.13",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",