@bigfootai/bigfoot-types 4.7.12 → 4.7.14

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
@@ -295,7 +295,7 @@ exports.BusinessObjectLinkQL = `
295
295
  type BusinessObjectLink {
296
296
  url: String
297
297
  provider: String
298
- recordType: String
298
+ metadataType: String
299
299
  blockType: String
300
300
  _compound: String
301
301
  }`;
@@ -463,15 +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
468
  classifiers: [String]
468
469
  provider: String
469
470
  application: String`;
470
471
  class Metadata extends Primitive {
471
- constructor(label, description) {
472
+ constructor(label, description, metadataType) {
472
473
  super();
473
474
  this.label = label;
474
475
  this.description = description;
476
+ this.metadataType = metadataType;
475
477
  }
476
478
  }
477
479
  exports.Metadata = Metadata;
@@ -1040,9 +1042,8 @@ type DocumentMetadata {${exports.MetadataFields}
1040
1042
  contentBlocks: [BlockDescription]!
1041
1043
  }`;
1042
1044
  class DocumentMetadata extends Metadata {
1043
- constructor(documentType, label, description, contentBlocks) {
1044
- super(label, description);
1045
- this.documentType = documentType;
1045
+ constructor(label, description, metadataType, contentBlocks) {
1046
+ super(label, description, metadataType);
1046
1047
  this.contentBlocks = contentBlocks;
1047
1048
  }
1048
1049
  }
@@ -1107,13 +1108,11 @@ type FieldValue {
1107
1108
  exports.TableMetadataQL = `
1108
1109
  type TableMetadata {${exports.MetadataFields}
1109
1110
  fields: [Field]!
1110
- recordType: 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
@@ -342,14 +342,14 @@ export const BusinessObjectLinkQL = `
342
342
  type BusinessObjectLink {
343
343
  url: String
344
344
  provider: String
345
- recordType: String
345
+ metadataType: String
346
346
  blockType: String
347
347
  _compound: String
348
348
  }`;
349
349
  export interface BusinessObjectLink {
350
350
  url?: string;
351
351
  provider?: string;
352
- recordType?: string;
352
+ metadataType?: string;
353
353
  blockType?: BlockType;
354
354
  _compound?: string;
355
355
  }
@@ -666,6 +666,7 @@ 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
671
  classifiers: [String]
671
672
  provider: String
@@ -673,16 +674,18 @@ export const MetadataFields = `${PrimitiveFields}
673
674
  export class Metadata extends Primitive {
674
675
  label: string;
675
676
  description: string;
677
+ metadataType: string;
676
678
  references?: string[];
677
679
  classifiers?: string[];
678
680
  provider?: string;
679
681
  application?: string;
680
682
 
681
- constructor(label: string, description: string) {
683
+ constructor(label: string, description: string, metadataType: string) {
682
684
  super();
683
685
 
684
686
  this.label = label;
685
687
  this.description = description;
688
+ this.metadataType = metadataType;
686
689
  }
687
690
  }
688
691
 
@@ -1840,18 +1843,16 @@ type DocumentMetadata {${MetadataFields}
1840
1843
  contentBlocks: [BlockDescription]!
1841
1844
  }`;
1842
1845
  export class DocumentMetadata extends Metadata {
1843
- documentType: string;
1844
1846
  contentBlocks: BlockDescription[];
1845
1847
 
1846
1848
  constructor(
1847
- documentType: string,
1848
1849
  label: string,
1849
1850
  description: string,
1851
+ metadataType: string,
1850
1852
  contentBlocks: BlockDescription[]
1851
1853
  ) {
1852
- super(label, description);
1854
+ super(label, description, metadataType);
1853
1855
 
1854
- this.documentType = documentType;
1855
1856
  this.contentBlocks = contentBlocks;
1856
1857
  }
1857
1858
  }
@@ -1965,22 +1966,19 @@ export interface FieldValue {
1965
1966
  export const TableMetadataQL = `
1966
1967
  type TableMetadata {${MetadataFields}
1967
1968
  fields: [Field]!
1968
- recordType: String!
1969
1969
  }`;
1970
1970
  export class TableMetadata extends Metadata {
1971
1971
  fields: Field[];
1972
- recordType: 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.12",
4
+ "version": "4.7.14",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",