@salesforce/lds-adapters-industries-actionablelist 1.246.0 → 1.248.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.
- package/dist/es/es2018/industries-actionablelist.js +863 -718
- package/dist/es/es2018/types/src/generated/adapters/getDatasetColumnValues.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/upsertActionableListFilterTemplate.d.ts +9 -2
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectActionableListDefinitionColumnValuesByAldcId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectActionableListDefFilter.d.ts +9 -2
- package/dist/es/es2018/types/src/generated/types/ALDDatasetColumnOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ActionableListDatasetColumnRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ActionableListDatasetColumnValuesOutputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListDatasetInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ActionableListFilterTemplateInputRepresentation.d.ts +4 -7
- package/package.json +10 -6
- package/sfdc/index.js +614 -461
- package/src/raml/api.raml +46 -15
- package/src/raml/luvio.raml +12 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListFilterTemplateWrapperInputRepresentation.d.ts +0 -29
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckConfig as typeCheckConfig$c, StoreKeyMap, createResourceParams as createResourceParams$c } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -167,7 +167,7 @@ function createLink(ref) {
|
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
const VERSION$
|
|
170
|
+
const VERSION$j = "25c799d5f2e7ba38fea0f46382bd64da";
|
|
171
171
|
function validate$q(obj, path = 'ALDDatasetColumnOutputRepresentation') {
|
|
172
172
|
const v_error = (() => {
|
|
173
173
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -245,6 +245,11 @@ function validate$q(obj, path = 'ALDDatasetColumnOutputRepresentation') {
|
|
|
245
245
|
if (typeof obj_isGroupedByListDefObj !== 'boolean') {
|
|
246
246
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isGroupedByListDefObj + '" (at "' + path_isGroupedByListDefObj + '")');
|
|
247
247
|
}
|
|
248
|
+
const obj_isTypeAheadSearchEnabled = obj.isTypeAheadSearchEnabled;
|
|
249
|
+
const path_isTypeAheadSearchEnabled = path + '.isTypeAheadSearchEnabled';
|
|
250
|
+
if (typeof obj_isTypeAheadSearchEnabled !== 'boolean') {
|
|
251
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isTypeAheadSearchEnabled + '" (at "' + path_isTypeAheadSearchEnabled + '")');
|
|
252
|
+
}
|
|
248
253
|
const obj_objectName = obj.objectName;
|
|
249
254
|
const path_objectName = path + '.objectName';
|
|
250
255
|
let obj_objectName_union0 = null;
|
|
@@ -326,10 +331,10 @@ function validate$q(obj, path = 'ALDDatasetColumnOutputRepresentation') {
|
|
|
326
331
|
})();
|
|
327
332
|
return v_error === undefined ? null : v_error;
|
|
328
333
|
}
|
|
329
|
-
const select$
|
|
334
|
+
const select$u = function ALDDatasetColumnOutputRepresentationSelect() {
|
|
330
335
|
return {
|
|
331
336
|
kind: 'Fragment',
|
|
332
|
-
version: VERSION$
|
|
337
|
+
version: VERSION$j,
|
|
333
338
|
private: [],
|
|
334
339
|
selections: [
|
|
335
340
|
{
|
|
@@ -356,6 +361,10 @@ const select$s = function ALDDatasetColumnOutputRepresentationSelect() {
|
|
|
356
361
|
name: 'isGroupedByListDefObj',
|
|
357
362
|
kind: 'Scalar'
|
|
358
363
|
},
|
|
364
|
+
{
|
|
365
|
+
name: 'isTypeAheadSearchEnabled',
|
|
366
|
+
kind: 'Scalar'
|
|
367
|
+
},
|
|
359
368
|
{
|
|
360
369
|
name: 'objectName',
|
|
361
370
|
kind: 'Scalar'
|
|
@@ -371,7 +380,7 @@ const select$s = function ALDDatasetColumnOutputRepresentationSelect() {
|
|
|
371
380
|
]
|
|
372
381
|
};
|
|
373
382
|
};
|
|
374
|
-
function equals$
|
|
383
|
+
function equals$j(existing, incoming) {
|
|
375
384
|
const existing_isDefault = existing.isDefault;
|
|
376
385
|
const incoming_isDefault = incoming.isDefault;
|
|
377
386
|
if (!(existing_isDefault === incoming_isDefault)) {
|
|
@@ -382,6 +391,11 @@ function equals$i(existing, incoming) {
|
|
|
382
391
|
if (!(existing_isGroupedByListDefObj === incoming_isGroupedByListDefObj)) {
|
|
383
392
|
return false;
|
|
384
393
|
}
|
|
394
|
+
const existing_isTypeAheadSearchEnabled = existing.isTypeAheadSearchEnabled;
|
|
395
|
+
const incoming_isTypeAheadSearchEnabled = incoming.isTypeAheadSearchEnabled;
|
|
396
|
+
if (!(existing_isTypeAheadSearchEnabled === incoming_isTypeAheadSearchEnabled)) {
|
|
397
|
+
return false;
|
|
398
|
+
}
|
|
385
399
|
const existing_actionableListDefinitionId = existing.actionableListDefinitionId;
|
|
386
400
|
const incoming_actionableListDefinitionId = incoming.actionableListDefinitionId;
|
|
387
401
|
if (!(existing_actionableListDefinitionId === incoming_actionableListDefinitionId)) {
|
|
@@ -420,7 +434,7 @@ function equals$i(existing, incoming) {
|
|
|
420
434
|
return true;
|
|
421
435
|
}
|
|
422
436
|
|
|
423
|
-
const VERSION$
|
|
437
|
+
const VERSION$i = "9d133a939d3bf9e4f6209870e525ff9f";
|
|
424
438
|
function validate$p(obj, path = 'ALDMemberStatusOutputRepresentation') {
|
|
425
439
|
const v_error = (() => {
|
|
426
440
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -444,10 +458,10 @@ function validate$p(obj, path = 'ALDMemberStatusOutputRepresentation') {
|
|
|
444
458
|
})();
|
|
445
459
|
return v_error === undefined ? null : v_error;
|
|
446
460
|
}
|
|
447
|
-
const select$
|
|
461
|
+
const select$t = function ALDMemberStatusOutputRepresentationSelect() {
|
|
448
462
|
return {
|
|
449
463
|
kind: 'Fragment',
|
|
450
|
-
version: VERSION$
|
|
464
|
+
version: VERSION$i,
|
|
451
465
|
private: [],
|
|
452
466
|
selections: [
|
|
453
467
|
{
|
|
@@ -465,7 +479,7 @@ const select$r = function ALDMemberStatusOutputRepresentationSelect() {
|
|
|
465
479
|
]
|
|
466
480
|
};
|
|
467
481
|
};
|
|
468
|
-
function equals$
|
|
482
|
+
function equals$i(existing, incoming) {
|
|
469
483
|
const existing_iconName = existing.iconName;
|
|
470
484
|
const incoming_iconName = incoming.iconName;
|
|
471
485
|
if (!(existing_iconName === incoming_iconName)) {
|
|
@@ -484,7 +498,7 @@ function equals$h(existing, incoming) {
|
|
|
484
498
|
return true;
|
|
485
499
|
}
|
|
486
500
|
|
|
487
|
-
const VERSION$
|
|
501
|
+
const VERSION$h = "63348e0d2a5e8d3cf7f7ddc110bf6cf4";
|
|
488
502
|
function validate$o(obj, path = 'ActionableListDefinitionOutputRepresentation') {
|
|
489
503
|
const v_error = (() => {
|
|
490
504
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -605,12 +619,12 @@ function validate$o(obj, path = 'ActionableListDefinitionOutputRepresentation')
|
|
|
605
619
|
})();
|
|
606
620
|
return v_error === undefined ? null : v_error;
|
|
607
621
|
}
|
|
608
|
-
const select$
|
|
609
|
-
const { selections: ALDDatasetColumnOutputRepresentation__selections, opaque: ALDDatasetColumnOutputRepresentation__opaque, } = select$
|
|
610
|
-
const { selections: ALDMemberStatusOutputRepresentation__selections, opaque: ALDMemberStatusOutputRepresentation__opaque, } = select$
|
|
622
|
+
const select$s = function ActionableListDefinitionOutputRepresentationSelect() {
|
|
623
|
+
const { selections: ALDDatasetColumnOutputRepresentation__selections, opaque: ALDDatasetColumnOutputRepresentation__opaque, } = select$u();
|
|
624
|
+
const { selections: ALDMemberStatusOutputRepresentation__selections, opaque: ALDMemberStatusOutputRepresentation__opaque, } = select$t();
|
|
611
625
|
return {
|
|
612
626
|
kind: 'Fragment',
|
|
613
|
-
version: VERSION$
|
|
627
|
+
version: VERSION$h,
|
|
614
628
|
private: [],
|
|
615
629
|
selections: [
|
|
616
630
|
{
|
|
@@ -660,7 +674,7 @@ const select$q = function ActionableListDefinitionOutputRepresentationSelect() {
|
|
|
660
674
|
]
|
|
661
675
|
};
|
|
662
676
|
};
|
|
663
|
-
function equals$
|
|
677
|
+
function equals$h(existing, incoming) {
|
|
664
678
|
const existing_isActive = existing.isActive;
|
|
665
679
|
const incoming_isActive = incoming.isActive;
|
|
666
680
|
if (!(existing_isActive === incoming_isActive)) {
|
|
@@ -694,7 +708,7 @@ function equals$g(existing, incoming) {
|
|
|
694
708
|
const existing_aldDatasetColumnOutputRepresentation = existing.aldDatasetColumnOutputRepresentation;
|
|
695
709
|
const incoming_aldDatasetColumnOutputRepresentation = incoming.aldDatasetColumnOutputRepresentation;
|
|
696
710
|
const equals_aldDatasetColumnOutputRepresentation_items = equalsArray(existing_aldDatasetColumnOutputRepresentation, incoming_aldDatasetColumnOutputRepresentation, (existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item) => {
|
|
697
|
-
if (!(equals$
|
|
711
|
+
if (!(equals$j(existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item))) {
|
|
698
712
|
return false;
|
|
699
713
|
}
|
|
700
714
|
});
|
|
@@ -704,7 +718,7 @@ function equals$g(existing, incoming) {
|
|
|
704
718
|
const existing_aldMemberStatusOutputRepresentation = existing.aldMemberStatusOutputRepresentation;
|
|
705
719
|
const incoming_aldMemberStatusOutputRepresentation = incoming.aldMemberStatusOutputRepresentation;
|
|
706
720
|
const equals_aldMemberStatusOutputRepresentation_items = equalsArray(existing_aldMemberStatusOutputRepresentation, incoming_aldMemberStatusOutputRepresentation, (existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item) => {
|
|
707
|
-
if (!(equals$
|
|
721
|
+
if (!(equals$i(existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item))) {
|
|
708
722
|
return false;
|
|
709
723
|
}
|
|
710
724
|
});
|
|
@@ -724,8 +738,8 @@ function equals$g(existing, incoming) {
|
|
|
724
738
|
return true;
|
|
725
739
|
}
|
|
726
740
|
|
|
727
|
-
const TTL$
|
|
728
|
-
const VERSION$
|
|
741
|
+
const TTL$a = 100;
|
|
742
|
+
const VERSION$g = "4c1ba3bd226b3670b78af4e7ea159854";
|
|
729
743
|
function validate$n(obj, path = 'ActionableListDefinitionGetAllOutputRepresentation') {
|
|
730
744
|
const v_error = (() => {
|
|
731
745
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -749,15 +763,15 @@ function validate$n(obj, path = 'ActionableListDefinitionGetAllOutputRepresentat
|
|
|
749
763
|
})();
|
|
750
764
|
return v_error === undefined ? null : v_error;
|
|
751
765
|
}
|
|
752
|
-
const RepresentationType$
|
|
753
|
-
function normalize$
|
|
766
|
+
const RepresentationType$a = 'ActionableListDefinitionGetAllOutputRepresentation';
|
|
767
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
754
768
|
return input;
|
|
755
769
|
}
|
|
756
|
-
const select$
|
|
757
|
-
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$
|
|
770
|
+
const select$r = function ActionableListDefinitionGetAllOutputRepresentationSelect() {
|
|
771
|
+
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$s();
|
|
758
772
|
return {
|
|
759
773
|
kind: 'Fragment',
|
|
760
|
-
version: VERSION$
|
|
774
|
+
version: VERSION$g,
|
|
761
775
|
private: [],
|
|
762
776
|
selections: [
|
|
763
777
|
{
|
|
@@ -769,11 +783,11 @@ const select$p = function ActionableListDefinitionGetAllOutputRepresentationSele
|
|
|
769
783
|
]
|
|
770
784
|
};
|
|
771
785
|
};
|
|
772
|
-
function equals$
|
|
786
|
+
function equals$g(existing, incoming) {
|
|
773
787
|
const existing_aldList = existing.aldList;
|
|
774
788
|
const incoming_aldList = incoming.aldList;
|
|
775
789
|
const equals_aldList_items = equalsArray(existing_aldList, incoming_aldList, (existing_aldList_item, incoming_aldList_item) => {
|
|
776
|
-
if (!(equals$
|
|
790
|
+
if (!(equals$h(existing_aldList_item, incoming_aldList_item))) {
|
|
777
791
|
return false;
|
|
778
792
|
}
|
|
779
793
|
});
|
|
@@ -782,7 +796,7 @@ function equals$f(existing, incoming) {
|
|
|
782
796
|
}
|
|
783
797
|
return true;
|
|
784
798
|
}
|
|
785
|
-
const ingest$
|
|
799
|
+
const ingest$a = function ActionableListDefinitionGetAllOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
786
800
|
if (process.env.NODE_ENV !== 'production') {
|
|
787
801
|
const validateError = validate$n(input);
|
|
788
802
|
if (validateError !== null) {
|
|
@@ -790,36 +804,36 @@ const ingest$9 = function ActionableListDefinitionGetAllOutputRepresentationInge
|
|
|
790
804
|
}
|
|
791
805
|
}
|
|
792
806
|
const key = path.fullPath;
|
|
793
|
-
const ttlToUse = TTL$
|
|
794
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
807
|
+
const ttlToUse = TTL$a;
|
|
808
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "actionablelist", VERSION$g, RepresentationType$a, equals$g);
|
|
795
809
|
return createLink(key);
|
|
796
810
|
};
|
|
797
|
-
function getTypeCacheKeys$
|
|
811
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
798
812
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
799
813
|
const rootKey = fullPathFactory();
|
|
800
814
|
rootKeySet.set(rootKey, {
|
|
801
815
|
namespace: keyPrefix,
|
|
802
|
-
representationName: RepresentationType$
|
|
816
|
+
representationName: RepresentationType$a,
|
|
803
817
|
mergeable: false
|
|
804
818
|
});
|
|
805
819
|
}
|
|
806
820
|
|
|
807
|
-
function select$
|
|
808
|
-
return select$
|
|
821
|
+
function select$q(luvio, params) {
|
|
822
|
+
return select$r();
|
|
809
823
|
}
|
|
810
|
-
function keyBuilder$
|
|
824
|
+
function keyBuilder$i(luvio, params) {
|
|
811
825
|
return keyPrefix + '::ActionableListDefinitionGetAllOutputRepresentation:(' + 'id:' + params.queryParams.id + ',' + 'isActive:' + params.queryParams.isActive + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
812
826
|
}
|
|
813
|
-
function getResponseCacheKeys$
|
|
814
|
-
getTypeCacheKeys$
|
|
827
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
828
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$i(luvio, resourceParams));
|
|
815
829
|
}
|
|
816
|
-
function ingestSuccess$
|
|
830
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
817
831
|
const { body } = response;
|
|
818
|
-
const key = keyBuilder$
|
|
819
|
-
luvio.storeIngest(key, ingest$
|
|
832
|
+
const key = keyBuilder$i(luvio, resourceParams);
|
|
833
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
820
834
|
const snapshot = luvio.storeLookup({
|
|
821
835
|
recordId: key,
|
|
822
|
-
node: select$
|
|
836
|
+
node: select$q(),
|
|
823
837
|
variables: {},
|
|
824
838
|
}, snapshotRefresh);
|
|
825
839
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -830,19 +844,19 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
830
844
|
deepFreeze(snapshot.data);
|
|
831
845
|
return snapshot;
|
|
832
846
|
}
|
|
833
|
-
function ingestError$
|
|
834
|
-
const key = keyBuilder$
|
|
847
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
848
|
+
const key = keyBuilder$i(luvio, params);
|
|
835
849
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
836
850
|
const storeMetadataParams = {
|
|
837
|
-
ttl: TTL$
|
|
851
|
+
ttl: TTL$a,
|
|
838
852
|
namespace: keyPrefix,
|
|
839
|
-
version: VERSION$
|
|
840
|
-
representationName: RepresentationType$
|
|
853
|
+
version: VERSION$g,
|
|
854
|
+
representationName: RepresentationType$a
|
|
841
855
|
};
|
|
842
856
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
843
857
|
return errorSnapshot;
|
|
844
858
|
}
|
|
845
|
-
function createResourceRequest$
|
|
859
|
+
function createResourceRequest$b(config) {
|
|
846
860
|
const headers = {};
|
|
847
861
|
return {
|
|
848
862
|
baseUri: '/services/data/v60.0',
|
|
@@ -856,93 +870,93 @@ function createResourceRequest$a(config) {
|
|
|
856
870
|
};
|
|
857
871
|
}
|
|
858
872
|
|
|
859
|
-
const adapterName$
|
|
873
|
+
const adapterName$b = 'getActionableListDefinitions';
|
|
860
874
|
const getActionableListDefinitions_ConfigPropertyMetadata = [
|
|
861
875
|
generateParamConfigMetadata('id', false, 1 /* QueryParameter */, 0 /* String */),
|
|
862
876
|
generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
863
877
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
864
878
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
865
879
|
];
|
|
866
|
-
const getActionableListDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
867
|
-
const createResourceParams$
|
|
868
|
-
function keyBuilder$
|
|
869
|
-
const resourceParams = createResourceParams$
|
|
870
|
-
return keyBuilder$
|
|
880
|
+
const getActionableListDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getActionableListDefinitions_ConfigPropertyMetadata);
|
|
881
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(getActionableListDefinitions_ConfigPropertyMetadata);
|
|
882
|
+
function keyBuilder$h(luvio, config) {
|
|
883
|
+
const resourceParams = createResourceParams$b(config);
|
|
884
|
+
return keyBuilder$i(luvio, resourceParams);
|
|
871
885
|
}
|
|
872
|
-
function typeCheckConfig$
|
|
886
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
873
887
|
const config = {};
|
|
874
|
-
typeCheckConfig$
|
|
888
|
+
typeCheckConfig$c(untrustedConfig, config, getActionableListDefinitions_ConfigPropertyMetadata);
|
|
875
889
|
return config;
|
|
876
890
|
}
|
|
877
|
-
function validateAdapterConfig$
|
|
891
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
878
892
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
879
893
|
return null;
|
|
880
894
|
}
|
|
881
895
|
if (process.env.NODE_ENV !== 'production') {
|
|
882
896
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
883
897
|
}
|
|
884
|
-
const config = typeCheckConfig$
|
|
898
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
885
899
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
886
900
|
return null;
|
|
887
901
|
}
|
|
888
902
|
return config;
|
|
889
903
|
}
|
|
890
|
-
function adapterFragment$
|
|
891
|
-
createResourceParams$
|
|
892
|
-
return select$
|
|
904
|
+
function adapterFragment$5(luvio, config) {
|
|
905
|
+
createResourceParams$b(config);
|
|
906
|
+
return select$q();
|
|
893
907
|
}
|
|
894
|
-
function onFetchResponseSuccess$
|
|
895
|
-
const snapshot = ingestSuccess$
|
|
908
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
909
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
896
910
|
config,
|
|
897
|
-
resolve: () => buildNetworkSnapshot$
|
|
911
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
898
912
|
});
|
|
899
913
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
900
914
|
}
|
|
901
|
-
function onFetchResponseError$
|
|
902
|
-
const snapshot = ingestError$
|
|
915
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
916
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
903
917
|
config,
|
|
904
|
-
resolve: () => buildNetworkSnapshot$
|
|
918
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
905
919
|
});
|
|
906
920
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
907
921
|
}
|
|
908
|
-
function buildNetworkSnapshot$
|
|
909
|
-
const resourceParams = createResourceParams$
|
|
910
|
-
const request = createResourceRequest$
|
|
922
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
923
|
+
const resourceParams = createResourceParams$b(config);
|
|
924
|
+
const request = createResourceRequest$b(resourceParams);
|
|
911
925
|
return luvio.dispatchResourceRequest(request, options)
|
|
912
926
|
.then((response) => {
|
|
913
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
927
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
914
928
|
const cache = new StoreKeyMap();
|
|
915
|
-
getResponseCacheKeys$
|
|
929
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
916
930
|
return cache;
|
|
917
931
|
});
|
|
918
932
|
}, (response) => {
|
|
919
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
933
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
920
934
|
});
|
|
921
935
|
}
|
|
922
|
-
function buildNetworkSnapshotCachePolicy$
|
|
923
|
-
return buildNetworkSnapshotCachePolicy$
|
|
936
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
937
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
924
938
|
}
|
|
925
|
-
function buildCachedSnapshotCachePolicy$
|
|
939
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
926
940
|
const { luvio, config } = context;
|
|
927
941
|
const selector = {
|
|
928
|
-
recordId: keyBuilder$
|
|
929
|
-
node: adapterFragment$
|
|
942
|
+
recordId: keyBuilder$h(luvio, config),
|
|
943
|
+
node: adapterFragment$5(luvio, config),
|
|
930
944
|
variables: {},
|
|
931
945
|
};
|
|
932
946
|
const cacheSnapshot = storeLookup(selector, {
|
|
933
947
|
config,
|
|
934
|
-
resolve: () => buildNetworkSnapshot$
|
|
948
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
935
949
|
});
|
|
936
950
|
return cacheSnapshot;
|
|
937
951
|
}
|
|
938
952
|
const getActionableListDefinitionsAdapterFactory = (luvio) => function actionablelist__getActionableListDefinitions(untrustedConfig, requestContext) {
|
|
939
|
-
const config = validateAdapterConfig$
|
|
953
|
+
const config = validateAdapterConfig$b(untrustedConfig, getActionableListDefinitions_ConfigPropertyNames);
|
|
940
954
|
// Invalid or incomplete config
|
|
941
955
|
if (config === null) {
|
|
942
956
|
return null;
|
|
943
957
|
}
|
|
944
958
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
945
|
-
buildCachedSnapshotCachePolicy$
|
|
959
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
946
960
|
};
|
|
947
961
|
|
|
948
962
|
function validate$m(obj, path = 'ActionableListDefinitionCreateInputRepresentation') {
|
|
@@ -997,7 +1011,7 @@ function validate$m(obj, path = 'ActionableListDefinitionCreateInputRepresentati
|
|
|
997
1011
|
return v_error === undefined ? null : v_error;
|
|
998
1012
|
}
|
|
999
1013
|
|
|
1000
|
-
const VERSION$
|
|
1014
|
+
const VERSION$f = "c011e92d9100cd54f4f75b6951999c39";
|
|
1001
1015
|
function validate$l(obj, path = 'ActionableListDefinitionStatusOutputRepresentation') {
|
|
1002
1016
|
const v_error = (() => {
|
|
1003
1017
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1016,10 +1030,10 @@ function validate$l(obj, path = 'ActionableListDefinitionStatusOutputRepresentat
|
|
|
1016
1030
|
})();
|
|
1017
1031
|
return v_error === undefined ? null : v_error;
|
|
1018
1032
|
}
|
|
1019
|
-
const select$
|
|
1033
|
+
const select$p = function ActionableListDefinitionStatusOutputRepresentationSelect() {
|
|
1020
1034
|
return {
|
|
1021
1035
|
kind: 'Fragment',
|
|
1022
|
-
version: VERSION$
|
|
1036
|
+
version: VERSION$f,
|
|
1023
1037
|
private: [],
|
|
1024
1038
|
selections: [
|
|
1025
1039
|
{
|
|
@@ -1033,7 +1047,7 @@ const select$n = function ActionableListDefinitionStatusOutputRepresentationSele
|
|
|
1033
1047
|
]
|
|
1034
1048
|
};
|
|
1035
1049
|
};
|
|
1036
|
-
function equals$
|
|
1050
|
+
function equals$f(existing, incoming) {
|
|
1037
1051
|
const existing_code = existing.code;
|
|
1038
1052
|
const incoming_code = incoming.code;
|
|
1039
1053
|
if (!(existing_code === incoming_code)) {
|
|
@@ -1047,8 +1061,8 @@ function equals$e(existing, incoming) {
|
|
|
1047
1061
|
return true;
|
|
1048
1062
|
}
|
|
1049
1063
|
|
|
1050
|
-
const TTL$
|
|
1051
|
-
const VERSION$
|
|
1064
|
+
const TTL$9 = 100;
|
|
1065
|
+
const VERSION$e = "7f7f8555df2466c8cbc7878266c1decd";
|
|
1052
1066
|
function validate$k(obj, path = 'ActionableListDefinitionCreateOutputRepresentation') {
|
|
1053
1067
|
const v_error = (() => {
|
|
1054
1068
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1073,25 +1087,25 @@ function validate$k(obj, path = 'ActionableListDefinitionCreateOutputRepresentat
|
|
|
1073
1087
|
})();
|
|
1074
1088
|
return v_error === undefined ? null : v_error;
|
|
1075
1089
|
}
|
|
1076
|
-
const RepresentationType$
|
|
1077
|
-
function keyBuilder$
|
|
1078
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1090
|
+
const RepresentationType$9 = 'ActionableListDefinitionCreateOutputRepresentation';
|
|
1091
|
+
function keyBuilder$g(luvio, config) {
|
|
1092
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
|
|
1079
1093
|
}
|
|
1080
1094
|
function keyBuilderFromType$5(luvio, object) {
|
|
1081
1095
|
const keyParams = {
|
|
1082
1096
|
id: object.actionableListDefinition.id
|
|
1083
1097
|
};
|
|
1084
|
-
return keyBuilder$
|
|
1098
|
+
return keyBuilder$g(luvio, keyParams);
|
|
1085
1099
|
}
|
|
1086
|
-
function normalize$
|
|
1100
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1087
1101
|
return input;
|
|
1088
1102
|
}
|
|
1089
|
-
const select$
|
|
1090
|
-
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$
|
|
1091
|
-
const { selections: ActionableListDefinitionStatusOutputRepresentation__selections, opaque: ActionableListDefinitionStatusOutputRepresentation__opaque, } = select$
|
|
1103
|
+
const select$o = function ActionableListDefinitionCreateOutputRepresentationSelect() {
|
|
1104
|
+
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$s();
|
|
1105
|
+
const { selections: ActionableListDefinitionStatusOutputRepresentation__selections, opaque: ActionableListDefinitionStatusOutputRepresentation__opaque, } = select$p();
|
|
1092
1106
|
return {
|
|
1093
1107
|
kind: 'Fragment',
|
|
1094
|
-
version: VERSION$
|
|
1108
|
+
version: VERSION$e,
|
|
1095
1109
|
private: [],
|
|
1096
1110
|
selections: [
|
|
1097
1111
|
{
|
|
@@ -1107,20 +1121,20 @@ const select$m = function ActionableListDefinitionCreateOutputRepresentationSele
|
|
|
1107
1121
|
]
|
|
1108
1122
|
};
|
|
1109
1123
|
};
|
|
1110
|
-
function equals$
|
|
1124
|
+
function equals$e(existing, incoming) {
|
|
1111
1125
|
const existing_actionableListDefinition = existing.actionableListDefinition;
|
|
1112
1126
|
const incoming_actionableListDefinition = incoming.actionableListDefinition;
|
|
1113
|
-
if (!(equals$
|
|
1127
|
+
if (!(equals$h(existing_actionableListDefinition, incoming_actionableListDefinition))) {
|
|
1114
1128
|
return false;
|
|
1115
1129
|
}
|
|
1116
1130
|
const existing_status = existing.status;
|
|
1117
1131
|
const incoming_status = incoming.status;
|
|
1118
|
-
if (!(equals$
|
|
1132
|
+
if (!(equals$f(existing_status, incoming_status))) {
|
|
1119
1133
|
return false;
|
|
1120
1134
|
}
|
|
1121
1135
|
return true;
|
|
1122
1136
|
}
|
|
1123
|
-
const ingest$
|
|
1137
|
+
const ingest$9 = function ActionableListDefinitionCreateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1124
1138
|
if (process.env.NODE_ENV !== 'production') {
|
|
1125
1139
|
const validateError = validate$k(input);
|
|
1126
1140
|
if (validateError !== null) {
|
|
@@ -1128,33 +1142,33 @@ const ingest$8 = function ActionableListDefinitionCreateOutputRepresentationInge
|
|
|
1128
1142
|
}
|
|
1129
1143
|
}
|
|
1130
1144
|
const key = keyBuilderFromType$5(luvio, input);
|
|
1131
|
-
const ttlToUse = TTL$
|
|
1132
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1145
|
+
const ttlToUse = TTL$9;
|
|
1146
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "actionablelist", VERSION$e, RepresentationType$9, equals$e);
|
|
1133
1147
|
return createLink(key);
|
|
1134
1148
|
};
|
|
1135
|
-
function getTypeCacheKeys$
|
|
1149
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
1136
1150
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1137
1151
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
1138
1152
|
rootKeySet.set(rootKey, {
|
|
1139
1153
|
namespace: keyPrefix,
|
|
1140
|
-
representationName: RepresentationType$
|
|
1154
|
+
representationName: RepresentationType$9,
|
|
1141
1155
|
mergeable: false
|
|
1142
1156
|
});
|
|
1143
1157
|
}
|
|
1144
1158
|
|
|
1145
|
-
function select$
|
|
1146
|
-
return select$
|
|
1159
|
+
function select$n(luvio, params) {
|
|
1160
|
+
return select$o();
|
|
1147
1161
|
}
|
|
1148
|
-
function getResponseCacheKeys$
|
|
1149
|
-
getTypeCacheKeys$
|
|
1162
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
1163
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
1150
1164
|
}
|
|
1151
|
-
function ingestSuccess$
|
|
1165
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
1152
1166
|
const { body } = response;
|
|
1153
1167
|
const key = keyBuilderFromType$5(luvio, body);
|
|
1154
|
-
luvio.storeIngest(key, ingest$
|
|
1168
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
1155
1169
|
const snapshot = luvio.storeLookup({
|
|
1156
1170
|
recordId: key,
|
|
1157
|
-
node: select$
|
|
1171
|
+
node: select$n(),
|
|
1158
1172
|
variables: {},
|
|
1159
1173
|
});
|
|
1160
1174
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1165,7 +1179,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
1165
1179
|
deepFreeze(snapshot.data);
|
|
1166
1180
|
return snapshot;
|
|
1167
1181
|
}
|
|
1168
|
-
function createResourceRequest$
|
|
1182
|
+
function createResourceRequest$a(config) {
|
|
1169
1183
|
const headers = {};
|
|
1170
1184
|
return {
|
|
1171
1185
|
baseUri: '/services/data/v60.0',
|
|
@@ -1179,13 +1193,13 @@ function createResourceRequest$9(config) {
|
|
|
1179
1193
|
};
|
|
1180
1194
|
}
|
|
1181
1195
|
|
|
1182
|
-
const adapterName$
|
|
1196
|
+
const adapterName$a = 'createActionableListDefinition';
|
|
1183
1197
|
const createActionableListDefinition_ConfigPropertyMetadata = [
|
|
1184
1198
|
generateParamConfigMetadata('actionableListDefinitionCreateInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1185
1199
|
];
|
|
1186
|
-
const createActionableListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1187
|
-
const createResourceParams$
|
|
1188
|
-
function typeCheckConfig$
|
|
1200
|
+
const createActionableListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createActionableListDefinition_ConfigPropertyMetadata);
|
|
1201
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(createActionableListDefinition_ConfigPropertyMetadata);
|
|
1202
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
1189
1203
|
const config = {};
|
|
1190
1204
|
const untrustedConfig_actionableListDefinitionCreateInput = untrustedConfig.actionableListDefinitionCreateInput;
|
|
1191
1205
|
const referenceActionableListDefinitionCreateInputRepresentationValidationError = validate$m(untrustedConfig_actionableListDefinitionCreateInput);
|
|
@@ -1194,30 +1208,30 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
1194
1208
|
}
|
|
1195
1209
|
return config;
|
|
1196
1210
|
}
|
|
1197
|
-
function validateAdapterConfig$
|
|
1211
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
1198
1212
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1199
1213
|
return null;
|
|
1200
1214
|
}
|
|
1201
1215
|
if (process.env.NODE_ENV !== 'production') {
|
|
1202
1216
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1203
1217
|
}
|
|
1204
|
-
const config = typeCheckConfig$
|
|
1218
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
1205
1219
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1206
1220
|
return null;
|
|
1207
1221
|
}
|
|
1208
1222
|
return config;
|
|
1209
1223
|
}
|
|
1210
|
-
function buildNetworkSnapshot$
|
|
1211
|
-
const resourceParams = createResourceParams$
|
|
1212
|
-
const request = createResourceRequest$
|
|
1224
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
1225
|
+
const resourceParams = createResourceParams$a(config);
|
|
1226
|
+
const request = createResourceRequest$a(resourceParams);
|
|
1213
1227
|
return luvio.dispatchResourceRequest(request, options)
|
|
1214
1228
|
.then((response) => {
|
|
1215
1229
|
return luvio.handleSuccessResponse(() => {
|
|
1216
|
-
const snapshot = ingestSuccess$
|
|
1230
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
1217
1231
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1218
1232
|
}, () => {
|
|
1219
1233
|
const cache = new StoreKeyMap();
|
|
1220
|
-
getResponseCacheKeys$
|
|
1234
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
1221
1235
|
return cache;
|
|
1222
1236
|
});
|
|
1223
1237
|
}, (response) => {
|
|
@@ -1227,12 +1241,12 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
1227
1241
|
}
|
|
1228
1242
|
const createActionableListDefinitionAdapterFactory = (luvio) => {
|
|
1229
1243
|
return function createActionableListDefinition(untrustedConfig) {
|
|
1230
|
-
const config = validateAdapterConfig$
|
|
1244
|
+
const config = validateAdapterConfig$a(untrustedConfig, createActionableListDefinition_ConfigPropertyNames);
|
|
1231
1245
|
// Invalid or incomplete config
|
|
1232
1246
|
if (config === null) {
|
|
1233
1247
|
throw new Error('Invalid config for "createActionableListDefinition"');
|
|
1234
1248
|
}
|
|
1235
|
-
return buildNetworkSnapshot$
|
|
1249
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
1236
1250
|
};
|
|
1237
1251
|
};
|
|
1238
1252
|
|
|
@@ -1307,8 +1321,8 @@ function validate$i(obj, path = 'ActionableListColumnsUserUpsertInputRepresentat
|
|
|
1307
1321
|
return v_error === undefined ? null : v_error;
|
|
1308
1322
|
}
|
|
1309
1323
|
|
|
1310
|
-
const TTL$
|
|
1311
|
-
const VERSION$
|
|
1324
|
+
const TTL$8 = 5000;
|
|
1325
|
+
const VERSION$d = "9a39093642c984addcbd6425bb594898";
|
|
1312
1326
|
function validate$h(obj, path = 'ActionableListColumnsUserOutputRepresentation') {
|
|
1313
1327
|
const v_error = (() => {
|
|
1314
1328
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1395,23 +1409,23 @@ function validate$h(obj, path = 'ActionableListColumnsUserOutputRepresentation')
|
|
|
1395
1409
|
})();
|
|
1396
1410
|
return v_error === undefined ? null : v_error;
|
|
1397
1411
|
}
|
|
1398
|
-
const RepresentationType$
|
|
1399
|
-
function keyBuilder$
|
|
1400
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1412
|
+
const RepresentationType$8 = 'ActionableListColumnsUserOutputRepresentation';
|
|
1413
|
+
function keyBuilder$f(luvio, config) {
|
|
1414
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + (config.id === null ? '' : config.id);
|
|
1401
1415
|
}
|
|
1402
1416
|
function keyBuilderFromType$4(luvio, object) {
|
|
1403
1417
|
const keyParams = {
|
|
1404
1418
|
id: object.id
|
|
1405
1419
|
};
|
|
1406
|
-
return keyBuilder$
|
|
1420
|
+
return keyBuilder$f(luvio, keyParams);
|
|
1407
1421
|
}
|
|
1408
|
-
function normalize$
|
|
1422
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
1409
1423
|
return input;
|
|
1410
1424
|
}
|
|
1411
|
-
const select$
|
|
1425
|
+
const select$m = function ActionableListColumnsUserOutputRepresentationSelect() {
|
|
1412
1426
|
return {
|
|
1413
1427
|
kind: 'Fragment',
|
|
1414
|
-
version: VERSION$
|
|
1428
|
+
version: VERSION$d,
|
|
1415
1429
|
private: [],
|
|
1416
1430
|
selections: [
|
|
1417
1431
|
{
|
|
@@ -1429,7 +1443,7 @@ const select$k = function ActionableListColumnsUserOutputRepresentationSelect()
|
|
|
1429
1443
|
]
|
|
1430
1444
|
};
|
|
1431
1445
|
};
|
|
1432
|
-
function equals$
|
|
1446
|
+
function equals$d(existing, incoming) {
|
|
1433
1447
|
const existing_errorMessage = existing.errorMessage;
|
|
1434
1448
|
const incoming_errorMessage = incoming.errorMessage;
|
|
1435
1449
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -1447,7 +1461,7 @@ function equals$c(existing, incoming) {
|
|
|
1447
1461
|
}
|
|
1448
1462
|
return true;
|
|
1449
1463
|
}
|
|
1450
|
-
const ingest$
|
|
1464
|
+
const ingest$8 = function ActionableListColumnsUserOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1451
1465
|
if (process.env.NODE_ENV !== 'production') {
|
|
1452
1466
|
const validateError = validate$h(input);
|
|
1453
1467
|
if (validateError !== null) {
|
|
@@ -1455,33 +1469,33 @@ const ingest$7 = function ActionableListColumnsUserOutputRepresentationIngest(in
|
|
|
1455
1469
|
}
|
|
1456
1470
|
}
|
|
1457
1471
|
const key = keyBuilderFromType$4(luvio, input);
|
|
1458
|
-
const ttlToUse = TTL$
|
|
1459
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1472
|
+
const ttlToUse = TTL$8;
|
|
1473
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "actionablelist", VERSION$d, RepresentationType$8, equals$d);
|
|
1460
1474
|
return createLink(key);
|
|
1461
1475
|
};
|
|
1462
|
-
function getTypeCacheKeys$
|
|
1476
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
1463
1477
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1464
1478
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
1465
1479
|
rootKeySet.set(rootKey, {
|
|
1466
1480
|
namespace: keyPrefix,
|
|
1467
|
-
representationName: RepresentationType$
|
|
1481
|
+
representationName: RepresentationType$8,
|
|
1468
1482
|
mergeable: false
|
|
1469
1483
|
});
|
|
1470
1484
|
}
|
|
1471
1485
|
|
|
1472
|
-
function select$
|
|
1473
|
-
return select$
|
|
1486
|
+
function select$l(luvio, params) {
|
|
1487
|
+
return select$m();
|
|
1474
1488
|
}
|
|
1475
|
-
function getResponseCacheKeys$
|
|
1476
|
-
getTypeCacheKeys$
|
|
1489
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
1490
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
1477
1491
|
}
|
|
1478
|
-
function ingestSuccess$
|
|
1492
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
1479
1493
|
const { body } = response;
|
|
1480
1494
|
const key = keyBuilderFromType$4(luvio, body);
|
|
1481
|
-
luvio.storeIngest(key, ingest$
|
|
1495
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
1482
1496
|
const snapshot = luvio.storeLookup({
|
|
1483
1497
|
recordId: key,
|
|
1484
|
-
node: select$
|
|
1498
|
+
node: select$l(),
|
|
1485
1499
|
variables: {},
|
|
1486
1500
|
});
|
|
1487
1501
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1492,7 +1506,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
1492
1506
|
deepFreeze(snapshot.data);
|
|
1493
1507
|
return snapshot;
|
|
1494
1508
|
}
|
|
1495
|
-
function createResourceRequest$
|
|
1509
|
+
function createResourceRequest$9(config) {
|
|
1496
1510
|
const headers = {};
|
|
1497
1511
|
return {
|
|
1498
1512
|
baseUri: '/services/data/v60.0',
|
|
@@ -1506,13 +1520,13 @@ function createResourceRequest$8(config) {
|
|
|
1506
1520
|
};
|
|
1507
1521
|
}
|
|
1508
1522
|
|
|
1509
|
-
const adapterName$
|
|
1523
|
+
const adapterName$9 = 'upsertActionableListDatasetColumnUser';
|
|
1510
1524
|
const upsertActionableListDatasetColumnUser_ConfigPropertyMetadata = [
|
|
1511
1525
|
generateParamConfigMetadata('actionableListDatasetColumnUserPreferencesUpsertInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1512
1526
|
];
|
|
1513
|
-
const upsertActionableListDatasetColumnUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1514
|
-
const createResourceParams$
|
|
1515
|
-
function typeCheckConfig$
|
|
1527
|
+
const upsertActionableListDatasetColumnUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, upsertActionableListDatasetColumnUser_ConfigPropertyMetadata);
|
|
1528
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(upsertActionableListDatasetColumnUser_ConfigPropertyMetadata);
|
|
1529
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1516
1530
|
const config = {};
|
|
1517
1531
|
const untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput = untrustedConfig.actionableListDatasetColumnUserPreferencesUpsertInput;
|
|
1518
1532
|
const referenceActionableListColumnsUserUpsertInputRepresentationValidationError = validate$i(untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput);
|
|
@@ -1521,30 +1535,30 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
1521
1535
|
}
|
|
1522
1536
|
return config;
|
|
1523
1537
|
}
|
|
1524
|
-
function validateAdapterConfig$
|
|
1538
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1525
1539
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1526
1540
|
return null;
|
|
1527
1541
|
}
|
|
1528
1542
|
if (process.env.NODE_ENV !== 'production') {
|
|
1529
1543
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1530
1544
|
}
|
|
1531
|
-
const config = typeCheckConfig$
|
|
1545
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1532
1546
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1533
1547
|
return null;
|
|
1534
1548
|
}
|
|
1535
1549
|
return config;
|
|
1536
1550
|
}
|
|
1537
|
-
function buildNetworkSnapshot$
|
|
1538
|
-
const resourceParams = createResourceParams$
|
|
1539
|
-
const request = createResourceRequest$
|
|
1551
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
1552
|
+
const resourceParams = createResourceParams$9(config);
|
|
1553
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1540
1554
|
return luvio.dispatchResourceRequest(request, options)
|
|
1541
1555
|
.then((response) => {
|
|
1542
1556
|
return luvio.handleSuccessResponse(() => {
|
|
1543
|
-
const snapshot = ingestSuccess$
|
|
1557
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
1544
1558
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1545
1559
|
}, () => {
|
|
1546
1560
|
const cache = new StoreKeyMap();
|
|
1547
|
-
getResponseCacheKeys$
|
|
1561
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
1548
1562
|
return cache;
|
|
1549
1563
|
});
|
|
1550
1564
|
}, (response) => {
|
|
@@ -1554,16 +1568,16 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1554
1568
|
}
|
|
1555
1569
|
const upsertActionableListDatasetColumnUserAdapterFactory = (luvio) => {
|
|
1556
1570
|
return function upsertActionableListDatasetColumnUser(untrustedConfig) {
|
|
1557
|
-
const config = validateAdapterConfig$
|
|
1571
|
+
const config = validateAdapterConfig$9(untrustedConfig, upsertActionableListDatasetColumnUser_ConfigPropertyNames);
|
|
1558
1572
|
// Invalid or incomplete config
|
|
1559
1573
|
if (config === null) {
|
|
1560
1574
|
throw new Error('Invalid config for "upsertActionableListDatasetColumnUser"');
|
|
1561
1575
|
}
|
|
1562
|
-
return buildNetworkSnapshot$
|
|
1576
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
1563
1577
|
};
|
|
1564
1578
|
};
|
|
1565
1579
|
|
|
1566
|
-
const VERSION$
|
|
1580
|
+
const VERSION$c = "bad75ff1a6600988b043c5bd86a36316";
|
|
1567
1581
|
function validate$g(obj, path = 'ActionableListRefreshFilterConditionOutputRepresentation') {
|
|
1568
1582
|
const v_error = (() => {
|
|
1569
1583
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1702,10 +1716,10 @@ function validate$g(obj, path = 'ActionableListRefreshFilterConditionOutputRepre
|
|
|
1702
1716
|
})();
|
|
1703
1717
|
return v_error === undefined ? null : v_error;
|
|
1704
1718
|
}
|
|
1705
|
-
const select$
|
|
1719
|
+
const select$k = function ActionableListRefreshFilterConditionOutputRepresentationSelect() {
|
|
1706
1720
|
return {
|
|
1707
1721
|
kind: 'Fragment',
|
|
1708
|
-
version: VERSION$
|
|
1722
|
+
version: VERSION$c,
|
|
1709
1723
|
private: [],
|
|
1710
1724
|
selections: [
|
|
1711
1725
|
{
|
|
@@ -1731,7 +1745,7 @@ const select$i = function ActionableListRefreshFilterConditionOutputRepresentati
|
|
|
1731
1745
|
]
|
|
1732
1746
|
};
|
|
1733
1747
|
};
|
|
1734
|
-
function equals$
|
|
1748
|
+
function equals$c(existing, incoming) {
|
|
1735
1749
|
const existing_columnName = existing.columnName;
|
|
1736
1750
|
const incoming_columnName = incoming.columnName;
|
|
1737
1751
|
if (!(existing_columnName === incoming_columnName)) {
|
|
@@ -1760,8 +1774,8 @@ function equals$b(existing, incoming) {
|
|
|
1760
1774
|
return true;
|
|
1761
1775
|
}
|
|
1762
1776
|
|
|
1763
|
-
const TTL$
|
|
1764
|
-
const VERSION$
|
|
1777
|
+
const TTL$7 = 5000;
|
|
1778
|
+
const VERSION$b = "9380a061b11e14a513ad18137293e8a5";
|
|
1765
1779
|
function validate$f(obj, path = 'ActionableListFilterTemplateOutputRepresentation') {
|
|
1766
1780
|
const v_error = (() => {
|
|
1767
1781
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1873,24 +1887,24 @@ function validate$f(obj, path = 'ActionableListFilterTemplateOutputRepresentatio
|
|
|
1873
1887
|
})();
|
|
1874
1888
|
return v_error === undefined ? null : v_error;
|
|
1875
1889
|
}
|
|
1876
|
-
const RepresentationType$
|
|
1877
|
-
function keyBuilder$
|
|
1878
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1890
|
+
const RepresentationType$7 = 'ActionableListFilterTemplateOutputRepresentation';
|
|
1891
|
+
function keyBuilder$e(luvio, config) {
|
|
1892
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
|
|
1879
1893
|
}
|
|
1880
1894
|
function keyBuilderFromType$3(luvio, object) {
|
|
1881
1895
|
const keyParams = {
|
|
1882
1896
|
id: object.id
|
|
1883
1897
|
};
|
|
1884
|
-
return keyBuilder$
|
|
1898
|
+
return keyBuilder$e(luvio, keyParams);
|
|
1885
1899
|
}
|
|
1886
|
-
function normalize$
|
|
1900
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1887
1901
|
return input;
|
|
1888
1902
|
}
|
|
1889
|
-
const select$
|
|
1890
|
-
const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$
|
|
1903
|
+
const select$j = function ActionableListFilterTemplateOutputRepresentationSelect() {
|
|
1904
|
+
const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$k();
|
|
1891
1905
|
return {
|
|
1892
1906
|
kind: 'Fragment',
|
|
1893
|
-
version: VERSION$
|
|
1907
|
+
version: VERSION$b,
|
|
1894
1908
|
private: [],
|
|
1895
1909
|
selections: [
|
|
1896
1910
|
{
|
|
@@ -1923,7 +1937,7 @@ const select$h = function ActionableListFilterTemplateOutputRepresentationSelect
|
|
|
1923
1937
|
]
|
|
1924
1938
|
};
|
|
1925
1939
|
};
|
|
1926
|
-
function equals$
|
|
1940
|
+
function equals$b(existing, incoming) {
|
|
1927
1941
|
const existing_id = existing.id;
|
|
1928
1942
|
const incoming_id = incoming.id;
|
|
1929
1943
|
if (!(existing_id === incoming_id)) {
|
|
@@ -1950,7 +1964,7 @@ function equals$a(existing, incoming) {
|
|
|
1950
1964
|
if (!(existing_filterList_item === incoming_filterList_item
|
|
1951
1965
|
|| (existing_filterList_item != null &&
|
|
1952
1966
|
incoming_filterList_item != null &&
|
|
1953
|
-
equals$
|
|
1967
|
+
equals$c(existing_filterList_item, incoming_filterList_item)))) {
|
|
1954
1968
|
return false;
|
|
1955
1969
|
}
|
|
1956
1970
|
});
|
|
@@ -1964,7 +1978,7 @@ function equals$a(existing, incoming) {
|
|
|
1964
1978
|
}
|
|
1965
1979
|
return true;
|
|
1966
1980
|
}
|
|
1967
|
-
const ingest$
|
|
1981
|
+
const ingest$7 = function ActionableListFilterTemplateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1968
1982
|
if (process.env.NODE_ENV !== 'production') {
|
|
1969
1983
|
const validateError = validate$f(input);
|
|
1970
1984
|
if (validateError !== null) {
|
|
@@ -1972,22 +1986,22 @@ const ingest$6 = function ActionableListFilterTemplateOutputRepresentationIngest
|
|
|
1972
1986
|
}
|
|
1973
1987
|
}
|
|
1974
1988
|
const key = keyBuilderFromType$3(luvio, input);
|
|
1975
|
-
const ttlToUse = TTL$
|
|
1976
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1989
|
+
const ttlToUse = TTL$7;
|
|
1990
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "actionablelist", VERSION$b, RepresentationType$7, equals$b);
|
|
1977
1991
|
return createLink(key);
|
|
1978
1992
|
};
|
|
1979
|
-
function getTypeCacheKeys$
|
|
1993
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
1980
1994
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1981
1995
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1982
1996
|
rootKeySet.set(rootKey, {
|
|
1983
1997
|
namespace: keyPrefix,
|
|
1984
|
-
representationName: RepresentationType$
|
|
1998
|
+
representationName: RepresentationType$7,
|
|
1985
1999
|
mergeable: false
|
|
1986
2000
|
});
|
|
1987
2001
|
}
|
|
1988
2002
|
|
|
1989
|
-
const TTL$
|
|
1990
|
-
const VERSION$
|
|
2003
|
+
const TTL$6 = 5000;
|
|
2004
|
+
const VERSION$a = "1e66eb919610ba591f0e8168462a1df1";
|
|
1991
2005
|
function validate$e(obj, path = 'ActionableListFilterTemplateListOutputRepresentation') {
|
|
1992
2006
|
const v_error = (() => {
|
|
1993
2007
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2013,14 +2027,14 @@ function validate$e(obj, path = 'ActionableListFilterTemplateListOutputRepresent
|
|
|
2013
2027
|
})();
|
|
2014
2028
|
return v_error === undefined ? null : v_error;
|
|
2015
2029
|
}
|
|
2016
|
-
const RepresentationType$
|
|
2017
|
-
function normalize$
|
|
2030
|
+
const RepresentationType$6 = 'ActionableListFilterTemplateListOutputRepresentation';
|
|
2031
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
2018
2032
|
const input_filterTemplates = input.filterTemplates;
|
|
2019
2033
|
const input_filterTemplates_id = path.fullPath + '__filterTemplates';
|
|
2020
2034
|
for (let i = 0; i < input_filterTemplates.length; i++) {
|
|
2021
2035
|
const input_filterTemplates_item = input_filterTemplates[i];
|
|
2022
2036
|
let input_filterTemplates_item_id = input_filterTemplates_id + '__' + i;
|
|
2023
|
-
input_filterTemplates[i] = ingest$
|
|
2037
|
+
input_filterTemplates[i] = ingest$7(input_filterTemplates_item, {
|
|
2024
2038
|
fullPath: input_filterTemplates_item_id,
|
|
2025
2039
|
propertyName: i,
|
|
2026
2040
|
parent: {
|
|
@@ -2033,10 +2047,10 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
2033
2047
|
}
|
|
2034
2048
|
return input;
|
|
2035
2049
|
}
|
|
2036
|
-
const select$
|
|
2050
|
+
const select$i = function ActionableListFilterTemplateListOutputRepresentationSelect() {
|
|
2037
2051
|
return {
|
|
2038
2052
|
kind: 'Fragment',
|
|
2039
|
-
version: VERSION$
|
|
2053
|
+
version: VERSION$a,
|
|
2040
2054
|
private: [],
|
|
2041
2055
|
selections: [
|
|
2042
2056
|
{
|
|
@@ -2047,12 +2061,12 @@ const select$g = function ActionableListFilterTemplateListOutputRepresentationSe
|
|
|
2047
2061
|
name: 'filterTemplates',
|
|
2048
2062
|
kind: 'Link',
|
|
2049
2063
|
plural: true,
|
|
2050
|
-
fragment: select$
|
|
2064
|
+
fragment: select$j()
|
|
2051
2065
|
}
|
|
2052
2066
|
]
|
|
2053
2067
|
};
|
|
2054
2068
|
};
|
|
2055
|
-
function equals$
|
|
2069
|
+
function equals$a(existing, incoming) {
|
|
2056
2070
|
const existing_actionableListDefinitionId = existing.actionableListDefinitionId;
|
|
2057
2071
|
const incoming_actionableListDefinitionId = incoming.actionableListDefinitionId;
|
|
2058
2072
|
if (!(existing_actionableListDefinitionId === incoming_actionableListDefinitionId)) {
|
|
@@ -2070,7 +2084,7 @@ function equals$9(existing, incoming) {
|
|
|
2070
2084
|
}
|
|
2071
2085
|
return true;
|
|
2072
2086
|
}
|
|
2073
|
-
const ingest$
|
|
2087
|
+
const ingest$6 = function ActionableListFilterTemplateListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2074
2088
|
if (process.env.NODE_ENV !== 'production') {
|
|
2075
2089
|
const validateError = validate$e(input);
|
|
2076
2090
|
if (validateError !== null) {
|
|
@@ -2078,40 +2092,40 @@ const ingest$5 = function ActionableListFilterTemplateListOutputRepresentationIn
|
|
|
2078
2092
|
}
|
|
2079
2093
|
}
|
|
2080
2094
|
const key = path.fullPath;
|
|
2081
|
-
const ttlToUse = TTL$
|
|
2082
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2095
|
+
const ttlToUse = TTL$6;
|
|
2096
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "actionablelist", VERSION$a, RepresentationType$6, equals$a);
|
|
2083
2097
|
return createLink(key);
|
|
2084
2098
|
};
|
|
2085
|
-
function getTypeCacheKeys$
|
|
2099
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
2086
2100
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2087
2101
|
const rootKey = fullPathFactory();
|
|
2088
2102
|
rootKeySet.set(rootKey, {
|
|
2089
2103
|
namespace: keyPrefix,
|
|
2090
|
-
representationName: RepresentationType$
|
|
2104
|
+
representationName: RepresentationType$6,
|
|
2091
2105
|
mergeable: false
|
|
2092
2106
|
});
|
|
2093
2107
|
const input_filterTemplates_length = input.filterTemplates.length;
|
|
2094
2108
|
for (let i = 0; i < input_filterTemplates_length; i++) {
|
|
2095
|
-
getTypeCacheKeys$
|
|
2109
|
+
getTypeCacheKeys$7(rootKeySet, luvio, input.filterTemplates[i]);
|
|
2096
2110
|
}
|
|
2097
2111
|
}
|
|
2098
2112
|
|
|
2099
|
-
function select$
|
|
2100
|
-
return select$
|
|
2113
|
+
function select$h(luvio, params) {
|
|
2114
|
+
return select$i();
|
|
2101
2115
|
}
|
|
2102
|
-
function keyBuilder$
|
|
2116
|
+
function keyBuilder$d(luvio, params) {
|
|
2103
2117
|
return keyPrefix + '::ActionableListFilterTemplateListOutputRepresentation:(' + 'actionableListDefinitionId:' + params.queryParams.actionableListDefinitionId + ')';
|
|
2104
2118
|
}
|
|
2105
|
-
function getResponseCacheKeys$
|
|
2106
|
-
getTypeCacheKeys$
|
|
2119
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
2120
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
2107
2121
|
}
|
|
2108
|
-
function ingestSuccess$
|
|
2122
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
2109
2123
|
const { body } = response;
|
|
2110
|
-
const key = keyBuilder$
|
|
2111
|
-
luvio.storeIngest(key, ingest$
|
|
2124
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
2125
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
2112
2126
|
const snapshot = luvio.storeLookup({
|
|
2113
2127
|
recordId: key,
|
|
2114
|
-
node: select$
|
|
2128
|
+
node: select$h(),
|
|
2115
2129
|
variables: {},
|
|
2116
2130
|
}, snapshotRefresh);
|
|
2117
2131
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2122,19 +2136,19 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2122
2136
|
deepFreeze(snapshot.data);
|
|
2123
2137
|
return snapshot;
|
|
2124
2138
|
}
|
|
2125
|
-
function ingestError$
|
|
2126
|
-
const key = keyBuilder$
|
|
2139
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
2140
|
+
const key = keyBuilder$d(luvio, params);
|
|
2127
2141
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2128
2142
|
const storeMetadataParams = {
|
|
2129
|
-
ttl: TTL$
|
|
2143
|
+
ttl: TTL$6,
|
|
2130
2144
|
namespace: keyPrefix,
|
|
2131
|
-
version: VERSION$
|
|
2132
|
-
representationName: RepresentationType$
|
|
2145
|
+
version: VERSION$a,
|
|
2146
|
+
representationName: RepresentationType$6
|
|
2133
2147
|
};
|
|
2134
2148
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2135
2149
|
return errorSnapshot;
|
|
2136
2150
|
}
|
|
2137
|
-
function createResourceRequest$
|
|
2151
|
+
function createResourceRequest$8(config) {
|
|
2138
2152
|
const headers = {};
|
|
2139
2153
|
return {
|
|
2140
2154
|
baseUri: '/services/data/v60.0',
|
|
@@ -2148,90 +2162,90 @@ function createResourceRequest$7(config) {
|
|
|
2148
2162
|
};
|
|
2149
2163
|
}
|
|
2150
2164
|
|
|
2151
|
-
const adapterName$
|
|
2165
|
+
const adapterName$8 = 'getFilterTemplatesForListDefinition';
|
|
2152
2166
|
const getFilterTemplatesForListDefinition_ConfigPropertyMetadata = [
|
|
2153
2167
|
generateParamConfigMetadata('actionableListDefinitionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2154
2168
|
];
|
|
2155
|
-
const getFilterTemplatesForListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2156
|
-
const createResourceParams$
|
|
2157
|
-
function keyBuilder$
|
|
2158
|
-
const resourceParams = createResourceParams$
|
|
2159
|
-
return keyBuilder$
|
|
2169
|
+
const getFilterTemplatesForListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getFilterTemplatesForListDefinition_ConfigPropertyMetadata);
|
|
2170
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(getFilterTemplatesForListDefinition_ConfigPropertyMetadata);
|
|
2171
|
+
function keyBuilder$c(luvio, config) {
|
|
2172
|
+
const resourceParams = createResourceParams$8(config);
|
|
2173
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
2160
2174
|
}
|
|
2161
|
-
function typeCheckConfig$
|
|
2175
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
2162
2176
|
const config = {};
|
|
2163
|
-
typeCheckConfig$
|
|
2177
|
+
typeCheckConfig$c(untrustedConfig, config, getFilterTemplatesForListDefinition_ConfigPropertyMetadata);
|
|
2164
2178
|
return config;
|
|
2165
2179
|
}
|
|
2166
|
-
function validateAdapterConfig$
|
|
2180
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
2167
2181
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2168
2182
|
return null;
|
|
2169
2183
|
}
|
|
2170
2184
|
if (process.env.NODE_ENV !== 'production') {
|
|
2171
2185
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2172
2186
|
}
|
|
2173
|
-
const config = typeCheckConfig$
|
|
2187
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
2174
2188
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2175
2189
|
return null;
|
|
2176
2190
|
}
|
|
2177
2191
|
return config;
|
|
2178
2192
|
}
|
|
2179
|
-
function adapterFragment$
|
|
2180
|
-
createResourceParams$
|
|
2181
|
-
return select$
|
|
2193
|
+
function adapterFragment$4(luvio, config) {
|
|
2194
|
+
createResourceParams$8(config);
|
|
2195
|
+
return select$h();
|
|
2182
2196
|
}
|
|
2183
|
-
function onFetchResponseSuccess$
|
|
2184
|
-
const snapshot = ingestSuccess$
|
|
2197
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
2198
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
2185
2199
|
config,
|
|
2186
|
-
resolve: () => buildNetworkSnapshot$
|
|
2200
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2187
2201
|
});
|
|
2188
2202
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2189
2203
|
}
|
|
2190
|
-
function onFetchResponseError$
|
|
2191
|
-
const snapshot = ingestError$
|
|
2204
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
2205
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
2192
2206
|
config,
|
|
2193
|
-
resolve: () => buildNetworkSnapshot$
|
|
2207
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2194
2208
|
});
|
|
2195
2209
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2196
2210
|
}
|
|
2197
|
-
function buildNetworkSnapshot$
|
|
2198
|
-
const resourceParams = createResourceParams$
|
|
2199
|
-
const request = createResourceRequest$
|
|
2211
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
2212
|
+
const resourceParams = createResourceParams$8(config);
|
|
2213
|
+
const request = createResourceRequest$8(resourceParams);
|
|
2200
2214
|
return luvio.dispatchResourceRequest(request, options)
|
|
2201
2215
|
.then((response) => {
|
|
2202
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2216
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
2203
2217
|
const cache = new StoreKeyMap();
|
|
2204
|
-
getResponseCacheKeys$
|
|
2218
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
2205
2219
|
return cache;
|
|
2206
2220
|
});
|
|
2207
2221
|
}, (response) => {
|
|
2208
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2222
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
2209
2223
|
});
|
|
2210
2224
|
}
|
|
2211
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2212
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2225
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2226
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
2213
2227
|
}
|
|
2214
|
-
function buildCachedSnapshotCachePolicy$
|
|
2228
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
2215
2229
|
const { luvio, config } = context;
|
|
2216
2230
|
const selector = {
|
|
2217
|
-
recordId: keyBuilder$
|
|
2218
|
-
node: adapterFragment$
|
|
2231
|
+
recordId: keyBuilder$c(luvio, config),
|
|
2232
|
+
node: adapterFragment$4(luvio, config),
|
|
2219
2233
|
variables: {},
|
|
2220
2234
|
};
|
|
2221
2235
|
const cacheSnapshot = storeLookup(selector, {
|
|
2222
2236
|
config,
|
|
2223
|
-
resolve: () => buildNetworkSnapshot$
|
|
2237
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2224
2238
|
});
|
|
2225
2239
|
return cacheSnapshot;
|
|
2226
2240
|
}
|
|
2227
2241
|
const getFilterTemplatesForListDefinitionAdapterFactory = (luvio) => function actionablelist__getFilterTemplatesForListDefinition(untrustedConfig, requestContext) {
|
|
2228
|
-
const config = validateAdapterConfig$
|
|
2242
|
+
const config = validateAdapterConfig$8(untrustedConfig, getFilterTemplatesForListDefinition_ConfigPropertyNames);
|
|
2229
2243
|
// Invalid or incomplete config
|
|
2230
2244
|
if (config === null) {
|
|
2231
2245
|
return null;
|
|
2232
2246
|
}
|
|
2233
2247
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2234
|
-
buildCachedSnapshotCachePolicy$
|
|
2248
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
2235
2249
|
};
|
|
2236
2250
|
|
|
2237
2251
|
function validate$d(obj, path = 'ActionableListFilterInputRepresentation') {
|
|
@@ -2383,171 +2397,23 @@ function validate$d(obj, path = 'ActionableListFilterInputRepresentation') {
|
|
|
2383
2397
|
return v_error === undefined ? null : v_error;
|
|
2384
2398
|
}
|
|
2385
2399
|
|
|
2386
|
-
|
|
2400
|
+
const TTL$5 = 5000;
|
|
2401
|
+
const VERSION$9 = "3cd16ed4312e68ebb85a92c2878b54f2";
|
|
2402
|
+
function validate$c(obj, path = 'ActionableListFilterTemplateUpsertOutputRepresentation') {
|
|
2387
2403
|
const v_error = (() => {
|
|
2388
2404
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2389
2405
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2390
2406
|
}
|
|
2391
|
-
const
|
|
2392
|
-
const
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
const path_description = path + '.description';
|
|
2398
|
-
let obj_description_union0 = null;
|
|
2399
|
-
const obj_description_union0_error = (() => {
|
|
2400
|
-
if (typeof obj_description !== 'string') {
|
|
2401
|
-
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2407
|
+
const obj_errorMessage = obj.errorMessage;
|
|
2408
|
+
const path_errorMessage = path + '.errorMessage';
|
|
2409
|
+
let obj_errorMessage_union0 = null;
|
|
2410
|
+
const obj_errorMessage_union0_error = (() => {
|
|
2411
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
2412
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
2402
2413
|
}
|
|
2403
2414
|
})();
|
|
2404
|
-
if (
|
|
2405
|
-
|
|
2406
|
-
}
|
|
2407
|
-
let obj_description_union1 = null;
|
|
2408
|
-
const obj_description_union1_error = (() => {
|
|
2409
|
-
if (obj_description !== null) {
|
|
2410
|
-
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2411
|
-
}
|
|
2412
|
-
})();
|
|
2413
|
-
if (obj_description_union1_error != null) {
|
|
2414
|
-
obj_description_union1 = obj_description_union1_error.message;
|
|
2415
|
-
}
|
|
2416
|
-
if (obj_description_union0 && obj_description_union1) {
|
|
2417
|
-
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
2418
|
-
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2419
|
-
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2420
|
-
return new TypeError(message);
|
|
2421
|
-
}
|
|
2422
|
-
const obj_filterList = obj.filterList;
|
|
2423
|
-
const path_filterList = path + '.filterList';
|
|
2424
|
-
if (!ArrayIsArray(obj_filterList)) {
|
|
2425
|
-
return new TypeError('Expected "array" but received "' + typeof obj_filterList + '" (at "' + path_filterList + '")');
|
|
2426
|
-
}
|
|
2427
|
-
for (let i = 0; i < obj_filterList.length; i++) {
|
|
2428
|
-
const obj_filterList_item = obj_filterList[i];
|
|
2429
|
-
const path_filterList_item = path_filterList + '[' + i + ']';
|
|
2430
|
-
let obj_filterList_item_union0 = null;
|
|
2431
|
-
const obj_filterList_item_union0_error = (() => {
|
|
2432
|
-
const referencepath_filterList_itemValidationError = validate$d(obj_filterList_item, path_filterList_item);
|
|
2433
|
-
if (referencepath_filterList_itemValidationError !== null) {
|
|
2434
|
-
let message = 'Object doesn\'t match ActionableListFilterInputRepresentation (at "' + path_filterList_item + '")\n';
|
|
2435
|
-
message += referencepath_filterList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2436
|
-
return new TypeError(message);
|
|
2437
|
-
}
|
|
2438
|
-
})();
|
|
2439
|
-
if (obj_filterList_item_union0_error != null) {
|
|
2440
|
-
obj_filterList_item_union0 = obj_filterList_item_union0_error.message;
|
|
2441
|
-
}
|
|
2442
|
-
let obj_filterList_item_union1 = null;
|
|
2443
|
-
const obj_filterList_item_union1_error = (() => {
|
|
2444
|
-
if (obj_filterList_item !== null) {
|
|
2445
|
-
return new TypeError('Expected "null" but received "' + typeof obj_filterList_item + '" (at "' + path_filterList_item + '")');
|
|
2446
|
-
}
|
|
2447
|
-
})();
|
|
2448
|
-
if (obj_filterList_item_union1_error != null) {
|
|
2449
|
-
obj_filterList_item_union1 = obj_filterList_item_union1_error.message;
|
|
2450
|
-
}
|
|
2451
|
-
if (obj_filterList_item_union0 && obj_filterList_item_union1) {
|
|
2452
|
-
let message = 'Object doesn\'t match union (at "' + path_filterList_item + '")';
|
|
2453
|
-
message += '\n' + obj_filterList_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2454
|
-
message += '\n' + obj_filterList_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2455
|
-
return new TypeError(message);
|
|
2456
|
-
}
|
|
2457
|
-
}
|
|
2458
|
-
const obj_filterLogic = obj.filterLogic;
|
|
2459
|
-
const path_filterLogic = path + '.filterLogic';
|
|
2460
|
-
let obj_filterLogic_union0 = null;
|
|
2461
|
-
const obj_filterLogic_union0_error = (() => {
|
|
2462
|
-
if (typeof obj_filterLogic !== 'string') {
|
|
2463
|
-
return new TypeError('Expected "string" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
|
|
2464
|
-
}
|
|
2465
|
-
})();
|
|
2466
|
-
if (obj_filterLogic_union0_error != null) {
|
|
2467
|
-
obj_filterLogic_union0 = obj_filterLogic_union0_error.message;
|
|
2468
|
-
}
|
|
2469
|
-
let obj_filterLogic_union1 = null;
|
|
2470
|
-
const obj_filterLogic_union1_error = (() => {
|
|
2471
|
-
if (obj_filterLogic !== null) {
|
|
2472
|
-
return new TypeError('Expected "null" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
|
|
2473
|
-
}
|
|
2474
|
-
})();
|
|
2475
|
-
if (obj_filterLogic_union1_error != null) {
|
|
2476
|
-
obj_filterLogic_union1 = obj_filterLogic_union1_error.message;
|
|
2477
|
-
}
|
|
2478
|
-
if (obj_filterLogic_union0 && obj_filterLogic_union1) {
|
|
2479
|
-
let message = 'Object doesn\'t match union (at "' + path_filterLogic + '")';
|
|
2480
|
-
message += '\n' + obj_filterLogic_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2481
|
-
message += '\n' + obj_filterLogic_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2482
|
-
return new TypeError(message);
|
|
2483
|
-
}
|
|
2484
|
-
const obj_id = obj.id;
|
|
2485
|
-
const path_id = path + '.id';
|
|
2486
|
-
let obj_id_union0 = null;
|
|
2487
|
-
const obj_id_union0_error = (() => {
|
|
2488
|
-
if (typeof obj_id !== 'string') {
|
|
2489
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2490
|
-
}
|
|
2491
|
-
})();
|
|
2492
|
-
if (obj_id_union0_error != null) {
|
|
2493
|
-
obj_id_union0 = obj_id_union0_error.message;
|
|
2494
|
-
}
|
|
2495
|
-
let obj_id_union1 = null;
|
|
2496
|
-
const obj_id_union1_error = (() => {
|
|
2497
|
-
if (obj_id !== null) {
|
|
2498
|
-
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2499
|
-
}
|
|
2500
|
-
})();
|
|
2501
|
-
if (obj_id_union1_error != null) {
|
|
2502
|
-
obj_id_union1 = obj_id_union1_error.message;
|
|
2503
|
-
}
|
|
2504
|
-
if (obj_id_union0 && obj_id_union1) {
|
|
2505
|
-
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
2506
|
-
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2507
|
-
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2508
|
-
return new TypeError(message);
|
|
2509
|
-
}
|
|
2510
|
-
const obj_ownerId = obj.ownerId;
|
|
2511
|
-
const path_ownerId = path + '.ownerId';
|
|
2512
|
-
if (typeof obj_ownerId !== 'string') {
|
|
2513
|
-
return new TypeError('Expected "string" but received "' + typeof obj_ownerId + '" (at "' + path_ownerId + '")');
|
|
2514
|
-
}
|
|
2515
|
-
const obj_ownerName = obj.ownerName;
|
|
2516
|
-
const path_ownerName = path + '.ownerName';
|
|
2517
|
-
if (typeof obj_ownerName !== 'string') {
|
|
2518
|
-
return new TypeError('Expected "string" but received "' + typeof obj_ownerName + '" (at "' + path_ownerName + '")');
|
|
2519
|
-
}
|
|
2520
|
-
const obj_sharingType = obj.sharingType;
|
|
2521
|
-
const path_sharingType = path + '.sharingType';
|
|
2522
|
-
if (typeof obj_sharingType !== 'string') {
|
|
2523
|
-
return new TypeError('Expected "string" but received "' + typeof obj_sharingType + '" (at "' + path_sharingType + '")');
|
|
2524
|
-
}
|
|
2525
|
-
const obj_templateName = obj.templateName;
|
|
2526
|
-
const path_templateName = path + '.templateName';
|
|
2527
|
-
if (typeof obj_templateName !== 'string') {
|
|
2528
|
-
return new TypeError('Expected "string" but received "' + typeof obj_templateName + '" (at "' + path_templateName + '")');
|
|
2529
|
-
}
|
|
2530
|
-
})();
|
|
2531
|
-
return v_error === undefined ? null : v_error;
|
|
2532
|
-
}
|
|
2533
|
-
|
|
2534
|
-
const TTL$4 = 5000;
|
|
2535
|
-
const VERSION$8 = "3cd16ed4312e68ebb85a92c2878b54f2";
|
|
2536
|
-
function validate$b(obj, path = 'ActionableListFilterTemplateUpsertOutputRepresentation') {
|
|
2537
|
-
const v_error = (() => {
|
|
2538
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2539
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2540
|
-
}
|
|
2541
|
-
const obj_errorMessage = obj.errorMessage;
|
|
2542
|
-
const path_errorMessage = path + '.errorMessage';
|
|
2543
|
-
let obj_errorMessage_union0 = null;
|
|
2544
|
-
const obj_errorMessage_union0_error = (() => {
|
|
2545
|
-
if (typeof obj_errorMessage !== 'string') {
|
|
2546
|
-
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
2547
|
-
}
|
|
2548
|
-
})();
|
|
2549
|
-
if (obj_errorMessage_union0_error != null) {
|
|
2550
|
-
obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
|
|
2415
|
+
if (obj_errorMessage_union0_error != null) {
|
|
2416
|
+
obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
|
|
2551
2417
|
}
|
|
2552
2418
|
let obj_errorMessage_union1 = null;
|
|
2553
2419
|
const obj_errorMessage_union1_error = (() => {
|
|
@@ -2619,23 +2485,23 @@ function validate$b(obj, path = 'ActionableListFilterTemplateUpsertOutputReprese
|
|
|
2619
2485
|
})();
|
|
2620
2486
|
return v_error === undefined ? null : v_error;
|
|
2621
2487
|
}
|
|
2622
|
-
const RepresentationType$
|
|
2623
|
-
function keyBuilder$
|
|
2624
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2488
|
+
const RepresentationType$5 = 'ActionableListFilterTemplateUpsertOutputRepresentation';
|
|
2489
|
+
function keyBuilder$b(luvio, config) {
|
|
2490
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + (config.id === null ? '' : config.id);
|
|
2625
2491
|
}
|
|
2626
2492
|
function keyBuilderFromType$2(luvio, object) {
|
|
2627
2493
|
const keyParams = {
|
|
2628
2494
|
id: object.id
|
|
2629
2495
|
};
|
|
2630
|
-
return keyBuilder$
|
|
2496
|
+
return keyBuilder$b(luvio, keyParams);
|
|
2631
2497
|
}
|
|
2632
|
-
function normalize$
|
|
2498
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
2633
2499
|
return input;
|
|
2634
2500
|
}
|
|
2635
|
-
const select$
|
|
2501
|
+
const select$g = function ActionableListFilterTemplateUpsertOutputRepresentationSelect() {
|
|
2636
2502
|
return {
|
|
2637
2503
|
kind: 'Fragment',
|
|
2638
|
-
version: VERSION$
|
|
2504
|
+
version: VERSION$9,
|
|
2639
2505
|
private: [],
|
|
2640
2506
|
selections: [
|
|
2641
2507
|
{
|
|
@@ -2653,7 +2519,7 @@ const select$e = function ActionableListFilterTemplateUpsertOutputRepresentation
|
|
|
2653
2519
|
]
|
|
2654
2520
|
};
|
|
2655
2521
|
};
|
|
2656
|
-
function equals$
|
|
2522
|
+
function equals$9(existing, incoming) {
|
|
2657
2523
|
const existing_errorMessage = existing.errorMessage;
|
|
2658
2524
|
const incoming_errorMessage = incoming.errorMessage;
|
|
2659
2525
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -2671,41 +2537,41 @@ function equals$8(existing, incoming) {
|
|
|
2671
2537
|
}
|
|
2672
2538
|
return true;
|
|
2673
2539
|
}
|
|
2674
|
-
const ingest$
|
|
2540
|
+
const ingest$5 = function ActionableListFilterTemplateUpsertOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2675
2541
|
if (process.env.NODE_ENV !== 'production') {
|
|
2676
|
-
const validateError = validate$
|
|
2542
|
+
const validateError = validate$c(input);
|
|
2677
2543
|
if (validateError !== null) {
|
|
2678
2544
|
throw validateError;
|
|
2679
2545
|
}
|
|
2680
2546
|
}
|
|
2681
2547
|
const key = keyBuilderFromType$2(luvio, input);
|
|
2682
|
-
const ttlToUse = TTL$
|
|
2683
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2548
|
+
const ttlToUse = TTL$5;
|
|
2549
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "actionablelist", VERSION$9, RepresentationType$5, equals$9);
|
|
2684
2550
|
return createLink(key);
|
|
2685
2551
|
};
|
|
2686
|
-
function getTypeCacheKeys$
|
|
2552
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
2687
2553
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2688
2554
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
2689
2555
|
rootKeySet.set(rootKey, {
|
|
2690
2556
|
namespace: keyPrefix,
|
|
2691
|
-
representationName: RepresentationType$
|
|
2557
|
+
representationName: RepresentationType$5,
|
|
2692
2558
|
mergeable: false
|
|
2693
2559
|
});
|
|
2694
2560
|
}
|
|
2695
2561
|
|
|
2696
|
-
function select$
|
|
2697
|
-
return select$
|
|
2562
|
+
function select$f(luvio, params) {
|
|
2563
|
+
return select$g();
|
|
2698
2564
|
}
|
|
2699
|
-
function getResponseCacheKeys$
|
|
2700
|
-
getTypeCacheKeys$
|
|
2565
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
2566
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
2701
2567
|
}
|
|
2702
|
-
function ingestSuccess$
|
|
2568
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
2703
2569
|
const { body } = response;
|
|
2704
2570
|
const key = keyBuilderFromType$2(luvio, body);
|
|
2705
|
-
luvio.storeIngest(key, ingest$
|
|
2571
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
2706
2572
|
const snapshot = luvio.storeLookup({
|
|
2707
2573
|
recordId: key,
|
|
2708
|
-
node: select$
|
|
2574
|
+
node: select$f(),
|
|
2709
2575
|
variables: {},
|
|
2710
2576
|
});
|
|
2711
2577
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2716,7 +2582,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
2716
2582
|
deepFreeze(snapshot.data);
|
|
2717
2583
|
return snapshot;
|
|
2718
2584
|
}
|
|
2719
|
-
function createResourceRequest$
|
|
2585
|
+
function createResourceRequest$7(config) {
|
|
2720
2586
|
const headers = {};
|
|
2721
2587
|
return {
|
|
2722
2588
|
baseUri: '/services/data/v60.0',
|
|
@@ -2730,45 +2596,84 @@ function createResourceRequest$6(config) {
|
|
|
2730
2596
|
};
|
|
2731
2597
|
}
|
|
2732
2598
|
|
|
2733
|
-
const adapterName$
|
|
2599
|
+
const adapterName$7 = 'upsertActionableListFilterTemplate';
|
|
2734
2600
|
const upsertActionableListFilterTemplate_ConfigPropertyMetadata = [
|
|
2735
|
-
generateParamConfigMetadata('
|
|
2601
|
+
generateParamConfigMetadata('id', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2602
|
+
generateParamConfigMetadata('templateName', true, 2 /* Body */, 0 /* String */),
|
|
2603
|
+
generateParamConfigMetadata('description', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2604
|
+
generateParamConfigMetadata('filterLogic', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2605
|
+
generateParamConfigMetadata('actionableListDefinitionId', true, 2 /* Body */, 0 /* String */),
|
|
2606
|
+
generateParamConfigMetadata('filterList', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2607
|
+
generateParamConfigMetadata('sharingType', true, 2 /* Body */, 0 /* String */),
|
|
2608
|
+
generateParamConfigMetadata('isTemplateDetailEdit', true, 2 /* Body */, 1 /* Boolean */),
|
|
2736
2609
|
];
|
|
2737
|
-
const upsertActionableListFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2738
|
-
const createResourceParams$
|
|
2739
|
-
function typeCheckConfig$
|
|
2610
|
+
const upsertActionableListFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, upsertActionableListFilterTemplate_ConfigPropertyMetadata);
|
|
2611
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(upsertActionableListFilterTemplate_ConfigPropertyMetadata);
|
|
2612
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
2740
2613
|
const config = {};
|
|
2741
|
-
|
|
2742
|
-
const
|
|
2743
|
-
if (
|
|
2744
|
-
config.
|
|
2614
|
+
typeCheckConfig$c(untrustedConfig, config, upsertActionableListFilterTemplate_ConfigPropertyMetadata);
|
|
2615
|
+
const untrustedConfig_id = untrustedConfig.id;
|
|
2616
|
+
if (typeof untrustedConfig_id === 'string') {
|
|
2617
|
+
config.id = untrustedConfig_id;
|
|
2618
|
+
}
|
|
2619
|
+
if (untrustedConfig_id === null) {
|
|
2620
|
+
config.id = untrustedConfig_id;
|
|
2621
|
+
}
|
|
2622
|
+
const untrustedConfig_description = untrustedConfig.description;
|
|
2623
|
+
if (typeof untrustedConfig_description === 'string') {
|
|
2624
|
+
config.description = untrustedConfig_description;
|
|
2625
|
+
}
|
|
2626
|
+
if (untrustedConfig_description === null) {
|
|
2627
|
+
config.description = untrustedConfig_description;
|
|
2628
|
+
}
|
|
2629
|
+
const untrustedConfig_filterLogic = untrustedConfig.filterLogic;
|
|
2630
|
+
if (typeof untrustedConfig_filterLogic === 'string') {
|
|
2631
|
+
config.filterLogic = untrustedConfig_filterLogic;
|
|
2632
|
+
}
|
|
2633
|
+
if (untrustedConfig_filterLogic === null) {
|
|
2634
|
+
config.filterLogic = untrustedConfig_filterLogic;
|
|
2635
|
+
}
|
|
2636
|
+
const untrustedConfig_filterList = untrustedConfig.filterList;
|
|
2637
|
+
if (ArrayIsArray$1(untrustedConfig_filterList)) {
|
|
2638
|
+
const untrustedConfig_filterList_array = [];
|
|
2639
|
+
for (let i = 0, arrayLength = untrustedConfig_filterList.length; i < arrayLength; i++) {
|
|
2640
|
+
const untrustedConfig_filterList_item = untrustedConfig_filterList[i];
|
|
2641
|
+
const referenceActionableListFilterInputRepresentationValidationError = validate$d(untrustedConfig_filterList_item);
|
|
2642
|
+
if (referenceActionableListFilterInputRepresentationValidationError === null) {
|
|
2643
|
+
untrustedConfig_filterList_array.push(untrustedConfig_filterList_item);
|
|
2644
|
+
}
|
|
2645
|
+
if (untrustedConfig_filterList_item === null) {
|
|
2646
|
+
untrustedConfig_filterList_array.push(untrustedConfig_filterList_item);
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
config.filterList = untrustedConfig_filterList_array;
|
|
2745
2650
|
}
|
|
2746
2651
|
return config;
|
|
2747
2652
|
}
|
|
2748
|
-
function validateAdapterConfig$
|
|
2653
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
2749
2654
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2750
2655
|
return null;
|
|
2751
2656
|
}
|
|
2752
2657
|
if (process.env.NODE_ENV !== 'production') {
|
|
2753
2658
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2754
2659
|
}
|
|
2755
|
-
const config = typeCheckConfig$
|
|
2660
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
2756
2661
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2757
2662
|
return null;
|
|
2758
2663
|
}
|
|
2759
2664
|
return config;
|
|
2760
2665
|
}
|
|
2761
|
-
function buildNetworkSnapshot$
|
|
2762
|
-
const resourceParams = createResourceParams$
|
|
2763
|
-
const request = createResourceRequest$
|
|
2666
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
2667
|
+
const resourceParams = createResourceParams$7(config);
|
|
2668
|
+
const request = createResourceRequest$7(resourceParams);
|
|
2764
2669
|
return luvio.dispatchResourceRequest(request, options)
|
|
2765
2670
|
.then((response) => {
|
|
2766
2671
|
return luvio.handleSuccessResponse(() => {
|
|
2767
|
-
const snapshot = ingestSuccess$
|
|
2672
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
2768
2673
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2769
2674
|
}, () => {
|
|
2770
2675
|
const cache = new StoreKeyMap();
|
|
2771
|
-
getResponseCacheKeys$
|
|
2676
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
2772
2677
|
return cache;
|
|
2773
2678
|
});
|
|
2774
2679
|
}, (response) => {
|
|
@@ -2778,33 +2683,33 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
2778
2683
|
}
|
|
2779
2684
|
const upsertActionableListFilterTemplateAdapterFactory = (luvio) => {
|
|
2780
2685
|
return function upsertActionableListFilterTemplate(untrustedConfig) {
|
|
2781
|
-
const config = validateAdapterConfig$
|
|
2686
|
+
const config = validateAdapterConfig$7(untrustedConfig, upsertActionableListFilterTemplate_ConfigPropertyNames);
|
|
2782
2687
|
// Invalid or incomplete config
|
|
2783
2688
|
if (config === null) {
|
|
2784
2689
|
throw new Error('Invalid config for "upsertActionableListFilterTemplate"');
|
|
2785
2690
|
}
|
|
2786
|
-
return buildNetworkSnapshot$
|
|
2691
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
2787
2692
|
};
|
|
2788
2693
|
};
|
|
2789
2694
|
|
|
2790
|
-
function select$
|
|
2791
|
-
return select$
|
|
2695
|
+
function select$e(luvio, params) {
|
|
2696
|
+
return select$j();
|
|
2792
2697
|
}
|
|
2793
|
-
function keyBuilder$
|
|
2794
|
-
return keyBuilder$
|
|
2698
|
+
function keyBuilder$a(luvio, params) {
|
|
2699
|
+
return keyBuilder$e(luvio, {
|
|
2795
2700
|
id: params.urlParams.actionableListDefinitionFilterId
|
|
2796
2701
|
});
|
|
2797
2702
|
}
|
|
2798
|
-
function getResponseCacheKeys$
|
|
2799
|
-
getTypeCacheKeys$
|
|
2703
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
2704
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
2800
2705
|
}
|
|
2801
|
-
function ingestSuccess$
|
|
2706
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
2802
2707
|
const { body } = response;
|
|
2803
|
-
const key = keyBuilder$
|
|
2804
|
-
luvio.storeIngest(key, ingest$
|
|
2708
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
2709
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
2805
2710
|
const snapshot = luvio.storeLookup({
|
|
2806
2711
|
recordId: key,
|
|
2807
|
-
node: select$
|
|
2712
|
+
node: select$e(),
|
|
2808
2713
|
variables: {},
|
|
2809
2714
|
}, snapshotRefresh);
|
|
2810
2715
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2815,19 +2720,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2815
2720
|
deepFreeze(snapshot.data);
|
|
2816
2721
|
return snapshot;
|
|
2817
2722
|
}
|
|
2818
|
-
function ingestError$
|
|
2819
|
-
const key = keyBuilder$
|
|
2723
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
2724
|
+
const key = keyBuilder$a(luvio, params);
|
|
2820
2725
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2821
2726
|
const storeMetadataParams = {
|
|
2822
|
-
ttl: TTL$
|
|
2727
|
+
ttl: TTL$7,
|
|
2823
2728
|
namespace: keyPrefix,
|
|
2824
|
-
version: VERSION$
|
|
2825
|
-
representationName: RepresentationType$
|
|
2729
|
+
version: VERSION$b,
|
|
2730
|
+
representationName: RepresentationType$7
|
|
2826
2731
|
};
|
|
2827
2732
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2828
2733
|
return errorSnapshot;
|
|
2829
2734
|
}
|
|
2830
|
-
function createResourceRequest$
|
|
2735
|
+
function createResourceRequest$6(config) {
|
|
2831
2736
|
const headers = {};
|
|
2832
2737
|
return {
|
|
2833
2738
|
baseUri: '/services/data/v60.0',
|
|
@@ -2841,110 +2746,110 @@ function createResourceRequest$5(config) {
|
|
|
2841
2746
|
};
|
|
2842
2747
|
}
|
|
2843
2748
|
|
|
2844
|
-
const adapterName$
|
|
2749
|
+
const adapterName$6 = 'getFilterTemplate';
|
|
2845
2750
|
const getFilterTemplate_ConfigPropertyMetadata = [
|
|
2846
2751
|
generateParamConfigMetadata('actionableListDefinitionFilterId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2847
2752
|
];
|
|
2848
|
-
const getFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2849
|
-
const createResourceParams$
|
|
2850
|
-
function keyBuilder$
|
|
2851
|
-
const resourceParams = createResourceParams$
|
|
2852
|
-
return keyBuilder$
|
|
2753
|
+
const getFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getFilterTemplate_ConfigPropertyMetadata);
|
|
2754
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getFilterTemplate_ConfigPropertyMetadata);
|
|
2755
|
+
function keyBuilder$9(luvio, config) {
|
|
2756
|
+
const resourceParams = createResourceParams$6(config);
|
|
2757
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
2853
2758
|
}
|
|
2854
|
-
function typeCheckConfig$
|
|
2759
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
2855
2760
|
const config = {};
|
|
2856
|
-
typeCheckConfig$
|
|
2761
|
+
typeCheckConfig$c(untrustedConfig, config, getFilterTemplate_ConfigPropertyMetadata);
|
|
2857
2762
|
return config;
|
|
2858
2763
|
}
|
|
2859
|
-
function validateAdapterConfig$
|
|
2764
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
2860
2765
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2861
2766
|
return null;
|
|
2862
2767
|
}
|
|
2863
2768
|
if (process.env.NODE_ENV !== 'production') {
|
|
2864
2769
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2865
2770
|
}
|
|
2866
|
-
const config = typeCheckConfig$
|
|
2771
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
2867
2772
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2868
2773
|
return null;
|
|
2869
2774
|
}
|
|
2870
2775
|
return config;
|
|
2871
2776
|
}
|
|
2872
|
-
function adapterFragment$
|
|
2873
|
-
createResourceParams$
|
|
2874
|
-
return select$
|
|
2777
|
+
function adapterFragment$3(luvio, config) {
|
|
2778
|
+
createResourceParams$6(config);
|
|
2779
|
+
return select$e();
|
|
2875
2780
|
}
|
|
2876
|
-
function onFetchResponseSuccess$
|
|
2877
|
-
const snapshot = ingestSuccess$
|
|
2781
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
2782
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
2878
2783
|
config,
|
|
2879
|
-
resolve: () => buildNetworkSnapshot$
|
|
2784
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2880
2785
|
});
|
|
2881
2786
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2882
2787
|
}
|
|
2883
|
-
function onFetchResponseError$
|
|
2884
|
-
const snapshot = ingestError$
|
|
2788
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
2789
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
2885
2790
|
config,
|
|
2886
|
-
resolve: () => buildNetworkSnapshot$
|
|
2791
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2887
2792
|
});
|
|
2888
2793
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2889
2794
|
}
|
|
2890
|
-
function buildNetworkSnapshot$
|
|
2891
|
-
const resourceParams = createResourceParams$
|
|
2892
|
-
const request = createResourceRequest$
|
|
2795
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
2796
|
+
const resourceParams = createResourceParams$6(config);
|
|
2797
|
+
const request = createResourceRequest$6(resourceParams);
|
|
2893
2798
|
return luvio.dispatchResourceRequest(request, options)
|
|
2894
2799
|
.then((response) => {
|
|
2895
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2800
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
2896
2801
|
const cache = new StoreKeyMap();
|
|
2897
|
-
getResponseCacheKeys$
|
|
2802
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
2898
2803
|
return cache;
|
|
2899
2804
|
});
|
|
2900
2805
|
}, (response) => {
|
|
2901
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2806
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
2902
2807
|
});
|
|
2903
2808
|
}
|
|
2904
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2905
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2809
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2810
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
2906
2811
|
}
|
|
2907
|
-
function buildCachedSnapshotCachePolicy$
|
|
2812
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2908
2813
|
const { luvio, config } = context;
|
|
2909
2814
|
const selector = {
|
|
2910
|
-
recordId: keyBuilder$
|
|
2911
|
-
node: adapterFragment$
|
|
2815
|
+
recordId: keyBuilder$9(luvio, config),
|
|
2816
|
+
node: adapterFragment$3(luvio, config),
|
|
2912
2817
|
variables: {},
|
|
2913
2818
|
};
|
|
2914
2819
|
const cacheSnapshot = storeLookup(selector, {
|
|
2915
2820
|
config,
|
|
2916
|
-
resolve: () => buildNetworkSnapshot$
|
|
2821
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2917
2822
|
});
|
|
2918
2823
|
return cacheSnapshot;
|
|
2919
2824
|
}
|
|
2920
2825
|
const getFilterTemplateAdapterFactory = (luvio) => function actionablelist__getFilterTemplate(untrustedConfig, requestContext) {
|
|
2921
|
-
const config = validateAdapterConfig$
|
|
2826
|
+
const config = validateAdapterConfig$6(untrustedConfig, getFilterTemplate_ConfigPropertyNames);
|
|
2922
2827
|
// Invalid or incomplete config
|
|
2923
2828
|
if (config === null) {
|
|
2924
2829
|
return null;
|
|
2925
2830
|
}
|
|
2926
2831
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2927
|
-
buildCachedSnapshotCachePolicy$
|
|
2832
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
2928
2833
|
};
|
|
2929
2834
|
|
|
2930
|
-
function keyBuilder$
|
|
2931
|
-
return keyBuilder$
|
|
2835
|
+
function keyBuilder$8(luvio, params) {
|
|
2836
|
+
return keyBuilder$e(luvio, {
|
|
2932
2837
|
id: params.urlParams.actionableListDefinitionFilterId
|
|
2933
2838
|
});
|
|
2934
2839
|
}
|
|
2935
|
-
function getResponseCacheKeys$
|
|
2936
|
-
const key = keyBuilder$
|
|
2840
|
+
function getResponseCacheKeys$5(cacheKeyMap, luvio, resourceParams) {
|
|
2841
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
2937
2842
|
cacheKeyMap.set(key, {
|
|
2938
2843
|
namespace: keyPrefix,
|
|
2939
|
-
representationName: RepresentationType$
|
|
2844
|
+
representationName: RepresentationType$7,
|
|
2940
2845
|
mergeable: false
|
|
2941
2846
|
});
|
|
2942
2847
|
}
|
|
2943
2848
|
function evictSuccess(luvio, resourceParams) {
|
|
2944
|
-
const key = keyBuilder$
|
|
2849
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
2945
2850
|
luvio.storeEvict(key);
|
|
2946
2851
|
}
|
|
2947
|
-
function createResourceRequest$
|
|
2852
|
+
function createResourceRequest$5(config) {
|
|
2948
2853
|
const headers = {};
|
|
2949
2854
|
return {
|
|
2950
2855
|
baseUri: '/services/data/v60.0',
|
|
@@ -2958,33 +2863,33 @@ function createResourceRequest$4(config) {
|
|
|
2958
2863
|
};
|
|
2959
2864
|
}
|
|
2960
2865
|
|
|
2961
|
-
const adapterName$
|
|
2866
|
+
const adapterName$5 = 'deleteFilterTemplate';
|
|
2962
2867
|
const deleteFilterTemplate_ConfigPropertyMetadata = [
|
|
2963
2868
|
generateParamConfigMetadata('actionableListDefinitionFilterId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2964
2869
|
];
|
|
2965
|
-
const deleteFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2966
|
-
const createResourceParams$
|
|
2967
|
-
function typeCheckConfig$
|
|
2870
|
+
const deleteFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteFilterTemplate_ConfigPropertyMetadata);
|
|
2871
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(deleteFilterTemplate_ConfigPropertyMetadata);
|
|
2872
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
2968
2873
|
const config = {};
|
|
2969
|
-
typeCheckConfig$
|
|
2874
|
+
typeCheckConfig$c(untrustedConfig, config, deleteFilterTemplate_ConfigPropertyMetadata);
|
|
2970
2875
|
return config;
|
|
2971
2876
|
}
|
|
2972
|
-
function validateAdapterConfig$
|
|
2877
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
2973
2878
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2974
2879
|
return null;
|
|
2975
2880
|
}
|
|
2976
2881
|
if (process.env.NODE_ENV !== 'production') {
|
|
2977
2882
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2978
2883
|
}
|
|
2979
|
-
const config = typeCheckConfig$
|
|
2884
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
2980
2885
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2981
2886
|
return null;
|
|
2982
2887
|
}
|
|
2983
2888
|
return config;
|
|
2984
2889
|
}
|
|
2985
|
-
function buildNetworkSnapshot$
|
|
2986
|
-
const resourceParams = createResourceParams$
|
|
2987
|
-
const request = createResourceRequest$
|
|
2890
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
2891
|
+
const resourceParams = createResourceParams$5(config);
|
|
2892
|
+
const request = createResourceRequest$5(resourceParams);
|
|
2988
2893
|
return luvio.dispatchResourceRequest(request, options)
|
|
2989
2894
|
.then(() => {
|
|
2990
2895
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -2992,7 +2897,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
2992
2897
|
return luvio.storeBroadcast();
|
|
2993
2898
|
}, () => {
|
|
2994
2899
|
const cache = new StoreKeyMap();
|
|
2995
|
-
getResponseCacheKeys$
|
|
2900
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams);
|
|
2996
2901
|
return cache;
|
|
2997
2902
|
});
|
|
2998
2903
|
}, (response) => {
|
|
@@ -3002,16 +2907,16 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
3002
2907
|
}
|
|
3003
2908
|
const deleteFilterTemplateAdapterFactory = (luvio) => {
|
|
3004
2909
|
return function actionablelistdeleteFilterTemplate(untrustedConfig) {
|
|
3005
|
-
const config = validateAdapterConfig$
|
|
2910
|
+
const config = validateAdapterConfig$5(untrustedConfig, deleteFilterTemplate_ConfigPropertyNames);
|
|
3006
2911
|
// Invalid or incomplete config
|
|
3007
2912
|
if (config === null) {
|
|
3008
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
2913
|
+
throw new Error(`Invalid config for "${adapterName$5}"`);
|
|
3009
2914
|
}
|
|
3010
|
-
return buildNetworkSnapshot$
|
|
2915
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
3011
2916
|
};
|
|
3012
2917
|
};
|
|
3013
2918
|
|
|
3014
|
-
function validate$
|
|
2919
|
+
function validate$b(obj, path = 'ActionableListRefreshInputRepresentation') {
|
|
3015
2920
|
const v_error = (() => {
|
|
3016
2921
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3017
2922
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3030,8 +2935,8 @@ function validate$a(obj, path = 'ActionableListRefreshInputRepresentation') {
|
|
|
3030
2935
|
return v_error === undefined ? null : v_error;
|
|
3031
2936
|
}
|
|
3032
2937
|
|
|
3033
|
-
const VERSION$
|
|
3034
|
-
function validate$
|
|
2938
|
+
const VERSION$8 = "eb64878570998dc7aa7bb9f8a21e65fb";
|
|
2939
|
+
function validate$a(obj, path = 'ActionableListRefreshFilterListOutputRepresentation') {
|
|
3035
2940
|
const v_error = (() => {
|
|
3036
2941
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3037
2942
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3101,11 +3006,11 @@ function validate$9(obj, path = 'ActionableListRefreshFilterListOutputRepresenta
|
|
|
3101
3006
|
})();
|
|
3102
3007
|
return v_error === undefined ? null : v_error;
|
|
3103
3008
|
}
|
|
3104
|
-
const select$
|
|
3105
|
-
const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$
|
|
3009
|
+
const select$d = function ActionableListRefreshFilterListOutputRepresentationSelect() {
|
|
3010
|
+
const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$k();
|
|
3106
3011
|
return {
|
|
3107
3012
|
kind: 'Fragment',
|
|
3108
|
-
version: VERSION$
|
|
3013
|
+
version: VERSION$8,
|
|
3109
3014
|
private: [],
|
|
3110
3015
|
selections: [
|
|
3111
3016
|
{
|
|
@@ -3122,14 +3027,14 @@ const select$b = function ActionableListRefreshFilterListOutputRepresentationSel
|
|
|
3122
3027
|
]
|
|
3123
3028
|
};
|
|
3124
3029
|
};
|
|
3125
|
-
function equals$
|
|
3030
|
+
function equals$8(existing, incoming) {
|
|
3126
3031
|
const existing_conditions = existing.conditions;
|
|
3127
3032
|
const incoming_conditions = incoming.conditions;
|
|
3128
3033
|
const equals_conditions_items = equalsArray(existing_conditions, incoming_conditions, (existing_conditions_item, incoming_conditions_item) => {
|
|
3129
3034
|
if (!(existing_conditions_item === incoming_conditions_item
|
|
3130
3035
|
|| (existing_conditions_item != null &&
|
|
3131
3036
|
incoming_conditions_item != null &&
|
|
3132
|
-
equals$
|
|
3037
|
+
equals$c(existing_conditions_item, incoming_conditions_item)))) {
|
|
3133
3038
|
return false;
|
|
3134
3039
|
}
|
|
3135
3040
|
});
|
|
@@ -3144,9 +3049,9 @@ function equals$7(existing, incoming) {
|
|
|
3144
3049
|
return true;
|
|
3145
3050
|
}
|
|
3146
3051
|
|
|
3147
|
-
const TTL$
|
|
3148
|
-
const VERSION$
|
|
3149
|
-
function validate$
|
|
3052
|
+
const TTL$4 = 1000;
|
|
3053
|
+
const VERSION$7 = "f0e0d61c9d82fd013fe16d8a9bf9f198";
|
|
3054
|
+
function validate$9(obj, path = 'ActionableListRefreshOutputRepresentation') {
|
|
3150
3055
|
const v_error = (() => {
|
|
3151
3056
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3152
3057
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3233,7 +3138,7 @@ function validate$8(obj, path = 'ActionableListRefreshOutputRepresentation') {
|
|
|
3233
3138
|
const path_filters = path + '.filters';
|
|
3234
3139
|
let obj_filters_union0 = null;
|
|
3235
3140
|
const obj_filters_union0_error = (() => {
|
|
3236
|
-
const referencepath_filtersValidationError = validate$
|
|
3141
|
+
const referencepath_filtersValidationError = validate$a(obj_filters, path_filters);
|
|
3237
3142
|
if (referencepath_filtersValidationError !== null) {
|
|
3238
3143
|
let message = 'Object doesn\'t match ActionableListRefreshFilterListOutputRepresentation (at "' + path_filters + '")\n';
|
|
3239
3144
|
message += referencepath_filtersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3339,24 +3244,24 @@ function validate$8(obj, path = 'ActionableListRefreshOutputRepresentation') {
|
|
|
3339
3244
|
})();
|
|
3340
3245
|
return v_error === undefined ? null : v_error;
|
|
3341
3246
|
}
|
|
3342
|
-
const RepresentationType$
|
|
3343
|
-
function keyBuilder$
|
|
3344
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3247
|
+
const RepresentationType$4 = 'ActionableListRefreshOutputRepresentation';
|
|
3248
|
+
function keyBuilder$7(luvio, config) {
|
|
3249
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + (config.id === null ? '' : config.id);
|
|
3345
3250
|
}
|
|
3346
3251
|
function keyBuilderFromType$1(luvio, object) {
|
|
3347
3252
|
const keyParams = {
|
|
3348
3253
|
id: object.id
|
|
3349
3254
|
};
|
|
3350
|
-
return keyBuilder$
|
|
3255
|
+
return keyBuilder$7(luvio, keyParams);
|
|
3351
3256
|
}
|
|
3352
|
-
function normalize$
|
|
3257
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
3353
3258
|
return input;
|
|
3354
3259
|
}
|
|
3355
|
-
const select$
|
|
3356
|
-
const { selections: ActionableListRefreshFilterListOutputRepresentation__selections, opaque: ActionableListRefreshFilterListOutputRepresentation__opaque, } = select$
|
|
3260
|
+
const select$c = function ActionableListRefreshOutputRepresentationSelect() {
|
|
3261
|
+
const { selections: ActionableListRefreshFilterListOutputRepresentation__selections, opaque: ActionableListRefreshFilterListOutputRepresentation__opaque, } = select$d();
|
|
3357
3262
|
return {
|
|
3358
3263
|
kind: 'Fragment',
|
|
3359
|
-
version: VERSION$
|
|
3264
|
+
version: VERSION$7,
|
|
3360
3265
|
private: [],
|
|
3361
3266
|
selections: [
|
|
3362
3267
|
{
|
|
@@ -3392,7 +3297,7 @@ const select$a = function ActionableListRefreshOutputRepresentationSelect() {
|
|
|
3392
3297
|
]
|
|
3393
3298
|
};
|
|
3394
3299
|
};
|
|
3395
|
-
function equals$
|
|
3300
|
+
function equals$7(existing, incoming) {
|
|
3396
3301
|
const existing_candidateMemberCount = existing.candidateMemberCount;
|
|
3397
3302
|
const incoming_candidateMemberCount = incoming.candidateMemberCount;
|
|
3398
3303
|
if (!(existing_candidateMemberCount === incoming_candidateMemberCount)) {
|
|
@@ -3413,7 +3318,7 @@ function equals$6(existing, incoming) {
|
|
|
3413
3318
|
if (!(existing_filters === incoming_filters
|
|
3414
3319
|
|| (existing_filters != null &&
|
|
3415
3320
|
incoming_filters != null &&
|
|
3416
|
-
equals$
|
|
3321
|
+
equals$8(existing_filters, incoming_filters)))) {
|
|
3417
3322
|
return false;
|
|
3418
3323
|
}
|
|
3419
3324
|
const existing_id = existing.id;
|
|
@@ -3433,41 +3338,41 @@ function equals$6(existing, incoming) {
|
|
|
3433
3338
|
}
|
|
3434
3339
|
return true;
|
|
3435
3340
|
}
|
|
3436
|
-
const ingest$
|
|
3341
|
+
const ingest$4 = function ActionableListRefreshOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3437
3342
|
if (process.env.NODE_ENV !== 'production') {
|
|
3438
|
-
const validateError = validate$
|
|
3343
|
+
const validateError = validate$9(input);
|
|
3439
3344
|
if (validateError !== null) {
|
|
3440
3345
|
throw validateError;
|
|
3441
3346
|
}
|
|
3442
3347
|
}
|
|
3443
3348
|
const key = keyBuilderFromType$1(luvio, input);
|
|
3444
|
-
const ttlToUse = TTL$
|
|
3445
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3349
|
+
const ttlToUse = TTL$4;
|
|
3350
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "actionablelist", VERSION$7, RepresentationType$4, equals$7);
|
|
3446
3351
|
return createLink(key);
|
|
3447
3352
|
};
|
|
3448
|
-
function getTypeCacheKeys$
|
|
3353
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
3449
3354
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3450
3355
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
3451
3356
|
rootKeySet.set(rootKey, {
|
|
3452
3357
|
namespace: keyPrefix,
|
|
3453
|
-
representationName: RepresentationType$
|
|
3358
|
+
representationName: RepresentationType$4,
|
|
3454
3359
|
mergeable: false
|
|
3455
3360
|
});
|
|
3456
3361
|
}
|
|
3457
3362
|
|
|
3458
|
-
function select$
|
|
3459
|
-
return select$
|
|
3363
|
+
function select$b(luvio, params) {
|
|
3364
|
+
return select$c();
|
|
3460
3365
|
}
|
|
3461
|
-
function getResponseCacheKeys$
|
|
3462
|
-
getTypeCacheKeys$
|
|
3366
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
3367
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
3463
3368
|
}
|
|
3464
|
-
function ingestSuccess$
|
|
3369
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
3465
3370
|
const { body } = response;
|
|
3466
3371
|
const key = keyBuilderFromType$1(luvio, body);
|
|
3467
|
-
luvio.storeIngest(key, ingest$
|
|
3372
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
3468
3373
|
const snapshot = luvio.storeLookup({
|
|
3469
3374
|
recordId: key,
|
|
3470
|
-
node: select$
|
|
3375
|
+
node: select$b(),
|
|
3471
3376
|
variables: {},
|
|
3472
3377
|
});
|
|
3473
3378
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3478,7 +3383,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
3478
3383
|
deepFreeze(snapshot.data);
|
|
3479
3384
|
return snapshot;
|
|
3480
3385
|
}
|
|
3481
|
-
function createResourceRequest$
|
|
3386
|
+
function createResourceRequest$4(config) {
|
|
3482
3387
|
const headers = {};
|
|
3483
3388
|
return {
|
|
3484
3389
|
baseUri: '/services/data/v60.0',
|
|
@@ -3492,45 +3397,45 @@ function createResourceRequest$3(config) {
|
|
|
3492
3397
|
};
|
|
3493
3398
|
}
|
|
3494
3399
|
|
|
3495
|
-
const adapterName$
|
|
3400
|
+
const adapterName$4 = 'upsertActionableListRefreshFilter';
|
|
3496
3401
|
const upsertActionableListRefreshFilter_ConfigPropertyMetadata = [
|
|
3497
3402
|
generateParamConfigMetadata('actionableListRefreshInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3498
3403
|
];
|
|
3499
|
-
const upsertActionableListRefreshFilter_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3500
|
-
const createResourceParams$
|
|
3501
|
-
function typeCheckConfig$
|
|
3404
|
+
const upsertActionableListRefreshFilter_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, upsertActionableListRefreshFilter_ConfigPropertyMetadata);
|
|
3405
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(upsertActionableListRefreshFilter_ConfigPropertyMetadata);
|
|
3406
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
3502
3407
|
const config = {};
|
|
3503
3408
|
const untrustedConfig_actionableListRefreshInput = untrustedConfig.actionableListRefreshInput;
|
|
3504
|
-
const referenceActionableListRefreshInputRepresentationValidationError = validate$
|
|
3409
|
+
const referenceActionableListRefreshInputRepresentationValidationError = validate$b(untrustedConfig_actionableListRefreshInput);
|
|
3505
3410
|
if (referenceActionableListRefreshInputRepresentationValidationError === null) {
|
|
3506
3411
|
config.actionableListRefreshInput = untrustedConfig_actionableListRefreshInput;
|
|
3507
3412
|
}
|
|
3508
3413
|
return config;
|
|
3509
3414
|
}
|
|
3510
|
-
function validateAdapterConfig$
|
|
3415
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
3511
3416
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3512
3417
|
return null;
|
|
3513
3418
|
}
|
|
3514
3419
|
if (process.env.NODE_ENV !== 'production') {
|
|
3515
3420
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3516
3421
|
}
|
|
3517
|
-
const config = typeCheckConfig$
|
|
3422
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
3518
3423
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3519
3424
|
return null;
|
|
3520
3425
|
}
|
|
3521
3426
|
return config;
|
|
3522
3427
|
}
|
|
3523
|
-
function buildNetworkSnapshot$
|
|
3524
|
-
const resourceParams = createResourceParams$
|
|
3525
|
-
const request = createResourceRequest$
|
|
3428
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
3429
|
+
const resourceParams = createResourceParams$4(config);
|
|
3430
|
+
const request = createResourceRequest$4(resourceParams);
|
|
3526
3431
|
return luvio.dispatchResourceRequest(request, options)
|
|
3527
3432
|
.then((response) => {
|
|
3528
3433
|
return luvio.handleSuccessResponse(() => {
|
|
3529
|
-
const snapshot = ingestSuccess$
|
|
3434
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
3530
3435
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3531
3436
|
}, () => {
|
|
3532
3437
|
const cache = new StoreKeyMap();
|
|
3533
|
-
getResponseCacheKeys$
|
|
3438
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
3534
3439
|
return cache;
|
|
3535
3440
|
});
|
|
3536
3441
|
}, (response) => {
|
|
@@ -3540,18 +3445,18 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
3540
3445
|
}
|
|
3541
3446
|
const upsertActionableListRefreshFilterAdapterFactory = (luvio) => {
|
|
3542
3447
|
return function upsertActionableListRefreshFilter(untrustedConfig) {
|
|
3543
|
-
const config = validateAdapterConfig$
|
|
3448
|
+
const config = validateAdapterConfig$4(untrustedConfig, upsertActionableListRefreshFilter_ConfigPropertyNames);
|
|
3544
3449
|
// Invalid or incomplete config
|
|
3545
3450
|
if (config === null) {
|
|
3546
3451
|
throw new Error('Invalid config for "upsertActionableListRefreshFilter"');
|
|
3547
3452
|
}
|
|
3548
|
-
return buildNetworkSnapshot$
|
|
3453
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
3549
3454
|
};
|
|
3550
3455
|
};
|
|
3551
3456
|
|
|
3552
|
-
const TTL$
|
|
3553
|
-
const VERSION$
|
|
3554
|
-
function validate$
|
|
3457
|
+
const TTL$3 = 100;
|
|
3458
|
+
const VERSION$6 = "6ddedf71126866b776255aa167159b36";
|
|
3459
|
+
function validate$8(obj, path = 'ActionableListMembersOutputRepresentation') {
|
|
3555
3460
|
const v_error = (() => {
|
|
3556
3461
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3557
3462
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3571,14 +3476,14 @@ function validate$7(obj, path = 'ActionableListMembersOutputRepresentation') {
|
|
|
3571
3476
|
})();
|
|
3572
3477
|
return v_error === undefined ? null : v_error;
|
|
3573
3478
|
}
|
|
3574
|
-
const RepresentationType$
|
|
3575
|
-
function normalize$
|
|
3479
|
+
const RepresentationType$3 = 'ActionableListMembersOutputRepresentation';
|
|
3480
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
3576
3481
|
return input;
|
|
3577
3482
|
}
|
|
3578
|
-
const select$
|
|
3483
|
+
const select$a = function ActionableListMembersOutputRepresentationSelect() {
|
|
3579
3484
|
return {
|
|
3580
3485
|
kind: 'Fragment',
|
|
3581
|
-
version: VERSION$
|
|
3486
|
+
version: VERSION$6,
|
|
3582
3487
|
private: [],
|
|
3583
3488
|
selections: [
|
|
3584
3489
|
{
|
|
@@ -3589,7 +3494,7 @@ const select$8 = function ActionableListMembersOutputRepresentationSelect() {
|
|
|
3589
3494
|
]
|
|
3590
3495
|
};
|
|
3591
3496
|
};
|
|
3592
|
-
function equals$
|
|
3497
|
+
function equals$6(existing, incoming) {
|
|
3593
3498
|
const existing_memberIds = existing.memberIds;
|
|
3594
3499
|
const incoming_memberIds = incoming.memberIds;
|
|
3595
3500
|
const equals_memberIds_items = equalsArray(existing_memberIds, incoming_memberIds, (existing_memberIds_item, incoming_memberIds_item) => {
|
|
@@ -3602,44 +3507,44 @@ function equals$5(existing, incoming) {
|
|
|
3602
3507
|
}
|
|
3603
3508
|
return true;
|
|
3604
3509
|
}
|
|
3605
|
-
const ingest$
|
|
3510
|
+
const ingest$3 = function ActionableListMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3606
3511
|
if (process.env.NODE_ENV !== 'production') {
|
|
3607
|
-
const validateError = validate$
|
|
3512
|
+
const validateError = validate$8(input);
|
|
3608
3513
|
if (validateError !== null) {
|
|
3609
3514
|
throw validateError;
|
|
3610
3515
|
}
|
|
3611
3516
|
}
|
|
3612
3517
|
const key = path.fullPath;
|
|
3613
|
-
const ttlToUse = TTL$
|
|
3614
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3518
|
+
const ttlToUse = TTL$3;
|
|
3519
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "actionablelist", VERSION$6, RepresentationType$3, equals$6);
|
|
3615
3520
|
return createLink(key);
|
|
3616
3521
|
};
|
|
3617
|
-
function getTypeCacheKeys$
|
|
3522
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
3618
3523
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3619
3524
|
const rootKey = fullPathFactory();
|
|
3620
3525
|
rootKeySet.set(rootKey, {
|
|
3621
3526
|
namespace: keyPrefix,
|
|
3622
|
-
representationName: RepresentationType$
|
|
3527
|
+
representationName: RepresentationType$3,
|
|
3623
3528
|
mergeable: false
|
|
3624
3529
|
});
|
|
3625
3530
|
}
|
|
3626
3531
|
|
|
3627
|
-
function select$
|
|
3628
|
-
return select$
|
|
3532
|
+
function select$9(luvio, params) {
|
|
3533
|
+
return select$a();
|
|
3629
3534
|
}
|
|
3630
|
-
function keyBuilder$
|
|
3535
|
+
function keyBuilder$6(luvio, params) {
|
|
3631
3536
|
return keyPrefix + '::ActionableListMembersOutputRepresentation:(' + 'id:' + params.urlParams.id + ')';
|
|
3632
3537
|
}
|
|
3633
|
-
function getResponseCacheKeys$
|
|
3634
|
-
getTypeCacheKeys$
|
|
3538
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
3539
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
3635
3540
|
}
|
|
3636
|
-
function ingestSuccess$
|
|
3541
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
3637
3542
|
const { body } = response;
|
|
3638
|
-
const key = keyBuilder$
|
|
3639
|
-
luvio.storeIngest(key, ingest$
|
|
3543
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
3544
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
3640
3545
|
const snapshot = luvio.storeLookup({
|
|
3641
3546
|
recordId: key,
|
|
3642
|
-
node: select$
|
|
3547
|
+
node: select$9(),
|
|
3643
3548
|
variables: {},
|
|
3644
3549
|
}, snapshotRefresh);
|
|
3645
3550
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3650,19 +3555,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3650
3555
|
deepFreeze(snapshot.data);
|
|
3651
3556
|
return snapshot;
|
|
3652
3557
|
}
|
|
3653
|
-
function ingestError$
|
|
3654
|
-
const key = keyBuilder$
|
|
3558
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
3559
|
+
const key = keyBuilder$6(luvio, params);
|
|
3655
3560
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3656
3561
|
const storeMetadataParams = {
|
|
3657
|
-
ttl: TTL$
|
|
3562
|
+
ttl: TTL$3,
|
|
3658
3563
|
namespace: keyPrefix,
|
|
3659
|
-
version: VERSION$
|
|
3660
|
-
representationName: RepresentationType$
|
|
3564
|
+
version: VERSION$6,
|
|
3565
|
+
representationName: RepresentationType$3
|
|
3661
3566
|
};
|
|
3662
3567
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3663
3568
|
return errorSnapshot;
|
|
3664
3569
|
}
|
|
3665
|
-
function createResourceRequest$
|
|
3570
|
+
function createResourceRequest$3(config) {
|
|
3666
3571
|
const headers = {};
|
|
3667
3572
|
return {
|
|
3668
3573
|
baseUri: '/services/data/v60.0',
|
|
@@ -3676,93 +3581,93 @@ function createResourceRequest$2(config) {
|
|
|
3676
3581
|
};
|
|
3677
3582
|
}
|
|
3678
3583
|
|
|
3679
|
-
const adapterName$
|
|
3584
|
+
const adapterName$3 = 'getActionableListMembers';
|
|
3680
3585
|
const getActionableListMembers_ConfigPropertyMetadata = [
|
|
3681
3586
|
generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3682
3587
|
];
|
|
3683
|
-
const getActionableListMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3684
|
-
const createResourceParams$
|
|
3685
|
-
function keyBuilder$
|
|
3686
|
-
const resourceParams = createResourceParams$
|
|
3687
|
-
return keyBuilder$
|
|
3588
|
+
const getActionableListMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getActionableListMembers_ConfigPropertyMetadata);
|
|
3589
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getActionableListMembers_ConfigPropertyMetadata);
|
|
3590
|
+
function keyBuilder$5(luvio, config) {
|
|
3591
|
+
const resourceParams = createResourceParams$3(config);
|
|
3592
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
3688
3593
|
}
|
|
3689
|
-
function typeCheckConfig$
|
|
3594
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
3690
3595
|
const config = {};
|
|
3691
|
-
typeCheckConfig$
|
|
3596
|
+
typeCheckConfig$c(untrustedConfig, config, getActionableListMembers_ConfigPropertyMetadata);
|
|
3692
3597
|
return config;
|
|
3693
3598
|
}
|
|
3694
|
-
function validateAdapterConfig$
|
|
3599
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
3695
3600
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3696
3601
|
return null;
|
|
3697
3602
|
}
|
|
3698
3603
|
if (process.env.NODE_ENV !== 'production') {
|
|
3699
3604
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3700
3605
|
}
|
|
3701
|
-
const config = typeCheckConfig$
|
|
3606
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
3702
3607
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3703
3608
|
return null;
|
|
3704
3609
|
}
|
|
3705
3610
|
return config;
|
|
3706
3611
|
}
|
|
3707
|
-
function adapterFragment$
|
|
3708
|
-
createResourceParams$
|
|
3709
|
-
return select$
|
|
3612
|
+
function adapterFragment$2(luvio, config) {
|
|
3613
|
+
createResourceParams$3(config);
|
|
3614
|
+
return select$9();
|
|
3710
3615
|
}
|
|
3711
|
-
function onFetchResponseSuccess$
|
|
3712
|
-
const snapshot = ingestSuccess$
|
|
3616
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
3617
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
3713
3618
|
config,
|
|
3714
|
-
resolve: () => buildNetworkSnapshot$
|
|
3619
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
3715
3620
|
});
|
|
3716
3621
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3717
3622
|
}
|
|
3718
|
-
function onFetchResponseError$
|
|
3719
|
-
const snapshot = ingestError$
|
|
3623
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
3624
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
3720
3625
|
config,
|
|
3721
|
-
resolve: () => buildNetworkSnapshot$
|
|
3626
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
3722
3627
|
});
|
|
3723
3628
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3724
3629
|
}
|
|
3725
|
-
function buildNetworkSnapshot$
|
|
3726
|
-
const resourceParams = createResourceParams$
|
|
3727
|
-
const request = createResourceRequest$
|
|
3630
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
3631
|
+
const resourceParams = createResourceParams$3(config);
|
|
3632
|
+
const request = createResourceRequest$3(resourceParams);
|
|
3728
3633
|
return luvio.dispatchResourceRequest(request, options)
|
|
3729
3634
|
.then((response) => {
|
|
3730
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3635
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
3731
3636
|
const cache = new StoreKeyMap();
|
|
3732
|
-
getResponseCacheKeys$
|
|
3637
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
3733
3638
|
return cache;
|
|
3734
3639
|
});
|
|
3735
3640
|
}, (response) => {
|
|
3736
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3641
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
3737
3642
|
});
|
|
3738
3643
|
}
|
|
3739
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3740
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3644
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
3645
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
3741
3646
|
}
|
|
3742
|
-
function buildCachedSnapshotCachePolicy$
|
|
3647
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
3743
3648
|
const { luvio, config } = context;
|
|
3744
3649
|
const selector = {
|
|
3745
|
-
recordId: keyBuilder$
|
|
3746
|
-
node: adapterFragment$
|
|
3650
|
+
recordId: keyBuilder$5(luvio, config),
|
|
3651
|
+
node: adapterFragment$2(luvio, config),
|
|
3747
3652
|
variables: {},
|
|
3748
3653
|
};
|
|
3749
3654
|
const cacheSnapshot = storeLookup(selector, {
|
|
3750
3655
|
config,
|
|
3751
|
-
resolve: () => buildNetworkSnapshot$
|
|
3656
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
3752
3657
|
});
|
|
3753
3658
|
return cacheSnapshot;
|
|
3754
3659
|
}
|
|
3755
3660
|
const getActionableListMembersAdapterFactory = (luvio) => function actionablelist__getActionableListMembers(untrustedConfig, requestContext) {
|
|
3756
|
-
const config = validateAdapterConfig$
|
|
3661
|
+
const config = validateAdapterConfig$3(untrustedConfig, getActionableListMembers_ConfigPropertyNames);
|
|
3757
3662
|
// Invalid or incomplete config
|
|
3758
3663
|
if (config === null) {
|
|
3759
3664
|
return null;
|
|
3760
3665
|
}
|
|
3761
3666
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3762
|
-
buildCachedSnapshotCachePolicy$
|
|
3667
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
3763
3668
|
};
|
|
3764
3669
|
|
|
3765
|
-
function validate$
|
|
3670
|
+
function validate$7(obj, path = 'ActionableListUpsertInputRepresentation') {
|
|
3766
3671
|
const v_error = (() => {
|
|
3767
3672
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3768
3673
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3988,9 +3893,9 @@ function validate$6(obj, path = 'ActionableListUpsertInputRepresentation') {
|
|
|
3988
3893
|
return v_error === undefined ? null : v_error;
|
|
3989
3894
|
}
|
|
3990
3895
|
|
|
3991
|
-
const TTL$
|
|
3992
|
-
const VERSION$
|
|
3993
|
-
function validate$
|
|
3896
|
+
const TTL$2 = 100;
|
|
3897
|
+
const VERSION$5 = "e644bfad74e67f4d67a107b89ef51c01";
|
|
3898
|
+
function validate$6(obj, path = 'ActionableListUpsertOutputRepresentation') {
|
|
3994
3899
|
const v_error = (() => {
|
|
3995
3900
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3996
3901
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4076,23 +3981,23 @@ function validate$5(obj, path = 'ActionableListUpsertOutputRepresentation') {
|
|
|
4076
3981
|
})();
|
|
4077
3982
|
return v_error === undefined ? null : v_error;
|
|
4078
3983
|
}
|
|
4079
|
-
const RepresentationType$
|
|
4080
|
-
function keyBuilder$
|
|
4081
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3984
|
+
const RepresentationType$2 = 'ActionableListUpsertOutputRepresentation';
|
|
3985
|
+
function keyBuilder$4(luvio, config) {
|
|
3986
|
+
return keyPrefix + '::' + RepresentationType$2 + ':' + (config.id === null ? '' : config.id);
|
|
4082
3987
|
}
|
|
4083
3988
|
function keyBuilderFromType(luvio, object) {
|
|
4084
3989
|
const keyParams = {
|
|
4085
3990
|
id: object.id
|
|
4086
3991
|
};
|
|
4087
|
-
return keyBuilder$
|
|
3992
|
+
return keyBuilder$4(luvio, keyParams);
|
|
4088
3993
|
}
|
|
4089
|
-
function normalize$
|
|
3994
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
4090
3995
|
return input;
|
|
4091
3996
|
}
|
|
4092
|
-
const select$
|
|
3997
|
+
const select$8 = function ActionableListUpsertOutputRepresentationSelect() {
|
|
4093
3998
|
return {
|
|
4094
3999
|
kind: 'Fragment',
|
|
4095
|
-
version: VERSION$
|
|
4000
|
+
version: VERSION$5,
|
|
4096
4001
|
private: [],
|
|
4097
4002
|
selections: [
|
|
4098
4003
|
{
|
|
@@ -4110,7 +4015,7 @@ const select$6 = function ActionableListUpsertOutputRepresentationSelect() {
|
|
|
4110
4015
|
]
|
|
4111
4016
|
};
|
|
4112
4017
|
};
|
|
4113
|
-
function equals$
|
|
4018
|
+
function equals$5(existing, incoming) {
|
|
4114
4019
|
const existing_errorMessage = existing.errorMessage;
|
|
4115
4020
|
const incoming_errorMessage = incoming.errorMessage;
|
|
4116
4021
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -4128,41 +4033,41 @@ function equals$4(existing, incoming) {
|
|
|
4128
4033
|
}
|
|
4129
4034
|
return true;
|
|
4130
4035
|
}
|
|
4131
|
-
const ingest$
|
|
4036
|
+
const ingest$2 = function ActionableListUpsertOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4132
4037
|
if (process.env.NODE_ENV !== 'production') {
|
|
4133
|
-
const validateError = validate$
|
|
4038
|
+
const validateError = validate$6(input);
|
|
4134
4039
|
if (validateError !== null) {
|
|
4135
4040
|
throw validateError;
|
|
4136
4041
|
}
|
|
4137
4042
|
}
|
|
4138
4043
|
const key = keyBuilderFromType(luvio, input);
|
|
4139
|
-
const ttlToUse = TTL$
|
|
4140
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4044
|
+
const ttlToUse = TTL$2;
|
|
4045
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "actionablelist", VERSION$5, RepresentationType$2, equals$5);
|
|
4141
4046
|
return createLink(key);
|
|
4142
4047
|
};
|
|
4143
|
-
function getTypeCacheKeys$
|
|
4048
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
4144
4049
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4145
4050
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
4146
4051
|
rootKeySet.set(rootKey, {
|
|
4147
4052
|
namespace: keyPrefix,
|
|
4148
|
-
representationName: RepresentationType$
|
|
4053
|
+
representationName: RepresentationType$2,
|
|
4149
4054
|
mergeable: false
|
|
4150
4055
|
});
|
|
4151
4056
|
}
|
|
4152
4057
|
|
|
4153
|
-
function select$
|
|
4154
|
-
return select$
|
|
4058
|
+
function select$7(luvio, params) {
|
|
4059
|
+
return select$8();
|
|
4155
4060
|
}
|
|
4156
|
-
function getResponseCacheKeys$
|
|
4157
|
-
getTypeCacheKeys$
|
|
4061
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
4062
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
4158
4063
|
}
|
|
4159
|
-
function ingestSuccess$
|
|
4064
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
4160
4065
|
const { body } = response;
|
|
4161
4066
|
const key = keyBuilderFromType(luvio, body);
|
|
4162
|
-
luvio.storeIngest(key, ingest$
|
|
4067
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
4163
4068
|
const snapshot = luvio.storeLookup({
|
|
4164
4069
|
recordId: key,
|
|
4165
|
-
node: select$
|
|
4070
|
+
node: select$7(),
|
|
4166
4071
|
variables: {},
|
|
4167
4072
|
});
|
|
4168
4073
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4173,7 +4078,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
4173
4078
|
deepFreeze(snapshot.data);
|
|
4174
4079
|
return snapshot;
|
|
4175
4080
|
}
|
|
4176
|
-
function createResourceRequest$
|
|
4081
|
+
function createResourceRequest$2(config) {
|
|
4177
4082
|
const headers = {};
|
|
4178
4083
|
return {
|
|
4179
4084
|
baseUri: '/services/data/v60.0',
|
|
@@ -4187,45 +4092,45 @@ function createResourceRequest$1(config) {
|
|
|
4187
4092
|
};
|
|
4188
4093
|
}
|
|
4189
4094
|
|
|
4190
|
-
const adapterName$
|
|
4095
|
+
const adapterName$2 = 'upsertActionableList';
|
|
4191
4096
|
const upsertActionableList_ConfigPropertyMetadata = [
|
|
4192
4097
|
generateParamConfigMetadata('actionableListUpsertInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4193
4098
|
];
|
|
4194
|
-
const upsertActionableList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4195
|
-
const createResourceParams$
|
|
4196
|
-
function typeCheckConfig$
|
|
4099
|
+
const upsertActionableList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, upsertActionableList_ConfigPropertyMetadata);
|
|
4100
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(upsertActionableList_ConfigPropertyMetadata);
|
|
4101
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
4197
4102
|
const config = {};
|
|
4198
4103
|
const untrustedConfig_actionableListUpsertInput = untrustedConfig.actionableListUpsertInput;
|
|
4199
|
-
const referenceActionableListUpsertInputRepresentationValidationError = validate$
|
|
4104
|
+
const referenceActionableListUpsertInputRepresentationValidationError = validate$7(untrustedConfig_actionableListUpsertInput);
|
|
4200
4105
|
if (referenceActionableListUpsertInputRepresentationValidationError === null) {
|
|
4201
4106
|
config.actionableListUpsertInput = untrustedConfig_actionableListUpsertInput;
|
|
4202
4107
|
}
|
|
4203
4108
|
return config;
|
|
4204
4109
|
}
|
|
4205
|
-
function validateAdapterConfig$
|
|
4110
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
4206
4111
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4207
4112
|
return null;
|
|
4208
4113
|
}
|
|
4209
4114
|
if (process.env.NODE_ENV !== 'production') {
|
|
4210
4115
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4211
4116
|
}
|
|
4212
|
-
const config = typeCheckConfig$
|
|
4117
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
4213
4118
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4214
4119
|
return null;
|
|
4215
4120
|
}
|
|
4216
4121
|
return config;
|
|
4217
4122
|
}
|
|
4218
|
-
function buildNetworkSnapshot$
|
|
4219
|
-
const resourceParams = createResourceParams$
|
|
4220
|
-
const request = createResourceRequest$
|
|
4123
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
4124
|
+
const resourceParams = createResourceParams$2(config);
|
|
4125
|
+
const request = createResourceRequest$2(resourceParams);
|
|
4221
4126
|
return luvio.dispatchResourceRequest(request, options)
|
|
4222
4127
|
.then((response) => {
|
|
4223
4128
|
return luvio.handleSuccessResponse(() => {
|
|
4224
|
-
const snapshot = ingestSuccess$
|
|
4129
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
4225
4130
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4226
4131
|
}, () => {
|
|
4227
4132
|
const cache = new StoreKeyMap();
|
|
4228
|
-
getResponseCacheKeys$
|
|
4133
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
4229
4134
|
return cache;
|
|
4230
4135
|
});
|
|
4231
4136
|
}, (response) => {
|
|
@@ -4235,16 +4140,16 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
4235
4140
|
}
|
|
4236
4141
|
const upsertActionableListAdapterFactory = (luvio) => {
|
|
4237
4142
|
return function upsertActionableList(untrustedConfig) {
|
|
4238
|
-
const config = validateAdapterConfig$
|
|
4143
|
+
const config = validateAdapterConfig$2(untrustedConfig, upsertActionableList_ConfigPropertyNames);
|
|
4239
4144
|
// Invalid or incomplete config
|
|
4240
4145
|
if (config === null) {
|
|
4241
4146
|
throw new Error('Invalid config for "upsertActionableList"');
|
|
4242
4147
|
}
|
|
4243
|
-
return buildNetworkSnapshot$
|
|
4148
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
4244
4149
|
};
|
|
4245
4150
|
};
|
|
4246
4151
|
|
|
4247
|
-
function validate$
|
|
4152
|
+
function validate$5(obj, path = 'ActionableListDatasetInputRepresentation') {
|
|
4248
4153
|
const v_error = (() => {
|
|
4249
4154
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4250
4155
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4284,6 +4189,13 @@ function validate$4(obj, path = 'ActionableListDatasetInputRepresentation') {
|
|
|
4284
4189
|
return new TypeError('Expected "string" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
|
|
4285
4190
|
}
|
|
4286
4191
|
}
|
|
4192
|
+
if (obj.filterTemplateId !== undefined) {
|
|
4193
|
+
const obj_filterTemplateId = obj.filterTemplateId;
|
|
4194
|
+
const path_filterTemplateId = path + '.filterTemplateId';
|
|
4195
|
+
if (typeof obj_filterTemplateId !== 'string') {
|
|
4196
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filterTemplateId + '" (at "' + path_filterTemplateId + '")');
|
|
4197
|
+
}
|
|
4198
|
+
}
|
|
4287
4199
|
if (obj.filters !== undefined) {
|
|
4288
4200
|
const obj_filters = obj.filters;
|
|
4289
4201
|
const path_filters = path + '.filters';
|
|
@@ -4442,8 +4354,8 @@ function validate$4(obj, path = 'ActionableListDatasetInputRepresentation') {
|
|
|
4442
4354
|
return v_error === undefined ? null : v_error;
|
|
4443
4355
|
}
|
|
4444
4356
|
|
|
4445
|
-
const VERSION$
|
|
4446
|
-
function validate$
|
|
4357
|
+
const VERSION$4 = "8dc99233145d8bd95809307c0604f7b0";
|
|
4358
|
+
function validate$4(obj, path = 'ActionableListDatasetColumnRepresentation') {
|
|
4447
4359
|
const v_error = (() => {
|
|
4448
4360
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4449
4361
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4557,6 +4469,11 @@ function validate$3(obj, path = 'ActionableListDatasetColumnRepresentation') {
|
|
|
4557
4469
|
message += '\n' + obj_isGroupedByListDefObj_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4558
4470
|
return new TypeError(message);
|
|
4559
4471
|
}
|
|
4472
|
+
const obj_isTypeAheadSearchEnabled = obj.isTypeAheadSearchEnabled;
|
|
4473
|
+
const path_isTypeAheadSearchEnabled = path + '.isTypeAheadSearchEnabled';
|
|
4474
|
+
if (typeof obj_isTypeAheadSearchEnabled !== 'boolean') {
|
|
4475
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isTypeAheadSearchEnabled + '" (at "' + path_isTypeAheadSearchEnabled + '")');
|
|
4476
|
+
}
|
|
4560
4477
|
const obj_objectName = obj.objectName;
|
|
4561
4478
|
const path_objectName = path + '.objectName';
|
|
4562
4479
|
let obj_objectName_union0 = null;
|
|
@@ -4638,10 +4555,10 @@ function validate$3(obj, path = 'ActionableListDatasetColumnRepresentation') {
|
|
|
4638
4555
|
})();
|
|
4639
4556
|
return v_error === undefined ? null : v_error;
|
|
4640
4557
|
}
|
|
4641
|
-
const select$
|
|
4558
|
+
const select$6 = function ActionableListDatasetColumnRepresentationSelect() {
|
|
4642
4559
|
return {
|
|
4643
4560
|
kind: 'Fragment',
|
|
4644
|
-
version: VERSION$
|
|
4561
|
+
version: VERSION$4,
|
|
4645
4562
|
private: [],
|
|
4646
4563
|
selections: [
|
|
4647
4564
|
{
|
|
@@ -4664,6 +4581,10 @@ const select$4 = function ActionableListDatasetColumnRepresentationSelect() {
|
|
|
4664
4581
|
name: 'isGroupedByListDefObj',
|
|
4665
4582
|
kind: 'Scalar'
|
|
4666
4583
|
},
|
|
4584
|
+
{
|
|
4585
|
+
name: 'isTypeAheadSearchEnabled',
|
|
4586
|
+
kind: 'Scalar'
|
|
4587
|
+
},
|
|
4667
4588
|
{
|
|
4668
4589
|
name: 'objectName',
|
|
4669
4590
|
kind: 'Scalar'
|
|
@@ -4679,7 +4600,12 @@ const select$4 = function ActionableListDatasetColumnRepresentationSelect() {
|
|
|
4679
4600
|
]
|
|
4680
4601
|
};
|
|
4681
4602
|
};
|
|
4682
|
-
function equals$
|
|
4603
|
+
function equals$4(existing, incoming) {
|
|
4604
|
+
const existing_isTypeAheadSearchEnabled = existing.isTypeAheadSearchEnabled;
|
|
4605
|
+
const incoming_isTypeAheadSearchEnabled = incoming.isTypeAheadSearchEnabled;
|
|
4606
|
+
if (!(existing_isTypeAheadSearchEnabled === incoming_isTypeAheadSearchEnabled)) {
|
|
4607
|
+
return false;
|
|
4608
|
+
}
|
|
4683
4609
|
const existing_id = existing.id;
|
|
4684
4610
|
const incoming_id = incoming.id;
|
|
4685
4611
|
if (!(existing_id === incoming_id)) {
|
|
@@ -4723,8 +4649,8 @@ function equals$3(existing, incoming) {
|
|
|
4723
4649
|
return true;
|
|
4724
4650
|
}
|
|
4725
4651
|
|
|
4726
|
-
const VERSION$
|
|
4727
|
-
function validate$
|
|
4652
|
+
const VERSION$3 = "ad799b06e079ea81d47ce361336c5282";
|
|
4653
|
+
function validate$3(obj, path = 'ActionableListDatasetRowRepresentation') {
|
|
4728
4654
|
const v_error = (() => {
|
|
4729
4655
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4730
4656
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4746,10 +4672,10 @@ function validate$2(obj, path = 'ActionableListDatasetRowRepresentation') {
|
|
|
4746
4672
|
})();
|
|
4747
4673
|
return v_error === undefined ? null : v_error;
|
|
4748
4674
|
}
|
|
4749
|
-
const select$
|
|
4675
|
+
const select$5 = function ActionableListDatasetRowRepresentationSelect() {
|
|
4750
4676
|
return {
|
|
4751
4677
|
kind: 'Fragment',
|
|
4752
|
-
version: VERSION$
|
|
4678
|
+
version: VERSION$3,
|
|
4753
4679
|
private: [],
|
|
4754
4680
|
selections: [
|
|
4755
4681
|
{
|
|
@@ -4760,7 +4686,7 @@ const select$3 = function ActionableListDatasetRowRepresentationSelect() {
|
|
|
4760
4686
|
]
|
|
4761
4687
|
};
|
|
4762
4688
|
};
|
|
4763
|
-
function equals$
|
|
4689
|
+
function equals$3(existing, incoming) {
|
|
4764
4690
|
const existing_rowMap = existing.rowMap;
|
|
4765
4691
|
const incoming_rowMap = incoming.rowMap;
|
|
4766
4692
|
const equals_rowMap_props = equalsObject(existing_rowMap, incoming_rowMap, (existing_rowMap_prop, incoming_rowMap_prop) => {
|
|
@@ -4774,8 +4700,8 @@ function equals$2(existing, incoming) {
|
|
|
4774
4700
|
return true;
|
|
4775
4701
|
}
|
|
4776
4702
|
|
|
4777
|
-
const VERSION$
|
|
4778
|
-
function validate$
|
|
4703
|
+
const VERSION$2 = "4ddcc2754150af16fd09c10d9fdabfbc";
|
|
4704
|
+
function validate$2(obj, path = 'ActionableListMemberStatusRepresentation') {
|
|
4779
4705
|
const v_error = (() => {
|
|
4780
4706
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4781
4707
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4861,10 +4787,10 @@ function validate$1(obj, path = 'ActionableListMemberStatusRepresentation') {
|
|
|
4861
4787
|
})();
|
|
4862
4788
|
return v_error === undefined ? null : v_error;
|
|
4863
4789
|
}
|
|
4864
|
-
const select$
|
|
4790
|
+
const select$4 = function ActionableListMemberStatusRepresentationSelect() {
|
|
4865
4791
|
return {
|
|
4866
4792
|
kind: 'Fragment',
|
|
4867
|
-
version: VERSION$
|
|
4793
|
+
version: VERSION$2,
|
|
4868
4794
|
private: [],
|
|
4869
4795
|
selections: [
|
|
4870
4796
|
{
|
|
@@ -4882,7 +4808,7 @@ const select$2 = function ActionableListMemberStatusRepresentationSelect() {
|
|
|
4882
4808
|
]
|
|
4883
4809
|
};
|
|
4884
4810
|
};
|
|
4885
|
-
function equals$
|
|
4811
|
+
function equals$2(existing, incoming) {
|
|
4886
4812
|
const existing_iconName = existing.iconName;
|
|
4887
4813
|
const incoming_iconName = incoming.iconName;
|
|
4888
4814
|
if (!(existing_iconName === incoming_iconName)) {
|
|
@@ -4901,9 +4827,9 @@ function equals$1(existing, incoming) {
|
|
|
4901
4827
|
return true;
|
|
4902
4828
|
}
|
|
4903
4829
|
|
|
4904
|
-
const TTL = 100;
|
|
4905
|
-
const VERSION = "dc69507b2503baa62caf5e85fd7545b8";
|
|
4906
|
-
function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation') {
|
|
4830
|
+
const TTL$1 = 100;
|
|
4831
|
+
const VERSION$1 = "dc69507b2503baa62caf5e85fd7545b8";
|
|
4832
|
+
function validate$1(obj, path = 'ActionableListDatasetByDefinitionRepresentation') {
|
|
4907
4833
|
const v_error = (() => {
|
|
4908
4834
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4909
4835
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4968,7 +4894,7 @@ function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation')
|
|
|
4968
4894
|
for (let i = 0; i < obj_datasetColumns.length; i++) {
|
|
4969
4895
|
const obj_datasetColumns_item = obj_datasetColumns[i];
|
|
4970
4896
|
const path_datasetColumns_item = path_datasetColumns + '[' + i + ']';
|
|
4971
|
-
const referencepath_datasetColumns_itemValidationError = validate$
|
|
4897
|
+
const referencepath_datasetColumns_itemValidationError = validate$4(obj_datasetColumns_item, path_datasetColumns_item);
|
|
4972
4898
|
if (referencepath_datasetColumns_itemValidationError !== null) {
|
|
4973
4899
|
let message = 'Object doesn\'t match ActionableListDatasetColumnRepresentation (at "' + path_datasetColumns_item + '")\n';
|
|
4974
4900
|
message += referencepath_datasetColumns_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4983,7 +4909,7 @@ function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation')
|
|
|
4983
4909
|
for (let i = 0; i < obj_datasetRows.length; i++) {
|
|
4984
4910
|
const obj_datasetRows_item = obj_datasetRows[i];
|
|
4985
4911
|
const path_datasetRows_item = path_datasetRows + '[' + i + ']';
|
|
4986
|
-
const referencepath_datasetRows_itemValidationError = validate$
|
|
4912
|
+
const referencepath_datasetRows_itemValidationError = validate$3(obj_datasetRows_item, path_datasetRows_item);
|
|
4987
4913
|
if (referencepath_datasetRows_itemValidationError !== null) {
|
|
4988
4914
|
let message = 'Object doesn\'t match ActionableListDatasetRowRepresentation (at "' + path_datasetRows_item + '")\n';
|
|
4989
4915
|
message += referencepath_datasetRows_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4998,7 +4924,7 @@ function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation')
|
|
|
4998
4924
|
for (let i = 0; i < obj_memberStatuses.length; i++) {
|
|
4999
4925
|
const obj_memberStatuses_item = obj_memberStatuses[i];
|
|
5000
4926
|
const path_memberStatuses_item = path_memberStatuses + '[' + i + ']';
|
|
5001
|
-
const referencepath_memberStatuses_itemValidationError = validate$
|
|
4927
|
+
const referencepath_memberStatuses_itemValidationError = validate$2(obj_memberStatuses_item, path_memberStatuses_item);
|
|
5002
4928
|
if (referencepath_memberStatuses_itemValidationError !== null) {
|
|
5003
4929
|
let message = 'Object doesn\'t match ActionableListMemberStatusRepresentation (at "' + path_memberStatuses_item + '")\n';
|
|
5004
4930
|
message += referencepath_memberStatuses_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5013,17 +4939,17 @@ function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation')
|
|
|
5013
4939
|
})();
|
|
5014
4940
|
return v_error === undefined ? null : v_error;
|
|
5015
4941
|
}
|
|
5016
|
-
const RepresentationType = 'ActionableListDatasetByDefinitionRepresentation';
|
|
5017
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
4942
|
+
const RepresentationType$1 = 'ActionableListDatasetByDefinitionRepresentation';
|
|
4943
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
5018
4944
|
return input;
|
|
5019
4945
|
}
|
|
5020
|
-
const select$
|
|
5021
|
-
const { selections: ActionableListDatasetColumnRepresentation__selections, opaque: ActionableListDatasetColumnRepresentation__opaque, } = select$
|
|
5022
|
-
const { selections: ActionableListDatasetRowRepresentation__selections, opaque: ActionableListDatasetRowRepresentation__opaque, } = select$
|
|
5023
|
-
const { selections: ActionableListMemberStatusRepresentation__selections, opaque: ActionableListMemberStatusRepresentation__opaque, } = select$
|
|
4946
|
+
const select$3 = function ActionableListDatasetByDefinitionRepresentationSelect() {
|
|
4947
|
+
const { selections: ActionableListDatasetColumnRepresentation__selections, opaque: ActionableListDatasetColumnRepresentation__opaque, } = select$6();
|
|
4948
|
+
const { selections: ActionableListDatasetRowRepresentation__selections, opaque: ActionableListDatasetRowRepresentation__opaque, } = select$5();
|
|
4949
|
+
const { selections: ActionableListMemberStatusRepresentation__selections, opaque: ActionableListMemberStatusRepresentation__opaque, } = select$4();
|
|
5024
4950
|
return {
|
|
5025
4951
|
kind: 'Fragment',
|
|
5026
|
-
version: VERSION,
|
|
4952
|
+
version: VERSION$1,
|
|
5027
4953
|
private: [],
|
|
5028
4954
|
selections: [
|
|
5029
4955
|
{
|
|
@@ -5059,7 +4985,7 @@ const select$1 = function ActionableListDatasetByDefinitionRepresentationSelect(
|
|
|
5059
4985
|
]
|
|
5060
4986
|
};
|
|
5061
4987
|
};
|
|
5062
|
-
function equals(existing, incoming) {
|
|
4988
|
+
function equals$1(existing, incoming) {
|
|
5063
4989
|
const existing_responseId = existing.responseId;
|
|
5064
4990
|
const incoming_responseId = incoming.responseId;
|
|
5065
4991
|
if (!(existing_responseId === incoming_responseId)) {
|
|
@@ -5078,7 +5004,7 @@ function equals(existing, incoming) {
|
|
|
5078
5004
|
const existing_datasetColumns = existing.datasetColumns;
|
|
5079
5005
|
const incoming_datasetColumns = incoming.datasetColumns;
|
|
5080
5006
|
const equals_datasetColumns_items = equalsArray(existing_datasetColumns, incoming_datasetColumns, (existing_datasetColumns_item, incoming_datasetColumns_item) => {
|
|
5081
|
-
if (!(equals$
|
|
5007
|
+
if (!(equals$4(existing_datasetColumns_item, incoming_datasetColumns_item))) {
|
|
5082
5008
|
return false;
|
|
5083
5009
|
}
|
|
5084
5010
|
});
|
|
@@ -5088,7 +5014,7 @@ function equals(existing, incoming) {
|
|
|
5088
5014
|
const existing_datasetRows = existing.datasetRows;
|
|
5089
5015
|
const incoming_datasetRows = incoming.datasetRows;
|
|
5090
5016
|
const equals_datasetRows_items = equalsArray(existing_datasetRows, incoming_datasetRows, (existing_datasetRows_item, incoming_datasetRows_item) => {
|
|
5091
|
-
if (!(equals$
|
|
5017
|
+
if (!(equals$3(existing_datasetRows_item, incoming_datasetRows_item))) {
|
|
5092
5018
|
return false;
|
|
5093
5019
|
}
|
|
5094
5020
|
});
|
|
@@ -5098,7 +5024,7 @@ function equals(existing, incoming) {
|
|
|
5098
5024
|
const existing_memberStatuses = existing.memberStatuses;
|
|
5099
5025
|
const incoming_memberStatuses = incoming.memberStatuses;
|
|
5100
5026
|
const equals_memberStatuses_items = equalsArray(existing_memberStatuses, incoming_memberStatuses, (existing_memberStatuses_item, incoming_memberStatuses_item) => {
|
|
5101
|
-
if (!(equals$
|
|
5027
|
+
if (!(equals$2(existing_memberStatuses_item, incoming_memberStatuses_item))) {
|
|
5102
5028
|
return false;
|
|
5103
5029
|
}
|
|
5104
5030
|
});
|
|
@@ -5107,7 +5033,229 @@ function equals(existing, incoming) {
|
|
|
5107
5033
|
}
|
|
5108
5034
|
return true;
|
|
5109
5035
|
}
|
|
5110
|
-
const ingest = function ActionableListDatasetByDefinitionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5036
|
+
const ingest$1 = function ActionableListDatasetByDefinitionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5037
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5038
|
+
const validateError = validate$1(input);
|
|
5039
|
+
if (validateError !== null) {
|
|
5040
|
+
throw validateError;
|
|
5041
|
+
}
|
|
5042
|
+
}
|
|
5043
|
+
const key = path.fullPath;
|
|
5044
|
+
const ttlToUse = TTL$1;
|
|
5045
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "actionablelist", VERSION$1, RepresentationType$1, equals$1);
|
|
5046
|
+
return createLink(key);
|
|
5047
|
+
};
|
|
5048
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
5049
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5050
|
+
const rootKey = fullPathFactory();
|
|
5051
|
+
rootKeySet.set(rootKey, {
|
|
5052
|
+
namespace: keyPrefix,
|
|
5053
|
+
representationName: RepresentationType$1,
|
|
5054
|
+
mergeable: false
|
|
5055
|
+
});
|
|
5056
|
+
}
|
|
5057
|
+
|
|
5058
|
+
function select$2(luvio, params) {
|
|
5059
|
+
return select$3();
|
|
5060
|
+
}
|
|
5061
|
+
function keyBuilder$3(luvio, params) {
|
|
5062
|
+
return keyPrefix + '::ActionableListDatasetByDefinitionRepresentation:(' + (params.body.actionableListDataset.actionableListDefinitionId === undefined ? 'actionableListDataset.actionableListDefinitionId' : 'actionableListDataset.actionableListDefinitionId:' + params.body.actionableListDataset.actionableListDefinitionId) + '::' + (params.body.actionableListDataset.filterLogic === undefined ? 'actionableListDataset.filterLogic' : 'actionableListDataset.filterLogic:' + params.body.actionableListDataset.filterLogic) + '::' + (params.body.actionableListDataset.filterTemplateId === undefined ? 'actionableListDataset.filterTemplateId' : 'actionableListDataset.filterTemplateId:' + params.body.actionableListDataset.filterTemplateId) + '::' + stableJSONStringify(params.body.actionableListDataset.filters) + '::' + (params.body.actionableListDataset.offset === undefined ? 'actionableListDataset.offset' : 'actionableListDataset.offset:' + params.body.actionableListDataset.offset) + '::' + (params.body.actionableListDataset.orderBy === undefined ? 'actionableListDataset.orderBy' : 'actionableListDataset.orderBy:' + params.body.actionableListDataset.orderBy) + '::' + (params.body.actionableListDataset.queryType === undefined ? 'actionableListDataset.queryType' : 'actionableListDataset.queryType:' + params.body.actionableListDataset.queryType) + '::' + (params.body.actionableListDataset.rowLimit === undefined ? 'actionableListDataset.rowLimit' : 'actionableListDataset.rowLimit:' + params.body.actionableListDataset.rowLimit) + '::' + (params.body.actionableListDataset.shouldReturnCurrencyCode === undefined ? 'actionableListDataset.shouldReturnCurrencyCode' : 'actionableListDataset.shouldReturnCurrencyCode:' + params.body.actionableListDataset.shouldReturnCurrencyCode) + '::' + (params.body.actionableListDataset.sortOrder === undefined ? 'actionableListDataset.sortOrder' : 'actionableListDataset.sortOrder:' + params.body.actionableListDataset.sortOrder) + ')';
|
|
5063
|
+
}
|
|
5064
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
5065
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
5066
|
+
}
|
|
5067
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
5068
|
+
const { body } = response;
|
|
5069
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
5070
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
5071
|
+
const snapshot = luvio.storeLookup({
|
|
5072
|
+
recordId: key,
|
|
5073
|
+
node: select$2(),
|
|
5074
|
+
variables: {},
|
|
5075
|
+
}, snapshotRefresh);
|
|
5076
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5077
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5078
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5079
|
+
}
|
|
5080
|
+
}
|
|
5081
|
+
deepFreeze(snapshot.data);
|
|
5082
|
+
return snapshot;
|
|
5083
|
+
}
|
|
5084
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
5085
|
+
const key = keyBuilder$3(luvio, params);
|
|
5086
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5087
|
+
const storeMetadataParams = {
|
|
5088
|
+
ttl: TTL$1,
|
|
5089
|
+
namespace: keyPrefix,
|
|
5090
|
+
version: VERSION$1,
|
|
5091
|
+
representationName: RepresentationType$1
|
|
5092
|
+
};
|
|
5093
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5094
|
+
return errorSnapshot;
|
|
5095
|
+
}
|
|
5096
|
+
function createResourceRequest$1(config) {
|
|
5097
|
+
const headers = {};
|
|
5098
|
+
return {
|
|
5099
|
+
baseUri: '/services/data/v60.0',
|
|
5100
|
+
basePath: '/connect/actionable-list-definition/rows',
|
|
5101
|
+
method: 'post',
|
|
5102
|
+
body: config.body,
|
|
5103
|
+
urlParams: {},
|
|
5104
|
+
queryParams: {},
|
|
5105
|
+
headers,
|
|
5106
|
+
priority: 'normal',
|
|
5107
|
+
};
|
|
5108
|
+
}
|
|
5109
|
+
|
|
5110
|
+
const adapterName$1 = 'getActionableListDatasetInfo';
|
|
5111
|
+
const getActionableListDatasetInfo_ConfigPropertyMetadata = [
|
|
5112
|
+
generateParamConfigMetadata('actionableListDataset', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5113
|
+
];
|
|
5114
|
+
const getActionableListDatasetInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getActionableListDatasetInfo_ConfigPropertyMetadata);
|
|
5115
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getActionableListDatasetInfo_ConfigPropertyMetadata);
|
|
5116
|
+
function keyBuilder$2(luvio, config) {
|
|
5117
|
+
const resourceParams = createResourceParams$1(config);
|
|
5118
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
5119
|
+
}
|
|
5120
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
5121
|
+
const config = {};
|
|
5122
|
+
const untrustedConfig_actionableListDataset = untrustedConfig.actionableListDataset;
|
|
5123
|
+
const referenceActionableListDatasetInputRepresentationValidationError = validate$5(untrustedConfig_actionableListDataset);
|
|
5124
|
+
if (referenceActionableListDatasetInputRepresentationValidationError === null) {
|
|
5125
|
+
config.actionableListDataset = untrustedConfig_actionableListDataset;
|
|
5126
|
+
}
|
|
5127
|
+
return config;
|
|
5128
|
+
}
|
|
5129
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
5130
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5131
|
+
return null;
|
|
5132
|
+
}
|
|
5133
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5134
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5135
|
+
}
|
|
5136
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
5137
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5138
|
+
return null;
|
|
5139
|
+
}
|
|
5140
|
+
return config;
|
|
5141
|
+
}
|
|
5142
|
+
function adapterFragment$1(luvio, config) {
|
|
5143
|
+
createResourceParams$1(config);
|
|
5144
|
+
return select$2();
|
|
5145
|
+
}
|
|
5146
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
5147
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
5148
|
+
config,
|
|
5149
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5150
|
+
});
|
|
5151
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5152
|
+
}
|
|
5153
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
5154
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
5155
|
+
config,
|
|
5156
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5157
|
+
});
|
|
5158
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5159
|
+
}
|
|
5160
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
5161
|
+
const resourceParams = createResourceParams$1(config);
|
|
5162
|
+
const request = createResourceRequest$1(resourceParams);
|
|
5163
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5164
|
+
.then((response) => {
|
|
5165
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
5166
|
+
const cache = new StoreKeyMap();
|
|
5167
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
5168
|
+
return cache;
|
|
5169
|
+
});
|
|
5170
|
+
}, (response) => {
|
|
5171
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
5172
|
+
});
|
|
5173
|
+
}
|
|
5174
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
5175
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
|
|
5176
|
+
}
|
|
5177
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
5178
|
+
const { luvio, config } = context;
|
|
5179
|
+
const selector = {
|
|
5180
|
+
recordId: keyBuilder$2(luvio, config),
|
|
5181
|
+
node: adapterFragment$1(luvio, config),
|
|
5182
|
+
variables: {},
|
|
5183
|
+
};
|
|
5184
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5185
|
+
config,
|
|
5186
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5187
|
+
});
|
|
5188
|
+
return cacheSnapshot;
|
|
5189
|
+
}
|
|
5190
|
+
const getActionableListDatasetInfoAdapterFactory = (luvio) => function actionablelist__getActionableListDatasetInfo(untrustedConfig, requestContext) {
|
|
5191
|
+
const config = validateAdapterConfig$1(untrustedConfig, getActionableListDatasetInfo_ConfigPropertyNames);
|
|
5192
|
+
// Invalid or incomplete config
|
|
5193
|
+
if (config === null) {
|
|
5194
|
+
return null;
|
|
5195
|
+
}
|
|
5196
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5197
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
5198
|
+
};
|
|
5199
|
+
|
|
5200
|
+
const TTL = 1000;
|
|
5201
|
+
const VERSION = "a8e45eb355201ca8b8d9570ee039b4a4";
|
|
5202
|
+
function validate(obj, path = 'ActionableListDatasetColumnValuesOutputRepresentation') {
|
|
5203
|
+
const v_error = (() => {
|
|
5204
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5205
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5206
|
+
}
|
|
5207
|
+
const obj_datasetRows = obj.datasetRows;
|
|
5208
|
+
const path_datasetRows = path + '.datasetRows';
|
|
5209
|
+
if (!ArrayIsArray(obj_datasetRows)) {
|
|
5210
|
+
return new TypeError('Expected "array" but received "' + typeof obj_datasetRows + '" (at "' + path_datasetRows + '")');
|
|
5211
|
+
}
|
|
5212
|
+
for (let i = 0; i < obj_datasetRows.length; i++) {
|
|
5213
|
+
const obj_datasetRows_item = obj_datasetRows[i];
|
|
5214
|
+
const path_datasetRows_item = path_datasetRows + '[' + i + ']';
|
|
5215
|
+
const referencepath_datasetRows_itemValidationError = validate$3(obj_datasetRows_item, path_datasetRows_item);
|
|
5216
|
+
if (referencepath_datasetRows_itemValidationError !== null) {
|
|
5217
|
+
let message = 'Object doesn\'t match ActionableListDatasetRowRepresentation (at "' + path_datasetRows_item + '")\n';
|
|
5218
|
+
message += referencepath_datasetRows_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5219
|
+
return new TypeError(message);
|
|
5220
|
+
}
|
|
5221
|
+
}
|
|
5222
|
+
})();
|
|
5223
|
+
return v_error === undefined ? null : v_error;
|
|
5224
|
+
}
|
|
5225
|
+
const RepresentationType = 'ActionableListDatasetColumnValuesOutputRepresentation';
|
|
5226
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
5227
|
+
return input;
|
|
5228
|
+
}
|
|
5229
|
+
const select$1 = function ActionableListDatasetColumnValuesOutputRepresentationSelect() {
|
|
5230
|
+
const { selections: ActionableListDatasetRowRepresentation__selections, opaque: ActionableListDatasetRowRepresentation__opaque, } = select$5();
|
|
5231
|
+
return {
|
|
5232
|
+
kind: 'Fragment',
|
|
5233
|
+
version: VERSION,
|
|
5234
|
+
private: [],
|
|
5235
|
+
selections: [
|
|
5236
|
+
{
|
|
5237
|
+
name: 'datasetRows',
|
|
5238
|
+
kind: 'Object',
|
|
5239
|
+
plural: true,
|
|
5240
|
+
selections: ActionableListDatasetRowRepresentation__selections
|
|
5241
|
+
}
|
|
5242
|
+
]
|
|
5243
|
+
};
|
|
5244
|
+
};
|
|
5245
|
+
function equals(existing, incoming) {
|
|
5246
|
+
const existing_datasetRows = existing.datasetRows;
|
|
5247
|
+
const incoming_datasetRows = incoming.datasetRows;
|
|
5248
|
+
const equals_datasetRows_items = equalsArray(existing_datasetRows, incoming_datasetRows, (existing_datasetRows_item, incoming_datasetRows_item) => {
|
|
5249
|
+
if (!(equals$3(existing_datasetRows_item, incoming_datasetRows_item))) {
|
|
5250
|
+
return false;
|
|
5251
|
+
}
|
|
5252
|
+
});
|
|
5253
|
+
if (equals_datasetRows_items === false) {
|
|
5254
|
+
return false;
|
|
5255
|
+
}
|
|
5256
|
+
return true;
|
|
5257
|
+
}
|
|
5258
|
+
const ingest = function ActionableListDatasetColumnValuesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5111
5259
|
if (process.env.NODE_ENV !== 'production') {
|
|
5112
5260
|
const validateError = validate(input);
|
|
5113
5261
|
if (validateError !== null) {
|
|
@@ -5133,7 +5281,7 @@ function select(luvio, params) {
|
|
|
5133
5281
|
return select$1();
|
|
5134
5282
|
}
|
|
5135
5283
|
function keyBuilder$1(luvio, params) {
|
|
5136
|
-
return keyPrefix + '::
|
|
5284
|
+
return keyPrefix + '::ActionableListDatasetColumnValuesOutputRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'aldcId:' + params.urlParams.aldcId + ')';
|
|
5137
5285
|
}
|
|
5138
5286
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
5139
5287
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -5171,33 +5319,30 @@ function createResourceRequest(config) {
|
|
|
5171
5319
|
const headers = {};
|
|
5172
5320
|
return {
|
|
5173
5321
|
baseUri: '/services/data/v60.0',
|
|
5174
|
-
basePath: '/connect/actionable-list-definition/
|
|
5175
|
-
method: '
|
|
5176
|
-
body:
|
|
5177
|
-
urlParams:
|
|
5178
|
-
queryParams:
|
|
5322
|
+
basePath: '/connect/actionable-list-definition/column-values/' + config.urlParams.aldcId + '',
|
|
5323
|
+
method: 'get',
|
|
5324
|
+
body: null,
|
|
5325
|
+
urlParams: config.urlParams,
|
|
5326
|
+
queryParams: config.queryParams,
|
|
5179
5327
|
headers,
|
|
5180
5328
|
priority: 'normal',
|
|
5181
5329
|
};
|
|
5182
5330
|
}
|
|
5183
5331
|
|
|
5184
|
-
const adapterName = '
|
|
5185
|
-
const
|
|
5186
|
-
generateParamConfigMetadata('
|
|
5332
|
+
const adapterName = 'getDatasetColumnValues';
|
|
5333
|
+
const getDatasetColumnValues_ConfigPropertyMetadata = [
|
|
5334
|
+
generateParamConfigMetadata('aldcId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5335
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5187
5336
|
];
|
|
5188
|
-
const
|
|
5189
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
5337
|
+
const getDatasetColumnValues_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDatasetColumnValues_ConfigPropertyMetadata);
|
|
5338
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$c(getDatasetColumnValues_ConfigPropertyMetadata);
|
|
5190
5339
|
function keyBuilder(luvio, config) {
|
|
5191
5340
|
const resourceParams = createResourceParams(config);
|
|
5192
5341
|
return keyBuilder$1(luvio, resourceParams);
|
|
5193
5342
|
}
|
|
5194
5343
|
function typeCheckConfig(untrustedConfig) {
|
|
5195
5344
|
const config = {};
|
|
5196
|
-
|
|
5197
|
-
const referenceActionableListDatasetInputRepresentationValidationError = validate$4(untrustedConfig_actionableListDataset);
|
|
5198
|
-
if (referenceActionableListDatasetInputRepresentationValidationError === null) {
|
|
5199
|
-
config.actionableListDataset = untrustedConfig_actionableListDataset;
|
|
5200
|
-
}
|
|
5345
|
+
typeCheckConfig$c(untrustedConfig, config, getDatasetColumnValues_ConfigPropertyMetadata);
|
|
5201
5346
|
return config;
|
|
5202
5347
|
}
|
|
5203
5348
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -5246,7 +5391,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
5246
5391
|
});
|
|
5247
5392
|
}
|
|
5248
5393
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
5249
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5394
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
5250
5395
|
}
|
|
5251
5396
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
5252
5397
|
const { luvio, config } = context;
|
|
@@ -5261,8 +5406,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
5261
5406
|
});
|
|
5262
5407
|
return cacheSnapshot;
|
|
5263
5408
|
}
|
|
5264
|
-
const
|
|
5265
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
5409
|
+
const getDatasetColumnValuesAdapterFactory = (luvio) => function actionablelist__getDatasetColumnValues(untrustedConfig, requestContext) {
|
|
5410
|
+
const config = validateAdapterConfig(untrustedConfig, getDatasetColumnValues_ConfigPropertyNames);
|
|
5266
5411
|
// Invalid or incomplete config
|
|
5267
5412
|
if (config === null) {
|
|
5268
5413
|
return null;
|
|
@@ -5271,4 +5416,4 @@ const getActionableListDatasetInfoAdapterFactory = (luvio) => function actionabl
|
|
|
5271
5416
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
5272
5417
|
};
|
|
5273
5418
|
|
|
5274
|
-
export { createActionableListDefinitionAdapterFactory, deleteFilterTemplateAdapterFactory, getActionableListDatasetInfoAdapterFactory, getActionableListDefinitionsAdapterFactory, getActionableListMembersAdapterFactory, getFilterTemplateAdapterFactory, getFilterTemplatesForListDefinitionAdapterFactory, upsertActionableListAdapterFactory, upsertActionableListDatasetColumnUserAdapterFactory, upsertActionableListFilterTemplateAdapterFactory, upsertActionableListRefreshFilterAdapterFactory };
|
|
5419
|
+
export { createActionableListDefinitionAdapterFactory, deleteFilterTemplateAdapterFactory, getActionableListDatasetInfoAdapterFactory, getActionableListDefinitionsAdapterFactory, getActionableListMembersAdapterFactory, getDatasetColumnValuesAdapterFactory, getFilterTemplateAdapterFactory, getFilterTemplatesForListDefinitionAdapterFactory, upsertActionableListAdapterFactory, upsertActionableListDatasetColumnUserAdapterFactory, upsertActionableListFilterTemplateAdapterFactory, upsertActionableListRefreshFilterAdapterFactory };
|