mcdev 5.2.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.fork/custom-commands.json +12 -0
- package/.github/ISSUE_TEMPLATE/bug.yml +1 -0
- package/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md +19 -0
- package/docs/dist/documentation.md +400 -9
- package/lib/MetadataTypeDefinitions.js +1 -0
- package/lib/MetadataTypeInfo.js +1 -0
- package/lib/cli.js +6 -1
- package/lib/index.js +4 -1
- package/lib/metadataTypes/AttributeSet.js +118 -11
- package/lib/metadataTypes/Automation.js +99 -70
- package/lib/metadataTypes/DataExtension.js +463 -66
- package/lib/metadataTypes/DataExtensionField.js +30 -13
- package/lib/metadataTypes/Journey.js +8 -1
- package/lib/metadataTypes/MetadataType.js +63 -5
- package/lib/metadataTypes/MobileKeyword.js +1 -1
- package/lib/metadataTypes/TransactionalEmail.js +94 -17
- package/lib/metadataTypes/TransactionalMessage.js +3 -2
- package/lib/metadataTypes/Verification.js +230 -0
- package/lib/metadataTypes/definitions/AttributeGroup.definition.js +2 -2
- package/lib/metadataTypes/definitions/AttributeSet.definition.js +74 -21
- package/lib/metadataTypes/definitions/Automation.definition.js +1 -0
- package/lib/metadataTypes/definitions/TransactionalEmail.definition.js +19 -1
- package/lib/metadataTypes/definitions/Verification.definition.js +88 -0
- package/package.json +6 -6
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/mockRoot/deploy/testInstance/_ParentBU_/dataExtension/testExisting_dataExtensionShared.dataExtension-meta.json +59 -0
- package/test/mockRoot/deploy/testInstance/_ParentBU_/dataExtension/testNew_dataExtensionShared.dataExtension-meta.json +23 -0
- package/test/mockRoot/deploy/testInstance/testBU/automation/testNew_automation.automation-meta.json +4 -0
- package/test/mockRoot/deploy/testInstance/testBU/dataExtension/testExisting_dataExtension.dataExtension-meta.json +1 -0
- package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testExisting_temail.transactionalEmail-meta.json +3 -4
- package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testNew_temail.transactionalEmail-meta.json +1 -6
- package/test/mockRoot/deploy/testInstance/testBU/verification/testExisting_39f6a488-20eb-4ba0-b0b9.verification-meta.json +11 -0
- package/test/mockRoot/deploy/testInstance/testBU/verification/testNew_39f6a488-20eb-4ba0-b0b9.verification-meta.json +11 -0
- package/test/resources/1111111/data/v1/customobjectdata/key/testExisting_dataExtensionShared/rowset/get-response.json +13 -0
- package/test/resources/1111111/dataExtension/create-expected.json +23 -0
- package/test/resources/1111111/dataExtension/create-response.xml +59 -0
- package/test/resources/1111111/dataExtension/retrieve-expected.json +55 -0
- package/test/resources/1111111/dataExtension/retrieve-expected.md +18 -0
- package/test/resources/1111111/dataExtension/retrieve-response.xml +27 -1
- package/test/resources/1111111/dataExtension/update-expected.json +55 -0
- package/test/resources/1111111/dataExtension/update-response.xml +57 -0
- package/test/resources/1111111/dataExtensionField/retrieve-CustomerKey=[testExisting_dataExtensionShared].[TriggerUpdate_randomNumber_]-response.xml +45 -0
- package/test/resources/1111111/dataExtensionField/retrieve-DataExtension.CustomerKey=testExisting_dataExtensionShared-response.xml +98 -0
- package/test/resources/1111111/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_dataExtensionSharedORDataExtension.CustomerKey=testExisting_dataExtensionShared-response.xml +98 -0
- package/test/resources/1111111/dataExtensionField/retrieve-response.xml +98 -0
- package/test/resources/1111111/dataExtensionTemplate/retrieve-response.xml +303 -0
- package/test/resources/1111111/dataFolder/retrieve-ContentType=synchronizeddataextensionORContentType=shared_salesforcedataextensionORContentType=shared_dataextensionORContentType=shared_dataORContentType=salesforcedataextensionORContentType=dataextensionORContentType=hidden-response.xml +387 -0
- package/test/resources/1111111/dataFolder/retrieve-response.xml +353 -9
- package/test/resources/9999999/attributeSet/retrieve-expected.json +89 -694
- package/test/resources/9999999/automation/build-expected.json +4 -0
- package/test/resources/9999999/automation/create-expected.json +4 -0
- package/test/resources/9999999/automation/create-testNew_automation-expected.md +1 -0
- package/test/resources/9999999/automation/retrieve-expected.json +4 -0
- package/test/resources/9999999/automation/retrieve-testExisting_automation-expected.md +1 -0
- package/test/resources/9999999/automation/template-expected.json +4 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +7 -0
- package/test/resources/9999999/automation/v1/automations/post-response.json +7 -0
- package/test/resources/9999999/automation/v1/dataverifications/post-response.json +12 -0
- package/test/resources/9999999/automation/v1/dataverifications/testExisting_39f6a488-20eb-4ba0-b0b9/delete-response.json +0 -0
- package/test/resources/9999999/automation/v1/dataverifications/testExisting_39f6a488-20eb-4ba0-b0b9/get-response.json +12 -0
- package/test/resources/9999999/automation/v1/dataverifications/testExisting_39f6a488-20eb-4ba0-b0b9/patch-response.json +12 -0
- package/test/resources/9999999/dataExtension/build-expected.json +16 -0
- package/test/resources/9999999/dataExtension/delete-response.xml +42 -0
- package/test/resources/9999999/dataExtension/retrieve-expected.json +16 -0
- package/test/resources/9999999/dataExtension/retrieve-expected.md +3 -1
- package/test/resources/9999999/dataExtension/template-expected.json +16 -0
- package/test/resources/9999999/dataExtension/update-expected.json +17 -1
- package/test/resources/9999999/dataExtensionField/retrieve-CustomerKey=[testExisting_dataExtension].[LastName]-response.xml +44 -0
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testExisting_dataExtension-response.xml +36 -1
- package/test/resources/9999999/dataExtensionField/retrieve-response.xml +36 -1
- package/test/resources/9999999/dataFolder/retrieve-ContentType=synchronizeddataextensionORContentType=shared_salesforcedataextensionORContentType=shared_dataextensionORContentType=shared_dataORContentType=salesforcedataextensionORContentType=dataextensionORContentType=hidden-response.xml +117 -0
- package/test/resources/9999999/hub/v1/contacts/schema/attributeGroups/get-response.json +43 -0
- package/test/resources/9999999/hub/v1/contacts/schema/setDefinitions/get-response.json +387 -0
- package/test/resources/9999999/interaction/v1/interactions/233d4413-922c-4568-85a5-e5cc77efc3be/delete-response.json +1 -0
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/get-response.json +1 -1
- package/test/resources/9999999/messaging/v1/email/definitions/post-response.json +1 -1
- package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/delete-response.json +6 -0
- package/test/resources/9999999/transactionalEmail/build-expected.json +3 -7
- package/test/resources/9999999/transactionalEmail/get-expected.json +3 -7
- package/test/resources/9999999/transactionalEmail/patch-expected.json +3 -7
- package/test/resources/9999999/transactionalEmail/post-expected.json +3 -7
- package/test/resources/9999999/transactionalEmail/template-expected.json +3 -7
- package/test/resources/9999999/verification/build-expected.json +11 -0
- package/test/resources/9999999/verification/get-expected.json +11 -0
- package/test/resources/9999999/verification/patch-expected.json +11 -0
- package/test/resources/9999999/verification/post-expected.json +11 -0
- package/test/resources/9999999/verification/template-expected.json +11 -0
- package/test/type.attributeGroup.test.js +4 -4
- package/test/type.attributeSet.test.js +5 -5
- package/test/type.automation.test.js +29 -23
- package/test/type.dataExtension.test.js +205 -45
- package/test/type.dataExtract.test.js +10 -3
- package/test/type.fileTransfer.test.js +10 -3
- package/test/type.importFile.test.js +10 -3
- package/test/type.journey.test.js +38 -11
- package/test/type.mobileKeyword.test.js +6 -4
- package/test/type.mobileMessage.test.js +6 -4
- package/test/type.query.test.js +8 -6
- package/test/type.script.test.js +6 -1
- package/test/type.transactionalEmail.test.js +12 -11
- package/test/type.transactionalPush.test.js +2 -4
- package/test/type.transactionalSMS.test.js +2 -4
- package/test/type.triggeredSend.test.js +6 -4
- package/test/type.verification.test.js +173 -0
- package/test/utils.js +7 -1
- package/types/mcdev.d.js +14 -0
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
bodyIteratorField: 'setDefinition',
|
|
3
|
-
dependencies: [
|
|
3
|
+
dependencies: [
|
|
4
|
+
'folder-hidden',
|
|
5
|
+
'folder-dataextension',
|
|
6
|
+
'folder-salesforcedataextension',
|
|
7
|
+
'folder-shared_data',
|
|
8
|
+
'folder-shared_dataextension',
|
|
9
|
+
'folder-shared_salesforcedataextension',
|
|
10
|
+
'folder-synchronizeddataextension',
|
|
11
|
+
'dataExtension',
|
|
12
|
+
],
|
|
4
13
|
hasExtended: false,
|
|
5
14
|
idField: 'definitionID',
|
|
6
15
|
keyIsFixed: null,
|
|
@@ -13,9 +22,9 @@ module.exports = {
|
|
|
13
22
|
lastmodNameField: null,
|
|
14
23
|
restPagination: false, // Hub API does not support pagination and returns everything instead
|
|
15
24
|
type: 'attributeSet',
|
|
16
|
-
typeDescription: '
|
|
17
|
-
typeRetrieveByDefault:
|
|
18
|
-
typeName: 'Data Designer
|
|
25
|
+
typeDescription: 'Data Extensions linked together in Attribute Groups in Data Designer.',
|
|
26
|
+
typeRetrieveByDefault: true,
|
|
27
|
+
typeName: 'Data Designer Attribute Sets',
|
|
19
28
|
fields: {
|
|
20
29
|
applicationID: {
|
|
21
30
|
isCreateable: null,
|
|
@@ -119,6 +128,12 @@ module.exports = {
|
|
|
119
128
|
retrieving: true,
|
|
120
129
|
template: null,
|
|
121
130
|
},
|
|
131
|
+
'dataRetentionProperties.periodLength': {
|
|
132
|
+
isCreateable: null,
|
|
133
|
+
isUpdateable: null,
|
|
134
|
+
retrieving: true,
|
|
135
|
+
template: null,
|
|
136
|
+
},
|
|
122
137
|
definitionID: {
|
|
123
138
|
isCreateable: null,
|
|
124
139
|
isUpdateable: null,
|
|
@@ -138,14 +153,14 @@ module.exports = {
|
|
|
138
153
|
template: false,
|
|
139
154
|
},
|
|
140
155
|
'definitionName.value': {
|
|
141
|
-
// equal to 'name'
|
|
156
|
+
// equal to 'name'
|
|
142
157
|
isCreateable: true,
|
|
143
158
|
isUpdateable: true,
|
|
144
159
|
retrieving: false,
|
|
145
160
|
template: false,
|
|
146
161
|
},
|
|
147
162
|
fullyQualifiedName: {
|
|
148
|
-
// equal to 'name'
|
|
163
|
+
// equal to 'name'
|
|
149
164
|
isCreateable: true,
|
|
150
165
|
isUpdateable: true,
|
|
151
166
|
retrieving: false,
|
|
@@ -602,9 +617,10 @@ module.exports = {
|
|
|
602
617
|
template: null,
|
|
603
618
|
},
|
|
604
619
|
'valueDefinitions[].baseType': {
|
|
620
|
+
// "Numeric", "Text", ... valueDefinitions[].dataType is more relevant
|
|
605
621
|
isCreateable: null,
|
|
606
622
|
isUpdateable: null,
|
|
607
|
-
retrieving:
|
|
623
|
+
retrieving: false,
|
|
608
624
|
template: null,
|
|
609
625
|
},
|
|
610
626
|
'valueDefinitions[].customerDataID': {
|
|
@@ -613,6 +629,12 @@ module.exports = {
|
|
|
613
629
|
retrieving: true,
|
|
614
630
|
template: null,
|
|
615
631
|
},
|
|
632
|
+
'valueDefinitions[].connectingID': {
|
|
633
|
+
isCreateable: null,
|
|
634
|
+
isUpdateable: null,
|
|
635
|
+
retrieving: false,
|
|
636
|
+
template: null,
|
|
637
|
+
},
|
|
616
638
|
'valueDefinitions[].dataSourceID': {
|
|
617
639
|
isCreateable: null,
|
|
618
640
|
isUpdateable: null,
|
|
@@ -622,7 +644,7 @@ module.exports = {
|
|
|
622
644
|
'valueDefinitions[].dataSourceName': {
|
|
623
645
|
isCreateable: null,
|
|
624
646
|
isUpdateable: null,
|
|
625
|
-
retrieving:
|
|
647
|
+
retrieving: false,
|
|
626
648
|
template: null,
|
|
627
649
|
},
|
|
628
650
|
'valueDefinitions[].dataType': {
|
|
@@ -638,9 +660,10 @@ module.exports = {
|
|
|
638
660
|
template: null,
|
|
639
661
|
},
|
|
640
662
|
'valueDefinitions[].definitionID': {
|
|
663
|
+
// likely the main ID of the value definition. No use for simple checks on git though as long as we cannot update it
|
|
641
664
|
isCreateable: null,
|
|
642
665
|
isUpdateable: null,
|
|
643
|
-
retrieving:
|
|
666
|
+
retrieving: false,
|
|
644
667
|
template: null,
|
|
645
668
|
},
|
|
646
669
|
'valueDefinitions[].definitionKey': {
|
|
@@ -649,10 +672,11 @@ module.exports = {
|
|
|
649
672
|
retrieving: true,
|
|
650
673
|
template: null,
|
|
651
674
|
},
|
|
652
|
-
'valueDefinitions[].definitionName
|
|
675
|
+
'valueDefinitions[].definitionName': {
|
|
676
|
+
// equal to valueDefinitions[].name
|
|
653
677
|
isCreateable: null,
|
|
654
678
|
isUpdateable: null,
|
|
655
|
-
retrieving:
|
|
679
|
+
retrieving: false,
|
|
656
680
|
template: null,
|
|
657
681
|
},
|
|
658
682
|
'valueDefinitions[].description': {
|
|
@@ -662,15 +686,17 @@ module.exports = {
|
|
|
662
686
|
template: null,
|
|
663
687
|
},
|
|
664
688
|
'valueDefinitions[].displayOrder': {
|
|
689
|
+
// merely a numeric counter; equal to valueDefinitions[].ordinal; not given for isHidden:true entries
|
|
665
690
|
isCreateable: null,
|
|
666
691
|
isUpdateable: null,
|
|
667
|
-
retrieving:
|
|
692
|
+
retrieving: false,
|
|
668
693
|
template: null,
|
|
669
694
|
},
|
|
670
695
|
'valueDefinitions[].fullyQualifiedName': {
|
|
696
|
+
// dataExtension name + field name
|
|
671
697
|
isCreateable: null,
|
|
672
698
|
isUpdateable: null,
|
|
673
|
-
retrieving:
|
|
699
|
+
retrieving: false,
|
|
674
700
|
template: null,
|
|
675
701
|
},
|
|
676
702
|
'valueDefinitions[].identifierType': {
|
|
@@ -727,10 +753,11 @@ module.exports = {
|
|
|
727
753
|
retrieving: true,
|
|
728
754
|
template: null,
|
|
729
755
|
},
|
|
730
|
-
'valueDefinitions[].localizedDescription
|
|
756
|
+
'valueDefinitions[].localizedDescription': {
|
|
757
|
+
// always equal to { value: "" }
|
|
731
758
|
isCreateable: null,
|
|
732
759
|
isUpdateable: null,
|
|
733
|
-
retrieving:
|
|
760
|
+
retrieving: false,
|
|
734
761
|
template: null,
|
|
735
762
|
},
|
|
736
763
|
'valueDefinitions[].name': {
|
|
@@ -739,6 +766,13 @@ module.exports = {
|
|
|
739
766
|
retrieving: true,
|
|
740
767
|
template: null,
|
|
741
768
|
},
|
|
769
|
+
'valueDefinitions[].obfuscationProperties': {
|
|
770
|
+
// might become relevant when fields are encrypted but for most cases we should simply skip it
|
|
771
|
+
isCreateable: null,
|
|
772
|
+
isUpdateable: null,
|
|
773
|
+
retrieving: false,
|
|
774
|
+
template: null,
|
|
775
|
+
},
|
|
742
776
|
'valueDefinitions[].obfuscationProperties.maskType': {
|
|
743
777
|
isCreateable: null,
|
|
744
778
|
isUpdateable: null,
|
|
@@ -770,9 +804,10 @@ module.exports = {
|
|
|
770
804
|
template: null,
|
|
771
805
|
},
|
|
772
806
|
'valueDefinitions[].ordinal': {
|
|
807
|
+
// merely a numeric counter; equal to valueDefinitions[].displayOrder; not given for isHidden:true entries
|
|
773
808
|
isCreateable: null,
|
|
774
809
|
isUpdateable: null,
|
|
775
|
-
retrieving:
|
|
810
|
+
retrieving: false,
|
|
776
811
|
template: null,
|
|
777
812
|
},
|
|
778
813
|
'valueDefinitions[].parentDefinition': {
|
|
@@ -788,9 +823,10 @@ module.exports = {
|
|
|
788
823
|
template: null,
|
|
789
824
|
},
|
|
790
825
|
'valueDefinitions[].parentType': {
|
|
826
|
+
// always "Set"
|
|
791
827
|
isCreateable: null,
|
|
792
828
|
isUpdateable: null,
|
|
793
|
-
retrieving:
|
|
829
|
+
retrieving: false,
|
|
794
830
|
template: null,
|
|
795
831
|
},
|
|
796
832
|
'valueDefinitions[].restrictionLookupListID': {
|
|
@@ -817,40 +853,51 @@ module.exports = {
|
|
|
817
853
|
retrieving: false,
|
|
818
854
|
template: null,
|
|
819
855
|
},
|
|
820
|
-
'valueDefinitions[].setDefinitionName
|
|
856
|
+
'valueDefinitions[].setDefinitionName': {
|
|
857
|
+
isCreateable: null,
|
|
858
|
+
isUpdateable: null,
|
|
859
|
+
retrieving: false,
|
|
860
|
+
template: null,
|
|
861
|
+
},
|
|
862
|
+
'valueDefinitions[].storageFieldReferenceID': {
|
|
821
863
|
isCreateable: null,
|
|
822
864
|
isUpdateable: null,
|
|
823
865
|
retrieving: false,
|
|
824
866
|
template: null,
|
|
825
867
|
},
|
|
826
868
|
'valueDefinitions[].storageFieldReferenceID.type': {
|
|
869
|
+
// always "guid"
|
|
827
870
|
isCreateable: null,
|
|
828
871
|
isUpdateable: null,
|
|
829
872
|
retrieving: true,
|
|
830
873
|
template: null,
|
|
831
874
|
},
|
|
832
875
|
'valueDefinitions[].storageFieldReferenceID.value': {
|
|
876
|
+
// unknown GUID
|
|
833
877
|
isCreateable: null,
|
|
834
878
|
isUpdateable: null,
|
|
835
879
|
retrieving: true,
|
|
836
880
|
template: null,
|
|
837
881
|
},
|
|
838
882
|
'valueDefinitions[].storageName': {
|
|
883
|
+
// always equal valueDefinitions[].definitionKey, except for when that is CustomObjectKey - then this will be _CustomObjectKey (with an underscore)
|
|
839
884
|
isCreateable: null,
|
|
840
885
|
isUpdateable: null,
|
|
841
|
-
retrieving:
|
|
886
|
+
retrieving: false,
|
|
842
887
|
template: null,
|
|
843
888
|
},
|
|
844
889
|
'valueDefinitions[].valueDefinitionID': {
|
|
890
|
+
// equal to valueDefinitions[].definitionID
|
|
845
891
|
isCreateable: null,
|
|
846
892
|
isUpdateable: null,
|
|
847
|
-
retrieving:
|
|
893
|
+
retrieving: false,
|
|
848
894
|
template: null,
|
|
849
895
|
},
|
|
850
896
|
'valueDefinitions[].valueDefinitionKey': {
|
|
897
|
+
// equal to valueDefinitions[].definitionKey
|
|
851
898
|
isCreateable: null,
|
|
852
899
|
isUpdateable: null,
|
|
853
|
-
retrieving:
|
|
900
|
+
retrieving: false,
|
|
854
901
|
template: null,
|
|
855
902
|
},
|
|
856
903
|
r__folder_Path: {
|
|
@@ -859,5 +906,11 @@ module.exports = {
|
|
|
859
906
|
retrieving: true,
|
|
860
907
|
template: null,
|
|
861
908
|
},
|
|
909
|
+
r__dataExtension_CustomerKey: {
|
|
910
|
+
isCreateable: null,
|
|
911
|
+
isUpdateable: null,
|
|
912
|
+
retrieving: true,
|
|
913
|
+
template: null,
|
|
914
|
+
},
|
|
862
915
|
},
|
|
863
916
|
};
|
|
@@ -83,6 +83,12 @@ module.exports = {
|
|
|
83
83
|
retrieving: true,
|
|
84
84
|
template: true,
|
|
85
85
|
},
|
|
86
|
+
'subscriptions.r__dataExtension_CustomerKey': {
|
|
87
|
+
isCreateable: false,
|
|
88
|
+
isUpdateable: false,
|
|
89
|
+
retrieving: true,
|
|
90
|
+
template: true,
|
|
91
|
+
},
|
|
86
92
|
'subscriptions.list': {
|
|
87
93
|
isCreateable: true,
|
|
88
94
|
isUpdateable: true,
|
|
@@ -127,7 +133,7 @@ module.exports = {
|
|
|
127
133
|
},
|
|
128
134
|
'options.createJourney': {
|
|
129
135
|
isCreateable: true,
|
|
130
|
-
isUpdateable:
|
|
136
|
+
isUpdateable: false,
|
|
131
137
|
retrieving: false,
|
|
132
138
|
template: false,
|
|
133
139
|
},
|
|
@@ -143,5 +149,17 @@ module.exports = {
|
|
|
143
149
|
retrieving: true,
|
|
144
150
|
template: true,
|
|
145
151
|
},
|
|
152
|
+
r__asset_customerKey: {
|
|
153
|
+
isCreateable: false,
|
|
154
|
+
isUpdateable: false,
|
|
155
|
+
retrieving: true,
|
|
156
|
+
template: true,
|
|
157
|
+
},
|
|
158
|
+
r__journey_key: {
|
|
159
|
+
isCreateable: false,
|
|
160
|
+
isUpdateable: false,
|
|
161
|
+
retrieving: true,
|
|
162
|
+
template: true,
|
|
163
|
+
},
|
|
146
164
|
},
|
|
147
165
|
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
bodyIteratorField: 'items',
|
|
3
|
+
dependencies: ['dataExtension'],
|
|
4
|
+
hasExtended: false,
|
|
5
|
+
idField: 'dataVerificationDefinitionId',
|
|
6
|
+
keyIsFixed: true,
|
|
7
|
+
keyField: 'dataVerificationDefinitionId',
|
|
8
|
+
createdDateField: null,
|
|
9
|
+
createdNameField: 'createdBy',
|
|
10
|
+
lastmodDateField: null,
|
|
11
|
+
lastmodNameField: null,
|
|
12
|
+
nameField: 'dataVerificationDefinitionId',
|
|
13
|
+
restPagination: false,
|
|
14
|
+
maxKeyLength: 36, // confirmed max length
|
|
15
|
+
type: 'verification',
|
|
16
|
+
typeDescription: 'Check DataExtension for a row count',
|
|
17
|
+
typeRetrieveByDefault: true,
|
|
18
|
+
typeName: 'Automation: Verification Activity',
|
|
19
|
+
fields: {
|
|
20
|
+
createdBy: {
|
|
21
|
+
// User ID
|
|
22
|
+
isCreateable: false,
|
|
23
|
+
isUpdateable: false,
|
|
24
|
+
retrieving: false,
|
|
25
|
+
template: false,
|
|
26
|
+
},
|
|
27
|
+
dataVerificationDefinitionId: {
|
|
28
|
+
isCreateable: false, // auto-assigned during creation by SFMC
|
|
29
|
+
isUpdateable: true,
|
|
30
|
+
retrieving: true,
|
|
31
|
+
template: true,
|
|
32
|
+
},
|
|
33
|
+
notificationEmailAddress: {
|
|
34
|
+
isCreateable: true,
|
|
35
|
+
isUpdateable: true,
|
|
36
|
+
retrieving: true,
|
|
37
|
+
template: true,
|
|
38
|
+
},
|
|
39
|
+
notificationEmailMessage: {
|
|
40
|
+
isCreateable: true,
|
|
41
|
+
isUpdateable: true,
|
|
42
|
+
retrieving: true,
|
|
43
|
+
template: true,
|
|
44
|
+
},
|
|
45
|
+
shouldEmailOnFailure: {
|
|
46
|
+
isCreateable: true,
|
|
47
|
+
isUpdateable: true,
|
|
48
|
+
retrieving: true,
|
|
49
|
+
template: true,
|
|
50
|
+
},
|
|
51
|
+
shouldStopOnFailure: {
|
|
52
|
+
isCreateable: true,
|
|
53
|
+
isUpdateable: true,
|
|
54
|
+
retrieving: true,
|
|
55
|
+
template: true,
|
|
56
|
+
},
|
|
57
|
+
targetObjectId: {
|
|
58
|
+
isCreateable: true,
|
|
59
|
+
isUpdateable: true,
|
|
60
|
+
retrieving: true,
|
|
61
|
+
template: true,
|
|
62
|
+
},
|
|
63
|
+
value1: {
|
|
64
|
+
isCreateable: true,
|
|
65
|
+
isUpdateable: true,
|
|
66
|
+
retrieving: true,
|
|
67
|
+
template: true,
|
|
68
|
+
},
|
|
69
|
+
value2: {
|
|
70
|
+
isCreateable: true,
|
|
71
|
+
isUpdateable: true,
|
|
72
|
+
retrieving: true,
|
|
73
|
+
template: true,
|
|
74
|
+
},
|
|
75
|
+
verificationType: {
|
|
76
|
+
isCreateable: true,
|
|
77
|
+
isUpdateable: true,
|
|
78
|
+
retrieving: true,
|
|
79
|
+
template: true,
|
|
80
|
+
},
|
|
81
|
+
r__dataExtension_CustomerKey: {
|
|
82
|
+
isCreateable: false,
|
|
83
|
+
isUpdateable: false,
|
|
84
|
+
retrieving: true,
|
|
85
|
+
template: true,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcdev",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Accenture Salesforce Marketing Cloud DevTools",
|
|
5
5
|
"author": "Accenture: joern.berkefeld, douglas.midgley, robert.zimmermann, maciej.barnas",
|
|
6
6
|
"license": "MIT",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"console.table": "0.10.0",
|
|
66
66
|
"deep-equal": "2.2.2",
|
|
67
67
|
"fs-extra": "11.1.0",
|
|
68
|
-
"inquirer": "8.2.
|
|
68
|
+
"inquirer": "8.2.6",
|
|
69
69
|
"json-to-table": "4.2.1",
|
|
70
70
|
"mustache": "4.2.0",
|
|
71
71
|
"p-limit": "3.1.0",
|
|
@@ -82,19 +82,19 @@
|
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"assert": "2.0.0",
|
|
84
84
|
"axios-mock-adapter": "1.21.5",
|
|
85
|
-
"chai": "4.3.
|
|
85
|
+
"chai": "4.3.8",
|
|
86
86
|
"chai-files": "1.4.0",
|
|
87
|
-
"eslint": "8.
|
|
87
|
+
"eslint": "8.48.0",
|
|
88
88
|
"eslint-config-prettier": "9.0.0",
|
|
89
89
|
"eslint-config-ssjs": "1.1.11",
|
|
90
|
-
"eslint-plugin-jsdoc": "46.
|
|
90
|
+
"eslint-plugin-jsdoc": "46.5.0",
|
|
91
91
|
"eslint-plugin-mocha": "10.1.0",
|
|
92
92
|
"eslint-plugin-prettier": "4.2.1",
|
|
93
93
|
"eslint-plugin-unicorn": "48.0.0",
|
|
94
94
|
"fast-xml-parser": "4.2.7",
|
|
95
95
|
"husky": "8.0.3",
|
|
96
96
|
"jsdoc-to-markdown": "8.0.0",
|
|
97
|
-
"lint-staged": "
|
|
97
|
+
"lint-staged": "14.0.1",
|
|
98
98
|
"mocha": "10.2.0",
|
|
99
99
|
"mock-fs": "5.2.0",
|
|
100
100
|
"npm-check": "6.0.1",
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"CustomerKey": "testExisting_dataExtensionShared",
|
|
3
|
+
"Name": "testExisting_dataExtensionShared",
|
|
4
|
+
"Description": "Container for my test emails",
|
|
5
|
+
"IsSendable": true,
|
|
6
|
+
"IsTestable": true,
|
|
7
|
+
"SendableDataExtensionField": { "Name": "ContactKey" },
|
|
8
|
+
"SendableSubscriberField": { "Name": "Subscriber Key" },
|
|
9
|
+
"DataRetentionPeriodLength": 6,
|
|
10
|
+
"DataRetentionPeriodUnitOfMeasure": 5,
|
|
11
|
+
"RowBasedRetention": true,
|
|
12
|
+
"ResetRetentionPeriodOnImport": false,
|
|
13
|
+
"DeleteAtEndOfRetentionPeriod": false,
|
|
14
|
+
"RetainUntil": "",
|
|
15
|
+
"Fields": [
|
|
16
|
+
{
|
|
17
|
+
"Name": "FirstName",
|
|
18
|
+
"DefaultValue": "",
|
|
19
|
+
"MaxLength": 50,
|
|
20
|
+
"IsRequired": false,
|
|
21
|
+
"IsPrimaryKey": false,
|
|
22
|
+
"FieldType": "Text"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"Name": "LastName",
|
|
26
|
+
"DefaultValue": "",
|
|
27
|
+
"MaxLength": 55,
|
|
28
|
+
"IsRequired": false,
|
|
29
|
+
"IsPrimaryKey": false,
|
|
30
|
+
"FieldType": "Text"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"Name": "EmailAddress",
|
|
34
|
+
"DefaultValue": "",
|
|
35
|
+
"MaxLength": 254,
|
|
36
|
+
"IsRequired": true,
|
|
37
|
+
"IsPrimaryKey": false,
|
|
38
|
+
"FieldType": "EmailAddress"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"Name": "newField",
|
|
42
|
+
"DefaultValue": "",
|
|
43
|
+
"MaxLength": 254,
|
|
44
|
+
"IsRequired": false,
|
|
45
|
+
"IsPrimaryKey": false,
|
|
46
|
+
"FieldType": "Text"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"Name": "ContactKey",
|
|
50
|
+
"DefaultValue": "",
|
|
51
|
+
"MaxLength": 50,
|
|
52
|
+
"IsRequired": true,
|
|
53
|
+
"IsPrimaryKey": true,
|
|
54
|
+
"FieldType": "Text"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"r__folder_ContentType": "shared_dataextension",
|
|
58
|
+
"r__folder_Path": "Shared Items/Shared Data Extensions"
|
|
59
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"CustomerKey": "testNew_dataExtensionShared",
|
|
3
|
+
"Name": "testNew_dataExtensionShared",
|
|
4
|
+
"Description": "",
|
|
5
|
+
"IsSendable": false,
|
|
6
|
+
"IsTestable": false,
|
|
7
|
+
"RowBasedRetention": false,
|
|
8
|
+
"ResetRetentionPeriodOnImport": false,
|
|
9
|
+
"DeleteAtEndOfRetentionPeriod": false,
|
|
10
|
+
"RetainUntil": "",
|
|
11
|
+
"Fields": [
|
|
12
|
+
{
|
|
13
|
+
"Name": "testField",
|
|
14
|
+
"DefaultValue": "",
|
|
15
|
+
"MaxLength": 254,
|
|
16
|
+
"IsRequired": true,
|
|
17
|
+
"IsPrimaryKey": false,
|
|
18
|
+
"FieldType": "Text"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"r__folder_ContentType": "shared_dataextension",
|
|
22
|
+
"r__folder_Path": "Shared Items/Shared Data Extensions"
|
|
23
|
+
}
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
"status": "Active",
|
|
7
7
|
"createdDate": "2020-09-10T03:29:00",
|
|
8
8
|
"modifiedDate": "2020-09-10T03:29:00",
|
|
9
|
-
"content": {
|
|
10
|
-
"customerKey": "testExisting_asset_message"
|
|
11
|
-
},
|
|
12
9
|
"subscriptions": {
|
|
13
10
|
"dataExtension": "testExisting_dataExtension",
|
|
14
11
|
"autoAddSubscriber": true,
|
|
@@ -17,5 +14,7 @@
|
|
|
17
14
|
},
|
|
18
15
|
"options": {
|
|
19
16
|
"trackLinks": true
|
|
20
|
-
}
|
|
17
|
+
},
|
|
18
|
+
"r__journey_key": "testExisting_interaction",
|
|
19
|
+
"r__asset_customerKey": "testExisting_asset_message"
|
|
21
20
|
}
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
"status": "Active",
|
|
7
7
|
"createdDate": "2020-09-10T03:29:00",
|
|
8
8
|
"modifiedDate": "2020-09-10T03:29:00",
|
|
9
|
-
"content": {
|
|
10
|
-
"customerKey": "testExisting_asset_message"
|
|
11
|
-
},
|
|
12
9
|
"subscriptions": {
|
|
13
10
|
"dataExtension": "testExisting_dataExtension",
|
|
14
11
|
"autoAddSubscriber": true,
|
|
@@ -18,7 +15,5 @@
|
|
|
18
15
|
"options": {
|
|
19
16
|
"trackLinks": true
|
|
20
17
|
},
|
|
21
|
-
"
|
|
22
|
-
"interactionKey": "testExisting_interaction"
|
|
23
|
-
}
|
|
18
|
+
"r__asset_customerKey": "testExisting_asset_message"
|
|
24
19
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataVerificationDefinitionId": "testExisting_39f6a488-20eb-4ba0-b0b9",
|
|
3
|
+
"notificationEmailAddress": "test@accenture.com",
|
|
4
|
+
"notificationEmailMessage": "",
|
|
5
|
+
"r__dataExtension_CustomerKey": "testExisting_dataExtension",
|
|
6
|
+
"shouldEmailOnFailure": true,
|
|
7
|
+
"shouldStopOnFailure": true,
|
|
8
|
+
"value1": 1,
|
|
9
|
+
"value2": 0,
|
|
10
|
+
"verificationType": "IsEqualTo"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataVerificationDefinitionId": "testNew_39f6a488-20eb-4ba0-b0b9",
|
|
3
|
+
"notificationEmailAddress": "",
|
|
4
|
+
"notificationEmailMessage": "",
|
|
5
|
+
"r__dataExtension_CustomerKey": "testExisting_dataExtension",
|
|
6
|
+
"shouldEmailOnFailure": false,
|
|
7
|
+
"shouldStopOnFailure": false,
|
|
8
|
+
"value1": 2,
|
|
9
|
+
"value2": 0,
|
|
10
|
+
"verificationType": "IsEqualTo"
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"links": {
|
|
3
|
+
"self": "/v1/customobjectdata/token/ea0a44dc-b679-4d7d-8b77-e5d3f106e854/rowset?$page=1"
|
|
4
|
+
},
|
|
5
|
+
"requestToken": "ea0a44dc-b679-4d7d-8b77-e5d3f106e854",
|
|
6
|
+
"tokenExpireDateUtc": "2023-01-26T13:54:59.883",
|
|
7
|
+
"customObjectId": "30400c03-0ec4-ec11-b83c-48df37d1de8b",
|
|
8
|
+
"customObjectKey": "testExisting_dataExtensionShared",
|
|
9
|
+
"pageSize": 1,
|
|
10
|
+
"page": 1,
|
|
11
|
+
"count": 0,
|
|
12
|
+
"top": 0
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"CustomerKey": "testNew_dataExtensionShared",
|
|
3
|
+
"DeleteAtEndOfRetentionPeriod": false,
|
|
4
|
+
"Description": "",
|
|
5
|
+
"Fields": [
|
|
6
|
+
{
|
|
7
|
+
"DefaultValue": "",
|
|
8
|
+
"FieldType": "Text",
|
|
9
|
+
"IsPrimaryKey": false,
|
|
10
|
+
"IsRequired": true,
|
|
11
|
+
"MaxLength": 254,
|
|
12
|
+
"Name": "testField"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"IsSendable": false,
|
|
16
|
+
"IsTestable": false,
|
|
17
|
+
"Name": "testNew_dataExtensionShared",
|
|
18
|
+
"ResetRetentionPeriodOnImport": false,
|
|
19
|
+
"RetainUntil": "",
|
|
20
|
+
"RowBasedRetention": false,
|
|
21
|
+
"r__folder_ContentType": "shared_dataextension",
|
|
22
|
+
"r__folder_Path": "Shared Items/Shared Data Extensions"
|
|
23
|
+
}
|