@salesforce/lds-adapters-industries-actionablelist 1.151.0 → 1.152.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 +443 -114
- package/dist/es/es2018/types/src/generated/adapters/upsertActionableListDatasetColumnUser.d.ts +15 -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/postConnectActionableListDatasetColumnUserAssignment.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListColumnUserInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListColumnsUserOutputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListColumnsUserUpsertInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/ActionableListDatasetColumnUserWrapperInputRepresentation.d.ts +29 -0
- package/package.json +1 -1
- package/sfdc/index.js +620 -288
- package/src/raml/api.raml +60 -0
- package/src/raml/luvio.raml +8 -0
|
@@ -146,8 +146,8 @@ function createLink(ref) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
const VERSION$
|
|
150
|
-
function validate$
|
|
149
|
+
const VERSION$c = "bf02e6b522639f3bb93ec16ccee16087";
|
|
150
|
+
function validate$h(obj, path = 'ALDDatasetColumnOutputRepresentation') {
|
|
151
151
|
const v_error = (() => {
|
|
152
152
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
153
153
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -305,10 +305,10 @@ function validate$e(obj, path = 'ALDDatasetColumnOutputRepresentation') {
|
|
|
305
305
|
})();
|
|
306
306
|
return v_error === undefined ? null : v_error;
|
|
307
307
|
}
|
|
308
|
-
const select$
|
|
308
|
+
const select$i = function ALDDatasetColumnOutputRepresentationSelect() {
|
|
309
309
|
return {
|
|
310
310
|
kind: 'Fragment',
|
|
311
|
-
version: VERSION$
|
|
311
|
+
version: VERSION$c,
|
|
312
312
|
private: [],
|
|
313
313
|
selections: [
|
|
314
314
|
{
|
|
@@ -350,7 +350,7 @@ const select$g = function ALDDatasetColumnOutputRepresentationSelect() {
|
|
|
350
350
|
]
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
|
-
function equals$
|
|
353
|
+
function equals$c(existing, incoming) {
|
|
354
354
|
const existing_isDefault = existing.isDefault;
|
|
355
355
|
const incoming_isDefault = incoming.isDefault;
|
|
356
356
|
if (!(existing_isDefault === incoming_isDefault)) {
|
|
@@ -399,8 +399,8 @@ function equals$b(existing, incoming) {
|
|
|
399
399
|
return true;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
const VERSION$
|
|
403
|
-
function validate$
|
|
402
|
+
const VERSION$b = "9d133a939d3bf9e4f6209870e525ff9f";
|
|
403
|
+
function validate$g(obj, path = 'ALDMemberStatusOutputRepresentation') {
|
|
404
404
|
const v_error = (() => {
|
|
405
405
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
406
406
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -423,10 +423,10 @@ function validate$d(obj, path = 'ALDMemberStatusOutputRepresentation') {
|
|
|
423
423
|
})();
|
|
424
424
|
return v_error === undefined ? null : v_error;
|
|
425
425
|
}
|
|
426
|
-
const select$
|
|
426
|
+
const select$h = function ALDMemberStatusOutputRepresentationSelect() {
|
|
427
427
|
return {
|
|
428
428
|
kind: 'Fragment',
|
|
429
|
-
version: VERSION$
|
|
429
|
+
version: VERSION$b,
|
|
430
430
|
private: [],
|
|
431
431
|
selections: [
|
|
432
432
|
{
|
|
@@ -444,7 +444,7 @@ const select$f = function ALDMemberStatusOutputRepresentationSelect() {
|
|
|
444
444
|
]
|
|
445
445
|
};
|
|
446
446
|
};
|
|
447
|
-
function equals$
|
|
447
|
+
function equals$b(existing, incoming) {
|
|
448
448
|
const existing_iconName = existing.iconName;
|
|
449
449
|
const incoming_iconName = incoming.iconName;
|
|
450
450
|
if (!(existing_iconName === incoming_iconName)) {
|
|
@@ -463,8 +463,8 @@ function equals$a(existing, incoming) {
|
|
|
463
463
|
return true;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
-
const VERSION$
|
|
467
|
-
function validate$
|
|
466
|
+
const VERSION$a = "63348e0d2a5e8d3cf7f7ddc110bf6cf4";
|
|
467
|
+
function validate$f(obj, path = 'ActionableListDefinitionOutputRepresentation') {
|
|
468
468
|
const v_error = (() => {
|
|
469
469
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
470
470
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -477,7 +477,7 @@ function validate$c(obj, path = 'ActionableListDefinitionOutputRepresentation')
|
|
|
477
477
|
for (let i = 0; i < obj_aldDatasetColumnOutputRepresentation.length; i++) {
|
|
478
478
|
const obj_aldDatasetColumnOutputRepresentation_item = obj_aldDatasetColumnOutputRepresentation[i];
|
|
479
479
|
const path_aldDatasetColumnOutputRepresentation_item = path_aldDatasetColumnOutputRepresentation + '[' + i + ']';
|
|
480
|
-
const referencepath_aldDatasetColumnOutputRepresentation_itemValidationError = validate$
|
|
480
|
+
const referencepath_aldDatasetColumnOutputRepresentation_itemValidationError = validate$h(obj_aldDatasetColumnOutputRepresentation_item, path_aldDatasetColumnOutputRepresentation_item);
|
|
481
481
|
if (referencepath_aldDatasetColumnOutputRepresentation_itemValidationError !== null) {
|
|
482
482
|
let message = 'Object doesn\'t match ALDDatasetColumnOutputRepresentation (at "' + path_aldDatasetColumnOutputRepresentation_item + '")\n';
|
|
483
483
|
message += referencepath_aldDatasetColumnOutputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -492,7 +492,7 @@ function validate$c(obj, path = 'ActionableListDefinitionOutputRepresentation')
|
|
|
492
492
|
for (let i = 0; i < obj_aldMemberStatusOutputRepresentation.length; i++) {
|
|
493
493
|
const obj_aldMemberStatusOutputRepresentation_item = obj_aldMemberStatusOutputRepresentation[i];
|
|
494
494
|
const path_aldMemberStatusOutputRepresentation_item = path_aldMemberStatusOutputRepresentation + '[' + i + ']';
|
|
495
|
-
const referencepath_aldMemberStatusOutputRepresentation_itemValidationError = validate$
|
|
495
|
+
const referencepath_aldMemberStatusOutputRepresentation_itemValidationError = validate$g(obj_aldMemberStatusOutputRepresentation_item, path_aldMemberStatusOutputRepresentation_item);
|
|
496
496
|
if (referencepath_aldMemberStatusOutputRepresentation_itemValidationError !== null) {
|
|
497
497
|
let message = 'Object doesn\'t match ALDMemberStatusOutputRepresentation (at "' + path_aldMemberStatusOutputRepresentation_item + '")\n';
|
|
498
498
|
message += referencepath_aldMemberStatusOutputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -584,12 +584,12 @@ function validate$c(obj, path = 'ActionableListDefinitionOutputRepresentation')
|
|
|
584
584
|
})();
|
|
585
585
|
return v_error === undefined ? null : v_error;
|
|
586
586
|
}
|
|
587
|
-
const select$
|
|
588
|
-
const { selections: ALDDatasetColumnOutputRepresentation__selections, opaque: ALDDatasetColumnOutputRepresentation__opaque, } = select$
|
|
589
|
-
const { selections: ALDMemberStatusOutputRepresentation__selections, opaque: ALDMemberStatusOutputRepresentation__opaque, } = select$
|
|
587
|
+
const select$g = function ActionableListDefinitionOutputRepresentationSelect() {
|
|
588
|
+
const { selections: ALDDatasetColumnOutputRepresentation__selections, opaque: ALDDatasetColumnOutputRepresentation__opaque, } = select$i();
|
|
589
|
+
const { selections: ALDMemberStatusOutputRepresentation__selections, opaque: ALDMemberStatusOutputRepresentation__opaque, } = select$h();
|
|
590
590
|
return {
|
|
591
591
|
kind: 'Fragment',
|
|
592
|
-
version: VERSION$
|
|
592
|
+
version: VERSION$a,
|
|
593
593
|
private: [],
|
|
594
594
|
selections: [
|
|
595
595
|
{
|
|
@@ -639,7 +639,7 @@ const select$e = function ActionableListDefinitionOutputRepresentationSelect() {
|
|
|
639
639
|
]
|
|
640
640
|
};
|
|
641
641
|
};
|
|
642
|
-
function equals$
|
|
642
|
+
function equals$a(existing, incoming) {
|
|
643
643
|
const existing_isActive = existing.isActive;
|
|
644
644
|
const incoming_isActive = incoming.isActive;
|
|
645
645
|
if (!(existing_isActive === incoming_isActive)) {
|
|
@@ -673,7 +673,7 @@ function equals$9(existing, incoming) {
|
|
|
673
673
|
const existing_aldDatasetColumnOutputRepresentation = existing.aldDatasetColumnOutputRepresentation;
|
|
674
674
|
const incoming_aldDatasetColumnOutputRepresentation = incoming.aldDatasetColumnOutputRepresentation;
|
|
675
675
|
const equals_aldDatasetColumnOutputRepresentation_items = equalsArray(existing_aldDatasetColumnOutputRepresentation, incoming_aldDatasetColumnOutputRepresentation, (existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item) => {
|
|
676
|
-
if (!(equals$
|
|
676
|
+
if (!(equals$c(existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item))) {
|
|
677
677
|
return false;
|
|
678
678
|
}
|
|
679
679
|
});
|
|
@@ -683,7 +683,7 @@ function equals$9(existing, incoming) {
|
|
|
683
683
|
const existing_aldMemberStatusOutputRepresentation = existing.aldMemberStatusOutputRepresentation;
|
|
684
684
|
const incoming_aldMemberStatusOutputRepresentation = incoming.aldMemberStatusOutputRepresentation;
|
|
685
685
|
const equals_aldMemberStatusOutputRepresentation_items = equalsArray(existing_aldMemberStatusOutputRepresentation, incoming_aldMemberStatusOutputRepresentation, (existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item) => {
|
|
686
|
-
if (!(equals$
|
|
686
|
+
if (!(equals$b(existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item))) {
|
|
687
687
|
return false;
|
|
688
688
|
}
|
|
689
689
|
});
|
|
@@ -703,9 +703,9 @@ function equals$9(existing, incoming) {
|
|
|
703
703
|
return true;
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
const TTL$
|
|
707
|
-
const VERSION$
|
|
708
|
-
function validate$
|
|
706
|
+
const TTL$5 = 100;
|
|
707
|
+
const VERSION$9 = "4c1ba3bd226b3670b78af4e7ea159854";
|
|
708
|
+
function validate$e(obj, path = 'ActionableListDefinitionGetAllOutputRepresentation') {
|
|
709
709
|
const v_error = (() => {
|
|
710
710
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
711
711
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -718,7 +718,7 @@ function validate$b(obj, path = 'ActionableListDefinitionGetAllOutputRepresentat
|
|
|
718
718
|
for (let i = 0; i < obj_aldList.length; i++) {
|
|
719
719
|
const obj_aldList_item = obj_aldList[i];
|
|
720
720
|
const path_aldList_item = path_aldList + '[' + i + ']';
|
|
721
|
-
const referencepath_aldList_itemValidationError = validate$
|
|
721
|
+
const referencepath_aldList_itemValidationError = validate$f(obj_aldList_item, path_aldList_item);
|
|
722
722
|
if (referencepath_aldList_itemValidationError !== null) {
|
|
723
723
|
let message = 'Object doesn\'t match ActionableListDefinitionOutputRepresentation (at "' + path_aldList_item + '")\n';
|
|
724
724
|
message += referencepath_aldList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -728,15 +728,15 @@ function validate$b(obj, path = 'ActionableListDefinitionGetAllOutputRepresentat
|
|
|
728
728
|
})();
|
|
729
729
|
return v_error === undefined ? null : v_error;
|
|
730
730
|
}
|
|
731
|
-
const RepresentationType$
|
|
732
|
-
function normalize$
|
|
731
|
+
const RepresentationType$5 = 'ActionableListDefinitionGetAllOutputRepresentation';
|
|
732
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
733
733
|
return input;
|
|
734
734
|
}
|
|
735
|
-
const select$
|
|
736
|
-
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$
|
|
735
|
+
const select$f = function ActionableListDefinitionGetAllOutputRepresentationSelect() {
|
|
736
|
+
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$g();
|
|
737
737
|
return {
|
|
738
738
|
kind: 'Fragment',
|
|
739
|
-
version: VERSION$
|
|
739
|
+
version: VERSION$9,
|
|
740
740
|
private: [],
|
|
741
741
|
selections: [
|
|
742
742
|
{
|
|
@@ -748,11 +748,11 @@ const select$d = function ActionableListDefinitionGetAllOutputRepresentationSele
|
|
|
748
748
|
]
|
|
749
749
|
};
|
|
750
750
|
};
|
|
751
|
-
function equals$
|
|
751
|
+
function equals$9(existing, incoming) {
|
|
752
752
|
const existing_aldList = existing.aldList;
|
|
753
753
|
const incoming_aldList = incoming.aldList;
|
|
754
754
|
const equals_aldList_items = equalsArray(existing_aldList, incoming_aldList, (existing_aldList_item, incoming_aldList_item) => {
|
|
755
|
-
if (!(equals$
|
|
755
|
+
if (!(equals$a(existing_aldList_item, incoming_aldList_item))) {
|
|
756
756
|
return false;
|
|
757
757
|
}
|
|
758
758
|
});
|
|
@@ -761,64 +761,64 @@ function equals$8(existing, incoming) {
|
|
|
761
761
|
}
|
|
762
762
|
return true;
|
|
763
763
|
}
|
|
764
|
-
const ingest$
|
|
764
|
+
const ingest$5 = function ActionableListDefinitionGetAllOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
765
765
|
if (process.env.NODE_ENV !== 'production') {
|
|
766
|
-
const validateError = validate$
|
|
766
|
+
const validateError = validate$e(input);
|
|
767
767
|
if (validateError !== null) {
|
|
768
768
|
throw validateError;
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
771
|
const key = path.fullPath;
|
|
772
772
|
const existingRecord = store.readEntry(key);
|
|
773
|
-
const ttlToUse = TTL$
|
|
774
|
-
let incomingRecord = normalize$
|
|
773
|
+
const ttlToUse = TTL$5;
|
|
774
|
+
let incomingRecord = normalize$5(input, store.readEntry(key), {
|
|
775
775
|
fullPath: key,
|
|
776
776
|
parent: path.parent,
|
|
777
777
|
propertyName: path.propertyName,
|
|
778
778
|
ttl: ttlToUse
|
|
779
779
|
});
|
|
780
|
-
if (existingRecord === undefined || equals$
|
|
780
|
+
if (existingRecord === undefined || equals$9(existingRecord, incomingRecord) === false) {
|
|
781
781
|
luvio.storePublish(key, incomingRecord);
|
|
782
782
|
}
|
|
783
783
|
{
|
|
784
784
|
const storeMetadataParams = {
|
|
785
785
|
ttl: ttlToUse,
|
|
786
786
|
namespace: "actionablelist",
|
|
787
|
-
version: VERSION$
|
|
788
|
-
representationName: RepresentationType$
|
|
787
|
+
version: VERSION$9,
|
|
788
|
+
representationName: RepresentationType$5,
|
|
789
789
|
};
|
|
790
790
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
791
791
|
}
|
|
792
792
|
return createLink(key);
|
|
793
793
|
};
|
|
794
|
-
function getTypeCacheKeys$
|
|
794
|
+
function getTypeCacheKeys$5(luvio, input, fullPathFactory) {
|
|
795
795
|
const rootKeySet = new StoreKeyMap();
|
|
796
796
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
797
797
|
const rootKey = fullPathFactory();
|
|
798
798
|
rootKeySet.set(rootKey, {
|
|
799
799
|
namespace: keyPrefix,
|
|
800
|
-
representationName: RepresentationType$
|
|
800
|
+
representationName: RepresentationType$5,
|
|
801
801
|
mergeable: false
|
|
802
802
|
});
|
|
803
803
|
return rootKeySet;
|
|
804
804
|
}
|
|
805
805
|
|
|
806
|
-
function select$
|
|
807
|
-
return select$
|
|
806
|
+
function select$e(luvio, params) {
|
|
807
|
+
return select$f();
|
|
808
808
|
}
|
|
809
|
-
function keyBuilder$
|
|
809
|
+
function keyBuilder$8(luvio, params) {
|
|
810
810
|
return keyPrefix + '::ActionableListDefinitionGetAllOutputRepresentation:(' + 'id:' + params.queryParams.id + ',' + 'isActive:' + params.queryParams.isActive + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
811
811
|
}
|
|
812
|
-
function getResponseCacheKeys$
|
|
813
|
-
return getTypeCacheKeys$
|
|
812
|
+
function getResponseCacheKeys$5(luvio, resourceParams, response) {
|
|
813
|
+
return getTypeCacheKeys$5(luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
814
814
|
}
|
|
815
|
-
function ingestSuccess$
|
|
815
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
816
816
|
const { body } = response;
|
|
817
|
-
const key = keyBuilder$
|
|
818
|
-
luvio.storeIngest(key, ingest$
|
|
817
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
818
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
819
819
|
const snapshot = luvio.storeLookup({
|
|
820
820
|
recordId: key,
|
|
821
|
-
node: select$
|
|
821
|
+
node: select$e(),
|
|
822
822
|
variables: {},
|
|
823
823
|
}, snapshotRefresh);
|
|
824
824
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -830,18 +830,18 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
830
830
|
return snapshot;
|
|
831
831
|
}
|
|
832
832
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
833
|
-
const key = keyBuilder$
|
|
833
|
+
const key = keyBuilder$8(luvio, params);
|
|
834
834
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
835
835
|
const storeMetadataParams = {
|
|
836
|
-
ttl: TTL$
|
|
836
|
+
ttl: TTL$5,
|
|
837
837
|
namespace: keyPrefix,
|
|
838
|
-
version: VERSION$
|
|
839
|
-
representationName: RepresentationType$
|
|
838
|
+
version: VERSION$9,
|
|
839
|
+
representationName: RepresentationType$5
|
|
840
840
|
};
|
|
841
841
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
842
842
|
return errorSnapshot;
|
|
843
843
|
}
|
|
844
|
-
function createResourceRequest$
|
|
844
|
+
function createResourceRequest$5(config) {
|
|
845
845
|
const headers = {};
|
|
846
846
|
return {
|
|
847
847
|
baseUri: '/services/data/v59.0',
|
|
@@ -862,7 +862,7 @@ const getActionableListDefinitions_ConfigPropertyNames = {
|
|
|
862
862
|
optional: ['id', 'isActive', 'limit', 'offset']
|
|
863
863
|
}
|
|
864
864
|
};
|
|
865
|
-
function createResourceParams$
|
|
865
|
+
function createResourceParams$5(config) {
|
|
866
866
|
const resourceParams = {
|
|
867
867
|
queryParams: {
|
|
868
868
|
id: config.id, isActive: config.isActive, limit: config.limit, offset: config.offset
|
|
@@ -870,11 +870,11 @@ function createResourceParams$4(config) {
|
|
|
870
870
|
};
|
|
871
871
|
return resourceParams;
|
|
872
872
|
}
|
|
873
|
-
function keyBuilder$
|
|
874
|
-
const resourceParams = createResourceParams$
|
|
875
|
-
return keyBuilder$
|
|
873
|
+
function keyBuilder$7(luvio, config) {
|
|
874
|
+
const resourceParams = createResourceParams$5(config);
|
|
875
|
+
return keyBuilder$8(luvio, resourceParams);
|
|
876
876
|
}
|
|
877
|
-
function typeCheckConfig$
|
|
877
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
878
878
|
const config = {};
|
|
879
879
|
const untrustedConfig_id = untrustedConfig.id;
|
|
880
880
|
if (typeof untrustedConfig_id === 'string') {
|
|
@@ -894,43 +894,43 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
894
894
|
}
|
|
895
895
|
return config;
|
|
896
896
|
}
|
|
897
|
-
function validateAdapterConfig$
|
|
897
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
898
898
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
899
899
|
return null;
|
|
900
900
|
}
|
|
901
901
|
if (process.env.NODE_ENV !== 'production') {
|
|
902
902
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
903
903
|
}
|
|
904
|
-
const config = typeCheckConfig$
|
|
904
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
905
905
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
906
906
|
return null;
|
|
907
907
|
}
|
|
908
908
|
return config;
|
|
909
909
|
}
|
|
910
910
|
function adapterFragment$2(luvio, config) {
|
|
911
|
-
createResourceParams$
|
|
912
|
-
return select$
|
|
911
|
+
createResourceParams$5(config);
|
|
912
|
+
return select$e();
|
|
913
913
|
}
|
|
914
914
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
915
|
-
const snapshot = ingestSuccess$
|
|
915
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
916
916
|
config,
|
|
917
|
-
resolve: () => buildNetworkSnapshot$
|
|
917
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
918
918
|
});
|
|
919
919
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
920
920
|
}
|
|
921
921
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
922
922
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
923
923
|
config,
|
|
924
|
-
resolve: () => buildNetworkSnapshot$
|
|
924
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
925
925
|
});
|
|
926
926
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
927
927
|
}
|
|
928
|
-
function buildNetworkSnapshot$
|
|
929
|
-
const resourceParams = createResourceParams$
|
|
930
|
-
const request = createResourceRequest$
|
|
928
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
929
|
+
const resourceParams = createResourceParams$5(config);
|
|
930
|
+
const request = createResourceRequest$5(resourceParams);
|
|
931
931
|
return luvio.dispatchResourceRequest(request, options)
|
|
932
932
|
.then((response) => {
|
|
933
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => getResponseCacheKeys$
|
|
933
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => getResponseCacheKeys$5(luvio, resourceParams, response.body));
|
|
934
934
|
}, (response) => {
|
|
935
935
|
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
936
936
|
});
|
|
@@ -950,23 +950,23 @@ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext
|
|
|
950
950
|
priority: networkPriority
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
|
-
return buildNetworkSnapshot$
|
|
953
|
+
return buildNetworkSnapshot$5(luvio, config, dispatchOptions);
|
|
954
954
|
}
|
|
955
955
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
956
956
|
const { luvio, config } = context;
|
|
957
957
|
const selector = {
|
|
958
|
-
recordId: keyBuilder$
|
|
958
|
+
recordId: keyBuilder$7(luvio, config),
|
|
959
959
|
node: adapterFragment$2(luvio, config),
|
|
960
960
|
variables: {},
|
|
961
961
|
};
|
|
962
962
|
const cacheSnapshot = storeLookup(selector, {
|
|
963
963
|
config,
|
|
964
|
-
resolve: () => buildNetworkSnapshot$
|
|
964
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
965
965
|
});
|
|
966
966
|
return cacheSnapshot;
|
|
967
967
|
}
|
|
968
968
|
const getActionableListDefinitionsAdapterFactory = (luvio) => function actionablelist__getActionableListDefinitions(untrustedConfig, requestContext) {
|
|
969
|
-
const config = validateAdapterConfig$
|
|
969
|
+
const config = validateAdapterConfig$5(untrustedConfig, getActionableListDefinitions_ConfigPropertyNames);
|
|
970
970
|
// Invalid or incomplete config
|
|
971
971
|
if (config === null) {
|
|
972
972
|
return null;
|
|
@@ -975,7 +975,7 @@ const getActionableListDefinitionsAdapterFactory = (luvio) => function actionabl
|
|
|
975
975
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
976
976
|
};
|
|
977
977
|
|
|
978
|
-
function validate$
|
|
978
|
+
function validate$d(obj, path = 'ActionableListDefinitionCreateInputRepresentation') {
|
|
979
979
|
const v_error = (() => {
|
|
980
980
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
981
981
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -999,8 +999,8 @@ function validate$a(obj, path = 'ActionableListDefinitionCreateInputRepresentati
|
|
|
999
999
|
return v_error === undefined ? null : v_error;
|
|
1000
1000
|
}
|
|
1001
1001
|
|
|
1002
|
-
const VERSION$
|
|
1003
|
-
function validate$
|
|
1002
|
+
const VERSION$8 = "c011e92d9100cd54f4f75b6951999c39";
|
|
1003
|
+
function validate$c(obj, path = 'ActionableListDefinitionStatusOutputRepresentation') {
|
|
1004
1004
|
const v_error = (() => {
|
|
1005
1005
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1006
1006
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1018,10 +1018,10 @@ function validate$9(obj, path = 'ActionableListDefinitionStatusOutputRepresentat
|
|
|
1018
1018
|
})();
|
|
1019
1019
|
return v_error === undefined ? null : v_error;
|
|
1020
1020
|
}
|
|
1021
|
-
const select$
|
|
1021
|
+
const select$d = function ActionableListDefinitionStatusOutputRepresentationSelect() {
|
|
1022
1022
|
return {
|
|
1023
1023
|
kind: 'Fragment',
|
|
1024
|
-
version: VERSION$
|
|
1024
|
+
version: VERSION$8,
|
|
1025
1025
|
private: [],
|
|
1026
1026
|
selections: [
|
|
1027
1027
|
{
|
|
@@ -1035,7 +1035,7 @@ const select$b = function ActionableListDefinitionStatusOutputRepresentationSele
|
|
|
1035
1035
|
]
|
|
1036
1036
|
};
|
|
1037
1037
|
};
|
|
1038
|
-
function equals$
|
|
1038
|
+
function equals$8(existing, incoming) {
|
|
1039
1039
|
const existing_code = existing.code;
|
|
1040
1040
|
const incoming_code = incoming.code;
|
|
1041
1041
|
if (!(existing_code === incoming_code)) {
|
|
@@ -1049,16 +1049,16 @@ function equals$7(existing, incoming) {
|
|
|
1049
1049
|
return true;
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
|
-
const TTL$
|
|
1053
|
-
const VERSION$
|
|
1054
|
-
function validate$
|
|
1052
|
+
const TTL$4 = 100;
|
|
1053
|
+
const VERSION$7 = "7f7f8555df2466c8cbc7878266c1decd";
|
|
1054
|
+
function validate$b(obj, path = 'ActionableListDefinitionCreateOutputRepresentation') {
|
|
1055
1055
|
const v_error = (() => {
|
|
1056
1056
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1057
1057
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1058
1058
|
}
|
|
1059
1059
|
const obj_actionableListDefinition = obj.actionableListDefinition;
|
|
1060
1060
|
const path_actionableListDefinition = path + '.actionableListDefinition';
|
|
1061
|
-
const referencepath_actionableListDefinitionValidationError = validate$
|
|
1061
|
+
const referencepath_actionableListDefinitionValidationError = validate$f(obj_actionableListDefinition, path_actionableListDefinition);
|
|
1062
1062
|
if (referencepath_actionableListDefinitionValidationError !== null) {
|
|
1063
1063
|
let message = 'Object doesn\'t match ActionableListDefinitionOutputRepresentation (at "' + path_actionableListDefinition + '")\n';
|
|
1064
1064
|
message += referencepath_actionableListDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1066,7 +1066,7 @@ function validate$8(obj, path = 'ActionableListDefinitionCreateOutputRepresentat
|
|
|
1066
1066
|
}
|
|
1067
1067
|
const obj_status = obj.status;
|
|
1068
1068
|
const path_status = path + '.status';
|
|
1069
|
-
const referencepath_statusValidationError = validate$
|
|
1069
|
+
const referencepath_statusValidationError = validate$c(obj_status, path_status);
|
|
1070
1070
|
if (referencepath_statusValidationError !== null) {
|
|
1071
1071
|
let message = 'Object doesn\'t match ActionableListDefinitionStatusOutputRepresentation (at "' + path_status + '")\n';
|
|
1072
1072
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1075,25 +1075,25 @@ function validate$8(obj, path = 'ActionableListDefinitionCreateOutputRepresentat
|
|
|
1075
1075
|
})();
|
|
1076
1076
|
return v_error === undefined ? null : v_error;
|
|
1077
1077
|
}
|
|
1078
|
-
const RepresentationType$
|
|
1079
|
-
function keyBuilder$
|
|
1080
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1078
|
+
const RepresentationType$4 = 'ActionableListDefinitionCreateOutputRepresentation';
|
|
1079
|
+
function keyBuilder$6(luvio, config) {
|
|
1080
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
1081
1081
|
}
|
|
1082
|
-
function keyBuilderFromType$
|
|
1082
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
1083
1083
|
const keyParams = {
|
|
1084
1084
|
id: object.actionableListDefinition.id
|
|
1085
1085
|
};
|
|
1086
|
-
return keyBuilder$
|
|
1086
|
+
return keyBuilder$6(luvio, keyParams);
|
|
1087
1087
|
}
|
|
1088
|
-
function normalize$
|
|
1088
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
1089
1089
|
return input;
|
|
1090
1090
|
}
|
|
1091
|
-
const select$
|
|
1092
|
-
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$
|
|
1093
|
-
const { selections: ActionableListDefinitionStatusOutputRepresentation__selections, opaque: ActionableListDefinitionStatusOutputRepresentation__opaque, } = select$
|
|
1091
|
+
const select$c = function ActionableListDefinitionCreateOutputRepresentationSelect() {
|
|
1092
|
+
const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$g();
|
|
1093
|
+
const { selections: ActionableListDefinitionStatusOutputRepresentation__selections, opaque: ActionableListDefinitionStatusOutputRepresentation__opaque, } = select$d();
|
|
1094
1094
|
return {
|
|
1095
1095
|
kind: 'Fragment',
|
|
1096
|
-
version: VERSION$
|
|
1096
|
+
version: VERSION$7,
|
|
1097
1097
|
private: [],
|
|
1098
1098
|
selections: [
|
|
1099
1099
|
{
|
|
@@ -1109,20 +1109,349 @@ const select$a = function ActionableListDefinitionCreateOutputRepresentationSele
|
|
|
1109
1109
|
]
|
|
1110
1110
|
};
|
|
1111
1111
|
};
|
|
1112
|
-
function equals$
|
|
1112
|
+
function equals$7(existing, incoming) {
|
|
1113
1113
|
const existing_actionableListDefinition = existing.actionableListDefinition;
|
|
1114
1114
|
const incoming_actionableListDefinition = incoming.actionableListDefinition;
|
|
1115
|
-
if (!(equals$
|
|
1115
|
+
if (!(equals$a(existing_actionableListDefinition, incoming_actionableListDefinition))) {
|
|
1116
1116
|
return false;
|
|
1117
1117
|
}
|
|
1118
1118
|
const existing_status = existing.status;
|
|
1119
1119
|
const incoming_status = incoming.status;
|
|
1120
|
-
if (!(equals$
|
|
1120
|
+
if (!(equals$8(existing_status, incoming_status))) {
|
|
1121
1121
|
return false;
|
|
1122
1122
|
}
|
|
1123
1123
|
return true;
|
|
1124
1124
|
}
|
|
1125
|
-
const ingest$
|
|
1125
|
+
const ingest$4 = function ActionableListDefinitionCreateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1126
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1127
|
+
const validateError = validate$b(input);
|
|
1128
|
+
if (validateError !== null) {
|
|
1129
|
+
throw validateError;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
1133
|
+
const existingRecord = store.readEntry(key);
|
|
1134
|
+
const ttlToUse = TTL$4;
|
|
1135
|
+
let incomingRecord = normalize$4(input, store.readEntry(key), {
|
|
1136
|
+
fullPath: key,
|
|
1137
|
+
parent: path.parent,
|
|
1138
|
+
propertyName: path.propertyName,
|
|
1139
|
+
ttl: ttlToUse
|
|
1140
|
+
});
|
|
1141
|
+
if (existingRecord === undefined || equals$7(existingRecord, incomingRecord) === false) {
|
|
1142
|
+
luvio.storePublish(key, incomingRecord);
|
|
1143
|
+
}
|
|
1144
|
+
{
|
|
1145
|
+
const storeMetadataParams = {
|
|
1146
|
+
ttl: ttlToUse,
|
|
1147
|
+
namespace: "actionablelist",
|
|
1148
|
+
version: VERSION$7,
|
|
1149
|
+
representationName: RepresentationType$4,
|
|
1150
|
+
};
|
|
1151
|
+
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1152
|
+
}
|
|
1153
|
+
return createLink(key);
|
|
1154
|
+
};
|
|
1155
|
+
function getTypeCacheKeys$4(luvio, input, fullPathFactory) {
|
|
1156
|
+
const rootKeySet = new StoreKeyMap();
|
|
1157
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1158
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
1159
|
+
rootKeySet.set(rootKey, {
|
|
1160
|
+
namespace: keyPrefix,
|
|
1161
|
+
representationName: RepresentationType$4,
|
|
1162
|
+
mergeable: false
|
|
1163
|
+
});
|
|
1164
|
+
return rootKeySet;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
function select$b(luvio, params) {
|
|
1168
|
+
return select$c();
|
|
1169
|
+
}
|
|
1170
|
+
function getResponseCacheKeys$4(luvio, resourceParams, response) {
|
|
1171
|
+
return getTypeCacheKeys$4(luvio, response);
|
|
1172
|
+
}
|
|
1173
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
1174
|
+
const { body } = response;
|
|
1175
|
+
const key = keyBuilderFromType$2(luvio, body);
|
|
1176
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1177
|
+
const snapshot = luvio.storeLookup({
|
|
1178
|
+
recordId: key,
|
|
1179
|
+
node: select$b(),
|
|
1180
|
+
variables: {},
|
|
1181
|
+
});
|
|
1182
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1183
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1184
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
deepFreeze(snapshot.data);
|
|
1188
|
+
return snapshot;
|
|
1189
|
+
}
|
|
1190
|
+
function createResourceRequest$4(config) {
|
|
1191
|
+
const headers = {};
|
|
1192
|
+
return {
|
|
1193
|
+
baseUri: '/services/data/v59.0',
|
|
1194
|
+
basePath: '/connect/actionable-list-definition',
|
|
1195
|
+
method: 'post',
|
|
1196
|
+
body: config.body,
|
|
1197
|
+
urlParams: {},
|
|
1198
|
+
queryParams: {},
|
|
1199
|
+
headers,
|
|
1200
|
+
priority: 'normal',
|
|
1201
|
+
};
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
const createActionableListDefinition_ConfigPropertyNames = {
|
|
1205
|
+
displayName: 'createActionableListDefinition',
|
|
1206
|
+
parameters: {
|
|
1207
|
+
required: ['actionableListDefinitionCreateInput'],
|
|
1208
|
+
optional: []
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
function createResourceParams$4(config) {
|
|
1212
|
+
const resourceParams = {
|
|
1213
|
+
body: {
|
|
1214
|
+
actionableListDefinitionCreateInput: config.actionableListDefinitionCreateInput
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
return resourceParams;
|
|
1218
|
+
}
|
|
1219
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1220
|
+
const config = {};
|
|
1221
|
+
const untrustedConfig_actionableListDefinitionCreateInput = untrustedConfig.actionableListDefinitionCreateInput;
|
|
1222
|
+
const referenceActionableListDefinitionCreateInputRepresentationValidationError = validate$d(untrustedConfig_actionableListDefinitionCreateInput);
|
|
1223
|
+
if (referenceActionableListDefinitionCreateInputRepresentationValidationError === null) {
|
|
1224
|
+
config.actionableListDefinitionCreateInput = untrustedConfig_actionableListDefinitionCreateInput;
|
|
1225
|
+
}
|
|
1226
|
+
return config;
|
|
1227
|
+
}
|
|
1228
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1229
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1230
|
+
return null;
|
|
1231
|
+
}
|
|
1232
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1233
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1234
|
+
}
|
|
1235
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1236
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1237
|
+
return null;
|
|
1238
|
+
}
|
|
1239
|
+
return config;
|
|
1240
|
+
}
|
|
1241
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1242
|
+
const resourceParams = createResourceParams$4(config);
|
|
1243
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1244
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1245
|
+
.then((response) => {
|
|
1246
|
+
return luvio.handleSuccessResponse(() => {
|
|
1247
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
1248
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1249
|
+
}, () => getResponseCacheKeys$4(luvio, resourceParams, response.body));
|
|
1250
|
+
}, (response) => {
|
|
1251
|
+
deepFreeze(response);
|
|
1252
|
+
throw response;
|
|
1253
|
+
});
|
|
1254
|
+
}
|
|
1255
|
+
const createActionableListDefinitionAdapterFactory = (luvio) => {
|
|
1256
|
+
return function createActionableListDefinition(untrustedConfig) {
|
|
1257
|
+
const config = validateAdapterConfig$4(untrustedConfig, createActionableListDefinition_ConfigPropertyNames);
|
|
1258
|
+
// Invalid or incomplete config
|
|
1259
|
+
if (config === null) {
|
|
1260
|
+
throw new Error('Invalid config for "createActionableListDefinition"');
|
|
1261
|
+
}
|
|
1262
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
function validate$a(obj, path = 'ActionableListColumnUserInputRepresentation') {
|
|
1267
|
+
const v_error = (() => {
|
|
1268
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1269
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1270
|
+
}
|
|
1271
|
+
const obj_actionableListDatasetColumnId = obj.actionableListDatasetColumnId;
|
|
1272
|
+
const path_actionableListDatasetColumnId = path + '.actionableListDatasetColumnId';
|
|
1273
|
+
if (typeof obj_actionableListDatasetColumnId !== 'string') {
|
|
1274
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionableListDatasetColumnId + '" (at "' + path_actionableListDatasetColumnId + '")');
|
|
1275
|
+
}
|
|
1276
|
+
const obj_displayOrder = obj.displayOrder;
|
|
1277
|
+
const path_displayOrder = path + '.displayOrder';
|
|
1278
|
+
if (typeof obj_displayOrder !== 'number' || (typeof obj_displayOrder === 'number' && Math.floor(obj_displayOrder) !== obj_displayOrder)) {
|
|
1279
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_displayOrder + '" (at "' + path_displayOrder + '")');
|
|
1280
|
+
}
|
|
1281
|
+
const obj_isVisible = obj.isVisible;
|
|
1282
|
+
const path_isVisible = path + '.isVisible';
|
|
1283
|
+
if (typeof obj_isVisible !== 'boolean') {
|
|
1284
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isVisible + '" (at "' + path_isVisible + '")');
|
|
1285
|
+
}
|
|
1286
|
+
})();
|
|
1287
|
+
return v_error === undefined ? null : v_error;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
function validate$9(obj, path = 'ActionableListColumnsUserUpsertInputRepresentation') {
|
|
1291
|
+
const v_error = (() => {
|
|
1292
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1293
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1294
|
+
}
|
|
1295
|
+
const obj_actionableListDatasetColumnUserPrefList = obj.actionableListDatasetColumnUserPrefList;
|
|
1296
|
+
const path_actionableListDatasetColumnUserPrefList = path + '.actionableListDatasetColumnUserPrefList';
|
|
1297
|
+
if (!ArrayIsArray(obj_actionableListDatasetColumnUserPrefList)) {
|
|
1298
|
+
return new TypeError('Expected "array" but received "' + typeof obj_actionableListDatasetColumnUserPrefList + '" (at "' + path_actionableListDatasetColumnUserPrefList + '")');
|
|
1299
|
+
}
|
|
1300
|
+
for (let i = 0; i < obj_actionableListDatasetColumnUserPrefList.length; i++) {
|
|
1301
|
+
const obj_actionableListDatasetColumnUserPrefList_item = obj_actionableListDatasetColumnUserPrefList[i];
|
|
1302
|
+
const path_actionableListDatasetColumnUserPrefList_item = path_actionableListDatasetColumnUserPrefList + '[' + i + ']';
|
|
1303
|
+
const referencepath_actionableListDatasetColumnUserPrefList_itemValidationError = validate$a(obj_actionableListDatasetColumnUserPrefList_item, path_actionableListDatasetColumnUserPrefList_item);
|
|
1304
|
+
if (referencepath_actionableListDatasetColumnUserPrefList_itemValidationError !== null) {
|
|
1305
|
+
let message = 'Object doesn\'t match ActionableListColumnUserInputRepresentation (at "' + path_actionableListDatasetColumnUserPrefList_item + '")\n';
|
|
1306
|
+
message += referencepath_actionableListDatasetColumnUserPrefList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1307
|
+
return new TypeError(message);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
})();
|
|
1311
|
+
return v_error === undefined ? null : v_error;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
const TTL$3 = 5000;
|
|
1315
|
+
const VERSION$6 = "9a39093642c984addcbd6425bb594898";
|
|
1316
|
+
function validate$8(obj, path = 'ActionableListColumnsUserOutputRepresentation') {
|
|
1317
|
+
const v_error = (() => {
|
|
1318
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1319
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1320
|
+
}
|
|
1321
|
+
const obj_errorMessage = obj.errorMessage;
|
|
1322
|
+
const path_errorMessage = path + '.errorMessage';
|
|
1323
|
+
let obj_errorMessage_union0 = null;
|
|
1324
|
+
const obj_errorMessage_union0_error = (() => {
|
|
1325
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
1326
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1327
|
+
}
|
|
1328
|
+
})();
|
|
1329
|
+
if (obj_errorMessage_union0_error != null) {
|
|
1330
|
+
obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
|
|
1331
|
+
}
|
|
1332
|
+
let obj_errorMessage_union1 = null;
|
|
1333
|
+
const obj_errorMessage_union1_error = (() => {
|
|
1334
|
+
if (obj_errorMessage !== null) {
|
|
1335
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1336
|
+
}
|
|
1337
|
+
})();
|
|
1338
|
+
if (obj_errorMessage_union1_error != null) {
|
|
1339
|
+
obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
|
|
1340
|
+
}
|
|
1341
|
+
if (obj_errorMessage_union0 && obj_errorMessage_union1) {
|
|
1342
|
+
let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
|
|
1343
|
+
message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1344
|
+
message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1345
|
+
return new TypeError(message);
|
|
1346
|
+
}
|
|
1347
|
+
const obj_id = obj.id;
|
|
1348
|
+
const path_id = path + '.id';
|
|
1349
|
+
let obj_id_union0 = null;
|
|
1350
|
+
const obj_id_union0_error = (() => {
|
|
1351
|
+
if (typeof obj_id !== 'string') {
|
|
1352
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1353
|
+
}
|
|
1354
|
+
})();
|
|
1355
|
+
if (obj_id_union0_error != null) {
|
|
1356
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
1357
|
+
}
|
|
1358
|
+
let obj_id_union1 = null;
|
|
1359
|
+
const obj_id_union1_error = (() => {
|
|
1360
|
+
if (obj_id !== null) {
|
|
1361
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1362
|
+
}
|
|
1363
|
+
})();
|
|
1364
|
+
if (obj_id_union1_error != null) {
|
|
1365
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
1366
|
+
}
|
|
1367
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
1368
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
1369
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1370
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1371
|
+
return new TypeError(message);
|
|
1372
|
+
}
|
|
1373
|
+
const obj_isSuccess = obj.isSuccess;
|
|
1374
|
+
const path_isSuccess = path + '.isSuccess';
|
|
1375
|
+
let obj_isSuccess_union0 = null;
|
|
1376
|
+
const obj_isSuccess_union0_error = (() => {
|
|
1377
|
+
if (typeof obj_isSuccess !== 'string') {
|
|
1378
|
+
return new TypeError('Expected "string" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
1379
|
+
}
|
|
1380
|
+
})();
|
|
1381
|
+
if (obj_isSuccess_union0_error != null) {
|
|
1382
|
+
obj_isSuccess_union0 = obj_isSuccess_union0_error.message;
|
|
1383
|
+
}
|
|
1384
|
+
let obj_isSuccess_union1 = null;
|
|
1385
|
+
const obj_isSuccess_union1_error = (() => {
|
|
1386
|
+
if (obj_isSuccess !== null) {
|
|
1387
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
1388
|
+
}
|
|
1389
|
+
})();
|
|
1390
|
+
if (obj_isSuccess_union1_error != null) {
|
|
1391
|
+
obj_isSuccess_union1 = obj_isSuccess_union1_error.message;
|
|
1392
|
+
}
|
|
1393
|
+
if (obj_isSuccess_union0 && obj_isSuccess_union1) {
|
|
1394
|
+
let message = 'Object doesn\'t match union (at "' + path_isSuccess + '")';
|
|
1395
|
+
message += '\n' + obj_isSuccess_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1396
|
+
message += '\n' + obj_isSuccess_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1397
|
+
return new TypeError(message);
|
|
1398
|
+
}
|
|
1399
|
+
})();
|
|
1400
|
+
return v_error === undefined ? null : v_error;
|
|
1401
|
+
}
|
|
1402
|
+
const RepresentationType$3 = 'ActionableListColumnsUserOutputRepresentation';
|
|
1403
|
+
function keyBuilder$5(luvio, config) {
|
|
1404
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + (config.id === null ? '' : config.id);
|
|
1405
|
+
}
|
|
1406
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
1407
|
+
const keyParams = {
|
|
1408
|
+
id: object.id
|
|
1409
|
+
};
|
|
1410
|
+
return keyBuilder$5(luvio, keyParams);
|
|
1411
|
+
}
|
|
1412
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1413
|
+
return input;
|
|
1414
|
+
}
|
|
1415
|
+
const select$a = function ActionableListColumnsUserOutputRepresentationSelect() {
|
|
1416
|
+
return {
|
|
1417
|
+
kind: 'Fragment',
|
|
1418
|
+
version: VERSION$6,
|
|
1419
|
+
private: [],
|
|
1420
|
+
selections: [
|
|
1421
|
+
{
|
|
1422
|
+
name: 'errorMessage',
|
|
1423
|
+
kind: 'Scalar'
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
name: 'id',
|
|
1427
|
+
kind: 'Scalar'
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
name: 'isSuccess',
|
|
1431
|
+
kind: 'Scalar'
|
|
1432
|
+
}
|
|
1433
|
+
]
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
function equals$6(existing, incoming) {
|
|
1437
|
+
const existing_errorMessage = existing.errorMessage;
|
|
1438
|
+
const incoming_errorMessage = incoming.errorMessage;
|
|
1439
|
+
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
1440
|
+
return false;
|
|
1441
|
+
}
|
|
1442
|
+
const existing_id = existing.id;
|
|
1443
|
+
const incoming_id = incoming.id;
|
|
1444
|
+
if (!(existing_id === incoming_id)) {
|
|
1445
|
+
return false;
|
|
1446
|
+
}
|
|
1447
|
+
const existing_isSuccess = existing.isSuccess;
|
|
1448
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
1449
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
1450
|
+
return false;
|
|
1451
|
+
}
|
|
1452
|
+
return true;
|
|
1453
|
+
}
|
|
1454
|
+
const ingest$3 = function ActionableListColumnsUserOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1126
1455
|
if (process.env.NODE_ENV !== 'production') {
|
|
1127
1456
|
const validateError = validate$8(input);
|
|
1128
1457
|
if (validateError !== null) {
|
|
@@ -1191,7 +1520,7 @@ function createResourceRequest$3(config) {
|
|
|
1191
1520
|
const headers = {};
|
|
1192
1521
|
return {
|
|
1193
1522
|
baseUri: '/services/data/v59.0',
|
|
1194
|
-
basePath: '/connect/actionable-list-
|
|
1523
|
+
basePath: '/connect/actionable-list-dataset-column-user-assignment',
|
|
1195
1524
|
method: 'post',
|
|
1196
1525
|
body: config.body,
|
|
1197
1526
|
urlParams: {},
|
|
@@ -1201,27 +1530,27 @@ function createResourceRequest$3(config) {
|
|
|
1201
1530
|
};
|
|
1202
1531
|
}
|
|
1203
1532
|
|
|
1204
|
-
const
|
|
1205
|
-
displayName: '
|
|
1533
|
+
const upsertActionableListDatasetColumnUser_ConfigPropertyNames = {
|
|
1534
|
+
displayName: 'upsertActionableListDatasetColumnUser',
|
|
1206
1535
|
parameters: {
|
|
1207
|
-
required: ['
|
|
1536
|
+
required: ['actionableListDatasetColumnUserPreferencesUpsertInput'],
|
|
1208
1537
|
optional: []
|
|
1209
1538
|
}
|
|
1210
1539
|
};
|
|
1211
1540
|
function createResourceParams$3(config) {
|
|
1212
1541
|
const resourceParams = {
|
|
1213
1542
|
body: {
|
|
1214
|
-
|
|
1543
|
+
actionableListDatasetColumnUserPreferencesUpsertInput: config.actionableListDatasetColumnUserPreferencesUpsertInput
|
|
1215
1544
|
}
|
|
1216
1545
|
};
|
|
1217
1546
|
return resourceParams;
|
|
1218
1547
|
}
|
|
1219
1548
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1220
1549
|
const config = {};
|
|
1221
|
-
const
|
|
1222
|
-
const
|
|
1223
|
-
if (
|
|
1224
|
-
config.
|
|
1550
|
+
const untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput = untrustedConfig.actionableListDatasetColumnUserPreferencesUpsertInput;
|
|
1551
|
+
const referenceActionableListColumnsUserUpsertInputRepresentationValidationError = validate$9(untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput);
|
|
1552
|
+
if (referenceActionableListColumnsUserUpsertInputRepresentationValidationError === null) {
|
|
1553
|
+
config.actionableListDatasetColumnUserPreferencesUpsertInput = untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput;
|
|
1225
1554
|
}
|
|
1226
1555
|
return config;
|
|
1227
1556
|
}
|
|
@@ -1252,12 +1581,12 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1252
1581
|
throw response;
|
|
1253
1582
|
});
|
|
1254
1583
|
}
|
|
1255
|
-
const
|
|
1256
|
-
return function
|
|
1257
|
-
const config = validateAdapterConfig$3(untrustedConfig,
|
|
1584
|
+
const upsertActionableListDatasetColumnUserAdapterFactory = (luvio) => {
|
|
1585
|
+
return function upsertActionableListDatasetColumnUser(untrustedConfig) {
|
|
1586
|
+
const config = validateAdapterConfig$3(untrustedConfig, upsertActionableListDatasetColumnUser_ConfigPropertyNames);
|
|
1258
1587
|
// Invalid or incomplete config
|
|
1259
1588
|
if (config === null) {
|
|
1260
|
-
throw new Error('Invalid config for "
|
|
1589
|
+
throw new Error('Invalid config for "upsertActionableListDatasetColumnUser"');
|
|
1261
1590
|
}
|
|
1262
1591
|
return buildNetworkSnapshot$3(luvio, config);
|
|
1263
1592
|
};
|
|
@@ -3091,4 +3420,4 @@ const getActionableListDatasetInfoAdapterFactory = (luvio) => function actionabl
|
|
|
3091
3420
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
3092
3421
|
};
|
|
3093
3422
|
|
|
3094
|
-
export { createActionableListDefinitionAdapterFactory, getActionableListDatasetInfoAdapterFactory, getActionableListDefinitionsAdapterFactory, getActionableListMembersAdapterFactory, upsertActionableListAdapterFactory };
|
|
3423
|
+
export { createActionableListDefinitionAdapterFactory, getActionableListDatasetInfoAdapterFactory, getActionableListDefinitionsAdapterFactory, getActionableListMembersAdapterFactory, upsertActionableListAdapterFactory, upsertActionableListDatasetColumnUserAdapterFactory };
|