@salesforce/lds-adapters-industries-interesttagging 1.206.0 → 1.208.0

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.
@@ -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, StoreKeyMap, typeCheckScalars } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -536,26 +536,13 @@ function keyBuilder$6(luvio, config) {
536
536
  }
537
537
  function typeCheckConfig$3(untrustedConfig) {
538
538
  const config = {};
539
- const untrustedConfig_recordId = untrustedConfig.recordId;
540
- if (typeof untrustedConfig_recordId === 'string') {
541
- config.recordId = untrustedConfig_recordId;
542
- }
543
- const untrustedConfig_limit = untrustedConfig.limit;
544
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
545
- config.limit = untrustedConfig_limit;
546
- }
547
- const untrustedConfig_offset = untrustedConfig.offset;
548
- if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
549
- config.offset = untrustedConfig_offset;
550
- }
551
- const untrustedConfig_orderBy = untrustedConfig.orderBy;
552
- if (typeof untrustedConfig_orderBy === 'string') {
553
- config.orderBy = untrustedConfig_orderBy;
554
- }
555
- const untrustedConfig_sort = untrustedConfig.sort;
556
- if (typeof untrustedConfig_sort === 'string') {
557
- config.sort = untrustedConfig_sort;
558
- }
539
+ typeCheckScalars(untrustedConfig, config, {
540
+ recordId: 0 /* String */,
541
+ limit: 3 /* Integer */,
542
+ offset: 3 /* Integer */,
543
+ orderBy: 0 /* String */,
544
+ sort: 0 /* String */,
545
+ });
559
546
  return config;
560
547
  }
561
548
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -888,26 +875,13 @@ function keyBuilder$4(luvio, config) {
888
875
  }
889
876
  function typeCheckConfig$2(untrustedConfig) {
890
877
  const config = {};
891
- const untrustedConfig_tagId = untrustedConfig.tagId;
892
- if (typeof untrustedConfig_tagId === 'string') {
893
- config.tagId = untrustedConfig_tagId;
894
- }
895
- const untrustedConfig_limit = untrustedConfig.limit;
896
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
897
- config.limit = untrustedConfig_limit;
898
- }
899
- const untrustedConfig_offset = untrustedConfig.offset;
900
- if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
901
- config.offset = untrustedConfig_offset;
902
- }
903
- const untrustedConfig_orderBy = untrustedConfig.orderBy;
904
- if (typeof untrustedConfig_orderBy === 'string') {
905
- config.orderBy = untrustedConfig_orderBy;
906
- }
907
- const untrustedConfig_sort = untrustedConfig.sort;
908
- if (typeof untrustedConfig_sort === 'string') {
909
- config.sort = untrustedConfig_sort;
910
- }
878
+ typeCheckScalars(untrustedConfig, config, {
879
+ tagId: 0 /* String */,
880
+ limit: 3 /* Integer */,
881
+ offset: 3 /* Integer */,
882
+ orderBy: 0 /* String */,
883
+ sort: 0 /* String */,
884
+ });
911
885
  return config;
912
886
  }
913
887
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -1265,26 +1239,13 @@ function keyBuilder$2(luvio, config) {
1265
1239
  }
1266
1240
  function typeCheckConfig$1(untrustedConfig) {
1267
1241
  const config = {};
1268
- const untrustedConfig_limit = untrustedConfig.limit;
1269
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
1270
- config.limit = untrustedConfig_limit;
1271
- }
1272
- const untrustedConfig_offset = untrustedConfig.offset;
1273
- if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
1274
- config.offset = untrustedConfig_offset;
1275
- }
1276
- const untrustedConfig_orderBy = untrustedConfig.orderBy;
1277
- if (typeof untrustedConfig_orderBy === 'string') {
1278
- config.orderBy = untrustedConfig_orderBy;
1279
- }
1280
- const untrustedConfig_sort = untrustedConfig.sort;
1281
- if (typeof untrustedConfig_sort === 'string') {
1282
- config.sort = untrustedConfig_sort;
1283
- }
1284
- const untrustedConfig_tagId = untrustedConfig.tagId;
1285
- if (typeof untrustedConfig_tagId === 'string') {
1286
- config.tagId = untrustedConfig_tagId;
1287
- }
1242
+ typeCheckScalars(untrustedConfig, config, {
1243
+ limit: 3 /* Integer */,
1244
+ offset: 3 /* Integer */,
1245
+ orderBy: 0 /* String */,
1246
+ sort: 0 /* String */,
1247
+ tagId: 0 /* String */,
1248
+ });
1288
1249
  return config;
