@salesforce/lds-adapters-industries-actionablelist 1.216.0 → 1.218.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 +894 -181
- package/dist/es/es2018/types/src/generated/adapters/upsertActionableListRefreshFilter.d.ts +16 -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 +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectActionableListRefreshCount.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListRefreshFilterConditionOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListRefreshFilterListOutputRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListRefreshInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListRefreshOutputRepresentation.d.ts +57 -0
- package/package.json +1 -1
- package/sfdc/index.js +1044 -328
- package/src/raml/api.raml +81 -0
- 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$3, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$7, StoreKeyMap, createResourceParams as createResourceParams$7 } 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$f = "bf02e6b522639f3bb93ec16ccee16087";
|
|
171
|
+
function validate$k(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$h(obj, path = 'ALDDatasetColumnOutputRepresentation') {
|
|
|
326
326
|
})();
|
|
327
327
|
return v_error === undefined ? null : v_error;
|
|
328
328
|
}
|
|
329
|
-
const select$
|
|
329
|
+
const select$m = function ALDDatasetColumnOutputRepresentationSelect() {
|
|
330
330
|
return {
|
|
331
331
|
kind: 'Fragment',
|
|
332
|
-
version: VERSION$
|
|
332
|
+
version: VERSION$f,
|
|
333
333
|
private: [],
|
|
334
334
|
selections: [
|
|
335
335
|
{
|
|
@@ -371,7 +371,7 @@ const select$i = function ALDDatasetColumnOutputRepresentationSelect() {
|
|
|
371
371
|
]
|
|
372
372
|
};
|
|
373
373
|
};
|
|
374
|
-
function equals$
|
|
374
|
+
function equals$f(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$c(existing, incoming) {
|
|
|
420
420
|
return true;
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
const VERSION$
|
|
424
|
-
function validate$
|
|
423
|
+
const VERSION$e = "9d133a939d3bf9e4f6209870e525ff9f";
|
|
424
|
+
function validate$j(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$g(obj, path = 'ALDMemberStatusOutputRepresentation') {
|
|
|
444
444
|
})();
|
|
445
445
|
return v_error === undefined ? null : v_error;
|
|
446
446
|
}
|
|
447
|
-
const select$
|
|
447
|
+
const select$l = function ALDMemberStatusOutputRepresentationSelect() {
|
|
448
448
|
return {
|
|
449
449
|
kind: 'Fragment',
|
|
450
|
-
version: VERSION$
|
|
450
|
+
version: VERSION$e,
|
|
451
451
|
private: [],
|
|
452
452
|
selections: [
|
|
453
453
|
{
|
|
@@ -465,7 +465,7 @@ const select$h = function ALDMemberStatusOutputRepresentationSelect() {
|
|
|
465
465
|
]
|
|
466
466
|
};
|
|
467
467
|
};
|
|
468
|
-
function equals$
|
|
468
|
+
function equals$e(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$b(existing, incoming) {
|
|
|
484
484
|
return true;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
const VERSION$
|
|
488
|
-
function validate$
|
|
487
|
+
const VERSION$d = "63348e0d2a5e8d3cf7f7ddc110bf6cf4";
|
|
488
|
+
function validate$i(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$f(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$k(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$f(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$j(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$f(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$k = function ActionableListDefinitionOutputRepresentationSelect() {
|
|
609
|
+
const { selections: ALDDatasetColumnOutputRepresentation__selections, opaque: ALDDatasetColumnOutputRepresentation__opaque, } = select$m();
|
|
610
|
+
const { selections: ALDMemberStatusOutputRepresentation__selections, opaque: ALDMemberStatusOutputRepresentation__opaque, } = select$l();
|
|
611
611
|
return {
|
|
612
612
|
kind: 'Fragment',
|
|
613
|
-
version: VERSION$
|
|
613
|
+
version: VERSION$d,
|
|
614
614
|
private: [],
|
|
615
615
|
selections: [
|
|
616
616
|
{
|
|
@@ -660,7 +660,7 @@ const select$g = function ActionableListDefinitionOutputRepresentationSelect() {
|
|
|
660
660
|
]
|
|
661
661
|
};
|
|
662
662
|
};
|
|
663
|
-
function equals$
|
|
663
|
+
function equals$d(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$a(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$f(existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item))) {
|
|
698
698
|
return false;
|
|
699
699
|
}
|
|
700
700
|
});
|
|
@@ -704,7 +704,7 @@ function equals$a(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$e(existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item))) {
|
|
708
708
|
return false;
|
|
709
709
|
}
|
|
710
710
|
});
|
|
@@ -724,9 +724,9 @@ function equals$a(existing, incoming) {
|
|
|
724
724
|
return true;
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
-
const TTL$
|
|
728
|
-
const VERSION$
|
|
729
|
-
function validate$
|
|
727
|
+
const TTL$6 = 100;
|
|
728
|
+
const VERSION$c = "4c1ba3bd226b3670b78af4e7ea159854";
|
|
729
|
+
function validate$h(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$e(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$i(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$e(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$6 = 'ActionableListDefinitionGetAllOutputRepresentation';
|
|
753
|
+
function normalize$6(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$j = function ActionableListDefinitionGetAllOutputRepresentationSelect() {
|
|
757
|
+
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$k();
|
|
758
758
|
return {
|
|
759
759
|
kind: 'Fragment',
|
|
760
|
-
version: VERSION$
|
|
760
|
+
version: VERSION$c,
|
|
761
761
|
private: [],
|
|
762
762
|
selections: [
|
|
763
763
|
{
|
|
@@ -769,11 +769,11 @@ const select$f = function ActionableListDefinitionGetAllOutputRepresentationSele
|
|
|
769
769
|
]
|
|
770
770
|
};
|
|
771
771
|
};
|
|
772
|
-
function equals$
|
|
772
|
+
function equals$c(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$d(existing_aldList_item, incoming_aldList_item))) {
|
|
777
777
|
return false;
|
|
778
778
|
}
|
|
779
779
|
});
|
|
@@ -782,44 +782,44 @@ function equals$9(existing, incoming) {
|
|
|
782
782
|
}
|
|
783
783
|
return true;
|
|
784
784
|
}
|
|
785
|
-
const ingest$
|
|
785
|
+
const ingest$6 = function ActionableListDefinitionGetAllOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
786
786
|
if (process.env.NODE_ENV !== 'production') {
|
|
787
|
-
const validateError = validate$
|
|
787
|
+
const validateError = validate$h(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$6;
|
|
794
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "actionablelist", VERSION$c, RepresentationType$6, equals$c);
|
|
795
795
|
return createLink(key);
|
|
796
796
|
};
|
|
797
|
-
function getTypeCacheKeys$
|
|
797
|
+
function getTypeCacheKeys$6(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$6,
|
|
803
803
|
mergeable: false
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
806
|
|
|
807
|
-
function select$
|
|
808
|
-
return select$
|
|
807
|
+
function select$i(luvio, params) {
|
|
808
|
+
return select$j();
|
|
809
809
|
}
|
|
810
|
-
function keyBuilder$
|
|
810
|
+
function keyBuilder$9(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$6(storeKeyMap, luvio, resourceParams, response) {
|
|
814
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
815
815
|
}
|
|
816
|
-
function ingestSuccess$
|
|
816
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
817
817
|
const { body } = response;
|
|
818
|
-
const key = keyBuilder$
|
|
819
|
-
luvio.storeIngest(key, ingest$
|
|
818
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
819
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
820
820
|
const snapshot = luvio.storeLookup({
|
|
821
821
|
recordId: key,
|
|
822
|
-
node: select$
|
|
822
|
+
node: select$i(),
|
|
823
823
|
variables: {},
|
|
824
824
|
}, snapshotRefresh);
|
|
825
825
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -831,18 +831,18 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
831
831
|
return snapshot;
|
|
832
832
|
}
|
|
833
833
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
834
|
-
const key = keyBuilder$
|
|
834
|
+
const key = keyBuilder$9(luvio, params);
|
|
835
835
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
836
836
|
const storeMetadataParams = {
|
|
837
|
-
ttl: TTL$
|
|
837
|
+
ttl: TTL$6,
|
|
838
838
|
namespace: keyPrefix,
|
|
839
|
-
version: VERSION$
|
|
840
|
-
representationName: RepresentationType$
|
|
839
|
+
version: VERSION$c,
|
|
840
|
+
representationName: RepresentationType$6
|
|
841
841
|
};
|
|
842
842
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
843
843
|
return errorSnapshot;
|
|
844
844
|
}
|
|
845
|
-
function createResourceRequest$
|
|
845
|
+
function createResourceRequest$6(config) {
|
|
846
846
|
const headers = {};
|
|
847
847
|
return {
|
|
848
848
|
baseUri: '/services/data/v59.0',
|
|
@@ -856,63 +856,63 @@ function createResourceRequest$5(config) {
|
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
858
|
|
|
859
|
-
const adapterName$
|
|
859
|
+
const adapterName$6 = '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$6, getActionableListDefinitions_ConfigPropertyMetadata);
|
|
867
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getActionableListDefinitions_ConfigPropertyMetadata);
|
|
868
|
+
function keyBuilder$8(luvio, config) {
|
|
869
|
+
const resourceParams = createResourceParams$6(config);
|
|
870
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
871
871
|
}
|
|
872
|
-
function typeCheckConfig$
|
|
872
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
873
873
|
const config = {};
|
|
874
|
-
typeCheckConfig$
|
|
874
|
+
typeCheckConfig$7(untrustedConfig, config, getActionableListDefinitions_ConfigPropertyMetadata);
|
|
875
875
|
return config;
|
|
876
876
|
}
|
|
877
|
-
function validateAdapterConfig$
|
|
877
|
+
function validateAdapterConfig$6(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$6(untrustedConfig);
|
|
885
885
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
886
886
|
return null;
|
|
887
887
|
}
|
|
888
888
|
return config;
|
|
889
889
|
}
|
|
890
890
|
function adapterFragment$2(luvio, config) {
|
|
891
|
-
createResourceParams$
|
|
892
|
-
return select$
|
|
891
|
+
createResourceParams$6(config);
|
|
892
|
+
return select$i();
|
|
893
893
|
}
|
|
894
894
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
895
|
-
const snapshot = ingestSuccess$
|
|
895
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
896
896
|
config,
|
|
897
|
-
resolve: () => buildNetworkSnapshot$
|
|
897
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
898
898
|
});
|
|
899
899
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
900
900
|
}
|
|
901
901
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
902
902
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
903
903
|
config,
|
|
904
|
-
resolve: () => buildNetworkSnapshot$
|
|
904
|
+
resolve: () => buildNetworkSnapshot$6(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$6(luvio, config, options) {
|
|
909
|
+
const resourceParams = createResourceParams$6(config);
|
|
910
|
+
const request = createResourceRequest$6(resourceParams);
|
|
911
911
|
return luvio.dispatchResourceRequest(request, options)
|
|
912
912
|
.then((response) => {
|
|
913
913
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
914
914
|
const cache = new StoreKeyMap();
|
|
915
|
-
getResponseCacheKeys$
|
|
915
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
916
916
|
return cache;
|
|
917
917
|
});
|
|
918
918
|
}, (response) => {
|
|
@@ -920,23 +920,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
922
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
923
|
-
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
923
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
924
924
|
}
|
|
925
925
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
926
926
|
const { luvio, config } = context;
|
|
927
927
|
const selector = {
|
|
928
|
-
recordId: keyBuilder$
|
|
928
|
+
recordId: keyBuilder$8(luvio, config),
|
|
929
929
|
node: adapterFragment$2(luvio, config),
|
|
930
930
|
variables: {},
|
|
931
931
|
};
|
|
932
932
|
const cacheSnapshot = storeLookup(selector, {
|
|
933
933
|
config,
|
|
934
|
-
resolve: () => buildNetworkSnapshot$
|
|
934
|
+
resolve: () => buildNetworkSnapshot$6(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$6(untrustedConfig, getActionableListDefinitions_ConfigPropertyNames);
|
|
940
940
|
// Invalid or incomplete config
|
|
941
941
|
if (config === null) {
|
|
942
942
|
return null;
|
|
@@ -945,7 +945,7 @@ const getActionableListDefinitionsAdapterFactory = (luvio) => function actionabl
|
|
|
945
945
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
946
946
|
};
|
|
947
947
|
|
|
948
|
-
function validate$
|
|
948
|
+
function validate$g(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 + '")');
|
|
@@ -969,8 +969,8 @@ function validate$d(obj, path = 'ActionableListDefinitionCreateInputRepresentati
|
|
|
969
969
|
return v_error === undefined ? null : v_error;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
|
-
const VERSION$
|
|
973
|
-
function validate$
|
|
972
|
+
const VERSION$b = "c011e92d9100cd54f4f75b6951999c39";
|
|
973
|
+
function validate$f(obj, path = 'ActionableListDefinitionStatusOutputRepresentation') {
|
|
974
974
|
const v_error = (() => {
|
|
975
975
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
976
976
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -988,10 +988,10 @@ function validate$c(obj, path = 'ActionableListDefinitionStatusOutputRepresentat
|
|
|
988
988
|
})();
|
|
989
989
|
return v_error === undefined ? null : v_error;
|
|
990
990
|
}
|
|
991
|
-
const select$
|
|
991
|
+
const select$h = function ActionableListDefinitionStatusOutputRepresentationSelect() {
|
|
992
992
|
return {
|
|
993
993
|
kind: 'Fragment',
|
|
994
|
-
version: VERSION$
|
|
994
|
+
version: VERSION$b,
|
|
995
995
|
private: [],
|
|
996
996
|
selections: [
|
|
997
997
|
{
|
|
@@ -1005,7 +1005,7 @@ const select$d = function ActionableListDefinitionStatusOutputRepresentationSele
|
|
|
1005
1005
|
]
|
|
1006
1006
|
};
|
|
1007
1007
|
};
|
|
1008
|
-
function equals$
|
|
1008
|
+
function equals$b(existing, incoming) {
|
|
1009
1009
|
const existing_code = existing.code;
|
|
1010
1010
|
const incoming_code = incoming.code;
|
|
1011
1011
|
if (!(existing_code === incoming_code)) {
|
|
@@ -1019,16 +1019,16 @@ function equals$8(existing, incoming) {
|
|
|
1019
1019
|
return true;
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
|
-
const TTL$
|
|
1023
|
-
const VERSION$
|
|
1024
|
-
function validate$
|
|
1022
|
+
const TTL$5 = 100;
|
|
1023
|
+
const VERSION$a = "7f7f8555df2466c8cbc7878266c1decd";
|
|
1024
|
+
function validate$e(obj, path = 'ActionableListDefinitionCreateOutputRepresentation') {
|
|
1025
1025
|
const v_error = (() => {
|
|
1026
1026
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1027
1027
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1028
1028
|
}
|
|
1029
1029
|
const obj_actionableListDefinition = obj.actionableListDefinition;
|
|
1030
1030
|
const path_actionableListDefinition = path + '.actionableListDefinition';
|
|
1031
|
-
const referencepath_actionableListDefinitionValidationError = validate$
|
|
1031
|
+
const referencepath_actionableListDefinitionValidationError = validate$i(obj_actionableListDefinition, path_actionableListDefinition);
|
|
1032
1032
|
if (referencepath_actionableListDefinitionValidationError !== null) {
|
|
1033
1033
|
let message = 'Object doesn\'t match ActionableListDefinitionOutputRepresentation (at "' + path_actionableListDefinition + '")\n';
|
|
1034
1034
|
message += referencepath_actionableListDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1036,7 +1036,7 @@ function validate$b(obj, path = 'ActionableListDefinitionCreateOutputRepresentat
|
|
|
1036
1036
|
}
|
|
1037
1037
|
const obj_status = obj.status;
|
|
1038
1038
|
const path_status = path + '.status';
|
|
1039
|
-
const referencepath_statusValidationError = validate$
|
|
1039
|
+
const referencepath_statusValidationError = validate$f(obj_status, path_status);
|
|
1040
1040
|
if (referencepath_statusValidationError !== null) {
|
|
1041
1041
|
let message = 'Object doesn\'t match ActionableListDefinitionStatusOutputRepresentation (at "' + path_status + '")\n';
|
|
1042
1042
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1045,25 +1045,25 @@ function validate$b(obj, path = 'ActionableListDefinitionCreateOutputRepresentat
|
|
|
1045
1045
|
})();
|
|
1046
1046
|
return v_error === undefined ? null : v_error;
|
|
1047
1047
|
}
|
|
1048
|
-
const RepresentationType$
|
|
1049
|
-
function keyBuilder$
|
|
1050
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1048
|
+
const RepresentationType$5 = 'ActionableListDefinitionCreateOutputRepresentation';
|
|
1049
|
+
function keyBuilder$7(luvio, config) {
|
|
1050
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
|
|
1051
1051
|
}
|
|
1052
|
-
function keyBuilderFromType$
|
|
1052
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
1053
1053
|
const keyParams = {
|
|
1054
1054
|
id: object.actionableListDefinition.id
|
|
1055
1055
|
};
|
|
1056
|
-
return keyBuilder$
|
|
1056
|
+
return keyBuilder$7(luvio, keyParams);
|
|
1057
1057
|
}
|
|
1058
|
-
function normalize$
|
|
1058
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
1059
1059
|
return input;
|
|
1060
1060
|
}
|
|
1061
|
-
const select$
|
|
1062
|
-
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$
|
|
1063
|
-
const { selections: ActionableListDefinitionStatusOutputRepresentation__selections, opaque: ActionableListDefinitionStatusOutputRepresentation__opaque, } = select$
|
|
1061
|
+
const select$g = function ActionableListDefinitionCreateOutputRepresentationSelect() {
|
|
1062
|
+
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$k();
|
|
1063
|
+
const { selections: ActionableListDefinitionStatusOutputRepresentation__selections, opaque: ActionableListDefinitionStatusOutputRepresentation__opaque, } = select$h();
|
|
1064
1064
|
return {
|
|
1065
1065
|
kind: 'Fragment',
|
|
1066
|
-
version: VERSION$
|
|
1066
|
+
version: VERSION$a,
|
|
1067
1067
|
private: [],
|
|
1068
1068
|
selections: [
|
|
1069
1069
|
{
|
|
@@ -1079,54 +1079,54 @@ const select$c = function ActionableListDefinitionCreateOutputRepresentationSele
|
|
|
1079
1079
|
]
|
|
1080
1080
|
};
|
|
1081
1081
|
};
|
|
1082
|
-
function equals$
|
|
1082
|
+
function equals$a(existing, incoming) {
|
|
1083
1083
|
const existing_actionableListDefinition = existing.actionableListDefinition;
|
|
1084
1084
|
const incoming_actionableListDefinition = incoming.actionableListDefinition;
|
|
1085
|
-
if (!(equals$
|
|
1085
|
+
if (!(equals$d(existing_actionableListDefinition, incoming_actionableListDefinition))) {
|
|
1086
1086
|
return false;
|
|
1087
1087
|
}
|
|
1088
1088
|
const existing_status = existing.status;
|
|
1089
1089
|
const incoming_status = incoming.status;
|
|
1090
|
-
if (!(equals$
|
|
1090
|
+
if (!(equals$b(existing_status, incoming_status))) {
|
|
1091
1091
|
return false;
|
|
1092
1092
|
}
|
|
1093
1093
|
return true;
|
|
1094
1094
|
}
|
|
1095
|
-
const ingest$
|
|
1095
|
+
const ingest$5 = function ActionableListDefinitionCreateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1096
1096
|
if (process.env.NODE_ENV !== 'production') {
|
|
1097
|
-
const validateError = validate$
|
|
1097
|
+
const validateError = validate$e(input);
|
|
1098
1098
|
if (validateError !== null) {
|
|
1099
1099
|
throw validateError;
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
|
-
const key = keyBuilderFromType$
|
|
1103
|
-
const ttlToUse = TTL$
|
|
1104
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1102
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
1103
|
+
const ttlToUse = TTL$5;
|
|
1104
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "actionablelist", VERSION$a, RepresentationType$5, equals$a);
|
|
1105
1105
|
return createLink(key);
|
|
1106
1106
|
};
|
|
1107
|
-
function getTypeCacheKeys$
|
|
1107
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
1108
1108
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1109
|
-
const rootKey = keyBuilderFromType$
|
|
1109
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1110
1110
|
rootKeySet.set(rootKey, {
|
|
1111
1111
|
namespace: keyPrefix,
|
|
1112
|
-
representationName: RepresentationType$
|
|
1112
|
+
representationName: RepresentationType$5,
|
|
1113
1113
|
mergeable: false
|
|
1114
1114
|
});
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
|
-
function select$
|
|
1118
|
-
return select$
|
|
1117
|
+
function select$f(luvio, params) {
|
|
1118
|
+
return select$g();
|
|
1119
1119
|
}
|
|
1120
|
-
function getResponseCacheKeys$
|
|
1121
|
-
getTypeCacheKeys$
|
|
1120
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1121
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
1122
1122
|
}
|
|
1123
|
-
function ingestSuccess$
|
|
1123
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
1124
1124
|
const { body } = response;
|
|
1125
|
-
const key = keyBuilderFromType$
|
|
1126
|
-
luvio.storeIngest(key, ingest$
|
|
1125
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
1126
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
1127
1127
|
const snapshot = luvio.storeLookup({
|
|
1128
1128
|
recordId: key,
|
|
1129
|
-
node: select$
|
|
1129
|
+
node: select$f(),
|
|
1130
1130
|
variables: {},
|
|
1131
1131
|
});
|
|
1132
1132
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1137,7 +1137,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
1137
1137
|
deepFreeze(snapshot.data);
|
|
1138
1138
|
return snapshot;
|
|
1139
1139
|
}
|
|
1140
|
-
function createResourceRequest$
|
|
1140
|
+
function createResourceRequest$5(config) {
|
|
1141
1141
|
const headers = {};
|
|
1142
1142
|
return {
|
|
1143
1143
|
baseUri: '/services/data/v59.0',
|
|
@@ -1151,45 +1151,45 @@ function createResourceRequest$4(config) {
|
|
|
1151
1151
|
};
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
const adapterName$
|
|
1154
|
+
const adapterName$5 = 'createActionableListDefinition';
|
|
1155
1155
|
const createActionableListDefinition_ConfigPropertyMetadata = [
|
|
1156
1156
|
generateParamConfigMetadata('actionableListDefinitionCreateInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1157
1157
|
];
|
|
1158
|
-
const createActionableListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1159
|
-
const createResourceParams$
|
|
1160
|
-
function typeCheckConfig$
|
|
1158
|
+
const createActionableListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createActionableListDefinition_ConfigPropertyMetadata);
|
|
1159
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(createActionableListDefinition_ConfigPropertyMetadata);
|
|
1160
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
1161
1161
|
const config = {};
|
|
1162
1162
|
const untrustedConfig_actionableListDefinitionCreateInput = untrustedConfig.actionableListDefinitionCreateInput;
|
|
1163
|
-
const referenceActionableListDefinitionCreateInputRepresentationValidationError = validate$
|
|
1163
|
+
const referenceActionableListDefinitionCreateInputRepresentationValidationError = validate$g(untrustedConfig_actionableListDefinitionCreateInput);
|
|
1164
1164
|
if (referenceActionableListDefinitionCreateInputRepresentationValidationError === null) {
|
|
1165
1165
|
config.actionableListDefinitionCreateInput = untrustedConfig_actionableListDefinitionCreateInput;
|
|
1166
1166
|
}
|
|
1167
1167
|
return config;
|
|
1168
1168
|
}
|
|
1169
|
-
function validateAdapterConfig$
|
|
1169
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
1170
1170
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1171
1171
|
return null;
|
|
1172
1172
|
}
|
|
1173
1173
|
if (process.env.NODE_ENV !== 'production') {
|
|
1174
1174
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1175
1175
|
}
|
|
1176
|
-
const config = typeCheckConfig$
|
|
1176
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
1177
1177
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1178
1178
|
return null;
|
|
1179
1179
|
}
|
|
1180
1180
|
return config;
|
|
1181
1181
|
}
|
|
1182
|
-
function buildNetworkSnapshot$
|
|
1183
|
-
const resourceParams = createResourceParams$
|
|
1184
|
-
const request = createResourceRequest$
|
|
1182
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
1183
|
+
const resourceParams = createResourceParams$5(config);
|
|
1184
|
+
const request = createResourceRequest$5(resourceParams);
|
|
1185
1185
|
return luvio.dispatchResourceRequest(request, options)
|
|
1186
1186
|
.then((response) => {
|
|
1187
1187
|
return luvio.handleSuccessResponse(() => {
|
|
1188
|
-
const snapshot = ingestSuccess$
|
|
1188
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
1189
1189
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1190
1190
|
}, () => {
|
|
1191
1191
|
const cache = new StoreKeyMap();
|
|
1192
|
-
getResponseCacheKeys$
|
|
1192
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
1193
1193
|
return cache;
|
|
1194
1194
|
});
|
|
1195
1195
|
}, (response) => {
|
|
@@ -1199,16 +1199,16 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
const createActionableListDefinitionAdapterFactory = (luvio) => {
|
|
1201
1201
|
return function createActionableListDefinition(untrustedConfig) {
|
|
1202
|
-
const config = validateAdapterConfig$
|
|
1202
|
+
const config = validateAdapterConfig$5(untrustedConfig, createActionableListDefinition_ConfigPropertyNames);
|
|
1203
1203
|
// Invalid or incomplete config
|
|
1204
1204
|
if (config === null) {
|
|
1205
1205
|
throw new Error('Invalid config for "createActionableListDefinition"');
|
|
1206
1206
|
}
|
|
1207
|
-
return buildNetworkSnapshot$
|
|
1207
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
1208
1208
|
};
|
|
1209
1209
|
};
|
|
1210
1210
|
|
|
1211
|
-
function validate$
|
|
1211
|
+
function validate$d(obj, path = 'ActionableListColumnUserInputRepresentation') {
|
|
1212
1212
|
const v_error = (() => {
|
|
1213
1213
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1214
1214
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1255,7 +1255,7 @@ function validate$a(obj, path = 'ActionableListColumnUserInputRepresentation') {
|
|
|
1255
1255
|
return v_error === undefined ? null : v_error;
|
|
1256
1256
|
}
|
|
1257
1257
|
|
|
1258
|
-
function validate$
|
|
1258
|
+
function validate$c(obj, path = 'ActionableListColumnsUserUpsertInputRepresentation') {
|
|
1259
1259
|
const v_error = (() => {
|
|
1260
1260
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1261
1261
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1268,7 +1268,7 @@ function validate$9(obj, path = 'ActionableListColumnsUserUpsertInputRepresentat
|
|
|
1268
1268
|
for (let i = 0; i < obj_actionableListDatasetColumnUserPrefList.length; i++) {
|
|
1269
1269
|
const obj_actionableListDatasetColumnUserPrefList_item = obj_actionableListDatasetColumnUserPrefList[i];
|
|
1270
1270
|
const path_actionableListDatasetColumnUserPrefList_item = path_actionableListDatasetColumnUserPrefList + '[' + i + ']';
|
|
1271
|
-
const referencepath_actionableListDatasetColumnUserPrefList_itemValidationError = validate$
|
|
1271
|
+
const referencepath_actionableListDatasetColumnUserPrefList_itemValidationError = validate$d(obj_actionableListDatasetColumnUserPrefList_item, path_actionableListDatasetColumnUserPrefList_item);
|
|
1272
1272
|
if (referencepath_actionableListDatasetColumnUserPrefList_itemValidationError !== null) {
|
|
1273
1273
|
let message = 'Object doesn\'t match ActionableListColumnUserInputRepresentation (at "' + path_actionableListDatasetColumnUserPrefList_item + '")\n';
|
|
1274
1274
|
message += referencepath_actionableListDatasetColumnUserPrefList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1279,9 +1279,9 @@ function validate$9(obj, path = 'ActionableListColumnsUserUpsertInputRepresentat
|
|
|
1279
1279
|
return v_error === undefined ? null : v_error;
|
|
1280
1280
|
}
|
|
1281
1281
|
|
|
1282
|
-
const TTL$
|
|
1283
|
-
const VERSION$
|
|
1284
|
-
function validate$
|
|
1282
|
+
const TTL$4 = 5000;
|
|
1283
|
+
const VERSION$9 = "9a39093642c984addcbd6425bb594898";
|
|
1284
|
+
function validate$b(obj, path = 'ActionableListColumnsUserOutputRepresentation') {
|
|
1285
1285
|
const v_error = (() => {
|
|
1286
1286
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1287
1287
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1367,23 +1367,23 @@ function validate$8(obj, path = 'ActionableListColumnsUserOutputRepresentation')
|
|
|
1367
1367
|
})();
|
|
1368
1368
|
return v_error === undefined ? null : v_error;
|
|
1369
1369
|
}
|
|
1370
|
-
const RepresentationType$
|
|
1371
|
-
function keyBuilder$
|
|
1372
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1370
|
+
const RepresentationType$4 = 'ActionableListColumnsUserOutputRepresentation';
|
|
1371
|
+
function keyBuilder$6(luvio, config) {
|
|
1372
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + (config.id === null ? '' : config.id);
|
|
1373
1373
|
}
|
|
1374
|
-
function keyBuilderFromType$
|
|
1374
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
1375
1375
|
const keyParams = {
|
|
1376
1376
|
id: object.id
|
|
1377
1377
|
};
|
|
1378
|
-
return keyBuilder$
|
|
1378
|
+
return keyBuilder$6(luvio, keyParams);
|
|
1379
1379
|
}
|
|
1380
|
-
function normalize$
|
|
1380
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
1381
1381
|
return input;
|
|
1382
1382
|
}
|
|
1383
|
-
const select$
|
|
1383
|
+
const select$e = function ActionableListColumnsUserOutputRepresentationSelect() {
|
|
1384
1384
|
return {
|
|
1385
1385
|
kind: 'Fragment',
|
|
1386
|
-
version: VERSION$
|
|
1386
|
+
version: VERSION$9,
|
|
1387
1387
|
private: [],
|
|
1388
1388
|
selections: [
|
|
1389
1389
|
{
|
|
@@ -1401,7 +1401,7 @@ const select$a = function ActionableListColumnsUserOutputRepresentationSelect()
|
|
|
1401
1401
|
]
|
|
1402
1402
|
};
|
|
1403
1403
|
};
|
|
1404
|
-
function equals$
|
|
1404
|
+
function equals$9(existing, incoming) {
|
|
1405
1405
|
const existing_errorMessage = existing.errorMessage;
|
|
1406
1406
|
const incoming_errorMessage = incoming.errorMessage;
|
|
1407
1407
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -1419,41 +1419,41 @@ function equals$6(existing, incoming) {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
return true;
|
|
1421
1421
|
}
|
|
1422
|
-
const ingest$
|
|
1422
|
+
const ingest$4 = function ActionableListColumnsUserOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1423
1423
|
if (process.env.NODE_ENV !== 'production') {
|
|
1424
|
-
const validateError = validate$
|
|
1424
|
+
const validateError = validate$b(input);
|
|
1425
1425
|
if (validateError !== null) {
|
|
1426
1426
|
throw validateError;
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
|
-
const key = keyBuilderFromType$
|
|
1430
|
-
const ttlToUse = TTL$
|
|
1431
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1429
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
1430
|
+
const ttlToUse = TTL$4;
|
|
1431
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "actionablelist", VERSION$9, RepresentationType$4, equals$9);
|
|
1432
1432
|
return createLink(key);
|
|
1433
1433
|
};
|
|
1434
|
-
function getTypeCacheKeys$
|
|
1434
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
1435
1435
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1436
|
-
const rootKey = keyBuilderFromType$
|
|
1436
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
1437
1437
|
rootKeySet.set(rootKey, {
|
|
1438
1438
|
namespace: keyPrefix,
|
|
1439
|
-
representationName: RepresentationType$
|
|
1439
|
+
representationName: RepresentationType$4,
|
|
1440
1440
|
mergeable: false
|
|
1441
1441
|
});
|
|
1442
1442
|
}
|
|
1443
1443
|
|
|
1444
|
-
function select$
|
|
1445
|
-
return select$
|
|
1444
|
+
function select$d(luvio, params) {
|
|
1445
|
+
return select$e();
|
|
1446
1446
|
}
|
|
1447
|
-
function getResponseCacheKeys$
|
|
1448
|
-
getTypeCacheKeys$
|
|
1447
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1448
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1449
1449
|
}
|
|
1450
|
-
function ingestSuccess$
|
|
1450
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
1451
1451
|
const { body } = response;
|
|
1452
|
-
const key = keyBuilderFromType$
|
|
1453
|
-
luvio.storeIngest(key, ingest$
|
|
1452
|
+
const key = keyBuilderFromType$2(luvio, body);
|
|
1453
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1454
1454
|
const snapshot = luvio.storeLookup({
|
|
1455
1455
|
recordId: key,
|
|
1456
|
-
node: select$
|
|
1456
|
+
node: select$d(),
|
|
1457
1457
|
variables: {},
|
|
1458
1458
|
});
|
|
1459
1459
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1464,7 +1464,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
1464
1464
|
deepFreeze(snapshot.data);
|
|
1465
1465
|
return snapshot;
|
|
1466
1466
|
}
|
|
1467
|
-
function createResourceRequest$
|
|
1467
|
+
function createResourceRequest$4(config) {
|
|
1468
1468
|
const headers = {};
|
|
1469
1469
|
return {
|
|
1470
1470
|
baseUri: '/services/data/v59.0',
|
|
@@ -1478,45 +1478,45 @@ function createResourceRequest$3(config) {
|
|
|
1478
1478
|
};
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
1481
|
-
const adapterName$
|
|
1481
|
+
const adapterName$4 = 'upsertActionableListDatasetColumnUser';
|
|
1482
1482
|
const upsertActionableListDatasetColumnUser_ConfigPropertyMetadata = [
|
|
1483
1483
|
generateParamConfigMetadata('actionableListDatasetColumnUserPreferencesUpsertInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1484
1484
|
];
|
|
1485
|
-
const upsertActionableListDatasetColumnUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1486
|
-
const createResourceParams$
|
|
1487
|
-
function typeCheckConfig$
|
|
1485
|
+
const upsertActionableListDatasetColumnUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, upsertActionableListDatasetColumnUser_ConfigPropertyMetadata);
|
|
1486
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(upsertActionableListDatasetColumnUser_ConfigPropertyMetadata);
|
|
1487
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1488
1488
|
const config = {};
|
|
1489
1489
|
const untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput = untrustedConfig.actionableListDatasetColumnUserPreferencesUpsertInput;
|
|
1490
|
-
const referenceActionableListColumnsUserUpsertInputRepresentationValidationError = validate$
|
|
1490
|
+
const referenceActionableListColumnsUserUpsertInputRepresentationValidationError = validate$c(untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput);
|
|
1491
1491
|
if (referenceActionableListColumnsUserUpsertInputRepresentationValidationError === null) {
|
|
1492
1492
|
config.actionableListDatasetColumnUserPreferencesUpsertInput = untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput;
|
|
1493
1493
|
}
|
|
1494
1494
|
return config;
|
|
1495
1495
|
}
|
|
1496
|
-
function validateAdapterConfig$
|
|
1496
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1497
1497
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1498
1498
|
return null;
|
|
1499
1499
|
}
|
|
1500
1500
|
if (process.env.NODE_ENV !== 'production') {
|
|
1501
1501
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1502
1502
|
}
|
|
1503
|
-
const config = typeCheckConfig$
|
|
1503
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1504
1504
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1505
1505
|
return null;
|
|
1506
1506
|
}
|
|
1507
1507
|
return config;
|
|
1508
1508
|
}
|
|
1509
|
-
function buildNetworkSnapshot$
|
|
1510
|
-
const resourceParams = createResourceParams$
|
|
1511
|
-
const request = createResourceRequest$
|
|
1509
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1510
|
+
const resourceParams = createResourceParams$4(config);
|
|
1511
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1512
1512
|
return luvio.dispatchResourceRequest(request, options)
|
|
1513
1513
|
.then((response) => {
|
|
1514
1514
|
return luvio.handleSuccessResponse(() => {
|
|
1515
|
-
const snapshot = ingestSuccess$
|
|
1515
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
1516
1516
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1517
1517
|
}, () => {
|
|
1518
1518
|
const cache = new StoreKeyMap();
|
|
1519
|
-
getResponseCacheKeys$
|
|
1519
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1520
1520
|
return cache;
|
|
1521
1521
|
});
|
|
1522
1522
|
}, (response) => {
|
|
@@ -1526,11 +1526,724 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
const upsertActionableListDatasetColumnUserAdapterFactory = (luvio) => {
|
|
1528
1528
|
return function upsertActionableListDatasetColumnUser(untrustedConfig) {
|
|
1529
|
-
const config = validateAdapterConfig$
|
|
1529
|
+
const config = validateAdapterConfig$4(untrustedConfig, upsertActionableListDatasetColumnUser_ConfigPropertyNames);
|
|
1530
1530
|
// Invalid or incomplete config
|
|
1531
1531
|
if (config === null) {
|
|
1532
1532
|
throw new Error('Invalid config for "upsertActionableListDatasetColumnUser"');
|
|
1533
1533
|
}
|
|
1534
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
1535
|
+
};
|
|
1536
|
+
};
|
|
1537
|
+
|
|
1538
|
+
const VERSION$8 = "bad75ff1a6600988b043c5bd86a36316";
|
|
1539
|
+
function validate$a(obj, path = 'ActionableListRefreshFilterConditionOutputRepresentation') {
|
|
1540
|
+
const v_error = (() => {
|
|
1541
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1542
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1543
|
+
}
|
|
1544
|
+
const obj_columnName = obj.columnName;
|
|
1545
|
+
const path_columnName = path + '.columnName';
|
|
1546
|
+
let obj_columnName_union0 = null;
|
|
1547
|
+
const obj_columnName_union0_error = (() => {
|
|
1548
|
+
if (typeof obj_columnName !== 'string') {
|
|
1549
|
+
return new TypeError('Expected "string" but received "' + typeof obj_columnName + '" (at "' + path_columnName + '")');
|
|
1550
|
+
}
|
|
1551
|
+
})();
|
|
1552
|
+
if (obj_columnName_union0_error != null) {
|
|
1553
|
+
obj_columnName_union0 = obj_columnName_union0_error.message;
|
|
1554
|
+
}
|
|
1555
|
+
let obj_columnName_union1 = null;
|
|
1556
|
+
const obj_columnName_union1_error = (() => {
|
|
1557
|
+
if (obj_columnName !== null) {
|
|
1558
|
+
return new TypeError('Expected "null" but received "' + typeof obj_columnName + '" (at "' + path_columnName + '")');
|
|
1559
|
+
}
|
|
1560
|
+
})();
|
|
1561
|
+
if (obj_columnName_union1_error != null) {
|
|
1562
|
+
obj_columnName_union1 = obj_columnName_union1_error.message;
|
|
1563
|
+
}
|
|
1564
|
+
if (obj_columnName_union0 && obj_columnName_union1) {
|
|
1565
|
+
let message = 'Object doesn\'t match union (at "' + path_columnName + '")';
|
|
1566
|
+
message += '\n' + obj_columnName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1567
|
+
message += '\n' + obj_columnName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1568
|
+
return new TypeError(message);
|
|
1569
|
+
}
|
|
1570
|
+
const obj_dataDomain = obj.dataDomain;
|
|
1571
|
+
const path_dataDomain = path + '.dataDomain';
|
|
1572
|
+
let obj_dataDomain_union0 = null;
|
|
1573
|
+
const obj_dataDomain_union0_error = (() => {
|
|
1574
|
+
if (typeof obj_dataDomain !== 'string') {
|
|
1575
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataDomain + '" (at "' + path_dataDomain + '")');
|
|
1576
|
+
}
|
|
1577
|
+
})();
|
|
1578
|
+
if (obj_dataDomain_union0_error != null) {
|
|
1579
|
+
obj_dataDomain_union0 = obj_dataDomain_union0_error.message;
|
|
1580
|
+
}
|
|
1581
|
+
let obj_dataDomain_union1 = null;
|
|
1582
|
+
const obj_dataDomain_union1_error = (() => {
|
|
1583
|
+
if (obj_dataDomain !== null) {
|
|
1584
|
+
return new TypeError('Expected "null" but received "' + typeof obj_dataDomain + '" (at "' + path_dataDomain + '")');
|
|
1585
|
+
}
|
|
1586
|
+
})();
|
|
1587
|
+
if (obj_dataDomain_union1_error != null) {
|
|
1588
|
+
obj_dataDomain_union1 = obj_dataDomain_union1_error.message;
|
|
1589
|
+
}
|
|
1590
|
+
if (obj_dataDomain_union0 && obj_dataDomain_union1) {
|
|
1591
|
+
let message = 'Object doesn\'t match union (at "' + path_dataDomain + '")';
|
|
1592
|
+
message += '\n' + obj_dataDomain_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1593
|
+
message += '\n' + obj_dataDomain_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1594
|
+
return new TypeError(message);
|
|
1595
|
+
}
|
|
1596
|
+
const obj_operator = obj.operator;
|
|
1597
|
+
const path_operator = path + '.operator';
|
|
1598
|
+
let obj_operator_union0 = null;
|
|
1599
|
+
const obj_operator_union0_error = (() => {
|
|
1600
|
+
if (typeof obj_operator !== 'string') {
|
|
1601
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
1602
|
+
}
|
|
1603
|
+
})();
|
|
1604
|
+
if (obj_operator_union0_error != null) {
|
|
1605
|
+
obj_operator_union0 = obj_operator_union0_error.message;
|
|
1606
|
+
}
|
|
1607
|
+
let obj_operator_union1 = null;
|
|
1608
|
+
const obj_operator_union1_error = (() => {
|
|
1609
|
+
if (obj_operator !== null) {
|
|
1610
|
+
return new TypeError('Expected "null" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
1611
|
+
}
|
|
1612
|
+
})();
|
|
1613
|
+
if (obj_operator_union1_error != null) {
|
|
1614
|
+
obj_operator_union1 = obj_operator_union1_error.message;
|
|
1615
|
+
}
|
|
1616
|
+
if (obj_operator_union0 && obj_operator_union1) {
|
|
1617
|
+
let message = 'Object doesn\'t match union (at "' + path_operator + '")';
|
|
1618
|
+
message += '\n' + obj_operator_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1619
|
+
message += '\n' + obj_operator_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1620
|
+
return new TypeError(message);
|
|
1621
|
+
}
|
|
1622
|
+
const obj_sequenceNumber = obj.sequenceNumber;
|
|
1623
|
+
const path_sequenceNumber = path + '.sequenceNumber';
|
|
1624
|
+
let obj_sequenceNumber_union0 = null;
|
|
1625
|
+
const obj_sequenceNumber_union0_error = (() => {
|
|
1626
|
+
if (typeof obj_sequenceNumber !== 'number' || (typeof obj_sequenceNumber === 'number' && Math.floor(obj_sequenceNumber) !== obj_sequenceNumber)) {
|
|
1627
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequenceNumber + '" (at "' + path_sequenceNumber + '")');
|
|
1628
|
+
}
|
|
1629
|
+
})();
|
|
1630
|
+
if (obj_sequenceNumber_union0_error != null) {
|
|
1631
|
+
obj_sequenceNumber_union0 = obj_sequenceNumber_union0_error.message;
|
|
1632
|
+
}
|
|
1633
|
+
let obj_sequenceNumber_union1 = null;
|
|
1634
|
+
const obj_sequenceNumber_union1_error = (() => {
|
|
1635
|
+
if (obj_sequenceNumber !== null) {
|
|
1636
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sequenceNumber + '" (at "' + path_sequenceNumber + '")');
|
|
1637
|
+
}
|
|
1638
|
+
})();
|
|
1639
|
+
if (obj_sequenceNumber_union1_error != null) {
|
|
1640
|
+
obj_sequenceNumber_union1 = obj_sequenceNumber_union1_error.message;
|
|
1641
|
+
}
|
|
1642
|
+
if (obj_sequenceNumber_union0 && obj_sequenceNumber_union1) {
|
|
1643
|
+
let message = 'Object doesn\'t match union (at "' + path_sequenceNumber + '")';
|
|
1644
|
+
message += '\n' + obj_sequenceNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1645
|
+
message += '\n' + obj_sequenceNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1646
|
+
return new TypeError(message);
|
|
1647
|
+
}
|
|
1648
|
+
const obj_value = obj.value;
|
|
1649
|
+
const path_value = path + '.value';
|
|
1650
|
+
let obj_value_union0 = null;
|
|
1651
|
+
const obj_value_union0_error = (() => {
|
|
1652
|
+
if (typeof obj_value !== 'string') {
|
|
1653
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
1654
|
+
}
|
|
1655
|
+
})();
|
|
1656
|
+
if (obj_value_union0_error != null) {
|
|
1657
|
+
obj_value_union0 = obj_value_union0_error.message;
|
|
1658
|
+
}
|
|
1659
|
+
let obj_value_union1 = null;
|
|
1660
|
+
const obj_value_union1_error = (() => {
|
|
1661
|
+
if (obj_value !== null) {
|
|
1662
|
+
return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
1663
|
+
}
|
|
1664
|
+
})();
|
|
1665
|
+
if (obj_value_union1_error != null) {
|
|
1666
|
+
obj_value_union1 = obj_value_union1_error.message;
|
|
1667
|
+
}
|
|
1668
|
+
if (obj_value_union0 && obj_value_union1) {
|
|
1669
|
+
let message = 'Object doesn\'t match union (at "' + path_value + '")';
|
|
1670
|
+
message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1671
|
+
message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1672
|
+
return new TypeError(message);
|
|
1673
|
+
}
|
|
1674
|
+
})();
|
|
1675
|
+
return v_error === undefined ? null : v_error;
|
|
1676
|
+
}
|
|
1677
|
+
const select$c = function ActionableListRefreshFilterConditionOutputRepresentationSelect() {
|
|
1678
|
+
return {
|
|
1679
|
+
kind: 'Fragment',
|
|
1680
|
+
version: VERSION$8,
|
|
1681
|
+
private: [],
|
|
1682
|
+
selections: [
|
|
1683
|
+
{
|
|
1684
|
+
name: 'columnName',
|
|
1685
|
+
kind: 'Scalar'
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
name: 'dataDomain',
|
|
1689
|
+
kind: 'Scalar'
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
name: 'operator',
|
|
1693
|
+
kind: 'Scalar'
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
name: 'sequenceNumber',
|
|
1697
|
+
kind: 'Scalar'
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
name: 'value',
|
|
1701
|
+
kind: 'Scalar'
|
|
1702
|
+
}
|
|
1703
|
+
]
|
|
1704
|
+
};
|
|
1705
|
+
};
|
|
1706
|
+
function equals$8(existing, incoming) {
|
|
1707
|
+
const existing_columnName = existing.columnName;
|
|
1708
|
+
const incoming_columnName = incoming.columnName;
|
|
1709
|
+
if (!(existing_columnName === incoming_columnName)) {
|
|
1710
|
+
return false;
|
|
1711
|
+
}
|
|
1712
|
+
const existing_dataDomain = existing.dataDomain;
|
|
1713
|
+
const incoming_dataDomain = incoming.dataDomain;
|
|
1714
|
+
if (!(existing_dataDomain === incoming_dataDomain)) {
|
|
1715
|
+
return false;
|
|
1716
|
+
}
|
|
1717
|
+
const existing_operator = existing.operator;
|
|
1718
|
+
const incoming_operator = incoming.operator;
|
|
1719
|
+
if (!(existing_operator === incoming_operator)) {
|
|
1720
|
+
return false;
|
|
1721
|
+
}
|
|
1722
|
+
const existing_sequenceNumber = existing.sequenceNumber;
|
|
1723
|
+
const incoming_sequenceNumber = incoming.sequenceNumber;
|
|
1724
|
+
if (!(existing_sequenceNumber === incoming_sequenceNumber)) {
|
|
1725
|
+
return false;
|
|
1726
|
+
}
|
|
1727
|
+
const existing_value = existing.value;
|
|
1728
|
+
const incoming_value = incoming.value;
|
|
1729
|
+
if (!(existing_value === incoming_value)) {
|
|
1730
|
+
return false;
|
|
1731
|
+
}
|
|
1732
|
+
return true;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
const VERSION$7 = "eb64878570998dc7aa7bb9f8a21e65fb";
|
|
1736
|
+
function validate$9(obj, path = 'ActionableListRefreshFilterListOutputRepresentation') {
|
|
1737
|
+
const v_error = (() => {
|
|
1738
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1739
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1740
|
+
}
|
|
1741
|
+
const obj_conditions = obj.conditions;
|
|
1742
|
+
const path_conditions = path + '.conditions';
|
|
1743
|
+
if (!ArrayIsArray(obj_conditions)) {
|
|
1744
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conditions + '" (at "' + path_conditions + '")');
|
|
1745
|
+
}
|
|
1746
|
+
for (let i = 0; i < obj_conditions.length; i++) {
|
|
1747
|
+
const obj_conditions_item = obj_conditions[i];
|
|
1748
|
+
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
1749
|
+
let obj_conditions_item_union0 = null;
|
|
1750
|
+
const obj_conditions_item_union0_error = (() => {
|
|
1751
|
+
const referencepath_conditions_itemValidationError = validate$a(obj_conditions_item, path_conditions_item);
|
|
1752
|
+
if (referencepath_conditions_itemValidationError !== null) {
|
|
1753
|
+
let message = 'Object doesn\'t match ActionableListRefreshFilterConditionOutputRepresentation (at "' + path_conditions_item + '")\n';
|
|
1754
|
+
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1755
|
+
return new TypeError(message);
|
|
1756
|
+
}
|
|
1757
|
+
})();
|
|
1758
|
+
if (obj_conditions_item_union0_error != null) {
|
|
1759
|
+
obj_conditions_item_union0 = obj_conditions_item_union0_error.message;
|
|
1760
|
+
}
|
|
1761
|
+
let obj_conditions_item_union1 = null;
|
|
1762
|
+
const obj_conditions_item_union1_error = (() => {
|
|
1763
|
+
if (obj_conditions_item !== null) {
|
|
1764
|
+
return new TypeError('Expected "null" but received "' + typeof obj_conditions_item + '" (at "' + path_conditions_item + '")');
|
|
1765
|
+
}
|
|
1766
|
+
})();
|
|
1767
|
+
if (obj_conditions_item_union1_error != null) {
|
|
1768
|
+
obj_conditions_item_union1 = obj_conditions_item_union1_error.message;
|
|
1769
|
+
}
|
|
1770
|
+
if (obj_conditions_item_union0 && obj_conditions_item_union1) {
|
|
1771
|
+
let message = 'Object doesn\'t match union (at "' + path_conditions_item + '")';
|
|
1772
|
+
message += '\n' + obj_conditions_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1773
|
+
message += '\n' + obj_conditions_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1774
|
+
return new TypeError(message);
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
const obj_filterLogic = obj.filterLogic;
|
|
1778
|
+
const path_filterLogic = path + '.filterLogic';
|
|
1779
|
+
let obj_filterLogic_union0 = null;
|
|
1780
|
+
const obj_filterLogic_union0_error = (() => {
|
|
1781
|
+
if (typeof obj_filterLogic !== 'string') {
|
|
1782
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
|
|
1783
|
+
}
|
|
1784
|
+
})();
|
|
1785
|
+
if (obj_filterLogic_union0_error != null) {
|
|
1786
|
+
obj_filterLogic_union0 = obj_filterLogic_union0_error.message;
|
|
1787
|
+
}
|
|
1788
|
+
let obj_filterLogic_union1 = null;
|
|
1789
|
+
const obj_filterLogic_union1_error = (() => {
|
|
1790
|
+
if (obj_filterLogic !== null) {
|
|
1791
|
+
return new TypeError('Expected "null" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
|
|
1792
|
+
}
|
|
1793
|
+
})();
|
|
1794
|
+
if (obj_filterLogic_union1_error != null) {
|
|
1795
|
+
obj_filterLogic_union1 = obj_filterLogic_union1_error.message;
|
|
1796
|
+
}
|
|
1797
|
+
if (obj_filterLogic_union0 && obj_filterLogic_union1) {
|
|
1798
|
+
let message = 'Object doesn\'t match union (at "' + path_filterLogic + '")';
|
|
1799
|
+
message += '\n' + obj_filterLogic_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1800
|
+
message += '\n' + obj_filterLogic_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1801
|
+
return new TypeError(message);
|
|
1802
|
+
}
|
|
1803
|
+
})();
|
|
1804
|
+
return v_error === undefined ? null : v_error;
|
|
1805
|
+
}
|
|
1806
|
+
const select$b = function ActionableListRefreshFilterListOutputRepresentationSelect() {
|
|
1807
|
+
const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$c();
|
|
1808
|
+
return {
|
|
1809
|
+
kind: 'Fragment',
|
|
1810
|
+
version: VERSION$7,
|
|
1811
|
+
private: [],
|
|
1812
|
+
selections: [
|
|
1813
|
+
{
|
|
1814
|
+
name: 'conditions',
|
|
1815
|
+
kind: 'Object',
|
|
1816
|
+
nullable: true,
|
|
1817
|
+
plural: true,
|
|
1818
|
+
selections: ActionableListRefreshFilterConditionOutputRepresentation__selections
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
name: 'filterLogic',
|
|
1822
|
+
kind: 'Scalar'
|
|
1823
|
+
}
|
|
1824
|
+
]
|
|
1825
|
+
};
|
|
1826
|
+
};
|
|
1827
|
+
function equals$7(existing, incoming) {
|
|
1828
|
+
const existing_conditions = existing.conditions;
|
|
1829
|
+
const incoming_conditions = incoming.conditions;
|
|
1830
|
+
const equals_conditions_items = equalsArray(existing_conditions, incoming_conditions, (existing_conditions_item, incoming_conditions_item) => {
|
|
1831
|
+
if (!(existing_conditions_item === incoming_conditions_item
|
|
1832
|
+
|| (existing_conditions_item != null &&
|
|
1833
|
+
incoming_conditions_item != null &&
|
|
1834
|
+
equals$8(existing_conditions_item, incoming_conditions_item)))) {
|
|
1835
|
+
return false;
|
|
1836
|
+
}
|
|
1837
|
+
});
|
|
1838
|
+
if (equals_conditions_items === false) {
|
|
1839
|
+
return false;
|
|
1840
|
+
}
|
|
1841
|
+
const existing_filterLogic = existing.filterLogic;
|
|
1842
|
+
const incoming_filterLogic = incoming.filterLogic;
|
|
1843
|
+
if (!(existing_filterLogic === incoming_filterLogic)) {
|
|
1844
|
+
return false;
|
|
1845
|
+
}
|
|
1846
|
+
return true;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
const TTL$3 = 1000;
|
|
1850
|
+
const VERSION$6 = "f0e0d61c9d82fd013fe16d8a9bf9f198";
|
|
1851
|
+
function validate$8(obj, path = 'ActionableListRefreshOutputRepresentation') {
|
|
1852
|
+
const v_error = (() => {
|
|
1853
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1854
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1855
|
+
}
|
|
1856
|
+
const obj_candidateMemberCount = obj.candidateMemberCount;
|
|
1857
|
+
const path_candidateMemberCount = path + '.candidateMemberCount';
|
|
1858
|
+
let obj_candidateMemberCount_union0 = null;
|
|
1859
|
+
const obj_candidateMemberCount_union0_error = (() => {
|
|
1860
|
+
if (typeof obj_candidateMemberCount !== 'number' || (typeof obj_candidateMemberCount === 'number' && Math.floor(obj_candidateMemberCount) !== obj_candidateMemberCount)) {
|
|
1861
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_candidateMemberCount + '" (at "' + path_candidateMemberCount + '")');
|
|
1862
|
+
}
|
|
1863
|
+
})();
|
|
1864
|
+
if (obj_candidateMemberCount_union0_error != null) {
|
|
1865
|
+
obj_candidateMemberCount_union0 = obj_candidateMemberCount_union0_error.message;
|
|
1866
|
+
}
|
|
1867
|
+
let obj_candidateMemberCount_union1 = null;
|
|
1868
|
+
const obj_candidateMemberCount_union1_error = (() => {
|
|
1869
|
+
if (obj_candidateMemberCount !== null) {
|
|
1870
|
+
return new TypeError('Expected "null" but received "' + typeof obj_candidateMemberCount + '" (at "' + path_candidateMemberCount + '")');
|
|
1871
|
+
}
|
|
1872
|
+
})();
|
|
1873
|
+
if (obj_candidateMemberCount_union1_error != null) {
|
|
1874
|
+
obj_candidateMemberCount_union1 = obj_candidateMemberCount_union1_error.message;
|
|
1875
|
+
}
|
|
1876
|
+
if (obj_candidateMemberCount_union0 && obj_candidateMemberCount_union1) {
|
|
1877
|
+
let message = 'Object doesn\'t match union (at "' + path_candidateMemberCount + '")';
|
|
1878
|
+
message += '\n' + obj_candidateMemberCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1879
|
+
message += '\n' + obj_candidateMemberCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1880
|
+
return new TypeError(message);
|
|
1881
|
+
}
|
|
1882
|
+
const obj_errorMessage = obj.errorMessage;
|
|
1883
|
+
const path_errorMessage = path + '.errorMessage';
|
|
1884
|
+
let obj_errorMessage_union0 = null;
|
|
1885
|
+
const obj_errorMessage_union0_error = (() => {
|
|
1886
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
1887
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1888
|
+
}
|
|
1889
|
+
})();
|
|
1890
|
+
if (obj_errorMessage_union0_error != null) {
|
|
1891
|
+
obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
|
|
1892
|
+
}
|
|
1893
|
+
let obj_errorMessage_union1 = null;
|
|
1894
|
+
const obj_errorMessage_union1_error = (() => {
|
|
1895
|
+
if (obj_errorMessage !== null) {
|
|
1896
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1897
|
+
}
|
|
1898
|
+
})();
|
|
1899
|
+
if (obj_errorMessage_union1_error != null) {
|
|
1900
|
+
obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
|
|
1901
|
+
}
|
|
1902
|
+
if (obj_errorMessage_union0 && obj_errorMessage_union1) {
|
|
1903
|
+
let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
|
|
1904
|
+
message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1905
|
+
message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1906
|
+
return new TypeError(message);
|
|
1907
|
+
}
|
|
1908
|
+
const obj_existingMemberCount = obj.existingMemberCount;
|
|
1909
|
+
const path_existingMemberCount = path + '.existingMemberCount';
|
|
1910
|
+
let obj_existingMemberCount_union0 = null;
|
|
1911
|
+
const obj_existingMemberCount_union0_error = (() => {
|
|
1912
|
+
if (typeof obj_existingMemberCount !== 'number' || (typeof obj_existingMemberCount === 'number' && Math.floor(obj_existingMemberCount) !== obj_existingMemberCount)) {
|
|
1913
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_existingMemberCount + '" (at "' + path_existingMemberCount + '")');
|
|
1914
|
+
}
|
|
1915
|
+
})();
|
|
1916
|
+
if (obj_existingMemberCount_union0_error != null) {
|
|
1917
|
+
obj_existingMemberCount_union0 = obj_existingMemberCount_union0_error.message;
|
|
1918
|
+
}
|
|
1919
|
+
let obj_existingMemberCount_union1 = null;
|
|
1920
|
+
const obj_existingMemberCount_union1_error = (() => {
|
|
1921
|
+
if (obj_existingMemberCount !== null) {
|
|
1922
|
+
return new TypeError('Expected "null" but received "' + typeof obj_existingMemberCount + '" (at "' + path_existingMemberCount + '")');
|
|
1923
|
+
}
|
|
1924
|
+
})();
|
|
1925
|
+
if (obj_existingMemberCount_union1_error != null) {
|
|
1926
|
+
obj_existingMemberCount_union1 = obj_existingMemberCount_union1_error.message;
|
|
1927
|
+
}
|
|
1928
|
+
if (obj_existingMemberCount_union0 && obj_existingMemberCount_union1) {
|
|
1929
|
+
let message = 'Object doesn\'t match union (at "' + path_existingMemberCount + '")';
|
|
1930
|
+
message += '\n' + obj_existingMemberCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1931
|
+
message += '\n' + obj_existingMemberCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1932
|
+
return new TypeError(message);
|
|
1933
|
+
}
|
|
1934
|
+
const obj_filters = obj.filters;
|
|
1935
|
+
const path_filters = path + '.filters';
|
|
1936
|
+
let obj_filters_union0 = null;
|
|
1937
|
+
const obj_filters_union0_error = (() => {
|
|
1938
|
+
const referencepath_filtersValidationError = validate$9(obj_filters, path_filters);
|
|
1939
|
+
if (referencepath_filtersValidationError !== null) {
|
|
1940
|
+
let message = 'Object doesn\'t match ActionableListRefreshFilterListOutputRepresentation (at "' + path_filters + '")\n';
|
|
1941
|
+
message += referencepath_filtersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1942
|
+
return new TypeError(message);
|
|
1943
|
+
}
|
|
1944
|
+
})();
|
|
1945
|
+
if (obj_filters_union0_error != null) {
|
|
1946
|
+
obj_filters_union0 = obj_filters_union0_error.message;
|
|
1947
|
+
}
|
|
1948
|
+
let obj_filters_union1 = null;
|
|
1949
|
+
const obj_filters_union1_error = (() => {
|
|
1950
|
+
if (obj_filters !== null) {
|
|
1951
|
+
return new TypeError('Expected "null" but received "' + typeof obj_filters + '" (at "' + path_filters + '")');
|
|
1952
|
+
}
|
|
1953
|
+
})();
|
|
1954
|
+
if (obj_filters_union1_error != null) {
|
|
1955
|
+
obj_filters_union1 = obj_filters_union1_error.message;
|
|
1956
|
+
}
|
|
1957
|
+
if (obj_filters_union0 && obj_filters_union1) {
|
|
1958
|
+
let message = 'Object doesn\'t match union (at "' + path_filters + '")';
|
|
1959
|
+
message += '\n' + obj_filters_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1960
|
+
message += '\n' + obj_filters_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1961
|
+
return new TypeError(message);
|
|
1962
|
+
}
|
|
1963
|
+
const obj_id = obj.id;
|
|
1964
|
+
const path_id = path + '.id';
|
|
1965
|
+
let obj_id_union0 = null;
|
|
1966
|
+
const obj_id_union0_error = (() => {
|
|
1967
|
+
if (typeof obj_id !== 'string') {
|
|
1968
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1969
|
+
}
|
|
1970
|
+
})();
|
|
1971
|
+
if (obj_id_union0_error != null) {
|
|
1972
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
1973
|
+
}
|
|
1974
|
+
let obj_id_union1 = null;
|
|
1975
|
+
const obj_id_union1_error = (() => {
|
|
1976
|
+
if (obj_id !== null) {
|
|
1977
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1978
|
+
}
|
|
1979
|
+
})();
|
|
1980
|
+
if (obj_id_union1_error != null) {
|
|
1981
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
1982
|
+
}
|
|
1983
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
1984
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
1985
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1986
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1987
|
+
return new TypeError(message);
|
|
1988
|
+
}
|
|
1989
|
+
const obj_isSuccess = obj.isSuccess;
|
|
1990
|
+
const path_isSuccess = path + '.isSuccess';
|
|
1991
|
+
let obj_isSuccess_union0 = null;
|
|
1992
|
+
const obj_isSuccess_union0_error = (() => {
|
|
1993
|
+
if (typeof obj_isSuccess !== 'string') {
|
|
1994
|
+
return new TypeError('Expected "string" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
1995
|
+
}
|
|
1996
|
+
})();
|
|
1997
|
+
if (obj_isSuccess_union0_error != null) {
|
|
1998
|
+
obj_isSuccess_union0 = obj_isSuccess_union0_error.message;
|
|
1999
|
+
}
|
|
2000
|
+
let obj_isSuccess_union1 = null;
|
|
2001
|
+
const obj_isSuccess_union1_error = (() => {
|
|
2002
|
+
if (obj_isSuccess !== null) {
|
|
2003
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
2004
|
+
}
|
|
2005
|
+
})();
|
|
2006
|
+
if (obj_isSuccess_union1_error != null) {
|
|
2007
|
+
obj_isSuccess_union1 = obj_isSuccess_union1_error.message;
|
|
2008
|
+
}
|
|
2009
|
+
if (obj_isSuccess_union0 && obj_isSuccess_union1) {
|
|
2010
|
+
let message = 'Object doesn\'t match union (at "' + path_isSuccess + '")';
|
|
2011
|
+
message += '\n' + obj_isSuccess_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2012
|
+
message += '\n' + obj_isSuccess_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2013
|
+
return new TypeError(message);
|
|
2014
|
+
}
|
|
2015
|
+
const obj_maxMemberCount = obj.maxMemberCount;
|
|
2016
|
+
const path_maxMemberCount = path + '.maxMemberCount';
|
|
2017
|
+
let obj_maxMemberCount_union0 = null;
|
|
2018
|
+
const obj_maxMemberCount_union0_error = (() => {
|
|
2019
|
+
if (typeof obj_maxMemberCount !== 'number' || (typeof obj_maxMemberCount === 'number' && Math.floor(obj_maxMemberCount) !== obj_maxMemberCount)) {
|
|
2020
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_maxMemberCount + '" (at "' + path_maxMemberCount + '")');
|
|
2021
|
+
}
|
|
2022
|
+
})();
|
|
2023
|
+
if (obj_maxMemberCount_union0_error != null) {
|
|
2024
|
+
obj_maxMemberCount_union0 = obj_maxMemberCount_union0_error.message;
|
|
2025
|
+
}
|
|
2026
|
+
let obj_maxMemberCount_union1 = null;
|
|
2027
|
+
const obj_maxMemberCount_union1_error = (() => {
|
|
2028
|
+
if (obj_maxMemberCount !== null) {
|
|
2029
|
+
return new TypeError('Expected "null" but received "' + typeof obj_maxMemberCount + '" (at "' + path_maxMemberCount + '")');
|
|
2030
|
+
}
|
|
2031
|
+
})();
|
|
2032
|
+
if (obj_maxMemberCount_union1_error != null) {
|
|
2033
|
+
obj_maxMemberCount_union1 = obj_maxMemberCount_union1_error.message;
|
|
2034
|
+
}
|
|
2035
|
+
if (obj_maxMemberCount_union0 && obj_maxMemberCount_union1) {
|
|
2036
|
+
let message = 'Object doesn\'t match union (at "' + path_maxMemberCount + '")';
|
|
2037
|
+
message += '\n' + obj_maxMemberCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2038
|
+
message += '\n' + obj_maxMemberCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2039
|
+
return new TypeError(message);
|
|
2040
|
+
}
|
|
2041
|
+
})();
|
|
2042
|
+
return v_error === undefined ? null : v_error;
|
|
2043
|
+
}
|
|
2044
|
+
const RepresentationType$3 = 'ActionableListRefreshOutputRepresentation';
|
|
2045
|
+
function keyBuilder$5(luvio, config) {
|
|
2046
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + (config.id === null ? '' : config.id);
|
|
2047
|
+
}
|
|
2048
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
2049
|
+
const keyParams = {
|
|
2050
|
+
id: object.id
|
|
2051
|
+
};
|
|
2052
|
+
return keyBuilder$5(luvio, keyParams);
|
|
2053
|
+
}
|
|
2054
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
2055
|
+
return input;
|
|
2056
|
+
}
|
|
2057
|
+
const select$a = function ActionableListRefreshOutputRepresentationSelect() {
|
|
2058
|
+
const { selections: ActionableListRefreshFilterListOutputRepresentation__selections, opaque: ActionableListRefreshFilterListOutputRepresentation__opaque, } = select$b();
|
|
2059
|
+
return {
|
|
2060
|
+
kind: 'Fragment',
|
|
2061
|
+
version: VERSION$6,
|
|
2062
|
+
private: [],
|
|
2063
|
+
selections: [
|
|
2064
|
+
{
|
|
2065
|
+
name: 'candidateMemberCount',
|
|
2066
|
+
kind: 'Scalar'
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
name: 'errorMessage',
|
|
2070
|
+
kind: 'Scalar'
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
name: 'existingMemberCount',
|
|
2074
|
+
kind: 'Scalar'
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
name: 'filters',
|
|
2078
|
+
kind: 'Object',
|
|
2079
|
+
nullable: true,
|
|
2080
|
+
selections: ActionableListRefreshFilterListOutputRepresentation__selections
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
name: 'id',
|
|
2084
|
+
kind: 'Scalar'
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
name: 'isSuccess',
|
|
2088
|
+
kind: 'Scalar'
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
name: 'maxMemberCount',
|
|
2092
|
+
kind: 'Scalar'
|
|
2093
|
+
}
|
|
2094
|
+
]
|
|
2095
|
+
};
|
|
2096
|
+
};
|
|
2097
|
+
function equals$6(existing, incoming) {
|
|
2098
|
+
const existing_candidateMemberCount = existing.candidateMemberCount;
|
|
2099
|
+
const incoming_candidateMemberCount = incoming.candidateMemberCount;
|
|
2100
|
+
if (!(existing_candidateMemberCount === incoming_candidateMemberCount)) {
|
|
2101
|
+
return false;
|
|
2102
|
+
}
|
|
2103
|
+
const existing_errorMessage = existing.errorMessage;
|
|
2104
|
+
const incoming_errorMessage = incoming.errorMessage;
|
|
2105
|
+
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
2106
|
+
return false;
|
|
2107
|
+
}
|
|
2108
|
+
const existing_existingMemberCount = existing.existingMemberCount;
|
|
2109
|
+
const incoming_existingMemberCount = incoming.existingMemberCount;
|
|
2110
|
+
if (!(existing_existingMemberCount === incoming_existingMemberCount)) {
|
|
2111
|
+
return false;
|
|
2112
|
+
}
|
|
2113
|
+
const existing_filters = existing.filters;
|
|
2114
|
+
const incoming_filters = incoming.filters;
|
|
2115
|
+
if (!(existing_filters === incoming_filters
|
|
2116
|
+
|| (existing_filters != null &&
|
|
2117
|
+
incoming_filters != null &&
|
|
2118
|
+
equals$7(existing_filters, incoming_filters)))) {
|
|
2119
|
+
return false;
|
|
2120
|
+
}
|
|
2121
|
+
const existing_id = existing.id;
|
|
2122
|
+
const incoming_id = incoming.id;
|
|
2123
|
+
if (!(existing_id === incoming_id)) {
|
|
2124
|
+
return false;
|
|
2125
|
+
}
|
|
2126
|
+
const existing_isSuccess = existing.isSuccess;
|
|
2127
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
2128
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
2129
|
+
return false;
|
|
2130
|
+
}
|
|
2131
|
+
const existing_maxMemberCount = existing.maxMemberCount;
|
|
2132
|
+
const incoming_maxMemberCount = incoming.maxMemberCount;
|
|
2133
|
+
if (!(existing_maxMemberCount === incoming_maxMemberCount)) {
|
|
2134
|
+
return false;
|
|
2135
|
+
}
|
|
2136
|
+
return true;
|
|
2137
|
+
}
|
|
2138
|
+
const ingest$3 = function ActionableListRefreshOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2139
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2140
|
+
const validateError = validate$8(input);
|
|
2141
|
+
if (validateError !== null) {
|
|
2142
|
+
throw validateError;
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
2146
|
+
const ttlToUse = TTL$3;
|
|
2147
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "actionablelist", VERSION$6, RepresentationType$3, equals$6);
|
|
2148
|
+
return createLink(key);
|
|
2149
|
+
};
|
|
2150
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
2151
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2152
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
2153
|
+
rootKeySet.set(rootKey, {
|
|
2154
|
+
namespace: keyPrefix,
|
|
2155
|
+
representationName: RepresentationType$3,
|
|
2156
|
+
mergeable: false
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
function select$9(luvio, params) {
|
|
2161
|
+
return select$a();
|
|
2162
|
+
}
|
|
2163
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
2164
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
2165
|
+
}
|
|
2166
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
2167
|
+
const { body } = response;
|
|
2168
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
2169
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
2170
|
+
const snapshot = luvio.storeLookup({
|
|
2171
|
+
recordId: key,
|
|
2172
|
+
node: select$9(),
|
|
2173
|
+
variables: {},
|
|
2174
|
+
});
|
|
2175
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2176
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2177
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
deepFreeze(snapshot.data);
|
|
2181
|
+
return snapshot;
|
|
2182
|
+
}
|
|
2183
|
+
function createResourceRequest$3(config) {
|
|
2184
|
+
const headers = {};
|
|
2185
|
+
return {
|
|
2186
|
+
baseUri: '/services/data/v59.0',
|
|
2187
|
+
basePath: '/connect/actionable-list-refresh-count',
|
|
2188
|
+
method: 'post',
|
|
2189
|
+
body: config.body,
|
|
2190
|
+
urlParams: {},
|
|
2191
|
+
queryParams: {},
|
|
2192
|
+
headers,
|
|
2193
|
+
priority: 'normal',
|
|
2194
|
+
};
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
const adapterName$3 = 'upsertActionableListRefreshFilter';
|
|
2198
|
+
const upsertActionableListRefreshFilter_ConfigPropertyMetadata = [
|
|
2199
|
+
generateParamConfigMetadata('actionableListDefinitionId', true, 2 /* Body */, 0 /* String */),
|
|
2200
|
+
generateParamConfigMetadata('actionableListId', true, 2 /* Body */, 0 /* String */),
|
|
2201
|
+
];
|
|
2202
|
+
const upsertActionableListRefreshFilter_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, upsertActionableListRefreshFilter_ConfigPropertyMetadata);
|
|
2203
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(upsertActionableListRefreshFilter_ConfigPropertyMetadata);
|
|
2204
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
2205
|
+
const config = {};
|
|
2206
|
+
typeCheckConfig$7(untrustedConfig, config, upsertActionableListRefreshFilter_ConfigPropertyMetadata);
|
|
2207
|
+
return config;
|
|
2208
|
+
}
|
|
2209
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
2210
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2211
|
+
return null;
|
|
2212
|
+
}
|
|
2213
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2214
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2215
|
+
}
|
|
2216
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
2217
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2218
|
+
return null;
|
|
2219
|
+
}
|
|
2220
|
+
return config;
|
|
2221
|
+
}
|
|
2222
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
2223
|
+
const resourceParams = createResourceParams$3(config);
|
|
2224
|
+
const request = createResourceRequest$3(resourceParams);
|
|
2225
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2226
|
+
.then((response) => {
|
|
2227
|
+
return luvio.handleSuccessResponse(() => {
|
|
2228
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
2229
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2230
|
+
}, () => {
|
|
2231
|
+
const cache = new StoreKeyMap();
|
|
2232
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
2233
|
+
return cache;
|
|
2234
|
+
});
|
|
2235
|
+
}, (response) => {
|
|
2236
|
+
deepFreeze(response);
|
|
2237
|
+
throw response;
|
|
2238
|
+
});
|
|
2239
|
+
}
|
|
2240
|
+
const upsertActionableListRefreshFilterAdapterFactory = (luvio) => {
|
|
2241
|
+
return function upsertActionableListRefreshFilter(untrustedConfig) {
|
|
2242
|
+
const config = validateAdapterConfig$3(untrustedConfig, upsertActionableListRefreshFilter_ConfigPropertyNames);
|
|
2243
|
+
// Invalid or incomplete config
|
|
2244
|
+
if (config === null) {
|
|
2245
|
+
throw new Error('Invalid config for "upsertActionableListRefreshFilter"');
|
|
2246
|
+
}
|
|
1534
2247
|
return buildNetworkSnapshot$3(luvio, config);
|
|
1535
2248
|
};
|
|
1536
2249
|
};
|
|
@@ -1667,14 +2380,14 @@ const getActionableListMembers_ConfigPropertyMetadata = [
|
|
|
1667
2380
|
generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1668
2381
|
];
|
|
1669
2382
|
const getActionableListMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getActionableListMembers_ConfigPropertyMetadata);
|
|
1670
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
2383
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getActionableListMembers_ConfigPropertyMetadata);
|
|
1671
2384
|
function keyBuilder$3(luvio, config) {
|
|
1672
2385
|
const resourceParams = createResourceParams$2(config);
|
|
1673
2386
|
return keyBuilder$4(luvio, resourceParams);
|
|
1674
2387
|
}
|
|
1675
2388
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1676
2389
|
const config = {};
|
|
1677
|
-
typeCheckConfig$
|
|
2390
|
+
typeCheckConfig$7(untrustedConfig, config, getActionableListMembers_ConfigPropertyMetadata);
|
|
1678
2391
|
return config;
|
|
1679
2392
|
}
|
|
1680
2393
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -2178,7 +2891,7 @@ const upsertActionableList_ConfigPropertyMetadata = [
|
|
|
2178
2891
|
generateParamConfigMetadata('actionableListUpsertInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2179
2892
|
];
|
|
2180
2893
|
const upsertActionableList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, upsertActionableList_ConfigPropertyMetadata);
|
|
2181
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
2894
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(upsertActionableList_ConfigPropertyMetadata);
|
|
2182
2895
|
function typeCheckConfig$1(untrustedConfig) {
|
|
2183
2896
|
const config = {};
|
|
2184
2897
|
const untrustedConfig_actionableListUpsertInput = untrustedConfig.actionableListUpsertInput;
|
|
@@ -3172,7 +3885,7 @@ const getActionableListDatasetInfo_ConfigPropertyMetadata = [
|
|
|
3172
3885
|
generateParamConfigMetadata('actionableListDataset', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3173
3886
|
];
|
|
3174
3887
|
const getActionableListDatasetInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getActionableListDatasetInfo_ConfigPropertyMetadata);
|
|
3175
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
3888
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$7(getActionableListDatasetInfo_ConfigPropertyMetadata);
|
|
3176
3889
|
function keyBuilder(luvio, config) {
|
|
3177
3890
|
const resourceParams = createResourceParams(config);
|
|
3178
3891
|
return keyBuilder$1(luvio, resourceParams);
|
|
@@ -3257,4 +3970,4 @@ const getActionableListDatasetInfoAdapterFactory = (luvio) => function actionabl
|
|
|
3257
3970
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
3258
3971
|
};
|
|
3259
3972
|
|
|
3260
|
-
export { createActionableListDefinitionAdapterFactory, getActionableListDatasetInfoAdapterFactory, getActionableListDefinitionsAdapterFactory, getActionableListMembersAdapterFactory, upsertActionableListAdapterFactory, upsertActionableListDatasetColumnUserAdapterFactory };
|
|
3973
|
+
export { createActionableListDefinitionAdapterFactory, getActionableListDatasetInfoAdapterFactory, getActionableListDefinitionsAdapterFactory, getActionableListMembersAdapterFactory, upsertActionableListAdapterFactory, upsertActionableListDatasetColumnUserAdapterFactory, upsertActionableListRefreshFilterAdapterFactory };
|