@hcl-software/dxclient 221.0.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 (486) hide show
  1. package/LICENSE +62 -0
  2. package/README.txt +3143 -0
  3. package/bin/dxclient +3 -0
  4. package/dist/LICENSE +62 -0
  5. package/dist/configuration/config.json +52 -0
  6. package/dist/configuration/versionConfigMap.json +34 -0
  7. package/dist/package.json +149 -0
  8. package/dist/packages/admintasks/package-lock.json +21843 -0
  9. package/dist/packages/admintasks/package.json +56 -0
  10. package/dist/packages/admintasks/src/commands/createCredentialVault.d.ts +5 -0
  11. package/dist/packages/admintasks/src/commands/createCredentialVault.js +100 -0
  12. package/dist/packages/admintasks/src/commands/createCredentialVault.js.map +1 -0
  13. package/dist/packages/admintasks/src/commands/createSyndicationRelation.d.ts +4 -0
  14. package/dist/packages/admintasks/src/commands/createSyndicationRelation.js +70 -0
  15. package/dist/packages/admintasks/src/commands/createSyndicationRelation.js.map +1 -0
  16. package/dist/packages/admintasks/src/commands/createVirtualPortal.d.ts +4 -0
  17. package/dist/packages/admintasks/src/commands/createVirtualPortal.js +63 -0
  18. package/dist/packages/admintasks/src/commands/createVirtualPortal.js.map +1 -0
  19. package/dist/packages/admintasks/src/commands/differentialReport.d.ts +6 -0
  20. package/dist/packages/admintasks/src/commands/differentialReport.js +149 -0
  21. package/dist/packages/admintasks/src/commands/differentialReport.js.map +1 -0
  22. package/dist/packages/admintasks/src/commands/exportVirtualPortal.d.ts +4 -0
  23. package/dist/packages/admintasks/src/commands/exportVirtualPortal.js +66 -0
  24. package/dist/packages/admintasks/src/commands/exportVirtualPortal.js.map +1 -0
  25. package/dist/packages/admintasks/src/commands/exportWCMLibrary.d.ts +4 -0
  26. package/dist/packages/admintasks/src/commands/exportWCMLibrary.js +141 -0
  27. package/dist/packages/admintasks/src/commands/exportWCMLibrary.js.map +1 -0
  28. package/dist/packages/admintasks/src/commands/importVirtualPortal.d.ts +4 -0
  29. package/dist/packages/admintasks/src/commands/importVirtualPortal.js +67 -0
  30. package/dist/packages/admintasks/src/commands/importVirtualPortal.js.map +1 -0
  31. package/dist/packages/admintasks/src/commands/importWCMLibrary.d.ts +4 -0
  32. package/dist/packages/admintasks/src/commands/importWCMLibrary.js +112 -0
  33. package/dist/packages/admintasks/src/commands/importWCMLibrary.js.map +1 -0
  34. package/dist/packages/admintasks/src/commands/listVirtualPortals.d.ts +4 -0
  35. package/dist/packages/admintasks/src/commands/listVirtualPortals.js +57 -0
  36. package/dist/packages/admintasks/src/commands/listVirtualPortals.js.map +1 -0
  37. package/dist/packages/admintasks/src/commands/pznRulesExport.d.ts +4 -0
  38. package/dist/packages/admintasks/src/commands/pznRulesExport.js +85 -0
  39. package/dist/packages/admintasks/src/commands/pznRulesExport.js.map +1 -0
  40. package/dist/packages/admintasks/src/commands/pznRulesImport.d.ts +4 -0
  41. package/dist/packages/admintasks/src/commands/pznRulesImport.js +130 -0
  42. package/dist/packages/admintasks/src/commands/pznRulesImport.js.map +1 -0
  43. package/dist/packages/admintasks/src/commands/resEnvProviderActions.d.ts +4 -0
  44. package/dist/packages/admintasks/src/commands/resEnvProviderActions.js +179 -0
  45. package/dist/packages/admintasks/src/commands/resEnvProviderActions.js.map +1 -0
  46. package/dist/packages/admintasks/src/commands/restartCorePods.d.ts +4 -0
  47. package/dist/packages/admintasks/src/commands/restartCorePods.js +45 -0
  48. package/dist/packages/admintasks/src/commands/restartCorePods.js.map +1 -0
  49. package/dist/packages/admintasks/src/commands/restartDXCore.d.ts +4 -0
  50. package/dist/packages/admintasks/src/commands/restartDXCore.js +68 -0
  51. package/dist/packages/admintasks/src/commands/restartDXCore.js.map +1 -0
  52. package/dist/packages/admintasks/src/errors/CommandLineMessages_en.json +62 -0
  53. package/dist/packages/admintasks/src/messages/messages_en.json +34 -0
  54. package/dist/packages/admintasks/src/services/createSyndicationRelationServices.d.ts +4 -0
  55. package/dist/packages/admintasks/src/services/createSyndicationRelationServices.js +53 -0
  56. package/dist/packages/admintasks/src/services/createSyndicationRelationServices.js.map +1 -0
  57. package/dist/packages/admintasks/src/services/differentialReportService.d.ts +5 -0
  58. package/dist/packages/admintasks/src/services/differentialReportService.js +59 -0
  59. package/dist/packages/admintasks/src/services/differentialReportService.js.map +1 -0
  60. package/dist/packages/admintasks/src/services/resEnvProviderService.d.ts +9 -0
  61. package/dist/packages/admintasks/src/services/resEnvProviderService.js +238 -0
  62. package/dist/packages/admintasks/src/services/resEnvProviderService.js.map +1 -0
  63. package/dist/packages/admintasks/src/services/restartCorePodsService.d.ts +4 -0
  64. package/dist/packages/admintasks/src/services/restartCorePodsService.js +45 -0
  65. package/dist/packages/admintasks/src/services/restartCorePodsService.js.map +1 -0
  66. package/dist/packages/admintasks/src/services/restartDXCoreService.d.ts +4 -0
  67. package/dist/packages/admintasks/src/services/restartDXCoreService.js +82 -0
  68. package/dist/packages/admintasks/src/services/restartDXCoreService.js.map +1 -0
  69. package/dist/packages/admintasks/src/services/virtualPortalServices.d.ts +33 -0
  70. package/dist/packages/admintasks/src/services/virtualPortalServices.js +169 -0
  71. package/dist/packages/admintasks/src/services/virtualPortalServices.js.map +1 -0
  72. package/dist/packages/admintasks/src/utils/createCredentialVault.xml +14 -0
  73. package/dist/packages/admintasks/src/utils/differential-report-utils.d.ts +11 -0
  74. package/dist/packages/admintasks/src/utils/differential-report-utils.js +1564 -0
  75. package/dist/packages/admintasks/src/utils/differential-report-utils.js.map +1 -0
  76. package/dist/packages/admintasks/src/utils/differential-report-utils.ts +1651 -0
  77. package/dist/packages/admintasks/src/utils/reportAttributes.properties +179 -0
  78. package/dist/packages/dam/package-lock.json +14605 -0
  79. package/dist/packages/dam/package.json +57 -0
  80. package/dist/packages/dam/src/commands/createSecrets.d.ts +4 -0
  81. package/dist/packages/dam/src/commands/createSecrets.js +61 -0
  82. package/dist/packages/dam/src/commands/createSecrets.js.map +1 -0
  83. package/dist/packages/dam/src/commands/deleteDAMStagingMismatch.d.ts +7 -0
  84. package/dist/packages/dam/src/commands/deleteDAMStagingMismatch.js +50 -0
  85. package/dist/packages/dam/src/commands/deleteDAMStagingMismatch.js.map +1 -0
  86. package/dist/packages/dam/src/commands/deleteSchema.d.ts +4 -0
  87. package/dist/packages/dam/src/commands/deleteSchema.js +80 -0
  88. package/dist/packages/dam/src/commands/deleteSchema.js.map +1 -0
  89. package/dist/packages/dam/src/commands/exportAssets.d.ts +5 -0
  90. package/dist/packages/dam/src/commands/exportAssets.js +106 -0
  91. package/dist/packages/dam/src/commands/exportAssets.js.map +1 -0
  92. package/dist/packages/dam/src/commands/findDAMStagingMismatch.d.ts +7 -0
  93. package/dist/packages/dam/src/commands/findDAMStagingMismatch.js +53 -0
  94. package/dist/packages/dam/src/commands/findDAMStagingMismatch.js.map +1 -0
  95. package/dist/packages/dam/src/commands/importAssets.d.ts +4 -0
  96. package/dist/packages/dam/src/commands/importAssets.js +78 -0
  97. package/dist/packages/dam/src/commands/importAssets.js.map +1 -0
  98. package/dist/packages/dam/src/commands/listSchema.d.ts +4 -0
  99. package/dist/packages/dam/src/commands/listSchema.js +44 -0
  100. package/dist/packages/dam/src/commands/listSchema.js.map +1 -0
  101. package/dist/packages/dam/src/commands/stagingMismatchReport.d.ts +15 -0
  102. package/dist/packages/dam/src/commands/stagingMismatchReport.js +168 -0
  103. package/dist/packages/dam/src/commands/stagingMismatchReport.js.map +1 -0
  104. package/dist/packages/dam/src/commands/stagingResync.d.ts +7 -0
  105. package/dist/packages/dam/src/commands/stagingResync.js +53 -0
  106. package/dist/packages/dam/src/commands/stagingResync.js.map +1 -0
  107. package/dist/packages/dam/src/commands/subscriberDeRegistration.d.ts +4 -0
  108. package/dist/packages/dam/src/commands/subscriberDeRegistration.js +45 -0
  109. package/dist/packages/dam/src/commands/subscriberDeRegistration.js.map +1 -0
  110. package/dist/packages/dam/src/commands/subscriberDetails.d.ts +9 -0
  111. package/dist/packages/dam/src/commands/subscriberDetails.js +50 -0
  112. package/dist/packages/dam/src/commands/subscriberDetails.js.map +1 -0
  113. package/dist/packages/dam/src/commands/subscriberRegistration.d.ts +9 -0
  114. package/dist/packages/dam/src/commands/subscriberRegistration.js +62 -0
  115. package/dist/packages/dam/src/commands/subscriberRegistration.js.map +1 -0
  116. package/dist/packages/dam/src/commands/triggerDAMStaging.d.ts +4 -0
  117. package/dist/packages/dam/src/commands/triggerDAMStaging.js +45 -0
  118. package/dist/packages/dam/src/commands/triggerDAMStaging.js.map +1 -0
  119. package/dist/packages/dam/src/commands/triggerDamReindexing.d.ts +4 -0
  120. package/dist/packages/dam/src/commands/triggerDamReindexing.js +54 -0
  121. package/dist/packages/dam/src/commands/triggerDamReindexing.js.map +1 -0
  122. package/dist/packages/dam/src/commands/updateSecrets.d.ts +4 -0
  123. package/dist/packages/dam/src/commands/updateSecrets.js +61 -0
  124. package/dist/packages/dam/src/commands/updateSecrets.js.map +1 -0
  125. package/dist/packages/dam/src/commands/validateAssets.d.ts +4 -0
  126. package/dist/packages/dam/src/commands/validateAssets.js +64 -0
  127. package/dist/packages/dam/src/commands/validateAssets.js.map +1 -0
  128. package/dist/packages/dam/src/errors/CommandLineMessages_en.json +80 -0
  129. package/dist/packages/dam/src/export/collection.d.ts +10 -0
  130. package/dist/packages/dam/src/export/collection.js +291 -0
  131. package/dist/packages/dam/src/export/collection.js.map +1 -0
  132. package/dist/packages/dam/src/export/favorite.d.ts +2 -0
  133. package/dist/packages/dam/src/export/favorite.js +61 -0
  134. package/dist/packages/dam/src/export/favorite.js.map +1 -0
  135. package/dist/packages/dam/src/export/media-item.d.ts +6 -0
  136. package/dist/packages/dam/src/export/media-item.js +193 -0
  137. package/dist/packages/dam/src/export/media-item.js.map +1 -0
  138. package/dist/packages/dam/src/export/media-type-group.d.ts +2 -0
  139. package/dist/packages/dam/src/export/media-type-group.js +43 -0
  140. package/dist/packages/dam/src/export/media-type-group.js.map +1 -0
  141. package/dist/packages/dam/src/export/media-type.d.ts +2 -0
  142. package/dist/packages/dam/src/export/media-type.js +43 -0
  143. package/dist/packages/dam/src/export/media-type.js.map +1 -0
  144. package/dist/packages/dam/src/export/renditions.d.ts +8 -0
  145. package/dist/packages/dam/src/export/renditions.js +255 -0
  146. package/dist/packages/dam/src/export/renditions.js.map +1 -0
  147. package/dist/packages/dam/src/import/collection.d.ts +5 -0
  148. package/dist/packages/dam/src/import/collection.js +148 -0
  149. package/dist/packages/dam/src/import/collection.js.map +1 -0
  150. package/dist/packages/dam/src/import/favorite.d.ts +2 -0
  151. package/dist/packages/dam/src/import/favorite.js +65 -0
  152. package/dist/packages/dam/src/import/favorite.js.map +1 -0
  153. package/dist/packages/dam/src/import/media-items.d.ts +5 -0
  154. package/dist/packages/dam/src/import/media-items.js +182 -0
  155. package/dist/packages/dam/src/import/media-items.js.map +1 -0
  156. package/dist/packages/dam/src/import/media-type-group.d.ts +2 -0
  157. package/dist/packages/dam/src/import/media-type-group.js +68 -0
  158. package/dist/packages/dam/src/import/media-type-group.js.map +1 -0
  159. package/dist/packages/dam/src/import/media-type.d.ts +2 -0
  160. package/dist/packages/dam/src/import/media-type.js +71 -0
  161. package/dist/packages/dam/src/import/media-type.js.map +1 -0
  162. package/dist/packages/dam/src/import/permission.d.ts +5 -0
  163. package/dist/packages/dam/src/import/permission.js +96 -0
  164. package/dist/packages/dam/src/import/permission.js.map +1 -0
  165. package/dist/packages/dam/src/import/renditions.d.ts +9 -0
  166. package/dist/packages/dam/src/import/renditions.js +326 -0
  167. package/dist/packages/dam/src/import/renditions.js.map +1 -0
  168. package/dist/packages/dam/src/messages/messages_en.json +19 -0
  169. package/dist/packages/dam/src/services/authService.d.ts +5 -0
  170. package/dist/packages/dam/src/services/authService.js +55 -0
  171. package/dist/packages/dam/src/services/authService.js.map +1 -0
  172. package/dist/packages/dam/src/services/stagingService.d.ts +37 -0
  173. package/dist/packages/dam/src/services/stagingService.js +440 -0
  174. package/dist/packages/dam/src/services/stagingService.js.map +1 -0
  175. package/dist/packages/dam/src/services/tokenCache.d.ts +8 -0
  176. package/dist/packages/dam/src/services/tokenCache.js +68 -0
  177. package/dist/packages/dam/src/services/tokenCache.js.map +1 -0
  178. package/dist/packages/dam/src/utils/constants.d.ts +70 -0
  179. package/dist/packages/dam/src/utils/constants.js +76 -0
  180. package/dist/packages/dam/src/utils/constants.js.map +1 -0
  181. package/dist/packages/dam/src/utils/interfaces/collection.d.ts +46 -0
  182. package/dist/packages/dam/src/utils/interfaces/collection.js +3 -0
  183. package/dist/packages/dam/src/utils/interfaces/collection.js.map +1 -0
  184. package/dist/packages/dam/src/utils/interfaces/favorite-request.d.ts +6 -0
  185. package/dist/packages/dam/src/utils/interfaces/favorite-request.js +3 -0
  186. package/dist/packages/dam/src/utils/interfaces/favorite-request.js.map +1 -0
  187. package/dist/packages/dam/src/utils/interfaces/media-request.d.ts +54 -0
  188. package/dist/packages/dam/src/utils/interfaces/media-request.js +3 -0
  189. package/dist/packages/dam/src/utils/interfaces/media-request.js.map +1 -0
  190. package/dist/packages/dam/src/utils/interfaces/media-type-group.d.ts +8 -0
  191. package/dist/packages/dam/src/utils/interfaces/media-type-group.js +3 -0
  192. package/dist/packages/dam/src/utils/interfaces/media-type-group.js.map +1 -0
  193. package/dist/packages/dam/src/utils/interfaces/media-type.d.ts +11 -0
  194. package/dist/packages/dam/src/utils/interfaces/media-type.js +3 -0
  195. package/dist/packages/dam/src/utils/interfaces/media-type.js.map +1 -0
  196. package/dist/packages/dam/src/utils/interfaces/media.d.ts +118 -0
  197. package/dist/packages/dam/src/utils/interfaces/media.js +3 -0
  198. package/dist/packages/dam/src/utils/interfaces/media.js.map +1 -0
  199. package/dist/packages/dam/src/utils/service.d.ts +8 -0
  200. package/dist/packages/dam/src/utils/service.js +126 -0
  201. package/dist/packages/dam/src/utils/service.js.map +1 -0
  202. package/dist/packages/dam/src/validation/collection-list-validate.d.ts +2 -0
  203. package/dist/packages/dam/src/validation/collection-list-validate.js +81 -0
  204. package/dist/packages/dam/src/validation/collection-list-validate.js.map +1 -0
  205. package/dist/packages/dam/src/validation/media-list-validate.d.ts +2 -0
  206. package/dist/packages/dam/src/validation/media-list-validate.js +91 -0
  207. package/dist/packages/dam/src/validation/media-list-validate.js.map +1 -0
  208. package/dist/packages/dam/src/validation/media-type-group-validate.d.ts +1 -0
  209. package/dist/packages/dam/src/validation/media-type-group-validate.js +28 -0
  210. package/dist/packages/dam/src/validation/media-type-group-validate.js.map +1 -0
  211. package/dist/packages/dam/src/validation/media-type-validate.d.ts +1 -0
  212. package/dist/packages/dam/src/validation/media-type-validate.js +28 -0
  213. package/dist/packages/dam/src/validation/media-type-validate.js.map +1 -0
  214. package/dist/packages/dam/src/validation/root-validate.d.ts +1 -0
  215. package/dist/packages/dam/src/validation/root-validate.js +42 -0
  216. package/dist/packages/dam/src/validation/root-validate.js.map +1 -0
  217. package/dist/packages/dam/src/validation/validate.rendition.d.ts +1 -0
  218. package/dist/packages/dam/src/validation/validate.rendition.js +69 -0
  219. package/dist/packages/dam/src/validation/validate.rendition.js.map +1 -0
  220. package/dist/packages/dam/src/validation/validate.versions.d.ts +1 -0
  221. package/dist/packages/dam/src/validation/validate.versions.js +67 -0
  222. package/dist/packages/dam/src/validation/validate.versions.js.map +1 -0
  223. package/dist/packages/deployportlet/package-lock.json +20575 -0
  224. package/dist/packages/deployportlet/package.json +51 -0
  225. package/dist/packages/deployportlet/src/commands/deployPortlet.d.ts +4 -0
  226. package/dist/packages/deployportlet/src/commands/deployPortlet.js +99 -0
  227. package/dist/packages/deployportlet/src/commands/deployPortlet.js.map +1 -0
  228. package/dist/packages/deployportlet/src/commands/undeployPortlet.d.ts +4 -0
  229. package/dist/packages/deployportlet/src/commands/undeployPortlet.js +118 -0
  230. package/dist/packages/deployportlet/src/commands/undeployPortlet.js.map +1 -0
  231. package/dist/packages/deployportlet/src/commands/xmlaccess.d.ts +4 -0
  232. package/dist/packages/deployportlet/src/commands/xmlaccess.js +37 -0
  233. package/dist/packages/deployportlet/src/commands/xmlaccess.js.map +1 -0
  234. package/dist/packages/deployportlet/src/errors/CommandLineMessages_en.json +5 -0
  235. package/dist/packages/deployportlet/src/messages/messages_en.json +10 -0
  236. package/dist/packages/deployportlet/src/services/undeployPortletServices.d.ts +4 -0
  237. package/dist/packages/deployportlet/src/services/undeployPortletServices.js +92 -0
  238. package/dist/packages/deployportlet/src/services/undeployPortletServices.js.map +1 -0
  239. package/dist/packages/deployscriptapplication/package-lock.json +20758 -0
  240. package/dist/packages/deployscriptapplication/package.json +48 -0
  241. package/dist/packages/deployscriptapplication/src/commands/list.js +109 -0
  242. package/dist/packages/deployscriptapplication/src/commands/pull.d.ts +6 -0
  243. package/dist/packages/deployscriptapplication/src/commands/pull.js +195 -0
  244. package/dist/packages/deployscriptapplication/src/commands/pull.js.map +1 -0
  245. package/dist/packages/deployscriptapplication/src/commands/push.d.ts +9 -0
  246. package/dist/packages/deployscriptapplication/src/commands/push.js +282 -0
  247. package/dist/packages/deployscriptapplication/src/commands/push.js.map +1 -0
  248. package/dist/packages/deployscriptapplication/src/commands/restoreScriptApplication.d.ts +5 -0
  249. package/dist/packages/deployscriptapplication/src/commands/restoreScriptApplication.js +125 -0
  250. package/dist/packages/deployscriptapplication/src/commands/restoreScriptApplication.js.map +1 -0
  251. package/dist/packages/deployscriptapplication/src/commands/undeployScriptApplication.d.ts +5 -0
  252. package/dist/packages/deployscriptapplication/src/commands/undeployScriptApplication.js +162 -0
  253. package/dist/packages/deployscriptapplication/src/commands/undeployScriptApplication.js.map +1 -0
  254. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages.properties +211 -0
  255. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_ar.properties +211 -0
  256. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_ca.properties +211 -0
  257. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_cs.properties +211 -0
  258. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_da.properties +211 -0
  259. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_de.properties +211 -0
  260. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_el.properties +211 -0
  261. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_en.json +129 -0
  262. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_en.properties +211 -0
  263. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_es.properties +211 -0
  264. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_fi.properties +211 -0
  265. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_fr.properties +211 -0
  266. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_hr.properties +211 -0
  267. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_hu.properties +211 -0
  268. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_it.properties +212 -0
  269. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_iw.properties +211 -0
  270. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_ja.properties +211 -0
  271. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_kk.properties +211 -0
  272. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_ko.properties +211 -0
  273. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_nl.properties +211 -0
  274. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_no.properties +211 -0
  275. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_pl.properties +211 -0
  276. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_pt.properties +211 -0
  277. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_pt_BR.properties +211 -0
  278. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_ro.properties +211 -0
  279. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_ru.properties +211 -0
  280. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_sk.properties +211 -0
  281. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_sl.properties +211 -0
  282. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_sv.properties +211 -0
  283. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_th.properties +211 -0
  284. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_tr.properties +211 -0
  285. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_uk.properties +211 -0
  286. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_zh.properties +210 -0
  287. package/dist/packages/deployscriptapplication/src/errors/CommandLineMessages_zh_TW.properties +211 -0
  288. package/dist/packages/deployscriptapplication/src/messages/messages.properties +63 -0
  289. package/dist/packages/deployscriptapplication/src/messages/messages_ar.properties +63 -0
  290. package/dist/packages/deployscriptapplication/src/messages/messages_ca.properties +63 -0
  291. package/dist/packages/deployscriptapplication/src/messages/messages_cs.properties +63 -0
  292. package/dist/packages/deployscriptapplication/src/messages/messages_da.properties +63 -0
  293. package/dist/packages/deployscriptapplication/src/messages/messages_de.properties +63 -0
  294. package/dist/packages/deployscriptapplication/src/messages/messages_el.properties +63 -0
  295. package/dist/packages/deployscriptapplication/src/messages/messages_en.json +61 -0
  296. package/dist/packages/deployscriptapplication/src/messages/messages_en.properties +63 -0
  297. package/dist/packages/deployscriptapplication/src/messages/messages_es.properties +63 -0
  298. package/dist/packages/deployscriptapplication/src/messages/messages_fi.properties +63 -0
  299. package/dist/packages/deployscriptapplication/src/messages/messages_fr.properties +63 -0
  300. package/dist/packages/deployscriptapplication/src/messages/messages_hr.properties +63 -0
  301. package/dist/packages/deployscriptapplication/src/messages/messages_hu.properties +63 -0
  302. package/dist/packages/deployscriptapplication/src/messages/messages_it.properties +63 -0
  303. package/dist/packages/deployscriptapplication/src/messages/messages_iw.properties +63 -0
  304. package/dist/packages/deployscriptapplication/src/messages/messages_ja.properties +63 -0
  305. package/dist/packages/deployscriptapplication/src/messages/messages_kk.properties +63 -0
  306. package/dist/packages/deployscriptapplication/src/messages/messages_ko.properties +63 -0
  307. package/dist/packages/deployscriptapplication/src/messages/messages_nl.properties +63 -0
  308. package/dist/packages/deployscriptapplication/src/messages/messages_no.properties +63 -0
  309. package/dist/packages/deployscriptapplication/src/messages/messages_pl.properties +63 -0
  310. package/dist/packages/deployscriptapplication/src/messages/messages_pt.properties +63 -0
  311. package/dist/packages/deployscriptapplication/src/messages/messages_pt_BR.properties +63 -0
  312. package/dist/packages/deployscriptapplication/src/messages/messages_ro.properties +63 -0
  313. package/dist/packages/deployscriptapplication/src/messages/messages_ru.properties +63 -0
  314. package/dist/packages/deployscriptapplication/src/messages/messages_sk.properties +63 -0
  315. package/dist/packages/deployscriptapplication/src/messages/messages_sl.properties +63 -0
  316. package/dist/packages/deployscriptapplication/src/messages/messages_sv.properties +63 -0
  317. package/dist/packages/deployscriptapplication/src/messages/messages_th.properties +63 -0
  318. package/dist/packages/deployscriptapplication/src/messages/messages_tr.properties +63 -0
  319. package/dist/packages/deployscriptapplication/src/messages/messages_uk.properties +63 -0
  320. package/dist/packages/deployscriptapplication/src/messages/messages_zh.properties +67 -0
  321. package/dist/packages/deployscriptapplication/src/messages/messages_zh_TW.properties +67 -0
  322. package/dist/packages/deployscriptapplication/src/util/constants.d.ts +74 -0
  323. package/dist/packages/deployscriptapplication/src/util/constants.js +98 -0
  324. package/dist/packages/deployscriptapplication/src/util/constants.js.map +1 -0
  325. package/dist/packages/deployscriptapplication/src/util/generic.d.ts +2 -0
  326. package/dist/packages/deployscriptapplication/src/util/generic.js +29 -0
  327. package/dist/packages/deployscriptapplication/src/util/generic.js.map +1 -0
  328. package/dist/packages/deploytheme/package-lock.json +21204 -0
  329. package/dist/packages/deploytheme/package.json +56 -0
  330. package/dist/packages/deploytheme/src/commands/deployApplication.d.ts +4 -0
  331. package/dist/packages/deploytheme/src/commands/deployApplication.js +115 -0
  332. package/dist/packages/deploytheme/src/commands/deployApplication.js.map +1 -0
  333. package/dist/packages/deploytheme/src/commands/deployTheme.d.ts +7 -0
  334. package/dist/packages/deploytheme/src/commands/deployTheme.js +286 -0
  335. package/dist/packages/deploytheme/src/commands/deployTheme.js.map +1 -0
  336. package/dist/packages/deploytheme/src/commands/undeployApplication.d.ts +4 -0
  337. package/dist/packages/deploytheme/src/commands/undeployApplication.js +46 -0
  338. package/dist/packages/deploytheme/src/commands/undeployApplication.js.map +1 -0
  339. package/dist/packages/deploytheme/src/commands/undeployTheme.d.ts +10 -0
  340. package/dist/packages/deploytheme/src/commands/undeployTheme.js +288 -0
  341. package/dist/packages/deploytheme/src/commands/undeployTheme.js.map +1 -0
  342. package/dist/packages/deploytheme/src/errors/CommandLineMessages_en.json +28 -0
  343. package/dist/packages/deploytheme/src/messages/messages_en.json +30 -0
  344. package/dist/packages/deploytheme/src/services/themeServices.d.ts +15 -0
  345. package/dist/packages/deploytheme/src/services/themeServices.js +413 -0
  346. package/dist/packages/deploytheme/src/services/themeServices.js.map +1 -0
  347. package/dist/packages/deploytheme/src/utils/Export.xml +28 -0
  348. package/dist/packages/livesync/package-lock.json +9737 -0
  349. package/dist/packages/livesync/package.json +49 -0
  350. package/dist/packages/livesync/src/commands/pullTheme.d.ts +5 -0
  351. package/dist/packages/livesync/src/commands/pullTheme.js +104 -0
  352. package/dist/packages/livesync/src/commands/pullTheme.js.map +1 -0
  353. package/dist/packages/livesync/src/commands/pullWcmDesignLibrary.d.ts +18 -0
  354. package/dist/packages/livesync/src/commands/pullWcmDesignLibrary.js +193 -0
  355. package/dist/packages/livesync/src/commands/pullWcmDesignLibrary.js.map +1 -0
  356. package/dist/packages/livesync/src/commands/pushTheme.d.ts +12 -0
  357. package/dist/packages/livesync/src/commands/pushTheme.js +233 -0
  358. package/dist/packages/livesync/src/commands/pushTheme.js.map +1 -0
  359. package/dist/packages/livesync/src/commands/pushWcmDesignLibrary.d.ts +4 -0
  360. package/dist/packages/livesync/src/commands/pushWcmDesignLibrary.js +23 -0
  361. package/dist/packages/livesync/src/commands/pushWcmDesignLibrary.js.map +1 -0
  362. package/dist/packages/livesync/src/errors/CommandLineMessages_en.json +52 -0
  363. package/dist/packages/livesync/src/messages/messages_en.json +33 -0
  364. package/dist/packages/livesync/src/services/EventsQueue.d.ts +12 -0
  365. package/dist/packages/livesync/src/services/EventsQueue.js +66 -0
  366. package/dist/packages/livesync/src/services/EventsQueue.js.map +1 -0
  367. package/dist/packages/livesync/src/services/foldersWcmServices.d.ts +7 -0
  368. package/dist/packages/livesync/src/services/foldersWcmServices.js +120 -0
  369. package/dist/packages/livesync/src/services/foldersWcmServices.js.map +1 -0
  370. package/dist/packages/livesync/src/services/htmlComponentWcmServices.d.ts +6 -0
  371. package/dist/packages/livesync/src/services/htmlComponentWcmServices.js +108 -0
  372. package/dist/packages/livesync/src/services/htmlComponentWcmServices.js.map +1 -0
  373. package/dist/packages/livesync/src/services/initialSyncServices.d.ts +3 -0
  374. package/dist/packages/livesync/src/services/initialSyncServices.js +94 -0
  375. package/dist/packages/livesync/src/services/initialSyncServices.js.map +1 -0
  376. package/dist/packages/livesync/src/services/livesyncUtils.d.ts +2 -0
  377. package/dist/packages/livesync/src/services/livesyncUtils.js +59 -0
  378. package/dist/packages/livesync/src/services/livesyncUtils.js.map +1 -0
  379. package/dist/packages/livesync/src/services/metadataServices.d.ts +16 -0
  380. package/dist/packages/livesync/src/services/metadataServices.js +117 -0
  381. package/dist/packages/livesync/src/services/metadataServices.js.map +1 -0
  382. package/dist/packages/livesync/src/services/ongoingSyncServices.d.ts +10 -0
  383. package/dist/packages/livesync/src/services/ongoingSyncServices.js +266 -0
  384. package/dist/packages/livesync/src/services/ongoingSyncServices.js.map +1 -0
  385. package/dist/packages/livesync/src/services/wcmRestV2Services.d.ts +5 -0
  386. package/dist/packages/livesync/src/services/wcmRestV2Services.js +92 -0
  387. package/dist/packages/livesync/src/services/wcmRestV2Services.js.map +1 -0
  388. package/dist/packages/livesync/src/types/EventHandler.type.d.ts +5 -0
  389. package/dist/packages/livesync/src/types/EventHandler.type.js +3 -0
  390. package/dist/packages/livesync/src/types/EventHandler.type.js.map +1 -0
  391. package/dist/packages/livesync/src/types/EventQueueItem.type.d.ts +7 -0
  392. package/dist/packages/livesync/src/types/EventQueueItem.type.js +3 -0
  393. package/dist/packages/livesync/src/types/EventQueueItem.type.js.map +1 -0
  394. package/dist/packages/livesync/src/types/OngoingSyncHooks.type.d.ts +4 -0
  395. package/dist/packages/livesync/src/types/OngoingSyncHooks.type.js +3 -0
  396. package/dist/packages/livesync/src/types/OngoingSyncHooks.type.js.map +1 -0
  397. package/dist/packages/livesync/src/types/WcmRestApiV2.type.d.ts +99 -0
  398. package/dist/packages/livesync/src/types/WcmRestApiV2.type.js +3 -0
  399. package/dist/packages/livesync/src/types/WcmRestApiV2.type.js.map +1 -0
  400. package/dist/packages/livesync/src/types/index.d.ts +4 -0
  401. package/dist/packages/livesync/src/types/index.js +17 -0
  402. package/dist/packages/livesync/src/types/index.js.map +1 -0
  403. package/dist/packages/mls_exim/package-lock.json +13855 -0
  404. package/dist/packages/mls_exim/package.json +51 -0
  405. package/dist/packages/mls_exim/src/errors/CommandLineMessages_en.json +19 -0
  406. package/dist/packages/mls_exim/src/export/mlsExport.d.ts +7 -0
  407. package/dist/packages/mls_exim/src/export/mlsExport.js +292 -0
  408. package/dist/packages/mls_exim/src/export/mlsExport.js.map +1 -0
  409. package/dist/packages/mls_exim/src/export/mlsExport.ts +371 -0
  410. package/dist/packages/mls_exim/src/import/mlsImport.d.ts +8 -0
  411. package/dist/packages/mls_exim/src/import/mlsImport.js +104 -0
  412. package/dist/packages/mls_exim/src/import/mlsImport.js.map +1 -0
  413. package/dist/packages/mls_exim/src/import/mlsImport.ts +138 -0
  414. package/dist/packages/mls_exim/src/messages/messages_en.json +14 -0
  415. package/dist/packages/mls_exim/src/utils/interfaces/export.d.ts +133 -0
  416. package/dist/packages/mls_exim/src/utils/interfaces/export.js +3 -0
  417. package/dist/packages/mls_exim/src/utils/interfaces/export.js.map +1 -0
  418. package/dist/packages/mls_exim/src/utils/interfaces/export.ts +165 -0
  419. package/dist/packages/mls_exim/src/utils/interfaces/import.d.ts +52 -0
  420. package/dist/packages/mls_exim/src/utils/interfaces/import.js +3 -0
  421. package/dist/packages/mls_exim/src/utils/interfaces/import.js.map +1 -0
  422. package/dist/packages/mls_exim/src/utils/interfaces/import.ts +76 -0
  423. package/dist/packages/sharedlibrary/package-lock.json +20575 -0
  424. package/dist/packages/sharedlibrary/package.json +51 -0
  425. package/dist/packages/sharedlibrary/src/commands/delete.d.ts +4 -0
  426. package/dist/packages/sharedlibrary/src/commands/delete.js +64 -0
  427. package/dist/packages/sharedlibrary/src/commands/delete.js.map +1 -0
  428. package/dist/packages/sharedlibrary/src/commands/upload.d.ts +4 -0
  429. package/dist/packages/sharedlibrary/src/commands/upload.js +105 -0
  430. package/dist/packages/sharedlibrary/src/commands/upload.js.map +1 -0
  431. package/dist/packages/sharedlibrary/src/errors/CommandLineMessages_en.json +10 -0
  432. package/dist/packages/sharedlibrary/src/messages/messages_en.json +7 -0
  433. package/dist/packages/sharedlibrary/src/services/sharedLibraryServices.d.ts +5 -0
  434. package/dist/packages/sharedlibrary/src/services/sharedLibraryServices.js +100 -0
  435. package/dist/packages/sharedlibrary/src/services/sharedLibraryServices.js.map +1 -0
  436. package/dist/packages/syndication/package-lock.json +20575 -0
  437. package/dist/packages/syndication/package.json +51 -0
  438. package/dist/packages/syndication/src/commands/subscriber.d.ts +4 -0
  439. package/dist/packages/syndication/src/commands/subscriber.js +62 -0
  440. package/dist/packages/syndication/src/commands/subscriber.js.map +1 -0
  441. package/dist/packages/syndication/src/commands/syndicationReport.d.ts +2 -0
  442. package/dist/packages/syndication/src/commands/syndicationReport.js +99 -0
  443. package/dist/packages/syndication/src/commands/syndicationReport.js.map +1 -0
  444. package/dist/packages/syndication/src/commands/syndicator.d.ts +4 -0
  445. package/dist/packages/syndication/src/commands/syndicator.js +62 -0
  446. package/dist/packages/syndication/src/commands/syndicator.js.map +1 -0
  447. package/dist/packages/syndication/src/commands/syndicatorFailedItem.d.ts +4 -0
  448. package/dist/packages/syndication/src/commands/syndicatorFailedItem.js +104 -0
  449. package/dist/packages/syndication/src/commands/syndicatorFailedItem.js.map +1 -0
  450. package/dist/packages/syndication/src/errors/CommandLineMessages_en.json +12 -0
  451. package/dist/packages/syndication/src/messages/messages_en.json +9 -0
  452. package/dist/packages/syndication/src/services/syndicationService.d.ts +108 -0
  453. package/dist/packages/syndication/src/services/syndicationService.js +167 -0
  454. package/dist/packages/syndication/src/services/syndicationService.js.map +1 -0
  455. package/dist/src/errors/CommandLineMessages_en.json +53 -0
  456. package/dist/src/index.d.ts +1 -0
  457. package/dist/src/index.js +2207 -0
  458. package/dist/src/index.js.map +1 -0
  459. package/dist/src/services/apiServices.d.ts +32 -0
  460. package/dist/src/services/apiServices.js +932 -0
  461. package/dist/src/services/apiServices.js.map +1 -0
  462. package/dist/src/services/filesServices.d.ts +9 -0
  463. package/dist/src/services/filesServices.js +134 -0
  464. package/dist/src/services/filesServices.js.map +1 -0
  465. package/dist/src/services/requestService.d.ts +4 -0
  466. package/dist/src/services/requestService.js +55 -0
  467. package/dist/src/services/requestService.js.map +1 -0
  468. package/dist/src/utils/commands.d.ts +2 -0
  469. package/dist/src/utils/commands.js +13 -0
  470. package/dist/src/utils/commands.js.map +1 -0
  471. package/dist/src/utils/constants.d.ts +389 -0
  472. package/dist/src/utils/constants.js +464 -0
  473. package/dist/src/utils/constants.js.map +1 -0
  474. package/dist/src/utils/interfaces.d.ts +19 -0
  475. package/dist/src/utils/interfaces.js +3 -0
  476. package/dist/src/utils/interfaces.js.map +1 -0
  477. package/dist/src/utils/logger.d.ts +3 -0
  478. package/dist/src/utils/logger.js +126 -0
  479. package/dist/src/utils/logger.js.map +1 -0
  480. package/dist/src/utils/utils.d.ts +31 -0
  481. package/dist/src/utils/utils.js +791 -0
  482. package/dist/src/utils/utils.js.map +1 -0
  483. package/dist/src/utils/validateOptions.d.ts +4 -0
  484. package/dist/src/utils/validateOptions.js +730 -0
  485. package/dist/src/utils/validateOptions.js.map +1 -0
  486. package/package.json +149 -0