1289
1250
  }
1290
1251
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -1445,26 +1406,13 @@ function keyBuilder(luvio, config) {
1445
1406
  }
1446
1407
  function typeCheckConfig(untrustedConfig) {
1447
1408
  const config = {};
1448
- const untrustedConfig_categoryId = untrustedConfig.categoryId;
1449
- if (typeof untrustedConfig_categoryId === 'string') {
1450
- config.categoryId = untrustedConfig_categoryId;
1451
- }
1452
- const untrustedConfig_limit = untrustedConfig.limit;
1453
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
1454
- config.limit = untrustedConfig_limit;
1455
- }
1456
- const untrustedConfig_offset = untrustedConfig.offset;
1457
- if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
1458
- config.offset = untrustedConfig_offset;
1459
- }
1460
- const untrustedConfig_orderBy = untrustedConfig.orderBy;
1461
- if (typeof untrustedConfig_orderBy === 'string') {
1462
- config.orderBy = untrustedConfig_orderBy;
1463
- }
1464
- const untrustedConfig_sort = untrustedConfig.sort;
1465
- if (typeof untrustedConfig_sort === 'string') {
1466
- config.sort = untrustedConfig_sort;
1467
- }
1409
+ typeCheckScalars(untrustedConfig, config, {
1410
+ categoryId: 0 /* String */,
1411
+ limit: 3 /* Integer */,
1412
+ offset: 3 /* Integer */,
1413
+ orderBy: 0 /* String */,
1414
+ sort: 0 /* String */,
1415
+ });
1468
1416
  return config;
1469
1417
  }
1470
1418
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-interesttagging",
3
- "version": "1.206.0",
3
+ "version": "1.208.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Connect family for interest tags APIs",
6
6
  "main": "dist/es/es2018/industries-interesttagging.js",
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, StoreKeyMap, typeCheckScalars } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -569,26 +569,13 @@ function keyBuilder$6(luvio, config) {
569
569
  }
570
570
  function typeCheckConfig$3(untrustedConfig) {
571
571
  const config = {};
572
- const untrustedConfig_tagId = untrustedConfig.tagId;
573
- if (typeof untrustedConfig_tagId === 'string') {
574
- config.tagId = untrustedConfig_tagId;
575
- }
576
- const untrustedConfig_limit = untrustedConfig.limit;
577
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
578
- config.limit = untrustedConfig_limit;
579
- }
580
- const untrustedConfig_offset = untrustedConfig.offset;
581
- if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
582
- config.offset = untrustedConfig_offset;
583
- }
584
- const untrustedConfig_orderBy = untrustedConfig.orderBy;
585
- if (typeof untrustedConfig_orderBy === 'string') {
586
- config.orderBy = untrustedConfig_orderBy;
587
- }
588
- const untrustedConfig_sort = untrustedConfig.sort;
589
- if (typeof untrustedConfig_sort === 'string') {
590
- config.sort = untrustedConfig_sort;
591
- }
572
+ typeCheckScalars(untrustedConfig, config, {
573
+ tagId: 0 /* String */,
574
+ limit: 3 /* Integer */,
575
+ offset: 3 /* Integer */,
576
+ orderBy: 0 /* String */,
577
+ sort: 0 /* String */,
578
+ });
592
579
  return config;
593
580
  }
594
581
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -946,26 +933,13 @@ function keyBuilder$4(luvio, config) {
946
933
  }
947
934
  function typeCheckConfig$2(untrustedConfig) {
948
935
  const config = {};
949
- const untrustedConfig_limit = untrustedConfig.limit;
950
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
951
- config.limit = untrustedConfig_limit;
952
- }
953
- const untrustedConfig_offset = untrustedConfig.offset;
954
- if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
955
- config.offset = untrustedConfig_offset;
956
- }
957
- const untrustedConfig_orderBy = untrustedConfig.orderBy;
958
- if (typeof untrustedConfig_orderBy === 'string') {
959
- config.orderBy = untrustedConfig_orderBy;
960
- }
961
- const untrustedConfig_sort = untrustedConfig.sort;
962
- if (typeof untrustedConfig_sort === 'string') {
963
- config.sort = untrustedConfig_sort;
964
- }
965
- const untrustedConfig_tagId = untrustedConfig.tagId;
966
- if (typeof untrustedConfig_tagId === 'string') {
967
- config.tagId = untrustedConfig_tagId;
968
- }
936
+ typeCheckScalars(untrustedConfig, config, {
937
+ limit: 3 /* Integer */,
938
+ offset: 3 /* Integer */,
939
+ orderBy: 0 /* String */,
940
+ sort: 0 /* String */,
941
+ tagId: 0 /* String */,
942
+ });
969
943
  return config;
