@salesforce/source-deploy-retrieve 5.0.1 → 5.1.1

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 (154) hide show
  1. package/CHANGELOG.md +52 -46
  2. package/LICENSE.txt +12 -0
  3. package/README.md +2 -2
  4. package/lib/src/client/deployStrategies/auraDeploy.d.ts +2 -2
  5. package/lib/src/client/deployStrategies/auraDeploy.js +98 -108
  6. package/lib/src/client/deployStrategies/auraDeploy.js.map +1 -1
  7. package/lib/src/client/deployStrategies/baseDeploy.d.ts +1 -1
  8. package/lib/src/client/deployStrategies/baseDeploy.js +37 -38
  9. package/lib/src/client/deployStrategies/baseDeploy.js.map +1 -1
  10. package/lib/src/client/deployStrategies/containerDeploy.d.ts +2 -2
  11. package/lib/src/client/deployStrategies/containerDeploy.js +57 -72
  12. package/lib/src/client/deployStrategies/containerDeploy.js.map +1 -1
  13. package/lib/src/client/deployStrategies/index.js +4 -3
  14. package/lib/src/client/deployStrategies/index.js.map +1 -1
  15. package/lib/src/client/deployStrategies/lwcDeploy.d.ts +2 -2
  16. package/lib/src/client/deployStrategies/lwcDeploy.js +98 -109
  17. package/lib/src/client/deployStrategies/lwcDeploy.js.map +1 -1
  18. package/lib/src/client/diagnosticUtil.d.ts +1 -1
  19. package/lib/src/client/diagnosticUtil.js +11 -11
  20. package/lib/src/client/diagnosticUtil.js.map +1 -1
  21. package/lib/src/client/index.d.ts +1 -1
  22. package/lib/src/client/index.js +1 -1
  23. package/lib/src/client/index.js.map +1 -1
  24. package/lib/src/client/metadataApiDeploy.d.ts +4 -4
  25. package/lib/src/client/metadataApiDeploy.js +57 -73
  26. package/lib/src/client/metadataApiDeploy.js.map +1 -1
  27. package/lib/src/client/metadataApiRetrieve.d.ts +2 -2
  28. package/lib/src/client/metadataApiRetrieve.js +86 -106
  29. package/lib/src/client/metadataApiRetrieve.js.map +1 -1
  30. package/lib/src/client/metadataTransfer.d.ts +2 -2
  31. package/lib/src/client/metadataTransfer.js +101 -118
  32. package/lib/src/client/metadataTransfer.js.map +1 -1
  33. package/lib/src/client/retrieveUtil.d.ts +1 -1
  34. package/lib/src/client/retrieveUtil.js +17 -17
  35. package/lib/src/client/retrieveUtil.js.map +1 -1
  36. package/lib/src/client/toolingApi.d.ts +2 -2
  37. package/lib/src/client/toolingApi.js +71 -94
  38. package/lib/src/client/toolingApi.js.map +1 -1
  39. package/lib/src/client/types.js +1 -14
  40. package/lib/src/client/types.js.map +1 -1
  41. package/lib/src/collections/componentSet.d.ts +5 -2
  42. package/lib/src/collections/componentSet.js +77 -91
  43. package/lib/src/collections/componentSet.js.map +1 -1
  44. package/lib/src/collections/index.js +1 -0
  45. package/lib/src/collections/index.js.map +1 -1
  46. package/lib/src/collections/lazyCollection.js +5 -1
  47. package/lib/src/collections/lazyCollection.js.map +1 -1
  48. package/lib/src/common/constants.js +1 -1
  49. package/lib/src/common/constants.js.map +1 -1
  50. package/lib/src/common/index.d.ts +1 -1
  51. package/lib/src/common/index.js +1 -0
  52. package/lib/src/common/index.js.map +1 -1
  53. package/lib/src/convert/convertContext.d.ts +8 -10
  54. package/lib/src/convert/convertContext.js +162 -197
  55. package/lib/src/convert/convertContext.js.map +1 -1
  56. package/lib/src/convert/index.js +1 -0
  57. package/lib/src/convert/index.js.map +1 -1
  58. package/lib/src/convert/metadataConverter.d.ts +2 -17
  59. package/lib/src/convert/metadataConverter.js +106 -111
  60. package/lib/src/convert/metadataConverter.js.map +1 -1
  61. package/lib/src/convert/streams.d.ts +4 -4
  62. package/lib/src/convert/streams.js +111 -147
  63. package/lib/src/convert/streams.js.map +1 -1
  64. package/lib/src/convert/transformers/baseMetadataTransformer.js.map +1 -1
  65. package/lib/src/convert/transformers/decomposedMetadataTransformer.d.ts +2 -1
  66. package/lib/src/convert/transformers/decomposedMetadataTransformer.js +125 -133
  67. package/lib/src/convert/transformers/decomposedMetadataTransformer.js.map +1 -1
  68. package/lib/src/convert/transformers/defaultMetadataTransformer.d.ts +1 -1
  69. package/lib/src/convert/transformers/defaultMetadataTransformer.js +11 -23
  70. package/lib/src/convert/transformers/defaultMetadataTransformer.js.map +1 -1
  71. package/lib/src/convert/transformers/index.js +1 -0
  72. package/lib/src/convert/transformers/index.js.map +1 -1
  73. package/lib/src/convert/transformers/metadataTransformerFactory.js +1 -1
  74. package/lib/src/convert/transformers/metadataTransformerFactory.js.map +1 -1
  75. package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.d.ts +1 -1
  76. package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.js +18 -29
  77. package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.js.map +1 -1
  78. package/lib/src/convert/transformers/staticResourceMetadataTransformer.d.ts +1 -1
  79. package/lib/src/convert/transformers/staticResourceMetadataTransformer.js +78 -132
  80. package/lib/src/convert/transformers/staticResourceMetadataTransformer.js.map +1 -1
  81. package/lib/src/convert/types.d.ts +1 -1
  82. package/lib/src/errors/index.js.map +1 -1
  83. package/lib/src/i18n/i18n.js +3 -2
  84. package/lib/src/i18n/i18n.js.map +1 -1
  85. package/lib/src/i18n/index.js +3 -4
  86. package/lib/src/i18n/index.js.map +1 -1
  87. package/lib/src/i18n/localization.js +4 -4
  88. package/lib/src/i18n/localization.js.map +1 -1
  89. package/lib/src/index.js +1 -4
  90. package/lib/src/index.js.map +1 -1
  91. package/lib/src/registry/index.js +1 -4
  92. package/lib/src/registry/index.js.map +1 -1
  93. package/lib/src/registry/{registry.json → metadataRegistry.json} +0 -0
  94. package/lib/src/registry/nonSupportedTypes.js +5 -7
  95. package/lib/src/registry/nonSupportedTypes.js.map +1 -1
  96. package/lib/src/registry/registry.js +2 -2
  97. package/lib/src/registry/registry.js.map +1 -1
  98. package/lib/src/registry/registryAccess.d.ts +2 -0
  99. package/lib/src/registry/registryAccess.js +3 -1
  100. package/lib/src/registry/registryAccess.js.map +1 -1
  101. package/lib/src/registry/types.js +0 -35
  102. package/lib/src/registry/types.js.map +1 -1
  103. package/lib/src/resolve/adapters/baseSourceAdapter.d.ts +2 -2
  104. package/lib/src/resolve/adapters/baseSourceAdapter.js +20 -16
  105. package/lib/src/resolve/adapters/baseSourceAdapter.js.map +1 -1
  106. package/lib/src/resolve/adapters/bundleSourceAdapter.d.ts +1 -1
  107. package/lib/src/resolve/adapters/bundleSourceAdapter.js +0 -6
  108. package/lib/src/resolve/adapters/bundleSourceAdapter.js.map +1 -1
  109. package/lib/src/resolve/adapters/decomposedSourceAdapter.d.ts +1 -1
  110. package/lib/src/resolve/adapters/decomposedSourceAdapter.js +23 -27
  111. package/lib/src/resolve/adapters/decomposedSourceAdapter.js.map +1 -1
  112. package/lib/src/resolve/adapters/defaultSourceAdapter.d.ts +1 -1
  113. package/lib/src/resolve/adapters/defaultSourceAdapter.js +0 -6
  114. package/lib/src/resolve/adapters/defaultSourceAdapter.js.map +1 -1
  115. package/lib/src/resolve/adapters/index.js +1 -0
  116. package/lib/src/resolve/adapters/index.js.map +1 -1
  117. package/lib/src/resolve/adapters/matchingContentSourceAdapter.d.ts +1 -1
  118. package/lib/src/resolve/adapters/matchingContentSourceAdapter.js +2 -2
  119. package/lib/src/resolve/adapters/matchingContentSourceAdapter.js.map +1 -1
  120. package/lib/src/resolve/adapters/mixedContentSourceAdapter.d.ts +1 -1
  121. package/lib/src/resolve/adapters/mixedContentSourceAdapter.js +6 -6
  122. package/lib/src/resolve/adapters/mixedContentSourceAdapter.js.map +1 -1
  123. package/lib/src/resolve/adapters/sourceAdapterFactory.js +2 -2
  124. package/lib/src/resolve/adapters/sourceAdapterFactory.js.map +1 -1
  125. package/lib/src/resolve/forceIgnore.js +9 -14
  126. package/lib/src/resolve/forceIgnore.js.map +1 -1
  127. package/lib/src/resolve/index.d.ts +1 -1
  128. package/lib/src/resolve/index.js +1 -0
  129. package/lib/src/resolve/index.js.map +1 -1
  130. package/lib/src/resolve/manifestResolver.js +25 -36
  131. package/lib/src/resolve/manifestResolver.js.map +1 -1
  132. package/lib/src/resolve/metadataResolver.d.ts +6 -5
  133. package/lib/src/resolve/metadataResolver.js +18 -23
  134. package/lib/src/resolve/metadataResolver.js.map +1 -1
  135. package/lib/src/resolve/sourceComponent.d.ts +4 -4
  136. package/lib/src/resolve/sourceComponent.js +32 -44
  137. package/lib/src/resolve/sourceComponent.js.map +1 -1
  138. package/lib/src/resolve/treeContainers.d.ts +9 -1
  139. package/lib/src/resolve/treeContainers.js +46 -32
  140. package/lib/src/resolve/treeContainers.js.map +1 -1
  141. package/lib/src/resolve/types.d.ts +2 -2
  142. package/lib/src/utils/collections.js +1 -1
  143. package/lib/src/utils/collections.js.map +1 -1
  144. package/lib/src/utils/fileSystemHandler.js +1 -1
  145. package/lib/src/utils/fileSystemHandler.js.map +1 -1
  146. package/lib/src/utils/index.d.ts +1 -1
  147. package/lib/src/utils/index.js +1 -0
  148. package/lib/src/utils/index.js.map +1 -1
  149. package/lib/src/utils/metadata.js +1 -3
  150. package/lib/src/utils/metadata.js.map +1 -1
  151. package/lib/src/utils/path.d.ts +5 -1
  152. package/lib/src/utils/path.js +8 -4
  153. package/lib/src/utils/path.js.map +1 -1
  154. package/package.json +40 -38