@@ -0,0 +1,1564 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.differentialReportUtils = void 0;
16
+ const fs_1 = __importDefault(require("fs"));
17
+ const path_1 = __importDefault(require("path"));
18
+ const moment_1 = __importDefault(require("moment"));
19
+ const logger_1 = require("../../../../src/utils/logger");
20
+ const utils_1 = require("../../../../src/utils/utils");
21
+ const filesServices_1 = require("../../../../src/services/filesServices");
22
+ const constants_1 = require("../../../../src/utils/constants");
23
+ function isConfigID(cfg) {
24
+ let rtnVal = false;
25
+ rtnVal = cfg.indexOf('(') > -1 && cfg.indexOf('#') > -1 && cfg.indexOf('|') > -1 && cfg.indexOf(')') > -1;
26
+ return rtnVal;
27
+ }
28
+ function addCellSuffix(value, cellSuffix) {
29
+ if (value.indexOf('\r') === value.length - 1) {
30
+ value = value.slice();
31
+ }
32
+ if (value.indexOf('\n') === value.length - 1) {
33
+ value = value.slice();
34
+ }
35
+ let idx = 0;
36
+ const replacementList = ['cells/', 'waspolicies/'];
37
+ if (isConfigID(value)) {
38
+ replacementList.forEach((repVal) => {
39
+ while (value.indexOf(repVal, idx) > -1) {
40
+ idx = value.indexOf(repVal, idx) + repVal.length;
41
+ const idx1 = value.indexOf('/', idx);
42
+ const idx2 = value.indexOf('|', idx);
43
+ if (idx1 > -1 && idx1 < idx2) {
44
+ idx = idx1;
45
+ }
46
+ else {
47
+ idx = idx2;
48
+ }
49
+ value = `${value.slice(0, idx)}-${cellSuffix}${value.slice(idx)}`;
50
+ }
51
+ });
52
+ }
53
+ return value;
54
+ }
55
+ function getConfigIDCell(configID) {
56
+ let rtnVal = 'getConfigIDCell_error_cell_not_found';
57
+ const idx = configID.indexOf('cells/');
58
+ if (idx > -1) {
59
+ rtnVal = configID.slice(idx + 6);
60
+ if (rtnVal.indexOf('/') > -1)
61
+ rtnVal = rtnVal.split('/')[0];
62
+ if (rtnVal.indexOf('|') > -1)
63
+ rtnVal = rtnVal.split('|')[0];
64
+ }
65
+ return rtnVal;
66
+ }
67
+ function getCellNames(configDict) {
68
+ const rtnVal = [];
69
+ const keys = configDict;
70
+ Object.keys(keys).forEach((key) => {
71
+ const idx = key.indexOf('cells/');
72
+ if (idx > -1) {
73
+ const cell = getConfigIDCell(key);
74
+ if (!rtnVal.includes(cell))
75
+ rtnVal.push(cell);
76
+ }
77
+ });
78
+ logger_1.logger.debug('getCellNames %s', rtnVal);
79
+ return rtnVal;
80
+ }
81
+ function readConfigs(fileName) {
82
+ let idx = 0;
83
+ const MasterDict = {};
84
+ const OriginalCellNameList = [];
85
+ if (!fileName) {
86
+ logger_1.logger.debug('ERROR: No configuration files found');
87
+ return false;
88
+ }
89
+ logger_1.logger.debug('FileName %s', fileName);
90
+ let fileContent = '';
91
+ try {
92
+ fileContent = fs_1.default.readFileSync(fileName.toString(), 'utf8');
93
+ }
94
+ catch (error) {
95
+ logger_1.logger.debug('Error in reading file %s %o', fileName, error);
96
+ return false;
97
+ }
98
+ const lines = fileContent.toString().split('\n');
99
+ let currentKey = 'NOT_INITIALIZED';
100
+ let currentDict;
101
+ let cellSuffix = '';
102
+ let lineNumber = 0;
103
+ let key;
104
+ let value;
105
+ try {
106
+ lines.forEach((line) => {
107
+ lineNumber += 1;
108
+ if (line.indexOf('CellSuffix') === 0) {
109
+ idx = line.indexOf('=');
110
+ cellSuffix = line.substring(idx + 1);
111
+ }
112
+ else if (line.indexOf('\t') === 0) {
113
+ idx = line.indexOf('=');
114
+ key = line.slice(1, idx);
115
+ value = line.slice(idx + 1);
116
+ currentDict[key] = addCellSuffix(value, cellSuffix);
117
+ }
118
+ else {
119
+ let idx1 = line.indexOf('cells/');
120
+ if (idx1 > -1) {
121
+ idx1 += String('cells/').length;
122
+ const idx2 = line.indexOf('/', idx1);
123
+ if (idx2 > -1) {
124
+ const originalCellName = line.slice(idx1, idx2);
125
+ if (!OriginalCellNameList.includes(originalCellName))
126
+ OriginalCellNameList.push(originalCellName);
127
+ }
128
+ }
129
+ if (currentKey !== 'NOT_INITIALIZED') {
130
+ MasterDict[currentKey] = currentDict;
131
+ }
132
+ currentKey = line.slice();
133
+ if (!isConfigID(currentKey) && currentKey !== '(null)' && line !== '') {
134
+ logger_1.logger.info('WARNING: File %s may be corrupted at line %i. Invalid value "%s" found.', fileName, lineNumber, currentKey);
135
+ currentKey = `ERROR-${lineNumber}-${fileName}`;
136
+ }
137
+ currentKey = addCellSuffix(currentKey, cellSuffix);
138
+ currentDict = { CONFIG_ID: currentKey };
139
+ }
140
+ });
141
+ MasterDict[currentKey] = currentDict;
142
+ MasterDict.CellList = getCellNames(MasterDict);
143
+ }
144
+ catch (error) {
145
+ logger_1.logger.debug('error %s', error.message);
146
+ }
147
+ return MasterDict;
148
+ }
149
+ function readProperties() {
150
+ const PropDict = {};
151
+ let idx = 0;
152
+ let fileContent = '';
153
+ try {
154
+ const reportAttr = path_1.default.resolve(__dirname, constants_1.CONSTANT_VALUES.reportPropertiesFile);
155
+ fileContent = fs_1.default.readFileSync(reportAttr, 'utf8');
156
+ }
157
+ catch (error) {
158
+ logger_1.logger.debug('Error in reading file %s %o', constants_1.CONSTANT_VALUES.reportPropertiesFile, error);
159
+ return false;
160
+ }
161
+ const lines = fileContent.toString().split('\n');
162
+ let key = 'NOT_INITIALIZED';
163
+ let append = false;
164
+ let value;
165
+ try {
166
+ lines.forEach((line) => {
167
+ if (line.indexOf('CellSuffix') === 0) {
168
+ logger_1.logger.debug('ERROR: File is a configuration dump file.');
169
+ return false;
170
+ }
171
+ line = line.trim();
172
+ if ((line.length > 0) && !(line.indexOf('#') === 0)) {
173
+ if (append) {
174
+ if (line.indexOf('\\') === line.length - 1) {
175
+ append = true;
176
+ line = line.substring(0, line.length - 1);
177
+ }
178
+ else {
179
+ append = false;
180
+ }
181
+ PropDict[key] = PropDict[key].concat(line);
182
+ }
183
+ if (line.indexOf('=') > -1) {
184
+ idx = line.indexOf('=');
185
+ key = line.slice(0, idx);
186
+ value = line.slice(idx + 1);
187
+ if ((value.length > 0) && (value.indexOf('\\') === value.length - 1)) {
188
+ append = true;
189
+ value = value.substring(0, value.length - 1);
190
+ }
191
+ PropDict[key] = value;
192
+ }
193
+ else if (line.length === 0) {
194
+ logger_1.logger.debug('Invalid line', line);
195
+ return false;
196
+ }
197
+ }
198
+ return true;
199
+ });
200
+ }
201
+ catch (error) {
202
+ logger_1.logger.debug('error %s', error.message);
203
+ }
204
+ return PropDict;
205
+ }
206
+ function getScope(configID) {
207
+ let rtnVal = '';
208
+ const scopeStr = configID.substring(configID.indexOf('cells/'), configID.indexOf('|'));
209
+ let name = false;
210
+ scopeStr.split('/').forEach((element) => {
211
+ if (name) {
212
+ rtnVal = `${rtnVal}${element} `;
213
+ }
214
+ else {
215
+ rtnVal = `${rtnVal}${element.slice()}: `;
216
+ }
217
+ name = !name;
218
+ });
219
+ return rtnVal;
220
+ }
221
+ function generateSummaryReport(MasterDict) {
222
+ return __awaiter(this, void 0, void 0, function* () {
223
+ logger_1.logger.debug('Entering to the generateSummaryReport function');
224
+ try {
225
+ const reports = [['Application Servers', '/.*#Server_.*', 'name', 'True', ['serverType', 'APPLICATION_SERVER']],
226
+ ['Web Servers', '/.*#Server_.*', 'name', 'True', ['serverType', 'WEB_SERVER']],
227
+ ['Clusters', '/.*#ServerCluster_.*', 'name', 'False'],
228
+ ['Virtual Hosts', '.*VirtualHost_.*', 'name', 'False'],
229
+ ['Core Groups', '.*CoreGroup_.*', 'name', 'False'],
230
+ ['Data Sources', '.*DataSource_.*', 'name', 'True'],
231
+ ['JMS Providers', '.*JMSProvider_.*', 'name', 'True'],
232
+ ['J2C Resource Adapters', '.*J2CResourceAdapter_.*', 'name', 'True'],
233
+ ['SSL Configs', '.*SSLConfig_.*', 'alias', 'True'],
234
+ ['Mail Providers', '.*MailProvider_.*', 'name', 'True'],
235
+ ['URL Providers', '.*URLProvider_.*', 'name', 'True'],
236
+ ['JDBC Providers', '.*JDBCProvider_.*', 'name', 'True'],
237
+ ['Service Integration Buses', '.*SIBus_.*', 'name', 'False'],
238
+ ['Application Deployments', '.*ApplicationDeployment_.*', 'binariesURL', 'False'],
239
+ ['Servlet Cache Instances', '.*ServletCacheInstance_.*', 'name', 'True'],
240
+ ['Object Cache Instances', '.*ObjectCacheInstance_.*', 'name', 'True'],
241
+ ];
242
+ const skipString = '/(\\bdockerCell-\\S+\\b)/ig';
243
+ const reportRowHeaders = [];
244
+ const columnHeaders = MasterDict.CellList;
245
+ const reportTableData = [];
246
+ reports.forEach((report) => {
247
+ const list = [];
248
+ reportRowHeaders.push(report[0].toString());
249
+ columnHeaders.forEach((cell) => {
250
+ const rElements = [];
251
+ const keys = Object.keys(MasterDict);
252
+ const configIDs = [];
253
+ keys.forEach((key) => {
254
+ if (new RegExp(`.*/${cell}${report[1]}`).test(key)) {
255
+ configIDs.push(key);
256
+ }
257
+ });
258
+ configIDs.forEach((configID) => {
259
+ if (report.length === 5) {
260
+ if (MasterDict[configID][report[4][0]] !== report[4][1]) {
261
+ return;
262
+ }
263
+ }
264
+ let value = MasterDict[configID][`${report[2]}`];
265
+ const reportScope = report[3];
266
+ if (reportScope === 'True') {
267
+ const scope = getScope(configID);
268
+ value = `<br>${value}<br>&nbsp;&nbsp;&nbsp;<font size="1">${scope}</font>`;
269
+ }
270
+ else {
271
+ value = `<br>${value}`;
272
+ }
273
+ rElements.push(value);
274
+ });
275
+ rElements.sort();
276
+ list.push(rElements.toString());
277
+ });
278
+ reportTableData.push(list);
279
+ });
280
+ const reportingTableTitle = 'Cell Summary';
281
+ let reportingTable = '<table style="table-layout:fixed" id="differential-report" border="2" cellpadding="2" cellspacing="0" width="50px">\n';
282
+ let tbody = `<tbody><tr align="left">\n<td colspan="3" rowspan="1" bgcolor="#999999" valign="top"><big><big><b>${reportingTableTitle}</b></big></big><br></td></tr>\n<tr>`;
283
+ tbody = `${tbody}<tr><td class="wrapped" bgcolor="#cccccc" valign="top"><b></b><b><br></b> </td>\n`;
284
+ columnHeaders.forEach((header) => {
285
+ tbody = `${tbody}<td class="wrapped" bgcolor="#cccccc" valign="top"><b>${header}</b><b><br></b> </td>\n`;
286
+ });
287
+ tbody = `${tbody}<tr>`;
288
+ let idx = 0;
289
+ reportRowHeaders.forEach((header) => {
290
+ tbody = `${tbody}<tr><td class="wrapped" bgcolor="#cccccc" valign="top"><b>${header}</b><b><br></b> </td>\n`;
291
+ reportTableData[idx].forEach((value) => {
292
+ tbody = `${tbody}<td class="wrapped" valign="top">${value}<br></td>\n`;
293
+ });
294
+ tbody = `${tbody}</tr>\n`;
295
+ idx += 1;
296
+ });
297
+ reportingTable = `${reportingTable}${tbody}</tbody></table><br>\n`;
298
+ const summaryReport = `
299
+ <!DOCTYPE html>
300
+ <html>\n<head>\n<meta http-equiv="content-type" content="text/html; charset=UTF-8">\n<title>Cell Summary Report</title>\n</head>\n<body>
301
+ <head><style type="text/css">
302
+ #header{
303
+ text-align: center;
304
+ font-size:25px;
305
+ }
306
+ .subHeader {text-align: left;
307
+ color:#000080;
308
+ font-size:15px;
309
+ }
310
+ table {
311
+ font-family: arial, sans-serif;
312
+ border-collapse: collapse;
313
+ width: 100%;
314
+ }
315
+ th {
316
+ border: 1px solid black;
317
+ text-align: center;
318
+ padding: 8px;
319
+ font-size: 15px;
320
+ }
321
+ td{
322
+ border:1px solid black;
323
+ text-align: left;
324
+ padding: 8px;
325
+ font-size: 14px;
326
+ word-wrap: break-word;
327
+ }
328
+ table{
329
+ border: 2px solid black;
330
+ }
331
+ text{
332
+ color:black;
333
+ font-size: 13px;
334
+ }
335
+ #syndicatorId{
336
+ background-color:#F0F8FF;
337
+ }
338
+ #rowId{
339
+ size:"1";
340
+ width:"100%" ;
341
+ color:"black";
342
+ }
343
+ #subRowId{
344
+ size:"2";
345
+ width:"100%" ;
346
+ color:"black";
347
+ }
348
+ </style>
349
+ </head>
350
+ <body>
351
+ <div><h1>Cell Summary Report ${moment_1.default().format('MM/DD/YY h:mm:ss')}</h1>
352
+ <div class="Div1">
353
+ <svg width="20" height="20">
354
+ <rect width="20" height="20" style="fill:#87CEEB;stroke-width:3;stroke:rgb(0,0,0)" />
355
+ </svg>
356
+ Configuration details mismatch.<br>
357
+ </div>
358
+ <div class="Div2">
359
+ <svg width="20" height="20">
360
+ <rect width="20" height="20" style="fill:#E9E612;stroke-width:3;stroke:rgb(0,0,0)" />
361
+ </svg>
362
+ Only one configuration is found.
363
+ </div>
364
+ <style>
365
+ .Div1{
366
+ position: absolute;
367
+ top: 28px;
368
+ right: 19px;
369
+ font-size: 15px;
370
+ }
371
+ .Div2 {
372
+ position: absolute;
373
+ top: 55px;
374
+ right: 16px;
375
+ font-size: 15px;
376
+ }
377
+ </style>
378
+ ${reportingTable}
379
+ </div>Note, if there is no output, check to ensure there were resources found to compare and ReportOnlyMismatched is either not present or set to False.
380
+ <script>
381
+ var oTable = document.getElementById('differential-report');
382
+ //gets rows of table
383
+ var rowLength = oTable.rows.length;
384
+ //loops through rows
385
+ for (i = 0; i < rowLength; i++){
386
+ //gets cells of current row
387
+ var oCells = oTable.rows.item(i).cells;
388
+ //gets amount of cells of current row
389
+ var cellLength = oCells.length;
390
+ //loops through each cell in current row
391
+ for(var j = 0; j < cellLength; j++){
392
+ // get your cell info here
393
+ if(cellLength > 1){
394
+ var cellOne = oCells.item(1).innerHTML.match(${skipString});
395
+ var cellSceond = oCells.item(2).innerHTML.match(${skipString});
396
+ if((oCells.item(1).innerHTML.replaceAll(cellOne ? cellOne[0] : cellOne, '') !== oCells.item(2).innerHTML.replaceAll(cellSceond ? cellSceond[0] : cellSceond, ''))
397
+ && oCells.item(0).innerText.length !==1 && oCells.item(1).innerText.length !== 1 && oCells.item(2).innerText.length !== 1){
398
+ oCells.item(2).bgColor ='Sky blue';
399
+ }else if ((oCells.item(1).innerText.length) !== (oCells.item(2).innerText.length) && (oCells.item(2).innerText.length) !== 1) {
400
+ oCells.item(2).bgColor ='Yellow';
401
+ }
402
+ else if ((oCells.item(1).innerText.length) !== (oCells.item(2).innerText.length) && (oCells.item(1).innerText.length) !== 1) {
403
+ oCells.item(1).bgColor ='Yellow';
404
+ }
405
+ }
406
+ }
407
+ }
408
+ </script>
409
+ </body>
410
+ </html>`;
411
+ try {
412
+ const outputFileName = utils_1.getFileNameWithTimeStamp(constants_1.CONSTANT_VALUES.summaryReport);
413
+ const outputFileLocation = `${path_1.default.resolve(utils_1.getStoreDir(), constants_1.CONSTANT_VALUES.outputFileLocation)}/${constants_1.CONSTANT_VALUES.reportCFG}`;
414
+ const writeFileResponse = yield filesServices_1.fileServices.writeFile(summaryReport, outputFileLocation, `${outputFileName}.${constants_1.FileType.HTML}`);
415
+ logger_1.logger.info(utils_1.message('EXPORT_SUMMARY_REPORT_SUCCESS', { 0: writeFileResponse }));
416
+ }
417
+ catch (error) {
418
+ logger_1.logger.debug('Error in writing file %o', error);
419
+ return false;
420
+ }
421
+ }
422
+ catch (error) {
423
+ logger_1.logger.debug('Error in generating summary report %s', error.message);
424
+ return false;
425
+ }
426
+ return true;
427
+ });
428
+ }
429
+ function getConfigIDNode(configID) {
430
+ let rtnVal = 'UnKnown';
431
+ if (configID.split('/')[3] !== undefined) {
432
+ rtnVal = configID.split('/')[3];
433
+ }
434
+ return rtnVal;
435
+ }
436
+ function findConfigIDs(regexStr, all, MasterDict) {
437
+ const keys = Object.keys(MasterDict);
438
+ const configIDs = [];
439
+ keys.forEach((key) => {
440
+ if (new RegExp(regexStr).test(key)) {
441
+ configIDs.push(key);
442
+ }
443
+ });
444
+ return configIDs;
445
+ }
446
+ function getUniqueConfigAttrValues(configType, attr, MasterDict) {
447
+ const configIDs = findConfigIDs(`.*\\#${configType}\\_.*`, true, MasterDict);
448
+ const values = [];
449
+ configIDs.forEach((configID) => {
450
+ values.push(MasterDict[configID][attr]);
451
+ });
452
+ values.sort();
453
+ return values;
454
+ }
455
+ function getNameAttribute(resourceType) {
456
+ let rtnVal = 'name';
457
+ if (resourceType === 'SSLConfig' || resourceType === 'JAASAuthData')
458
+ rtnVal = 'alias';
459
+ return rtnVal;
460
+ }
461
+ function generateResourceReport(MasterDict) {
462
+ return __awaiter(this, void 0, void 0, function* () {
463
+ logger_1.logger.debug('Entering to the generateResourceReport function:');
464
+ try {
465
+ const PropertiesDict = readProperties();
466
+ const resourceReportDefinitions = {
467
+ DataSource: [
468
+ {
469
+ Title: 'Data Source',
470
+ ReportName: 'dataSourceRsc',
471
+ ConfigPath: [],
472
+ },
473
+ {
474
+ Title: 'Data Source Connection Pool',
475
+ ReportName: 'connectionPoolRsc',
476
+ ConfigPath: [
477
+ 'connectionPool',
478
+ ],
479
+ },
480
+ {
481
+ Title: 'Data Source Provider',
482
+ ReportName: 'providerReportRsc',
483
+ ConfigPath: [
484
+ 'provider',
485
+ ],
486
+ },
487
+ {
488
+ Title: 'Data Source Relational Resource Adpter',
489
+ ReportName: 'resourceAdapterRsc',
490
+ ConfigPath: [
491
+ 'relationalResourceAdapter',
492
+ ],
493
+ },
494
+ {
495
+ Title: 'Data Source Relational Resource Adpter Connector',
496
+ ReportName: 'connectorRsc',
497
+ ConfigPath: [
498
+ 'relationalResourceAdapter',
499
+ 'deploymentDescriptor',
500
+ ],
501
+ },
502
+ ],
503
+ J2CResourceAdapter: [
504
+ {
505
+ Title: 'J2C Resource Adapter',
506
+ ReportName: 'resourceAdapterRsc',
507
+ ConfigPath: [],
508
+ },
509
+ {
510
+ Title: 'J2C Resource Adpter Connector',
511
+ ReportName: 'connectorRsc',
512
+ ConfigPath: [
513
+ 'deploymentDescriptor',
514
+ ],
515
+ },
516
+ ],
517
+ JDBCProvider: [
518
+ {
519
+ Title: 'JDBC Provider',
520
+ ReportName: 'jdbcProviderRsc',
521
+ ConfigPath: [
522
+ '',
523
+ ],
524
+ },
525
+ ],
526
+ SIBus: [
527
+ {
528
+ Title: 'Service Integration Bus',
529
+ ReportName: 'sibRsc',
530
+ ConfigPath: [
531
+ '',
532
+ ],
533
+ },
534
+ ],
535
+ ObjectCacheInstance: [
536
+ {
537
+ Title: 'Object Cache',
538
+ ReportName: 'objectCacheRsc',
539
+ ConfigPath: [],
540
+ },
541
+ {
542
+ Title: 'Cache Provider',
543
+ ReportName: 'cacheProviderRsc',
544
+ ConfigPath: [
545
+ 'provider',
546
+ ],
547
+ },
548
+ ],
549
+ ServletCacheInstance: [
550
+ {
551
+ Title: 'Servlet Cache',
552
+ ReportName: 'objectCacheRsc',
553
+ ConfigPath: [],
554
+ },
555
+ {
556
+ Title: 'Cache Provider',
557
+ ReportName: 'cacheProviderRsc',
558
+ ConfigPath: [
559
+ 'provider',
560
+ ],
561
+ },
562
+ {
563
+ Title: 'Disk Cache custom Performance Settings',
564
+ ReportName: 'diskCacheCustomPerformanceSettingsRsc',
565
+ ConfigPath: [
566
+ 'diskCacheCustomPerformanceSettings',
567
+ ],
568
+ },
569
+ {
570
+ Title: 'Disk Cache Eviction Policy',
571
+ ReportName: 'diskCacheEvictionPolicyRsc',
572
+ ConfigPath: [
573
+ 'diskCacheEvictionPolicy',
574
+ ],
575
+ },
576
+ ],
577
+ Security: [
578
+ {
579
+ Title: 'Global Security',
580
+ ReportName: 'securityRsc',
581
+ ConfigPath: [],
582
+ },
583
+ {
584
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound',
585
+ ReportName: 'csiv2Rsc',
586
+ ConfigPath: [
587
+ 'CSI',
588
+ 'claims',
589
+ ],
590
+ },
591
+ {
592
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound ID assertion',
593
+ ReportName: 'csiv2idAssertRsc',
594
+ ConfigPath: [
595
+ 'CSI',
596
+ 'claims',
597
+ 'layers->IdentityAssertionLayer_',
598
+ ],
599
+ },
600
+ {
601
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound ID assertion QOP',
602
+ ReportName: 'csiv2idAssertQOPRsc',
603
+ ConfigPath: [
604
+ 'CSI',
605
+ 'claims',
606
+ 'layers->IdentityAssertionLayer_',
607
+ 'supportedQOP',
608
+ ],
609
+ },
610
+ {
611
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Message',
612
+ ReportName: 'csiv2MessageRsc',
613
+ ConfigPath: [
614
+ 'CSI',
615
+ 'claims',
616
+ 'layers->MessageLayer_',
617
+ ],
618
+ },
619
+ {
620
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Message supported QOP',
621
+ ReportName: 'csiv2MessageQOPRsc',
622
+ ConfigPath: [
623
+ 'CSI',
624
+ 'claims',
625
+ 'layers->MessageLayer_',
626
+ 'supportedQOP',
627
+ ],
628
+ },
629
+ {
630
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Message required QOP',
631
+ ReportName: 'csiv2MessageQOPRsc',
632
+ ConfigPath: [
633
+ 'CSI',
634
+ 'claims',
635
+ 'layers->MessageLayer_',
636
+ 'requiredQOP',
637
+ ],
638
+ },
639
+ {
640
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport',
641
+ ReportName: 'csiv2TransportRsc',
642
+ ConfigPath: [
643
+ 'CSI',
644
+ 'claims',
645
+ 'layers->TransportLayer_',
646
+ ],
647
+ },
648
+ {
649
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport Server Authentication',
650
+ ReportName: 'csiv2TransportSrvSAuthRsc',
651
+ ConfigPath: [
652
+ 'CSI',
653
+ 'claims',
654
+ 'layers->TransportLayer_',
655
+ 'serverAuthentication',
656
+ ],
657
+ },
658
+ {
659
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport supported QOP',
660
+ ReportName: 'csiv2TransportQOPRsc',
661
+ ConfigPath: [
662
+ 'CSI',
663
+ 'claims',
664
+ 'layers->TransportLayer_',
665
+ 'supportedQOP',
666
+ ],
667
+ },
668
+ {
669
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport required QOP',
670
+ ReportName: 'csiv2TransportQOPRsc',
671
+ ConfigPath: [
672
+ 'CSI',
673
+ 'claims',
674
+ 'layers->TransportLayer_',
675
+ 'requiredQOP',
676
+ ],
677
+ },
678
+ {
679
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound',
680
+ ReportName: 'csiv2Rsc',
681
+ ConfigPath: [
682
+ 'CSI',
683
+ 'performs',
684
+ ],
685
+ },
686
+ {
687
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound ID assertion',
688
+ ReportName: 'csiv2idAssertRsc',
689
+ ConfigPath: [
690
+ 'CSI',
691
+ 'performs',
692
+ 'layers->IdentityAssertionLayer_',
693
+ ],
694
+ },
695
+ {
696
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound ID assertion QOP',
697
+ ReportName: 'csiv2idAssertQOPRsc',
698
+ ConfigPath: [
699
+ 'CSI',
700
+ 'performs',
701
+ 'layers->IdentityAssertionLayer_',
702
+ 'supportedQOP',
703
+ ],
704
+ },
705
+ {
706
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Message',
707
+ ReportName: 'csiv2MessageRsc',
708
+ ConfigPath: [
709
+ 'CSI',
710
+ 'performs',
711
+ 'layers->MessageLayer_',
712
+ ],
713
+ },
714
+ {
715
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Message supported QOP',
716
+ ReportName: 'csiv2MessageQOPRsc',
717
+ ConfigPath: [
718
+ 'CSI',
719
+ 'performs',
720
+ 'layers->MessageLayer_',
721
+ 'supportedQOP',
722
+ ],
723
+ },
724
+ {
725
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Message required QOP',
726
+ ReportName: 'csiv2MessageQOPRsc',
727
+ ConfigPath: [
728
+ 'CSI',
729
+ 'performs',
730
+ 'layers->MessageLayer_',
731
+ 'requiredQOP',
732
+ ],
733
+ },
734
+ {
735
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport',
736
+ ReportName: 'csiv2TransportRsc',
737
+ ConfigPath: [
738
+ 'CSI',
739
+ 'performs',
740
+ 'layers->TransportLayer_',
741
+ ],
742
+ },
743
+ {
744
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport Server Authentication',
745
+ ReportName: 'csiv2TransportSrvSAuthRsc',
746
+ ConfigPath: [
747
+ 'CSI',
748
+ 'performs',
749
+ 'layers->TransportLayer_',
750
+ 'serverAuthentication',
751
+ ],
752
+ },
753
+ {
754
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport supported QOP',
755
+ ReportName: 'csiv2TransportQOPRsc',
756
+ ConfigPath: [
757
+ 'CSI',
758
+ 'performs',
759
+ 'layers->TransportLayer_',
760
+ 'supportedQOP',
761
+ ],
762
+ },
763
+ {
764
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport required QOP',
765
+ ReportName: 'csiv2TransportQOPRsc',
766
+ ConfigPath: [
767
+ 'CSI',
768
+ 'performs',
769
+ 'layers->TransportLayer_',
770
+ 'requiredQOP',
771
+ ],
772
+ },
773
+ {
774
+ Title: 'Certificate Expiration Monitor',
775
+ ReportName: 'certExpMonitorRsc',
776
+ ConfigPath: [
777
+ 'wsCertificateExpirationMonitor',
778
+ ],
779
+ },
780
+ {
781
+ Title: 'Certificate Expiration Monitor Notification',
782
+ ReportName: 'notificationRsc',
783
+ ConfigPath: [
784
+ 'wsCertificateExpirationMonitor',
785
+ 'wsNotification',
786
+ ],
787
+ },
788
+ {
789
+ Title: 'Certificate Expiration Monitor Scedule',
790
+ ReportName: 'scheduleRsc',
791
+ ConfigPath: [
792
+ 'wsCertificateExpirationMonitor',
793
+ 'wsSchedule',
794
+ ],
795
+ },
796
+ ],
797
+ SSLConfig: [
798
+ {
799
+ Title: 'SSL settings',
800
+ ReportName: 'sslConfig1Rsc',
801
+ ConfigPath: [
802
+ 'setting',
803
+ ],
804
+ },
805
+ {
806
+ Title: 'Ciphers',
807
+ ReportName: 'ciphers',
808
+ ConfigPath: [
809
+ 'setting',
810
+ 'trustStore',
811
+ ],
812
+ ReportFunc: 'ciphersReport',
813
+ },
814
+ {
815
+ Title: 'Trust Store',
816
+ ReportName: 'keyStoreRsc',
817
+ ConfigPath: [
818
+ 'setting',
819
+ 'trustStore',
820
+ ],
821
+ },
822
+ {
823
+ Title: 'Key Store',
824
+ ReportName: 'keyStoreRsc',
825
+ ConfigPath: [
826
+ 'setting',
827
+ 'keyStore',
828
+ ],
829
+ },
830
+ {
831
+ Title: 'Trust Manager',
832
+ ReportName: 'trustManagerRsc',
833
+ ConfigPath: [
834
+ 'setting',
835
+ 'trustManager',
836
+ ],
837
+ },
838
+ {
839
+ Title: 'Key Manager',
840
+ ReportName: 'keyManagerRsc',
841
+ ConfigPath: [
842
+ 'setting',
843
+ 'keyManager',
844
+ ],
845
+ },
846
+ ],
847
+ ResourceEnvironmentProvider: [
848
+ {
849
+ Title: 'Resource Environment Provider',
850
+ ReportName: 'rscEnvProviderRsc',
851
+ ConfigPath: [
852
+ '',
853
+ ],
854
+ },
855
+ ],
856
+ ResourceEnvEntry: [
857
+ {
858
+ Title: 'Resource Environment Entry',
859
+ ReportName: 'rscEnvEntryRsc',
860
+ ConfigPath: [],
861
+ },
862
+ {
863
+ Title: 'Referencable',
864
+ ReportName: 'referencableRsc',
865
+ ConfigPath: [
866
+ 'referenceable',
867
+ ],
868
+ },
869
+ {
870
+ Title: 'Resource Environment Provider',
871
+ ReportName: 'rscEnvProviderRsc',
872
+ ConfigPath: [
873
+ 'provider',
874
+ ],
875
+ },
876
+ ],
877
+ Application: [
878
+ {
879
+ Title: 'Application Deployment',
880
+ ReportName: 'applicationDeployment',
881
+ ConfigPath: [],
882
+ },
883
+ {
884
+ Title: 'Application Deployment Classloader',
885
+ ReportName: 'applicationClassloader',
886
+ ConfigPath: [
887
+ 'classloader',
888
+ ],
889
+ },
890
+ ],
891
+ ApplicationModules: [
892
+ {
893
+ Title: 'Application Module',
894
+ ReportName: 'applicationDeployment',
895
+ ConfigPath: [
896
+ 'modules',
897
+ ],
898
+ },
899
+ ],
900
+ JMSProvider: [
901
+ {
902
+ Title: 'JMS Provider',
903
+ ReportName: 'jmsProviderRsc',
904
+ ConfigPath: [
905
+ '',
906
+ ],
907
+ },
908
+ ],
909
+ GenericJMSConnectionFactory: [
910
+ {
911
+ Title: 'JMS Connection Factory',
912
+ ReportName: 'genericJMSConnectionFactoryRsc',
913
+ ConfigPath: [
914
+ '',
915
+ ],
916
+ },
917
+ {
918
+ Title: 'Session Pool',
919
+ ReportName: 'connectionPoolRsc',
920
+ ConfigPath: [
921
+ 'sessionPool',
922
+ ],
923
+ },
924
+ {
925
+ Title: 'JMS Provider',
926
+ ReportName: 'jmsProviderRsc',
927
+ ConfigPath: [
928
+ 'provider',
929
+ ],
930
+ },
931
+ {
932
+ Title: 'Connection Pool',
933
+ ReportName: 'connectionPoolRsc',
934
+ ConfigPath: [
935
+ 'connectionPool',
936
+ ],
937
+ },
938
+ {
939
+ Title: 'JAAS Mapping',
940
+ ReportName: 'mappingModuleRsc',
941
+ ConfigPath: [
942
+ 'mapping',
943
+ ],
944
+ },
945
+ {
946
+ Title: 'J2C Authentication Alias',
947
+ ReportName: 'jaasAuthDataRsc',
948
+ ConfigPath: [
949
+ 'mapping',
950
+ ],
951
+ ReportFunc: 'j2cAuthReport',
952
+ },
953
+ ],
954
+ GenericJMSDestination: [
955
+ {
956
+ Title: 'JMS Destination',
957
+ ReportName: 'genericJMSDestinationRsc',
958
+ ConfigPath: [],
959
+ },
960
+ {
961
+ Title: 'JMS Provider',
962
+ ReportName: 'jmsProviderRsc',
963
+ ConfigPath: [
964
+ 'provider',
965
+ ],
966
+ },
967
+ ],
968
+ J2CActivationSpec: [
969
+ {
970
+ Title: 'J2C Activation Specification',
971
+ ReportName: 'j2cActivationSpecRsc',
972
+ ConfigPath: [],
973
+ },
974
+ {
975
+ Title: 'Activation Specification',
976
+ ReportName: 'activationSpecRsc',
977
+ ConfigPath: [
978
+ 'activationSpec',
979
+ ],
980
+ },
981
+ ],
982
+ JAASAuthData: [
983
+ {
984
+ Title: 'JAAS Alias',
985
+ ReportName: 'jaasAuthDataRsc',
986
+ ConfigPath: [
987
+ '',
988
+ ],
989
+ },
990
+ ],
991
+ URLProvider: [
992
+ {
993
+ Title: 'URL Provider',
994
+ ReportName: 'urlProviderRsc',
995
+ ConfigPath: [
996
+ '',
997
+ ],
998
+ },
999
+ ],
1000
+ URL: [
1001
+ {
1002
+ Title: 'URL',
1003
+ ReportName: 'urlRsc',
1004
+ ConfigPath: [],
1005
+ },
1006
+ {
1007
+ Title: 'URL Provider',
1008
+ ReportName: 'urlProviderRsc',
1009
+ ConfigPath: [
1010
+ 'provider',
1011
+ ],
1012
+ },
1013
+ ],
1014
+ J2CConnectionFactory: [
1015
+ {
1016
+ Title: 'J2C Connection Factory',
1017
+ ReportName: 'j2cConnectionFactoryRsc',
1018
+ ConfigPath: [],
1019
+ },
1020
+ {
1021
+ Title: 'J2C CF Connection Pool',
1022
+ ReportName: 'connectionPoolRsc',
1023
+ ConfigPath: [
1024
+ 'connectionPool',
1025
+ ],
1026
+ },
1027
+ {
1028
+ Title: 'J2C Resource Adapter',
1029
+ ReportName: 'resourceAdapterRsc',
1030
+ ConfigPath: [
1031
+ 'provider',
1032
+ ],
1033
+ },
1034
+ {
1035
+ Title: 'J2C CF Connection Definition',
1036
+ ReportName: 'j2cConnectionFactoryConDefRsc',
1037
+ ConfigPath: [
1038
+ 'connectionDefinition',
1039
+ ],
1040
+ },
1041
+ ],
1042
+ J2CAdminObject: [
1043
+ {
1044
+ Title: 'J2C Admin Object',
1045
+ ReportName: 'j2cAdminObjectRsc',
1046
+ ConfigPath: [],
1047
+ },
1048
+ {
1049
+ Title: 'Admin Object',
1050
+ ReportName: 'adminObjectRsc',
1051
+ ConfigPath: [
1052
+ 'adminObject',
1053
+ ],
1054
+ },
1055
+ ],
1056
+ MQConnectionFactory: [
1057
+ {
1058
+ Title: 'MQ Connection Factory',
1059
+ ReportName: 'mqConnectionFactoryRsc',
1060
+ ConfigPath: [],
1061
+ },
1062
+ {
1063
+ Title: 'MQ Connection Pool',
1064
+ ReportName: 'connectionPoolRsc',
1065
+ ConfigPath: [
1066
+ 'connectionPool',
1067
+ ],
1068
+ },
1069
+ {
1070
+ Title: 'MQ Session Pool',
1071
+ ReportName: 'connectionPoolRsc',
1072
+ ConfigPath: [
1073
+ 'sessionPool',
1074
+ ],
1075
+ },
1076
+ {
1077
+ Title: 'JAAS Mapping',
1078
+ ReportName: 'mappingModuleRsc',
1079
+ ConfigPath: [
1080
+ 'mapping',
1081
+ ],
1082
+ },
1083
+ {
1084
+ Title: 'MQ Provider',
1085
+ ReportName: 'jmsProviderRsc',
1086
+ ConfigPath: [
1087
+ 'provider',
1088
+ ],
1089
+ },
1090
+ ],
1091
+ MQQueueConnectionFactory: [
1092
+ {
1093
+ Title: 'MQ Queue Connection Factory',
1094
+ ReportName: 'mqQueueConnectionFactoryRsc',
1095
+ ConfigPath: [],
1096
+ },
1097
+ {
1098
+ Title: 'MQ Connection Pool',
1099
+ ReportName: 'connectionPoolRsc',
1100
+ ConfigPath: [
1101
+ 'connectionPool',
1102
+ ],
1103
+ },
1104
+ {
1105
+ Title: 'MQ Session Pool',
1106
+ ReportName: 'connectionPoolRsc',
1107
+ ConfigPath: [
1108
+ 'sessionPool',
1109
+ ],
1110
+ },
1111
+ {
1112
+ Title: 'JAAS Mapping',
1113
+ ReportName: 'mappingModuleRsc',
1114
+ ConfigPath: [
1115
+ 'mapping',
1116
+ ],
1117
+ },
1118
+ {
1119
+ Title: 'MQ Provider',
1120
+ ReportName: 'jmsProviderRsc',
1121
+ ConfigPath: [
1122
+ 'provider',
1123
+ ],
1124
+ },
1125
+ ],
1126
+ MQTopicConnectionFactory: [
1127
+ {
1128
+ Title: 'MQ Topic Connection Factory',
1129
+ ReportName: 'mqTopicConnectionFactoryRsc',
1130
+ ConfigPath: [],
1131
+ },
1132
+ {
1133
+ Title: 'MQ Connection Pool',
1134
+ ReportName: 'connectionPoolRsc',
1135
+ ConfigPath: [
1136
+ 'connectionPool',
1137
+ ],
1138
+ },
1139
+ {
1140
+ Title: 'MQ Session Pool',
1141
+ ReportName: 'connectionPoolRsc',
1142
+ ConfigPath: [
1143
+ 'sessionPool',
1144
+ ],
1145
+ },
1146
+ {
1147
+ Title: 'JAAS Mapping',
1148
+ ReportName: 'mappingModuleRsc',
1149
+ ConfigPath: [
1150
+ 'mapping',
1151
+ ],
1152
+ },
1153
+ {
1154
+ Title: 'MQ Provider',
1155
+ ReportName: 'jmsProviderRsc',
1156
+ ConfigPath: [
1157
+ 'provider',
1158
+ ],
1159
+ },
1160
+ ],
1161
+ MQQueue: [
1162
+ {
1163
+ Title: 'MQ Queue ',
1164
+ ReportName: 'mqQueueRsc',
1165
+ ConfigPath: [],
1166
+ },
1167
+ {
1168
+ Title: 'MQ Provider',
1169
+ ReportName: 'jmsProviderRsc',
1170
+ ConfigPath: [
1171
+ 'provider',
1172
+ ],
1173
+ },
1174
+ ],
1175
+ MQTopic: [
1176
+ {
1177
+ Title: 'MQ Topic ',
1178
+ ReportName: 'mqTopicRsc',
1179
+ ConfigPath: [],
1180
+ },
1181
+ {
1182
+ Title: 'MQ Provider',
1183
+ ReportName: 'jmsProviderRsc',
1184
+ ConfigPath: [
1185
+ 'provider',
1186
+ ],
1187
+ },
1188
+ ],
1189
+ };
1190
+ const resourceTypes = ['DataSource', 'JDBCProvider', 'ObjectCacheInstance', 'ServletCacheInstance', 'SIBus', 'ResourceEnvEntry', 'JMSProvider', 'GenericJMSConnectionFactory', 'GenericJMSDestination', 'J2CActivationSpec', 'URLProvider', 'URL', 'J2CConnectionFactory', 'J2CAdminObject', 'MQConnectionFactory', 'MQQueueConnectionFactory', 'MQTopicConnectionFactory', 'MQQueue', 'MQTopic'];
1191
+ let reportingTable = '';
1192
+ resourceTypes.forEach((resourceType) => {
1193
+ let names = [];
1194
+ names = getUniqueConfigAttrValues(resourceType, getNameAttribute(resourceType), MasterDict);
1195
+ names.forEach((name) => {
1196
+ let rptParms = {};
1197
+ const rptTables = [];
1198
+ const nameAttr = getNameAttribute(resourceType);
1199
+ const configIDs = findConfigIDs(`.*\\#${resourceType}\\_.*`, true, MasterDict);
1200
+ const resources = [];
1201
+ const list = [];
1202
+ configIDs.forEach((configID) => {
1203
+ if (MasterDict[configID][nameAttr] === name) {
1204
+ resources.push(configID);
1205
+ }
1206
+ });
1207
+ resources.forEach((resource) => {
1208
+ if (MasterDict[resource][nameAttr] === name) {
1209
+ list.push(resource);
1210
+ }
1211
+ });
1212
+ rptParms = { ServerList: list };
1213
+ resourceReportDefinitions[resourceType].forEach((resourceReport) => {
1214
+ const rscRptTitle = `${resourceReport.Title}(${name})`;
1215
+ Object.assign(rptParms, { Title: rscRptTitle, ConfigPath: resourceReport.ConfigPath, ReportName: resourceReport.ReportName });
1216
+ if (PropertiesDict[`${resourceReport.ReportName}:attributes`] !== undefined) {
1217
+ Object.assign(rptParms, { Attributes: PropertiesDict[`${resourceReport.ReportName}:attributes`].split(',') });
1218
+ }
1219
+ const columnHeaders = [];
1220
+ const initialConfigIDs = [];
1221
+ const tableData = [];
1222
+ const rowHeaders = [];
1223
+ rptParms.ServerList.forEach((server) => {
1224
+ if (rptParms.ColumnHeaderFunc === undefined) {
1225
+ columnHeaders.push((MasterDict[server].name).concat(' (', getConfigIDNode(server), ', ', getConfigIDCell(server), ')'));
1226
+ }
1227
+ });
1228
+ rptParms.Attributes.forEach((attribute) => {
1229
+ const attributeValues = [];
1230
+ rptParms.ServerList.forEach((server) => {
1231
+ let config = {};
1232
+ try {
1233
+ const pathElements = [];
1234
+ pathElements.push(server);
1235
+ if ((rptParms.ConfigPath).length > 0) {
1236
+ rptParms.ConfigPath.forEach((ConfigPath) => {
1237
+ pathElements.push(ConfigPath);
1238
+ });
1239
+ }
1240
+ pathElements.forEach((pathElement) => {
1241
+ if (isConfigID(pathElement)) {
1242
+ if (MasterDict[pathElement] !== undefined) {
1243
+ config = MasterDict[pathElement];
1244
+ }
1245
+ }
1246
+ else if (MasterDict[config[pathElement]] !== undefined) {
1247
+ config = MasterDict[config[pathElement]];
1248
+ }
1249
+ });
1250
+ if (config !== undefined) {
1251
+ if (initialConfigIDs.hasOwnProperty(config.CONFIG_ID)) {
1252
+ initialConfigIDs.push(config.CONFIG_ID);
1253
+ }
1254
+ }
1255
+ }
1256
+ catch (error) {
1257
+ logger_1.logger.debug('error %s', error.message);
1258
+ }
1259
+ const keys = Object.keys(config);
1260
+ if (keys.length === 0) {
1261
+ attributeValues.push('configuration not defined');
1262
+ }
1263
+ else {
1264
+ keys.forEach((key) => {
1265
+ if (attribute === key) {
1266
+ attributeValues.push(config[attribute]);
1267
+ }
1268
+ });
1269
+ }
1270
+ });
1271
+ let attrSet = 'false';
1272
+ const BreakException = {};
1273
+ try {
1274
+ if (attributeValues.length !== 0) {
1275
+ attributeValues.forEach((attValue) => {
1276
+ if (attValue.indexOf(' not ') === -1) {
1277
+ attrSet = 'true';
1278
+ throw BreakException;
1279
+ }
1280
+ });
1281
+ }
1282
+ }
1283
+ catch (e) {
1284
+ if (e !== BreakException)
1285
+ throw e;
1286
+ }
1287
+ if (attrSet === 'true') {
1288
+ rowHeaders.push(attribute);
1289
+ tableData.push(attributeValues);
1290
+ }
1291
+ });
1292
+ const attributeDict = {
1293
+ RowHeaders: rowHeaders, TableData: tableData, Title: rptParms.Title, FirstColumnHeader: 'Attribute', ConfigIDs: initialConfigIDs, Type: 'Attributes',
1294
+ };
1295
+ Object.assign(rptParms, { ColumnHeaders: columnHeaders });
1296
+ rptTables.push(attributeDict);
1297
+ Object.assign(rptParms, { Tables: rptTables });
1298
+ const PropertyAttributes = [{ PropName: 'properties', PropPath: [] },
1299
+ { PropName: 'customProperties', PropPath: [] },
1300
+ { PropName: 'systemProperties', PropPath: [] },
1301
+ { PropName: 'environment', PropPath: [] },
1302
+ { PropName: 'properties', PropPath: ['adminObjectTemplateProps'] },
1303
+ { PropName: 'additionalTrustManagerAttrs', PropPath: [] },
1304
+ { PropName: 'webAuthAttrs', PropPath: [] },
1305
+ { PropName: 'trustProperties', PropPath: [] }, { PropName: 'resourceProperties', PropPath: ['connectionDefTemplateProps', 'resourceProperties'] },
1306
+ { PropName: 'resourceProperties', PropPath: ['propertySet'] },
1307
+ { PropName: 'resourceProperties', PropPath: ['activationSpecTemplateProps'] },
1308
+ ];
1309
+ const clusterDict = {};
1310
+ const initialconfigIDs = [];
1311
+ PropertyAttributes.forEach((propAttr) => {
1312
+ const propNames = [];
1313
+ rptParms.ServerList.forEach((server) => {
1314
+ const serverDict = {};
1315
+ let config = {};
1316
+ try {
1317
+ const pathElements = [];
1318
+ pathElements.push(server);
1319
+ if ((rptParms.ConfigPath).length > 0) {
1320
+ rptParms.ConfigPath.forEach((ConfigPath) => {
1321
+ pathElements.push(ConfigPath);
1322
+ });
1323
+ }
1324
+ if ((propAttr.PropPath).length > 0) {
1325
+ propAttr.PropPath.forEach((PropPath) => {
1326
+ pathElements.push(PropPath);
1327
+ });
1328
+ }
1329
+ pathElements.forEach((pathElement) => {
1330
+ if (isConfigID(pathElement)) {
1331
+ if (MasterDict[pathElement] !== undefined) {
1332
+ config = MasterDict[pathElement];
1333
+ }
1334
+ }
1335
+ else if (MasterDict[config[pathElement]] !== undefined) {
1336
+ config = MasterDict[config[pathElement]];
1337
+ }
1338
+ });
1339
+ }
1340
+ catch (error) {
1341
+ logger_1.logger.debug('error %s', error.message);
1342
+ }
1343
+ let props = config[propAttr.PropName];
1344
+ if (props !== undefined && props.length > 0) {
1345
+ if (isConfigID(props)) {
1346
+ props = props.slice(1, -1).split(' ');
1347
+ props.forEach((prop) => {
1348
+ let found = false;
1349
+ propNames.forEach((propname) => {
1350
+ if (propname === MasterDict[prop].name) {
1351
+ found = true;
1352
+ }
1353
+ });
1354
+ let value = '';
1355
+ if (!found) {
1356
+ propNames.push(MasterDict[prop].name);
1357
+ }
1358
+ if (MasterDict[prop].value !== undefined) {
1359
+ value = MasterDict[prop].value;
1360
+ }
1361
+ else {
1362
+ value = 'present but null';
1363
+ }
1364
+ Object.assign(serverDict, { [MasterDict[prop].name]: value });
1365
+ if (MasterDict[prop].CONFIG_ID !== undefined) {
1366
+ initialconfigIDs.push(MasterDict[prop].CONFIG_ID);
1367
+ }
1368
+ });
1369
+ }
1370
+ Object.assign(clusterDict, { [server]: serverDict });
1371
+ }
1372
+ });
1373
+ if (propNames.length > 0) {
1374
+ propNames.sort();
1375
+ const propertyTableData = [];
1376
+ propNames.forEach((propName) => {
1377
+ let row = [];
1378
+ rptParms.ServerList.forEach((server) => {
1379
+ if (server === 'NOT_FOUND') {
1380
+ row = 'Interceptor not configured in domain';
1381
+ }
1382
+ else if (clusterDict[server][propName] !== undefined) {
1383
+ row = clusterDict[server][propName];
1384
+ }
1385
+ else {
1386
+ row = 'Property not set';
1387
+ }
1388
+ });
1389
+ propertyTableData.push(row);
1390
+ });
1391
+ const propsDict = {
1392
+ RowHeaders: propNames,
1393
+ TableData: propertyTableData,
1394
+ Title: `${propAttr.PropName} for ${rptParms.Title}`,
1395
+ FirstColumnHeader: propAttr.PropName,
1396
+ ConfigIDs: initialconfigIDs,
1397
+ Type: 'Properties',
1398
+ };
1399
+ rptTables.push(propsDict);
1400
+ Object.assign(rptParms, { Tables: rptTables });
1401
+ }
1402
+ });
1403
+ });
1404
+ let tbody = '';
1405
+ const reportTables = rptParms.Tables;
1406
+ const colHeaders = rptParms.ColumnHeaders;
1407
+ reportingTable = `${reportingTable}<table style="table-layout:fixed" border="2" cellpadding="2" cellspacing="0" width=554>`;
1408
+ reportTables.forEach((table) => {
1409
+ const firstColumnHeader = table.FirstColumnHeader;
1410
+ const rowHeadersData = table.RowHeaders;
1411
+ const reportTableData = table.TableData;
1412
+ const title = table.Title;
1413
+ tbody = `${tbody}<tbody>`;
1414
+ tbody = `${tbody}<tr align="left"><td colspan="3" rowspan="1" bgcolor="#999999" valign="top"><big><big><b>${title}</b></big></big><br></td></tr>`;
1415
+ tbody = `${tbody}<tr><td class="wrapped" valign="top"><b>${firstColumnHeader}</b><b><br></b> </td>`;
1416
+ colHeaders.forEach((header) => {
1417
+ tbody = `${tbody}<td class="wrapped" bgcolor="#cccccc" valign="top"><b>${header}</b><b><br></b> </td>`;
1418
+ });
1419
+ tbody = `${tbody}<tr>`;
1420
+ let idx = 0;
1421
+ rowHeadersData.forEach((rowHeaderData) => {
1422
+ tbody = `${tbody}<tr><td class="wrapped" bgcolor="#cccccc" valign="top"><b>${rowHeadersData[idx]}</b><b><br></b> </td>`;
1423
+ tbody = `${tbody}<td class="wrapped" valign="top">${reportTableData[idx]}<br></td>`;
1424
+ tbody = `${tbody}</tr>`;
1425
+ idx += 1;
1426
+ });
1427
+ tbody = `${tbody}</tbody>`;
1428
+ });
1429
+ reportingTable = `${reportingTable}${tbody}</table></br>`;
1430
+ });
1431
+ });
1432
+ const resourceReport = `
1433
+ <!DOCTYPE html>
1434
+ <html>\n<head>\n<meta http-equiv="content-type" content="text/html; charset=UTF-8">\n<title>Cell Summary Report</title>\n</head>\n<body>
1435
+ <head><style type="text/css">
1436
+ #header{
1437
+ text-align: center;
1438
+ font-size:25px;
1439
+ }
1440
+ .subHeader {text-align: left;
1441
+ color:#000080;
1442
+ font-size:15px;
1443
+ }
1444
+ table {
1445
+ font-family: arial, sans-serif;
1446
+ border-collapse: collapse;
1447
+ width: 100%;
1448
+ }
1449
+ th {
1450
+ border: 1px solid black;
1451
+ text-align: center;
1452
+ padding: 8px;
1453
+ font-size: 15px;
1454
+ }
1455
+ td{
1456
+ border:1px solid black;
1457
+ text-align: left;
1458
+ padding: 8px;
1459
+ font-size: 14px;
1460
+ word-wrap: break-word;
1461
+ }
1462
+ table{
1463
+ border: 2px solid black;
1464
+ }
1465
+ text{
1466
+ color:black;
1467
+ font-size: 13px;
1468
+ }
1469
+ #syndicatorId{
1470
+ background-color:#F0F8FF;
1471
+ }
1472
+ #rowId{
1473
+ size:"1";
1474
+ width:"100%" ;
1475
+ color:"black";
1476
+ }
1477
+ #subRowId{
1478
+ size:"2";
1479
+ width:"100%" ;
1480
+ color:"black";
1481
+ }
1482
+ </style>
1483
+ </head>
1484
+ <body>
1485
+ <div><h1>Resources Report ${moment_1.default().format('MM/DD/YY h:mm:ss')}</h1>
1486
+ <div class="Div1">
1487
+ <svg width="20" height="20">
1488
+ <rect width="20" height="20" style="fill:#87CEEB;stroke-width:3;stroke:rgb(0,0,0)" />
1489
+ </svg>
1490
+ Difference in configuration details<br>
1491
+ </div>
1492
+ <div class="Div2">
1493
+ <svg width="20" height="20">
1494
+ <rect width="20" height="20" style="fill:#E9E612;stroke-width:3;stroke:rgb(0,0,0)" />
1495
+ </svg>
1496
+ Only one configuration found.
1497
+ </div>
1498
+ <style>
1499
+ .Div1{
1500
+ position: absolute;
1501
+ top: 28px;
1502
+ right: 16px;
1503
+ font-size: 15px;
1504
+ }
1505
+ .Div2 {
1506
+ position: absolute;
1507
+ top: 55px;
1508
+ right: 73px;
1509
+ font-size: 15px;
1510
+ }
1511
+ </style>
1512
+ ${reportingTable}
1513
+ </div>Note, the output contains only limited resources data.
1514
+ </br>Some resources related to SSLConfig, Security, J2CResourceAdapter, ResourceEnvironmentProvider, JAASAuthData will be added in further updates.
1515
+ <script>
1516
+ var oTable = document.getElementById('differential-report');
1517
+ var rowLength = oTable.rows.length;
1518
+ for (i = 0; i < rowLength; i++){
1519
+ var oCells = oTable.rows.item(i).cells;
1520
+ var cellLength = oCells.length;
1521
+ for(var j = 0; j < cellLength; j++){
1522
+ if(cellLength > 1){
1523
+ var cellOne = oCells.item(1).innerHTML.match();
1524
+ var cellSceond = oCells.item(2).innerHTML.match();
1525
+ if((oCells.item(1).innerHTML.replaceAll(cellOne ? cellOne[0] : cellOne, '') !== oCells.item(2).innerHTML.replaceAll(cellSceond ? cellSceond[0] : cellSceond, ''))
1526
+ && oCells.item(0).innerText.length !==1 && oCells.item(1).innerText.length !== 1 && oCells.item(2).innerText.length !== 1){
1527
+ oCells.item(2).bgColor ='Sky blue';
1528
+ }else if ((oCells.item(1).innerText.length) !== (oCells.item(2).innerText.length) && (oCells.item(2).innerText.length) !== 1) {
1529
+ oCells.item(2).bgColor ='Yellow';
1530
+ }
1531
+ else if ((oCells.item(1).innerText.length) !== (oCells.item(2).innerText.length) && (oCells.item(1).innerText.length) !== 1) {
1532
+ oCells.item(1).bgColor ='Yellow';
1533
+ }
1534
+ }
1535
+ }
1536
+ }
1537
+ </script>
1538
+ </body>
1539
+ </html>`;
1540
+ try {
1541
+ const outputFileName = utils_1.getFileNameWithTimeStamp(constants_1.CONSTANT_VALUES.resourceReport);
1542
+ const outputFileLocation = `${path_1.default.resolve(utils_1.getStoreDir(), constants_1.CONSTANT_VALUES.outputFileLocation)}/${constants_1.CONSTANT_VALUES.reportCFG}`;
1543
+ const writeFileResponse = yield filesServices_1.fileServices.writeFile(resourceReport, outputFileLocation, `${outputFileName}.${constants_1.FileType.HTML}`);
1544
+ logger_1.logger.info(utils_1.message('EXPORT_RESOURCE_REPORT_SUCCESS', { 0: writeFileResponse }));
1545
+ }
1546
+ catch (error) {
1547
+ logger_1.logger.debug('Error in writing file %o', error);
1548
+ return false;
1549
+ }
1550
+ }
1551
+ catch (error) {
1552
+ logger_1.logger.debug('Error in generating resource report %s', error.message);
1553
+ return false;
1554
+ }
1555
+ return true;
1556
+ });
1557
+ }
1558
+ exports.differentialReportUtils = {
1559
+ readConfigs,
1560
+ addCellSuffix,
1561
+ generateSummaryReport,
1562
+ generateResourceReport,
1563
+ };
1564
+ //# sourceMappingURL=differential-report-utils.js.map