@salesforce/lds-adapters-industries-timeline 1.207.0 → 1.208.1
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 +20 -52
- package/package.json +1 -1
- package/sfdc/index.js +21 -53
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, deepFreeze, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -588,14 +588,10 @@ function keyBuilder$6(luvio, config) {
|
|
|
588
588
|
}
|
|
589
589
|
function typeCheckConfig$3(untrustedConfig) {
|
|
590
590
|
const config = {};
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}
|
|
595
|
-
const untrustedConfig_timelineObjRecordId = untrustedConfig.timelineObjRecordId;
|
|
596
|
-
if (typeof untrustedConfig_timelineObjRecordId === 'string') {
|
|
597
|
-
config.timelineObjRecordId = untrustedConfig_timelineObjRecordId;
|
|
598
|
-
}
|
|
591
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
592
|
+
timelineConfigFullName: 0 /* String */,
|
|
593
|
+
timelineObjRecordId: 0 /* String */,
|
|
594
|
+
});
|
|
599
595
|
return config;
|
|
600
596
|
}
|
|
601
597
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -892,34 +888,15 @@ function keyBuilder$4(luvio, config) {
|
|
|
892
888
|
}
|
|
893
889
|
function typeCheckConfig$2(untrustedConfig) {
|
|
894
890
|
const config = {};
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
if (typeof untrustedConfig_direction === 'string') {
|
|
905
|
-
config.direction = untrustedConfig_direction;
|
|
906
|
-
}
|
|
907
|
-
const untrustedConfig_endDate = untrustedConfig.endDate;
|
|
908
|
-
if (typeof untrustedConfig_endDate === 'string') {
|
|
909
|
-
config.endDate = untrustedConfig_endDate;
|
|
910
|
-
}
|
|
911
|
-
const untrustedConfig_eventTypeOffsets = untrustedConfig.eventTypeOffsets;
|
|
912
|
-
if (typeof untrustedConfig_eventTypeOffsets === 'string') {
|
|
913
|
-
config.eventTypeOffsets = untrustedConfig_eventTypeOffsets;
|
|
914
|
-
}
|
|
915
|
-
const untrustedConfig_eventTypes = untrustedConfig.eventTypes;
|
|
916
|
-
if (typeof untrustedConfig_eventTypes === 'string') {
|
|
917
|
-
config.eventTypes = untrustedConfig_eventTypes;
|
|
918
|
-
}
|
|
919
|
-
const untrustedConfig_startDate = untrustedConfig.startDate;
|
|
920
|
-
if (typeof untrustedConfig_startDate === 'string') {
|
|
921
|
-
config.startDate = untrustedConfig_startDate;
|
|
922
|
-
}
|
|
891
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
892
|
+
timelineConfigFullName: 0 /* String */,
|
|
893
|
+
timelineObjRecordId: 0 /* String */,
|
|
894
|
+
direction: 0 /* String */,
|
|
895
|
+
endDate: 0 /* String */,
|
|
896
|
+
eventTypeOffsets: 0 /* String */,
|
|
897
|
+
eventTypes: 0 /* String */,
|
|
898
|
+
startDate: 0 /* String */,
|
|
899
|
+
});
|
|
923
900
|
return config;
|
|
924
901
|
}
|
|
925
902
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1285,10 +1262,9 @@ function keyBuilder$2(luvio, config) {
|
|
|
1285
1262
|
}
|
|
1286
1263
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1287
1264
|
const config = {};
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
}
|
|
1265
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1266
|
+
objectCategory: 0 /* String */,
|
|
1267
|
+
});
|
|
1292
1268
|
return config;
|
|
1293
1269
|
}
|
|
1294
1270
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2066,17 +2042,9 @@ function keyBuilder(luvio, config) {
|
|
|
2066
2042
|
}
|
|
2067
2043
|
function typeCheckConfig(untrustedConfig) {
|
|
2068
2044
|
const config = {};
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
for (let i = 0, arrayLength = untrustedConfig_fullNames.length; i < arrayLength; i++) {
|
|
2073
|
-
const untrustedConfig_fullNames_item = untrustedConfig_fullNames[i];
|
|
2074
|
-
if (typeof untrustedConfig_fullNames_item === 'string') {
|
|
2075
|
-
untrustedConfig_fullNames_array.push(untrustedConfig_fullNames_item);
|
|
2076
|
-
}
|
|
2077
|
-
}
|
|
2078
|
-
config.fullNames = untrustedConfig_fullNames_array;
|
|
2079
|
-
}
|
|
2045
|
+
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
2046
|
+
fullNames: 0 /* String */,
|
|
2047
|
+
});
|
|
2080
2048
|
return config;
|
|
2081
2049
|
}
|
|
2082
2050
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
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, StoreKeyMap } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, deepFreeze, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -346,10 +346,9 @@ function keyBuilder$6(luvio, config) {
|
|
|
346
346
|
}
|
|
347
347
|
function typeCheckConfig$3(untrustedConfig) {
|
|
348
348
|
const config = {};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}
|
|
349
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
350
|
+
objectCategory: 0 /* String */,
|
|
351
|
+
});
|
|
353
352
|
return config;
|
|
354
353
|
}
|
|
355
354
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -967,14 +966,10 @@ function keyBuilder$4(luvio, config) {
|
|
|
967
966
|
}
|
|
968
967
|
function typeCheckConfig$2(untrustedConfig) {
|
|
969
968
|
const config = {};
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
}
|
|
974
|
-
const untrustedConfig_timelineObjRecordId = untrustedConfig.timelineObjRecordId;
|
|
975
|
-
if (typeof untrustedConfig_timelineObjRecordId === 'string') {
|
|
976
|
-
config.timelineObjRecordId = untrustedConfig_timelineObjRecordId;
|
|
977
|
-
}
|
|
969
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
970
|
+
timelineConfigFullName: 0 /* String */,
|
|
971
|
+
timelineObjRecordId: 0 /* String */,
|
|
972
|
+
});
|
|
978
973
|
return config;
|
|
979
974
|
}
|
|
980
975
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1271,34 +1266,15 @@ function keyBuilder$2(luvio, config) {
|
|
|
1271
1266
|
}
|
|
1272
1267
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1273
1268
|
const config = {};
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
if (typeof untrustedConfig_direction === 'string') {
|
|
1284
|
-
config.direction = untrustedConfig_direction;
|
|
1285
|
-
}
|
|
1286
|
-
const untrustedConfig_endDate = untrustedConfig.endDate;
|
|
1287
|
-
if (typeof untrustedConfig_endDate === 'string') {
|
|
1288
|
-
config.endDate = untrustedConfig_endDate;
|
|
1289
|
-
}
|
|
1290
|
-
const untrustedConfig_eventTypeOffsets = untrustedConfig.eventTypeOffsets;
|
|
1291
|
-
if (typeof untrustedConfig_eventTypeOffsets === 'string') {
|
|
1292
|
-
config.eventTypeOffsets = untrustedConfig_eventTypeOffsets;
|
|
1293
|
-
}
|
|
1294
|
-
const untrustedConfig_eventTypes = untrustedConfig.eventTypes;
|
|
1295
|
-
if (typeof untrustedConfig_eventTypes === 'string') {
|
|
1296
|
-
config.eventTypes = untrustedConfig_eventTypes;
|
|
1297
|
-
}
|
|
1298
|
-
const untrustedConfig_startDate = untrustedConfig.startDate;
|
|
1299
|
-
if (typeof untrustedConfig_startDate === 'string') {
|
|
1300
|
-
config.startDate = untrustedConfig_startDate;
|
|
1301
|
-
}
|
|
1269
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1270
|
+
timelineConfigFullName: 0 /* String */,
|
|
1271
|
+
timelineObjRecordId: 0 /* String */,
|
|
1272
|
+
direction: 0 /* String */,
|
|
1273
|
+
endDate: 0 /* String */,
|
|
1274
|
+
eventTypeOffsets: 0 /* String */,
|
|
1275
|
+
eventTypes: 0 /* String */,
|
|
1276
|
+
startDate: 0 /* String */,
|
|
1277
|
+
});
|
|
1302
1278
|
return config;
|
|
1303
1279
|
}
|
|
1304
1280
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2076,17 +2052,9 @@ function keyBuilder(luvio, config) {
|
|
|
2076
2052
|
}
|
|
2077
2053
|
function typeCheckConfig(untrustedConfig) {
|
|
2078
2054
|
const config = {};
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
for (let i = 0, arrayLength = untrustedConfig_fullNames.length; i < arrayLength; i++) {
|
|
2083
|
-
const untrustedConfig_fullNames_item = untrustedConfig_fullNames[i];
|
|
2084
|
-
if (typeof untrustedConfig_fullNames_item === 'string') {
|
|
2085
|
-
untrustedConfig_fullNames_array.push(untrustedConfig_fullNames_item);
|
|
2086
|
-
}
|
|
2087
|
-
}
|
|
2088
|
-
config.fullNames = untrustedConfig_fullNames_array;
|
|
2089
|
-
}
|
|
2055
|
+
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
2056
|
+
fullNames: 0 /* String */,
|
|
2057
|
+
});
|
|
2090
2058
|
return config;
|
|
2091
2059
|
}
|
|
2092
2060
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2220,4 +2188,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2220
2188
|
});
|
|
2221
2189
|
|
|
2222
2190
|
export { getDataModelObjects, getDataModelObjects_imperative, getEngagementEvents, getEngagementEvents_imperative, getTimelineData, getTimelineData_imperative, getTimelineMetadata, getTimelineMetadata_imperative };
|
|
2223
|
-
// version: 1.
|
|
2191
|
+
// version: 1.208.1-9aaa359ad
|