@salesforce/lds-adapters-cdp-data-transform 1.354.0-dev20 → 1.354.0-dev22

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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckConfig as typeCheckConfig$5, StoreKeyMap, createResourceParams as createResourceParams$5 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -224,7 +224,7 @@ function validate$9(obj, path = 'CdpUserRepresentation') {
224
224
  })();
225
225
  return v_error === undefined ? null : v_error;
226
226
  }
227
- const select$b = function CdpUserRepresentationSelect() {
227
+ const select$c = function CdpUserRepresentationSelect() {
228
228
  return {
229
229
  kind: 'Fragment',
230
230
  version: VERSION$8,
@@ -301,7 +301,7 @@ function validate$8(obj, path = 'BaseActionRepresentation') {
301
301
  })();
302
302
  return v_error === undefined ? null : v_error;
303
303
  }
304
- const select$a = function BaseActionRepresentationSelect() {
304
+ const select$b = function BaseActionRepresentationSelect() {
305
305
  return {
306
306
  kind: 'Fragment',
307
307
  version: VERSION$7,
@@ -351,7 +351,7 @@ function validate$7(obj, path = 'CdpErrorRepresentation') {
351
351
  })();
352
352
  return v_error === undefined ? null : v_error;
353
353
  }
354
- const select$9 = function CdpErrorRepresentationSelect() {
354
+ const select$a = function CdpErrorRepresentationSelect() {
355
355
  return {
356
356
  kind: 'Fragment',
357
357
  version: VERSION$6,
@@ -401,7 +401,7 @@ function validate$6(obj, path = 'ScheduleRepresentation') {
401
401
  })();
402
402
  return v_error === undefined ? null : v_error;
403
403
  }
404
- const select$8 = function ScheduleRepresentationSelect() {
404
+ const select$9 = function ScheduleRepresentationSelect() {
405
405
  return {
406
406
  kind: 'Fragment',
407
407
  version: VERSION$5,
@@ -483,7 +483,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
483
483
  }
484
484
  return input;
485
485
  }
486
- const select$7 = function DataTransformDefinitionRepresentationSelect() {
486
+ const select$8 = function DataTransformDefinitionRepresentationSelect() {
487
487
  return {
488
488
  kind: 'Fragment',
489
489
  version: VERSION$4,
@@ -493,7 +493,7 @@ const select$7 = function DataTransformDefinitionRepresentationSelect() {
493
493
  name: 'outputDataObjects',
494
494
  kind: 'Link',
495
495
  plural: true,
496
- fragment: select$4()
496
+ fragment: select$5()
497
497
  },
498
498
  {
499
499
  name: 'type',
@@ -555,7 +555,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
555
555
  }
556
556
  }
557
557
 
558
- const VERSION$3 = "924b289e2a40b63f6d1307278d60bd26";
558
+ const VERSION$3 = "3a9081497eeed505968a3ef0ca548f46";
559
559
  function validate$4(obj, path = 'DataTransformRepresentation') {
560
560
  const validateCdpAssetBaseRepresentation_validateError = validate$3(obj, path);
561
561
  if (validateCdpAssetBaseRepresentation_validateError !== null) {
@@ -594,69 +594,85 @@ function validate$4(obj, path = 'DataTransformRepresentation') {
594
594
  if (typeof obj_creationType !== 'string') {
595
595
  return new TypeError('Expected "string" but received "' + typeof obj_creationType + '" (at "' + path_creationType + '")');
596
596
  }
597
- const obj_dataSpaceName = obj.dataSpaceName;
598
- const path_dataSpaceName = path + '.dataSpaceName';
599
- if (typeof obj_dataSpaceName !== 'string') {
600
- return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
597
+ if (obj.dataSpaceName !== undefined) {
598
+ const obj_dataSpaceName = obj.dataSpaceName;
599
+ const path_dataSpaceName = path + '.dataSpaceName';
600
+ if (typeof obj_dataSpaceName !== 'string') {
601
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
602
+ }
601
603
  }
602
604
  const obj_definition = obj.definition;
603
605
  const path_definition = path + '.definition';
604
606
  if (typeof obj_definition !== 'object') {
605
607
  return new TypeError('Expected "object" but received "' + typeof obj_definition + '" (at "' + path_definition + '")');
606
608
  }
607
- const obj_description = obj.description;
608
- const path_description = path + '.description';
609
- if (typeof obj_description !== 'string') {
610
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
611
- }
612
- const obj_lastRunDate = obj.lastRunDate;
613
- const path_lastRunDate = path + '.lastRunDate';
614
- if (typeof obj_lastRunDate !== 'string') {
615
- return new TypeError('Expected "string" but received "' + typeof obj_lastRunDate + '" (at "' + path_lastRunDate + '")');
616
- }
617
- const obj_lastRunErrorCode = obj.lastRunErrorCode;
618
- const path_lastRunErrorCode = path + '.lastRunErrorCode';
619
- const referencepath_lastRunErrorCodeValidationError = validate$7(obj_lastRunErrorCode, path_lastRunErrorCode);
620
- if (referencepath_lastRunErrorCodeValidationError !== null) {
621
- let message = 'Object doesn\'t match CdpErrorRepresentation (at "' + path_lastRunErrorCode + '")\n';
622
- message += referencepath_lastRunErrorCodeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
623
- return new TypeError(message);
609
+ if (obj.description !== undefined) {
610
+ const obj_description = obj.description;
611
+ const path_description = path + '.description';
612
+ if (typeof obj_description !== 'string') {
613
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
614
+ }
624
615
  }
625
- const obj_lastRunErrorMessage = obj.lastRunErrorMessage;
626
- const path_lastRunErrorMessage = path + '.lastRunErrorMessage';
627
- if (typeof obj_lastRunErrorMessage !== 'string') {
628
- return new TypeError('Expected "string" but received "' + typeof obj_lastRunErrorMessage + '" (at "' + path_lastRunErrorMessage + '")');
616
+ if (obj.lastRunDate !== undefined) {
617
+ const obj_lastRunDate = obj.lastRunDate;
618
+ const path_lastRunDate = path + '.lastRunDate';
619
+ if (typeof obj_lastRunDate !== 'string') {
620
+ return new TypeError('Expected "string" but received "' + typeof obj_lastRunDate + '" (at "' + path_lastRunDate + '")');
621
+ }
622
+ }
623
+ if (obj.lastRunErrorCode !== undefined) {
624
+ const obj_lastRunErrorCode = obj.lastRunErrorCode;
625
+ const path_lastRunErrorCode = path + '.lastRunErrorCode';
626
+ const referencepath_lastRunErrorCodeValidationError = validate$7(obj_lastRunErrorCode, path_lastRunErrorCode);
627
+ if (referencepath_lastRunErrorCodeValidationError !== null) {
628
+ let message = 'Object doesn\'t match CdpErrorRepresentation (at "' + path_lastRunErrorCode + '")\n';
629
+ message += referencepath_lastRunErrorCodeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
630
+ return new TypeError(message);
631
+ }
629
632
  }
630
- const obj_lastRunStatus = obj.lastRunStatus;
631
- const path_lastRunStatus = path + '.lastRunStatus';
632
- if (typeof obj_lastRunStatus !== 'string') {
633
- return new TypeError('Expected "string" but received "' + typeof obj_lastRunStatus + '" (at "' + path_lastRunStatus + '")');
633
+ if (obj.lastRunErrorMessage !== undefined) {
634
+ const obj_lastRunErrorMessage = obj.lastRunErrorMessage;
635
+ const path_lastRunErrorMessage = path + '.lastRunErrorMessage';
636
+ if (typeof obj_lastRunErrorMessage !== 'string') {
637
+ return new TypeError('Expected "string" but received "' + typeof obj_lastRunErrorMessage + '" (at "' + path_lastRunErrorMessage + '")');
638
+ }
634
639
  }
635
- const obj_schedule = obj.schedule;
636
- const path_schedule = path + '.schedule';
637
- const referencepath_scheduleValidationError = validate$6(obj_schedule, path_schedule);
638
- if (referencepath_scheduleValidationError !== null) {
639
- let message = 'Object doesn\'t match ScheduleRepresentation (at "' + path_schedule + '")\n';
640
- message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
641
- return new TypeError(message);
640
+ if (obj.lastRunStatus !== undefined) {
641
+ const obj_lastRunStatus = obj.lastRunStatus;
642
+ const path_lastRunStatus = path + '.lastRunStatus';
643
+ if (typeof obj_lastRunStatus !== 'string') {
644
+ return new TypeError('Expected "string" but received "' + typeof obj_lastRunStatus + '" (at "' + path_lastRunStatus + '")');
645
+ }
646
+ }
647
+ if (obj.schedule !== undefined) {
648
+ const obj_schedule = obj.schedule;
649
+ const path_schedule = path + '.schedule';
650
+ const referencepath_scheduleValidationError = validate$6(obj_schedule, path_schedule);
651
+ if (referencepath_scheduleValidationError !== null) {
652
+ let message = 'Object doesn\'t match ScheduleRepresentation (at "' + path_schedule + '")\n';
653
+ message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
654
+ return new TypeError(message);
655
+ }
642
656
  }
643
657
  const obj_status = obj.status;
644
658
  const path_status = path + '.status';
645
659
  if (typeof obj_status !== 'string') {
646
660
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
647
661
  }
648
- const obj_tags = obj.tags;
649
- const path_tags = path + '.tags';
650
- if (typeof obj_tags !== 'object' || ArrayIsArray(obj_tags) || obj_tags === null) {
651
- return new TypeError('Expected "object" but received "' + typeof obj_tags + '" (at "' + path_tags + '")');
652
- }
653
- const obj_tags_keys = ObjectKeys(obj_tags);
654
- for (let i = 0; i < obj_tags_keys.length; i++) {
655
- const key = obj_tags_keys[i];
656
- const obj_tags_prop = obj_tags[key];
657
- const path_tags_prop = path_tags + '["' + key + '"]';
658
- if (typeof obj_tags_prop !== 'string') {
659
- return new TypeError('Expected "string" but received "' + typeof obj_tags_prop + '" (at "' + path_tags_prop + '")');
662
+ if (obj.tags !== undefined) {
663
+ const obj_tags = obj.tags;
664
+ const path_tags = path + '.tags';
665
+ if (typeof obj_tags !== 'object' || ArrayIsArray(obj_tags) || obj_tags === null) {
666
+ return new TypeError('Expected "object" but received "' + typeof obj_tags + '" (at "' + path_tags + '")');
667
+ }
668
+ const obj_tags_keys = ObjectKeys(obj_tags);
669
+ for (let i = 0; i < obj_tags_keys.length; i++) {
670
+ const key = obj_tags_keys[i];
671
+ const obj_tags_prop = obj_tags[key];
672
+ const path_tags_prop = path_tags + '["' + key + '"]';
673
+ if (typeof obj_tags_prop !== 'string') {
674
+ return new TypeError('Expected "string" but received "' + typeof obj_tags_prop + '" (at "' + path_tags_prop + '")');
675
+ }
660
676
  }
661
677
  }
662
678
  const obj_type = obj.type;
@@ -664,7 +680,9 @@ function validate$4(obj, path = 'DataTransformRepresentation') {
664
680
  if (typeof obj_type !== 'string') {
665
681
  return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
666
682
  }
667
- obj.version;
683
+ if (obj.version !== undefined) {
684
+ obj.version;
685
+ }
668
686
  })();
669
687
  return v_error === undefined ? null : v_error;
670
688
  }
@@ -690,11 +708,11 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
690
708
  }, luvio, store, timestamp);
691
709
  return input;
692
710
  }
693
- const select$6 = function DataTransformRepresentationSelect() {
694
- const { selections: CdpAssetBaseRepresentationSelections } = select$5();
695
- const { selections: BaseActionRepresentation__selections, opaque: BaseActionRepresentation__opaque, } = select$a();
696
- const { selections: CdpErrorRepresentation__selections, opaque: CdpErrorRepresentation__opaque, } = select$9();
697
- const { selections: ScheduleRepresentation__selections, opaque: ScheduleRepresentation__opaque, } = select$8();
711
+ const select$7 = function DataTransformRepresentationSelect() {
712
+ const { selections: CdpAssetBaseRepresentationSelections } = select$6();
713
+ const { selections: BaseActionRepresentation__selections, opaque: BaseActionRepresentation__opaque, } = select$b();
714
+ const { selections: CdpErrorRepresentation__selections, opaque: CdpErrorRepresentation__opaque, } = select$a();
715
+ const { selections: ScheduleRepresentation__selections, opaque: ScheduleRepresentation__opaque, } = select$9();
698
716
  return {
699
717
  kind: 'Fragment',
700
718
  version: VERSION$3,
@@ -718,38 +736,45 @@ const select$6 = function DataTransformRepresentationSelect() {
718
736
  },
719
737
  {
720
738
  name: 'dataSpaceName',
721
- kind: 'Scalar'
739
+ kind: 'Scalar',
740
+ required: false
722
741
  },
723
742
  {
724
743
  name: 'definition',
725
744
  kind: 'Link',
726
- fragment: select$7()
745
+ fragment: select$8()
727
746
  },
728
747
  {
729
748
  name: 'description',
730
- kind: 'Scalar'
749
+ kind: 'Scalar',
750
+ required: false
731
751
  },
732
752
  {
733
753
  name: 'lastRunDate',
734
- kind: 'Scalar'
754
+ kind: 'Scalar',
755
+ required: false
735
756
  },
736
757
  {
737
758
  name: 'lastRunErrorCode',
738
759
  kind: 'Object',
739
- selections: CdpErrorRepresentation__selections
760
+ selections: CdpErrorRepresentation__selections,
761
+ required: false
740
762
  },
741
763
  {
742
764
  name: 'lastRunErrorMessage',
743
- kind: 'Scalar'
765
+ kind: 'Scalar',
766
+ required: false
744
767
  },
745
768
  {
746
769
  name: 'lastRunStatus',
747
- kind: 'Scalar'
770
+ kind: 'Scalar',
771
+ required: false
748
772
  },
749
773
  {
750
774
  name: 'schedule',
751
775
  kind: 'Object',
752
- selections: ScheduleRepresentation__selections
776
+ selections: ScheduleRepresentation__selections,
777
+ required: false
753
778
  },
754
779
  {
755
780
  name: 'status',
@@ -758,7 +783,8 @@ const select$6 = function DataTransformRepresentationSelect() {
758
783
  {
759
784
  name: 'tags',
760
785
  kind: 'Scalar',
761
- map: true
786
+ map: true,
787
+ required: false
762
788
  },
763
789
  {
764
790
  name: 'type',
@@ -766,7 +792,8 @@ const select$6 = function DataTransformRepresentationSelect() {
766
792
  },
767
793
  {
768
794
  name: 'version',
769
- kind: 'Scalar'
795
+ kind: 'Scalar',
796
+ required: false
770
797
  }
771
798
  ]
772
799
  };
@@ -782,28 +809,68 @@ function equals$4(existing, incoming) {
782
809
  }
783
810
  const existing_dataSpaceName = existing.dataSpaceName;
784
811
  const incoming_dataSpaceName = incoming.dataSpaceName;
785
- if (!(existing_dataSpaceName === incoming_dataSpaceName)) {
786
- return false;
812
+ // if at least one of these optionals is defined
813
+ if (existing_dataSpaceName !== undefined || incoming_dataSpaceName !== undefined) {
814
+ // if one of these is not defined we know the other is defined and therefore
815
+ // not equal
816
+ if (existing_dataSpaceName === undefined || incoming_dataSpaceName === undefined) {
817
+ return false;
818
+ }
819
+ if (!(existing_dataSpaceName === incoming_dataSpaceName)) {
820
+ return false;
821
+ }
787
822
  }
788
823
  const existing_description = existing.description;
789
824
  const incoming_description = incoming.description;
790
- if (!(existing_description === incoming_description)) {
791
- return false;
825
+ // if at least one of these optionals is defined
826
+ if (existing_description !== undefined || incoming_description !== undefined) {
827
+ // if one of these is not defined we know the other is defined and therefore
828
+ // not equal
829
+ if (existing_description === undefined || incoming_description === undefined) {
830
+ return false;
831
+ }
832
+ if (!(existing_description === incoming_description)) {
833
+ return false;
834
+ }
792
835
  }
793
836
  const existing_lastRunDate = existing.lastRunDate;
794
837
  const incoming_lastRunDate = incoming.lastRunDate;
795
- if (!(existing_lastRunDate === incoming_lastRunDate)) {
796
- return false;
838
+ // if at least one of these optionals is defined
839
+ if (existing_lastRunDate !== undefined || incoming_lastRunDate !== undefined) {
840
+ // if one of these is not defined we know the other is defined and therefore
841
+ // not equal
842
+ if (existing_lastRunDate === undefined || incoming_lastRunDate === undefined) {
843
+ return false;
844
+ }
845
+ if (!(existing_lastRunDate === incoming_lastRunDate)) {
846
+ return false;
847
+ }
797
848
  }
798
849
  const existing_lastRunErrorMessage = existing.lastRunErrorMessage;
799
850
  const incoming_lastRunErrorMessage = incoming.lastRunErrorMessage;
800
- if (!(existing_lastRunErrorMessage === incoming_lastRunErrorMessage)) {
801
- return false;
851
+ // if at least one of these optionals is defined
852
+ if (existing_lastRunErrorMessage !== undefined || incoming_lastRunErrorMessage !== undefined) {
853
+ // if one of these is not defined we know the other is defined and therefore
854
+ // not equal
855
+ if (existing_lastRunErrorMessage === undefined || incoming_lastRunErrorMessage === undefined) {
856
+ return false;
857
+ }
858
+ if (!(existing_lastRunErrorMessage === incoming_lastRunErrorMessage)) {
859
+ return false;
860
+ }
802
861
  }
803
862
  const existing_lastRunStatus = existing.lastRunStatus;
804
863
  const incoming_lastRunStatus = incoming.lastRunStatus;
805
- if (!(existing_lastRunStatus === incoming_lastRunStatus)) {
806
- return false;
864
+ // if at least one of these optionals is defined
865
+ if (existing_lastRunStatus !== undefined || incoming_lastRunStatus !== undefined) {
866
+ // if one of these is not defined we know the other is defined and therefore
867
+ // not equal
868
+ if (existing_lastRunStatus === undefined || incoming_lastRunStatus === undefined) {
869
+ return false;
870
+ }
871
+ if (!(existing_lastRunStatus === incoming_lastRunStatus)) {
872
+ return false;
873
+ }
807
874
  }
808
875
  const existing_status = existing.status;
809
876
  const incoming_status = incoming.status;
@@ -817,8 +884,16 @@ function equals$4(existing, incoming) {
817
884
  }
818
885
  const existing_version = existing.version;
819
886
  const incoming_version = incoming.version;
820
- if (!(existing_version === incoming_version)) {
821
- return false;
887
+ // if at least one of these optionals is defined
888
+ if (existing_version !== undefined || incoming_version !== undefined) {
889
+ // if one of these is not defined we know the other is defined and therefore
890
+ // not equal
891
+ if (existing_version === undefined || incoming_version === undefined) {
892
+ return false;
893
+ }
894
+ if (!(existing_version === incoming_version)) {
895
+ return false;
896
+ }
822
897
  }
823
898
  const existing_actionUrls = existing.actionUrls;
824
899
  const incoming_actionUrls = incoming.actionUrls;
@@ -850,23 +925,47 @@ function equals$4(existing, incoming) {
850
925
  }
851
926
  const existing_lastRunErrorCode = existing.lastRunErrorCode;
852
927
  const incoming_lastRunErrorCode = incoming.lastRunErrorCode;
853
- if (!(equals$7(existing_lastRunErrorCode, incoming_lastRunErrorCode))) {
854
- return false;
928
+ // if at least one of these optionals is defined
929
+ if (existing_lastRunErrorCode !== undefined || incoming_lastRunErrorCode !== undefined) {
930
+ // if one of these is not defined we know the other is defined and therefore
931
+ // not equal
932
+ if (existing_lastRunErrorCode === undefined || incoming_lastRunErrorCode === undefined) {
933
+ return false;
934
+ }
935
+ if (!(equals$7(existing_lastRunErrorCode, incoming_lastRunErrorCode))) {
936
+ return false;
937
+ }
855
938
  }
856
939
  const existing_schedule = existing.schedule;
857
940
  const incoming_schedule = incoming.schedule;
858
- if (!(equals$6(existing_schedule, incoming_schedule))) {
859
- return false;
941
+ // if at least one of these optionals is defined
942
+ if (existing_schedule !== undefined || incoming_schedule !== undefined) {
943
+ // if one of these is not defined we know the other is defined and therefore
944
+ // not equal
945
+ if (existing_schedule === undefined || incoming_schedule === undefined) {
946
+ return false;
947
+ }
948
+ if (!(equals$6(existing_schedule, incoming_schedule))) {
949
+ return false;
950
+ }
860
951
  }
861
952
  const existing_tags = existing.tags;
862
953
  const incoming_tags = incoming.tags;
863
- const equals_tags_props = equalsObject(existing_tags, incoming_tags, (existing_tags_prop, incoming_tags_prop) => {
864
- if (!(existing_tags_prop === incoming_tags_prop)) {
954
+ // if at least one of these optionals is defined
955
+ if (existing_tags !== undefined || incoming_tags !== undefined) {
956
+ // if one of these is not defined we know the other is defined and therefore
957
+ // not equal
958
+ if (existing_tags === undefined || incoming_tags === undefined) {
959
+ return false;
960
+ }
961
+ const equals_tags_props = equalsObject(existing_tags, incoming_tags, (existing_tags_prop, incoming_tags_prop) => {
962
+ if (!(existing_tags_prop === incoming_tags_prop)) {
963
+ return false;
964
+ }
965
+ });
966
+ if (equals_tags_props === false) {
865
967
  return false;
866
968
  }
867
- });
868
- if (equals_tags_props === false) {
869
- return false;
870
969
  }
871
970
  return true;
872
971
  }
@@ -981,8 +1080,8 @@ function keyBuilderFromType$1(luvio, object) {
981
1080
  };
982
1081
  return keyBuilder$5(luvio, keyParams);
983
1082
  }
984
- const select$5 = function CdpAssetBaseRepresentationSelect() {
985
- const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$b();
1083
+ const select$6 = function CdpAssetBaseRepresentationSelect() {
1084
+ const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$c();
986
1085
  return {
987
1086
  kind: 'Fragment',
988
1087
  version: VERSION$2,
@@ -1151,10 +1250,12 @@ function validate$2(obj, path = 'DataObjectFieldRepresentation') {
1151
1250
  if (typeof obj_isPrimaryKey !== 'boolean') {
1152
1251
  return new TypeError('Expected "boolean" but received "' + typeof obj_isPrimaryKey + '" (at "' + path_isPrimaryKey + '")');
1153
1252
  }
1154
- const obj_keyQualifierField = obj.keyQualifierField;
1155
- const path_keyQualifierField = path + '.keyQualifierField';
1156
- if (typeof obj_keyQualifierField !== 'string') {
1157
- return new TypeError('Expected "string" but received "' + typeof obj_keyQualifierField + '" (at "' + path_keyQualifierField + '")');
1253
+ if (obj.keyQualifierField !== undefined) {
1254
+ const obj_keyQualifierField = obj.keyQualifierField;
1255
+ const path_keyQualifierField = path + '.keyQualifierField';
1256
+ if (typeof obj_keyQualifierField !== 'string') {
1257
+ return new TypeError('Expected "string" but received "' + typeof obj_keyQualifierField + '" (at "' + path_keyQualifierField + '")');
1258
+ }
1158
1259
  }
1159
1260
  const obj_label = obj.label;
1160
1261
  const path_label = path + '.label';
@@ -1181,7 +1282,7 @@ function equals$2(existing, incoming) {
1181
1282
  return true;
1182
1283
  }
1183
1284
 
1184
- const VERSION$1 = "225283ac9b2f9ab35452025c5c47ac83";
1285
+ const VERSION$1 = "8242b57b93fc99780862de37f9209bc2";
1185
1286
  function validate$1(obj, path = 'DataObjectRepresentation') {
1186
1287
  const validateCdpAssetBaseRepresentation_validateError = validate$3(obj, path);
1187
1288
  if (validateCdpAssetBaseRepresentation_validateError !== null) {
@@ -1191,10 +1292,12 @@ function validate$1(obj, path = 'DataObjectRepresentation') {
1191
1292
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1192
1293
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1193
1294
  }
1194
- const obj_category = obj.category;
1195
- const path_category = path + '.category';
1196
- if (typeof obj_category !== 'string') {
1197
- return new TypeError('Expected "string" but received "' + typeof obj_category + '" (at "' + path_category + '")');
1295
+ if (obj.category !== undefined) {
1296
+ const obj_category = obj.category;
1297
+ const path_category = path + '.category';
1298
+ if (typeof obj_category !== 'string') {
1299
+ return new TypeError('Expected "string" but received "' + typeof obj_category + '" (at "' + path_category + '")');
1300
+ }
1198
1301
  }
1199
1302
  if (obj.eventDateTimeFieldName !== undefined) {
1200
1303
  const obj_eventDateTimeFieldName = obj.eventDateTimeFieldName;
@@ -1203,19 +1306,21 @@ function validate$1(obj, path = 'DataObjectRepresentation') {
1203
1306
  return new TypeError('Expected "string" but received "' + typeof obj_eventDateTimeFieldName + '" (at "' + path_eventDateTimeFieldName + '")');
1204
1307
  }
1205
1308
  }
1206
- const obj_fields = obj.fields;
1207
- const path_fields = path + '.fields';
1208
- if (!ArrayIsArray(obj_fields)) {
1209
- return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
1210
- }
1211
- for (let i = 0; i < obj_fields.length; i++) {
1212
- const obj_fields_item = obj_fields[i];
1213
- const path_fields_item = path_fields + '[' + i + ']';
1214
- const referencepath_fields_itemValidationError = validate$2(obj_fields_item, path_fields_item);
1215
- if (referencepath_fields_itemValidationError !== null) {
1216
- let message = 'Object doesn\'t match DataObjectFieldRepresentation (at "' + path_fields_item + '")\n';
1217
- message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1218
- return new TypeError(message);
1309
+ if (obj.fields !== undefined) {
1310
+ const obj_fields = obj.fields;
1311
+ const path_fields = path + '.fields';
1312
+ if (!ArrayIsArray(obj_fields)) {
1313
+ return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
1314
+ }
1315
+ for (let i = 0; i < obj_fields.length; i++) {
1316
+ const obj_fields_item = obj_fields[i];
1317
+ const path_fields_item = path_fields + '[' + i + ']';
1318
+ const referencepath_fields_itemValidationError = validate$2(obj_fields_item, path_fields_item);
1319
+ if (referencepath_fields_itemValidationError !== null) {
1320
+ let message = 'Object doesn\'t match DataObjectFieldRepresentation (at "' + path_fields_item + '")\n';
1321
+ message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1322
+ return new TypeError(message);
1323
+ }
1219
1324
  }
1220
1325
  }
1221
1326
  if (obj.recordModifiedFieldName !== undefined) {
@@ -1225,10 +1330,12 @@ function validate$1(obj, path = 'DataObjectRepresentation') {
1225
1330
  return new TypeError('Expected "string" but received "' + typeof obj_recordModifiedFieldName + '" (at "' + path_recordModifiedFieldName + '")');
1226
1331
  }
1227
1332
  }
1228
- const obj_type = obj.type;
1229
- const path_type = path + '.type';
1230
- if (typeof obj_type !== 'string') {
1231
- return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1333
+ if (obj.type !== undefined) {
1334
+ const obj_type = obj.type;
1335
+ const path_type = path + '.type';
1336
+ if (typeof obj_type !== 'string') {
1337
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1338
+ }
1232
1339
  }
1233
1340
  })();
1234
1341
  return v_error === undefined ? null : v_error;
@@ -1240,7 +1347,7 @@ function keyBuilderFromType(luvio, object) {
1240
1347
  function normalize$1(input, existing, path, luvio, store, timestamp) {
1241
1348
  return input;
1242
1349
  }
1243
- const select$4 = function DataObjectRepresentationSelect() {
1350
+ const select$5 = function DataObjectRepresentationSelect() {
1244
1351
  return {
1245
1352
  kind: 'Fragment',
1246
1353
  version: VERSION$1,
@@ -1254,8 +1361,16 @@ function equals$1(existing, incoming) {
1254
1361
  }
1255
1362
  const existing_category = existing.category;
1256
1363
  const incoming_category = incoming.category;
1257
- if (!(existing_category === incoming_category)) {
1258
- return false;
1364
+ // if at least one of these optionals is defined
1365
+ if (existing_category !== undefined || incoming_category !== undefined) {
1366
+ // if one of these is not defined we know the other is defined and therefore
1367
+ // not equal
1368
+ if (existing_category === undefined || incoming_category === undefined) {
1369
+ return false;
1370
+ }
1371
+ if (!(existing_category === incoming_category)) {
1372
+ return false;
1373
+ }
1259
1374
  }
1260
1375
  const existing_eventDateTimeFieldName = existing.eventDateTimeFieldName;
1261
1376
  const incoming_eventDateTimeFieldName = incoming.eventDateTimeFieldName;
@@ -1285,18 +1400,34 @@ function equals$1(existing, incoming) {
1285
1400
  }
1286
1401
  const existing_type = existing.type;
1287
1402
  const incoming_type = incoming.type;
1288
- if (!(existing_type === incoming_type)) {
1289
- return false;
1403
+ // if at least one of these optionals is defined
1404
+ if (existing_type !== undefined || incoming_type !== undefined) {
1405
+ // if one of these is not defined we know the other is defined and therefore
1406
+ // not equal
1407
+ if (existing_type === undefined || incoming_type === undefined) {
1408
+ return false;
1409
+ }
1410
+ if (!(existing_type === incoming_type)) {
1411
+ return false;
1412
+ }
1290
1413
  }
1291
1414
  const existing_fields = existing.fields;
1292
1415
  const incoming_fields = incoming.fields;
1293
- const equals_fields_items = equalsArray(existing_fields, incoming_fields, (existing_fields_item, incoming_fields_item) => {
1294
- if (!(equals$2(existing_fields_item, incoming_fields_item))) {
1416
+ // if at least one of these optionals is defined
1417
+ if (existing_fields !== undefined || incoming_fields !== undefined) {
1418
+ // if one of these is not defined we know the other is defined and therefore
1419
+ // not equal
1420
+ if (existing_fields === undefined || incoming_fields === undefined) {
1421
+ return false;
1422
+ }
1423
+ const equals_fields_items = equalsArray(existing_fields, incoming_fields, (existing_fields_item, incoming_fields_item) => {
1424
+ if (!(equals$2(existing_fields_item, incoming_fields_item))) {
1425
+ return false;
1426
+ }
1427
+ });
1428
+ if (equals_fields_items === false) {
1295
1429
  return false;
1296
1430
  }
1297
- });
1298
- if (equals_fields_items === false) {
1299
- return false;
1300
1431
  }
1301
1432
  return true;
1302
1433
  }
@@ -1369,7 +1500,7 @@ const RepresentationType = 'DataTransformValidationRepresentation';
1369
1500
  function normalize(input, existing, path, luvio, store, timestamp) {
1370
1501
  return input;
1371
1502
  }
1372
- const select$3 = function DataTransformValidationRepresentationSelect() {
1503
+ const select$4 = function DataTransformValidationRepresentationSelect() {
1373
1504
  return {
1374
1505
  kind: 'Fragment',
1375
1506
  version: VERSION,
@@ -1405,22 +1536,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1405
1536
  });
1406
1537
  }
1407
1538
 
1408
- function select$2(luvio, params) {
1409
- return select$3();
1539
+ function select$3(luvio, params) {
1540
+ return select$4();
1410
1541
  }
1411
1542
  function keyBuilder$4(luvio, params) {
1412
1543
  return keyPrefix + '::DataTransformValidationRepresentation:(' + stableJSONStringify(params.body.capabilities) + '::' + 'creationType:' + params.body.creationType + '::' + (params.body.currencyIsoCode === undefined ? 'currencyIsoCode' : 'currencyIsoCode:' + params.body.currencyIsoCode) + '::' + (params.body.dataSpaceName === undefined ? 'dataSpaceName' : 'dataSpaceName:' + params.body.dataSpaceName) + '::' + stableJSONStringify(params.body.definition) + '::' + (params.body.description === undefined ? 'description' : 'description:' + params.body.description) + '::' + (params.body.label === undefined ? 'label' : 'label:' + params.body.label) + '::' + (params.body.name === undefined ? 'name' : 'name:' + params.body.name) + '::' + (params.body.primarySource === undefined ? 'primarySource' : 'primarySource:' + params.body.primarySource) + '::' + stableJSONStringify(params.body.tags) + '::' + 'type:' + params.body.type + ')';
1413
1544
  }
1414
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1545
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1415
1546
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
1416
1547
  }
1417
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1548
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
1418
1549
  const { body } = response;
1419
1550
  const key = keyBuilder$4(luvio, resourceParams);
1420
1551
  luvio.storeIngest(key, ingest, body);
1421
1552
  const snapshot = luvio.storeLookup({
1422
1553
  recordId: key,
1423
- node: select$2(),
1554
+ node: select$3(),
1424
1555
  variables: {},
1425
1556
  }, snapshotRefresh);
1426
1557
  if (process.env.NODE_ENV !== 'production') {
@@ -1437,10 +1568,10 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
1437
1568
  luvio.storeIngestError(key, errorSnapshot);
1438
1569
  return errorSnapshot;
1439
1570
  }
1440
- function createResourceRequest$3(config) {
1571
+ function createResourceRequest$4(config) {
1441
1572
  const headers = {};
1442
1573
  return {
1443
- baseUri: '/services/data/v62.0',
1574
+ baseUri: '/services/data/v64.0',
1444
1575
  basePath: '/ssot/data-transforms-validation',
1445
1576
  method: 'post',
1446
1577
  body: config.body,
@@ -1451,7 +1582,7 @@ function createResourceRequest$3(config) {
1451
1582
  };
1452
1583
  }
1453
1584
 
1454
- const adapterName$3 = 'validateDataTransforms';
1585
+ const adapterName$4 = 'validateDataTransforms';
1455
1586
  const validateDataTransforms_ConfigPropertyMetadata = [
1456
1587
  generateParamConfigMetadata('capabilities', false, 2 /* Body */, 4 /* Unsupported */),
1457
1588
  generateParamConfigMetadata('creationType', true, 2 /* Body */, 0 /* String */),
@@ -1465,15 +1596,15 @@ const validateDataTransforms_ConfigPropertyMetadata = [
1465
1596
  generateParamConfigMetadata('tags', false, 2 /* Body */, 4 /* Unsupported */),
1466
1597
  generateParamConfigMetadata('type', true, 2 /* Body */, 0 /* String */),
1467
1598
  ];
1468
- const validateDataTransforms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, validateDataTransforms_ConfigPropertyMetadata);
1469
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(validateDataTransforms_ConfigPropertyMetadata);
1599
+ const validateDataTransforms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, validateDataTransforms_ConfigPropertyMetadata);
1600
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(validateDataTransforms_ConfigPropertyMetadata);
1470
1601
  function keyBuilder$3(luvio, config) {
1471
- const resourceParams = createResourceParams$3(config);
1602
+ const resourceParams = createResourceParams$4(config);
1472
1603
  return keyBuilder$4(luvio, resourceParams);
1473
1604
  }
1474
- function typeCheckConfig$3(untrustedConfig) {
1605
+ function typeCheckConfig$4(untrustedConfig) {
1475
1606
  const config = {};
1476
- typeCheckConfig$4(untrustedConfig, config, validateDataTransforms_ConfigPropertyMetadata);
1607
+ typeCheckConfig$5(untrustedConfig, config, validateDataTransforms_ConfigPropertyMetadata);
1477
1608
  const untrustedConfig_capabilities = untrustedConfig.capabilities;
1478
1609
  if (untrustedIsObject(untrustedConfig_capabilities)) {
1479
1610
  const untrustedConfig_capabilities_object = {};
@@ -1525,45 +1656,45 @@ function typeCheckConfig$3(untrustedConfig) {
1525
1656
  }
1526
1657
  return config;
1527
1658
  }
1528
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1659
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1529
1660
  if (!untrustedIsObject(untrustedConfig)) {
1530
1661
  return null;
1531
1662
  }
1532
1663
  if (process.env.NODE_ENV !== 'production') {
1533
1664
  validateConfig(untrustedConfig, configPropertyNames);
1534
1665
  }
1535
- const config = typeCheckConfig$3(untrustedConfig);
1666
+ const config = typeCheckConfig$4(untrustedConfig);
1536
1667
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1537
1668
  return null;
1538
1669
  }
1539
1670
  return config;
1540
1671
  }
1541
1672
  function adapterFragment$1(luvio, config) {
1542
- createResourceParams$3(config);
1543
- return select$2();
1673
+ createResourceParams$4(config);
1674
+ return select$3();
1544
1675
  }
1545
1676
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1546
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1677
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
1547
1678
  config,
1548
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1679
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1549
1680
  });
1550
1681
  return luvio.storeBroadcast().then(() => snapshot);
1551
1682
  }
1552
1683
  function onFetchResponseError$1(luvio, config, resourceParams, response) {
1553
1684
  const snapshot = ingestError$1(luvio, resourceParams, response, {
1554
1685
  config,
1555
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1686
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1556
1687
  });
1557
1688
  return luvio.storeBroadcast().then(() => snapshot);
1558
1689
  }
1559
- function buildNetworkSnapshot$3(luvio, config, options) {
1560
- const resourceParams = createResourceParams$3(config);
1561
- const request = createResourceRequest$3(resourceParams);
1690
+ function buildNetworkSnapshot$4(luvio, config, options) {
1691
+ const resourceParams = createResourceParams$4(config);
1692
+ const request = createResourceRequest$4(resourceParams);
1562
1693
  return luvio.dispatchResourceRequest(request, options)
1563
1694
  .then((response) => {
1564
1695
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1565
1696
  const cache = new StoreKeyMap();
1566
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1697
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1567
1698
  return cache;
1568
1699
  });
1569
1700
  }, (response) => {
@@ -1571,7 +1702,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
1571
1702
  });
1572
1703
  }
1573
1704
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1574
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
1705
+ return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
1575
1706
  }
1576
1707
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1577
1708
  const { luvio, config } = context;
@@ -1582,12 +1713,12 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1582
1713
  };
1583
1714
  const cacheSnapshot = storeLookup(selector, {
1584
1715
  config,
1585
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1716
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1586
1717
  });
1587
1718
  return cacheSnapshot;
1588
1719
  }
1589
1720
  const validateDataTransformsAdapterFactory = (luvio) => function dataTransform__validateDataTransforms(untrustedConfig, requestContext) {
1590
- const config = validateAdapterConfig$3(untrustedConfig, validateDataTransforms_ConfigPropertyNames);
1721
+ const config = validateAdapterConfig$4(untrustedConfig, validateDataTransforms_ConfigPropertyNames);
1591
1722
  // Invalid or incomplete config
1592
1723
  if (config === null) {
1593
1724
  return null;
@@ -1596,19 +1727,19 @@ const validateDataTransformsAdapterFactory = (luvio) => function dataTransform__
1596
1727
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1597
1728
  };
1598
1729
 
1599
- function select$1(luvio, params) {
1600
- return select$6();
1730
+ function select$2(luvio, params) {
1731
+ return select$7();
1601
1732
  }
1602
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1733
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1603
1734
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
1604
1735
  }
1605
- function ingestSuccess$1(luvio, resourceParams, response) {
1736
+ function ingestSuccess$2(luvio, resourceParams, response) {
1606
1737
  const { body } = response;
1607
1738
  const key = keyBuilderFromType$2(luvio, body);
1608
1739
  luvio.storeIngest(key, ingest$2, body);
1609
1740
  const snapshot = luvio.storeLookup({
1610
1741
  recordId: key,
1611
- node: select$1(),
1742
+ node: select$2(),
1612
1743
  variables: {},
1613
1744
  });
1614
1745
  if (process.env.NODE_ENV !== 'production') {
@@ -1619,10 +1750,10 @@ function ingestSuccess$1(luvio, resourceParams, response) {
1619
1750
  deepFreeze(snapshot.data);
1620
1751
  return snapshot;
1621
1752
  }
1622
- function createResourceRequest$2(config) {
1753
+ function createResourceRequest$3(config) {
1623
1754
  const headers = {};
1624
1755
  return {
1625
- baseUri: '/services/data/v62.0',
1756
+ baseUri: '/services/data/v64.0',
1626
1757
  basePath: '/ssot/data-transforms',
1627
1758
  method: 'post',
1628
1759
  body: config.body,
@@ -1633,7 +1764,7 @@ function createResourceRequest$2(config) {
1633
1764
  };
1634
1765
  }
1635
1766
 
1636
- const adapterName$2 = 'createDataTransform';
1767
+ const adapterName$3 = 'createDataTransform';
1637
1768
  const createDataTransform_ConfigPropertyMetadata = [
1638
1769
  generateParamConfigMetadata('filterGroup', false, 1 /* QueryParameter */, 0 /* String */),
1639
1770
  generateParamConfigMetadata('capabilities', false, 2 /* Body */, 4 /* Unsupported */),
@@ -1648,11 +1779,11 @@ const createDataTransform_ConfigPropertyMetadata = [
1648
1779
  generateParamConfigMetadata('tags', false, 2 /* Body */, 4 /* Unsupported */),
1649
1780
  generateParamConfigMetadata('type', true, 2 /* Body */, 0 /* String */),
1650
1781
  ];
1651
- const createDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createDataTransform_ConfigPropertyMetadata);
1652
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(createDataTransform_ConfigPropertyMetadata);
1653
- function typeCheckConfig$2(untrustedConfig) {
1782
+ const createDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createDataTransform_ConfigPropertyMetadata);
1783
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(createDataTransform_ConfigPropertyMetadata);
1784
+ function typeCheckConfig$3(untrustedConfig) {
1654
1785
  const config = {};
1655
- typeCheckConfig$4(untrustedConfig, config, createDataTransform_ConfigPropertyMetadata);
1786
+ typeCheckConfig$5(untrustedConfig, config, createDataTransform_ConfigPropertyMetadata);
1656
1787
  const untrustedConfig_capabilities = untrustedConfig.capabilities;
1657
1788
  if (untrustedIsObject(untrustedConfig_capabilities)) {
1658
1789
  const untrustedConfig_capabilities_object = {};
@@ -1704,30 +1835,30 @@ function typeCheckConfig$2(untrustedConfig) {
1704
1835
  }
1705
1836
  return config;
1706
1837
  }
1707
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1838
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1708
1839
  if (!untrustedIsObject(untrustedConfig)) {
1709
1840
  return null;
1710
1841
  }
1711
1842
  if (process.env.NODE_ENV !== 'production') {
1712
1843
  validateConfig(untrustedConfig, configPropertyNames);
1713
1844
  }
1714
- const config = typeCheckConfig$2(untrustedConfig);
1845
+ const config = typeCheckConfig$3(untrustedConfig);
1715
1846
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1716
1847
  return null;
1717
1848
  }
1718
1849
  return config;
1719
1850
  }
1720
- function buildNetworkSnapshot$2(luvio, config, options) {
1721
- const resourceParams = createResourceParams$2(config);
1722
- const request = createResourceRequest$2(resourceParams);
1851
+ function buildNetworkSnapshot$3(luvio, config, options) {
1852
+ const resourceParams = createResourceParams$3(config);
1853
+ const request = createResourceRequest$3(resourceParams);
1723
1854
  return luvio.dispatchResourceRequest(request, options)
1724
1855
  .then((response) => {
1725
1856
  return luvio.handleSuccessResponse(() => {
1726
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
1857
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
1727
1858
  return luvio.storeBroadcast().then(() => snapshot);
1728
1859
  }, () => {
1729
1860
  const cache = new StoreKeyMap();
1730
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1861
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1731
1862
  return cache;
1732
1863
  });
1733
1864
  }, (response) => {
@@ -1737,33 +1868,33 @@ function buildNetworkSnapshot$2(luvio, config, options) {
1737
1868
  }
1738
1869
  const createDataTransformAdapterFactory = (luvio) => {
1739
1870
  return function createDataTransform(untrustedConfig) {
1740
- const config = validateAdapterConfig$2(untrustedConfig, createDataTransform_ConfigPropertyNames);
1871
+ const config = validateAdapterConfig$3(untrustedConfig, createDataTransform_ConfigPropertyNames);
1741
1872
  // Invalid or incomplete config
1742
1873
  if (config === null) {
1743
1874
  throw new Error('Invalid config for "createDataTransform"');
1744
1875
  }
1745
- return buildNetworkSnapshot$2(luvio, config);
1876
+ return buildNetworkSnapshot$3(luvio, config);
1746
1877
  };
1747
1878
  };
1748
1879
 
1749
- function select(luvio, params) {
1750
- return select$6();
1880
+ function select$1(luvio, params) {
1881
+ return select$7();
1751
1882
  }
1752
1883
  function keyBuilder$2(luvio, params) {
1753
1884
  return keyBuilder$6(luvio, {
1754
1885
  name: params.urlParams.dataTransformNameOrId
1755
1886
  });
1756
1887
  }
1757
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1888
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1758
1889
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
1759
1890
  }
1760
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1891
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1761
1892
  const { body } = response;
1762
1893
  const key = keyBuilder$2(luvio, resourceParams);
1763
1894
  luvio.storeIngest(key, ingest$2, body);
1764
1895
  const snapshot = luvio.storeLookup({
1765
1896
  recordId: key,
1766
- node: select(),
1897
+ node: select$1(),
1767
1898
  variables: {},
1768
1899
  }, snapshotRefresh);
1769
1900
  if (process.env.NODE_ENV !== 'production') {
@@ -1780,10 +1911,10 @@ function ingestError(luvio, params, error, snapshotRefresh) {
1780
1911
  luvio.storeIngestError(key, errorSnapshot);
1781
1912
  return errorSnapshot;
1782
1913
  }
1783
- function createResourceRequest$1(config) {
1914
+ function createResourceRequest$2(config) {
1784
1915
  const headers = {};
1785
1916
  return {
1786
- baseUri: '/services/data/v62.0',
1917
+ baseUri: '/services/data/v64.0',
1787
1918
  basePath: '/ssot/data-transforms/' + config.urlParams.dataTransformNameOrId + '',
1788
1919
  method: 'get',
1789
1920
  body: null,
@@ -1794,61 +1925,61 @@ function createResourceRequest$1(config) {
1794
1925
  };
1795
1926
  }
1796
1927
 
1797
- const adapterName$1 = 'getDataTransform';
1928
+ const adapterName$2 = 'getDataTransform';
1798
1929
  const getDataTransform_ConfigPropertyMetadata = [
1799
1930
  generateParamConfigMetadata('dataTransformNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
1800
1931
  generateParamConfigMetadata('filterGroup', false, 1 /* QueryParameter */, 0 /* String */),
1801
1932
  ];
1802
- const getDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDataTransform_ConfigPropertyMetadata);
1803
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getDataTransform_ConfigPropertyMetadata);
1933
+ const getDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataTransform_ConfigPropertyMetadata);
1934
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getDataTransform_ConfigPropertyMetadata);
1804
1935
  function keyBuilder$1(luvio, config) {
1805
- const resourceParams = createResourceParams$1(config);
1936
+ const resourceParams = createResourceParams$2(config);
1806
1937
  return keyBuilder$2(luvio, resourceParams);
1807
1938
  }
1808
- function typeCheckConfig$1(untrustedConfig) {
1939
+ function typeCheckConfig$2(untrustedConfig) {
1809
1940
  const config = {};
1810
- typeCheckConfig$4(untrustedConfig, config, getDataTransform_ConfigPropertyMetadata);
1941
+ typeCheckConfig$5(untrustedConfig, config, getDataTransform_ConfigPropertyMetadata);
1811
1942
  return config;
1812
1943
  }
1813
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1944
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1814
1945
  if (!untrustedIsObject(untrustedConfig)) {
1815
1946
  return null;
1816
1947
  }
1817
1948
  if (process.env.NODE_ENV !== 'production') {
1818
1949
  validateConfig(untrustedConfig, configPropertyNames);
1819
1950
  }
1820
- const config = typeCheckConfig$1(untrustedConfig);
1951
+ const config = typeCheckConfig$2(untrustedConfig);
1821
1952
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1822
1953
  return null;
1823
1954
  }
1824
1955
  return config;
1825
1956
  }
1826
1957
  function adapterFragment(luvio, config) {
1827
- createResourceParams$1(config);
1828
- return select();
1958
+ createResourceParams$2(config);
1959
+ return select$1();
1829
1960
  }
1830
1961
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1831
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
1962
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1832
1963
  config,
1833
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1964
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1834
1965
  });
1835
1966
  return luvio.storeBroadcast().then(() => snapshot);
1836
1967
  }
1837
1968
  function onFetchResponseError(luvio, config, resourceParams, response) {
1838
1969
  const snapshot = ingestError(luvio, resourceParams, response, {
1839
1970
  config,
1840
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1971
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1841
1972
  });
1842
1973
  return luvio.storeBroadcast().then(() => snapshot);
1843
1974
  }
1844
- function buildNetworkSnapshot$1(luvio, config, options) {
1845
- const resourceParams = createResourceParams$1(config);
1846
- const request = createResourceRequest$1(resourceParams);
1975
+ function buildNetworkSnapshot$2(luvio, config, options) {
1976
+ const resourceParams = createResourceParams$2(config);
1977
+ const request = createResourceRequest$2(resourceParams);
1847
1978
  return luvio.dispatchResourceRequest(request, options)
1848
1979
  .then((response) => {
1849
1980
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1850
1981
  const cache = new StoreKeyMap();
1851
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1982
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1852
1983
  return cache;
1853
1984
  });
1854
1985
  }, (response) => {
@@ -1856,7 +1987,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
1856
1987
  });
1857
1988
  }
1858
1989
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1859
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1990
+ return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1860
1991
  }
1861
1992
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1862
1993
  const { luvio, config } = context;
@@ -1867,12 +1998,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1867
1998
  };
1868
1999
  const cacheSnapshot = storeLookup(selector, {
1869
2000
  config,
1870
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
2001
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1871
2002
  });
1872
2003
  return cacheSnapshot;
1873
2004
  }
1874
2005
  const getDataTransformAdapterFactory = (luvio) => function dataTransform__getDataTransform(untrustedConfig, requestContext) {
1875
- const config = validateAdapterConfig$1(untrustedConfig, getDataTransform_ConfigPropertyNames);
2006
+ const config = validateAdapterConfig$2(untrustedConfig, getDataTransform_ConfigPropertyNames);
1876
2007
  // Invalid or incomplete config
1877
2008
  if (config === null) {
1878
2009
  return null;
@@ -1886,7 +2017,7 @@ function keyBuilder(luvio, params) {
1886
2017
  name: params.urlParams.dataTransformNameOrId
1887
2018
  });
1888
2019
  }
1889
- function getResponseCacheKeys(cacheKeyMap, luvio, resourceParams) {
2020
+ function getResponseCacheKeys$1(cacheKeyMap, luvio, resourceParams) {
1890
2021
  const key = keyBuilder(luvio, resourceParams);
1891
2022
  cacheKeyMap.set(key, {
1892
2023
  namespace: keyPrefix,
@@ -1898,10 +2029,10 @@ function evictSuccess(luvio, resourceParams) {
1898
2029
  const key = keyBuilder(luvio, resourceParams);
1899
2030
  luvio.storeEvict(key);
1900
2031
  }
1901
- function createResourceRequest(config) {
2032
+ function createResourceRequest$1(config) {
1902
2033
  const headers = {};
1903
2034
  return {
1904
- baseUri: '/services/data/v62.0',
2035
+ baseUri: '/services/data/v64.0',
1905
2036
  basePath: '/ssot/data-transforms/' + config.urlParams.dataTransformNameOrId + '',
1906
2037
  method: 'delete',
1907
2038
  body: null,
@@ -1912,15 +2043,166 @@ function createResourceRequest(config) {
1912
2043
  };
1913
2044
  }
1914
2045
 
1915
- const adapterName = 'deleteDataTransform';
2046
+ const adapterName$1 = 'deleteDataTransform';
1916
2047
  const deleteDataTransform_ConfigPropertyMetadata = [
1917
2048
  generateParamConfigMetadata('dataTransformNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
1918
2049
  ];
1919
- const deleteDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, deleteDataTransform_ConfigPropertyMetadata);
1920
- const createResourceParams = /*#__PURE__*/ createResourceParams$4(deleteDataTransform_ConfigPropertyMetadata);
2050
+ const deleteDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, deleteDataTransform_ConfigPropertyMetadata);
2051
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(deleteDataTransform_ConfigPropertyMetadata);
2052
+ function typeCheckConfig$1(untrustedConfig) {
2053
+ const config = {};
2054
+ typeCheckConfig$5(untrustedConfig, config, deleteDataTransform_ConfigPropertyMetadata);
2055
+ return config;
2056
+ }
2057
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2058
+ if (!untrustedIsObject(untrustedConfig)) {
2059
+ return null;
2060
+ }
2061
+ if (process.env.NODE_ENV !== 'production') {
2062
+ validateConfig(untrustedConfig, configPropertyNames);
2063
+ }
2064
+ const config = typeCheckConfig$1(untrustedConfig);
2065
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2066
+ return null;
2067
+ }
2068
+ return config;
2069
+ }
2070
+ function buildNetworkSnapshot$1(luvio, config, options) {
2071
+ const resourceParams = createResourceParams$1(config);
2072
+ const request = createResourceRequest$1(resourceParams);
2073
+ return luvio.dispatchResourceRequest(request, options)
2074
+ .then(() => {
2075
+ return luvio.handleSuccessResponse(() => {
2076
+ evictSuccess(luvio, resourceParams);
2077
+ return luvio.storeBroadcast();
2078
+ }, () => {
2079
+ const cache = new StoreKeyMap();
2080
+ getResponseCacheKeys$1(cache, luvio, resourceParams);
2081
+ return cache;
2082
+ });
2083
+ }, (response) => {
2084
+ deepFreeze(response);
2085
+ throw response;
2086
+ });
2087
+ }
2088
+ const deleteDataTransformAdapterFactory = (luvio) => {
2089
+ return function dataTransformdeleteDataTransform(untrustedConfig) {
2090
+ const config = validateAdapterConfig$1(untrustedConfig, deleteDataTransform_ConfigPropertyNames);
2091
+ // Invalid or incomplete config
2092
+ if (config === null) {
2093
+ throw new Error(`Invalid config for "${adapterName$1}"`);
2094
+ }
2095
+ return buildNetworkSnapshot$1(luvio, config);
2096
+ };
2097
+ };
2098
+
2099
+ function select(luvio, params) {
2100
+ return select$7();
2101
+ }
2102
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
2103
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
2104
+ }
2105
+ function ingestSuccess(luvio, resourceParams, response) {
2106
+ const { body } = response;
2107
+ const key = keyBuilderFromType$2(luvio, body);
2108
+ luvio.storeIngest(key, ingest$2, body);
2109
+ const snapshot = luvio.storeLookup({
2110
+ recordId: key,
2111
+ node: select(),
2112
+ variables: {},
2113
+ });
2114
+ if (process.env.NODE_ENV !== 'production') {
2115
+ if (snapshot.state !== 'Fulfilled') {
2116
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2117
+ }
2118
+ }
2119
+ deepFreeze(snapshot.data);
2120
+ return snapshot;
2121
+ }
2122
+ function createResourceRequest(config) {
2123
+ const headers = {};
2124
+ return {
2125
+ baseUri: '/services/data/v64.0',
2126
+ basePath: '/ssot/data-transforms/' + config.urlParams.dataTransformNameOrId + '',
2127
+ method: 'put',
2128
+ body: config.body,
2129
+ urlParams: config.urlParams,
2130
+ queryParams: config.queryParams,
2131
+ headers,
2132
+ priority: 'normal',
2133
+ };
2134
+ }
2135
+
2136
+ const adapterName = 'updateDataTransform';
2137
+ const updateDataTransform_ConfigPropertyMetadata = [
2138
+ generateParamConfigMetadata('dataTransformNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
2139
+ generateParamConfigMetadata('filterGroup', false, 1 /* QueryParameter */, 0 /* String */),
2140
+ generateParamConfigMetadata('capabilities', false, 2 /* Body */, 4 /* Unsupported */),
2141
+ generateParamConfigMetadata('creationType', true, 2 /* Body */, 0 /* String */),
2142
+ generateParamConfigMetadata('currencyIsoCode', false, 2 /* Body */, 0 /* String */),
2143
+ generateParamConfigMetadata('dataSpaceName', false, 2 /* Body */, 0 /* String */),
2144
+ generateParamConfigMetadata('definition', true, 2 /* Body */, 4 /* Unsupported */),
2145
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
2146
+ generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
2147
+ generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
2148
+ generateParamConfigMetadata('primarySource', false, 2 /* Body */, 0 /* String */),
2149
+ generateParamConfigMetadata('tags', false, 2 /* Body */, 4 /* Unsupported */),
2150
+ generateParamConfigMetadata('type', true, 2 /* Body */, 0 /* String */),
2151
+ ];
2152
+ const updateDataTransform_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateDataTransform_ConfigPropertyMetadata);
2153
+ const createResourceParams = /*#__PURE__*/ createResourceParams$5(updateDataTransform_ConfigPropertyMetadata);
1921
2154
  function typeCheckConfig(untrustedConfig) {
1922
2155
  const config = {};
1923
- typeCheckConfig$4(untrustedConfig, config, deleteDataTransform_ConfigPropertyMetadata);
2156
+ typeCheckConfig$5(untrustedConfig, config, updateDataTransform_ConfigPropertyMetadata);
2157
+ const untrustedConfig_capabilities = untrustedConfig.capabilities;
2158
+ if (untrustedIsObject(untrustedConfig_capabilities)) {
2159
+ const untrustedConfig_capabilities_object = {};
2160
+ const untrustedConfig_capabilities_keys = Object.keys(untrustedConfig_capabilities);
2161
+ for (let i = 0, arrayLength = untrustedConfig_capabilities_keys.length; i < arrayLength; i++) {
2162
+ const key = untrustedConfig_capabilities_keys[i];
2163
+ const untrustedConfig_capabilities_prop = untrustedConfig_capabilities[key];
2164
+ if (typeof untrustedConfig_capabilities_prop === 'boolean') {
2165
+ if (untrustedConfig_capabilities_object !== undefined) {
2166
+ untrustedConfig_capabilities_object[key] = untrustedConfig_capabilities_prop;
2167
+ }
2168
+ }
2169
+ }
2170
+ if (untrustedConfig_capabilities_object !== undefined && Object.keys(untrustedConfig_capabilities_object).length >= 0) {
2171
+ config.capabilities = untrustedConfig_capabilities_object;
2172
+ }
2173
+ }
2174
+ const untrustedConfig_definition = untrustedConfig.definition;
2175
+ if (untrustedIsObject(untrustedConfig_definition)) {
2176
+ const untrustedConfig_definition_object = {};
2177
+ const untrustedConfig_definition_keys = Object.keys(untrustedConfig_definition);
2178
+ for (let i = 0, arrayLength = untrustedConfig_definition_keys.length; i < arrayLength; i++) {
2179
+ const key = untrustedConfig_definition_keys[i];
2180
+ const untrustedConfig_definition_prop = untrustedConfig_definition[key];
2181
+ if (untrustedConfig_definition_object !== undefined) {
2182
+ untrustedConfig_definition_object[key] = untrustedConfig_definition_prop;
2183
+ }
2184
+ }
2185
+ if (untrustedConfig_definition_object !== undefined && Object.keys(untrustedConfig_definition_object).length >= 0) {
2186
+ config.definition = untrustedConfig_definition_object;
2187
+ }
2188
+ }
2189
+ const untrustedConfig_tags = untrustedConfig.tags;
2190
+ if (untrustedIsObject(untrustedConfig_tags)) {
2191
+ const untrustedConfig_tags_object = {};
2192
+ const untrustedConfig_tags_keys = Object.keys(untrustedConfig_tags);
2193
+ for (let i = 0, arrayLength = untrustedConfig_tags_keys.length; i < arrayLength; i++) {
2194
+ const key = untrustedConfig_tags_keys[i];
2195
+ const untrustedConfig_tags_prop = untrustedConfig_tags[key];
2196
+ if (typeof untrustedConfig_tags_prop === 'string') {
2197
+ if (untrustedConfig_tags_object !== undefined) {
2198
+ untrustedConfig_tags_object[key] = untrustedConfig_tags_prop;
2199
+ }
2200
+ }
2201
+ }
2202
+ if (untrustedConfig_tags_object !== undefined && Object.keys(untrustedConfig_tags_object).length >= 0) {
2203
+ config.tags = untrustedConfig_tags_object;
2204
+ }
2205
+ }
1924
2206
  return config;
1925
2207
  }
1926
2208
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1940,13 +2222,13 @@ function buildNetworkSnapshot(luvio, config, options) {
1940
2222
  const resourceParams = createResourceParams(config);
1941
2223
  const request = createResourceRequest(resourceParams);
1942
2224
  return luvio.dispatchResourceRequest(request, options)
1943
- .then(() => {
2225
+ .then((response) => {
1944
2226
  return luvio.handleSuccessResponse(() => {
1945
- evictSuccess(luvio, resourceParams);
1946
- return luvio.storeBroadcast();
2227
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
2228
+ return luvio.storeBroadcast().then(() => snapshot);
1947
2229
  }, () => {
1948
2230
  const cache = new StoreKeyMap();
1949
- getResponseCacheKeys(cache, luvio, resourceParams);
2231
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1950
2232
  return cache;
1951
2233
  });
1952
2234
  }, (response) => {
@@ -1954,15 +2236,15 @@ function buildNetworkSnapshot(luvio, config, options) {
1954
2236
  throw response;
1955
2237
  });
1956
2238
  }
1957
- const deleteDataTransformAdapterFactory = (luvio) => {
1958
- return function dataTransformdeleteDataTransform(untrustedConfig) {
1959
- const config = validateAdapterConfig(untrustedConfig, deleteDataTransform_ConfigPropertyNames);
2239
+ const updateDataTransformAdapterFactory = (luvio) => {
2240
+ return function updateDataTransform(untrustedConfig) {
2241
+ const config = validateAdapterConfig(untrustedConfig, updateDataTransform_ConfigPropertyNames);
1960
2242
  // Invalid or incomplete config
1961
2243
  if (config === null) {
1962
- throw new Error(`Invalid config for "${adapterName}"`);
2244
+ throw new Error('Invalid config for "updateDataTransform"');
1963
2245
  }
1964
2246
  return buildNetworkSnapshot(luvio, config);
1965
2247
  };
1966
2248
  };
1967
2249
 
1968
- export { createDataTransformAdapterFactory, deleteDataTransformAdapterFactory, getDataTransformAdapterFactory, validateDataTransformsAdapterFactory };
2250
+ export { createDataTransformAdapterFactory, deleteDataTransformAdapterFactory, getDataTransformAdapterFactory, updateDataTransformAdapterFactory, validateDataTransformsAdapterFactory };