@salesforce/lds-adapters-industries-timeline 1.266.0-dev1 → 1.266.0-dev3
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.
|
@@ -1637,10 +1637,31 @@ function validate$2(obj, path = 'TimelineEventTypeMetadataRepresentation') {
|
|
|
1637
1637
|
if (obj.summaryField !== undefined) {
|
|
1638
1638
|
const obj_summaryField = obj.summaryField;
|
|
1639
1639
|
const path_summaryField = path + '.summaryField';
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1640
|
+
let obj_summaryField_union0 = null;
|
|
1641
|
+
const obj_summaryField_union0_error = (() => {
|
|
1642
|
+
const referencepath_summaryFieldValidationError = validate$3(obj_summaryField, path_summaryField);
|
|
1643
|
+
if (referencepath_summaryFieldValidationError !== null) {
|
|
1644
|
+
let message = 'Object doesn\'t match TimelineElementRepresentation (at "' + path_summaryField + '")\n';
|
|
1645
|
+
message += referencepath_summaryFieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1646
|
+
return new TypeError(message);
|
|
1647
|
+
}
|
|
1648
|
+
})();
|
|
1649
|
+
if (obj_summaryField_union0_error != null) {
|
|
1650
|
+
obj_summaryField_union0 = obj_summaryField_union0_error.message;
|
|
1651
|
+
}
|
|
1652
|
+
let obj_summaryField_union1 = null;
|
|
1653
|
+
const obj_summaryField_union1_error = (() => {
|
|
1654
|
+
if (obj_summaryField !== null) {
|
|
1655
|
+
return new TypeError('Expected "null" but received "' + typeof obj_summaryField + '" (at "' + path_summaryField + '")');
|
|
1656
|
+
}
|
|
1657
|
+
})();
|
|
1658
|
+
if (obj_summaryField_union1_error != null) {
|
|
1659
|
+
obj_summaryField_union1 = obj_summaryField_union1_error.message;
|
|
1660
|
+
}
|
|
1661
|
+
if (obj_summaryField_union0 && obj_summaryField_union1) {
|
|
1662
|
+
let message = 'Object doesn\'t match union (at "' + path_summaryField + '")';
|
|
1663
|
+
message += '\n' + obj_summaryField_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1664
|
+
message += '\n' + obj_summaryField_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1644
1665
|
return new TypeError(message);
|
|
1645
1666
|
}
|
|
1646
1667
|
}
|
package/dist/es/es2018/types/src/generated/types/TimelineEventTypeMetadataRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TimelineElementRepresentation as TimelineElementRepresentation_TimelineElementRepresentation } from './TimelineElementRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "2a7e2ae0b2eaf20d5cf1dd0f065fd817";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: TimelineEventTypeMetadataRepresentation, existing: TimelineEventTypeMetadataRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TimelineEventTypeMetadataRepresentationNormalized;
|
|
@@ -30,7 +30,8 @@ export interface TimelineEventTypeMetadataRepresentationNormalized {
|
|
|
30
30
|
relationType: string | null;
|
|
31
31
|
sortField?: TimelineElementRepresentation_TimelineElementRepresentation;
|
|
32
32
|
subTitle?: TimelineElementRepresentation_TimelineElementRepresentation;
|
|
33
|
-
|
|
33
|
+
/** Event Entity Summary field */
|
|
34
|
+
summaryField?: TimelineElementRepresentation_TimelineElementRepresentation | null;
|
|
34
35
|
title?: TimelineElementRepresentation_TimelineElementRepresentation;
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
@@ -49,6 +50,6 @@ export interface TimelineEventTypeMetadataRepresentation {
|
|
|
49
50
|
relationType: string | null;
|
|
50
51
|
sortField?: TimelineElementRepresentation_TimelineElementRepresentation;
|
|
51
52
|
subTitle?: TimelineElementRepresentation_TimelineElementRepresentation;
|
|
52
|
-
summaryField?: TimelineElementRepresentation_TimelineElementRepresentation;
|
|
53
|
+
summaryField?: TimelineElementRepresentation_TimelineElementRepresentation | null;
|
|
53
54
|
title?: TimelineElementRepresentation_TimelineElementRepresentation;
|
|
54
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-timeline",
|
|
3
|
-
"version": "1.266.0-
|
|
3
|
+
"version": "1.266.0-dev3",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": " GET Resource to get the Timeline Data",
|
|
6
6
|
"main": "dist/es/es2018/industries-timeline.js",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"test:unit": "jest"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@salesforce/lds-bindings": "^1.266.0-
|
|
42
|
+
"@salesforce/lds-bindings": "^1.266.0-dev3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@salesforce/lds-compiler-plugins": "^1.266.0-
|
|
46
|
-
"@salesforce/lds-karma": "^1.266.0-
|
|
45
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0-dev3",
|
|
46
|
+
"@salesforce/lds-karma": "^1.266.0-dev3"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1647,10 +1647,31 @@ function validate$2(obj, path = 'TimelineEventTypeMetadataRepresentation') {
|
|
|
1647
1647
|
if (obj.summaryField !== undefined) {
|
|
1648
1648
|
const obj_summaryField = obj.summaryField;
|
|
1649
1649
|
const path_summaryField = path + '.summaryField';
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1650
|
+
let obj_summaryField_union0 = null;
|
|
1651
|
+
const obj_summaryField_union0_error = (() => {
|
|
1652
|
+
const referencepath_summaryFieldValidationError = validate$3(obj_summaryField, path_summaryField);
|
|
1653
|
+
if (referencepath_summaryFieldValidationError !== null) {
|
|
1654
|
+
let message = 'Object doesn\'t match TimelineElementRepresentation (at "' + path_summaryField + '")\n';
|
|
1655
|
+
message += referencepath_summaryFieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1656
|
+
return new TypeError(message);
|
|
1657
|
+
}
|
|
1658
|
+
})();
|
|
1659
|
+
if (obj_summaryField_union0_error != null) {
|
|
1660
|
+
obj_summaryField_union0 = obj_summaryField_union0_error.message;
|
|
1661
|
+
}
|
|
1662
|
+
let obj_summaryField_union1 = null;
|
|
1663
|
+
const obj_summaryField_union1_error = (() => {
|
|
1664
|
+
if (obj_summaryField !== null) {
|
|
1665
|
+
return new TypeError('Expected "null" but received "' + typeof obj_summaryField + '" (at "' + path_summaryField + '")');
|
|
1666
|
+
}
|
|
1667
|
+
})();
|
|
1668
|
+
if (obj_summaryField_union1_error != null) {
|
|
1669
|
+
obj_summaryField_union1 = obj_summaryField_union1_error.message;
|
|
1670
|
+
}
|
|
1671
|
+
if (obj_summaryField_union0 && obj_summaryField_union1) {
|
|
1672
|
+
let message = 'Object doesn\'t match union (at "' + path_summaryField + '")';
|
|
1673
|
+
message += '\n' + obj_summaryField_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1674
|
+
message += '\n' + obj_summaryField_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1654
1675
|
return new TypeError(message);
|
|
1655
1676
|
}
|
|
1656
1677
|
}
|
|
@@ -2071,4 +2092,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2071
2092
|
});
|
|
2072
2093
|
|
|
2073
2094
|
export { getDataModelObjects, getDataModelObjects_imperative, getEngagementEvents, getEngagementEvents_imperative, getTimelineData, getTimelineData_imperative, getTimelineMetadata, getTimelineMetadata_imperative };
|
|
2074
|
-
// version: 1.266.0-
|
|
2095
|
+
// version: 1.266.0-dev3-b70fa7fde
|
package/src/raml/api.raml
CHANGED