@salesforce/lds-adapters-industries-actionablelist 1.246.0 → 1.247.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 +812 -598
- package/dist/es/es2018/types/src/generated/adapters/getDatasetColumnValues.d.ts +28 -0
- 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/types/ActionableListDatasetColumnValuesOutputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListFilterTemplateInputRepresentation.d.ts +4 -7
- package/package.json +10 -6
- package/sfdc/index.js +512 -290
- package/src/raml/api.raml +33 -6
- package/src/raml/luvio.raml +12 -0
|
@@ -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,8 +167,8 @@ function createLink(ref) {
|
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
const VERSION$
|
|
171
|
-
function validate$
|
|
170
|
+
const VERSION$j = "bf02e6b522639f3bb93ec16ccee16087";
|
|
171
|
+
function validate$r(obj, path = 'ALDDatasetColumnOutputRepresentation') {
|
|
172
172
|
const v_error = (() => {
|
|
173
173
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
174
174
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -326,10 +326,10 @@ function validate$q(obj, path = 'ALDDatasetColumnOutputRepresentation') {
|
|
|
326
326
|
})();
|
|
327
327
|
return v_error === undefined ? null : v_error;
|
|
328
328
|
}
|
|
329
|
-
const select$
|
|
329
|
+
const select$u = function ALDDatasetColumnOutputRepresentationSelect() {
|
|
330
330
|
return {
|
|
331
331
|
kind: 'Fragment',
|
|
332
|
-
version: VERSION$
|
|
332
|
+
version: VERSION$j,
|
|
333
333
|
private: [],
|
|
334
334
|
selections: [
|
|
335
335
|
{
|
|
@@ -371,7 +371,7 @@ const select$s = function ALDDatasetColumnOutputRepresentationSelect() {
|
|
|
371
371
|
]
|
|
372
372
|
};
|
|
373
373
|
};
|
|
374
|
-
function equals$
|
|
374
|
+
function equals$j(existing, incoming) {
|
|
375
375
|
const existing_isDefault = existing.isDefault;
|
|
376
376
|
const incoming_isDefault = incoming.isDefault;
|
|
377
377
|
if (!(existing_isDefault === incoming_isDefault)) {
|
|
@@ -420,8 +420,8 @@ function equals$i(existing, incoming) {
|
|
|
420
420
|
return true;
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
const VERSION$
|
|
424
|
-
function validate$
|
|
423
|
+
const VERSION$i = "9d133a939d3bf9e4f6209870e525ff9f";
|
|
424
|
+
function validate$q(obj, path = 'ALDMemberStatusOutputRepresentation') {
|
|
425
425
|
const v_error = (() => {
|
|
426
426
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
427
427
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -444,10 +444,10 @@ function validate$p(obj, path = 'ALDMemberStatusOutputRepresentation') {
|
|
|
444
444
|
})();
|
|
445
445
|
return v_error === undefined ? null : v_error;
|
|
446
446
|
}
|
|
447
|
-
const select$
|
|
447
|
+
const select$t = function ALDMemberStatusOutputRepresentationSelect() {
|
|
448
448
|
return {
|
|
449
449
|
kind: 'Fragment',
|
|
450
|
-
version: VERSION$
|
|
450
|
+
version: VERSION$i,
|
|
451
451
|
private: [],
|
|
452
452
|
selections: [
|
|
453
453
|
{
|
|
@@ -465,7 +465,7 @@ const select$r = function ALDMemberStatusOutputRepresentationSelect() {
|
|
|
465
465
|
]
|
|
466
466
|
};
|
|
467
467
|
};
|
|
468
|
-
function equals$
|
|
468
|
+
function equals$i(existing, incoming) {
|
|
469
469
|
const existing_iconName = existing.iconName;
|
|
470
470
|
const incoming_iconName = incoming.iconName;
|
|
471
471
|
if (!(existing_iconName === incoming_iconName)) {
|
|
@@ -484,8 +484,8 @@ function equals$h(existing, incoming) {
|
|
|
484
484
|
return true;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
const VERSION$
|
|
488
|
-
function validate$
|
|
487
|
+
const VERSION$h = "63348e0d2a5e8d3cf7f7ddc110bf6cf4";
|
|
488
|
+
function validate$p(obj, path = 'ActionableListDefinitionOutputRepresentation') {
|
|
489
489
|
const v_error = (() => {
|
|
490
490
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
491
491
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -498,7 +498,7 @@ function validate$o(obj, path = 'ActionableListDefinitionOutputRepresentation')
|
|
|
498
498
|
for (let i = 0; i < obj_aldDatasetColumnOutputRepresentation.length; i++) {
|
|
499
499
|
const obj_aldDatasetColumnOutputRepresentation_item = obj_aldDatasetColumnOutputRepresentation[i];
|
|
500
500
|
const path_aldDatasetColumnOutputRepresentation_item = path_aldDatasetColumnOutputRepresentation + '[' + i + ']';
|
|
501
|
-
const referencepath_aldDatasetColumnOutputRepresentation_itemValidationError = validate$
|
|
501
|
+
const referencepath_aldDatasetColumnOutputRepresentation_itemValidationError = validate$r(obj_aldDatasetColumnOutputRepresentation_item, path_aldDatasetColumnOutputRepresentation_item);
|
|
502
502
|
if (referencepath_aldDatasetColumnOutputRepresentation_itemValidationError !== null) {
|
|
503
503
|
let message = 'Object doesn\'t match ALDDatasetColumnOutputRepresentation (at "' + path_aldDatasetColumnOutputRepresentation_item + '")\n';
|
|
504
504
|
message += referencepath_aldDatasetColumnOutputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -513,7 +513,7 @@ function validate$o(obj, path = 'ActionableListDefinitionOutputRepresentation')
|
|
|
513
513
|
for (let i = 0; i < obj_aldMemberStatusOutputRepresentation.length; i++) {
|
|
514
514
|
const obj_aldMemberStatusOutputRepresentation_item = obj_aldMemberStatusOutputRepresentation[i];
|
|
515
515
|
const path_aldMemberStatusOutputRepresentation_item = path_aldMemberStatusOutputRepresentation + '[' + i + ']';
|
|
516
|
-
const referencepath_aldMemberStatusOutputRepresentation_itemValidationError = validate$
|
|
516
|
+
const referencepath_aldMemberStatusOutputRepresentation_itemValidationError = validate$q(obj_aldMemberStatusOutputRepresentation_item, path_aldMemberStatusOutputRepresentation_item);
|
|
517
517
|
if (referencepath_aldMemberStatusOutputRepresentation_itemValidationError !== null) {
|
|
518
518
|
let message = 'Object doesn\'t match ALDMemberStatusOutputRepresentation (at "' + path_aldMemberStatusOutputRepresentation_item + '")\n';
|
|
519
519
|
message += referencepath_aldMemberStatusOutputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -605,12 +605,12 @@ function validate$o(obj, path = 'ActionableListDefinitionOutputRepresentation')
|
|
|
605
605
|
})();
|
|
606
606
|
return v_error === undefined ? null : v_error;
|
|
607
607
|
}
|
|
608
|
-
const select$
|
|
609
|
-
const { selections: ALDDatasetColumnOutputRepresentation__selections, opaque: ALDDatasetColumnOutputRepresentation__opaque, } = select$
|
|
610
|
-
const { selections: ALDMemberStatusOutputRepresentation__selections, opaque: ALDMemberStatusOutputRepresentation__opaque, } = select$
|
|
608
|
+
const select$s = function ActionableListDefinitionOutputRepresentationSelect() {
|
|
609
|
+
const { selections: ALDDatasetColumnOutputRepresentation__selections, opaque: ALDDatasetColumnOutputRepresentation__opaque, } = select$u();
|
|
610
|
+
const { selections: ALDMemberStatusOutputRepresentation__selections, opaque: ALDMemberStatusOutputRepresentation__opaque, } = select$t();
|
|
611
611
|
return {
|
|
612
612
|
kind: 'Fragment',
|
|
613
|
-
version: VERSION$
|
|
613
|
+
version: VERSION$h,
|
|
614
614
|
private: [],
|
|
615
615
|
selections: [
|
|
616
616
|
{
|
|
@@ -660,7 +660,7 @@ const select$q = function ActionableListDefinitionOutputRepresentationSelect() {
|
|
|
660
660
|
]
|
|
661
661
|
};
|
|
662
662
|
};
|
|
663
|
-
function equals$
|
|
663
|
+
function equals$h(existing, incoming) {
|
|
664
664
|
const existing_isActive = existing.isActive;
|
|
665
665
|
const incoming_isActive = incoming.isActive;
|
|
666
666
|
if (!(existing_isActive === incoming_isActive)) {
|
|
@@ -694,7 +694,7 @@ function equals$g(existing, incoming) {
|
|
|
694
694
|
const existing_aldDatasetColumnOutputRepresentation = existing.aldDatasetColumnOutputRepresentation;
|
|
695
695
|
const incoming_aldDatasetColumnOutputRepresentation = incoming.aldDatasetColumnOutputRepresentation;
|
|
696
696
|
const equals_aldDatasetColumnOutputRepresentation_items = equalsArray(existing_aldDatasetColumnOutputRepresentation, incoming_aldDatasetColumnOutputRepresentation, (existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item) => {
|
|
697
|
-
if (!(equals$
|
|
697
|
+
if (!(equals$j(existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item))) {
|
|
698
698
|
return false;
|
|
699
699
|
}
|
|
700
700
|
});
|
|
@@ -704,7 +704,7 @@ function equals$g(existing, incoming) {
|
|
|
704
704
|
const existing_aldMemberStatusOutputRepresentation = existing.aldMemberStatusOutputRepresentation;
|
|
705
705
|
const incoming_aldMemberStatusOutputRepresentation = incoming.aldMemberStatusOutputRepresentation;
|
|
706
706
|
const equals_aldMemberStatusOutputRepresentation_items = equalsArray(existing_aldMemberStatusOutputRepresentation, incoming_aldMemberStatusOutputRepresentation, (existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item) => {
|
|
707
|
-
if (!(equals$
|
|
707
|
+
if (!(equals$i(existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item))) {
|
|
708
708
|
return false;
|
|
709
709
|
}
|
|
710
710
|
});
|
|
@@ -724,9 +724,9 @@ function equals$g(existing, incoming) {
|
|
|
724
724
|
return true;
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
-
const TTL$
|
|
728
|
-
const VERSION$
|
|
729
|
-
function validate$
|
|
727
|
+
const TTL$a = 100;
|
|
728
|
+
const VERSION$g = "4c1ba3bd226b3670b78af4e7ea159854";
|
|
729
|
+
function validate$o(obj, path = 'ActionableListDefinitionGetAllOutputRepresentation') {
|
|
730
730
|
const v_error = (() => {
|
|
731
731
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
732
732
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -739,7 +739,7 @@ function validate$n(obj, path = 'ActionableListDefinitionGetAllOutputRepresentat
|
|
|
739
739
|
for (let i = 0; i < obj_aldList.length; i++) {
|
|
740
740
|
const obj_aldList_item = obj_aldList[i];
|
|
741
741
|
const path_aldList_item = path_aldList + '[' + i + ']';
|
|
742
|
-
const referencepath_aldList_itemValidationError = validate$
|
|
742
|
+
const referencepath_aldList_itemValidationError = validate$p(obj_aldList_item, path_aldList_item);
|
|
743
743
|
if (referencepath_aldList_itemValidationError !== null) {
|
|
744
744
|
let message = 'Object doesn\'t match ActionableListDefinitionOutputRepresentation (at "' + path_aldList_item + '")\n';
|
|
745
745
|
message += referencepath_aldList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -749,15 +749,15 @@ function validate$n(obj, path = 'ActionableListDefinitionGetAllOutputRepresentat
|
|
|
749
749
|
})();
|
|
750
750
|
return v_error === undefined ? null : v_error;
|
|
751
751
|
}
|
|
752
|
-
const RepresentationType$
|
|
753
|
-
function normalize$
|
|
752
|
+
const RepresentationType$a = 'ActionableListDefinitionGetAllOutputRepresentation';
|
|
753
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
754
754
|
return input;
|
|
755
755
|
}
|
|
756
|
-
const select$
|
|
757
|
-
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$
|
|
756
|
+
const select$r = function ActionableListDefinitionGetAllOutputRepresentationSelect() {
|
|
757
|
+
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$s();
|
|
758
758
|
return {
|
|
759
759
|
kind: 'Fragment',
|
|
760
|
-
version: VERSION$
|
|
760
|
+
version: VERSION$g,
|
|
761
761
|
private: [],
|
|
762
762
|
selections: [
|
|
763
763
|
{
|
|
@@ -769,11 +769,11 @@ const select$p = function ActionableListDefinitionGetAllOutputRepresentationSele
|
|
|
769
769
|
]
|
|
770
770
|
};
|
|
771
771
|
};
|
|
772
|
-
function equals$
|
|
772
|
+
function equals$g(existing, incoming) {
|
|
773
773
|
const existing_aldList = existing.aldList;
|
|
774
774
|
const incoming_aldList = incoming.aldList;
|
|
775
775
|
const equals_aldList_items = equalsArray(existing_aldList, incoming_aldList, (existing_aldList_item, incoming_aldList_item) => {
|
|
776
|
-
if (!(equals$
|
|
776
|
+
if (!(equals$h(existing_aldList_item, incoming_aldList_item))) {
|
|
777
777
|
return false;
|
|
778
778
|
}
|
|
779
779
|
});
|
|
@@ -782,44 +782,44 @@ function equals$f(existing, incoming) {
|
|
|
782
782
|
}
|
|
783
783
|
return true;
|
|
784
784
|
}
|
|
785
|
-
const ingest$
|
|
785
|
+
const ingest$a = function ActionableListDefinitionGetAllOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
786
786
|
if (process.env.NODE_ENV !== 'production') {
|
|
787
|
-
const validateError = validate$
|
|
787
|
+
const validateError = validate$o(input);
|
|
788
788
|
if (validateError !== null) {
|
|
789
789
|
throw validateError;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
const key = path.fullPath;
|
|
793
|
-
const ttlToUse = TTL$
|
|
794
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
793
|
+
const ttlToUse = TTL$a;
|
|
794
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "actionablelist", VERSION$g, RepresentationType$a, equals$g);
|
|
795
795
|
return createLink(key);
|
|
796
796
|
};
|
|
797
|
-
function getTypeCacheKeys$
|
|
797
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
798
798
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
799
799
|
const rootKey = fullPathFactory();
|
|
800
800
|
rootKeySet.set(rootKey, {
|
|
801
801
|
namespace: keyPrefix,
|
|
802
|
-
representationName: RepresentationType$
|
|
802
|
+
representationName: RepresentationType$a,
|
|
803
803
|
mergeable: false
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
806
|
|
|
807
|
-
function select$
|
|
808
|
-
return select$
|
|
807
|
+
function select$q(luvio, params) {
|
|
808
|
+
return select$r();
|
|
809
809
|
}
|
|
810
|
-
function keyBuilder$
|
|
810
|
+
function keyBuilder$i(luvio, params) {
|
|
811
811
|
return keyPrefix + '::ActionableListDefinitionGetAllOutputRepresentation:(' + 'id:' + params.queryParams.id + ',' + 'isActive:' + params.queryParams.isActive + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
812
812
|
}
|
|
813
|
-
function getResponseCacheKeys$
|
|
814
|
-
getTypeCacheKeys$
|
|
813
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
814
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$i(luvio, resourceParams));
|
|
815
815
|
}
|
|
816
|
-
function ingestSuccess$
|
|
816
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
817
817
|
const { body } = response;
|
|
818
|
-
const key = keyBuilder$
|
|
819
|
-
luvio.storeIngest(key, ingest$
|
|
818
|
+
const key = keyBuilder$i(luvio, resourceParams);
|
|
819
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
820
820
|
const snapshot = luvio.storeLookup({
|
|
821
821
|
recordId: key,
|
|
822
|
-
node: select$
|
|
822
|
+
node: select$q(),
|
|
823
823
|
variables: {},
|
|
824
824
|
}, snapshotRefresh);
|
|
825
825
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -830,19 +830,19 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
830
830
|
deepFreeze(snapshot.data);
|
|
831
831
|
return snapshot;
|
|
832
832
|
}
|
|
833
|
-
function ingestError$
|
|
834
|
-
const key = keyBuilder$
|
|
833
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
834
|
+
const key = keyBuilder$i(luvio, params);
|
|
835
835
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
836
836
|
const storeMetadataParams = {
|
|
837
|
-
ttl: TTL$
|
|
837
|
+
ttl: TTL$a,
|
|
838
838
|
namespace: keyPrefix,
|
|
839
|
-
version: VERSION$
|
|
840
|
-
representationName: RepresentationType$
|
|
839
|
+
version: VERSION$g,
|
|
840
|
+
representationName: RepresentationType$a
|
|
841
841
|
};
|
|
842
842
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
843
843
|
return errorSnapshot;
|
|
844
844
|
}
|
|
845
|
-
function createResourceRequest$
|
|
845
|
+
function createResourceRequest$b(config) {
|
|
846
846
|
const headers = {};
|
|
847
847
|
return {
|
|
848
848
|
baseUri: '/services/data/v60.0',
|
|
@@ -856,96 +856,96 @@ function createResourceRequest$a(config) {
|
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
858
|
|
|
859
|
-
const adapterName$
|
|
859
|
+
const adapterName$b = 'getActionableListDefinitions';
|
|
860
860
|
const getActionableListDefinitions_ConfigPropertyMetadata = [
|
|
861
861
|
generateParamConfigMetadata('id', false, 1 /* QueryParameter */, 0 /* String */),
|
|
862
862
|
generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
863
863
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
864
864
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
865
865
|
];
|
|
866
|
-
const getActionableListDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
867
|
-
const createResourceParams$
|
|
868
|
-
function keyBuilder$
|
|
869
|
-
const resourceParams = createResourceParams$
|
|
870
|
-
return keyBuilder$
|
|
866
|
+
const getActionableListDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getActionableListDefinitions_ConfigPropertyMetadata);
|
|
867
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(getActionableListDefinitions_ConfigPropertyMetadata);
|
|
868
|
+
function keyBuilder$h(luvio, config) {
|
|
869
|
+
const resourceParams = createResourceParams$b(config);
|
|
870
|
+
return keyBuilder$i(luvio, resourceParams);
|
|
871
871
|
}
|
|
872
|
-
function typeCheckConfig$
|
|
872
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
873
873
|
const config = {};
|
|
874
|
-
typeCheckConfig$
|
|
874
|
+
typeCheckConfig$c(untrustedConfig, config, getActionableListDefinitions_ConfigPropertyMetadata);
|
|
875
875
|
return config;
|
|
876
876
|
}
|
|
877
|
-
function validateAdapterConfig$
|
|
877
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
878
878
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
879
879
|
return null;
|
|
880
880
|
}
|
|
881
881
|
if (process.env.NODE_ENV !== 'production') {
|
|
882
882
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
883
883
|
}
|
|
884
|
-
const config = typeCheckConfig$
|
|
884
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
885
885
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
886
886
|
return null;
|
|
887
887
|
}
|
|
888
888
|
return config;
|
|
889
889
|
}
|
|
890
|
-
function adapterFragment$
|
|
891
|
-
createResourceParams$
|
|
892
|
-
return select$
|
|
890
|
+
function adapterFragment$5(luvio, config) {
|
|
891
|
+
createResourceParams$b(config);
|
|
892
|
+
return select$q();
|
|
893
893
|
}
|
|
894
|
-
function onFetchResponseSuccess$
|
|
895
|
-
const snapshot = ingestSuccess$
|
|
894
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
895
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
896
896
|
config,
|
|
897
|
-
resolve: () => buildNetworkSnapshot$
|
|
897
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
898
898
|
});
|
|
899
899
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
900
900
|
}
|
|
901
|
-
function onFetchResponseError$
|
|
902
|
-
const snapshot = ingestError$
|
|
901
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
902
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
903
903
|
config,
|
|
904
|
-
resolve: () => buildNetworkSnapshot$
|
|
904
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
905
905
|
});
|
|
906
906
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
907
907
|
}
|
|
908
|
-
function buildNetworkSnapshot$
|
|
909
|
-
const resourceParams = createResourceParams$
|
|
910
|
-
const request = createResourceRequest$
|
|
908
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
909
|
+
const resourceParams = createResourceParams$b(config);
|
|
910
|
+
const request = createResourceRequest$b(resourceParams);
|
|
911
911
|
return luvio.dispatchResourceRequest(request, options)
|
|
912
912
|
.then((response) => {
|
|
913
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
913
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
914
914
|
const cache = new StoreKeyMap();
|
|
915
|
-
getResponseCacheKeys$
|
|
915
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
916
916
|
return cache;
|
|
917
917
|
});
|
|
918
918
|
}, (response) => {
|
|
919
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
919
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
|
-
function buildNetworkSnapshotCachePolicy$
|
|
923
|
-
return buildNetworkSnapshotCachePolicy$
|
|
922
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
923
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
924
924
|
}
|
|
925
|
-
function buildCachedSnapshotCachePolicy$
|
|
925
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
926
926
|
const { luvio, config } = context;
|
|
927
927
|
const selector = {
|
|
928
|
-
recordId: keyBuilder$
|
|
929
|
-
node: adapterFragment$
|
|
928
|
+
recordId: keyBuilder$h(luvio, config),
|
|
929
|
+
node: adapterFragment$5(luvio, config),
|
|
930
930
|
variables: {},
|
|
931
931
|
};
|
|
932
932
|
const cacheSnapshot = storeLookup(selector, {
|
|
933
933
|
config,
|
|
934
|
-
resolve: () => buildNetworkSnapshot$
|
|
934
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
935
935
|
});
|
|
936
936
|
return cacheSnapshot;
|
|
937
937
|
}
|
|
938
938
|
const getActionableListDefinitionsAdapterFactory = (luvio) => function actionablelist__getActionableListDefinitions(untrustedConfig, requestContext) {
|
|
939
|
-
const config = validateAdapterConfig$
|
|
939
|
+
const config = validateAdapterConfig$b(untrustedConfig, getActionableListDefinitions_ConfigPropertyNames);
|
|
940
940
|
// Invalid or incomplete config
|
|
941
941
|
if (config === null) {
|
|
942
942
|
return null;
|
|
943
943
|
}
|
|
944
944
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
945
|
-
buildCachedSnapshotCachePolicy$
|
|
945
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
946
946
|
};
|
|
947
947
|
|
|
948
|
-
function validate$
|
|
948
|
+
function validate$n(obj, path = 'ActionableListDefinitionCreateInputRepresentation') {
|
|
949
949
|
const v_error = (() => {
|
|
950
950
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
951
951
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -997,8 +997,8 @@ function validate$m(obj, path = 'ActionableListDefinitionCreateInputRepresentati
|
|
|
997
997
|
return v_error === undefined ? null : v_error;
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
|
-
const VERSION$
|
|
1001
|
-
function validate$
|
|
1000
|
+
const VERSION$f = "c011e92d9100cd54f4f75b6951999c39";
|
|
1001
|
+
function validate$m(obj, path = 'ActionableListDefinitionStatusOutputRepresentation') {
|
|
1002
1002
|
const v_error = (() => {
|
|
1003
1003
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1004
1004
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1016,10 +1016,10 @@ function validate$l(obj, path = 'ActionableListDefinitionStatusOutputRepresentat
|
|
|
1016
1016
|
})();
|
|
1017
1017
|
return v_error === undefined ? null : v_error;
|
|
1018
1018
|
}
|
|
1019
|
-
const select$
|
|
1019
|
+
const select$p = function ActionableListDefinitionStatusOutputRepresentationSelect() {
|
|
1020
1020
|
return {
|
|
1021
1021
|
kind: 'Fragment',
|
|
1022
|
-
version: VERSION$
|
|
1022
|
+
version: VERSION$f,
|
|
1023
1023
|
private: [],
|
|
1024
1024
|
selections: [
|
|
1025
1025
|
{
|
|
@@ -1033,7 +1033,7 @@ const select$n = function ActionableListDefinitionStatusOutputRepresentationSele
|
|
|
1033
1033
|
]
|
|
1034
1034
|
};
|
|
1035
1035
|
};
|
|
1036
|
-
function equals$
|
|
1036
|
+
function equals$f(existing, incoming) {
|
|
1037
1037
|
const existing_code = existing.code;
|
|
1038
1038
|
const incoming_code = incoming.code;
|
|
1039
1039
|
if (!(existing_code === incoming_code)) {
|
|
@@ -1047,16 +1047,16 @@ function equals$e(existing, incoming) {
|
|
|
1047
1047
|
return true;
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
const TTL$
|
|
1051
|
-
const VERSION$
|
|
1052
|
-
function validate$
|
|
1050
|
+
const TTL$9 = 100;
|
|
1051
|
+
const VERSION$e = "7f7f8555df2466c8cbc7878266c1decd";
|
|
1052
|
+
function validate$l(obj, path = 'ActionableListDefinitionCreateOutputRepresentation') {
|
|
1053
1053
|
const v_error = (() => {
|
|
1054
1054
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1055
1055
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1056
1056
|
}
|
|
1057
1057
|
const obj_actionableListDefinition = obj.actionableListDefinition;
|
|
1058
1058
|
const path_actionableListDefinition = path + '.actionableListDefinition';
|
|
1059
|
-
const referencepath_actionableListDefinitionValidationError = validate$
|
|
1059
|
+
const referencepath_actionableListDefinitionValidationError = validate$p(obj_actionableListDefinition, path_actionableListDefinition);
|
|
1060
1060
|
if (referencepath_actionableListDefinitionValidationError !== null) {
|
|
1061
1061
|
let message = 'Object doesn\'t match ActionableListDefinitionOutputRepresentation (at "' + path_actionableListDefinition + '")\n';
|
|
1062
1062
|
message += referencepath_actionableListDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1064,7 +1064,7 @@ function validate$k(obj, path = 'ActionableListDefinitionCreateOutputRepresentat
|
|
|
1064
1064
|
}
|
|
1065
1065
|
const obj_status = obj.status;
|
|
1066
1066
|
const path_status = path + '.status';
|
|
1067
|
-
const referencepath_statusValidationError = validate$
|
|
1067
|
+
const referencepath_statusValidationError = validate$m(obj_status, path_status);
|
|
1068
1068
|
if (referencepath_statusValidationError !== null) {
|
|
1069
1069
|
let message = 'Object doesn\'t match ActionableListDefinitionStatusOutputRepresentation (at "' + path_status + '")\n';
|
|
1070
1070
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1073,25 +1073,25 @@ function validate$k(obj, path = 'ActionableListDefinitionCreateOutputRepresentat
|
|
|
1073
1073
|
})();
|
|
1074
1074
|
return v_error === undefined ? null : v_error;
|
|
1075
1075
|
}
|
|
1076
|
-
const RepresentationType$
|
|
1077
|
-
function keyBuilder$
|
|
1078
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1076
|
+
const RepresentationType$9 = 'ActionableListDefinitionCreateOutputRepresentation';
|
|
1077
|
+
function keyBuilder$g(luvio, config) {
|
|
1078
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
|
|
1079
1079
|
}
|
|
1080
1080
|
function keyBuilderFromType$5(luvio, object) {
|
|
1081
1081
|
const keyParams = {
|
|
1082
1082
|
id: object.actionableListDefinition.id
|
|
1083
1083
|
};
|
|
1084
|
-
return keyBuilder$
|
|
1084
|
+
return keyBuilder$g(luvio, keyParams);
|
|
1085
1085
|
}
|
|
1086
|
-
function normalize$
|
|
1086
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1087
1087
|
return input;
|
|
1088
1088
|
}
|
|
1089
|
-
const select$
|
|
1090
|
-
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$
|
|
1091
|
-
const { selections: ActionableListDefinitionStatusOutputRepresentation__selections, opaque: ActionableListDefinitionStatusOutputRepresentation__opaque, } = select$
|
|
1089
|
+
const select$o = function ActionableListDefinitionCreateOutputRepresentationSelect() {
|
|
1090
|
+
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$s();
|
|
1091
|
+
const { selections: ActionableListDefinitionStatusOutputRepresentation__selections, opaque: ActionableListDefinitionStatusOutputRepresentation__opaque, } = select$p();
|
|
1092
1092
|
return {
|
|
1093
1093
|
kind: 'Fragment',
|
|
1094
|
-
version: VERSION$
|
|
1094
|
+
version: VERSION$e,
|
|
1095
1095
|
private: [],
|
|
1096
1096
|
selections: [
|
|
1097
1097
|
{
|
|
@@ -1107,54 +1107,54 @@ const select$m = function ActionableListDefinitionCreateOutputRepresentationSele
|
|
|
1107
1107
|
]
|
|
1108
1108
|
};
|
|
1109
1109
|
};
|
|
1110
|
-
function equals$
|
|
1110
|
+
function equals$e(existing, incoming) {
|
|
1111
1111
|
const existing_actionableListDefinition = existing.actionableListDefinition;
|
|
1112
1112
|
const incoming_actionableListDefinition = incoming.actionableListDefinition;
|
|
1113
|
-
if (!(equals$
|
|
1113
|
+
if (!(equals$h(existing_actionableListDefinition, incoming_actionableListDefinition))) {
|
|
1114
1114
|
return false;
|
|
1115
1115
|
}
|
|
1116
1116
|
const existing_status = existing.status;
|
|
1117
1117
|
const incoming_status = incoming.status;
|
|
1118
|
-
if (!(equals$
|
|
1118
|
+
if (!(equals$f(existing_status, incoming_status))) {
|
|
1119
1119
|
return false;
|
|
1120
1120
|
}
|
|
1121
1121
|
return true;
|
|
1122
1122
|
}
|
|
1123
|
-
const ingest$
|
|
1123
|
+
const ingest$9 = function ActionableListDefinitionCreateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1124
1124
|
if (process.env.NODE_ENV !== 'production') {
|
|
1125
|
-
const validateError = validate$
|
|
1125
|
+
const validateError = validate$l(input);
|
|
1126
1126
|
if (validateError !== null) {
|
|
1127
1127
|
throw validateError;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
const key = keyBuilderFromType$5(luvio, input);
|
|
1131
|
-
const ttlToUse = TTL$
|
|
1132
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1131
|
+
const ttlToUse = TTL$9;
|
|
1132
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "actionablelist", VERSION$e, RepresentationType$9, equals$e);
|
|
1133
1133
|
return createLink(key);
|
|
1134
1134
|
};
|
|
1135
|
-
function getTypeCacheKeys$
|
|
1135
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
1136
1136
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1137
1137
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
1138
1138
|
rootKeySet.set(rootKey, {
|
|
1139
1139
|
namespace: keyPrefix,
|
|
1140
|
-
representationName: RepresentationType$
|
|
1140
|
+
representationName: RepresentationType$9,
|
|
1141
1141
|
mergeable: false
|
|
1142
1142
|
});
|
|
1143
1143
|
}
|
|
1144
1144
|
|
|
1145
|
-
function select$
|
|
1146
|
-
return select$
|
|
1145
|
+
function select$n(luvio, params) {
|
|
1146
|
+
return select$o();
|
|
1147
1147
|
}
|
|
1148
|
-
function getResponseCacheKeys$
|
|
1149
|
-
getTypeCacheKeys$
|
|
1148
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
1149
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
1150
1150
|
}
|
|
1151
|
-
function ingestSuccess$
|
|
1151
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
1152
1152
|
const { body } = response;
|
|
1153
1153
|
const key = keyBuilderFromType$5(luvio, body);
|
|
1154
|
-
luvio.storeIngest(key, ingest$
|
|
1154
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
1155
1155
|
const snapshot = luvio.storeLookup({
|
|
1156
1156
|
recordId: key,
|
|
1157
|
-
node: select$
|
|
1157
|
+
node: select$n(),
|
|
1158
1158
|
variables: {},
|
|
1159
1159
|
});
|
|
1160
1160
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1165,7 +1165,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
1165
1165
|
deepFreeze(snapshot.data);
|
|
1166
1166
|
return snapshot;
|
|
1167
1167
|
}
|
|
1168
|
-
function createResourceRequest$
|
|
1168
|
+
function createResourceRequest$a(config) {
|
|
1169
1169
|
const headers = {};
|
|
1170
1170
|
return {
|
|
1171
1171
|
baseUri: '/services/data/v60.0',
|
|
@@ -1179,45 +1179,45 @@ function createResourceRequest$9(config) {
|
|
|
1179
1179
|
};
|
|
1180
1180
|
}
|
|
1181
1181
|
|
|
1182
|
-
const adapterName$
|
|
1182
|
+
const adapterName$a = 'createActionableListDefinition';
|
|
1183
1183
|
const createActionableListDefinition_ConfigPropertyMetadata = [
|
|
1184
1184
|
generateParamConfigMetadata('actionableListDefinitionCreateInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1185
1185
|
];
|
|
1186
|
-
const createActionableListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1187
|
-
const createResourceParams$
|
|
1188
|
-
function typeCheckConfig$
|
|
1186
|
+
const createActionableListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createActionableListDefinition_ConfigPropertyMetadata);
|
|
1187
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(createActionableListDefinition_ConfigPropertyMetadata);
|
|
1188
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
1189
1189
|
const config = {};
|
|
1190
1190
|
const untrustedConfig_actionableListDefinitionCreateInput = untrustedConfig.actionableListDefinitionCreateInput;
|
|
1191
|
-
const referenceActionableListDefinitionCreateInputRepresentationValidationError = validate$
|
|
1191
|
+
const referenceActionableListDefinitionCreateInputRepresentationValidationError = validate$n(untrustedConfig_actionableListDefinitionCreateInput);
|
|
1192
1192
|
if (referenceActionableListDefinitionCreateInputRepresentationValidationError === null) {
|
|
1193
1193
|
config.actionableListDefinitionCreateInput = untrustedConfig_actionableListDefinitionCreateInput;
|
|
1194
1194
|
}
|
|
1195
1195
|
return config;
|
|
1196
1196
|
}
|
|
1197
|
-
function validateAdapterConfig$
|
|
1197
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
1198
1198
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1199
1199
|
return null;
|
|
1200
1200
|
}
|
|
1201
1201
|
if (process.env.NODE_ENV !== 'production') {
|
|
1202
1202
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1203
1203
|
}
|
|
1204
|
-
const config = typeCheckConfig$
|
|
1204
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
1205
1205
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1206
1206
|
return null;
|
|
1207
1207
|
}
|
|
1208
1208
|
return config;
|
|
1209
1209
|
}
|
|
1210
|
-
function buildNetworkSnapshot$
|
|
1211
|
-
const resourceParams = createResourceParams$
|
|
1212
|
-
const request = createResourceRequest$
|
|
1210
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
1211
|
+
const resourceParams = createResourceParams$a(config);
|
|
1212
|
+
const request = createResourceRequest$a(resourceParams);
|
|
1213
1213
|
return luvio.dispatchResourceRequest(request, options)
|
|
1214
1214
|
.then((response) => {
|
|
1215
1215
|
return luvio.handleSuccessResponse(() => {
|
|
1216
|
-
const snapshot = ingestSuccess$
|
|
1216
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
1217
1217
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1218
1218
|
}, () => {
|
|
1219
1219
|
const cache = new StoreKeyMap();
|
|
1220
|
-
getResponseCacheKeys$
|
|
1220
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
1221
1221
|
return cache;
|
|
1222
1222
|
});
|
|
1223
1223
|
}, (response) => {
|
|
@@ -1227,16 +1227,16 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
const createActionableListDefinitionAdapterFactory = (luvio) => {
|
|
1229
1229
|
return function createActionableListDefinition(untrustedConfig) {
|
|
1230
|
-
const config = validateAdapterConfig$
|
|
1230
|
+
const config = validateAdapterConfig$a(untrustedConfig, createActionableListDefinition_ConfigPropertyNames);
|
|
1231
1231
|
// Invalid or incomplete config
|
|
1232
1232
|
if (config === null) {
|
|
1233
1233
|
throw new Error('Invalid config for "createActionableListDefinition"');
|
|
1234
1234
|
}
|
|
1235
|
-
return buildNetworkSnapshot$
|
|
1235
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
1236
1236
|
};
|
|
1237
1237
|
};
|
|
1238
1238
|
|
|
1239
|
-
function validate$
|
|
1239
|
+
function validate$k(obj, path = 'ActionableListColumnUserInputRepresentation') {
|
|
1240
1240
|
const v_error = (() => {
|
|
1241
1241
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1242
1242
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1283,7 +1283,7 @@ function validate$j(obj, path = 'ActionableListColumnUserInputRepresentation') {
|
|
|
1283
1283
|
return v_error === undefined ? null : v_error;
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
|
-
function validate$
|
|
1286
|
+
function validate$j(obj, path = 'ActionableListColumnsUserUpsertInputRepresentation') {
|
|
1287
1287
|
const v_error = (() => {
|
|
1288
1288
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1289
1289
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1296,7 +1296,7 @@ function validate$i(obj, path = 'ActionableListColumnsUserUpsertInputRepresentat
|
|
|
1296
1296
|
for (let i = 0; i < obj_actionableListDatasetColumnUserPrefList.length; i++) {
|
|
1297
1297
|
const obj_actionableListDatasetColumnUserPrefList_item = obj_actionableListDatasetColumnUserPrefList[i];
|
|
1298
1298
|
const path_actionableListDatasetColumnUserPrefList_item = path_actionableListDatasetColumnUserPrefList + '[' + i + ']';
|
|
1299
|
-
const referencepath_actionableListDatasetColumnUserPrefList_itemValidationError = validate$
|
|
1299
|
+
const referencepath_actionableListDatasetColumnUserPrefList_itemValidationError = validate$k(obj_actionableListDatasetColumnUserPrefList_item, path_actionableListDatasetColumnUserPrefList_item);
|
|
1300
1300
|
if (referencepath_actionableListDatasetColumnUserPrefList_itemValidationError !== null) {
|
|
1301
1301
|
let message = 'Object doesn\'t match ActionableListColumnUserInputRepresentation (at "' + path_actionableListDatasetColumnUserPrefList_item + '")\n';
|
|
1302
1302
|
message += referencepath_actionableListDatasetColumnUserPrefList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1307,9 +1307,9 @@ function validate$i(obj, path = 'ActionableListColumnsUserUpsertInputRepresentat
|
|
|
1307
1307
|
return v_error === undefined ? null : v_error;
|
|
1308
1308
|
}
|
|
1309
1309
|
|
|
1310
|
-
const TTL$
|
|
1311
|
-
const VERSION$
|
|
1312
|
-
function validate$
|
|
1310
|
+
const TTL$8 = 5000;
|
|
1311
|
+
const VERSION$d = "9a39093642c984addcbd6425bb594898";
|
|
1312
|
+
function validate$i(obj, path = 'ActionableListColumnsUserOutputRepresentation') {
|
|
1313
1313
|
const v_error = (() => {
|
|
1314
1314
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1315
1315
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1395,23 +1395,23 @@ function validate$h(obj, path = 'ActionableListColumnsUserOutputRepresentation')
|
|
|
1395
1395
|
})();
|
|
1396
1396
|
return v_error === undefined ? null : v_error;
|
|
1397
1397
|
}
|
|
1398
|
-
const RepresentationType$
|
|
1399
|
-
function keyBuilder$
|
|
1400
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1398
|
+
const RepresentationType$8 = 'ActionableListColumnsUserOutputRepresentation';
|
|
1399
|
+
function keyBuilder$f(luvio, config) {
|
|
1400
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + (config.id === null ? '' : config.id);
|
|
1401
1401
|
}
|
|
1402
1402
|
function keyBuilderFromType$4(luvio, object) {
|
|
1403
1403
|
const keyParams = {
|
|
1404
1404
|
id: object.id
|
|
1405
1405
|
};
|
|
1406
|
-
return keyBuilder$
|
|
1406
|
+
return keyBuilder$f(luvio, keyParams);
|
|
1407
1407
|
}
|
|
1408
|
-
function normalize$
|
|
1408
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
1409
1409
|
return input;
|
|
1410
1410
|
}
|
|
1411
|
-
const select$
|
|
1411
|
+
const select$m = function ActionableListColumnsUserOutputRepresentationSelect() {
|
|
1412
1412
|
return {
|
|
1413
1413
|
kind: 'Fragment',
|
|
1414
|
-
version: VERSION$
|
|
1414
|
+
version: VERSION$d,
|
|
1415
1415
|
private: [],
|
|
1416
1416
|
selections: [
|
|
1417
1417
|
{
|
|
@@ -1429,7 +1429,7 @@ const select$k = function ActionableListColumnsUserOutputRepresentationSelect()
|
|
|
1429
1429
|
]
|
|
1430
1430
|
};
|
|
1431
1431
|
};
|
|
1432
|
-
function equals$
|
|
1432
|
+
function equals$d(existing, incoming) {
|
|
1433
1433
|
const existing_errorMessage = existing.errorMessage;
|
|
1434
1434
|
const incoming_errorMessage = incoming.errorMessage;
|
|
1435
1435
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -1447,41 +1447,41 @@ function equals$c(existing, incoming) {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
return true;
|
|
1449
1449
|
}
|
|
1450
|
-
const ingest$
|
|
1450
|
+
const ingest$8 = function ActionableListColumnsUserOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1451
1451
|
if (process.env.NODE_ENV !== 'production') {
|
|
1452
|
-
const validateError = validate$
|
|
1452
|
+
const validateError = validate$i(input);
|
|
1453
1453
|
if (validateError !== null) {
|
|
1454
1454
|
throw validateError;
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
1457
|
const key = keyBuilderFromType$4(luvio, input);
|
|
1458
|
-
const ttlToUse = TTL$
|
|
1459
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1458
|
+
const ttlToUse = TTL$8;
|
|
1459
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "actionablelist", VERSION$d, RepresentationType$8, equals$d);
|
|
1460
1460
|
return createLink(key);
|
|
1461
1461
|
};
|
|
1462
|
-
function getTypeCacheKeys$
|
|
1462
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
1463
1463
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1464
1464
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
1465
1465
|
rootKeySet.set(rootKey, {
|
|
1466
1466
|
namespace: keyPrefix,
|
|
1467
|
-
representationName: RepresentationType$
|
|
1467
|
+
representationName: RepresentationType$8,
|
|
1468
1468
|
mergeable: false
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
1471
|
|
|
1472
|
-
function select$
|
|
1473
|
-
return select$
|
|
1472
|
+
function select$l(luvio, params) {
|
|
1473
|
+
return select$m();
|
|
1474
1474
|
}
|
|
1475
|
-
function getResponseCacheKeys$
|
|
1476
|
-
getTypeCacheKeys$
|
|
1475
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
1476
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
1477
1477
|
}
|
|
1478
|
-
function ingestSuccess$
|
|
1478
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
1479
1479
|
const { body } = response;
|
|
1480
1480
|
const key = keyBuilderFromType$4(luvio, body);
|
|
1481
|
-
luvio.storeIngest(key, ingest$
|
|
1481
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
1482
1482
|
const snapshot = luvio.storeLookup({
|
|
1483
1483
|
recordId: key,
|
|
1484
|
-
node: select$
|
|
1484
|
+
node: select$l(),
|
|
1485
1485
|
variables: {},
|
|
1486
1486
|
});
|
|
1487
1487
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1492,7 +1492,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
1492
1492
|
deepFreeze(snapshot.data);
|
|
1493
1493
|
return snapshot;
|
|
1494
1494
|
}
|
|
1495
|
-
function createResourceRequest$
|
|
1495
|
+
function createResourceRequest$9(config) {
|
|
1496
1496
|
const headers = {};
|
|
1497
1497
|
return {
|
|
1498
1498
|
baseUri: '/services/data/v60.0',
|
|
@@ -1506,45 +1506,45 @@ function createResourceRequest$8(config) {
|
|
|
1506
1506
|
};
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
|
-
const adapterName$
|
|
1509
|
+
const adapterName$9 = 'upsertActionableListDatasetColumnUser';
|
|
1510
1510
|
const upsertActionableListDatasetColumnUser_ConfigPropertyMetadata = [
|
|
1511
1511
|
generateParamConfigMetadata('actionableListDatasetColumnUserPreferencesUpsertInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1512
1512
|
];
|
|
1513
|
-
const upsertActionableListDatasetColumnUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1514
|
-
const createResourceParams$
|
|
1515
|
-
function typeCheckConfig$
|
|
1513
|
+
const upsertActionableListDatasetColumnUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, upsertActionableListDatasetColumnUser_ConfigPropertyMetadata);
|
|
1514
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(upsertActionableListDatasetColumnUser_ConfigPropertyMetadata);
|
|
1515
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1516
1516
|
const config = {};
|
|
1517
1517
|
const untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput = untrustedConfig.actionableListDatasetColumnUserPreferencesUpsertInput;
|
|
1518
|
-
const referenceActionableListColumnsUserUpsertInputRepresentationValidationError = validate$
|
|
1518
|
+
const referenceActionableListColumnsUserUpsertInputRepresentationValidationError = validate$j(untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput);
|
|
1519
1519
|
if (referenceActionableListColumnsUserUpsertInputRepresentationValidationError === null) {
|
|
1520
1520
|
config.actionableListDatasetColumnUserPreferencesUpsertInput = untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput;
|
|
1521
1521
|
}
|
|
1522
1522
|
return config;
|
|
1523
1523
|
}
|
|
1524
|
-
function validateAdapterConfig$
|
|
1524
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1525
1525
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1526
1526
|
return null;
|
|
1527
1527
|
}
|
|
1528
1528
|
if (process.env.NODE_ENV !== 'production') {
|
|
1529
1529
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1530
1530
|
}
|
|
1531
|
-
const config = typeCheckConfig$
|
|
1531
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1532
1532
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1533
1533
|
return null;
|
|
1534
1534
|
}
|
|
1535
1535
|
return config;
|
|
1536
1536
|
}
|
|
1537
|
-
function buildNetworkSnapshot$
|
|
1538
|
-
const resourceParams = createResourceParams$
|
|
1539
|
-
const request = createResourceRequest$
|
|
1537
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
1538
|
+
const resourceParams = createResourceParams$9(config);
|
|
1539
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1540
1540
|
return luvio.dispatchResourceRequest(request, options)
|
|
1541
1541
|
.then((response) => {
|
|
1542
1542
|
return luvio.handleSuccessResponse(() => {
|
|
1543
|
-
const snapshot = ingestSuccess$
|
|
1543
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
1544
1544
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1545
1545
|
}, () => {
|
|
1546
1546
|
const cache = new StoreKeyMap();
|
|
1547
|
-
getResponseCacheKeys$
|
|
1547
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
1548
1548
|
return cache;
|
|
1549
1549
|
});
|
|
1550
1550
|
}, (response) => {
|
|
@@ -1554,17 +1554,17 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
const upsertActionableListDatasetColumnUserAdapterFactory = (luvio) => {
|
|
1556
1556
|
return function upsertActionableListDatasetColumnUser(untrustedConfig) {
|
|
1557
|
-
const config = validateAdapterConfig$
|
|
1557
|
+
const config = validateAdapterConfig$9(untrustedConfig, upsertActionableListDatasetColumnUser_ConfigPropertyNames);
|
|
1558
1558
|
// Invalid or incomplete config
|
|
1559
1559
|
if (config === null) {
|
|
1560
1560
|
throw new Error('Invalid config for "upsertActionableListDatasetColumnUser"');
|
|
1561
1561
|
}
|
|
1562
|
-
return buildNetworkSnapshot$
|
|
1562
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
1563
1563
|
};
|
|
1564
1564
|
};
|
|
1565
1565
|
|
|
1566
|
-
const VERSION$
|
|
1567
|
-
function validate$
|
|
1566
|
+
const VERSION$c = "bad75ff1a6600988b043c5bd86a36316";
|
|
1567
|
+
function validate$h(obj, path = 'ActionableListRefreshFilterConditionOutputRepresentation') {
|
|
1568
1568
|
const v_error = (() => {
|
|
1569
1569
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1570
1570
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1702,10 +1702,10 @@ function validate$g(obj, path = 'ActionableListRefreshFilterConditionOutputRepre
|
|
|
1702
1702
|
})();
|
|
1703
1703
|
return v_error === undefined ? null : v_error;
|
|
1704
1704
|
}
|
|
1705
|
-
const select$
|
|
1705
|
+
const select$k = function ActionableListRefreshFilterConditionOutputRepresentationSelect() {
|
|
1706
1706
|
return {
|
|
1707
1707
|
kind: 'Fragment',
|
|
1708
|
-
version: VERSION$
|
|
1708
|
+
version: VERSION$c,
|
|
1709
1709
|
private: [],
|
|
1710
1710
|
selections: [
|
|
1711
1711
|
{
|
|
@@ -1731,7 +1731,7 @@ const select$i = function ActionableListRefreshFilterConditionOutputRepresentati
|
|
|
1731
1731
|
]
|
|
1732
1732
|
};
|
|
1733
1733
|
};
|
|
1734
|
-
function equals$
|
|
1734
|
+
function equals$c(existing, incoming) {
|
|
1735
1735
|
const existing_columnName = existing.columnName;
|
|
1736
1736
|
const incoming_columnName = incoming.columnName;
|
|
1737
1737
|
if (!(existing_columnName === incoming_columnName)) {
|
|
@@ -1760,9 +1760,9 @@ function equals$b(existing, incoming) {
|
|
|
1760
1760
|
return true;
|
|
1761
1761
|
}
|
|
1762
1762
|
|
|
1763
|
-
const TTL$
|
|
1764
|
-
const VERSION$
|
|
1765
|
-
function validate$
|
|
1763
|
+
const TTL$7 = 5000;
|
|
1764
|
+
const VERSION$b = "9380a061b11e14a513ad18137293e8a5";
|
|
1765
|
+
function validate$g(obj, path = 'ActionableListFilterTemplateOutputRepresentation') {
|
|
1766
1766
|
const v_error = (() => {
|
|
1767
1767
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1768
1768
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1803,7 +1803,7 @@ function validate$f(obj, path = 'ActionableListFilterTemplateOutputRepresentatio
|
|
|
1803
1803
|
const path_filterList_item = path_filterList + '[' + i + ']';
|
|
1804
1804
|
let obj_filterList_item_union0 = null;
|
|
1805
1805
|
const obj_filterList_item_union0_error = (() => {
|
|
1806
|
-
const referencepath_filterList_itemValidationError = validate$
|
|
1806
|
+
const referencepath_filterList_itemValidationError = validate$h(obj_filterList_item, path_filterList_item);
|
|
1807
1807
|
if (referencepath_filterList_itemValidationError !== null) {
|
|
1808
1808
|
let message = 'Object doesn\'t match ActionableListRefreshFilterConditionOutputRepresentation (at "' + path_filterList_item + '")\n';
|
|
1809
1809
|
message += referencepath_filterList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1873,24 +1873,24 @@ function validate$f(obj, path = 'ActionableListFilterTemplateOutputRepresentatio
|
|
|
1873
1873
|
})();
|
|
1874
1874
|
return v_error === undefined ? null : v_error;
|
|
1875
1875
|
}
|
|
1876
|
-
const RepresentationType$
|
|
1877
|
-
function keyBuilder$
|
|
1878
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1876
|
+
const RepresentationType$7 = 'ActionableListFilterTemplateOutputRepresentation';
|
|
1877
|
+
function keyBuilder$e(luvio, config) {
|
|
1878
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
|
|
1879
1879
|
}
|
|
1880
1880
|
function keyBuilderFromType$3(luvio, object) {
|
|
1881
1881
|
const keyParams = {
|
|
1882
1882
|
id: object.id
|
|
1883
1883
|
};
|
|
1884
|
-
return keyBuilder$
|
|
1884
|
+
return keyBuilder$e(luvio, keyParams);
|
|
1885
1885
|
}
|
|
1886
|
-
function normalize$
|
|
1886
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1887
1887
|
return input;
|
|
1888
1888
|
}
|
|
1889
|
-
const select$
|
|
1890
|
-
const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$
|
|
1889
|
+
const select$j = function ActionableListFilterTemplateOutputRepresentationSelect() {
|
|
1890
|
+
const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$k();
|
|
1891
1891
|
return {
|
|
1892
1892
|
kind: 'Fragment',
|
|
1893
|
-
version: VERSION$
|
|
1893
|
+
version: VERSION$b,
|
|
1894
1894
|
private: [],
|
|
1895
1895
|
selections: [
|
|
1896
1896
|
{
|
|
@@ -1923,7 +1923,7 @@ const select$h = function ActionableListFilterTemplateOutputRepresentationSelect
|
|
|
1923
1923
|
]
|
|
1924
1924
|
};
|
|
1925
1925
|
};
|
|
1926
|
-
function equals$
|
|
1926
|
+
function equals$b(existing, incoming) {
|
|
1927
1927
|
const existing_id = existing.id;
|
|
1928
1928
|
const incoming_id = incoming.id;
|
|
1929
1929
|
if (!(existing_id === incoming_id)) {
|
|
@@ -1950,7 +1950,7 @@ function equals$a(existing, incoming) {
|
|
|
1950
1950
|
if (!(existing_filterList_item === incoming_filterList_item
|
|
1951
1951
|
|| (existing_filterList_item != null &&
|
|
1952
1952
|
incoming_filterList_item != null &&
|
|
1953
|
-
equals$
|
|
1953
|
+
equals$c(existing_filterList_item, incoming_filterList_item)))) {
|
|
1954
1954
|
return false;
|
|
1955
1955
|
}
|
|
1956
1956
|
});
|
|
@@ -1964,31 +1964,31 @@ function equals$a(existing, incoming) {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
return true;
|
|
1966
1966
|
}
|
|
1967
|
-
const ingest$
|
|
1967
|
+
const ingest$7 = function ActionableListFilterTemplateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1968
1968
|
if (process.env.NODE_ENV !== 'production') {
|
|
1969
|
-
const validateError = validate$
|
|
1969
|
+
const validateError = validate$g(input);
|
|
1970
1970
|
if (validateError !== null) {
|
|
1971
1971
|
throw validateError;
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
1974
|
const key = keyBuilderFromType$3(luvio, input);
|
|
1975
|
-
const ttlToUse = TTL$
|
|
1976
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1975
|
+
const ttlToUse = TTL$7;
|
|
1976
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "actionablelist", VERSION$b, RepresentationType$7, equals$b);
|
|
1977
1977
|
return createLink(key);
|
|
1978
1978
|
};
|
|
1979
|
-
function getTypeCacheKeys$
|
|
1979
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
1980
1980
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1981
1981
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1982
1982
|
rootKeySet.set(rootKey, {
|
|
1983
1983
|
namespace: keyPrefix,
|
|
1984
|
-
representationName: RepresentationType$
|
|
1984
|
+
representationName: RepresentationType$7,
|
|
1985
1985
|
mergeable: false
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
1988
1988
|
|
|
1989
|
-
const TTL$
|
|
1990
|
-
const VERSION$
|
|
1991
|
-
function validate$
|
|
1989
|
+
const TTL$6 = 5000;
|
|
1990
|
+
const VERSION$a = "1e66eb919610ba591f0e8168462a1df1";
|
|
1991
|
+
function validate$f(obj, path = 'ActionableListFilterTemplateListOutputRepresentation') {
|
|
1992
1992
|
const v_error = (() => {
|
|
1993
1993
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1994
1994
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2013,14 +2013,14 @@ function validate$e(obj, path = 'ActionableListFilterTemplateListOutputRepresent
|
|
|
2013
2013
|
})();
|
|
2014
2014
|
return v_error === undefined ? null : v_error;
|
|
2015
2015
|
}
|
|
2016
|
-
const RepresentationType$
|
|
2017
|
-
function normalize$
|
|
2016
|
+
const RepresentationType$6 = 'ActionableListFilterTemplateListOutputRepresentation';
|
|
2017
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
2018
2018
|
const input_filterTemplates = input.filterTemplates;
|
|
2019
2019
|
const input_filterTemplates_id = path.fullPath + '__filterTemplates';
|
|
2020
2020
|
for (let i = 0; i < input_filterTemplates.length; i++) {
|
|
2021
2021
|
const input_filterTemplates_item = input_filterTemplates[i];
|
|
2022
2022
|
let input_filterTemplates_item_id = input_filterTemplates_id + '__' + i;
|
|
2023
|
-
input_filterTemplates[i] = ingest$
|
|
2023
|
+
input_filterTemplates[i] = ingest$7(input_filterTemplates_item, {
|
|
2024
2024
|
fullPath: input_filterTemplates_item_id,
|
|
2025
2025
|
propertyName: i,
|
|
2026
2026
|
parent: {
|
|
@@ -2033,10 +2033,10 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
return input;
|
|
2035
2035
|
}
|
|
2036
|
-
const select$
|
|
2036
|
+
const select$i = function ActionableListFilterTemplateListOutputRepresentationSelect() {
|
|
2037
2037
|
return {
|
|
2038
2038
|
kind: 'Fragment',
|
|
2039
|
-
version: VERSION$
|
|
2039
|
+
version: VERSION$a,
|
|
2040
2040
|
private: [],
|
|
2041
2041
|
selections: [
|
|
2042
2042
|
{
|
|
@@ -2047,12 +2047,12 @@ const select$g = function ActionableListFilterTemplateListOutputRepresentationSe
|
|
|
2047
2047
|
name: 'filterTemplates',
|
|
2048
2048
|
kind: 'Link',
|
|
2049
2049
|
plural: true,
|
|
2050
|
-
fragment: select$
|
|
2050
|
+
fragment: select$j()
|
|
2051
2051
|
}
|
|
2052
2052
|
]
|
|
2053
2053
|
};
|
|
2054
2054
|
};
|
|
2055
|
-
function equals$
|
|
2055
|
+
function equals$a(existing, incoming) {
|
|
2056
2056
|
const existing_actionableListDefinitionId = existing.actionableListDefinitionId;
|
|
2057
2057
|
const incoming_actionableListDefinitionId = incoming.actionableListDefinitionId;
|
|
2058
2058
|
if (!(existing_actionableListDefinitionId === incoming_actionableListDefinitionId)) {
|
|
@@ -2070,48 +2070,48 @@ function equals$9(existing, incoming) {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
return true;
|
|
2072
2072
|
}
|
|
2073
|
-
const ingest$
|
|
2073
|
+
const ingest$6 = function ActionableListFilterTemplateListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2074
2074
|
if (process.env.NODE_ENV !== 'production') {
|
|
2075
|
-
const validateError = validate$
|
|
2075
|
+
const validateError = validate$f(input);
|
|
2076
2076
|
if (validateError !== null) {
|
|
2077
2077
|
throw validateError;
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
2080
2080
|
const key = path.fullPath;
|
|
2081
|
-
const ttlToUse = TTL$
|
|
2082
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2081
|
+
const ttlToUse = TTL$6;
|
|
2082
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "actionablelist", VERSION$a, RepresentationType$6, equals$a);
|
|
2083
2083
|
return createLink(key);
|
|
2084
2084
|
};
|
|
2085
|
-
function getTypeCacheKeys$
|
|
2085
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
2086
2086
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2087
2087
|
const rootKey = fullPathFactory();
|
|
2088
2088
|
rootKeySet.set(rootKey, {
|
|
2089
2089
|
namespace: keyPrefix,
|
|
2090
|
-
representationName: RepresentationType$
|
|
2090
|
+
representationName: RepresentationType$6,
|
|
2091
2091
|
mergeable: false
|
|
2092
2092
|
});
|
|
2093
2093
|
const input_filterTemplates_length = input.filterTemplates.length;
|
|
2094
2094
|
for (let i = 0; i < input_filterTemplates_length; i++) {
|
|
2095
|
-
getTypeCacheKeys$
|
|
2095
|
+
getTypeCacheKeys$7(rootKeySet, luvio, input.filterTemplates[i]);
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
2098
|
|
|
2099
|
-
function select$
|
|
2100
|
-
return select$
|
|
2099
|
+
function select$h(luvio, params) {
|
|
2100
|
+
return select$i();
|
|
2101
2101
|
}
|
|
2102
|
-
function keyBuilder$
|
|
2102
|
+
function keyBuilder$d(luvio, params) {
|
|
2103
2103
|
return keyPrefix + '::ActionableListFilterTemplateListOutputRepresentation:(' + 'actionableListDefinitionId:' + params.queryParams.actionableListDefinitionId + ')';
|
|
2104
2104
|
}
|
|
2105
|
-
function getResponseCacheKeys$
|
|
2106
|
-
getTypeCacheKeys$
|
|
2105
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
2106
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
2107
2107
|
}
|
|
2108
|
-
function ingestSuccess$
|
|
2108
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
2109
2109
|
const { body } = response;
|
|
2110
|
-
const key = keyBuilder$
|
|
2111
|
-
luvio.storeIngest(key, ingest$
|
|
2110
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
2111
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
2112
2112
|
const snapshot = luvio.storeLookup({
|
|
2113
2113
|
recordId: key,
|
|
2114
|
-
node: select$
|
|
2114
|
+
node: select$h(),
|
|
2115
2115
|
variables: {},
|
|
2116
2116
|
}, snapshotRefresh);
|
|
2117
2117
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2122,19 +2122,19 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2122
2122
|
deepFreeze(snapshot.data);
|
|
2123
2123
|
return snapshot;
|
|
2124
2124
|
}
|
|
2125
|
-
function ingestError$
|
|
2126
|
-
const key = keyBuilder$
|
|
2125
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
2126
|
+
const key = keyBuilder$d(luvio, params);
|
|
2127
2127
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2128
2128
|
const storeMetadataParams = {
|
|
2129
|
-
ttl: TTL$
|
|
2129
|
+
ttl: TTL$6,
|
|
2130
2130
|
namespace: keyPrefix,
|
|
2131
|
-
version: VERSION$
|
|
2132
|
-
representationName: RepresentationType$
|
|
2131
|
+
version: VERSION$a,
|
|
2132
|
+
representationName: RepresentationType$6
|
|
2133
2133
|
};
|
|
2134
2134
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2135
2135
|
return errorSnapshot;
|
|
2136
2136
|
}
|
|
2137
|
-
function createResourceRequest$
|
|
2137
|
+
function createResourceRequest$8(config) {
|
|
2138
2138
|
const headers = {};
|
|
2139
2139
|
return {
|
|
2140
2140
|
baseUri: '/services/data/v60.0',
|
|
@@ -2148,93 +2148,93 @@ function createResourceRequest$7(config) {
|
|
|
2148
2148
|
};
|
|
2149
2149
|
}
|
|
2150
2150
|
|
|
2151
|
-
const adapterName$
|
|
2151
|
+
const adapterName$8 = 'getFilterTemplatesForListDefinition';
|
|
2152
2152
|
const getFilterTemplatesForListDefinition_ConfigPropertyMetadata = [
|
|
2153
2153
|
generateParamConfigMetadata('actionableListDefinitionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2154
2154
|
];
|
|
2155
|
-
const getFilterTemplatesForListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2156
|
-
const createResourceParams$
|
|
2157
|
-
function keyBuilder$
|
|
2158
|
-
const resourceParams = createResourceParams$
|
|
2159
|
-
return keyBuilder$
|
|
2155
|
+
const getFilterTemplatesForListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getFilterTemplatesForListDefinition_ConfigPropertyMetadata);
|
|
2156
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(getFilterTemplatesForListDefinition_ConfigPropertyMetadata);
|
|
2157
|
+
function keyBuilder$c(luvio, config) {
|
|
2158
|
+
const resourceParams = createResourceParams$8(config);
|
|
2159
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
2160
2160
|
}
|
|
2161
|
-
function typeCheckConfig$
|
|
2161
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
2162
2162
|
const config = {};
|
|
2163
|
-
typeCheckConfig$
|
|
2163
|
+
typeCheckConfig$c(untrustedConfig, config, getFilterTemplatesForListDefinition_ConfigPropertyMetadata);
|
|
2164
2164
|
return config;
|
|
2165
2165
|
}
|
|
2166
|
-
function validateAdapterConfig$
|
|
2166
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
2167
2167
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2168
2168
|
return null;
|
|
2169
2169
|
}
|
|
2170
2170
|
if (process.env.NODE_ENV !== 'production') {
|
|
2171
2171
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2172
2172
|
}
|
|
2173
|
-
const config = typeCheckConfig$
|
|
2173
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
2174
2174
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2175
2175
|
return null;
|
|
2176
2176
|
}
|
|
2177
2177
|
return config;
|
|
2178
2178
|
}
|
|
2179
|
-
function adapterFragment$
|
|
2180
|
-
createResourceParams$
|
|
2181
|
-
return select$
|
|
2179
|
+
function adapterFragment$4(luvio, config) {
|
|
2180
|
+
createResourceParams$8(config);
|
|
2181
|
+
return select$h();
|
|
2182
2182
|
}
|
|
2183
|
-
function onFetchResponseSuccess$
|
|
2184
|
-
const snapshot = ingestSuccess$
|
|
2183
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
2184
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
2185
2185
|
config,
|
|
2186
|
-
resolve: () => buildNetworkSnapshot$
|
|
2186
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2187
2187
|
});
|
|
2188
2188
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2189
2189
|
}
|
|
2190
|
-
function onFetchResponseError$
|
|
2191
|
-
const snapshot = ingestError$
|
|
2190
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
2191
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
2192
2192
|
config,
|
|
2193
|
-
resolve: () => buildNetworkSnapshot$
|
|
2193
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2194
2194
|
});
|
|
2195
2195
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2196
2196
|
}
|
|
2197
|
-
function buildNetworkSnapshot$
|
|
2198
|
-
const resourceParams = createResourceParams$
|
|
2199
|
-
const request = createResourceRequest$
|
|
2197
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
2198
|
+
const resourceParams = createResourceParams$8(config);
|
|
2199
|
+
const request = createResourceRequest$8(resourceParams);
|
|
2200
2200
|
return luvio.dispatchResourceRequest(request, options)
|
|
2201
2201
|
.then((response) => {
|
|
2202
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2202
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
2203
2203
|
const cache = new StoreKeyMap();
|
|
2204
|
-
getResponseCacheKeys$
|
|
2204
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
2205
2205
|
return cache;
|
|
2206
2206
|
});
|
|
2207
2207
|
}, (response) => {
|
|
2208
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2208
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
2209
2209
|
});
|
|
2210
2210
|
}
|
|
2211
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2212
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2211
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2212
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
2213
2213
|
}
|
|
2214
|
-
function buildCachedSnapshotCachePolicy$
|
|
2214
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
2215
2215
|
const { luvio, config } = context;
|
|
2216
2216
|
const selector = {
|
|
2217
|
-
recordId: keyBuilder$
|
|
2218
|
-
node: adapterFragment$
|
|
2217
|
+
recordId: keyBuilder$c(luvio, config),
|
|
2218
|
+
node: adapterFragment$4(luvio, config),
|
|
2219
2219
|
variables: {},
|
|
2220
2220
|
};
|
|
2221
2221
|
const cacheSnapshot = storeLookup(selector, {
|
|
2222
2222
|
config,
|
|
2223
|
-
resolve: () => buildNetworkSnapshot$
|
|
2223
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2224
2224
|
});
|
|
2225
2225
|
return cacheSnapshot;
|
|
2226
2226
|
}
|
|
2227
2227
|
const getFilterTemplatesForListDefinitionAdapterFactory = (luvio) => function actionablelist__getFilterTemplatesForListDefinition(untrustedConfig, requestContext) {
|
|
2228
|
-
const config = validateAdapterConfig$
|
|
2228
|
+
const config = validateAdapterConfig$8(untrustedConfig, getFilterTemplatesForListDefinition_ConfigPropertyNames);
|
|
2229
2229
|
// Invalid or incomplete config
|
|
2230
2230
|
if (config === null) {
|
|
2231
2231
|
return null;
|
|
2232
2232
|
}
|
|
2233
2233
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2234
|
-
buildCachedSnapshotCachePolicy$
|
|
2234
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
2235
2235
|
};
|
|
2236
2236
|
|
|
2237
|
-
function validate$
|
|
2237
|
+
function validate$e(obj, path = 'ActionableListFilterInputRepresentation') {
|
|
2238
2238
|
const v_error = (() => {
|
|
2239
2239
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2240
2240
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2383,7 +2383,7 @@ function validate$d(obj, path = 'ActionableListFilterInputRepresentation') {
|
|
|
2383
2383
|
return v_error === undefined ? null : v_error;
|
|
2384
2384
|
}
|
|
2385
2385
|
|
|
2386
|
-
function validate$
|
|
2386
|
+
function validate$d(obj, path = 'ActionableListFilterTemplateInputRepresentation') {
|
|
2387
2387
|
const v_error = (() => {
|
|
2388
2388
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2389
2389
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2429,7 +2429,7 @@ function validate$c(obj, path = 'ActionableListFilterTemplateInputRepresentation
|
|
|
2429
2429
|
const path_filterList_item = path_filterList + '[' + i + ']';
|
|
2430
2430
|
let obj_filterList_item_union0 = null;
|
|
2431
2431
|
const obj_filterList_item_union0_error = (() => {
|
|
2432
|
-
const referencepath_filterList_itemValidationError = validate$
|
|
2432
|
+
const referencepath_filterList_itemValidationError = validate$e(obj_filterList_item, path_filterList_item);
|
|
2433
2433
|
if (referencepath_filterList_itemValidationError !== null) {
|
|
2434
2434
|
let message = 'Object doesn\'t match ActionableListFilterInputRepresentation (at "' + path_filterList_item + '")\n';
|
|
2435
2435
|
message += referencepath_filterList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2507,15 +2507,10 @@ function validate$c(obj, path = 'ActionableListFilterTemplateInputRepresentation
|
|
|
2507
2507
|
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2508
2508
|
return new TypeError(message);
|
|
2509
2509
|
}
|
|
2510
|
-
const
|
|
2511
|
-
const
|
|
2512
|
-
if (typeof
|
|
2513
|
-
return new TypeError('Expected "
|
|
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 + '")');
|
|
2510
|
+
const obj_isTemplateDetailEdit = obj.isTemplateDetailEdit;
|
|
2511
|
+
const path_isTemplateDetailEdit = path + '.isTemplateDetailEdit';
|
|
2512
|
+
if (typeof obj_isTemplateDetailEdit !== 'boolean') {
|
|
2513
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isTemplateDetailEdit + '" (at "' + path_isTemplateDetailEdit + '")');
|
|
2519
2514
|
}
|
|
2520
2515
|
const obj_sharingType = obj.sharingType;
|
|
2521
2516
|
const path_sharingType = path + '.sharingType';
|
|
@@ -2531,9 +2526,9 @@ function validate$c(obj, path = 'ActionableListFilterTemplateInputRepresentation
|
|
|
2531
2526
|
return v_error === undefined ? null : v_error;
|
|
2532
2527
|
}
|
|
2533
2528
|
|
|
2534
|
-
const TTL$
|
|
2535
|
-
const VERSION$
|
|
2536
|
-
function validate$
|
|
2529
|
+
const TTL$5 = 5000;
|
|
2530
|
+
const VERSION$9 = "3cd16ed4312e68ebb85a92c2878b54f2";
|
|
2531
|
+
function validate$c(obj, path = 'ActionableListFilterTemplateUpsertOutputRepresentation') {
|
|
2537
2532
|
const v_error = (() => {
|
|
2538
2533
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2539
2534
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2619,23 +2614,23 @@ function validate$b(obj, path = 'ActionableListFilterTemplateUpsertOutputReprese
|
|
|
2619
2614
|
})();
|
|
2620
2615
|
return v_error === undefined ? null : v_error;
|
|
2621
2616
|
}
|
|
2622
|
-
const RepresentationType$
|
|
2623
|
-
function keyBuilder$
|
|
2624
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2617
|
+
const RepresentationType$5 = 'ActionableListFilterTemplateUpsertOutputRepresentation';
|
|
2618
|
+
function keyBuilder$b(luvio, config) {
|
|
2619
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + (config.id === null ? '' : config.id);
|
|
2625
2620
|
}
|
|
2626
2621
|
function keyBuilderFromType$2(luvio, object) {
|
|
2627
2622
|
const keyParams = {
|
|
2628
2623
|
id: object.id
|
|
2629
2624
|
};
|
|
2630
|
-
return keyBuilder$
|
|
2625
|
+
return keyBuilder$b(luvio, keyParams);
|
|
2631
2626
|
}
|
|
2632
|
-
function normalize$
|
|
2627
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
2633
2628
|
return input;
|
|
2634
2629
|
}
|
|
2635
|
-
const select$
|
|
2630
|
+
const select$g = function ActionableListFilterTemplateUpsertOutputRepresentationSelect() {
|
|
2636
2631
|
return {
|
|
2637
2632
|
kind: 'Fragment',
|
|
2638
|
-
version: VERSION$
|
|
2633
|
+
version: VERSION$9,
|
|
2639
2634
|
private: [],
|
|
2640
2635
|
selections: [
|
|
2641
2636
|
{
|
|
@@ -2653,7 +2648,7 @@ const select$e = function ActionableListFilterTemplateUpsertOutputRepresentation
|
|
|
2653
2648
|
]
|
|
2654
2649
|
};
|
|
2655
2650
|
};
|
|
2656
|
-
function equals$
|
|
2651
|
+
function equals$9(existing, incoming) {
|
|
2657
2652
|
const existing_errorMessage = existing.errorMessage;
|
|
2658
2653
|
const incoming_errorMessage = incoming.errorMessage;
|
|
2659
2654
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -2671,41 +2666,41 @@ function equals$8(existing, incoming) {
|
|
|
2671
2666
|
}
|
|
2672
2667
|
return true;
|
|
2673
2668
|
}
|
|
2674
|
-
const ingest$
|
|
2669
|
+
const ingest$5 = function ActionableListFilterTemplateUpsertOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2675
2670
|
if (process.env.NODE_ENV !== 'production') {
|
|
2676
|
-
const validateError = validate$
|
|
2671
|
+
const validateError = validate$c(input);
|
|
2677
2672
|
if (validateError !== null) {
|
|
2678
2673
|
throw validateError;
|
|
2679
2674
|
}
|
|
2680
2675
|
}
|
|
2681
2676
|
const key = keyBuilderFromType$2(luvio, input);
|
|
2682
|
-
const ttlToUse = TTL$
|
|
2683
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2677
|
+
const ttlToUse = TTL$5;
|
|
2678
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "actionablelist", VERSION$9, RepresentationType$5, equals$9);
|
|
2684
2679
|
return createLink(key);
|
|
2685
2680
|
};
|
|
2686
|
-
function getTypeCacheKeys$
|
|
2681
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
2687
2682
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2688
2683
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
2689
2684
|
rootKeySet.set(rootKey, {
|
|
2690
2685
|
namespace: keyPrefix,
|
|
2691
|
-
representationName: RepresentationType$
|
|
2686
|
+
representationName: RepresentationType$5,
|
|
2692
2687
|
mergeable: false
|
|
2693
2688
|
});
|
|
2694
2689
|
}
|
|
2695
2690
|
|
|
2696
|
-
function select$
|
|
2697
|
-
return select$
|
|
2691
|
+
function select$f(luvio, params) {
|
|
2692
|
+
return select$g();
|
|
2698
2693
|
}
|
|
2699
|
-
function getResponseCacheKeys$
|
|
2700
|
-
getTypeCacheKeys$
|
|
2694
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
2695
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
2701
2696
|
}
|
|
2702
|
-
function ingestSuccess$
|
|
2697
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
2703
2698
|
const { body } = response;
|
|
2704
2699
|
const key = keyBuilderFromType$2(luvio, body);
|
|
2705
|
-
luvio.storeIngest(key, ingest$
|
|
2700
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
2706
2701
|
const snapshot = luvio.storeLookup({
|
|
2707
2702
|
recordId: key,
|
|
2708
|
-
node: select$
|
|
2703
|
+
node: select$f(),
|
|
2709
2704
|
variables: {},
|
|
2710
2705
|
});
|
|
2711
2706
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2716,7 +2711,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
2716
2711
|
deepFreeze(snapshot.data);
|
|
2717
2712
|
return snapshot;
|
|
2718
2713
|
}
|
|
2719
|
-
function createResourceRequest$
|
|
2714
|
+
function createResourceRequest$7(config) {
|
|
2720
2715
|
const headers = {};
|
|
2721
2716
|
return {
|
|
2722
2717
|
baseUri: '/services/data/v60.0',
|
|
@@ -2730,45 +2725,45 @@ function createResourceRequest$6(config) {
|
|
|
2730
2725
|
};
|
|
2731
2726
|
}
|
|
2732
2727
|
|
|
2733
|
-
const adapterName$
|
|
2728
|
+
const adapterName$7 = 'upsertActionableListFilterTemplate';
|
|
2734
2729
|
const upsertActionableListFilterTemplate_ConfigPropertyMetadata = [
|
|
2735
2730
|
generateParamConfigMetadata('actionableListDefinitionFilterInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2736
2731
|
];
|
|
2737
|
-
const upsertActionableListFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2738
|
-
const createResourceParams$
|
|
2739
|
-
function typeCheckConfig$
|
|
2732
|
+
const upsertActionableListFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, upsertActionableListFilterTemplate_ConfigPropertyMetadata);
|
|
2733
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(upsertActionableListFilterTemplate_ConfigPropertyMetadata);
|
|
2734
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
2740
2735
|
const config = {};
|
|
2741
2736
|
const untrustedConfig_actionableListDefinitionFilterInput = untrustedConfig.actionableListDefinitionFilterInput;
|
|
2742
|
-
const referenceActionableListFilterTemplateInputRepresentationValidationError = validate$
|
|
2737
|
+
const referenceActionableListFilterTemplateInputRepresentationValidationError = validate$d(untrustedConfig_actionableListDefinitionFilterInput);
|
|
2743
2738
|
if (referenceActionableListFilterTemplateInputRepresentationValidationError === null) {
|
|
2744
2739
|
config.actionableListDefinitionFilterInput = untrustedConfig_actionableListDefinitionFilterInput;
|
|
2745
2740
|
}
|
|
2746
2741
|
return config;
|
|
2747
2742
|
}
|
|
2748
|
-
function validateAdapterConfig$
|
|
2743
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
2749
2744
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2750
2745
|
return null;
|
|
2751
2746
|
}
|
|
2752
2747
|
if (process.env.NODE_ENV !== 'production') {
|
|
2753
2748
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2754
2749
|
}
|
|
2755
|
-
const config = typeCheckConfig$
|
|
2750
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
2756
2751
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2757
2752
|
return null;
|
|
2758
2753
|
}
|
|
2759
2754
|
return config;
|
|
2760
2755
|
}
|
|
2761
|
-
function buildNetworkSnapshot$
|
|
2762
|
-
const resourceParams = createResourceParams$
|
|
2763
|
-
const request = createResourceRequest$
|
|
2756
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
2757
|
+
const resourceParams = createResourceParams$7(config);
|
|
2758
|
+
const request = createResourceRequest$7(resourceParams);
|
|
2764
2759
|
return luvio.dispatchResourceRequest(request, options)
|
|
2765
2760
|
.then((response) => {
|
|
2766
2761
|
return luvio.handleSuccessResponse(() => {
|
|
2767
|
-
const snapshot = ingestSuccess$
|
|
2762
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
2768
2763
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2769
2764
|
}, () => {
|
|
2770
2765
|
const cache = new StoreKeyMap();
|
|
2771
|
-
getResponseCacheKeys$
|
|
2766
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
2772
2767
|
return cache;
|
|
2773
2768
|
});
|
|
2774
2769
|
}, (response) => {
|
|
@@ -2778,33 +2773,33 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
2778
2773
|
}
|
|
2779
2774
|
const upsertActionableListFilterTemplateAdapterFactory = (luvio) => {
|
|
2780
2775
|
return function upsertActionableListFilterTemplate(untrustedConfig) {
|
|
2781
|
-
const config = validateAdapterConfig$
|
|
2776
|
+
const config = validateAdapterConfig$7(untrustedConfig, upsertActionableListFilterTemplate_ConfigPropertyNames);
|
|
2782
2777
|
// Invalid or incomplete config
|
|
2783
2778
|
if (config === null) {
|
|
2784
2779
|
throw new Error('Invalid config for "upsertActionableListFilterTemplate"');
|
|
2785
2780
|
}
|
|
2786
|
-
return buildNetworkSnapshot$
|
|
2781
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
2787
2782
|
};
|
|
2788
2783
|
};
|
|
2789
2784
|
|
|
2790
|
-
function select$
|
|
2791
|
-
return select$
|
|
2785
|
+
function select$e(luvio, params) {
|
|
2786
|
+
return select$j();
|
|
2792
2787
|
}
|
|
2793
|
-
function keyBuilder$
|
|
2794
|
-
return keyBuilder$
|
|
2788
|
+
function keyBuilder$a(luvio, params) {
|
|
2789
|
+
return keyBuilder$e(luvio, {
|
|
2795
2790
|
id: params.urlParams.actionableListDefinitionFilterId
|
|
2796
2791
|
});
|
|
2797
2792
|
}
|
|
2798
|
-
function getResponseCacheKeys$
|
|
2799
|
-
getTypeCacheKeys$
|
|
2793
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
2794
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
2800
2795
|
}
|
|
2801
|
-
function ingestSuccess$
|
|
2796
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
2802
2797
|
const { body } = response;
|
|
2803
|
-
const key = keyBuilder$
|
|
2804
|
-
luvio.storeIngest(key, ingest$
|
|
2798
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
2799
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
2805
2800
|
const snapshot = luvio.storeLookup({
|
|
2806
2801
|
recordId: key,
|
|
2807
|
-
node: select$
|
|
2802
|
+
node: select$e(),
|
|
2808
2803
|
variables: {},
|
|
2809
2804
|
}, snapshotRefresh);
|
|
2810
2805
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2815,19 +2810,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2815
2810
|
deepFreeze(snapshot.data);
|
|
2816
2811
|
return snapshot;
|
|
2817
2812
|
}
|
|
2818
|
-
function ingestError$
|
|
2819
|
-
const key = keyBuilder$
|
|
2813
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
2814
|
+
const key = keyBuilder$a(luvio, params);
|
|
2820
2815
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2821
2816
|
const storeMetadataParams = {
|
|
2822
|
-
ttl: TTL$
|
|
2817
|
+
ttl: TTL$7,
|
|
2823
2818
|
namespace: keyPrefix,
|
|
2824
|
-
version: VERSION$
|
|
2825
|
-
representationName: RepresentationType$
|
|
2819
|
+
version: VERSION$b,
|
|
2820
|
+
representationName: RepresentationType$7
|
|
2826
2821
|
};
|
|
2827
2822
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2828
2823
|
return errorSnapshot;
|
|
2829
2824
|
}
|
|
2830
|
-
function createResourceRequest$
|
|
2825
|
+
function createResourceRequest$6(config) {
|
|
2831
2826
|
const headers = {};
|
|
2832
2827
|
return {
|
|
2833
2828
|
baseUri: '/services/data/v60.0',
|
|
@@ -2841,110 +2836,110 @@ function createResourceRequest$5(config) {
|
|
|
2841
2836
|
};
|
|
2842
2837
|
}
|
|
2843
2838
|
|
|
2844
|
-
const adapterName$
|
|
2839
|
+
const adapterName$6 = 'getFilterTemplate';
|
|
2845
2840
|
const getFilterTemplate_ConfigPropertyMetadata = [
|
|
2846
2841
|
generateParamConfigMetadata('actionableListDefinitionFilterId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2847
2842
|
];
|
|
2848
|
-
const getFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2849
|
-
const createResourceParams$
|
|
2850
|
-
function keyBuilder$
|
|
2851
|
-
const resourceParams = createResourceParams$
|
|
2852
|
-
return keyBuilder$
|
|
2843
|
+
const getFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getFilterTemplate_ConfigPropertyMetadata);
|
|
2844
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getFilterTemplate_ConfigPropertyMetadata);
|
|
2845
|
+
function keyBuilder$9(luvio, config) {
|
|
2846
|
+
const resourceParams = createResourceParams$6(config);
|
|
2847
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
2853
2848
|
}
|
|
2854
|
-
function typeCheckConfig$
|
|
2849
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
2855
2850
|
const config = {};
|
|
2856
|
-
typeCheckConfig$
|
|
2851
|
+
typeCheckConfig$c(untrustedConfig, config, getFilterTemplate_ConfigPropertyMetadata);
|
|
2857
2852
|
return config;
|
|
2858
2853
|
}
|
|
2859
|
-
function validateAdapterConfig$
|
|
2854
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
2860
2855
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2861
2856
|
return null;
|
|
2862
2857
|
}
|
|
2863
2858
|
if (process.env.NODE_ENV !== 'production') {
|
|
2864
2859
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2865
2860
|
}
|
|
2866
|
-
const config = typeCheckConfig$
|
|
2861
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
2867
2862
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2868
2863
|
return null;
|
|
2869
2864
|
}
|
|
2870
2865
|
return config;
|
|
2871
2866
|
}
|
|
2872
|
-
function adapterFragment$
|
|
2873
|
-
createResourceParams$
|
|
2874
|
-
return select$
|
|
2867
|
+
function adapterFragment$3(luvio, config) {
|
|
2868
|
+
createResourceParams$6(config);
|
|
2869
|
+
return select$e();
|
|
2875
2870
|
}
|
|
2876
|
-
function onFetchResponseSuccess$
|
|
2877
|
-
const snapshot = ingestSuccess$
|
|
2871
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
2872
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
2878
2873
|
config,
|
|
2879
|
-
resolve: () => buildNetworkSnapshot$
|
|
2874
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2880
2875
|
});
|
|
2881
2876
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2882
2877
|
}
|
|
2883
|
-
function onFetchResponseError$
|
|
2884
|
-
const snapshot = ingestError$
|
|
2878
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
2879
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
2885
2880
|
config,
|
|
2886
|
-
resolve: () => buildNetworkSnapshot$
|
|
2881
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2887
2882
|
});
|
|
2888
2883
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2889
2884
|
}
|
|
2890
|
-
function buildNetworkSnapshot$
|
|
2891
|
-
const resourceParams = createResourceParams$
|
|
2892
|
-
const request = createResourceRequest$
|
|
2885
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
2886
|
+
const resourceParams = createResourceParams$6(config);
|
|
2887
|
+
const request = createResourceRequest$6(resourceParams);
|
|
2893
2888
|
return luvio.dispatchResourceRequest(request, options)
|
|
2894
2889
|
.then((response) => {
|
|
2895
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2890
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
2896
2891
|
const cache = new StoreKeyMap();
|
|
2897
|
-
getResponseCacheKeys$
|
|
2892
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
2898
2893
|
return cache;
|
|
2899
2894
|
});
|
|
2900
2895
|
}, (response) => {
|
|
2901
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2896
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
2902
2897
|
});
|
|
2903
2898
|
}
|
|
2904
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2905
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2899
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2900
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
2906
2901
|
}
|
|
2907
|
-
function buildCachedSnapshotCachePolicy$
|
|
2902
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2908
2903
|
const { luvio, config } = context;
|
|
2909
2904
|
const selector = {
|
|
2910
|
-
recordId: keyBuilder$
|
|
2911
|
-
node: adapterFragment$
|
|
2905
|
+
recordId: keyBuilder$9(luvio, config),
|
|
2906
|
+
node: adapterFragment$3(luvio, config),
|
|
2912
2907
|
variables: {},
|
|
2913
2908
|
};
|
|
2914
2909
|
const cacheSnapshot = storeLookup(selector, {
|
|
2915
2910
|
config,
|
|
2916
|
-
resolve: () => buildNetworkSnapshot$
|
|
2911
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2917
2912
|
});
|
|
2918
2913
|
return cacheSnapshot;
|
|
2919
2914
|
}
|
|
2920
2915
|
const getFilterTemplateAdapterFactory = (luvio) => function actionablelist__getFilterTemplate(untrustedConfig, requestContext) {
|
|
2921
|
-
const config = validateAdapterConfig$
|
|
2916
|
+
const config = validateAdapterConfig$6(untrustedConfig, getFilterTemplate_ConfigPropertyNames);
|
|
2922
2917
|
// Invalid or incomplete config
|
|
2923
2918
|
if (config === null) {
|
|
2924
2919
|
return null;
|
|
2925
2920
|
}
|
|
2926
2921
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2927
|
-
buildCachedSnapshotCachePolicy$
|
|
2922
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
2928
2923
|
};
|
|
2929
2924
|
|
|
2930
|
-
function keyBuilder$
|
|
2931
|
-
return keyBuilder$
|
|
2925
|
+
function keyBuilder$8(luvio, params) {
|
|
2926
|
+
return keyBuilder$e(luvio, {
|
|
2932
2927
|
id: params.urlParams.actionableListDefinitionFilterId
|
|
2933
2928
|
});
|
|
2934
2929
|
}
|
|
2935
|
-
function getResponseCacheKeys$
|
|
2936
|
-
const key = keyBuilder$
|
|
2930
|
+
function getResponseCacheKeys$5(cacheKeyMap, luvio, resourceParams) {
|
|
2931
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
2937
2932
|
cacheKeyMap.set(key, {
|
|
2938
2933
|
namespace: keyPrefix,
|
|
2939
|
-
representationName: RepresentationType$
|
|
2934
|
+
representationName: RepresentationType$7,
|
|
2940
2935
|
mergeable: false
|
|
2941
2936
|
});
|
|
2942
2937
|
}
|
|
2943
2938
|
function evictSuccess(luvio, resourceParams) {
|
|
2944
|
-
const key = keyBuilder$
|
|
2939
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
2945
2940
|
luvio.storeEvict(key);
|
|
2946
2941
|
}
|
|
2947
|
-
function createResourceRequest$
|
|
2942
|
+
function createResourceRequest$5(config) {
|
|
2948
2943
|
const headers = {};
|
|
2949
2944
|
return {
|
|
2950
2945
|
baseUri: '/services/data/v60.0',
|
|
@@ -2958,33 +2953,33 @@ function createResourceRequest$4(config) {
|
|
|
2958
2953
|
};
|
|
2959
2954
|
}
|
|
2960
2955
|
|
|
2961
|
-
const adapterName$
|
|
2956
|
+
const adapterName$5 = 'deleteFilterTemplate';
|
|
2962
2957
|
const deleteFilterTemplate_ConfigPropertyMetadata = [
|
|
2963
2958
|
generateParamConfigMetadata('actionableListDefinitionFilterId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2964
2959
|
];
|
|
2965
|
-
const deleteFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2966
|
-
const createResourceParams$
|
|
2967
|
-
function typeCheckConfig$
|
|
2960
|
+
const deleteFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteFilterTemplate_ConfigPropertyMetadata);
|
|
2961
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(deleteFilterTemplate_ConfigPropertyMetadata);
|
|
2962
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
2968
2963
|
const config = {};
|
|
2969
|
-
typeCheckConfig$
|
|
2964
|
+
typeCheckConfig$c(untrustedConfig, config, deleteFilterTemplate_ConfigPropertyMetadata);
|
|
2970
2965
|
return config;
|
|
2971
2966
|
}
|
|
2972
|
-
function validateAdapterConfig$
|
|
2967
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
2973
2968
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2974
2969
|
return null;
|
|
2975
2970
|
}
|
|
2976
2971
|
if (process.env.NODE_ENV !== 'production') {
|
|
2977
2972
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2978
2973
|
}
|
|
2979
|
-
const config = typeCheckConfig$
|
|
2974
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
2980
2975
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2981
2976
|
return null;
|
|
2982
2977
|
}
|
|
2983
2978
|
return config;
|
|
2984
2979
|
}
|
|
2985
|
-
function buildNetworkSnapshot$
|
|
2986
|
-
const resourceParams = createResourceParams$
|
|
2987
|
-
const request = createResourceRequest$
|
|
2980
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
2981
|
+
const resourceParams = createResourceParams$5(config);
|
|
2982
|
+
const request = createResourceRequest$5(resourceParams);
|
|
2988
2983
|
return luvio.dispatchResourceRequest(request, options)
|
|
2989
2984
|
.then(() => {
|
|
2990
2985
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -2992,7 +2987,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
2992
2987
|
return luvio.storeBroadcast();
|
|
2993
2988
|
}, () => {
|
|
2994
2989
|
const cache = new StoreKeyMap();
|
|
2995
|
-
getResponseCacheKeys$
|
|
2990
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams);
|
|
2996
2991
|
return cache;
|
|
2997
2992
|
});
|
|
2998
2993
|
}, (response) => {
|
|
@@ -3002,16 +2997,16 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
3002
2997
|
}
|
|
3003
2998
|
const deleteFilterTemplateAdapterFactory = (luvio) => {
|
|
3004
2999
|
return function actionablelistdeleteFilterTemplate(untrustedConfig) {
|
|
3005
|
-
const config = validateAdapterConfig$
|
|
3000
|
+
const config = validateAdapterConfig$5(untrustedConfig, deleteFilterTemplate_ConfigPropertyNames);
|
|
3006
3001
|
// Invalid or incomplete config
|
|
3007
3002
|
if (config === null) {
|
|
3008
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3003
|
+
throw new Error(`Invalid config for "${adapterName$5}"`);
|
|
3009
3004
|
}
|
|
3010
|
-
return buildNetworkSnapshot$
|
|
3005
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
3011
3006
|
};
|
|
3012
3007
|
};
|
|
3013
3008
|
|
|
3014
|
-
function validate$
|
|
3009
|
+
function validate$b(obj, path = 'ActionableListRefreshInputRepresentation') {
|
|
3015
3010
|
const v_error = (() => {
|
|
3016
3011
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3017
3012
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3030,8 +3025,8 @@ function validate$a(obj, path = 'ActionableListRefreshInputRepresentation') {
|
|
|
3030
3025
|
return v_error === undefined ? null : v_error;
|
|
3031
3026
|
}
|
|
3032
3027
|
|
|
3033
|
-
const VERSION$
|
|
3034
|
-
function validate$
|
|
3028
|
+
const VERSION$8 = "eb64878570998dc7aa7bb9f8a21e65fb";
|
|
3029
|
+
function validate$a(obj, path = 'ActionableListRefreshFilterListOutputRepresentation') {
|
|
3035
3030
|
const v_error = (() => {
|
|
3036
3031
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3037
3032
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3046,7 +3041,7 @@ function validate$9(obj, path = 'ActionableListRefreshFilterListOutputRepresenta
|
|
|
3046
3041
|
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
3047
3042
|
let obj_conditions_item_union0 = null;
|
|
3048
3043
|
const obj_conditions_item_union0_error = (() => {
|
|
3049
|
-
const referencepath_conditions_itemValidationError = validate$
|
|
3044
|
+
const referencepath_conditions_itemValidationError = validate$h(obj_conditions_item, path_conditions_item);
|
|
3050
3045
|
if (referencepath_conditions_itemValidationError !== null) {
|
|
3051
3046
|
let message = 'Object doesn\'t match ActionableListRefreshFilterConditionOutputRepresentation (at "' + path_conditions_item + '")\n';
|
|
3052
3047
|
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3101,11 +3096,11 @@ function validate$9(obj, path = 'ActionableListRefreshFilterListOutputRepresenta
|
|
|
3101
3096
|
})();
|
|
3102
3097
|
return v_error === undefined ? null : v_error;
|
|
3103
3098
|
}
|
|
3104
|
-
const select$
|
|
3105
|
-
const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$
|
|
3099
|
+
const select$d = function ActionableListRefreshFilterListOutputRepresentationSelect() {
|
|
3100
|
+
const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$k();
|
|
3106
3101
|
return {
|
|
3107
3102
|
kind: 'Fragment',
|
|
3108
|
-
version: VERSION$
|
|
3103
|
+
version: VERSION$8,
|
|
3109
3104
|
private: [],
|
|
3110
3105
|
selections: [
|
|
3111
3106
|
{
|
|
@@ -3122,14 +3117,14 @@ const select$b = function ActionableListRefreshFilterListOutputRepresentationSel
|
|
|
3122
3117
|
]
|
|
3123
3118
|
};
|
|
3124
3119
|
};
|
|
3125
|
-
function equals$
|
|
3120
|
+
function equals$8(existing, incoming) {
|
|
3126
3121
|
const existing_conditions = existing.conditions;
|
|
3127
3122
|
const incoming_conditions = incoming.conditions;
|
|
3128
3123
|
const equals_conditions_items = equalsArray(existing_conditions, incoming_conditions, (existing_conditions_item, incoming_conditions_item) => {
|
|
3129
3124
|
if (!(existing_conditions_item === incoming_conditions_item
|
|
3130
3125
|
|| (existing_conditions_item != null &&
|
|
3131
3126
|
incoming_conditions_item != null &&
|
|
3132
|
-
equals$
|
|
3127
|
+
equals$c(existing_conditions_item, incoming_conditions_item)))) {
|
|
3133
3128
|
return false;
|
|
3134
3129
|
}
|
|
3135
3130
|
});
|
|
@@ -3144,9 +3139,9 @@ function equals$7(existing, incoming) {
|
|
|
3144
3139
|
return true;
|
|
3145
3140
|
}
|
|
3146
3141
|
|
|
3147
|
-
const TTL$
|
|
3148
|
-
const VERSION$
|
|
3149
|
-
function validate$
|
|
3142
|
+
const TTL$4 = 1000;
|
|
3143
|
+
const VERSION$7 = "f0e0d61c9d82fd013fe16d8a9bf9f198";
|
|
3144
|
+
function validate$9(obj, path = 'ActionableListRefreshOutputRepresentation') {
|
|
3150
3145
|
const v_error = (() => {
|
|
3151
3146
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3152
3147
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3233,7 +3228,7 @@ function validate$8(obj, path = 'ActionableListRefreshOutputRepresentation') {
|
|
|
3233
3228
|
const path_filters = path + '.filters';
|
|
3234
3229
|
let obj_filters_union0 = null;
|
|
3235
3230
|
const obj_filters_union0_error = (() => {
|
|
3236
|
-
const referencepath_filtersValidationError = validate$
|
|
3231
|
+
const referencepath_filtersValidationError = validate$a(obj_filters, path_filters);
|
|
3237
3232
|
if (referencepath_filtersValidationError !== null) {
|
|
3238
3233
|
let message = 'Object doesn\'t match ActionableListRefreshFilterListOutputRepresentation (at "' + path_filters + '")\n';
|
|
3239
3234
|
message += referencepath_filtersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3339,24 +3334,24 @@ function validate$8(obj, path = 'ActionableListRefreshOutputRepresentation') {
|
|
|
3339
3334
|
})();
|
|
3340
3335
|
return v_error === undefined ? null : v_error;
|
|
3341
3336
|
}
|
|
3342
|
-
const RepresentationType$
|
|
3343
|
-
function keyBuilder$
|
|
3344
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3337
|
+
const RepresentationType$4 = 'ActionableListRefreshOutputRepresentation';
|
|
3338
|
+
function keyBuilder$7(luvio, config) {
|
|
3339
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + (config.id === null ? '' : config.id);
|
|
3345
3340
|
}
|
|
3346
3341
|
function keyBuilderFromType$1(luvio, object) {
|
|
3347
3342
|
const keyParams = {
|
|
3348
3343
|
id: object.id
|
|
3349
3344
|
};
|
|
3350
|
-
return keyBuilder$
|
|
3345
|
+
return keyBuilder$7(luvio, keyParams);
|
|
3351
3346
|
}
|
|
3352
|
-
function normalize$
|
|
3347
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
3353
3348
|
return input;
|
|
3354
3349
|
}
|
|
3355
|
-
const select$
|
|
3356
|
-
const { selections: ActionableListRefreshFilterListOutputRepresentation__selections, opaque: ActionableListRefreshFilterListOutputRepresentation__opaque, } = select$
|
|
3350
|
+
const select$c = function ActionableListRefreshOutputRepresentationSelect() {
|
|
3351
|
+
const { selections: ActionableListRefreshFilterListOutputRepresentation__selections, opaque: ActionableListRefreshFilterListOutputRepresentation__opaque, } = select$d();
|
|
3357
3352
|
return {
|
|
3358
3353
|
kind: 'Fragment',
|
|
3359
|
-
version: VERSION$
|
|
3354
|
+
version: VERSION$7,
|
|
3360
3355
|
private: [],
|
|
3361
3356
|
selections: [
|
|
3362
3357
|
{
|
|
@@ -3392,7 +3387,7 @@ const select$a = function ActionableListRefreshOutputRepresentationSelect() {
|
|
|
3392
3387
|
]
|
|
3393
3388
|
};
|
|
3394
3389
|
};
|
|
3395
|
-
function equals$
|
|
3390
|
+
function equals$7(existing, incoming) {
|
|
3396
3391
|
const existing_candidateMemberCount = existing.candidateMemberCount;
|
|
3397
3392
|
const incoming_candidateMemberCount = incoming.candidateMemberCount;
|
|
3398
3393
|
if (!(existing_candidateMemberCount === incoming_candidateMemberCount)) {
|
|
@@ -3413,7 +3408,7 @@ function equals$6(existing, incoming) {
|
|
|
3413
3408
|
if (!(existing_filters === incoming_filters
|
|
3414
3409
|
|| (existing_filters != null &&
|
|
3415
3410
|
incoming_filters != null &&
|
|
3416
|
-
equals$
|
|
3411
|
+
equals$8(existing_filters, incoming_filters)))) {
|
|
3417
3412
|
return false;
|
|
3418
3413
|
}
|
|
3419
3414
|
const existing_id = existing.id;
|
|
@@ -3433,41 +3428,41 @@ function equals$6(existing, incoming) {
|
|
|
3433
3428
|
}
|
|
3434
3429
|
return true;
|
|
3435
3430
|
}
|
|
3436
|
-
const ingest$
|
|
3431
|
+
const ingest$4 = function ActionableListRefreshOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3437
3432
|
if (process.env.NODE_ENV !== 'production') {
|
|
3438
|
-
const validateError = validate$
|
|
3433
|
+
const validateError = validate$9(input);
|
|
3439
3434
|
if (validateError !== null) {
|
|
3440
3435
|
throw validateError;
|
|
3441
3436
|
}
|
|
3442
3437
|
}
|
|
3443
3438
|
const key = keyBuilderFromType$1(luvio, input);
|
|
3444
|
-
const ttlToUse = TTL$
|
|
3445
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3439
|
+
const ttlToUse = TTL$4;
|
|
3440
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "actionablelist", VERSION$7, RepresentationType$4, equals$7);
|
|
3446
3441
|
return createLink(key);
|
|
3447
3442
|
};
|
|
3448
|
-
function getTypeCacheKeys$
|
|
3443
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
3449
3444
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3450
3445
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
3451
3446
|
rootKeySet.set(rootKey, {
|
|
3452
3447
|
namespace: keyPrefix,
|
|
3453
|
-
representationName: RepresentationType$
|
|
3448
|
+
representationName: RepresentationType$4,
|
|
3454
3449
|
mergeable: false
|
|
3455
3450
|
});
|
|
3456
3451
|
}
|
|
3457
3452
|
|
|
3458
|
-
function select$
|
|
3459
|
-
return select$
|
|
3453
|
+
function select$b(luvio, params) {
|
|
3454
|
+
return select$c();
|
|
3460
3455
|
}
|
|
3461
|
-
function getResponseCacheKeys$
|
|
3462
|
-
getTypeCacheKeys$
|
|
3456
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
3457
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
3463
3458
|
}
|
|
3464
|
-
function ingestSuccess$
|
|
3459
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
3465
3460
|
const { body } = response;
|
|
3466
3461
|
const key = keyBuilderFromType$1(luvio, body);
|
|
3467
|
-
luvio.storeIngest(key, ingest$
|
|
3462
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
3468
3463
|
const snapshot = luvio.storeLookup({
|
|
3469
3464
|
recordId: key,
|
|
3470
|
-
node: select$
|
|
3465
|
+
node: select$b(),
|
|
3471
3466
|
variables: {},
|
|
3472
3467
|
});
|
|
3473
3468
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3478,7 +3473,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
3478
3473
|
deepFreeze(snapshot.data);
|
|
3479
3474
|
return snapshot;
|
|
3480
3475
|
}
|
|
3481
|
-
function createResourceRequest$
|
|
3476
|
+
function createResourceRequest$4(config) {
|
|
3482
3477
|
const headers = {};
|
|
3483
3478
|
return {
|
|
3484
3479
|
baseUri: '/services/data/v60.0',
|
|
@@ -3492,45 +3487,45 @@ function createResourceRequest$3(config) {
|
|
|
3492
3487
|
};
|
|
3493
3488
|
}
|
|
3494
3489
|
|
|
3495
|
-
const adapterName$
|
|
3490
|
+
const adapterName$4 = 'upsertActionableListRefreshFilter';
|
|
3496
3491
|
const upsertActionableListRefreshFilter_ConfigPropertyMetadata = [
|
|
3497
3492
|
generateParamConfigMetadata('actionableListRefreshInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3498
3493
|
];
|
|
3499
|
-
const upsertActionableListRefreshFilter_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3500
|
-
const createResourceParams$
|
|
3501
|
-
function typeCheckConfig$
|
|
3494
|
+
const upsertActionableListRefreshFilter_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, upsertActionableListRefreshFilter_ConfigPropertyMetadata);
|
|
3495
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(upsertActionableListRefreshFilter_ConfigPropertyMetadata);
|
|
3496
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
3502
3497
|
const config = {};
|
|
3503
3498
|
const untrustedConfig_actionableListRefreshInput = untrustedConfig.actionableListRefreshInput;
|
|
3504
|
-
const referenceActionableListRefreshInputRepresentationValidationError = validate$
|
|
3499
|
+
const referenceActionableListRefreshInputRepresentationValidationError = validate$b(untrustedConfig_actionableListRefreshInput);
|
|
3505
3500
|
if (referenceActionableListRefreshInputRepresentationValidationError === null) {
|
|
3506
3501
|
config.actionableListRefreshInput = untrustedConfig_actionableListRefreshInput;
|
|
3507
3502
|
}
|
|
3508
3503
|
return config;
|
|
3509
3504
|
}
|
|
3510
|
-
function validateAdapterConfig$
|
|
3505
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
3511
3506
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3512
3507
|
return null;
|
|
3513
3508
|
}
|
|
3514
3509
|
if (process.env.NODE_ENV !== 'production') {
|
|
3515
3510
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3516
3511
|
}
|
|
3517
|
-
const config = typeCheckConfig$
|
|
3512
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
3518
3513
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3519
3514
|
return null;
|
|
3520
3515
|
}
|
|
3521
3516
|
return config;
|
|
3522
3517
|
}
|
|
3523
|
-
function buildNetworkSnapshot$
|
|
3524
|
-
const resourceParams = createResourceParams$
|
|
3525
|
-
const request = createResourceRequest$
|
|
3518
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
3519
|
+
const resourceParams = createResourceParams$4(config);
|
|
3520
|
+
const request = createResourceRequest$4(resourceParams);
|
|
3526
3521
|
return luvio.dispatchResourceRequest(request, options)
|
|
3527
3522
|
.then((response) => {
|
|
3528
3523
|
return luvio.handleSuccessResponse(() => {
|
|
3529
|
-
const snapshot = ingestSuccess$
|
|
3524
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
3530
3525
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3531
3526
|
}, () => {
|
|
3532
3527
|
const cache = new StoreKeyMap();
|
|
3533
|
-
getResponseCacheKeys$
|
|
3528
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
3534
3529
|
return cache;
|
|
3535
3530
|
});
|
|
3536
3531
|
}, (response) => {
|
|
@@ -3540,18 +3535,18 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
3540
3535
|
}
|
|
3541
3536
|
const upsertActionableListRefreshFilterAdapterFactory = (luvio) => {
|
|
3542
3537
|
return function upsertActionableListRefreshFilter(untrustedConfig) {
|
|
3543
|
-
const config = validateAdapterConfig$
|
|
3538
|
+
const config = validateAdapterConfig$4(untrustedConfig, upsertActionableListRefreshFilter_ConfigPropertyNames);
|
|
3544
3539
|
// Invalid or incomplete config
|
|
3545
3540
|
if (config === null) {
|
|
3546
3541
|
throw new Error('Invalid config for "upsertActionableListRefreshFilter"');
|
|
3547
3542
|
}
|
|
3548
|
-
return buildNetworkSnapshot$
|
|
3543
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
3549
3544
|
};
|
|
3550
3545
|
};
|
|
3551
3546
|
|
|
3552
|
-
const TTL$
|
|
3553
|
-
const VERSION$
|
|
3554
|
-
function validate$
|
|
3547
|
+
const TTL$3 = 100;
|
|
3548
|
+
const VERSION$6 = "6ddedf71126866b776255aa167159b36";
|
|
3549
|
+
function validate$8(obj, path = 'ActionableListMembersOutputRepresentation') {
|
|
3555
3550
|
const v_error = (() => {
|
|
3556
3551
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3557
3552
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3571,14 +3566,14 @@ function validate$7(obj, path = 'ActionableListMembersOutputRepresentation') {
|
|
|
3571
3566
|
})();
|
|
3572
3567
|
return v_error === undefined ? null : v_error;
|
|
3573
3568
|
}
|
|
3574
|
-
const RepresentationType$
|
|
3575
|
-
function normalize$
|
|
3569
|
+
const RepresentationType$3 = 'ActionableListMembersOutputRepresentation';
|
|
3570
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
3576
3571
|
return input;
|
|
3577
3572
|
}
|
|
3578
|
-
const select$
|
|
3573
|
+
const select$a = function ActionableListMembersOutputRepresentationSelect() {
|
|
3579
3574
|
return {
|
|
3580
3575
|
kind: 'Fragment',
|
|
3581
|
-
version: VERSION$
|
|
3576
|
+
version: VERSION$6,
|
|
3582
3577
|
private: [],
|
|
3583
3578
|
selections: [
|
|
3584
3579
|
{
|
|
@@ -3589,7 +3584,7 @@ const select$8 = function ActionableListMembersOutputRepresentationSelect() {
|
|
|
3589
3584
|
]
|
|
3590
3585
|
};
|
|
3591
3586
|
};
|
|
3592
|
-
function equals$
|
|
3587
|
+
function equals$6(existing, incoming) {
|
|
3593
3588
|
const existing_memberIds = existing.memberIds;
|
|
3594
3589
|
const incoming_memberIds = incoming.memberIds;
|
|
3595
3590
|
const equals_memberIds_items = equalsArray(existing_memberIds, incoming_memberIds, (existing_memberIds_item, incoming_memberIds_item) => {
|
|
@@ -3602,44 +3597,44 @@ function equals$5(existing, incoming) {
|
|
|
3602
3597
|
}
|
|
3603
3598
|
return true;
|
|
3604
3599
|
}
|
|
3605
|
-
const ingest$
|
|
3600
|
+
const ingest$3 = function ActionableListMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3606
3601
|
if (process.env.NODE_ENV !== 'production') {
|
|
3607
|
-
const validateError = validate$
|
|
3602
|
+
const validateError = validate$8(input);
|
|
3608
3603
|
if (validateError !== null) {
|
|
3609
3604
|
throw validateError;
|
|
3610
3605
|
}
|
|
3611
3606
|
}
|
|
3612
3607
|
const key = path.fullPath;
|
|
3613
|
-
const ttlToUse = TTL$
|
|
3614
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3608
|
+
const ttlToUse = TTL$3;
|
|
3609
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "actionablelist", VERSION$6, RepresentationType$3, equals$6);
|
|
3615
3610
|
return createLink(key);
|
|
3616
3611
|
};
|
|
3617
|
-
function getTypeCacheKeys$
|
|
3612
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
3618
3613
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3619
3614
|
const rootKey = fullPathFactory();
|
|
3620
3615
|
rootKeySet.set(rootKey, {
|
|
3621
3616
|
namespace: keyPrefix,
|
|
3622
|
-
representationName: RepresentationType$
|
|
3617
|
+
representationName: RepresentationType$3,
|
|
3623
3618
|
mergeable: false
|
|
3624
3619
|
});
|
|
3625
3620
|
}
|
|
3626
3621
|
|
|
3627
|
-
function select$
|
|
3628
|
-
return select$
|
|
3622
|
+
function select$9(luvio, params) {
|
|
3623
|
+
return select$a();
|
|
3629
3624
|
}
|
|
3630
|
-
function keyBuilder$
|
|
3625
|
+
function keyBuilder$6(luvio, params) {
|
|
3631
3626
|
return keyPrefix + '::ActionableListMembersOutputRepresentation:(' + 'id:' + params.urlParams.id + ')';
|
|
3632
3627
|
}
|
|
3633
|
-
function getResponseCacheKeys$
|
|
3634
|
-
getTypeCacheKeys$
|
|
3628
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
3629
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
3635
3630
|
}
|
|
3636
|
-
function ingestSuccess$
|
|
3631
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
3637
3632
|
const { body } = response;
|
|
3638
|
-
const key = keyBuilder$
|
|
3639
|
-
luvio.storeIngest(key, ingest$
|
|
3633
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
3634
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
3640
3635
|
const snapshot = luvio.storeLookup({
|
|
3641
3636
|
recordId: key,
|
|
3642
|
-
node: select$
|
|
3637
|
+
node: select$9(),
|
|
3643
3638
|
variables: {},
|
|
3644
3639
|
}, snapshotRefresh);
|
|
3645
3640
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3650,19 +3645,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3650
3645
|
deepFreeze(snapshot.data);
|
|
3651
3646
|
return snapshot;
|
|
3652
3647
|
}
|
|
3653
|
-
function ingestError$
|
|
3654
|
-
const key = keyBuilder$
|
|
3648
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
3649
|
+
const key = keyBuilder$6(luvio, params);
|
|
3655
3650
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3656
3651
|
const storeMetadataParams = {
|
|
3657
|
-
ttl: TTL$
|
|
3652
|
+
ttl: TTL$3,
|
|
3658
3653
|
namespace: keyPrefix,
|
|
3659
|
-
version: VERSION$
|
|
3660
|
-
representationName: RepresentationType$
|
|
3654
|
+
version: VERSION$6,
|
|
3655
|
+
representationName: RepresentationType$3
|
|
3661
3656
|
};
|
|
3662
3657
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3663
3658
|
return errorSnapshot;
|
|
3664
3659
|
}
|
|
3665
|
-
function createResourceRequest$
|
|
3660
|
+
function createResourceRequest$3(config) {
|
|
3666
3661
|
const headers = {};
|
|
3667
3662
|
return {
|
|
3668
3663
|
baseUri: '/services/data/v60.0',
|
|
@@ -3676,93 +3671,93 @@ function createResourceRequest$2(config) {
|
|
|
3676
3671
|
};
|
|
3677
3672
|
}
|
|
3678
3673
|
|
|
3679
|
-
const adapterName$
|
|
3674
|
+
const adapterName$3 = 'getActionableListMembers';
|
|
3680
3675
|
const getActionableListMembers_ConfigPropertyMetadata = [
|
|
3681
3676
|
generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3682
3677
|
];
|
|
3683
|
-
const getActionableListMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3684
|
-
const createResourceParams$
|
|
3685
|
-
function keyBuilder$
|
|
3686
|
-
const resourceParams = createResourceParams$
|
|
3687
|
-
return keyBuilder$
|
|
3678
|
+
const getActionableListMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getActionableListMembers_ConfigPropertyMetadata);
|
|
3679
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getActionableListMembers_ConfigPropertyMetadata);
|
|
3680
|
+
function keyBuilder$5(luvio, config) {
|
|
3681
|
+
const resourceParams = createResourceParams$3(config);
|
|
3682
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
3688
3683
|
}
|
|
3689
|
-
function typeCheckConfig$
|
|
3684
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
3690
3685
|
const config = {};
|
|
3691
|
-
typeCheckConfig$
|
|
3686
|
+
typeCheckConfig$c(untrustedConfig, config, getActionableListMembers_ConfigPropertyMetadata);
|
|
3692
3687
|
return config;
|
|
3693
3688
|
}
|
|
3694
|
-
function validateAdapterConfig$
|
|
3689
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
3695
3690
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3696
3691
|
return null;
|
|
3697
3692
|
}
|
|
3698
3693
|
if (process.env.NODE_ENV !== 'production') {
|
|
3699
3694
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3700
3695
|
}
|
|
3701
|
-
const config = typeCheckConfig$
|
|
3696
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
3702
3697
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3703
3698
|
return null;
|
|
3704
3699
|
}
|
|
3705
3700
|
return config;
|
|
3706
3701
|
}
|
|
3707
|
-
function adapterFragment$
|
|
3708
|
-
createResourceParams$
|
|
3709
|
-
return select$
|
|
3702
|
+
function adapterFragment$2(luvio, config) {
|
|
3703
|
+
createResourceParams$3(config);
|
|
3704
|
+
return select$9();
|
|
3710
3705
|
}
|
|
3711
|
-
function onFetchResponseSuccess$
|
|
3712
|
-
const snapshot = ingestSuccess$
|
|
3706
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
3707
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
3713
3708
|
config,
|
|
3714
|
-
resolve: () => buildNetworkSnapshot$
|
|
3709
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
3715
3710
|
});
|
|
3716
3711
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3717
3712
|
}
|
|
3718
|
-
function onFetchResponseError$
|
|
3719
|
-
const snapshot = ingestError$
|
|
3713
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
3714
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
3720
3715
|
config,
|
|
3721
|
-
resolve: () => buildNetworkSnapshot$
|
|
3716
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
3722
3717
|
});
|
|
3723
3718
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3724
3719
|
}
|
|
3725
|
-
function buildNetworkSnapshot$
|
|
3726
|
-
const resourceParams = createResourceParams$
|
|
3727
|
-
const request = createResourceRequest$
|
|
3720
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
3721
|
+
const resourceParams = createResourceParams$3(config);
|
|
3722
|
+
const request = createResourceRequest$3(resourceParams);
|
|
3728
3723
|
return luvio.dispatchResourceRequest(request, options)
|
|
3729
3724
|
.then((response) => {
|
|
3730
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3725
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
3731
3726
|
const cache = new StoreKeyMap();
|
|
3732
|
-
getResponseCacheKeys$
|
|
3727
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
3733
3728
|
return cache;
|
|
3734
3729
|
});
|
|
3735
3730
|
}, (response) => {
|
|
3736
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3731
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
3737
3732
|
});
|
|
3738
3733
|
}
|
|
3739
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3740
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3734
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
3735
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
3741
3736
|
}
|
|
3742
|
-
function buildCachedSnapshotCachePolicy$
|
|
3737
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
3743
3738
|
const { luvio, config } = context;
|
|
3744
3739
|
const selector = {
|
|
3745
|
-
recordId: keyBuilder$
|
|
3746
|
-
node: adapterFragment$
|
|
3740
|
+
recordId: keyBuilder$5(luvio, config),
|
|
3741
|
+
node: adapterFragment$2(luvio, config),
|
|
3747
3742
|
variables: {},
|
|
3748
3743
|
};
|
|
3749
3744
|
const cacheSnapshot = storeLookup(selector, {
|
|
3750
3745
|
config,
|
|
3751
|
-
resolve: () => buildNetworkSnapshot$
|
|
3746
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
3752
3747
|
});
|
|
3753
3748
|
return cacheSnapshot;
|
|
3754
3749
|
}
|
|
3755
3750
|
const getActionableListMembersAdapterFactory = (luvio) => function actionablelist__getActionableListMembers(untrustedConfig, requestContext) {
|
|
3756
|
-
const config = validateAdapterConfig$
|
|
3751
|
+
const config = validateAdapterConfig$3(untrustedConfig, getActionableListMembers_ConfigPropertyNames);
|
|
3757
3752
|
// Invalid or incomplete config
|
|
3758
3753
|
if (config === null) {
|
|
3759
3754
|
return null;
|
|
3760
3755
|
}
|
|
3761
3756
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3762
|
-
buildCachedSnapshotCachePolicy$
|
|
3757
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
3763
3758
|
};
|
|
3764
3759
|
|
|
3765
|
-
function validate$
|
|
3760
|
+
function validate$7(obj, path = 'ActionableListUpsertInputRepresentation') {
|
|
3766
3761
|
const v_error = (() => {
|
|
3767
3762
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3768
3763
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3988,9 +3983,9 @@ function validate$6(obj, path = 'ActionableListUpsertInputRepresentation') {
|
|
|
3988
3983
|
return v_error === undefined ? null : v_error;
|
|
3989
3984
|
}
|
|
3990
3985
|
|
|
3991
|
-
const TTL$
|
|
3992
|
-
const VERSION$
|
|
3993
|
-
function validate$
|
|
3986
|
+
const TTL$2 = 100;
|
|
3987
|
+
const VERSION$5 = "e644bfad74e67f4d67a107b89ef51c01";
|
|
3988
|
+
function validate$6(obj, path = 'ActionableListUpsertOutputRepresentation') {
|
|
3994
3989
|
const v_error = (() => {
|
|
3995
3990
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3996
3991
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4076,23 +4071,23 @@ function validate$5(obj, path = 'ActionableListUpsertOutputRepresentation') {
|
|
|
4076
4071
|
})();
|
|
4077
4072
|
return v_error === undefined ? null : v_error;
|
|
4078
4073
|
}
|
|
4079
|
-
const RepresentationType$
|
|
4080
|
-
function keyBuilder$
|
|
4081
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4074
|
+
const RepresentationType$2 = 'ActionableListUpsertOutputRepresentation';
|
|
4075
|
+
function keyBuilder$4(luvio, config) {
|
|
4076
|
+
return keyPrefix + '::' + RepresentationType$2 + ':' + (config.id === null ? '' : config.id);
|
|
4082
4077
|
}
|
|
4083
4078
|
function keyBuilderFromType(luvio, object) {
|
|
4084
4079
|
const keyParams = {
|
|
4085
4080
|
id: object.id
|
|
4086
4081
|
};
|
|
4087
|
-
return keyBuilder$
|
|
4082
|
+
return keyBuilder$4(luvio, keyParams);
|
|
4088
4083
|
}
|
|
4089
|
-
function normalize$
|
|
4084
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
4090
4085
|
return input;
|
|
4091
4086
|
}
|
|
4092
|
-
const select$
|
|
4087
|
+
const select$8 = function ActionableListUpsertOutputRepresentationSelect() {
|
|
4093
4088
|
return {
|
|
4094
4089
|
kind: 'Fragment',
|
|
4095
|
-
version: VERSION$
|
|
4090
|
+
version: VERSION$5,
|
|
4096
4091
|
private: [],
|
|
4097
4092
|
selections: [
|
|
4098
4093
|
{
|
|
@@ -4110,7 +4105,7 @@ const select$6 = function ActionableListUpsertOutputRepresentationSelect() {
|
|
|
4110
4105
|
]
|
|
4111
4106
|
};
|
|
4112
4107
|
};
|
|
4113
|
-
function equals$
|
|
4108
|
+
function equals$5(existing, incoming) {
|
|
4114
4109
|
const existing_errorMessage = existing.errorMessage;
|
|
4115
4110
|
const incoming_errorMessage = incoming.errorMessage;
|
|
4116
4111
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -4128,41 +4123,41 @@ function equals$4(existing, incoming) {
|
|
|
4128
4123
|
}
|
|
4129
4124
|
return true;
|
|
4130
4125
|
}
|
|
4131
|
-
const ingest$
|
|
4126
|
+
const ingest$2 = function ActionableListUpsertOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4132
4127
|
if (process.env.NODE_ENV !== 'production') {
|
|
4133
|
-
const validateError = validate$
|
|
4128
|
+
const validateError = validate$6(input);
|
|
4134
4129
|
if (validateError !== null) {
|
|
4135
4130
|
throw validateError;
|
|
4136
4131
|
}
|
|
4137
4132
|
}
|
|
4138
4133
|
const key = keyBuilderFromType(luvio, input);
|
|
4139
|
-
const ttlToUse = TTL$
|
|
4140
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4134
|
+
const ttlToUse = TTL$2;
|
|
4135
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "actionablelist", VERSION$5, RepresentationType$2, equals$5);
|
|
4141
4136
|
return createLink(key);
|
|
4142
4137
|
};
|
|
4143
|
-
function getTypeCacheKeys$
|
|
4138
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
4144
4139
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4145
4140
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
4146
4141
|
rootKeySet.set(rootKey, {
|
|
4147
4142
|
namespace: keyPrefix,
|
|
4148
|
-
representationName: RepresentationType$
|
|
4143
|
+
representationName: RepresentationType$2,
|
|
4149
4144
|
mergeable: false
|
|
4150
4145
|
});
|
|
4151
4146
|
}
|
|
4152
4147
|
|
|
4153
|
-
function select$
|
|
4154
|
-
return select$
|
|
4148
|
+
function select$7(luvio, params) {
|
|
4149
|
+
return select$8();
|
|
4155
4150
|
}
|
|
4156
|
-
function getResponseCacheKeys$
|
|
4157
|
-
getTypeCacheKeys$
|
|
4151
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
4152
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
4158
4153
|
}
|
|
4159
|
-
function ingestSuccess$
|
|
4154
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
4160
4155
|
const { body } = response;
|
|
4161
4156
|
const key = keyBuilderFromType(luvio, body);
|
|
4162
|
-
luvio.storeIngest(key, ingest$
|
|
4157
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
4163
4158
|
const snapshot = luvio.storeLookup({
|
|
4164
4159
|
recordId: key,
|
|
4165
|
-
node: select$
|
|
4160
|
+
node: select$7(),
|
|
4166
4161
|
variables: {},
|
|
4167
4162
|
});
|
|
4168
4163
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4173,7 +4168,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
4173
4168
|
deepFreeze(snapshot.data);
|
|
4174
4169
|
return snapshot;
|
|
4175
4170
|
}
|
|
4176
|
-
function createResourceRequest$
|
|
4171
|
+
function createResourceRequest$2(config) {
|
|
4177
4172
|
const headers = {};
|
|
4178
4173
|
return {
|
|
4179
4174
|
baseUri: '/services/data/v60.0',
|
|
@@ -4187,45 +4182,45 @@ function createResourceRequest$1(config) {
|
|
|
4187
4182
|
};
|
|
4188
4183
|
}
|
|
4189
4184
|
|
|
4190
|
-
const adapterName$
|
|
4185
|
+
const adapterName$2 = 'upsertActionableList';
|
|
4191
4186
|
const upsertActionableList_ConfigPropertyMetadata = [
|
|
4192
4187
|
generateParamConfigMetadata('actionableListUpsertInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4193
4188
|
];
|
|
4194
|
-
const upsertActionableList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4195
|
-
const createResourceParams$
|
|
4196
|
-
function typeCheckConfig$
|
|
4189
|
+
const upsertActionableList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, upsertActionableList_ConfigPropertyMetadata);
|
|
4190
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(upsertActionableList_ConfigPropertyMetadata);
|
|
4191
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
4197
4192
|
const config = {};
|
|
4198
4193
|
const untrustedConfig_actionableListUpsertInput = untrustedConfig.actionableListUpsertInput;
|
|
4199
|
-
const referenceActionableListUpsertInputRepresentationValidationError = validate$
|
|
4194
|
+
const referenceActionableListUpsertInputRepresentationValidationError = validate$7(untrustedConfig_actionableListUpsertInput);
|
|
4200
4195
|
if (referenceActionableListUpsertInputRepresentationValidationError === null) {
|
|
4201
4196
|
config.actionableListUpsertInput = untrustedConfig_actionableListUpsertInput;
|
|
4202
4197
|
}
|
|
4203
4198
|
return config;
|
|
4204
4199
|
}
|
|
4205
|
-
function validateAdapterConfig$
|
|
4200
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
4206
4201
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4207
4202
|
return null;
|
|
4208
4203
|
}
|
|
4209
4204
|
if (process.env.NODE_ENV !== 'production') {
|
|
4210
4205
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4211
4206
|
}
|
|
4212
|
-
const config = typeCheckConfig$
|
|
4207
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
4213
4208
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4214
4209
|
return null;
|
|
4215
4210
|
}
|
|
4216
4211
|
return config;
|
|
4217
4212
|
}
|
|
4218
|
-
function buildNetworkSnapshot$
|
|
4219
|
-
const resourceParams = createResourceParams$
|
|
4220
|
-
const request = createResourceRequest$
|
|
4213
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
4214
|
+
const resourceParams = createResourceParams$2(config);
|
|
4215
|
+
const request = createResourceRequest$2(resourceParams);
|
|
4221
4216
|
return luvio.dispatchResourceRequest(request, options)
|
|
4222
4217
|
.then((response) => {
|
|
4223
4218
|
return luvio.handleSuccessResponse(() => {
|
|
4224
|
-
const snapshot = ingestSuccess$
|
|
4219
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
4225
4220
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4226
4221
|
}, () => {
|
|
4227
4222
|
const cache = new StoreKeyMap();
|
|
4228
|
-
getResponseCacheKeys$
|
|
4223
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
4229
4224
|
return cache;
|
|
4230
4225
|
});
|
|
4231
4226
|
}, (response) => {
|
|
@@ -4235,16 +4230,16 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
4235
4230
|
}
|
|
4236
4231
|
const upsertActionableListAdapterFactory = (luvio) => {
|
|
4237
4232
|
return function upsertActionableList(untrustedConfig) {
|
|
4238
|
-
const config = validateAdapterConfig$
|
|
4233
|
+
const config = validateAdapterConfig$2(untrustedConfig, upsertActionableList_ConfigPropertyNames);
|
|
4239
4234
|
// Invalid or incomplete config
|
|
4240
4235
|
if (config === null) {
|
|
4241
4236
|
throw new Error('Invalid config for "upsertActionableList"');
|
|
4242
4237
|
}
|
|
4243
|
-
return buildNetworkSnapshot$
|
|
4238
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
4244
4239
|
};
|
|
4245
4240
|
};
|
|
4246
4241
|
|
|
4247
|
-
function validate$
|
|
4242
|
+
function validate$5(obj, path = 'ActionableListDatasetInputRepresentation') {
|
|
4248
4243
|
const v_error = (() => {
|
|
4249
4244
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4250
4245
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4442,8 +4437,8 @@ function validate$4(obj, path = 'ActionableListDatasetInputRepresentation') {
|
|
|
4442
4437
|
return v_error === undefined ? null : v_error;
|
|
4443
4438
|
}
|
|
4444
4439
|
|
|
4445
|
-
const VERSION$
|
|
4446
|
-
function validate$
|
|
4440
|
+
const VERSION$4 = "aa13263ff52ac5e13b0a607ce970a4e0";
|
|
4441
|
+
function validate$4(obj, path = 'ActionableListDatasetColumnRepresentation') {
|
|
4447
4442
|
const v_error = (() => {
|
|
4448
4443
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4449
4444
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4638,10 +4633,10 @@ function validate$3(obj, path = 'ActionableListDatasetColumnRepresentation') {
|
|
|
4638
4633
|
})();
|
|
4639
4634
|
return v_error === undefined ? null : v_error;
|
|
4640
4635
|
}
|
|
4641
|
-
const select$
|
|
4636
|
+
const select$6 = function ActionableListDatasetColumnRepresentationSelect() {
|
|
4642
4637
|
return {
|
|
4643
4638
|
kind: 'Fragment',
|
|
4644
|
-
version: VERSION$
|
|
4639
|
+
version: VERSION$4,
|
|
4645
4640
|
private: [],
|
|
4646
4641
|
selections: [
|
|
4647
4642
|
{
|
|
@@ -4679,7 +4674,7 @@ const select$4 = function ActionableListDatasetColumnRepresentationSelect() {
|
|
|
4679
4674
|
]
|
|
4680
4675
|
};
|
|
4681
4676
|
};
|
|
4682
|
-
function equals$
|
|
4677
|
+
function equals$4(existing, incoming) {
|
|
4683
4678
|
const existing_id = existing.id;
|
|
4684
4679
|
const incoming_id = incoming.id;
|
|
4685
4680
|
if (!(existing_id === incoming_id)) {
|
|
@@ -4723,8 +4718,8 @@ function equals$3(existing, incoming) {
|
|
|
4723
4718
|
return true;
|
|
4724
4719
|
}
|
|
4725
4720
|
|
|
4726
|
-
const VERSION$
|
|
4727
|
-
function validate$
|
|
4721
|
+
const VERSION$3 = "ad799b06e079ea81d47ce361336c5282";
|
|
4722
|
+
function validate$3(obj, path = 'ActionableListDatasetRowRepresentation') {
|
|
4728
4723
|
const v_error = (() => {
|
|
4729
4724
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4730
4725
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4746,10 +4741,10 @@ function validate$2(obj, path = 'ActionableListDatasetRowRepresentation') {
|
|
|
4746
4741
|
})();
|
|
4747
4742
|
return v_error === undefined ? null : v_error;
|
|
4748
4743
|
}
|
|
4749
|
-
const select$
|
|
4744
|
+
const select$5 = function ActionableListDatasetRowRepresentationSelect() {
|
|
4750
4745
|
return {
|
|
4751
4746
|
kind: 'Fragment',
|
|
4752
|
-
version: VERSION$
|
|
4747
|
+
version: VERSION$3,
|
|
4753
4748
|
private: [],
|
|
4754
4749
|
selections: [
|
|
4755
4750
|
{
|
|
@@ -4760,7 +4755,7 @@ const select$3 = function ActionableListDatasetRowRepresentationSelect() {
|
|
|
4760
4755
|
]
|
|
4761
4756
|
};
|
|
4762
4757
|
};
|
|
4763
|
-
function equals$
|
|
4758
|
+
function equals$3(existing, incoming) {
|
|
4764
4759
|
const existing_rowMap = existing.rowMap;
|
|
4765
4760
|
const incoming_rowMap = incoming.rowMap;
|
|
4766
4761
|
const equals_rowMap_props = equalsObject(existing_rowMap, incoming_rowMap, (existing_rowMap_prop, incoming_rowMap_prop) => {
|
|
@@ -4774,8 +4769,8 @@ function equals$2(existing, incoming) {
|
|
|
4774
4769
|
return true;
|
|
4775
4770
|
}
|
|
4776
4771
|
|
|
4777
|
-
const VERSION$
|
|
4778
|
-
function validate$
|
|
4772
|
+
const VERSION$2 = "4ddcc2754150af16fd09c10d9fdabfbc";
|
|
4773
|
+
function validate$2(obj, path = 'ActionableListMemberStatusRepresentation') {
|
|
4779
4774
|
const v_error = (() => {
|
|
4780
4775
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4781
4776
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4861,10 +4856,10 @@ function validate$1(obj, path = 'ActionableListMemberStatusRepresentation') {
|
|
|
4861
4856
|
})();
|
|
4862
4857
|
return v_error === undefined ? null : v_error;
|
|
4863
4858
|
}
|
|
4864
|
-
const select$
|
|
4859
|
+
const select$4 = function ActionableListMemberStatusRepresentationSelect() {
|
|
4865
4860
|
return {
|
|
4866
4861
|
kind: 'Fragment',
|
|
4867
|
-
version: VERSION$
|
|
4862
|
+
version: VERSION$2,
|
|
4868
4863
|
private: [],
|
|
4869
4864
|
selections: [
|
|
4870
4865
|
{
|
|
@@ -4882,7 +4877,7 @@ const select$2 = function ActionableListMemberStatusRepresentationSelect() {
|
|
|
4882
4877
|
]
|
|
4883
4878
|
};
|
|
4884
4879
|
};
|
|
4885
|
-
function equals$
|
|
4880
|
+
function equals$2(existing, incoming) {
|
|
4886
4881
|
const existing_iconName = existing.iconName;
|
|
4887
4882
|
const incoming_iconName = incoming.iconName;
|
|
4888
4883
|
if (!(existing_iconName === incoming_iconName)) {
|
|
@@ -4901,9 +4896,9 @@ function equals$1(existing, incoming) {
|
|
|
4901
4896
|
return true;
|
|
4902
4897
|
}
|
|
4903
4898
|
|
|
4904
|
-
const TTL = 100;
|
|
4905
|
-
const VERSION = "dc69507b2503baa62caf5e85fd7545b8";
|
|
4906
|
-
function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation') {
|
|
4899
|
+
const TTL$1 = 100;
|
|
4900
|
+
const VERSION$1 = "dc69507b2503baa62caf5e85fd7545b8";
|
|
4901
|
+
function validate$1(obj, path = 'ActionableListDatasetByDefinitionRepresentation') {
|
|
4907
4902
|
const v_error = (() => {
|
|
4908
4903
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4909
4904
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4968,7 +4963,7 @@ function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation')
|
|
|
4968
4963
|
for (let i = 0; i < obj_datasetColumns.length; i++) {
|
|
4969
4964
|
const obj_datasetColumns_item = obj_datasetColumns[i];
|
|
4970
4965
|
const path_datasetColumns_item = path_datasetColumns + '[' + i + ']';
|
|
4971
|
-
const referencepath_datasetColumns_itemValidationError = validate$
|
|
4966
|
+
const referencepath_datasetColumns_itemValidationError = validate$4(obj_datasetColumns_item, path_datasetColumns_item);
|
|
4972
4967
|
if (referencepath_datasetColumns_itemValidationError !== null) {
|
|
4973
4968
|
let message = 'Object doesn\'t match ActionableListDatasetColumnRepresentation (at "' + path_datasetColumns_item + '")\n';
|
|
4974
4969
|
message += referencepath_datasetColumns_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4983,7 +4978,7 @@ function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation')
|
|
|
4983
4978
|
for (let i = 0; i < obj_datasetRows.length; i++) {
|
|
4984
4979
|
const obj_datasetRows_item = obj_datasetRows[i];
|
|
4985
4980
|
const path_datasetRows_item = path_datasetRows + '[' + i + ']';
|
|
4986
|
-
const referencepath_datasetRows_itemValidationError = validate$
|
|
4981
|
+
const referencepath_datasetRows_itemValidationError = validate$3(obj_datasetRows_item, path_datasetRows_item);
|
|
4987
4982
|
if (referencepath_datasetRows_itemValidationError !== null) {
|
|
4988
4983
|
let message = 'Object doesn\'t match ActionableListDatasetRowRepresentation (at "' + path_datasetRows_item + '")\n';
|
|
4989
4984
|
message += referencepath_datasetRows_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4998,7 +4993,7 @@ function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation')
|
|
|
4998
4993
|
for (let i = 0; i < obj_memberStatuses.length; i++) {
|
|
4999
4994
|
const obj_memberStatuses_item = obj_memberStatuses[i];
|
|
5000
4995
|
const path_memberStatuses_item = path_memberStatuses + '[' + i + ']';
|
|
5001
|
-
const referencepath_memberStatuses_itemValidationError = validate$
|
|
4996
|
+
const referencepath_memberStatuses_itemValidationError = validate$2(obj_memberStatuses_item, path_memberStatuses_item);
|
|
5002
4997
|
if (referencepath_memberStatuses_itemValidationError !== null) {
|
|
5003
4998
|
let message = 'Object doesn\'t match ActionableListMemberStatusRepresentation (at "' + path_memberStatuses_item + '")\n';
|
|
5004
4999
|
message += referencepath_memberStatuses_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5013,17 +5008,17 @@ function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation')
|
|
|
5013
5008
|
})();
|
|
5014
5009
|
return v_error === undefined ? null : v_error;
|
|
5015
5010
|
}
|
|
5016
|
-
const RepresentationType = 'ActionableListDatasetByDefinitionRepresentation';
|
|
5017
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
5011
|
+
const RepresentationType$1 = 'ActionableListDatasetByDefinitionRepresentation';
|
|
5012
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
5018
5013
|
return input;
|
|
5019
5014
|
}
|
|
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$
|
|
5015
|
+
const select$3 = function ActionableListDatasetByDefinitionRepresentationSelect() {
|
|
5016
|
+
const { selections: ActionableListDatasetColumnRepresentation__selections, opaque: ActionableListDatasetColumnRepresentation__opaque, } = select$6();
|
|
5017
|
+
const { selections: ActionableListDatasetRowRepresentation__selections, opaque: ActionableListDatasetRowRepresentation__opaque, } = select$5();
|
|
5018
|
+
const { selections: ActionableListMemberStatusRepresentation__selections, opaque: ActionableListMemberStatusRepresentation__opaque, } = select$4();
|
|
5024
5019
|
return {
|
|
5025
5020
|
kind: 'Fragment',
|
|
5026
|
-
version: VERSION,
|
|
5021
|
+
version: VERSION$1,
|
|
5027
5022
|
private: [],
|
|
5028
5023
|
selections: [
|
|
5029
5024
|
{
|
|
@@ -5059,7 +5054,7 @@ const select$1 = function ActionableListDatasetByDefinitionRepresentationSelect(
|
|
|
5059
5054
|
]
|
|
5060
5055
|
};
|
|
5061
5056
|
};
|
|
5062
|
-
function equals(existing, incoming) {
|
|
5057
|
+
function equals$1(existing, incoming) {
|
|
5063
5058
|
const existing_responseId = existing.responseId;
|
|
5064
5059
|
const incoming_responseId = incoming.responseId;
|
|
5065
5060
|
if (!(existing_responseId === incoming_responseId)) {
|
|
@@ -5078,7 +5073,7 @@ function equals(existing, incoming) {
|
|
|
5078
5073
|
const existing_datasetColumns = existing.datasetColumns;
|
|
5079
5074
|
const incoming_datasetColumns = incoming.datasetColumns;
|
|
5080
5075
|
const equals_datasetColumns_items = equalsArray(existing_datasetColumns, incoming_datasetColumns, (existing_datasetColumns_item, incoming_datasetColumns_item) => {
|
|
5081
|
-
if (!(equals$
|
|
5076
|
+
if (!(equals$4(existing_datasetColumns_item, incoming_datasetColumns_item))) {
|
|
5082
5077
|
return false;
|
|
5083
5078
|
}
|
|
5084
5079
|
});
|
|
@@ -5088,7 +5083,7 @@ function equals(existing, incoming) {
|
|
|
5088
5083
|
const existing_datasetRows = existing.datasetRows;
|
|
5089
5084
|
const incoming_datasetRows = incoming.datasetRows;
|
|
5090
5085
|
const equals_datasetRows_items = equalsArray(existing_datasetRows, incoming_datasetRows, (existing_datasetRows_item, incoming_datasetRows_item) => {
|
|
5091
|
-
if (!(equals$
|
|
5086
|
+
if (!(equals$3(existing_datasetRows_item, incoming_datasetRows_item))) {
|
|
5092
5087
|
return false;
|
|
5093
5088
|
}
|
|
5094
5089
|
});
|
|
@@ -5098,7 +5093,7 @@ function equals(existing, incoming) {
|
|
|
5098
5093
|
const existing_memberStatuses = existing.memberStatuses;
|
|
5099
5094
|
const incoming_memberStatuses = incoming.memberStatuses;
|
|
5100
5095
|
const equals_memberStatuses_items = equalsArray(existing_memberStatuses, incoming_memberStatuses, (existing_memberStatuses_item, incoming_memberStatuses_item) => {
|
|
5101
|
-
if (!(equals$
|
|
5096
|
+
if (!(equals$2(existing_memberStatuses_item, incoming_memberStatuses_item))) {
|
|
5102
5097
|
return false;
|
|
5103
5098
|
}
|
|
5104
5099
|
});
|
|
@@ -5107,7 +5102,229 @@ function equals(existing, incoming) {
|
|
|
5107
5102
|
}
|
|
5108
5103
|
return true;
|
|
5109
5104
|
}
|
|
5110
|
-
const ingest = function ActionableListDatasetByDefinitionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5105
|
+
const ingest$1 = function ActionableListDatasetByDefinitionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5106
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5107
|
+
const validateError = validate$1(input);
|
|
5108
|
+
if (validateError !== null) {
|
|
5109
|
+
throw validateError;
|
|
5110
|
+
}
|
|
5111
|
+
}
|
|
5112
|
+
const key = path.fullPath;
|
|
5113
|
+
const ttlToUse = TTL$1;
|
|
5114
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "actionablelist", VERSION$1, RepresentationType$1, equals$1);
|
|
5115
|
+
return createLink(key);
|
|
5116
|
+
};
|
|
5117
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
5118
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5119
|
+
const rootKey = fullPathFactory();
|
|
5120
|
+
rootKeySet.set(rootKey, {
|
|
5121
|
+
namespace: keyPrefix,
|
|
5122
|
+
representationName: RepresentationType$1,
|
|
5123
|
+
mergeable: false
|
|
5124
|
+
});
|
|
5125
|
+
}
|
|
5126
|
+
|
|
5127
|
+
function select$2(luvio, params) {
|
|
5128
|
+
return select$3();
|
|
5129
|
+
}
|
|
5130
|
+
function keyBuilder$3(luvio, params) {
|
|
5131
|
+
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) + '::' + 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) + ')';
|
|
5132
|
+
}
|
|
5133
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
5134
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
5135
|
+
}
|
|
5136
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
5137
|
+
const { body } = response;
|
|
5138
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
5139
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
5140
|
+
const snapshot = luvio.storeLookup({
|
|
5141
|
+
recordId: key,
|
|
5142
|
+
node: select$2(),
|
|
5143
|
+
variables: {},
|
|
5144
|
+
}, snapshotRefresh);
|
|
5145
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5146
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5147
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5148
|
+
}
|
|
5149
|
+
}
|
|
5150
|
+
deepFreeze(snapshot.data);
|
|
5151
|
+
return snapshot;
|
|
5152
|
+
}
|
|
5153
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
5154
|
+
const key = keyBuilder$3(luvio, params);
|
|
5155
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5156
|
+
const storeMetadataParams = {
|
|
5157
|
+
ttl: TTL$1,
|
|
5158
|
+
namespace: keyPrefix,
|
|
5159
|
+
version: VERSION$1,
|
|
5160
|
+
representationName: RepresentationType$1
|
|
5161
|
+
};
|
|
5162
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5163
|
+
return errorSnapshot;
|
|
5164
|
+
}
|
|
5165
|
+
function createResourceRequest$1(config) {
|
|
5166
|
+
const headers = {};
|
|
5167
|
+
return {
|
|
5168
|
+
baseUri: '/services/data/v60.0',
|
|
5169
|
+
basePath: '/connect/actionable-list-definition/rows',
|
|
5170
|
+
method: 'post',
|
|
5171
|
+
body: config.body,
|
|
5172
|
+
urlParams: {},
|
|
5173
|
+
queryParams: {},
|
|
5174
|
+
headers,
|
|
5175
|
+
priority: 'normal',
|
|
5176
|
+
};
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5179
|
+
const adapterName$1 = 'getActionableListDatasetInfo';
|
|
5180
|
+
const getActionableListDatasetInfo_ConfigPropertyMetadata = [
|
|
5181
|
+
generateParamConfigMetadata('actionableListDataset', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5182
|
+
];
|
|
5183
|
+
const getActionableListDatasetInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getActionableListDatasetInfo_ConfigPropertyMetadata);
|
|
5184
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getActionableListDatasetInfo_ConfigPropertyMetadata);
|
|
5185
|
+
function keyBuilder$2(luvio, config) {
|
|
5186
|
+
const resourceParams = createResourceParams$1(config);
|
|
5187
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
5188
|
+
}
|
|
5189
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
5190
|
+
const config = {};
|
|
5191
|
+
const untrustedConfig_actionableListDataset = untrustedConfig.actionableListDataset;
|
|
5192
|
+
const referenceActionableListDatasetInputRepresentationValidationError = validate$5(untrustedConfig_actionableListDataset);
|
|
5193
|
+
if (referenceActionableListDatasetInputRepresentationValidationError === null) {
|
|
5194
|
+
config.actionableListDataset = untrustedConfig_actionableListDataset;
|
|
5195
|
+
}
|
|
5196
|
+
return config;
|
|
5197
|
+
}
|
|
5198
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
5199
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5200
|
+
return null;
|
|
5201
|
+
}
|
|
5202
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5203
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5204
|
+
}
|
|
5205
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
5206
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5207
|
+
return null;
|
|
5208
|
+
}
|
|
5209
|
+
return config;
|
|
5210
|
+
}
|
|
5211
|
+
function adapterFragment$1(luvio, config) {
|
|
5212
|
+
createResourceParams$1(config);
|
|
5213
|
+
return select$2();
|
|
5214
|
+
}
|
|
5215
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
5216
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
5217
|
+
config,
|
|
5218
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5219
|
+
});
|
|
5220
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5221
|
+
}
|
|
5222
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
5223
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
5224
|
+
config,
|
|
5225
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5226
|
+
});
|
|
5227
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5228
|
+
}
|
|
5229
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
5230
|
+
const resourceParams = createResourceParams$1(config);
|
|
5231
|
+
const request = createResourceRequest$1(resourceParams);
|
|
5232
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5233
|
+
.then((response) => {
|
|
5234
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
5235
|
+
const cache = new StoreKeyMap();
|
|
5236
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
5237
|
+
return cache;
|
|
5238
|
+
});
|
|
5239
|
+
}, (response) => {
|
|
5240
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
5241
|
+
});
|
|
5242
|
+
}
|
|
5243
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
5244
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
|
|
5245
|
+
}
|
|
5246
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
5247
|
+
const { luvio, config } = context;
|
|
5248
|
+
const selector = {
|
|
5249
|
+
recordId: keyBuilder$2(luvio, config),
|
|
5250
|
+
node: adapterFragment$1(luvio, config),
|
|
5251
|
+
variables: {},
|
|
5252
|
+
};
|
|
5253
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5254
|
+
config,
|
|
5255
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5256
|
+
});
|
|
5257
|
+
return cacheSnapshot;
|
|
5258
|
+
}
|
|
5259
|
+
const getActionableListDatasetInfoAdapterFactory = (luvio) => function actionablelist__getActionableListDatasetInfo(untrustedConfig, requestContext) {
|
|
5260
|
+
const config = validateAdapterConfig$1(untrustedConfig, getActionableListDatasetInfo_ConfigPropertyNames);
|
|
5261
|
+
// Invalid or incomplete config
|
|
5262
|
+
if (config === null) {
|
|
5263
|
+
return null;
|
|
5264
|
+
}
|
|
5265
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5266
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
5267
|
+
};
|
|
5268
|
+
|
|
5269
|
+
const TTL = 1000;
|
|
5270
|
+
const VERSION = "a8e45eb355201ca8b8d9570ee039b4a4";
|
|
5271
|
+
function validate(obj, path = 'ActionableListDatasetColumnValuesOutputRepresentation') {
|
|
5272
|
+
const v_error = (() => {
|
|
5273
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5274
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5275
|
+
}
|
|
5276
|
+
const obj_datasetRows = obj.datasetRows;
|
|
5277
|
+
const path_datasetRows = path + '.datasetRows';
|
|
5278
|
+
if (!ArrayIsArray(obj_datasetRows)) {
|
|
5279
|
+
return new TypeError('Expected "array" but received "' + typeof obj_datasetRows + '" (at "' + path_datasetRows + '")');
|
|
5280
|
+
}
|
|
5281
|
+
for (let i = 0; i < obj_datasetRows.length; i++) {
|
|
5282
|
+
const obj_datasetRows_item = obj_datasetRows[i];
|
|
5283
|
+
const path_datasetRows_item = path_datasetRows + '[' + i + ']';
|
|
5284
|
+
const referencepath_datasetRows_itemValidationError = validate$3(obj_datasetRows_item, path_datasetRows_item);
|
|
5285
|
+
if (referencepath_datasetRows_itemValidationError !== null) {
|
|
5286
|
+
let message = 'Object doesn\'t match ActionableListDatasetRowRepresentation (at "' + path_datasetRows_item + '")\n';
|
|
5287
|
+
message += referencepath_datasetRows_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5288
|
+
return new TypeError(message);
|
|
5289
|
+
}
|
|
5290
|
+
}
|
|
5291
|
+
})();
|
|
5292
|
+
return v_error === undefined ? null : v_error;
|
|
5293
|
+
}
|
|
5294
|
+
const RepresentationType = 'ActionableListDatasetColumnValuesOutputRepresentation';
|
|
5295
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
5296
|
+
return input;
|
|
5297
|
+
}
|
|
5298
|
+
const select$1 = function ActionableListDatasetColumnValuesOutputRepresentationSelect() {
|
|
5299
|
+
const { selections: ActionableListDatasetRowRepresentation__selections, opaque: ActionableListDatasetRowRepresentation__opaque, } = select$5();
|
|
5300
|
+
return {
|
|
5301
|
+
kind: 'Fragment',
|
|
5302
|
+
version: VERSION,
|
|
5303
|
+
private: [],
|
|
5304
|
+
selections: [
|
|
5305
|
+
{
|
|
5306
|
+
name: 'datasetRows',
|
|
5307
|
+
kind: 'Object',
|
|
5308
|
+
plural: true,
|
|
5309
|
+
selections: ActionableListDatasetRowRepresentation__selections
|
|
5310
|
+
}
|
|
5311
|
+
]
|
|
5312
|
+
};
|
|
5313
|
+
};
|
|
5314
|
+
function equals(existing, incoming) {
|
|
5315
|
+
const existing_datasetRows = existing.datasetRows;
|
|
5316
|
+
const incoming_datasetRows = incoming.datasetRows;
|
|
5317
|
+
const equals_datasetRows_items = equalsArray(existing_datasetRows, incoming_datasetRows, (existing_datasetRows_item, incoming_datasetRows_item) => {
|
|
5318
|
+
if (!(equals$3(existing_datasetRows_item, incoming_datasetRows_item))) {
|
|
5319
|
+
return false;
|
|
5320
|
+
}
|
|
5321
|
+
});
|
|
5322
|
+
if (equals_datasetRows_items === false) {
|
|
5323
|
+
return false;
|
|
5324
|
+
}
|
|
5325
|
+
return true;
|
|
5326
|
+
}
|
|
5327
|
+
const ingest = function ActionableListDatasetColumnValuesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5111
5328
|
if (process.env.NODE_ENV !== 'production') {
|
|
5112
5329
|
const validateError = validate(input);
|
|
5113
5330
|
if (validateError !== null) {
|
|
@@ -5133,7 +5350,7 @@ function select(luvio, params) {
|
|
|
5133
5350
|
return select$1();
|
|
5134
5351
|
}
|
|
5135
5352
|
function keyBuilder$1(luvio, params) {
|
|
5136
|
-
return keyPrefix + '::
|
|
5353
|
+
return keyPrefix + '::ActionableListDatasetColumnValuesOutputRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'aldcId:' + params.urlParams.aldcId + ')';
|
|
5137
5354
|
}
|
|
5138
5355
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
5139
5356
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -5171,33 +5388,30 @@ function createResourceRequest(config) {
|
|
|
5171
5388
|
const headers = {};
|
|
5172
5389
|
return {
|
|
5173
5390
|
baseUri: '/services/data/v60.0',
|
|
5174
|
-
basePath: '/connect/actionable-list-definition/
|
|
5175
|
-
method: '
|
|
5176
|
-
body:
|
|
5177
|
-
urlParams:
|
|
5178
|
-
queryParams:
|
|
5391
|
+
basePath: '/connect/actionable-list-definition/column-values/' + config.urlParams.aldcId + '',
|
|
5392
|
+
method: 'get',
|
|
5393
|
+
body: null,
|
|
5394
|
+
urlParams: config.urlParams,
|
|
5395
|
+
queryParams: config.queryParams,
|
|
5179
5396
|
headers,
|
|
5180
5397
|
priority: 'normal',
|
|
5181
5398
|
};
|
|
5182
5399
|
}
|
|
5183
5400
|
|
|
5184
|
-
const adapterName = '
|
|
5185
|
-
const
|
|
5186
|
-
generateParamConfigMetadata('
|
|
5401
|
+
const adapterName = 'getDatasetColumnValues';
|
|
5402
|
+
const getDatasetColumnValues_ConfigPropertyMetadata = [
|
|
5403
|
+
generateParamConfigMetadata('aldcId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5404
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5187
5405
|
];
|
|
5188
|
-
const
|
|
5189
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
5406
|
+
const getDatasetColumnValues_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDatasetColumnValues_ConfigPropertyMetadata);
|
|
5407
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$c(getDatasetColumnValues_ConfigPropertyMetadata);
|
|
5190
5408
|
function keyBuilder(luvio, config) {
|
|
5191
5409
|
const resourceParams = createResourceParams(config);
|
|
5192
5410
|
return keyBuilder$1(luvio, resourceParams);
|
|
5193
5411
|
}
|
|
5194
5412
|
function typeCheckConfig(untrustedConfig) {
|
|
5195
5413
|
const config = {};
|
|
5196
|
-
|
|
5197
|
-
const referenceActionableListDatasetInputRepresentationValidationError = validate$4(untrustedConfig_actionableListDataset);
|
|
5198
|
-
if (referenceActionableListDatasetInputRepresentationValidationError === null) {
|
|
5199
|
-
config.actionableListDataset = untrustedConfig_actionableListDataset;
|
|
5200
|
-
}
|
|
5414
|
+
typeCheckConfig$c(untrustedConfig, config, getDatasetColumnValues_ConfigPropertyMetadata);
|
|
5201
5415
|
return config;
|
|
5202
5416
|
}
|
|
5203
5417
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -5246,7 +5460,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
5246
5460
|
});
|
|
5247
5461
|
}
|
|
5248
5462
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
5249
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5463
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
5250
5464
|
}
|
|
5251
5465
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
5252
5466
|
const { luvio, config } = context;
|
|
@@ -5261,8 +5475,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
5261
5475
|
});
|
|
5262
5476
|
return cacheSnapshot;
|
|
5263
5477
|
}
|
|
5264
|
-
const
|
|
5265
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
5478
|
+
const getDatasetColumnValuesAdapterFactory = (luvio) => function actionablelist__getDatasetColumnValues(untrustedConfig, requestContext) {
|
|
5479
|
+
const config = validateAdapterConfig(untrustedConfig, getDatasetColumnValues_ConfigPropertyNames);
|
|
5266
5480
|
// Invalid or incomplete config
|
|
5267
5481
|
if (config === null) {
|
|
5268
5482
|
return null;
|
|
@@ -5271,4 +5485,4 @@ const getActionableListDatasetInfoAdapterFactory = (luvio) => function actionabl
|
|
|
5271
5485
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
5272
5486
|
};
|
|
5273
5487
|
|
|
5274
|
-
export { createActionableListDefinitionAdapterFactory, deleteFilterTemplateAdapterFactory, getActionableListDatasetInfoAdapterFactory, getActionableListDefinitionsAdapterFactory, getActionableListMembersAdapterFactory, getFilterTemplateAdapterFactory, getFilterTemplatesForListDefinitionAdapterFactory, upsertActionableListAdapterFactory, upsertActionableListDatasetColumnUserAdapterFactory, upsertActionableListFilterTemplateAdapterFactory, upsertActionableListRefreshFilterAdapterFactory };
|
|
5488
|
+
export { createActionableListDefinitionAdapterFactory, deleteFilterTemplateAdapterFactory, getActionableListDatasetInfoAdapterFactory, getActionableListDefinitionsAdapterFactory, getActionableListMembersAdapterFactory, getDatasetColumnValuesAdapterFactory, getFilterTemplateAdapterFactory, getFilterTemplatesForListDefinitionAdapterFactory, upsertActionableListAdapterFactory, upsertActionableListDatasetColumnUserAdapterFactory, upsertActionableListFilterTemplateAdapterFactory, upsertActionableListRefreshFilterAdapterFactory };
|