@salesforce/lds-adapters-industries-timeline 1.213.0 → 1.213.2
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.
- package/dist/es/es2018/industries-timeline.js +54 -165
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/getDataModelObjects.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getEngagementEvents.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getTimelineData.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getTimelineMetadata.d.ts +3 -2
- package/package.json +1 -1
- package/sfdc/index.js +55 -166
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, deepFreeze, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -48,6 +48,24 @@ const snapshotRefreshOptions = {
|
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
+
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
52
|
+
return {
|
|
53
|
+
name,
|
|
54
|
+
required,
|
|
55
|
+
coerceFn,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
59
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
60
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
61
|
+
return {
|
|
62
|
+
displayName,
|
|
63
|
+
parameters: {
|
|
64
|
+
required,
|
|
65
|
+
optional,
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
51
69
|
const keyPrefix = 'Timeline';
|
|
52
70
|
|
|
53
71
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -483,26 +501,8 @@ const ingest$3 = function EngagementEventTimelineDataRepresentationIngest(input,
|
|
|
483
501
|
}
|
|
484
502
|
}
|
|
485
503
|
const key = path.fullPath;
|
|
486
|
-
const existingRecord = store.readEntry(key);
|
|
487
504
|
const ttlToUse = TTL$3;
|
|
488
|
-
|
|
489
|
-
fullPath: key,
|
|
490
|
-
parent: path.parent,
|
|
491
|
-
propertyName: path.propertyName,
|
|
492
|
-
ttl: ttlToUse
|
|
493
|
-
});
|
|
494
|
-
if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
|
|
495
|
-
luvio.storePublish(key, incomingRecord);
|
|
496
|
-
}
|
|
497
|
-
{
|
|
498
|
-
const storeMetadataParams = {
|
|
499
|
-
ttl: ttlToUse,
|
|
500
|
-
namespace: "Timeline",
|
|
501
|
-
version: VERSION$3,
|
|
502
|
-
representationName: RepresentationType$3,
|
|
503
|
-
};
|
|
504
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
505
|
-
}
|
|
505
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "Timeline", VERSION$3, RepresentationType$3, equals$3);
|
|
506
506
|
return createLink(key);
|
|
507
507
|
};
|
|
508
508
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -567,13 +567,12 @@ function createResourceRequest$3(config) {
|
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
-
const
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
};
|
|
570
|
+
const adapterName$3 = 'getEngagementEvents';
|
|
571
|
+
const getEngagementEvents_ConfigPropertyMetadata = [
|
|
572
|
+
generateParamConfigMetadata('timelineConfigFullName', true),
|
|
573
|
+
generateParamConfigMetadata('timelineObjRecordId', true),
|
|
574
|
+
];
|
|
575
|
+
const getEngagementEvents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getEngagementEvents_ConfigPropertyMetadata);
|
|
577
576
|
function createResourceParams$3(config) {
|
|
578
577
|
const resourceParams = {
|
|
579
578
|
urlParams: {
|
|
@@ -640,21 +639,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
640
639
|
});
|
|
641
640
|
}
|
|
642
641
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
643
|
-
|
|
644
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
645
|
-
const dispatchOptions = {
|
|
646
|
-
resourceRequestContext: {
|
|
647
|
-
requestCorrelator,
|
|
648
|
-
luvioRequestMethod: undefined,
|
|
649
|
-
},
|
|
650
|
-
eventObservers
|
|
651
|
-
};
|
|
652
|
-
if (networkPriority !== 'normal') {
|
|
653
|
-
dispatchOptions.overrides = {
|
|
654
|
-
priority: networkPriority
|
|
655
|
-
};
|
|
656
|
-
}
|
|
657
|
-
return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
|
|
642
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
658
643
|
}
|
|
659
644
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
660
645
|
const { luvio, config } = context;
|
|
@@ -780,26 +765,8 @@ const ingest$2 = function TimelineDataGetResultRepresentationIngest(input, path,
|
|
|
780
765
|
}
|
|
781
766
|
}
|
|
782
767
|
const key = path.fullPath;
|
|
783
|
-
const existingRecord = store.readEntry(key);
|
|
784
768
|
const ttlToUse = TTL$2;
|
|
785
|
-
|
|
786
|
-
fullPath: key,
|
|
787
|
-
parent: path.parent,
|
|
788
|
-
propertyName: path.propertyName,
|
|
789
|
-
ttl: ttlToUse
|
|
790
|
-
});
|
|
791
|
-
if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
|
|
792
|
-
luvio.storePublish(key, incomingRecord);
|
|
793
|
-
}
|
|
794
|
-
{
|
|
795
|
-
const storeMetadataParams = {
|
|
796
|
-
ttl: ttlToUse,
|
|
797
|
-
namespace: "Timeline",
|
|
798
|
-
version: VERSION$2,
|
|
799
|
-
representationName: RepresentationType$2,
|
|
800
|
-
};
|
|
801
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
802
|
-
}
|
|
769
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "Timeline", VERSION$2, RepresentationType$2, equals$2);
|
|
803
770
|
return createLink(key);
|
|
804
771
|
};
|
|
805
772
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -864,13 +831,17 @@ function createResourceRequest$2(config) {
|
|
|
864
831
|
};
|
|
865
832
|
}
|
|
866
833
|
|
|
867
|
-
const
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
834
|
+
const adapterName$2 = 'getTimelineData';
|
|
835
|
+
const getTimelineData_ConfigPropertyMetadata = [
|
|
836
|
+
generateParamConfigMetadata('timelineConfigFullName', true),
|
|
837
|
+
generateParamConfigMetadata('timelineObjRecordId', true),
|
|
838
|
+
generateParamConfigMetadata('direction', false),
|
|
839
|
+
generateParamConfigMetadata('endDate', false),
|
|
840
|
+
generateParamConfigMetadata('eventTypeOffsets', false),
|
|
841
|
+
generateParamConfigMetadata('eventTypes', false),
|
|
842
|
+
generateParamConfigMetadata('startDate', false),
|
|
843
|
+
];
|
|
844
|
+
const getTimelineData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTimelineData_ConfigPropertyMetadata);
|
|
874
845
|
function createResourceParams$2(config) {
|
|
875
846
|
const resourceParams = {
|
|
876
847
|
urlParams: {
|
|
@@ -945,21 +916,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
945
916
|
});
|
|
946
917
|
}
|
|
947
918
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
948
|
-
|
|
949
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
950
|
-
const dispatchOptions = {
|
|
951
|
-
resourceRequestContext: {
|
|
952
|
-
requestCorrelator,
|
|
953
|
-
luvioRequestMethod: undefined,
|
|
954
|
-
},
|
|
955
|
-
eventObservers
|
|
956
|
-
};
|
|
957
|
-
if (networkPriority !== 'normal') {
|
|
958
|
-
dispatchOptions.overrides = {
|
|
959
|
-
priority: networkPriority
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
|
|
919
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
963
920
|
}
|
|
964
921
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
965
922
|
const { luvio, config } = context;
|
|
@@ -1157,26 +1114,8 @@ const ingest$1 = function CdpMetadataOutputRepresentationIngest(input, path, luv
|
|
|
1157
1114
|
}
|
|
1158
1115
|
}
|
|
1159
1116
|
const key = path.fullPath;
|
|
1160
|
-
const existingRecord = store.readEntry(key);
|
|
1161
1117
|
const ttlToUse = TTL$1;
|
|
1162
|
-
|
|
1163
|
-
fullPath: key,
|
|
1164
|
-
parent: path.parent,
|
|
1165
|
-
propertyName: path.propertyName,
|
|
1166
|
-
ttl: ttlToUse
|
|
1167
|
-
});
|
|
1168
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
1169
|
-
luvio.storePublish(key, incomingRecord);
|
|
1170
|
-
}
|
|
1171
|
-
{
|
|
1172
|
-
const storeMetadataParams = {
|
|
1173
|
-
ttl: ttlToUse,
|
|
1174
|
-
namespace: "Timeline",
|
|
1175
|
-
version: VERSION$1,
|
|
1176
|
-
representationName: RepresentationType$1,
|
|
1177
|
-
};
|
|
1178
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1179
|
-
}
|
|
1118
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "Timeline", VERSION$1, RepresentationType$1, equals$1);
|
|
1180
1119
|
return createLink(key);
|
|
1181
1120
|
};
|
|
1182
1121
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1241,13 +1180,11 @@ function createResourceRequest$1(config) {
|
|
|
1241
1180
|
};
|
|
1242
1181
|
}
|
|
1243
1182
|
|
|
1244
|
-
const
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
}
|
|
1250
|
-
};
|
|
1183
|
+
const adapterName$1 = 'getDataModelObjects';
|
|
1184
|
+
const getDataModelObjects_ConfigPropertyMetadata = [
|
|
1185
|
+
generateParamConfigMetadata('objectCategory', false),
|
|
1186
|
+
];
|
|
1187
|
+
const getDataModelObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDataModelObjects_ConfigPropertyMetadata);
|
|
1251
1188
|
function createResourceParams$1(config) {
|
|
1252
1189
|
const resourceParams = {
|
|
1253
1190
|
queryParams: {
|
|
@@ -1313,21 +1250,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1313
1250
|
});
|
|
1314
1251
|
}
|
|
1315
1252
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1316
|
-
|
|
1317
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1318
|
-
const dispatchOptions = {
|
|
1319
|
-
resourceRequestContext: {
|
|
1320
|
-
requestCorrelator,
|
|
1321
|
-
luvioRequestMethod: undefined,
|
|
1322
|
-
},
|
|
1323
|
-
eventObservers
|
|
1324
|
-
};
|
|
1325
|
-
if (networkPriority !== 'normal') {
|
|
1326
|
-
dispatchOptions.overrides = {
|
|
1327
|
-
priority: networkPriority
|
|
1328
|
-
};
|
|
1329
|
-
}
|
|
1330
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
1253
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1331
1254
|
}
|
|
1332
1255
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1333
1256
|
const { luvio, config } = context;
|
|
@@ -1937,26 +1860,8 @@ const ingest = function TimelineMetadataResultRepresentationIngest(input, path,
|
|
|
1937
1860
|
}
|
|
1938
1861
|
}
|
|
1939
1862
|
const key = path.fullPath;
|
|
1940
|
-
const existingRecord = store.readEntry(key);
|
|
1941
1863
|
const ttlToUse = TTL;
|
|
1942
|
-
|
|
1943
|
-
fullPath: key,
|
|
1944
|
-
parent: path.parent,
|
|
1945
|
-
propertyName: path.propertyName,
|
|
1946
|
-
ttl: ttlToUse
|
|
1947
|
-
});
|
|
1948
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
1949
|
-
luvio.storePublish(key, incomingRecord);
|
|
1950
|
-
}
|
|
1951
|
-
{
|
|
1952
|
-
const storeMetadataParams = {
|
|
1953
|
-
ttl: ttlToUse,
|
|
1954
|
-
namespace: "Timeline",
|
|
1955
|
-
version: VERSION,
|
|
1956
|
-
representationName: RepresentationType,
|
|
1957
|
-
};
|
|
1958
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1959
|
-
}
|
|
1864
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "Timeline", VERSION, RepresentationType, equals);
|
|
1960
1865
|
return createLink(key);
|
|
1961
1866
|
};
|
|
1962
1867
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2021,13 +1926,11 @@ function createResourceRequest(config) {
|
|
|
2021
1926
|
};
|
|
2022
1927
|
}
|
|
2023
1928
|
|
|
2024
|
-
const
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
}
|
|
2030
|
-
};
|
|
1929
|
+
const adapterName = 'getTimelineMetadata';
|
|
1930
|
+
const getTimelineMetadata_ConfigPropertyMetadata = [
|
|
1931
|
+
generateParamConfigMetadata('fullNames', false),
|
|
1932
|
+
];
|
|
1933
|
+
const getTimelineMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTimelineMetadata_ConfigPropertyMetadata);
|
|
2031
1934
|
function createResourceParams(config) {
|
|
2032
1935
|
const resourceParams = {
|
|
2033
1936
|
queryParams: {
|
|
@@ -2093,21 +1996,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2093
1996
|
});
|
|
2094
1997
|
}
|
|
2095
1998
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2096
|
-
|
|
2097
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
2098
|
-
const dispatchOptions = {
|
|
2099
|
-
resourceRequestContext: {
|
|
2100
|
-
requestCorrelator,
|
|
2101
|
-
luvioRequestMethod: undefined,
|
|
2102
|
-
},
|
|
2103
|
-
eventObservers
|
|
2104
|
-
};
|
|
2105
|
-
if (networkPriority !== 'normal') {
|
|
2106
|
-
dispatchOptions.overrides = {
|
|
2107
|
-
priority: networkPriority
|
|
2108
|
-
};
|
|
2109
|
-
}
|
|
2110
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
1999
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
2111
2000
|
}
|
|
2112
2001
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2113
2002
|
const { luvio, config } = context;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
3
|
declare const ObjectKeys: {
|
|
4
4
|
(o: object): string[];
|
|
@@ -57,4 +57,6 @@ export declare const snapshotRefreshOptions: {
|
|
|
57
57
|
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
58
|
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
59
|
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
60
62
|
export declare const keyPrefix = "Timeline";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getConnectTimelineCustDataPfrmDataModelObjects_ResourceRequestConfig } from '../resources/getConnectTimelineCustDataPfrmDataModelObjects';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { CdpMetadataOutputRepresentation as types_CdpMetadataOutputRepresentation_CdpMetadataOutputRepresentation } from '../types/CdpMetadataOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "getDataModelObjects";
|
|
6
|
+
export declare const getDataModelObjects_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getDataModelObjects_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetDataModelObjectsConfig {
|
|
8
9
|
objectCategory?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getConnectTimelineTimelineDefinitionsCustDataPfrmEventsByTimelineConfigFullNameAndTimelineObjRecordId_ResourceRequestConfig } from '../resources/getConnectTimelineTimelineDefinitionsCustDataPfrmEventsByTimelineConfigFullNameAndTimelineObjRecordId';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { EngagementEventTimelineDataRepresentation as types_EngagementEventTimelineDataRepresentation_EngagementEventTimelineDataRepresentation } from '../types/EngagementEventTimelineDataRepresentation';
|
|
5
5
|
export declare const adapterName = "getEngagementEvents";
|
|
6
|
+
export declare const getEngagementEvents_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getEngagementEvents_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetEngagementEventsConfig {
|
|
8
9
|
timelineConfigFullName: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getConnectTimelineTimelineDefinitionsEventsByTimelineConfigFullNameAndTimelineObjRecordId_ResourceRequestConfig } from '../resources/getConnectTimelineTimelineDefinitionsEventsByTimelineConfigFullNameAndTimelineObjRecordId';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { TimelineDataGetResultRepresentation as types_TimelineDataGetResultRepresentation_TimelineDataGetResultRepresentation } from '../types/TimelineDataGetResultRepresentation';
|
|
5
5
|
export declare const adapterName = "getTimelineData";
|
|
6
|
+
export declare const getTimelineData_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getTimelineData_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetTimelineDataConfig {
|
|
8
9
|
timelineConfigFullName: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getConnectTimelineMetadataConfigurations_ResourceRequestConfig } from '../resources/getConnectTimelineMetadataConfigurations';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { TimelineMetadataResultRepresentation as types_TimelineMetadataResultRepresentation_TimelineMetadataResultRepresentation } from '../types/TimelineMetadataResultRepresentation';
|
|
5
5
|
export declare const adapterName = "getTimelineMetadata";
|
|
6
|
+
export declare const getTimelineMetadata_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getTimelineMetadata_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetTimelineMetadataConfig {
|
|
8
9
|
fullNames?: Array<string>;
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, deepFreeze, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -58,6 +58,24 @@ const snapshotRefreshOptions = {
|
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
+
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
62
|
+
return {
|
|
63
|
+
name,
|
|
64
|
+
required,
|
|
65
|
+
coerceFn,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
69
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
70
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
71
|
+
return {
|
|
72
|
+
displayName,
|
|
73
|
+
parameters: {
|
|
74
|
+
required,
|
|
75
|
+
optional,
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
61
79
|
const keyPrefix = 'Timeline';
|
|
62
80
|
|
|
63
81
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -241,26 +259,8 @@ const ingest$3 = function CdpMetadataOutputRepresentationIngest(input, path, luv
|
|
|
241
259
|
}
|
|
242
260
|
}
|
|
243
261
|
const key = path.fullPath;
|
|
244
|
-
const existingRecord = store.readEntry(key);
|
|
245
262
|
const ttlToUse = TTL$3;
|
|
246
|
-
|
|
247
|
-
fullPath: key,
|
|
248
|
-
parent: path.parent,
|
|
249
|
-
propertyName: path.propertyName,
|
|
250
|
-
ttl: ttlToUse
|
|
251
|
-
});
|
|
252
|
-
if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
|
|
253
|
-
luvio.storePublish(key, incomingRecord);
|
|
254
|
-
}
|
|
255
|
-
{
|
|
256
|
-
const storeMetadataParams = {
|
|
257
|
-
ttl: ttlToUse,
|
|
258
|
-
namespace: "Timeline",
|
|
259
|
-
version: VERSION$3,
|
|
260
|
-
representationName: RepresentationType$3,
|
|
261
|
-
};
|
|
262
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
263
|
-
}
|
|
263
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "Timeline", VERSION$3, RepresentationType$3, equals$3);
|
|
264
264
|
return createLink(key);
|
|
265
265
|
};
|
|
266
266
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -325,13 +325,11 @@ function createResourceRequest$3(config) {
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
};
|
|
328
|
+
const adapterName$3 = 'getDataModelObjects';
|
|
329
|
+
const getDataModelObjects_ConfigPropertyMetadata = [
|
|
330
|
+
generateParamConfigMetadata('objectCategory', false),
|
|
331
|
+
];
|
|
332
|
+
const getDataModelObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDataModelObjects_ConfigPropertyMetadata);
|
|
335
333
|
function createResourceParams$3(config) {
|
|
336
334
|
const resourceParams = {
|
|
337
335
|
queryParams: {
|
|
@@ -397,21 +395,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
397
395
|
});
|
|
398
396
|
}
|
|
399
397
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
400
|
-
|
|
401
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
402
|
-
const dispatchOptions = {
|
|
403
|
-
resourceRequestContext: {
|
|
404
|
-
requestCorrelator,
|
|
405
|
-
luvioRequestMethod: undefined,
|
|
406
|
-
},
|
|
407
|
-
eventObservers
|
|
408
|
-
};
|
|
409
|
-
if (networkPriority !== 'normal') {
|
|
410
|
-
dispatchOptions.overrides = {
|
|
411
|
-
priority: networkPriority
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
|
|
398
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
415
399
|
}
|
|
416
400
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
417
401
|
const { luvio, config } = context;
|
|
@@ -861,26 +845,8 @@ const ingest$2 = function EngagementEventTimelineDataRepresentationIngest(input,
|
|
|
861
845
|
}
|
|
862
846
|
}
|
|
863
847
|
const key = path.fullPath;
|
|
864
|
-
const existingRecord = store.readEntry(key);
|
|
865
848
|
const ttlToUse = TTL$2;
|
|
866
|
-
|
|
867
|
-
fullPath: key,
|
|
868
|
-
parent: path.parent,
|
|
869
|
-
propertyName: path.propertyName,
|
|
870
|
-
ttl: ttlToUse
|
|
871
|
-
});
|
|
872
|
-
if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
|
|
873
|
-
luvio.storePublish(key, incomingRecord);
|
|
874
|
-
}
|
|
875
|
-
{
|
|
876
|
-
const storeMetadataParams = {
|
|
877
|
-
ttl: ttlToUse,
|
|
878
|
-
namespace: "Timeline",
|
|
879
|
-
version: VERSION$2,
|
|
880
|
-
representationName: RepresentationType$2,
|
|
881
|
-
};
|
|
882
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
883
|
-
}
|
|
849
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "Timeline", VERSION$2, RepresentationType$2, equals$2);
|
|
884
850
|
return createLink(key);
|
|
885
851
|
};
|
|
886
852
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -945,13 +911,12 @@ function createResourceRequest$2(config) {
|
|
|
945
911
|
};
|
|
946
912
|
}
|
|
947
913
|
|
|
948
|
-
const
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
};
|
|
914
|
+
const adapterName$2 = 'getEngagementEvents';
|
|
915
|
+
const getEngagementEvents_ConfigPropertyMetadata = [
|
|
916
|
+
generateParamConfigMetadata('timelineConfigFullName', true),
|
|
917
|
+
generateParamConfigMetadata('timelineObjRecordId', true),
|
|
918
|
+
];
|
|
919
|
+
const getEngagementEvents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getEngagementEvents_ConfigPropertyMetadata);
|
|
955
920
|
function createResourceParams$2(config) {
|
|
956
921
|
const resourceParams = {
|
|
957
922
|
urlParams: {
|
|
@@ -1018,21 +983,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1018
983
|
});
|
|
1019
984
|
}
|
|
1020
985
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1021
|
-
|
|
1022
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1023
|
-
const dispatchOptions = {
|
|
1024
|
-
resourceRequestContext: {
|
|
1025
|
-
requestCorrelator,
|
|
1026
|
-
luvioRequestMethod: undefined,
|
|
1027
|
-
},
|
|
1028
|
-
eventObservers
|
|
1029
|
-
};
|
|
1030
|
-
if (networkPriority !== 'normal') {
|
|
1031
|
-
dispatchOptions.overrides = {
|
|
1032
|
-
priority: networkPriority
|
|
1033
|
-
};
|
|
1034
|
-
}
|
|
1035
|
-
return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
|
|
986
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
1036
987
|
}
|
|
1037
988
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1038
989
|
const { luvio, config } = context;
|
|
@@ -1158,26 +1109,8 @@ const ingest$1 = function TimelineDataGetResultRepresentationIngest(input, path,
|
|
|
1158
1109
|
}
|
|
1159
1110
|
}
|
|
1160
1111
|
const key = path.fullPath;
|
|
1161
|
-
const existingRecord = store.readEntry(key);
|
|
1162
1112
|
const ttlToUse = TTL$1;
|
|
1163
|
-
|
|
1164
|
-
fullPath: key,
|
|
1165
|
-
parent: path.parent,
|
|
1166
|
-
propertyName: path.propertyName,
|
|
1167
|
-
ttl: ttlToUse
|
|
1168
|
-
});
|
|
1169
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
1170
|
-
luvio.storePublish(key, incomingRecord);
|
|
1171
|
-
}
|
|
1172
|
-
{
|
|
1173
|
-
const storeMetadataParams = {
|
|
1174
|
-
ttl: ttlToUse,
|
|
1175
|
-
namespace: "Timeline",
|
|
1176
|
-
version: VERSION$1,
|
|
1177
|
-
representationName: RepresentationType$1,
|
|
1178
|
-
};
|
|
1179
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1180
|
-
}
|
|
1113
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "Timeline", VERSION$1, RepresentationType$1, equals$1);
|
|
1181
1114
|
return createLink(key);
|
|
1182
1115
|
};
|
|
1183
1116
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1242,13 +1175,17 @@ function createResourceRequest$1(config) {
|
|
|
1242
1175
|
};
|
|
1243
1176
|
}
|
|
1244
1177
|
|
|
1245
|
-
const
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1178
|
+
const adapterName$1 = 'getTimelineData';
|
|
1179
|
+
const getTimelineData_ConfigPropertyMetadata = [
|
|
1180
|
+
generateParamConfigMetadata('timelineConfigFullName', true),
|
|
1181
|
+
generateParamConfigMetadata('timelineObjRecordId', true),
|
|
1182
|
+
generateParamConfigMetadata('direction', false),
|
|
1183
|
+
generateParamConfigMetadata('endDate', false),
|
|
1184
|
+
generateParamConfigMetadata('eventTypeOffsets', false),
|
|
1185
|
+
generateParamConfigMetadata('eventTypes', false),
|
|
1186
|
+
generateParamConfigMetadata('startDate', false),
|
|
1187
|
+
];
|
|
1188
|
+
const getTimelineData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTimelineData_ConfigPropertyMetadata);
|
|
1252
1189
|
function createResourceParams$1(config) {
|
|
1253
1190
|
const resourceParams = {
|
|
1254
1191
|
urlParams: {
|
|
@@ -1323,21 +1260,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1323
1260
|
});
|
|
1324
1261
|
}
|
|
1325
1262
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1326
|
-
|
|
1327
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1328
|
-
const dispatchOptions = {
|
|
1329
|
-
resourceRequestContext: {
|
|
1330
|
-
requestCorrelator,
|
|
1331
|
-
luvioRequestMethod: undefined,
|
|
1332
|
-
},
|
|
1333
|
-
eventObservers
|
|
1334
|
-
};
|
|
1335
|
-
if (networkPriority !== 'normal') {
|
|
1336
|
-
dispatchOptions.overrides = {
|
|
1337
|
-
priority: networkPriority
|
|
1338
|
-
};
|
|
1339
|
-
}
|
|
1340
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
1263
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1341
1264
|
}
|
|
1342
1265
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1343
1266
|
const { luvio, config } = context;
|
|
@@ -1947,26 +1870,8 @@ const ingest = function TimelineMetadataResultRepresentationIngest(input, path,
|
|
|
1947
1870
|
}
|
|
1948
1871
|
}
|
|
1949
1872
|
const key = path.fullPath;
|
|
1950
|
-
const existingRecord = store.readEntry(key);
|
|
1951
1873
|
const ttlToUse = TTL;
|
|
1952
|
-
|
|
1953
|
-
fullPath: key,
|
|
1954
|
-
parent: path.parent,
|
|
1955
|
-
propertyName: path.propertyName,
|
|
1956
|
-
ttl: ttlToUse
|
|
1957
|
-
});
|
|
1958
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
1959
|
-
luvio.storePublish(key, incomingRecord);
|
|
1960
|
-
}
|
|
1961
|
-
{
|
|
1962
|
-
const storeMetadataParams = {
|
|
1963
|
-
ttl: ttlToUse,
|
|
1964
|
-
namespace: "Timeline",
|
|
1965
|
-
version: VERSION,
|
|
1966
|
-
representationName: RepresentationType,
|
|
1967
|
-
};
|
|
1968
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1969
|
-
}
|
|
1874
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "Timeline", VERSION, RepresentationType, equals);
|
|
1970
1875
|
return createLink(key);
|
|
1971
1876
|
};
|
|
1972
1877
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2031,13 +1936,11 @@ function createResourceRequest(config) {
|
|
|
2031
1936
|
};
|
|
2032
1937
|
}
|
|
2033
1938
|
|
|
2034
|
-
const
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
}
|
|
2040
|
-
};
|
|
1939
|
+
const adapterName = 'getTimelineMetadata';
|
|
1940
|
+
const getTimelineMetadata_ConfigPropertyMetadata = [
|
|
1941
|
+
generateParamConfigMetadata('fullNames', false),
|
|
1942
|
+
];
|
|
1943
|
+
const getTimelineMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTimelineMetadata_ConfigPropertyMetadata);
|
|
2041
1944
|
function createResourceParams(config) {
|
|
2042
1945
|
const resourceParams = {
|
|
2043
1946
|
queryParams: {
|
|
@@ -2103,21 +2006,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2103
2006
|
});
|
|
2104
2007
|
}
|
|
2105
2008
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2106
|
-
|
|
2107
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
2108
|
-
const dispatchOptions = {
|
|
2109
|
-
resourceRequestContext: {
|
|
2110
|
-
requestCorrelator,
|
|
2111
|
-
luvioRequestMethod: undefined,
|
|
2112
|
-
},
|
|
2113
|
-
eventObservers
|
|
2114
|
-
};
|
|
2115
|
-
if (networkPriority !== 'normal') {
|
|
2116
|
-
dispatchOptions.overrides = {
|
|
2117
|
-
priority: networkPriority
|
|
2118
|
-
};
|
|
2119
|
-
}
|
|
2120
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
2009
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
2121
2010
|
}
|
|
2122
2011
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2123
2012
|
const { luvio, config } = context;
|
|
@@ -2188,4 +2077,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2188
2077
|
});
|
|
2189
2078
|
|
|
2190
2079
|
export { getDataModelObjects, getDataModelObjects_imperative, getEngagementEvents, getEngagementEvents_imperative, getTimelineData, getTimelineData_imperative, getTimelineMetadata, getTimelineMetadata_imperative };
|
|
2191
|
-
// version: 1.213.
|
|
2080
|
+
// version: 1.213.2-1eb996209
|