package/CHANGELOG.md CHANGED
@@ -2,12 +2,37 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### [5.0.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.0.0...v5.0.1) (2021-10-21)
5
+ ### [5.1.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.1.0...v5.1.1) (2021-10-28)
6
6
 
7
7
 
8
8
  ### Bug Fixes
9
9
 
10
- * migrate registry.json from fork ([#482](https://github.com/forcedotcom/source-deploy-retrieve/issues/482)) ([cad3700](https://github.com/forcedotcom/source-deploy-retrieve/commit/cad370037ef529a575723f89061d46b9503a1a60))
10
+ * ensure component.content is always assigned ([#485](https://github.com/forcedotcom/source-deploy-retrieve/issues/485)) ([d77f475](https://github.com/forcedotcom/source-deploy-retrieve/commit/d77f47502634206ac59181362b7f17da82ed01e7))
11
+
12
+ ## [5.1.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.0.3...v5.1.0) (2021-10-28)
13
+
14
+
15
+ ### Features
16
+
17
+ * construct virtual tree from array of paths ([#480](https://github.com/forcedotcom/source-deploy-retrieve/issues/480)) ([99954dc](https://github.com/forcedotcom/source-deploy-retrieve/commit/99954dc731d078e99283eed940b98ee63688a024))
18
+
19
+ ### [5.0.3](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.0.2...v5.0.3) (2021-10-28)
20
+
21
+ ### Bug Fixes
22
+
23
+ - keys split into 2 strings, which allows # in fullName ([#474](https://github.com/forcedotcom/source-deploy-retrieve/issues/474)) ([79aec1f](https://github.com/forcedotcom/source-deploy-retrieve/commit/79aec1f7af6db21ee498721f425b122a53f14310))
24
+
25
+ ### [5.0.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.0.1...v5.0.2) (2021-10-28)
26
+
27
+ ### Bug Fixes
28
+
29
+ - doesn't call Object.entries on undefined ([#484](https://github.com/forcedotcom/source-deploy-retrieve/issues/484)) ([089198e](https://github.com/forcedotcom/source-deploy-retrieve/commit/089198e7e1472724951765c2bca7be7003609b64))
30
+
31
+ ### [5.0.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.0.0...v5.0.1) (2021-10-21)
32
+
33
+ ### Bug Fixes
34
+
35
+ - migrate registry.json from fork ([#482](https://github.com/forcedotcom/source-deploy-retrieve/issues/482)) ([cad3700](https://github.com/forcedotcom/source-deploy-retrieve/commit/cad370037ef529a575723f89061d46b9503a1a60))
11
36
 
12
37
  ## [5.0.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.12...v5.0.0) (2021-10-21)
13
38
 
@@ -17,160 +42,139 @@ All notable changes to this project will be documented in this file. See [standa
17
42
 
18
43
  ### [4.5.10](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.9...v4.5.10) (2021-10-13)
19
44
 
20
-
21
45
  ### Bug Fixes
22
46
 
23
- * use matching content file strategy ([#471](https://github.com/forcedotcom/source-deploy-retrieve/issues/471)) ([86b21d6](https://github.com/forcedotcom/source-deploy-retrieve/commit/86b21d69b913058f3b3fc641f6ef7ce9a0c2fe92))
47
+ - use matching content file strategy ([#471](https://github.com/forcedotcom/source-deploy-retrieve/issues/471)) ([86b21d6](https://github.com/forcedotcom/source-deploy-retrieve/commit/86b21d69b913058f3b3fc641f6ef7ce9a0c2fe92))
24
48
 
25
49
  ### [4.5.9](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.8...v4.5.9) (2021-10-12)
26
50
 
27
-
28
51
  ### Bug Fixes
29
52
 
30
- * bump api version to 53.0 ([#476](https://github.com/forcedotcom/source-deploy-retrieve/issues/476)) ([a62aac5](https://github.com/forcedotcom/source-deploy-retrieve/commit/a62aac52037e40f3bfbf0ff516054d8096ecbfed))
53
+ - bump api version to 53.0 ([#476](https://github.com/forcedotcom/source-deploy-retrieve/issues/476)) ([a62aac5](https://github.com/forcedotcom/source-deploy-retrieve/commit/a62aac52037e40f3bfbf0ff516054d8096ecbfed))
31
54
 
32
55
  ### [4.5.8](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.7...v4.5.8) (2021-10-12)
33
56
 
34
57
  ### [4.5.7](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.6...v4.5.7) (2021-10-11)
35
58
 
36
-
37
59
  ### Bug Fixes
38
60
 
39
- * use parent xml to parse child ([#470](https://github.com/forcedotcom/source-deploy-retrieve/issues/470)) ([440d2be](https://github.com/forcedotcom/source-deploy-retrieve/commit/440d2beda3cdd8cc64137ac64d361e230d8f5e30))
61
+ - use parent xml to parse child ([#470](https://github.com/forcedotcom/source-deploy-retrieve/issues/470)) ([440d2be](https://github.com/forcedotcom/source-deploy-retrieve/commit/440d2beda3cdd8cc64137ac64d361e230d8f5e30))
40
62
 
41
63
  ### [4.5.6](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.5...v4.5.6) (2021-10-07)
42
64
 
43
65
  ### [4.5.5](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.4...v4.5.5) (2021-10-06)
44
66
 
45
-
46
67
  ### Bug Fixes
47
68
 
48
- * replace fs with graceful-fs ([#468](https://github.com/forcedotcom/source-deploy-retrieve/issues/468)) ([2b5214c](https://github.com/forcedotcom/source-deploy-retrieve/commit/2b5214c655b94e009e18482f50f121c6217c5e24))
69
+ - replace fs with graceful-fs ([#468](https://github.com/forcedotcom/source-deploy-retrieve/issues/468)) ([2b5214c](https://github.com/forcedotcom/source-deploy-retrieve/commit/2b5214c655b94e009e18482f50f121c6217c5e24))
49
70
 
50
71
  ### [4.5.4](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.3...v4.5.4) (2021-10-06)
51
72
 
52
73
  ### [4.5.3](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.2...v4.5.3) (2021-10-06)
53
74
 
54
-
55
75
  ### Bug Fixes
56
76
 
57
- * set correct status on file responses ([#465](https://github.com/forcedotcom/source-deploy-retrieve/issues/465)) ([3e95508](https://github.com/forcedotcom/source-deploy-retrieve/commit/3e9550846a0528f7c6c5ea02881003a87601fc1f))
77
+ - set correct status on file responses ([#465](https://github.com/forcedotcom/source-deploy-retrieve/issues/465)) ([3e95508](https://github.com/forcedotcom/source-deploy-retrieve/commit/3e9550846a0528f7c6c5ea02881003a87601fc1f))
58
78
 
59
79
  ### [4.5.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.1...v4.5.2) (2021-10-03)
60
80
 
61
-
62
81
  ### Bug Fixes
63
82
 
64
- * support mixed wildcards and names in manifests ([#464](https://github.com/forcedotcom/source-deploy-retrieve/issues/464)) ([58e14ba](https://github.com/forcedotcom/source-deploy-retrieve/commit/58e14ba1b89ec6b63cfc748ef46d39d40ab8f348))
83
+ - support mixed wildcards and names in manifests ([#464](https://github.com/forcedotcom/source-deploy-retrieve/issues/464)) ([58e14ba](https://github.com/forcedotcom/source-deploy-retrieve/commit/58e14ba1b89ec6b63cfc748ef46d39d40ab8f348))
65
84
 
66
85
  ### [4.5.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.0...v4.5.1) (2021-09-30)
67
86
 
68
87
  ## [4.5.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.8...v4.5.0) (2021-09-30)
69
88
 
70
-
71
89
  ### Features
72
90
 
73
- * support epb types ([#463](https://github.com/forcedotcom/source-deploy-retrieve/issues/463)) ([1963483](https://github.com/forcedotcom/source-deploy-retrieve/commit/1963483ca9795437cba09568f1bd0f29d33affd1))
91
+ - support epb types ([#463](https://github.com/forcedotcom/source-deploy-retrieve/issues/463)) ([1963483](https://github.com/forcedotcom/source-deploy-retrieve/commit/1963483ca9795437cba09568f1bd0f29d33affd1))
74
92
 
75
93
  ### [4.4.8](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.7...v4.4.8) (2021-09-30)
76
94
 
77
-
78
95
  ### Bug Fixes
79
96
 
80
- * resolve CustomFieldTranslations properly ([#461](https://github.com/forcedotcom/source-deploy-retrieve/issues/461)) ([cf764bb](https://github.com/forcedotcom/source-deploy-retrieve/commit/cf764bb9ce02844553e6374efa1d538e414ab697))
97
+ - resolve CustomFieldTranslations properly ([#461](https://github.com/forcedotcom/source-deploy-retrieve/issues/461)) ([cf764bb](https://github.com/forcedotcom/source-deploy-retrieve/commit/cf764bb9ce02844553e6374efa1d538e414ab697))
81
98
 
82
99
  ### [4.4.7](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.6...v4.4.7) (2021-09-28)
83
100
 
84
-
85
101
  ### Bug Fixes
86
102
 
87
- * release sfdx-core update ([#462](https://github.com/forcedotcom/source-deploy-retrieve/issues/462)) ([ed44dff](https://github.com/forcedotcom/source-deploy-retrieve/commit/ed44dfff1757eb307f24fcbcdc1efa0e7f197ca7))
103
+ - release sfdx-core update ([#462](https://github.com/forcedotcom/source-deploy-retrieve/issues/462)) ([ed44dff](https://github.com/forcedotcom/source-deploy-retrieve/commit/ed44dfff1757eb307f24fcbcdc1efa0e7f197ca7))
88
104
 
89
105
  ### [4.4.6](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.5...v4.4.6) (2021-09-24)
90
106
 
91
-
92
107
  ### Bug Fixes
93
108
 
94
- * resolve folderContentTypes in mdapi format for windows ([#457](https://github.com/forcedotcom/source-deploy-retrieve/issues/457)) ([25fbec5](https://github.com/forcedotcom/source-deploy-retrieve/commit/25fbec55720e7bab39a9e7e4f0368f44882c15de))
109
+ - resolve folderContentTypes in mdapi format for windows ([#457](https://github.com/forcedotcom/source-deploy-retrieve/issues/457)) ([25fbec5](https://github.com/forcedotcom/source-deploy-retrieve/commit/25fbec55720e7bab39a9e7e4f0368f44882c15de))
95
110
 
96
111
  ### [4.4.5](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.4...v4.4.5) (2021-09-23)
97
112
 
98
-
99
113
  ### Bug Fixes
100
114
 
101
- * adds support for nested InFolder metadata types ([#455](https://github.com/forcedotcom/source-deploy-retrieve/issues/455)) ([b2b90a7](https://github.com/forcedotcom/source-deploy-retrieve/commit/b2b90a7093a60d264776b663f6280ba3a101c237))
115
+ - adds support for nested InFolder metadata types ([#455](https://github.com/forcedotcom/source-deploy-retrieve/issues/455)) ([b2b90a7](https://github.com/forcedotcom/source-deploy-retrieve/commit/b2b90a7093a60d264776b663f6280ba3a101c237))
102
116
 
103
117
  ### [4.4.4](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.3...v4.4.4) (2021-09-20)
104
118
 
105
-
106
119
  ### Bug Fixes
107
120
 
108
- * remove XML_NS_KEY from children when written in metadata format ([#451](https://github.com/forcedotcom/source-deploy-retrieve/issues/451)) ([991ba16](https://github.com/forcedotcom/source-deploy-retrieve/commit/991ba161be918c4475381b657d768d8a88a32521))
121
+ - remove XML_NS_KEY from children when written in metadata format ([#451](https://github.com/forcedotcom/source-deploy-retrieve/issues/451)) ([991ba16](https://github.com/forcedotcom/source-deploy-retrieve/commit/991ba161be918c4475381b657d768d8a88a32521))
109
122
 
110
123
  ### [4.4.3](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.2...v4.4.3) (2021-09-16)
111
124
 
112
-
113
125
  ### Bug Fixes
114
126
 
115
- * better support for non-nested inFolder types ([#452](https://github.com/forcedotcom/source-deploy-retrieve/issues/452)) ([f1237cb](https://github.com/forcedotcom/source-deploy-retrieve/commit/f1237cb887f1a24d121aadac9e5cf5f059d5203f))
127
+ - better support for non-nested inFolder types ([#452](https://github.com/forcedotcom/source-deploy-retrieve/issues/452)) ([f1237cb](https://github.com/forcedotcom/source-deploy-retrieve/commit/f1237cb887f1a24d121aadac9e5cf5f059d5203f))
116
128
 
117
129
  ### [4.4.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.1...v4.4.2) (2021-09-16)
118
130
 
119
-
120
131
  ### Bug Fixes
121
132
 
122
- * **registry.json:** registry update for ManagedTopics ([#453](https://github.com/forcedotcom/source-deploy-retrieve/issues/453)) ([70f7ca8](https://github.com/forcedotcom/source-deploy-retrieve/commit/70f7ca82491b900836216bad86e99cc976044635))
133
+ - **registry.json:** registry update for ManagedTopics ([#453](https://github.com/forcedotcom/source-deploy-retrieve/issues/453)) ([70f7ca8](https://github.com/forcedotcom/source-deploy-retrieve/commit/70f7ca82491b900836216bad86e99cc976044635))
123
134
 
124
135
  ### [4.4.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.0...v4.4.1) (2021-09-09)
125
136
 
126
-
127
137
  ### Bug Fixes
128
138
 
129
- * fix functions to function suffix ([#449](https://github.com/forcedotcom/source-deploy-retrieve/issues/449)) ([7c2ba22](https://github.com/forcedotcom/source-deploy-retrieve/commit/7c2ba22cd47c89e11a480d7b9d8ac7c909283427))
139
+ - fix functions to function suffix ([#449](https://github.com/forcedotcom/source-deploy-retrieve/issues/449)) ([7c2ba22](https://github.com/forcedotcom/source-deploy-retrieve/commit/7c2ba22cd47c89e11a480d7b9d8ac7c909283427))
130
140
 
131
141
  ## [4.4.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.5...v4.4.0) (2021-09-09)
132
142
 
133
-
134
143
  ### Features
135
144
 
136
- * add required child type entries to manifest ([#446](https://github.com/forcedotcom/source-deploy-retrieve/issues/446)) ([c99198b](https://github.com/forcedotcom/source-deploy-retrieve/commit/c99198b37cd752f10b7c12e72ccf1304464cfccf))
137
-
145
+ - add required child type entries to manifest ([#446](https://github.com/forcedotcom/source-deploy-retrieve/issues/446)) ([c99198b](https://github.com/forcedotcom/source-deploy-retrieve/commit/c99198b37cd752f10b7c12e72ccf1304464cfccf))
138
146
 
139
147
  ### Bug Fixes
140
148
 
141
- * node 16 error parsing issue ([#448](https://github.com/forcedotcom/source-deploy-retrieve/issues/448)) ([54e1fdd](https://github.com/forcedotcom/source-deploy-retrieve/commit/54e1fddc5fb26675aad69c27036b9cb7ac7e978c))
149
+ - node 16 error parsing issue ([#448](https://github.com/forcedotcom/source-deploy-retrieve/issues/448)) ([54e1fdd](https://github.com/forcedotcom/source-deploy-retrieve/commit/54e1fddc5fb26675aad69c27036b9cb7ac7e978c))
142
150
 
143
151
  ### [4.3.5](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.4...v4.3.5) (2021-09-02)
144
152
 
145
-
146
153
  ### Bug Fixes
147
154
 
148
- * force RestrictionRule to a strict directory ([#447](https://github.com/forcedotcom/source-deploy-retrieve/issues/447)) ([00b5315](https://github.com/forcedotcom/source-deploy-retrieve/commit/00b531559774036df5d45baf1d0da9e83c3262e9))
155
+ - force RestrictionRule to a strict directory ([#447](https://github.com/forcedotcom/source-deploy-retrieve/issues/447)) ([00b5315](https://github.com/forcedotcom/source-deploy-retrieve/commit/00b531559774036df5d45baf1d0da9e83c3262e9))
149
156
 
150
157
  ### [4.3.4](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.3...v4.3.4) (2021-09-02)
151
158
 
152
159
  ### [4.3.3](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.2...v4.3.3) (2021-08-31)
153
160
 
154
-
155
161
  ### Bug Fixes
156
162
 
157
- * Wr/aura under object main ([#443](https://github.com/forcedotcom/source-deploy-retrieve/issues/443)) ([cc5e471](https://github.com/forcedotcom/source-deploy-retrieve/commit/cc5e471b347ca1c2ed764de9c1db21d29d7af01e))
163
+ - Wr/aura under object main ([#443](https://github.com/forcedotcom/source-deploy-retrieve/issues/443)) ([cc5e471](https://github.com/forcedotcom/source-deploy-retrieve/commit/cc5e471b347ca1c2ed764de9c1db21d29d7af01e))
158
164
 
159
165
  ### [4.3.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.1...v4.3.2) (2021-08-26)
160
166
 
161
167
  ### [4.3.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.0...v4.3.1) (2021-08-25)
162
168
 
163
-
164
169
  ### Bug Fixes
165
170
 
166
- * add children to manifest during convert ([#442](https://github.com/forcedotcom/source-deploy-retrieve/issues/442)) ([3017e9d](https://github.com/forcedotcom/source-deploy-retrieve/commit/3017e9d45c6f0bbbb9adefaa455ce9775128e2bf))
171
+ - add children to manifest during convert ([#442](https://github.com/forcedotcom/source-deploy-retrieve/issues/442)) ([3017e9d](https://github.com/forcedotcom/source-deploy-retrieve/commit/3017e9d45c6f0bbbb9adefaa455ce9775128e2bf))
167
172
 
168
173
  ## [4.3.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.2.0...v4.3.0) (2021-08-25)
169
174
 
170
-
171
175
  ### Features
172
176
 
173
- * add InboundCertificate to metadata registry ([#441](https://github.com/forcedotcom/source-deploy-retrieve/issues/441)) ([d833485](https://github.com/forcedotcom/source-deploy-retrieve/commit/d833485b5e9aeebfb9dd5baf89fab95f4e6032d8))
177
+ - add InboundCertificate to metadata registry ([#441](https://github.com/forcedotcom/source-deploy-retrieve/issues/441)) ([d833485](https://github.com/forcedotcom/source-deploy-retrieve/commit/d833485b5e9aeebfb9dd5baf89fab95f4e6032d8))
174
178
 
175
179
  ## [4.2.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.1.1...v4.2.0) (2021-08-25)
176
180
 
@@ -390,7 +394,7 @@ All notable changes to this project will be documented in this file. See [standa
390
394
 
391
395
  - Fix for recompostion failure when the parent xml did not exist ([PR #245](https://github.com/forcedotcom/source-deploy-retrieve/pull/245))
392
396
 
393
- - Fix conversion failure to source format for StaticResource component with `octet-stream` content type ([PR #244](https://github.com/forcedotcom/source-deploy-retrieve/pull/244))
397
+ - Fix conversion failure to source format for StaticResource component with `octet-stream` content type ([PR #244](https://github.com/forcedotcom/source-deploy-retrieve/pull/244))
394
398
 
395
399
  - Fix timeout during metadata api deploy and retrieve operations ([PR #236](https://github.com/forcedotcom/source-deploy-retrieve/pull/236))
396
400
 
@@ -413,11 +417,13 @@ All notable changes to this project will be documented in this file. See [standa
413
417
  - Fix issue setting up connection when deploying or retrieving ComponentSet ([PR #226](https://github.com/forcedotcom/source-deploy-retrieve/pull/226))
414
418
 
415
419
  # 1.1.14 - December 7, 2020
420
+
416
421
  ## Fixed
417
422
 
418
423
  - Fix issue with deploying individual child components ([#220](https://github.com/forcedotcom/source-deploy-retrieve/pull/220))
419
424
 
420
425
  # 1.1.13 - December 3, 2020
426
+
421
427
  ## Fixed
422
428
 
423
429
  - Add non-source components when initializing ComponentSets with resolve option ([#217](https://github.com/forcedotcom/source-deploy-retrieve/pull/217))
@@ -458,7 +464,7 @@ All notable changes to this project will be documented in this file. See [standa
458
464
 
459
465
  ## Added
460
466
 
461
- - Move `RegistryAccess` functionality to new `MetadataResolver` class ([PR #194](https://github.com/forcedotcom/source-deploy-retrieve/pull/194), [PR #199](https://github.com/forcedotcom/source-deploy-retrieve/pull/199))
467
+ - Move `RegistryAccess` functionality to new `MetadataResolver` class ([PR #194](https://github.com/forcedotcom/source-deploy-retrieve/pull/194), [PR #199](https://github.com/forcedotcom/source-deploy-retrieve/pull/199))
462
468
 
463
469
  # 1.1.9 - October 28, 2020
464
470
 
package/LICENSE.txt ADDED
@@ -0,0 +1,12 @@
1
+ Copyright (c) 2018, Salesforce.com, Inc.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+
8
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+
10
+ * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -16,7 +16,7 @@ A JavaScript toolkit for working with Salesforce metadata. Built to support the
16
16
  - Convert source files between [SFDX File Formats](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_source_file_format.htm)
17
17
  - Generate metadata packages with the option to automatically create a zip file
18
18
  - Deploy and retrieve metadata with an org
19
- - An [index](./src/registry/registry.json) to reference available metadata types.
19
+ - An [index](./src/registry/metadataRegistry.json) to reference available metadata types.
20
20
  - Utilize promises with `async/await` syntax
21
21
 
22
22
  ## Usage
@@ -69,4 +69,4 @@ See [developing.md](./contributing/developing.md) for details on building and te
69
69
 
70
70
  ## Publishing
71
71
 
72
- SDR publishes when changes are merged into `main`. The version is bumped per the rules of the release orb and [standard-version](https://github.com/conventional-changelog/standard-version).
72
+ SDR publishes when changes are merged into `main`. The version is bumped per the rules of the release orb and [standard-version](https://github.com/conventional-changelog/standard-version).
@@ -1,6 +1,6 @@
1
- import { ComponentDeployment, SourceDeployResult, AuraDefinition } from '../types';
2
- import { BaseDeploy } from './baseDeploy';
1
+ import { AuraDefinition, ComponentDeployment, SourceDeployResult } from '../types';
3
2
  import { SourceComponent } from '../../resolve';
3
+ import { BaseDeploy } from './baseDeploy';
4
4
  export declare class AuraDeploy extends BaseDeploy {
5
5
  private static readonly AURA_DEF_TYPES;
6
6
  deploy(component: SourceComponent, namespace: string): Promise<SourceDeployResult>;
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.AuraDeploy = void 0;
13
4
  /*
@@ -20,110 +11,111 @@ const graceful_fs_1 = require("graceful-fs");
20
11
  const utils_1 = require("../../utils");
21
12
  const types_1 = require("../types");
22
13
  const toolingApi_1 = require("../toolingApi");
23
- const baseDeploy_1 = require("./baseDeploy");
24
14
  const diagnosticUtil_1 = require("../diagnosticUtil");
15
+ const baseDeploy_1 = require("./baseDeploy");
25
16
  class AuraDeploy extends baseDeploy_1.BaseDeploy {
26
- deploy(component, namespace) {
27
- return __awaiter(this, void 0, void 0, function* () {
28
- this.component = component;
29
- this.namespace = namespace;
30
- const auraDefinitions = yield this.buildDefList();
31
- const componentDeployment = yield this.upsert(auraDefinitions);
32
- let status = "Completed" /* Completed */;
33
- if (componentDeployment.diagnostics.length > 0) {
34
- status =
35
- componentDeployment.status !== types_1.ComponentStatus.Failed
36
- ? "CompletedPartial" /* CompletedPartial */
37
- : "Failed" /* Failed */;
17
+ async deploy(component, namespace) {
18
+ this.component = component;
19
+ this.namespace = namespace;
20
+ const auraDefinitions = await this.buildDefList();
21
+ const componentDeployment = await this.upsert(auraDefinitions);
22
+ let status = "Completed" /* Completed */;
23
+ if (componentDeployment.diagnostics.length > 0) {
24
+ status =
25
+ componentDeployment.status !== types_1.ComponentStatus.Failed
26
+ ? "CompletedPartial" /* CompletedPartial */
27
+ : "Failed" /* Failed */;
28
+ }
29
+ return {
30
+ id: undefined,
31
+ status,
32
+ success: status === "Completed" /* Completed */,
33
+ components: [componentDeployment],
34
+ };
35
+ }
36
+ async buildDefList() {
37
+ const sourceFiles = this.component.walkContent();
38
+ const auraDefinitions = [];
39
+ const existingDefinitions = await this.findAuraDefinitions();
40
+ const auraBundle = existingDefinitions[0]
41
+ ? await this.upsertBundle(existingDefinitions[0].AuraDefinitionBundleId)
42
+ : await this.upsertBundle();
43
+ const bundleId = auraBundle.id;
44
+ sourceFiles.forEach((sourceFile) => {
45
+ const source = (0, graceful_fs_1.readFileSync)(sourceFile, 'utf8');
46
+ const suffix = (0, utils_1.extName)(sourceFile);
47
+ const defType = this.getAuraDefType(sourceFile, suffix);
48
+ const format = this.getAuraFormat(suffix);
49
+ let match;
50
+ if (existingDefinitions.length > 0) {
51
+ match = existingDefinitions.find((definition) => definition.DefType === defType);
38
52
  }
39
- return {
40
- id: undefined,
41
- status,
42
- success: status === "Completed" /* Completed */,
43
- components: [componentDeployment],
53
+ // If definition exists in org, assign the matching Id
54
+ // else, assign the id of the bundle it's associated with
55
+ const auraDef = {
56
+ FilePath: sourceFile,
57
+ DefType: defType,
58
+ Source: source,
59
+ Format: format,
60
+ ...(match ? { Id: match.Id } : { AuraDefinitionBundleId: bundleId }),
44
61
  };
62
+ // This is to ensure we return the correct project path when reporting errors
63
+ // must be the file associated with the specified aura type
64
+ // eslint-disable-next-line no-unused-expressions
65
+ AuraDeploy.AURA_DEF_TYPES.includes(auraDef.DefType)
66
+ ? auraDefinitions.unshift(auraDef)
67
+ : auraDefinitions.push(auraDef);
45
68
  });
69
+ return auraDefinitions;
46
70
  }
47
- buildDefList() {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- const sourceFiles = this.component.walkContent();
50
- const auraDefinitions = [];
51
- const existingDefinitions = yield this.findAuraDefinitions();
52
- const auraBundle = existingDefinitions[0]
53
- ? yield this.upsertBundle(existingDefinitions[0].AuraDefinitionBundleId)
54
- : yield this.upsertBundle();
55
- const bundleId = auraBundle.id;
56
- sourceFiles.forEach((sourceFile) => __awaiter(this, void 0, void 0, function* () {
57
- const source = graceful_fs_1.readFileSync(sourceFile, 'utf8');
58
- const suffix = utils_1.extName(sourceFile);
59
- const defType = this.getAuraDefType(sourceFile, suffix);
60
- const format = this.getAuraFormat(suffix);
61
- let match;
62
- if (existingDefinitions.length > 0) {
63
- match = existingDefinitions.find((definition) => definition.DefType === defType);
71
+ async upsert(auraDefinitions) {
72
+ const type = this.component.type.name;
73
+ const diagnosticUtil = new diagnosticUtil_1.DiagnosticUtil('tooling');
74
+ const deployment = {
75
+ status: types_1.ComponentStatus.Unchanged,
76
+ component: this.component,
77
+ diagnostics: [],
78
+ };
79
+ let partialSuccess = false;
80
+ let allCreate = true;
81
+ const deployPromises = auraDefinitions.map(async (definition) => {
82
+ try {
83
+ if (definition.Id) {
84
+ const formattedDef = {
85
+ Source: definition.Source,
86
+ Id: definition.Id,
87
+ };
88
+ await this.connection.tooling.update(toolingApi_1.deployTypes.get(type), formattedDef);
89
+ allCreate = false;
90
+ partialSuccess = true;
64
91
  }
65
- // If definition exists in org, assign the matching Id
66
- // else, assign the id of the bundle it's associated with
67
- const auraDef = Object.assign({ FilePath: sourceFile, DefType: defType, Source: source, Format: format }, (match ? { Id: match.Id } : { AuraDefinitionBundleId: bundleId }));
68
- // This is to ensure we return the correct project path when reporting errors
69
- // must be the file associated with the specified aura type
70
- AuraDeploy.AURA_DEF_TYPES.includes(auraDef.DefType)
71
- ? auraDefinitions.unshift(auraDef)
72
- : auraDefinitions.push(auraDef);
73
- }));
74
- return auraDefinitions;
75
- });
76
- }
77
- upsert(auraDefinitions) {
78
- return __awaiter(this, void 0, void 0, function* () {
79
- const type = this.component.type.name;
80
- const diagnosticUtil = new diagnosticUtil_1.DiagnosticUtil('tooling');
81
- const deployment = {
82
- status: types_1.ComponentStatus.Unchanged,
83
- component: this.component,
84
- diagnostics: [],
85
- };
86
- let partialSuccess = false;
87
- let allCreate = true;
88
- const deployPromises = auraDefinitions.map((definition) => __awaiter(this, void 0, void 0, function* () {
89
- try {
90
- if (definition.Id) {
91
- const formattedDef = {
92
- Source: definition.Source,
93
- Id: definition.Id,
94
- };
95
- yield this.connection.tooling.update(toolingApi_1.deployTypes.get(type), formattedDef);
96
- allCreate = false;
97
- partialSuccess = true;
98
- }
99
- else {
100
- const formattedDef = {
101
- AuraDefinitionBundleId: definition.AuraDefinitionBundleId,
102
- DefType: definition.DefType,
103
- Format: definition.Format,
104
- Source: definition.Source,
105
- };
106
- yield this.toolingCreate(toolingApi_1.deployTypes.get(type), formattedDef);
107
- partialSuccess = true;
108
- }
92
+ else {
93
+ const formattedDef = {
94
+ AuraDefinitionBundleId: definition.AuraDefinitionBundleId,
95
+ DefType: definition.DefType,
96
+ Format: definition.Format,
97
+ Source: definition.Source,
98
+ };
99
+ await this.toolingCreate(toolingApi_1.deployTypes.get(type), formattedDef);
100
+ partialSuccess = true;
109
101
  }
110
- catch (e) {
111
- const diagnostic = diagnosticUtil.parseDeployDiagnostic(this.component, e.message);
112
- deployment.diagnostics.push(diagnostic);
113
- }
114
- }));
115
- yield Promise.all(deployPromises);
116
- if (deployment.diagnostics.length > 0) {
117
- deployment.status = partialSuccess ? types_1.ComponentStatus.Changed : types_1.ComponentStatus.Failed;
118
- }
119
- else if (allCreate) {
120
- deployment.status = types_1.ComponentStatus.Created;
121
102
  }
122
- else {
123
- deployment.status = types_1.ComponentStatus.Changed;
103
+ catch (e) {
104
+ const diagnostic = diagnosticUtil.parseDeployDiagnostic(this.component, e.message);
105
+ deployment.diagnostics.push(diagnostic);
124
106
  }
125
- return deployment;
126
107
  });
108
+ await Promise.all(deployPromises);
109
+ if (deployment.diagnostics.length > 0) {
110
+ deployment.status = partialSuccess ? types_1.ComponentStatus.Changed : types_1.ComponentStatus.Failed;
111
+ }
112
+ else if (allCreate) {
113
+ deployment.status = types_1.ComponentStatus.Created;
114
+ }
115
+ else {
116
+ deployment.status = types_1.ComponentStatus.Changed;
117
+ }
118
+ return deployment;
127
119
  }
128
120
  getAuraFormat(suffix) {
129
121
  switch (suffix) {
@@ -138,7 +130,7 @@ class AuraDeploy extends baseDeploy_1.BaseDeploy {
138
130
  }
139
131
  }
140
132
  getAuraDefType(sourcePath, suffix) {
141
- const fileName = utils_1.baseName(sourcePath);
133
+ const fileName = (0, utils_1.baseName)(sourcePath);
142
134
  switch (suffix) {
143
135
  case 'app':
144
136
  return 'APPLICATION';
@@ -173,11 +165,9 @@ class AuraDeploy extends baseDeploy_1.BaseDeploy {
173
165
  return '';
174
166
  }
175
167
  }
176
- findAuraDefinitions() {
177
- return __awaiter(this, void 0, void 0, function* () {
178
- const auraDefResult = yield this.connection.tooling.query(`Select AuraDefinitionBundleId, Id, Format, Source, DefType from AuraDefinition where AuraDefinitionBundle.DeveloperName = '${this.component.fullName}' and AuraDefinitionBundle.NamespacePrefix = '${this.namespace}'`);
179
- return auraDefResult.records;
180
- });
168
+ async findAuraDefinitions() {
169
+ const auraDefResult = await this.connection.tooling.query(`Select AuraDefinitionBundleId, Id, Format, Source, DefType from AuraDefinition where AuraDefinitionBundle.DeveloperName = '${this.component.fullName}' and AuraDefinitionBundle.NamespacePrefix = '${this.namespace}'`);
170
+ return auraDefResult.records;
181
171
  }
182
172
  }
183
173
  exports.AuraDeploy = AuraDeploy;
@@ -1 +1 @@
1
- {"version":3,"file":"auraDeploy.js","sourceRoot":"","sources":["../../../../src/client/deployStrategies/auraDeploy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;GAKG;AACH,6CAA2C;AAC3C,uCAAgD;AAEhD,oCAMkB;AAClB,8CAA4C;AAC5C,6CAA0C;AAE1C,sDAAmD;AAEnD,MAAa,UAAW,SAAQ,uBAAU;IAG3B,MAAM,CAAC,SAA0B,EAAE,SAAiB;;YAC/D,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC3B,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;YAClD,MAAM,mBAAmB,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;YAC/D,IAAI,MAAM,8BAAgC,CAAC;YAC3C,IAAI,mBAAmB,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC9C,MAAM;oBACJ,mBAAmB,CAAC,MAAM,KAAK,uBAAe,CAAC,MAAM;wBACnD,CAAC;wBACD,CAAC,sBAA2B,CAAC;aAClC;YACD,OAAO;gBACL,EAAE,EAAE,SAAS;gBACb,MAAM;gBACN,OAAO,EAAE,MAAM,gCAAkC;gBACjD,UAAU,EAAE,CAAC,mBAAmB,CAAC;aAClC,CAAC;QACJ,CAAC;KAAA;IAEY,YAAY;;YACvB,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;YACjD,MAAM,eAAe,GAAqB,EAAE,CAAC;YAE7C,MAAM,mBAAmB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MAAM;gBACT,OAAO,WAAW,CAAC;YACrB;gBACE,OAAO,EAAE,CAAC;SACb;IACH,CAAC;IAEO,KAAK,CAAC,mBAAmB;QAC/B,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CACvD,8HAA8H,IAAI,CAAC,SAAS,CAAC,QAAQ,iDAAiD,IAAI,CAAC,SAAS,GAAG,CACxN,CAAC;QACF,OAAO,aAAa,CAAC,OAA2B,CAAC;IACnD,CAAC;;AAxKH,gCAyKC;AAxKyB,yBAAc,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC"}
@@ -14,7 +14,7 @@ export declare abstract class BaseDeploy {
14
14
  apiVersion: string;
15
15
  };
16
16
  upsertBundle(Id?: string): Promise<ToolingCreateResult>;
17
- protected toolingCreate(type: string, record: object): Promise<ToolingCreateResult>;
17
+ protected toolingCreate(type: string, record: Record<string, unknown>): Promise<ToolingCreateResult>;
18
18
  protected getFormattedPaths(filepath: string): string[];
19
19
  abstract deploy(component: SourceComponent, namespace: string): Promise<SourceDeployResult>;
20
20
  }