mcdev 4.1.11 → 4.2.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.
Files changed (120) hide show
  1. package/.eslintrc.json +1 -1
  2. package/.github/ISSUE_TEMPLATE/bug.yml +2 -0
  3. package/.github/PULL_REQUEST_TEMPLATE.md +2 -3
  4. package/.nycrc.json +5 -0
  5. package/README.md +34 -1528
  6. package/boilerplate/config.json +2 -6
  7. package/boilerplate/files/.vscode/extensions.json +1 -0
  8. package/boilerplate/files/.vscode/settings.json +13 -9
  9. package/boilerplate/forcedUpdates.json +4 -0
  10. package/docs/dist/documentation.md +434 -29
  11. package/lib/Deployer.js +10 -8
  12. package/lib/MetadataTypeDefinitions.js +3 -0
  13. package/lib/MetadataTypeInfo.js +3 -0
  14. package/lib/Retriever.js +16 -8
  15. package/lib/cli.js +1 -0
  16. package/lib/index.js +5 -5
  17. package/lib/metadataTypes/AccountUser.js +2 -2
  18. package/lib/metadataTypes/Asset.js +45 -35
  19. package/lib/metadataTypes/Automation.js +4 -4
  20. package/lib/metadataTypes/DataExtension.js +14 -8
  21. package/lib/metadataTypes/DataExtensionField.js +44 -9
  22. package/lib/metadataTypes/Discovery.js +5 -5
  23. package/lib/metadataTypes/Folder.js +30 -6
  24. package/lib/metadataTypes/List.js +115 -17
  25. package/lib/metadataTypes/MetadataType.js +73 -40
  26. package/lib/metadataTypes/Query.js +2 -2
  27. package/lib/metadataTypes/Script.js +2 -2
  28. package/lib/metadataTypes/TransactionalEmail.js +163 -0
  29. package/lib/metadataTypes/TransactionalMessage.js +127 -0
  30. package/lib/metadataTypes/TransactionalPush.js +77 -0
  31. package/lib/metadataTypes/TransactionalSMS.js +354 -0
  32. package/lib/metadataTypes/TriggeredSendDefinition.js +11 -9
  33. package/lib/metadataTypes/definitions/TransactionalEmail.definition.js +145 -0
  34. package/lib/metadataTypes/definitions/TransactionalPush.definition.js +109 -0
  35. package/lib/metadataTypes/definitions/TransactionalSMS.definition.js +103 -0
  36. package/lib/metadataTypes/definitions/TriggeredSendDefinition.definition.js +36 -36
  37. package/lib/util/auth.js +2 -2
  38. package/lib/util/businessUnit.js +1 -1
  39. package/lib/util/cli.js +19 -20
  40. package/lib/util/config.js +10 -10
  41. package/lib/util/devops.js +4 -4
  42. package/lib/util/init.config.js +7 -7
  43. package/lib/util/init.git.js +12 -24
  44. package/lib/util/init.js +65 -1
  45. package/lib/util/util.js +25 -14
  46. package/package.json +19 -12
  47. package/test/dataExtension.test.js +36 -19
  48. package/test/mockRoot/.mcdevrc.json +13 -2
  49. package/test/mockRoot/deploy/testInstance/testBU/dataExtension/childBU_dataextension_test.dataExtension-meta.json +27 -7
  50. package/test/mockRoot/deploy/testInstance/testBU/query/testExistingQuery.query-meta.json +1 -1
  51. package/test/mockRoot/deploy/testInstance/testBU/query/testExistingQuery.query-meta.sql +3 -1
  52. package/test/mockRoot/deploy/testInstance/testBU/query/{testQuery.query-meta.json → testNewQuery.query-meta.json} +3 -3
  53. package/test/mockRoot/deploy/testInstance/testBU/query/{testQuery.query-meta.sql → testNewQuery.query-meta.sql} +0 -0
  54. package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testExisting_temail.transactionalEmail-meta.json +24 -0
  55. package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testNew_temail.transactionalEmail-meta.json +24 -0
  56. package/test/mockRoot/deploy/testInstance/testBU/transactionalPush/testExisting_tpush.transactionalPush-meta.json +18 -0
  57. package/test/mockRoot/deploy/testInstance/testBU/transactionalPush/testNew_tpush.transactionalPush-meta.json +18 -0
  58. package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testExisting_tsms.transactionalSMS-meta.amp +4 -0
  59. package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testExisting_tsms.transactionalSMS-meta.json +15 -0
  60. package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testNew_tsms.transactionalSMS-meta.amp +4 -0
  61. package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testNew_tsms.transactionalSMS-meta.json +15 -0
  62. package/test/query.test.js +57 -23
  63. package/test/resources/1111111/businessUnit/retrieve-response.xml +33 -0
  64. package/test/resources/1111111/list/retrieve-response.xml +39 -0
  65. package/test/resources/9999999/asset/v1/content/assets/query/post-response.json +72 -0
  66. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/patch-response.json +2 -2
  67. package/test/resources/9999999/automation/v1/queries/get-response.json +2 -2
  68. package/test/resources/9999999/automation/v1/queries/post-response.json +3 -3
  69. package/test/resources/9999999/dataExtension/build-expected.json +2 -2
  70. package/test/resources/9999999/dataFolder/retrieve-response.xml +95 -2
  71. package/test/resources/9999999/interaction/v1/interactions/get-response.json +296 -0
  72. package/test/resources/9999999/legacy/v1/beta/mobile/code/get-response.json +32 -0
  73. package/test/resources/9999999/legacy/v1/beta/mobile/keyword/get-response.json +46 -0
  74. package/test/resources/9999999/list/retrieve-response.xml +78 -0
  75. package/test/resources/9999999/messaging/v1/email/definitions/get-response.json +15 -0
  76. package/test/resources/9999999/messaging/v1/email/definitions/post-response.json +19 -0
  77. package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/get-response.json +26 -0
  78. package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/patch-response.json +26 -0
  79. package/test/resources/9999999/messaging/v1/push/definitions/get-response.json +15 -0
  80. package/test/resources/9999999/messaging/v1/push/definitions/post-response.json +13 -0
  81. package/test/resources/9999999/messaging/v1/push/definitions/testExisting_tpush/get-response.json +13 -0
  82. package/test/resources/9999999/messaging/v1/push/definitions/testExisting_tpush/patch-response.json +13 -0
  83. package/test/resources/9999999/messaging/v1/sms/definitions/get-response.json +15 -0
  84. package/test/resources/9999999/messaging/v1/sms/definitions/post-response.json +17 -0
  85. package/test/resources/9999999/messaging/v1/sms/definitions/testExisting_tsms/get-response.json +18 -0
  86. package/test/resources/9999999/messaging/v1/sms/definitions/testExisting_tsms/patch-response.json +18 -0
  87. package/test/resources/9999999/query/build-expected.json +2 -2
  88. package/test/resources/9999999/query/build-expected.sql +6 -0
  89. package/test/resources/9999999/query/get-expected.json +1 -1
  90. package/test/resources/9999999/query/get-expected.sql +6 -0
  91. package/test/resources/9999999/query/patch-expected.json +1 -1
  92. package/test/resources/9999999/query/patch-expected.sql +6 -0
  93. package/test/resources/9999999/query/post-expected.json +3 -3
  94. package/test/resources/9999999/query/post-expected.sql +4 -0
  95. package/test/resources/9999999/query/template-expected.json +1 -1
  96. package/test/resources/9999999/query/template-expected.sql +6 -0
  97. package/test/resources/9999999/transactionalEmail/build-expected.json +22 -0
  98. package/test/resources/9999999/transactionalEmail/get-expected.json +24 -0
  99. package/test/resources/9999999/transactionalEmail/patch-expected.json +24 -0
  100. package/test/resources/9999999/transactionalEmail/post-expected.json +24 -0
  101. package/test/resources/9999999/transactionalEmail/template-expected.json +22 -0
  102. package/test/resources/9999999/transactionalPush/build-expected.json +8 -0
  103. package/test/resources/9999999/transactionalPush/get-expected.json +11 -0
  104. package/test/resources/9999999/transactionalPush/patch-expected.json +16 -0
  105. package/test/resources/9999999/transactionalPush/post-expected.json +16 -0
  106. package/test/resources/9999999/transactionalPush/template-expected.json +8 -0
  107. package/test/resources/9999999/transactionalSMS/build-expected.amp +4 -0
  108. package/test/resources/9999999/transactionalSMS/build-expected.json +13 -0
  109. package/test/resources/9999999/transactionalSMS/get-expected.amp +4 -0
  110. package/test/resources/9999999/transactionalSMS/get-expected.json +15 -0
  111. package/test/resources/9999999/transactionalSMS/patch-expected.amp +4 -0
  112. package/test/resources/9999999/transactionalSMS/patch-expected.json +15 -0
  113. package/test/resources/9999999/transactionalSMS/post-expected.amp +4 -0
  114. package/test/resources/9999999/transactionalSMS/post-expected.json +15 -0
  115. package/test/resources/9999999/transactionalSMS/template-expected.amp +4 -0
  116. package/test/resources/9999999/transactionalSMS/template-expected.json +13 -0
  117. package/test/transactionalEmail.test.js +120 -0
  118. package/test/transactionalPush.test.js +120 -0
  119. package/test/transactionalSMS.test.js +149 -0
  120. package/test/utils.js +57 -8