970
944
  }
971
945
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -1272,26 +1246,13 @@ function keyBuilder$2(luvio, config) {
1272
1246
  }
1273
1247
  function typeCheckConfig$1(untrustedConfig) {
1274
1248
  const config = {};
1275
- const untrustedConfig_categoryId = untrustedConfig.categoryId;
1276
- if (typeof untrustedConfig_categoryId === 'string') {
1277
- config.categoryId = untrustedConfig_categoryId;
1278
- }
1279
- const untrustedConfig_limit = untrustedConfig.limit;
1280
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
1281
- config.limit = untrustedConfig_limit;
1282
- }
1283
- const untrustedConfig_offset = untrustedConfig.offset;
1284
- if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
1285
- config.offset = untrustedConfig_offset;
1286
- }
1287
- const untrustedConfig_orderBy = untrustedConfig.orderBy;
1288
- if (typeof untrustedConfig_orderBy === 'string') {
1289
- config.orderBy = untrustedConfig_orderBy;
1290
- }
1291
- const untrustedConfig_sort = untrustedConfig.sort;
1292
- if (typeof untrustedConfig_sort === 'string') {
1293
- config.sort = untrustedConfig_sort;
1294
- }
1249
+ typeCheckScalars(untrustedConfig, config, {
1250
+ categoryId: 0 /* String */,
1251
+ limit: 3 /* Integer */,
1252
+ offset: 3 /* Integer */,
1253
+ orderBy: 0 /* String */,
1254
+ sort: 0 /* String */,
1255
+ });
1295
1256
  return config;
1296
1257
  }
1297
1258
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -1455,26 +1416,13 @@ function keyBuilder(luvio, config) {
1455
1416
  }
1456
1417
  function typeCheckConfig(untrustedConfig) {
1457
1418
  const config = {};
1458
- const untrustedConfig_recordId = untrustedConfig.recordId;
1459
- if (typeof untrustedConfig_recordId === 'string') {
1460
- config.recordId = untrustedConfig_recordId;
1461
- }
1462
- const untrustedConfig_limit = untrustedConfig.limit;
1463
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
1464
- config.limit = untrustedConfig_limit;
1465
- }
1466
- const untrustedConfig_offset = untrustedConfig.offset;
1467
- if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
1468
- config.offset = untrustedConfig_offset;
1469
- }
1470
- const untrustedConfig_orderBy = untrustedConfig.orderBy;
1471
- if (typeof untrustedConfig_orderBy === 'string') {
1472
- config.orderBy = untrustedConfig_orderBy;
1473
- }
1474
- const untrustedConfig_sort = untrustedConfig.sort;
1475
- if (typeof untrustedConfig_sort === 'string') {
1476
- config.sort = untrustedConfig_sort;
1477
- }
1419
+ typeCheckScalars(untrustedConfig, config, {
1420
+ recordId: 0 /* String */,
1421
+ limit: 3 /* Integer */,
1422
+ offset: 3 /* Integer */,
1423
+ orderBy: 0 /* String */,
1424
+ sort: 0 /* String */,
1425
+ });
1478
1426
  return config;
1479
1427
  }
1480
1428
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1614,4 +1562,4 @@ withDefaultLuvio((luvio) => {
1614
1562
  });
1615
1563
 
1616
1564
  export { createInterestTagEntityAssignment, getInterestTagEntityAssignments, getInterestTagEntityAssignments_imperative, getTagCategoriesByTagId, getTagCategoriesByTagId_imperative, getTagsByCategoryId, getTagsByCategoryId_imperative, getTagsByRecordId, getTagsByRecordId_imperative };
1617
- // version: 1.206.0-56fe82b41
1565
+ // version: 1.208.0-027673bd6