@salesforce/lds-adapters-cdp-data-transform 1.354.0-dev20 → 1.354.0-dev21
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/cdp-data-transform.js +501 -219
- package/dist/es/es2018/types/src/generated/adapters/updateDataTransform.d.ts +33 -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/putSsotDataTransformsByDataTransformNameOrId.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DataObjectFieldRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/DataObjectRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/DataTransformRepresentation.d.ts +19 -19
- package/package.json +3 -3
- package/sfdc/index.js +484 -199
- package/src/raml/api.raml +34 -14
- package/src/raml/luvio.raml +3 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$5, typeCheckConfig as typeCheckConfig$5, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -206,7 +206,7 @@ function validate$a(obj, path = 'CdpUserRepresentation') {
|
|
|
206
206
|
})();
|
|
207
207
|
return v_error === undefined ? null : v_error;
|
|
208
208
|
}
|
|
209
|
-
const select$
|
|
209
|
+
const select$c = function CdpUserRepresentationSelect() {
|
|
210
210
|
return {
|
|
211
211
|
kind: 'Fragment',
|
|
212
212
|
version: VERSION$8,
|
|
@@ -352,8 +352,8 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
352
352
|
};
|
|
353
353
|
return keyBuilder$6(luvio, keyParams);
|
|
354
354
|
}
|
|
355
|
-
const select$
|
|
356
|
-
const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$
|
|
355
|
+
const select$b = function CdpAssetBaseRepresentationSelect() {
|
|
356
|
+
const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$c();
|
|
357
357
|
return {
|
|
358
358
|
kind: 'Fragment',
|
|
359
359
|
version: VERSION$7,
|
|
@@ -531,7 +531,7 @@ function validate$8(obj, path = 'BaseActionRepresentation') {
|
|
|
531
531
|
})();
|
|
532
532
|
return v_error === undefined ? null : v_error;
|
|
533
533
|
}
|
|
534
|
-
const select$
|
|
534
|
+
const select$a = function BaseActionRepresentationSelect() {
|
|
535
535
|
return {
|
|
536
536
|
kind: 'Fragment',
|
|
537
537
|
version: VERSION$6,
|
|
@@ -581,7 +581,7 @@ function validate$7(obj, path = 'CdpErrorRepresentation') {
|
|
|
581
581
|
})();
|
|
582
582
|
return v_error === undefined ? null : v_error;
|
|
583
583
|
}
|
|
584
|
-
const select$
|
|
584
|
+
const select$9 = function CdpErrorRepresentationSelect() {
|
|
585
585
|
return {
|
|
586
586
|
kind: 'Fragment',
|
|
587
587
|
version: VERSION$5,
|
|
@@ -631,7 +631,7 @@ function validate$6(obj, path = 'ScheduleRepresentation') {
|
|
|
631
631
|
})();
|
|
632
632
|
return v_error === undefined ? null : v_error;
|
|
633
633
|
}
|
|
634
|
-
const select$
|
|
634
|
+
const select$8 = function ScheduleRepresentationSelect() {
|
|
635
635
|
return {
|
|
636
636
|
kind: 'Fragment',
|
|
637
637
|
version: VERSION$4,
|
|
@@ -672,10 +672,12 @@ function validate$5(obj, path = 'DataObjectFieldRepresentation') {
|
|
|
672
672
|
if (typeof obj_isPrimaryKey !== 'boolean') {
|
|
673
673
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isPrimaryKey + '" (at "' + path_isPrimaryKey + '")');
|
|
674
674
|
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
675
|
+
if (obj.keyQualifierField !== undefined) {
|
|
676
|
+
const obj_keyQualifierField = obj.keyQualifierField;
|
|
677
|
+
const path_keyQualifierField = path + '.keyQualifierField';
|
|
678
|
+
if (typeof obj_keyQualifierField !== 'string') {
|
|
679
|
+
return new TypeError('Expected "string" but received "' + typeof obj_keyQualifierField + '" (at "' + path_keyQualifierField + '")');
|
|
680
|
+
}
|
|
679
681
|
}
|
|
680
682
|
const obj_label = obj.label;
|
|
681
683
|
const path_label = path + '.label';
|
|
@@ -702,7 +704,7 @@ function equals$4(existing, incoming) {
|
|
|
702
704
|
return true;
|
|
703
705
|
}
|
|
704
706
|
|
|
705
|
-
const VERSION$3 = "
|
|
707
|
+
const VERSION$3 = "8242b57b93fc99780862de37f9209bc2";
|
|
706
708
|
function validate$4(obj, path = 'DataObjectRepresentation') {
|
|
707
709
|
const validateCdpAssetBaseRepresentation_validateError = validate$9(obj, path);
|
|
708
710
|
if (validateCdpAssetBaseRepresentation_validateError !== null) {
|
|
@@ -712,10 +714,12 @@ function validate$4(obj, path = 'DataObjectRepresentation') {
|
|
|
712
714
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
713
715
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
714
716
|
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
717
|
+
if (obj.category !== undefined) {
|
|
718
|
+
const obj_category = obj.category;
|
|
719
|
+
const path_category = path + '.category';
|
|
720
|
+
if (typeof obj_category !== 'string') {
|
|
721
|
+
return new TypeError('Expected "string" but received "' + typeof obj_category + '" (at "' + path_category + '")');
|
|
722
|
+
}
|
|
719
723
|
}
|
|
720
724
|
if (obj.eventDateTimeFieldName !== undefined) {
|
|
721
725
|
const obj_eventDateTimeFieldName = obj.eventDateTimeFieldName;
|
|
@@ -724,19 +728,21 @@ function validate$4(obj, path = 'DataObjectRepresentation') {
|
|
|
724
728
|
return new TypeError('Expected "string" but received "' + typeof obj_eventDateTimeFieldName + '" (at "' + path_eventDateTimeFieldName + '")');
|
|
725
729
|
}
|
|
726
730
|
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
731
|
+
if (obj.fields !== undefined) {
|
|
732
|
+
const obj_fields = obj.fields;
|
|
733
|
+
const path_fields = path + '.fields';
|
|
734
|
+
if (!ArrayIsArray(obj_fields)) {
|
|
735
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
736
|
+
}
|
|
737
|
+
for (let i = 0; i < obj_fields.length; i++) {
|
|
738
|
+
const obj_fields_item = obj_fields[i];
|
|
739
|
+
const path_fields_item = path_fields + '[' + i + ']';
|
|
740
|
+
const referencepath_fields_itemValidationError = validate$5(obj_fields_item, path_fields_item);
|
|
741
|
+
if (referencepath_fields_itemValidationError !== null) {
|
|
742
|
+
let message = 'Object doesn\'t match DataObjectFieldRepresentation (at "' + path_fields_item + '")\n';
|
|
743
|
+
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
744
|
+
return new TypeError(message);
|
|
745
|
+
}
|
|
740
746
|
}
|
|
741
747
|
}
|
|
742
748
|
if (obj.recordModifiedFieldName !== undefined) {
|
|
@@ -746,10 +752,12 @@ function validate$4(obj, path = 'DataObjectRepresentation') {
|
|
|
746
752
|
return new TypeError('Expected "string" but received "' + typeof obj_recordModifiedFieldName + '" (at "' + path_recordModifiedFieldName + '")');
|
|
747
753
|
}
|
|
748
754
|
}
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
755
|
+
if (obj.type !== undefined) {
|
|
756
|
+
const obj_type = obj.type;
|
|
757
|
+
const path_type = path + '.type';
|
|
758
|
+
if (typeof obj_type !== 'string') {
|
|
759
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
760
|
+
}
|
|
753
761
|
}
|
|
754
762
|
})();
|
|
755
763
|
return v_error === undefined ? null : v_error;
|
|
@@ -761,7 +769,7 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
761
769
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
762
770
|
return input;
|
|
763
771
|
}
|
|
764
|
-
const select$
|
|
772
|
+
const select$7 = function DataObjectRepresentationSelect() {
|
|
765
773
|
return {
|
|
766
774
|
kind: 'Fragment',
|
|
767
775
|
version: VERSION$3,
|
|
@@ -775,8 +783,16 @@ function equals$3(existing, incoming) {
|
|
|
775
783
|
}
|
|
776
784
|
const existing_category = existing.category;
|
|
777
785
|
const incoming_category = incoming.category;
|
|
778
|
-
if
|
|
779
|
-
|
|
786
|
+
// if at least one of these optionals is defined
|
|
787
|
+
if (existing_category !== undefined || incoming_category !== undefined) {
|
|
788
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
789
|
+
// not equal
|
|
790
|
+
if (existing_category === undefined || incoming_category === undefined) {
|
|
791
|
+
return false;
|
|
792
|
+
}
|
|
793
|
+
if (!(existing_category === incoming_category)) {
|
|
794
|
+
return false;
|
|
795
|
+
}
|
|
780
796
|
}
|
|
781
797
|
const existing_eventDateTimeFieldName = existing.eventDateTimeFieldName;
|
|
782
798
|
const incoming_eventDateTimeFieldName = incoming.eventDateTimeFieldName;
|
|
@@ -806,18 +822,34 @@ function equals$3(existing, incoming) {
|
|
|
806
822
|
}
|
|
807
823
|
const existing_type = existing.type;
|
|
808
824
|
const incoming_type = incoming.type;
|
|
809
|
-
if
|
|
810
|
-
|
|
825
|
+
// if at least one of these optionals is defined
|
|
826
|
+
if (existing_type !== undefined || incoming_type !== undefined) {
|
|
827
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
828
|
+
// not equal
|
|
829
|
+
if (existing_type === undefined || incoming_type === undefined) {
|
|
830
|
+
return false;
|
|
831
|
+
}
|
|
832
|
+
if (!(existing_type === incoming_type)) {
|
|
833
|
+
return false;
|
|
834
|
+
}
|
|
811
835
|
}
|
|
812
836
|
const existing_fields = existing.fields;
|
|
813
837
|
const incoming_fields = incoming.fields;
|
|
814
|
-
|
|
815
|
-
|
|
838
|
+
// if at least one of these optionals is defined
|
|
839
|
+
if (existing_fields !== undefined || incoming_fields !== undefined) {
|
|
840
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
841
|
+
// not equal
|
|
842
|
+
if (existing_fields === undefined || incoming_fields === undefined) {
|
|
843
|
+
return false;
|
|
844
|
+
}
|
|
845
|
+
const equals_fields_items = equalsArray(existing_fields, incoming_fields, (existing_fields_item, incoming_fields_item) => {
|
|
846
|
+
if (!(equals$4(existing_fields_item, incoming_fields_item))) {
|
|
847
|
+
return false;
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
if (equals_fields_items === false) {
|
|
816
851
|
return false;
|
|
817
852
|
}
|
|
818
|
-
});
|
|
819
|
-
if (equals_fields_items === false) {
|
|
820
|
-
return false;
|
|
821
853
|
}
|
|
822
854
|
return true;
|
|
823
855
|
}
|
|
@@ -894,7 +926,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
894
926
|
}
|
|
895
927
|
return input;
|
|
896
928
|
}
|
|
897
|
-
const select$
|
|
929
|
+
const select$6 = function DataTransformDefinitionRepresentationSelect() {
|
|
898
930
|
return {
|
|
899
931
|
kind: 'Fragment',
|
|
900
932
|
version: VERSION$2,
|
|
@@ -904,7 +936,7 @@ const select$5 = function DataTransformDefinitionRepresentationSelect() {
|
|
|
904
936
|
name: 'outputDataObjects',
|
|
905
937
|
kind: 'Link',
|
|
906
938
|
plural: true,
|
|
907
|
-
fragment: select$
|
|
939
|
+
fragment: select$7()
|
|
908
940
|
},
|
|
909
941
|
{
|
|
910
942
|
name: 'type',
|
|
@@ -966,7 +998,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
966
998
|
}
|
|
967
999
|
}
|
|
968
1000
|
|
|
969
|
-
const VERSION$1 = "
|
|
1001
|
+
const VERSION$1 = "3a9081497eeed505968a3ef0ca548f46";
|
|
970
1002
|
function validate$2(obj, path = 'DataTransformRepresentation') {
|
|
971
1003
|
const validateCdpAssetBaseRepresentation_validateError = validate$9(obj, path);
|
|
972
1004
|
if (validateCdpAssetBaseRepresentation_validateError !== null) {
|
|
@@ -1005,69 +1037,85 @@ function validate$2(obj, path = 'DataTransformRepresentation') {
|
|
|
1005
1037
|
if (typeof obj_creationType !== 'string') {
|
|
1006
1038
|
return new TypeError('Expected "string" but received "' + typeof obj_creationType + '" (at "' + path_creationType + '")');
|
|
1007
1039
|
}
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1040
|
+
if (obj.dataSpaceName !== undefined) {
|
|
1041
|
+
const obj_dataSpaceName = obj.dataSpaceName;
|
|
1042
|
+
const path_dataSpaceName = path + '.dataSpaceName';
|
|
1043
|
+
if (typeof obj_dataSpaceName !== 'string') {
|
|
1044
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
|
|
1045
|
+
}
|
|
1012
1046
|
}
|
|
1013
1047
|
const obj_definition = obj.definition;
|
|
1014
1048
|
const path_definition = path + '.definition';
|
|
1015
1049
|
if (typeof obj_definition !== 'object') {
|
|
1016
1050
|
return new TypeError('Expected "object" but received "' + typeof obj_definition + '" (at "' + path_definition + '")');
|
|
1017
1051
|
}
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
const path_lastRunDate = path + '.lastRunDate';
|
|
1025
|
-
if (typeof obj_lastRunDate !== 'string') {
|
|
1026
|
-
return new TypeError('Expected "string" but received "' + typeof obj_lastRunDate + '" (at "' + path_lastRunDate + '")');
|
|
1027
|
-
}
|
|
1028
|
-
const obj_lastRunErrorCode = obj.lastRunErrorCode;
|
|
1029
|
-
const path_lastRunErrorCode = path + '.lastRunErrorCode';
|
|
1030
|
-
const referencepath_lastRunErrorCodeValidationError = validate$7(obj_lastRunErrorCode, path_lastRunErrorCode);
|
|
1031
|
-
if (referencepath_lastRunErrorCodeValidationError !== null) {
|
|
1032
|
-
let message = 'Object doesn\'t match CdpErrorRepresentation (at "' + path_lastRunErrorCode + '")\n';
|
|
1033
|
-
message += referencepath_lastRunErrorCodeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1034
|
-
return new TypeError(message);
|
|
1052
|
+
if (obj.description !== undefined) {
|
|
1053
|
+
const obj_description = obj.description;
|
|
1054
|
+
const path_description = path + '.description';
|
|
1055
|
+
if (typeof obj_description !== 'string') {
|
|
1056
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1057
|
+
}
|
|
1035
1058
|
}
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1059
|
+
if (obj.lastRunDate !== undefined) {
|
|
1060
|
+
const obj_lastRunDate = obj.lastRunDate;
|
|
1061
|
+
const path_lastRunDate = path + '.lastRunDate';
|
|
1062
|
+
if (typeof obj_lastRunDate !== 'string') {
|
|
1063
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastRunDate + '" (at "' + path_lastRunDate + '")');
|
|
1064
|
+
}
|
|
1040
1065
|
}
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1066
|
+
if (obj.lastRunErrorCode !== undefined) {
|
|
1067
|
+
const obj_lastRunErrorCode = obj.lastRunErrorCode;
|
|
1068
|
+
const path_lastRunErrorCode = path + '.lastRunErrorCode';
|
|
1069
|
+
const referencepath_lastRunErrorCodeValidationError = validate$7(obj_lastRunErrorCode, path_lastRunErrorCode);
|
|
1070
|
+
if (referencepath_lastRunErrorCodeValidationError !== null) {
|
|
1071
|
+
let message = 'Object doesn\'t match CdpErrorRepresentation (at "' + path_lastRunErrorCode + '")\n';
|
|
1072
|
+
message += referencepath_lastRunErrorCodeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1073
|
+
return new TypeError(message);
|
|
1074
|
+
}
|
|
1045
1075
|
}
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1076
|
+
if (obj.lastRunErrorMessage !== undefined) {
|
|
1077
|
+
const obj_lastRunErrorMessage = obj.lastRunErrorMessage;
|
|
1078
|
+
const path_lastRunErrorMessage = path + '.lastRunErrorMessage';
|
|
1079
|
+
if (typeof obj_lastRunErrorMessage !== 'string') {
|
|
1080
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastRunErrorMessage + '" (at "' + path_lastRunErrorMessage + '")');
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
if (obj.lastRunStatus !== undefined) {
|
|
1084
|
+
const obj_lastRunStatus = obj.lastRunStatus;
|
|
1085
|
+
const path_lastRunStatus = path + '.lastRunStatus';
|
|
1086
|
+
if (typeof obj_lastRunStatus !== 'string') {
|
|
1087
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastRunStatus + '" (at "' + path_lastRunStatus + '")');
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
if (obj.schedule !== undefined) {
|
|
1091
|
+
const obj_schedule = obj.schedule;
|
|
1092
|
+
const path_schedule = path + '.schedule';
|
|
1093
|
+
const referencepath_scheduleValidationError = validate$6(obj_schedule, path_schedule);
|
|
1094
|
+
if (referencepath_scheduleValidationError !== null) {
|
|
1095
|
+
let message = 'Object doesn\'t match ScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
1096
|
+
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1097
|
+
return new TypeError(message);
|
|
1098
|
+
}
|
|
1053
1099
|
}
|
|
1054
1100
|
const obj_status = obj.status;
|
|
1055
1101
|
const path_status = path + '.status';
|
|
1056
1102
|
if (typeof obj_status !== 'string') {
|
|
1057
1103
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1058
1104
|
}
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1105
|
+
if (obj.tags !== undefined) {
|
|
1106
|
+
const obj_tags = obj.tags;
|
|
1107
|
+
const path_tags = path + '.tags';
|
|
1108
|
+
if (typeof obj_tags !== 'object' || ArrayIsArray(obj_tags) || obj_tags === null) {
|
|
1109
|
+
return new TypeError('Expected "object" but received "' + typeof obj_tags + '" (at "' + path_tags + '")');
|
|
1110
|
+
}
|
|
1111
|
+
const obj_tags_keys = ObjectKeys(obj_tags);
|
|
1112
|
+
for (let i = 0; i < obj_tags_keys.length; i++) {
|
|
1113
|
+
const key = obj_tags_keys[i];
|
|
1114
|
+
const obj_tags_prop = obj_tags[key];
|
|
1115
|
+
const path_tags_prop = path_tags + '["' + key + '"]';
|
|
1116
|
+
if (typeof obj_tags_prop !== 'string') {
|
|
1117
|
+
return new TypeError('Expected "string" but received "' + typeof obj_tags_prop + '" (at "' + path_tags_prop + '")');
|
|
1118
|
+
}
|
|
1071
1119
|
}
|
|
1072
1120
|
}
|
|
1073
1121
|
const obj_type = obj.type;
|
|
@@ -1075,7 +1123,9 @@ function validate$2(obj, path = 'DataTransformRepresentation') {
|
|
|
1075
1123
|
if (typeof obj_type !== 'string') {
|
|
1076
1124
|
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1077
1125
|
}
|
|
1078
|
-
obj.version
|
|
1126
|
+
if (obj.version !== undefined) {
|
|
1127
|
+
obj.version;
|
|
1128
|
+
}
|
|
1079
1129
|
})();
|
|
1080
1130
|
return v_error === undefined ? null : v_error;
|
|
1081
1131
|
}
|
|
@@ -1101,11 +1151,11 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
1101
1151
|
}, luvio, store, timestamp);
|
|
1102
1152
|
return input;
|
|
1103
1153
|
}
|
|
1104
|
-
const select$
|
|
1105
|
-
const { selections: CdpAssetBaseRepresentationSelections } = select$
|
|
1106
|
-
const { selections: BaseActionRepresentation__selections, opaque: BaseActionRepresentation__opaque, } = select$
|
|
1107
|
-
const { selections: CdpErrorRepresentation__selections, opaque: CdpErrorRepresentation__opaque, } = select$
|
|
1108
|
-
const { selections: ScheduleRepresentation__selections, opaque: ScheduleRepresentation__opaque, } = select$
|
|
1154
|
+
const select$5 = function DataTransformRepresentationSelect() {
|
|
1155
|
+
const { selections: CdpAssetBaseRepresentationSelections } = select$b();
|
|
1156
|
+
const { selections: BaseActionRepresentation__selections, opaque: BaseActionRepresentation__opaque, } = select$a();
|
|
1157
|
+
const { selections: CdpErrorRepresentation__selections, opaque: CdpErrorRepresentation__opaque, } = select$9();
|
|
1158
|
+
const { selections: ScheduleRepresentation__selections, opaque: ScheduleRepresentation__opaque, } = select$8();
|
|
1109
1159
|
return {
|
|
1110
1160
|
kind: 'Fragment',
|
|
1111
1161
|
version: VERSION$1,
|
|
@@ -1129,38 +1179,45 @@ const select$4 = function DataTransformRepresentationSelect() {
|
|
|
1129
1179
|
},
|
|
1130
1180
|
{
|
|
1131
1181
|
name: 'dataSpaceName',
|
|
1132
|
-
kind: 'Scalar'
|
|
1182
|
+
kind: 'Scalar',
|
|
1183
|
+
required: false
|
|
1133
1184
|
},
|
|
1134
1185
|
{
|
|
1135
1186
|
name: 'definition',
|
|
1136
1187
|
kind: 'Link',
|
|
1137
|
-
fragment: select$
|
|
1188
|
+
fragment: select$6()
|
|
1138
1189
|
},
|
|
1139
1190
|
{
|
|
1140
1191
|
name: 'description',
|
|
1141
|
-
kind: 'Scalar'
|
|
1192
|
+
kind: 'Scalar',
|
|
1193
|
+
required: false
|
|
1142
1194
|
},
|
|
1143
1195
|
{
|
|
1144
1196
|
name: 'lastRunDate',
|
|
1145
|
-
kind: 'Scalar'
|
|
1197
|
+
kind: 'Scalar',
|
|
1198
|
+
required: false
|
|
1146
1199
|
},
|
|
1147
1200
|
{
|
|
1148
1201
|
name: 'lastRunErrorCode',
|
|
1149
1202
|
kind: 'Object',
|
|
1150
|
-
selections: CdpErrorRepresentation__selections
|
|
1203
|
+
selections: CdpErrorRepresentation__selections,
|
|
1204
|
+
required: false
|
|
1151
1205
|
},
|
|
1152
1206
|
{
|
|
1153
1207
|
name: 'lastRunErrorMessage',
|
|
1154
|
-
kind: 'Scalar'
|
|
1208
|
+
kind: 'Scalar',
|
|
1209
|
+
required: false
|
|
1155
1210
|
},
|
|
1156
1211
|
{
|
|
1157
1212
|
name: 'lastRunStatus',
|
|
1158
|
-
kind: 'Scalar'
|
|
1213
|
+
kind: 'Scalar',
|
|
1214
|
+
required: false
|
|
1159
1215
|
},
|
|
1160
1216
|
{
|
|
1161
1217
|
name: 'schedule',
|
|
1162
1218
|
kind: 'Object',
|
|
1163
|
-
selections: ScheduleRepresentation__selections
|
|
1219
|
+
selections: ScheduleRepresentation__selections,
|
|
1220
|
+
required: false
|
|
1164
1221
|
},
|
|
1165
1222
|
{
|
|
1166
1223
|
name: 'status',
|
|
@@ -1169,7 +1226,8 @@ const select$4 = function DataTransformRepresentationSelect() {
|
|
|
1169
1226
|
{
|
|
1170
1227
|
name: 'tags',
|
|
1171
1228
|
kind: 'Scalar',
|
|
1172
|
-
map: true
|
|
1229
|
+
map: true,
|
|
1230
|
+
required: false
|
|
1173
1231
|
},
|
|
1174
1232
|
{
|
|
1175
1233
|
name: 'type',
|
|
@@ -1177,7 +1235,8 @@ const select$4 = function DataTransformRepresentationSelect() {
|
|
|
1177
1235
|
},
|
|
1178
1236
|
{
|
|
1179
1237
|
name: 'version',
|
|
1180
|
-
kind: 'Scalar'
|
|
1238
|
+
kind: 'Scalar',
|
|
1239
|
+
required: false
|
|
1181
1240
|
}
|
|
1182
1241
|
]
|
|
1183
1242
|
};
|
|
@@ -1193,28 +1252,68 @@ function equals$1(existing, incoming) {
|
|
|
1193
1252
|
}
|
|
1194
1253
|
const existing_dataSpaceName = existing.dataSpaceName;
|
|
1195
1254
|
const incoming_dataSpaceName = incoming.dataSpaceName;
|
|
1196
|
-
if
|
|
1197
|
-
|
|
1255
|
+
// if at least one of these optionals is defined
|
|
1256
|
+
if (existing_dataSpaceName !== undefined || incoming_dataSpaceName !== undefined) {
|
|
1257
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1258
|
+
// not equal
|
|
1259
|
+
if (existing_dataSpaceName === undefined || incoming_dataSpaceName === undefined) {
|
|
1260
|
+
return false;
|
|
1261
|
+
}
|
|
1262
|
+
if (!(existing_dataSpaceName === incoming_dataSpaceName)) {
|
|
1263
|
+
return false;
|
|
1264
|
+
}
|
|
1198
1265
|
}
|
|
1199
1266
|
const existing_description = existing.description;
|
|
1200
1267
|
const incoming_description = incoming.description;
|
|
1201
|
-
if
|
|
1202
|
-
|
|
1268
|
+
// if at least one of these optionals is defined
|
|
1269
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
1270
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1271
|
+
// not equal
|
|
1272
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
1273
|
+
return false;
|
|
1274
|
+
}
|
|
1275
|
+
if (!(existing_description === incoming_description)) {
|
|
1276
|
+
return false;
|
|
1277
|
+
}
|
|
1203
1278
|
}
|
|
1204
1279
|
const existing_lastRunDate = existing.lastRunDate;
|
|
1205
1280
|
const incoming_lastRunDate = incoming.lastRunDate;
|
|
1206
|
-
if
|
|
1207
|
-
|
|
1281
|
+
// if at least one of these optionals is defined
|
|
1282
|
+
if (existing_lastRunDate !== undefined || incoming_lastRunDate !== undefined) {
|
|
1283
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1284
|
+
// not equal
|
|
1285
|
+
if (existing_lastRunDate === undefined || incoming_lastRunDate === undefined) {
|
|
1286
|
+
return false;
|
|
1287
|
+
}
|
|
1288
|
+
if (!(existing_lastRunDate === incoming_lastRunDate)) {
|
|
1289
|
+
return false;
|
|
1290
|
+
}
|
|
1208
1291
|
}
|
|
1209
1292
|
const existing_lastRunErrorMessage = existing.lastRunErrorMessage;
|
|
1210
1293
|
const incoming_lastRunErrorMessage = incoming.lastRunErrorMessage;
|
|
1211
|
-
if
|
|
1212
|
-
|
|
1294
|
+
// if at least one of these optionals is defined
|
|
1295
|
+
if (existing_lastRunErrorMessage !== undefined || incoming_lastRunErrorMessage !== undefined) {
|
|
1296
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1297
|
+
// not equal
|
|
1298
|
+
if (existing_lastRunErrorMessage === undefined || incoming_lastRunErrorMessage === undefined) {
|
|
1299
|
+
return false;
|
|
1300
|
+
}
|
|
1301
|
+
if (!(existing_lastRunErrorMessage === incoming_lastRunErrorMessage)) {
|
|
1302
|
+
return false;
|
|
1303
|
+
}
|
|
1213
1304
|
}
|
|
1214
1305
|
const existing_lastRunStatus = existing.lastRunStatus;
|
|
1215
1306
|
const incoming_lastRunStatus = incoming.lastRunStatus;
|
|
1216
|
-
if
|
|
1217
|
-
|
|
1307
|
+
// if at least one of these optionals is defined
|
|
1308
|
+
if (existing_lastRunStatus !== undefined || incoming_lastRunStatus !== undefined) {
|
|
1309
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1310
|
+
// not equal
|
|
1311
|
+
if (existing_lastRunStatus === undefined || incoming_lastRunStatus === undefined) {
|
|
1312
|
+
return false;
|
|
1313
|
+
}
|
|
1314
|
+
if (!(existing_lastRunStatus === incoming_lastRunStatus)) {
|
|
1315
|
+
return false;
|
|
1316
|
+
}
|
|
1218
1317
|
}
|
|
1219
1318
|
const existing_status = existing.status;
|
|
1220
1319
|
const incoming_status = incoming.status;
|
|
@@ -1228,8 +1327,16 @@ function equals$1(existing, incoming) {
|
|
|
1228
1327
|
}
|
|
1229
1328
|
const existing_version = existing.version;
|
|
1230
1329
|
const incoming_version = incoming.version;
|
|
1231
|
-
if
|
|
1232
|
-
|
|
1330
|
+
// if at least one of these optionals is defined
|
|
1331
|
+
if (existing_version !== undefined || incoming_version !== undefined) {
|
|
1332
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1333
|
+
// not equal
|
|
1334
|
+
if (existing_version === undefined || incoming_version === undefined) {
|
|
1335
|
+
return false;
|
|
1336
|
+
}
|
|
1337
|
+
if (!(existing_version === incoming_version)) {
|
|
1338
|
+
return false;
|
|
1339
|
+
}
|
|
1233
1340
|
}
|
|
1234
1341
|
const existing_actionUrls = existing.actionUrls;
|
|
1235
1342
|
const incoming_actionUrls = incoming.actionUrls;
|
|
@@ -1261,23 +1368,47 @@ function equals$1(existing, incoming) {
|
|
|
1261
1368
|
}
|
|
1262
1369
|
const existing_lastRunErrorCode = existing.lastRunErrorCode;
|
|
1263
1370
|
const incoming_lastRunErrorCode = incoming.lastRunErrorCode;
|
|
1264
|
-
if
|
|
1265
|
-
|
|
1371
|
+
// if at least one of these optionals is defined
|
|
1372
|
+
if (existing_lastRunErrorCode !== undefined || incoming_lastRunErrorCode !== undefined) {
|
|
1373
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1374
|
+
// not equal
|
|
1375
|
+
if (existing_lastRunErrorCode === undefined || incoming_lastRunErrorCode === undefined) {
|
|
1376
|
+
return false;
|
|
1377
|
+
}
|
|
1378
|
+
if (!(equals$6(existing_lastRunErrorCode, incoming_lastRunErrorCode))) {
|
|
1379
|
+
return false;
|
|
1380
|
+
}
|
|
1266
1381
|
}
|
|
1267
1382
|
const existing_schedule = existing.schedule;
|
|
1268
1383
|
const incoming_schedule = incoming.schedule;
|
|
1269
|
-
if
|
|
1270
|
-
|
|
1384
|
+
// if at least one of these optionals is defined
|
|
1385
|
+
if (existing_schedule !== undefined || incoming_schedule !== undefined) {
|
|
1386
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1387
|
+
// not equal
|
|
1388
|
+
if (existing_schedule === undefined || incoming_schedule === undefined) {
|
|
1389
|
+
return false;
|
|
1390
|
+
}
|
|
1391
|
+
if (!(equals$5(existing_schedule, incoming_schedule))) {
|
|
1392
|
+
return false;
|
|
1393
|
+
}
|
|
1271
1394
|
}
|
|
1272
1395
|
const existing_tags = existing.tags;
|
|
1273
1396
|
const incoming_tags = incoming.tags;
|
|
1274
|
-
|
|
1275
|
-
|
|
1397
|
+
// if at least one of these optionals is defined
|
|
1398
|
+
if (existing_tags !== undefined || incoming_tags !== undefined) {
|
|
1399
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1400
|
+
// not equal
|
|
1401
|
+
if (existing_tags === undefined || incoming_tags === undefined) {
|
|
1402
|
+
return false;
|
|
1403
|
+
}
|
|
1404
|
+
const equals_tags_props = equalsObject(existing_tags, incoming_tags, (existing_tags_prop, incoming_tags_prop) => {
|
|
1405
|
+
if (!(existing_tags_prop === incoming_tags_prop)) {
|
|
1406
|
+
return false;
|
|
1407
|
+
}
|
|
1408
|
+
});
|
|
1409
|
+
if (equals_tags_props === false) {
|
|
1276
1410
|
return false;
|
|
1277
1411
|
}
|
|
1278
|
-
});
|
|
1279
|
-
if (equals_tags_props === false) {
|
|
1280
|
-
return false;
|
|
1281
1412
|
}
|
|
1282
1413
|
return true;
|
|
1283
1414
|
}
|
|
@@ -1304,19 +1435,19 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1304
1435
|
getTypeCacheKeys$2(rootKeySet, luvio, input.definition, () => rootKey + "__" + "definition");
|
|
1305
1436
|
}
|
|
1306
1437
|
|
|
1307
|
-
function select$
|
|
1308
|
-
return select$
|
|
1438
|
+
function select$4(luvio, params) {
|
|
1439
|
+
return select$5();
|
|
1309
1440
|
}
|
|
1310
|
-
function getResponseCacheKeys$
|
|
1441
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1311
1442
|
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
1312
1443
|
}
|
|
1313
|
-
function ingestSuccess$
|
|
1444
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
1314
1445
|
const { body } = response;
|
|
1315
1446
|
const key = keyBuilderFromType(luvio, body);
|
|
1316
1447
|
luvio.storeIngest(key, ingest$1, body);
|
|
1317
1448
|
const snapshot = luvio.storeLookup({
|
|
1318
1449
|
recordId: key,
|
|
1319
|
-
node: select$
|
|
1450
|
+
node: select$4(),
|
|
1320
1451
|
variables: {},
|
|
1321
1452
|
});
|
|
1322
1453
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1327,7 +1458,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
1327
1458
|
deepFreeze(snapshot.data);
|
|
1328
1459
|
return snapshot;
|
|
1329
1460
|
}
|
|
1330
|
-
function createResourceRequest$
|
|
1461
|
+
function createResourceRequest$4(config) {
|
|
1331
1462
|
const headers = {};
|
|
1332
1463
|
return {
|
|
1333
1464
|
baseUri: '/services/data/v62.0',
|
|
@@ -1341,7 +1472,7 @@ function createResourceRequest$3(config) {
|
|
|
1341
1472
|
};
|
|
1342
1473
|
}
|
|
1343
1474
|
|
|
1344
|
-
const adapterName$
|
|
1475
|
+
const adapterName$4 = 'createDataTransform';
|
|
1345
1476
|
const createDataTransform_ConfigPropertyMetadata = [
|
|
1346
1477
|
generateParamConfigMetadata('filterGroup', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1347
1478
|
generateParamConfigMetadata('capabilities', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -1356,11 +1487,11 @@ const createDataTransform_ConfigPropertyMetadata = [
|
|
|
1356
1487
|
generateParamConfigMetadata('tags', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1357
1488
|
generateParamConfigMetadata('type', true, 2 /* Body */, 0 /* String */),
|
|
1358
1489
|
];
|
|
1359
|
-
const createDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1360
|
-
const createResourceParams$
|
|
1361
|
-
function typeCheckConfig$
|
|
1490
|
+
const createDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createDataTransform_ConfigPropertyMetadata);
|
|
1491
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(createDataTransform_ConfigPropertyMetadata);
|
|
1492
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1362
1493
|
const config = {};
|
|
1363
|
-
typeCheckConfig$
|
|
1494
|
+
typeCheckConfig$5(untrustedConfig, config, createDataTransform_ConfigPropertyMetadata);
|
|
1364
1495
|
const untrustedConfig_capabilities = untrustedConfig.capabilities;
|
|
1365
1496
|
if (untrustedIsObject(untrustedConfig_capabilities)) {
|
|
1366
1497
|
const untrustedConfig_capabilities_object = {};
|
|
@@ -1412,30 +1543,30 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
1412
1543
|
}
|
|
1413
1544
|
return config;
|
|
1414
1545
|
}
|
|
1415
|
-
function validateAdapterConfig$
|
|
1546
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1416
1547
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1417
1548
|
return null;
|
|
1418
1549
|
}
|
|
1419
1550
|
if (process.env.NODE_ENV !== 'production') {
|
|
1420
1551
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1421
1552
|
}
|
|
1422
|
-
const config = typeCheckConfig$
|
|
1553
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1423
1554
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1424
1555
|
return null;
|
|
1425
1556
|
}
|
|
1426
1557
|
return config;
|
|
1427
1558
|
}
|
|
1428
|
-
function buildNetworkSnapshot$
|
|
1429
|
-
const resourceParams = createResourceParams$
|
|
1430
|
-
const request = createResourceRequest$
|
|
1559
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1560
|
+
const resourceParams = createResourceParams$4(config);
|
|
1561
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1431
1562
|
return luvio.dispatchResourceRequest(request, options)
|
|
1432
1563
|
.then((response) => {
|
|
1433
1564
|
return luvio.handleSuccessResponse(() => {
|
|
1434
|
-
const snapshot = ingestSuccess$
|
|
1565
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
1435
1566
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1436
1567
|
}, () => {
|
|
1437
1568
|
const cache = new StoreKeyMap();
|
|
1438
|
-
getResponseCacheKeys$
|
|
1569
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1439
1570
|
return cache;
|
|
1440
1571
|
});
|
|
1441
1572
|
}, (response) => {
|
|
@@ -1445,12 +1576,12 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1445
1576
|
}
|
|
1446
1577
|
const createDataTransformAdapterFactory = (luvio) => {
|
|
1447
1578
|
return function createDataTransform(untrustedConfig) {
|
|
1448
|
-
const config = validateAdapterConfig$
|
|
1579
|
+
const config = validateAdapterConfig$4(untrustedConfig, createDataTransform_ConfigPropertyNames);
|
|
1449
1580
|
// Invalid or incomplete config
|
|
1450
1581
|
if (config === null) {
|
|
1451
1582
|
throw new Error('Invalid config for "createDataTransform"');
|
|
1452
1583
|
}
|
|
1453
|
-
return buildNetworkSnapshot$
|
|
1584
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
1454
1585
|
};
|
|
1455
1586
|
};
|
|
1456
1587
|
|
|
@@ -1459,7 +1590,7 @@ function keyBuilder$4(luvio, params) {
|
|
|
1459
1590
|
name: params.urlParams.dataTransformNameOrId
|
|
1460
1591
|
});
|
|
1461
1592
|
}
|
|
1462
|
-
function getResponseCacheKeys$
|
|
1593
|
+
function getResponseCacheKeys$3(cacheKeyMap, luvio, resourceParams) {
|
|
1463
1594
|
const key = keyBuilder$4(luvio, resourceParams);
|
|
1464
1595
|
cacheKeyMap.set(key, {
|
|
1465
1596
|
namespace: keyPrefix,
|
|
@@ -1471,7 +1602,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
1471
1602
|
const key = keyBuilder$4(luvio, resourceParams);
|
|
1472
1603
|
luvio.storeEvict(key);
|
|
1473
1604
|
}
|
|
1474
|
-
function createResourceRequest$
|
|
1605
|
+
function createResourceRequest$3(config) {
|
|
1475
1606
|
const headers = {};
|
|
1476
1607
|
return {
|
|
1477
1608
|
baseUri: '/services/data/v62.0',
|
|
@@ -1485,33 +1616,33 @@ function createResourceRequest$2(config) {
|
|
|
1485
1616
|
};
|
|
1486
1617
|
}
|
|
1487
1618
|
|
|
1488
|
-
const adapterName$
|
|
1619
|
+
const adapterName$3 = 'deleteDataTransform';
|
|
1489
1620
|
const deleteDataTransform_ConfigPropertyMetadata = [
|
|
1490
1621
|
generateParamConfigMetadata('dataTransformNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1491
1622
|
];
|
|
1492
|
-
const deleteDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1493
|
-
const createResourceParams$
|
|
1494
|
-
function typeCheckConfig$
|
|
1623
|
+
const deleteDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, deleteDataTransform_ConfigPropertyMetadata);
|
|
1624
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(deleteDataTransform_ConfigPropertyMetadata);
|
|
1625
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
1495
1626
|
const config = {};
|
|
1496
|
-
typeCheckConfig$
|
|
1627
|
+
typeCheckConfig$5(untrustedConfig, config, deleteDataTransform_ConfigPropertyMetadata);
|
|
1497
1628
|
return config;
|
|
1498
1629
|
}
|
|
1499
|
-
function validateAdapterConfig$
|
|
1630
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
1500
1631
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1501
1632
|
return null;
|
|
1502
1633
|
}
|
|
1503
1634
|
if (process.env.NODE_ENV !== 'production') {
|
|
1504
1635
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1505
1636
|
}
|
|
1506
|
-
const config = typeCheckConfig$
|
|
1637
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
1507
1638
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1508
1639
|
return null;
|
|
1509
1640
|
}
|
|
1510
1641
|
return config;
|
|
1511
1642
|
}
|
|
1512
|
-
function buildNetworkSnapshot$
|
|
1513
|
-
const resourceParams = createResourceParams$
|
|
1514
|
-
const request = createResourceRequest$
|
|
1643
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
1644
|
+
const resourceParams = createResourceParams$3(config);
|
|
1645
|
+
const request = createResourceRequest$3(resourceParams);
|
|
1515
1646
|
return luvio.dispatchResourceRequest(request, options)
|
|
1516
1647
|
.then(() => {
|
|
1517
1648
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -1519,7 +1650,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1519
1650
|
return luvio.storeBroadcast();
|
|
1520
1651
|
}, () => {
|
|
1521
1652
|
const cache = new StoreKeyMap();
|
|
1522
|
-
getResponseCacheKeys$
|
|
1653
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams);
|
|
1523
1654
|
return cache;
|
|
1524
1655
|
});
|
|
1525
1656
|
}, (response) => {
|
|
@@ -1529,33 +1660,33 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1529
1660
|
}
|
|
1530
1661
|
const deleteDataTransformAdapterFactory = (luvio) => {
|
|
1531
1662
|
return function dataTransformdeleteDataTransform(untrustedConfig) {
|
|
1532
|
-
const config = validateAdapterConfig$
|
|
1663
|
+
const config = validateAdapterConfig$3(untrustedConfig, deleteDataTransform_ConfigPropertyNames);
|
|
1533
1664
|
// Invalid or incomplete config
|
|
1534
1665
|
if (config === null) {
|
|
1535
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
1666
|
+
throw new Error(`Invalid config for "${adapterName$3}"`);
|
|
1536
1667
|
}
|
|
1537
|
-
return buildNetworkSnapshot$
|
|
1668
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
1538
1669
|
};
|
|
1539
1670
|
};
|
|
1540
1671
|
|
|
1541
|
-
function select$
|
|
1542
|
-
return select$
|
|
1672
|
+
function select$3(luvio, params) {
|
|
1673
|
+
return select$5();
|
|
1543
1674
|
}
|
|
1544
1675
|
function keyBuilder$3(luvio, params) {
|
|
1545
1676
|
return keyBuilder$5(luvio, {
|
|
1546
1677
|
name: params.urlParams.dataTransformNameOrId
|
|
1547
1678
|
});
|
|
1548
1679
|
}
|
|
1549
|
-
function getResponseCacheKeys$
|
|
1680
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1550
1681
|
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
1551
1682
|
}
|
|
1552
|
-
function ingestSuccess$
|
|
1683
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1553
1684
|
const { body } = response;
|
|
1554
1685
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
1555
1686
|
luvio.storeIngest(key, ingest$1, body);
|
|
1556
1687
|
const snapshot = luvio.storeLookup({
|
|
1557
1688
|
recordId: key,
|
|
1558
|
-
node: select$
|
|
1689
|
+
node: select$3(),
|
|
1559
1690
|
variables: {},
|
|
1560
1691
|
}, snapshotRefresh);
|
|
1561
1692
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1572,7 +1703,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
1572
1703
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1573
1704
|
return errorSnapshot;
|
|
1574
1705
|
}
|
|
1575
|
-
function createResourceRequest$
|
|
1706
|
+
function createResourceRequest$2(config) {
|
|
1576
1707
|
const headers = {};
|
|
1577
1708
|
return {
|
|
1578
1709
|
baseUri: '/services/data/v62.0',
|
|
@@ -1591,64 +1722,64 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
1591
1722
|
queryParams: {},
|
|
1592
1723
|
};
|
|
1593
1724
|
config.urlParams.dataTransformNameOrId = representation.name;
|
|
1594
|
-
return createResourceRequest$
|
|
1725
|
+
return createResourceRequest$2(config);
|
|
1595
1726
|
}
|
|
1596
1727
|
|
|
1597
|
-
const adapterName$
|
|
1728
|
+
const adapterName$2 = 'getDataTransform';
|
|
1598
1729
|
const getDataTransform_ConfigPropertyMetadata = [
|
|
1599
1730
|
generateParamConfigMetadata('dataTransformNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1600
1731
|
generateParamConfigMetadata('filterGroup', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1601
1732
|
];
|
|
1602
|
-
const getDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1603
|
-
const createResourceParams$
|
|
1733
|
+
const getDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataTransform_ConfigPropertyMetadata);
|
|
1734
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getDataTransform_ConfigPropertyMetadata);
|
|
1604
1735
|
function keyBuilder$2(luvio, config) {
|
|
1605
|
-
const resourceParams = createResourceParams$
|
|
1736
|
+
const resourceParams = createResourceParams$2(config);
|
|
1606
1737
|
return keyBuilder$3(luvio, resourceParams);
|
|
1607
1738
|
}
|
|
1608
|
-
function typeCheckConfig$
|
|
1739
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
1609
1740
|
const config = {};
|
|
1610
|
-
typeCheckConfig$
|
|
1741
|
+
typeCheckConfig$5(untrustedConfig, config, getDataTransform_ConfigPropertyMetadata);
|
|
1611
1742
|
return config;
|
|
1612
1743
|
}
|
|
1613
|
-
function validateAdapterConfig$
|
|
1744
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
1614
1745
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1615
1746
|
return null;
|
|
1616
1747
|
}
|
|
1617
1748
|
if (process.env.NODE_ENV !== 'production') {
|
|
1618
1749
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1619
1750
|
}
|
|
1620
|
-
const config = typeCheckConfig$
|
|
1751
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
1621
1752
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1622
1753
|
return null;
|
|
1623
1754
|
}
|
|
1624
1755
|
return config;
|
|
1625
1756
|
}
|
|
1626
1757
|
function adapterFragment$1(luvio, config) {
|
|
1627
|
-
createResourceParams$
|
|
1628
|
-
return select$
|
|
1758
|
+
createResourceParams$2(config);
|
|
1759
|
+
return select$3();
|
|
1629
1760
|
}
|
|
1630
1761
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1631
|
-
const snapshot = ingestSuccess$
|
|
1762
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
1632
1763
|
config,
|
|
1633
|
-
resolve: () => buildNetworkSnapshot$
|
|
1764
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1634
1765
|
});
|
|
1635
1766
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1636
1767
|
}
|
|
1637
1768
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1638
1769
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1639
1770
|
config,
|
|
1640
|
-
resolve: () => buildNetworkSnapshot$
|
|
1771
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1641
1772
|
});
|
|
1642
1773
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1643
1774
|
}
|
|
1644
|
-
function buildNetworkSnapshot$
|
|
1645
|
-
const resourceParams = createResourceParams$
|
|
1646
|
-
const request = createResourceRequest$
|
|
1775
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
1776
|
+
const resourceParams = createResourceParams$2(config);
|
|
1777
|
+
const request = createResourceRequest$2(resourceParams);
|
|
1647
1778
|
return luvio.dispatchResourceRequest(request, options)
|
|
1648
1779
|
.then((response) => {
|
|
1649
1780
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1650
1781
|
const cache = new StoreKeyMap();
|
|
1651
|
-
getResponseCacheKeys$
|
|
1782
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1652
1783
|
return cache;
|
|
1653
1784
|
});
|
|
1654
1785
|
}, (response) => {
|
|
@@ -1656,7 +1787,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1656
1787
|
});
|
|
1657
1788
|
}
|
|
1658
1789
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1659
|
-
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1790
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
1660
1791
|
}
|
|
1661
1792
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1662
1793
|
const { luvio, config } = context;
|
|
@@ -1667,12 +1798,12 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
1667
1798
|
};
|
|
1668
1799
|
const cacheSnapshot = storeLookup(selector, {
|
|
1669
1800
|
config,
|
|
1670
|
-
resolve: () => buildNetworkSnapshot$
|
|
1801
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1671
1802
|
});
|
|
1672
1803
|
return cacheSnapshot;
|
|
1673
1804
|
}
|
|
1674
1805
|
const getDataTransformAdapterFactory = (luvio) => function dataTransform__getDataTransform(untrustedConfig, requestContext) {
|
|
1675
|
-
const config = validateAdapterConfig$
|
|
1806
|
+
const config = validateAdapterConfig$2(untrustedConfig, getDataTransform_ConfigPropertyNames);
|
|
1676
1807
|
// Invalid or incomplete config
|
|
1677
1808
|
if (config === null) {
|
|
1678
1809
|
return null;
|
|
@@ -1710,6 +1841,157 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
1710
1841
|
};
|
|
1711
1842
|
};
|
|
1712
1843
|
|
|
1844
|
+
function select$2(luvio, params) {
|
|
1845
|
+
return select$5();
|
|
1846
|
+
}
|
|
1847
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1848
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
1849
|
+
}
|
|
1850
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
1851
|
+
const { body } = response;
|
|
1852
|
+
const key = keyBuilderFromType(luvio, body);
|
|
1853
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1854
|
+
const snapshot = luvio.storeLookup({
|
|
1855
|
+
recordId: key,
|
|
1856
|
+
node: select$2(),
|
|
1857
|
+
variables: {},
|
|
1858
|
+
});
|
|
1859
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1860
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1861
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
deepFreeze(snapshot.data);
|
|
1865
|
+
return snapshot;
|
|
1866
|
+
}
|
|
1867
|
+
function createResourceRequest$1(config) {
|
|
1868
|
+
const headers = {};
|
|
1869
|
+
return {
|
|
1870
|
+
baseUri: '/services/data/v62.0',
|
|
1871
|
+
basePath: '/ssot/data-transforms/' + config.urlParams.dataTransformNameOrId + '',
|
|
1872
|
+
method: 'put',
|
|
1873
|
+
body: config.body,
|
|
1874
|
+
urlParams: config.urlParams,
|
|
1875
|
+
queryParams: config.queryParams,
|
|
1876
|
+
headers,
|
|
1877
|
+
priority: 'normal',
|
|
1878
|
+
};
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
const adapterName$1 = 'updateDataTransform';
|
|
1882
|
+
const updateDataTransform_ConfigPropertyMetadata = [
|
|
1883
|
+
generateParamConfigMetadata('dataTransformNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1884
|
+
generateParamConfigMetadata('filterGroup', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1885
|
+
generateParamConfigMetadata('capabilities', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1886
|
+
generateParamConfigMetadata('creationType', true, 2 /* Body */, 0 /* String */),
|
|
1887
|
+
generateParamConfigMetadata('currencyIsoCode', false, 2 /* Body */, 0 /* String */),
|
|
1888
|
+
generateParamConfigMetadata('dataSpaceName', false, 2 /* Body */, 0 /* String */),
|
|
1889
|
+
generateParamConfigMetadata('definition', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1890
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1891
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
1892
|
+
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
1893
|
+
generateParamConfigMetadata('primarySource', false, 2 /* Body */, 0 /* String */),
|
|
1894
|
+
generateParamConfigMetadata('tags', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1895
|
+
generateParamConfigMetadata('type', true, 2 /* Body */, 0 /* String */),
|
|
1896
|
+
];
|
|
1897
|
+
const updateDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateDataTransform_ConfigPropertyMetadata);
|
|
1898
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(updateDataTransform_ConfigPropertyMetadata);
|
|
1899
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
1900
|
+
const config = {};
|
|
1901
|
+
typeCheckConfig$5(untrustedConfig, config, updateDataTransform_ConfigPropertyMetadata);
|
|
1902
|
+
const untrustedConfig_capabilities = untrustedConfig.capabilities;
|
|
1903
|
+
if (untrustedIsObject(untrustedConfig_capabilities)) {
|
|
1904
|
+
const untrustedConfig_capabilities_object = {};
|
|
1905
|
+
const untrustedConfig_capabilities_keys = Object.keys(untrustedConfig_capabilities);
|
|
1906
|
+
for (let i = 0, arrayLength = untrustedConfig_capabilities_keys.length; i < arrayLength; i++) {
|
|
1907
|
+
const key = untrustedConfig_capabilities_keys[i];
|
|
1908
|
+
const untrustedConfig_capabilities_prop = untrustedConfig_capabilities[key];
|
|
1909
|
+
if (typeof untrustedConfig_capabilities_prop === 'boolean') {
|
|
1910
|
+
if (untrustedConfig_capabilities_object !== undefined) {
|
|
1911
|
+
untrustedConfig_capabilities_object[key] = untrustedConfig_capabilities_prop;
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
if (untrustedConfig_capabilities_object !== undefined && Object.keys(untrustedConfig_capabilities_object).length >= 0) {
|
|
1916
|
+
config.capabilities = untrustedConfig_capabilities_object;
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
const untrustedConfig_definition = untrustedConfig.definition;
|
|
1920
|
+
if (untrustedIsObject(untrustedConfig_definition)) {
|
|
1921
|
+
const untrustedConfig_definition_object = {};
|
|
1922
|
+
const untrustedConfig_definition_keys = Object.keys(untrustedConfig_definition);
|
|
1923
|
+
for (let i = 0, arrayLength = untrustedConfig_definition_keys.length; i < arrayLength; i++) {
|
|
1924
|
+
const key = untrustedConfig_definition_keys[i];
|
|
1925
|
+
const untrustedConfig_definition_prop = untrustedConfig_definition[key];
|
|
1926
|
+
if (untrustedConfig_definition_object !== undefined) {
|
|
1927
|
+
untrustedConfig_definition_object[key] = untrustedConfig_definition_prop;
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
if (untrustedConfig_definition_object !== undefined && Object.keys(untrustedConfig_definition_object).length >= 0) {
|
|
1931
|
+
config.definition = untrustedConfig_definition_object;
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
const untrustedConfig_tags = untrustedConfig.tags;
|
|
1935
|
+
if (untrustedIsObject(untrustedConfig_tags)) {
|
|
1936
|
+
const untrustedConfig_tags_object = {};
|
|
1937
|
+
const untrustedConfig_tags_keys = Object.keys(untrustedConfig_tags);
|
|
1938
|
+
for (let i = 0, arrayLength = untrustedConfig_tags_keys.length; i < arrayLength; i++) {
|
|
1939
|
+
const key = untrustedConfig_tags_keys[i];
|
|
1940
|
+
const untrustedConfig_tags_prop = untrustedConfig_tags[key];
|
|
1941
|
+
if (typeof untrustedConfig_tags_prop === 'string') {
|
|
1942
|
+
if (untrustedConfig_tags_object !== undefined) {
|
|
1943
|
+
untrustedConfig_tags_object[key] = untrustedConfig_tags_prop;
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
if (untrustedConfig_tags_object !== undefined && Object.keys(untrustedConfig_tags_object).length >= 0) {
|
|
1948
|
+
config.tags = untrustedConfig_tags_object;
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
return config;
|
|
1952
|
+
}
|
|
1953
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
1954
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1955
|
+
return null;
|
|
1956
|
+
}
|
|
1957
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1958
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1959
|
+
}
|
|
1960
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
1961
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1962
|
+
return null;
|
|
1963
|
+
}
|
|
1964
|
+
return config;
|
|
1965
|
+
}
|
|
1966
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
1967
|
+
const resourceParams = createResourceParams$1(config);
|
|
1968
|
+
const request = createResourceRequest$1(resourceParams);
|
|
1969
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1970
|
+
.then((response) => {
|
|
1971
|
+
return luvio.handleSuccessResponse(() => {
|
|
1972
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
1973
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1974
|
+
}, () => {
|
|
1975
|
+
const cache = new StoreKeyMap();
|
|
1976
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1977
|
+
return cache;
|
|
1978
|
+
});
|
|
1979
|
+
}, (response) => {
|
|
1980
|
+
deepFreeze(response);
|
|
1981
|
+
throw response;
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
const updateDataTransformAdapterFactory = (luvio) => {
|
|
1985
|
+
return function updateDataTransform(untrustedConfig) {
|
|
1986
|
+
const config = validateAdapterConfig$1(untrustedConfig, updateDataTransform_ConfigPropertyNames);
|
|
1987
|
+
// Invalid or incomplete config
|
|
1988
|
+
if (config === null) {
|
|
1989
|
+
throw new Error('Invalid config for "updateDataTransform"');
|
|
1990
|
+
}
|
|
1991
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
1992
|
+
};
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1713
1995
|
function validate$1(obj, path = 'TransformValidationIssueRepresentation') {
|
|
1714
1996
|
const v_error = (() => {
|
|
1715
1997
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1882,14 +2164,14 @@ const validateDataTransforms_ConfigPropertyMetadata = [
|
|
|
1882
2164
|
generateParamConfigMetadata('type', true, 2 /* Body */, 0 /* String */),
|
|
1883
2165
|
];
|
|
1884
2166
|
const validateDataTransforms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, validateDataTransforms_ConfigPropertyMetadata);
|
|
1885
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2167
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$5(validateDataTransforms_ConfigPropertyMetadata);
|
|
1886
2168
|
function keyBuilder(luvio, config) {
|
|
1887
2169
|
const resourceParams = createResourceParams(config);
|
|
1888
2170
|
return keyBuilder$1(luvio, resourceParams);
|
|
1889
2171
|
}
|
|
1890
2172
|
function typeCheckConfig(untrustedConfig) {
|
|
1891
2173
|
const config = {};
|
|
1892
|
-
typeCheckConfig$
|
|
2174
|
+
typeCheckConfig$5(untrustedConfig, config, validateDataTransforms_ConfigPropertyMetadata);
|
|
1893
2175
|
const untrustedConfig_capabilities = untrustedConfig.capabilities;
|
|
1894
2176
|
if (untrustedIsObject(untrustedConfig_capabilities)) {
|
|
1895
2177
|
const untrustedConfig_capabilities_object = {};
|
|
@@ -2016,6 +2298,7 @@ let createDataTransform;
|
|
|
2016
2298
|
let deleteDataTransform;
|
|
2017
2299
|
let getDataTransform;
|
|
2018
2300
|
let getDataTransformNotifyChange;
|
|
2301
|
+
let updateDataTransform;
|
|
2019
2302
|
let validateDataTransforms;
|
|
2020
2303
|
// Imperative GET Adapters
|
|
2021
2304
|
let getDataTransform_imperative;
|
|
@@ -2036,9 +2319,10 @@ function bindExportsTo(luvio) {
|
|
|
2036
2319
|
}
|
|
2037
2320
|
return {
|
|
2038
2321
|
createDataTransform: unwrapSnapshotData(createDataTransformAdapterFactory),
|
|
2039
|
-
deleteDataTransform: createLDSAdapter(luvio, adapterName$
|
|
2322
|
+
deleteDataTransform: createLDSAdapter(luvio, adapterName$3, deleteDataTransformAdapterFactory),
|
|
2040
2323
|
getDataTransform: createWireAdapterConstructor(luvio, getDataTransform_ldsAdapter, getDataTransformMetadata),
|
|
2041
2324
|
getDataTransformNotifyChange: createLDSAdapter(luvio, 'getDataTransformNotifyChange', notifyChangeFactory),
|
|
2325
|
+
updateDataTransform: unwrapSnapshotData(updateDataTransformAdapterFactory),
|
|
2042
2326
|
validateDataTransforms: createWireAdapterConstructor(luvio, validateDataTransforms_ldsAdapter, validateDataTransformsMetadata),
|
|
2043
2327
|
// Imperative GET Adapters
|
|
2044
2328
|
getDataTransform_imperative: createImperativeAdapter(luvio, getDataTransform_ldsAdapter, getDataTransformMetadata),
|
|
@@ -2052,11 +2336,12 @@ withDefaultLuvio((luvio) => {
|
|
|
2052
2336
|
deleteDataTransform,
|
|
2053
2337
|
getDataTransform,
|
|
2054
2338
|
getDataTransformNotifyChange,
|
|
2339
|
+
updateDataTransform,
|
|
2055
2340
|
validateDataTransforms,
|
|
2056
2341
|
getDataTransform_imperative,
|
|
2057
2342
|
validateDataTransforms_imperative,
|
|
2058
2343
|
} = bindExportsTo(luvio));
|
|
2059
2344
|
});
|
|
2060
2345
|
|
|
2061
|
-
export { createDataTransform, deleteDataTransform, getDataTransform, getDataTransformNotifyChange, getDataTransform_imperative, validateDataTransforms, validateDataTransforms_imperative };
|
|
2062
|
-
// version: 1.354.0-
|
|
2346
|
+
export { createDataTransform, deleteDataTransform, getDataTransform, getDataTransformNotifyChange, getDataTransform_imperative, updateDataTransform, validateDataTransforms, validateDataTransforms_imperative };
|
|
2347
|
+
// version: 1.354.0-dev21-5f69ab6bb6
|