package/.eslintrc.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "SharedArrayBuffer": "readonly"
18
18
  },
19
19
  "parserOptions": {
20
- "ecmaVersion": 2020,
20
+ "ecmaVersion": 2022,
21
21
  "sourceType": "module"
22
22
  },
23
23
  "root": true,
@@ -39,6 +39,8 @@ body:
39
39
  label: Version
40
40
  description: What version of our software are you running? (mcdev --version)
41
41
  options:
42
+ - 4.2.0
43
+ - 4.1.12
42
44
  - 4.1.11
43
45
  - 4.1.10
44
46
  - 4.1.9
@@ -25,8 +25,7 @@ _Please delete options that are not relevant._
25
25
  ## Checklist
26
26
 
27
27
  - [ ] I have performed a self-review of my own code
28
- - [ ] ran `npm run test` to with 0 tests failing
29
28
  - [ ] I have commented my code, particularly in hard-to-understand areas
29
+ - [ ] ran `npm run test` to with 0 tests failing
30
30
  - [ ] ESLint & Prettier are not outputting errors or warnings
31
- - [ ] README.md updated (if applicable)
32
- - [ ] Release Notes updated
31
+ - [ ] Wiki updated (if applicable)
package/.nycrc.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "all": true,
3
+ "include": ["lib/**"],
4
+ "exclude": ["lib/metadataTypes/definitions/*.js", "test/**", "types/**"]
5
+ }