@transcend-io/cli 10.0.1 → 10.1.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 (412) hide show
  1. package/README.md +16 -5
  2. package/dist/{RequestDataSilo-_Iv44M9u.mjs → RequestDataSilo-Rrc2dL9g.mjs} +4 -1
  3. package/dist/RequestDataSilo-Rrc2dL9g.mjs.map +1 -0
  4. package/dist/{app-BfTrk2nc.mjs → app-Cx8-4u8K.mjs} +21 -21
  5. package/dist/{app-BfTrk2nc.mjs.map → app-Cx8-4u8K.mjs.map} +1 -1
  6. package/dist/approvePrivacyRequests-Bjq5cPSI.mjs +2 -0
  7. package/dist/approvePrivacyRequests-Bjq5cPSI.mjs.map +1 -0
  8. package/dist/bin/bash-complete.mjs +1 -1
  9. package/dist/bin/cli.mjs +1 -1
  10. package/dist/bin/deprecated-command.mjs +1 -1
  11. package/dist/buildXdiSyncEndpoint-DWs9ImOw.mjs +9 -0
  12. package/dist/buildXdiSyncEndpoint-DWs9ImOw.mjs.map +1 -0
  13. package/dist/bulkRestartRequests-sie3tM3W.mjs +2 -0
  14. package/dist/bulkRestartRequests-sie3tM3W.mjs.map +1 -0
  15. package/dist/bulkRetryEnrichers-C1RrxiTR.mjs +2 -0
  16. package/dist/bulkRetryEnrichers-C1RrxiTR.mjs.map +1 -0
  17. package/dist/cancelPrivacyRequests-DmvFijq_.mjs +2 -0
  18. package/dist/cancelPrivacyRequests-DmvFijq_.mjs.map +1 -0
  19. package/dist/{codecs-BE3Wmoh8.mjs → codecs-CeDPaLYa.mjs} +1 -1
  20. package/dist/{codecs-BE3Wmoh8.mjs.map → codecs-CeDPaLYa.mjs.map} +1 -1
  21. package/dist/collectCsvFilesOrExit-D-csvd13.mjs +2 -0
  22. package/dist/collectCsvFilesOrExit-D-csvd13.mjs.map +1 -0
  23. package/dist/collectParquetFilesOrExit-C8qT5_57.mjs +2 -0
  24. package/dist/collectParquetFilesOrExit-C8qT5_57.mjs.map +1 -0
  25. package/dist/{command-BXxoAjFo.mjs → command-rzZKmlky.mjs} +2 -2
  26. package/dist/{command-BXxoAjFo.mjs.map → command-rzZKmlky.mjs.map} +1 -1
  27. package/dist/commands/admin/chunk-csv/worker.d.mts +48 -0
  28. package/dist/commands/admin/chunk-csv/worker.d.mts.map +1 -0
  29. package/dist/commands/admin/chunk-csv/worker.mjs +2 -0
  30. package/dist/commands/admin/chunk-csv/worker.mjs.map +1 -0
  31. package/dist/commands/admin/parquet-to-csv/worker.d.mts +25 -0
  32. package/dist/commands/admin/parquet-to-csv/worker.d.mts.map +1 -0
  33. package/dist/commands/admin/parquet-to-csv/worker.mjs +2 -0
  34. package/dist/commands/admin/parquet-to-csv/worker.mjs.map +1 -0
  35. package/dist/{consentManagersToBusinessEntities-BDgOFga7.mjs → consentManagersToBusinessEntities-D1bdBgnA.mjs} +2 -2
  36. package/dist/{consentManagersToBusinessEntities-BDgOFga7.mjs.map → consentManagersToBusinessEntities-D1bdBgnA.mjs.map} +1 -1
  37. package/dist/{constants-lIvXgkdp.mjs → constants-DYbzl8QH.mjs} +1 -1
  38. package/dist/{constants-lIvXgkdp.mjs.map → constants-DYbzl8QH.mjs.map} +1 -1
  39. package/dist/constants-XOsAW1__.mjs +2 -0
  40. package/dist/constants-XOsAW1__.mjs.map +1 -0
  41. package/dist/{constants-AFtS5Nad.mjs → constants-mjLYTIJm.mjs} +2 -2
  42. package/dist/{constants-AFtS5Nad.mjs.map → constants-mjLYTIJm.mjs.map} +1 -1
  43. package/dist/{context-CdSyuBlf.mjs → context-bkKpii_t.mjs} +1 -1
  44. package/dist/{context-CdSyuBlf.mjs.map → context-bkKpii_t.mjs.map} +1 -1
  45. package/dist/createExtraKeyHandler-Jp5XpTJi.mjs +14 -0
  46. package/dist/createExtraKeyHandler-Jp5XpTJi.mjs.map +1 -0
  47. package/dist/{dataFlowsToDataSilos-NhvBw1iy.mjs → dataFlowsToDataSilos-DUj1NhOt.mjs} +1 -1
  48. package/dist/dataFlowsToDataSilos-DUj1NhOt.mjs.map +1 -0
  49. package/dist/{dataSilo-DrFetFXw.mjs → dataSilo-Dvi8-PkH.mjs} +1 -1
  50. package/dist/{dataSilo-DrFetFXw.mjs.map → dataSilo-Dvi8-PkH.mjs.map} +1 -1
  51. package/dist/{dataSubject-y_aXI0pa.mjs → dataSubject-CF784Ug0.mjs} +1 -1
  52. package/dist/{dataSubject-y_aXI0pa.mjs.map → dataSubject-CF784Ug0.mjs.map} +1 -1
  53. package/dist/{done-input-validation-DLR0-MJ7.mjs → done-input-validation-C5rgR0Wr.mjs} +1 -1
  54. package/dist/{done-input-validation-DLR0-MJ7.mjs.map → done-input-validation-C5rgR0Wr.mjs.map} +1 -1
  55. package/dist/downloadPrivacyRequestFiles-GUbd_PRc.mjs +2 -0
  56. package/dist/downloadPrivacyRequestFiles-GUbd_PRc.mjs.map +1 -0
  57. package/dist/{extractClientError-DPjv09EH.mjs → extractClientError-X9wJVqGq.mjs} +1 -1
  58. package/dist/{extractClientError-DPjv09EH.mjs.map → extractClientError-X9wJVqGq.mjs.map} +1 -1
  59. package/dist/{fetchAllRequestEnrichers-CK-kk5eg.mjs → fetchAllRequestEnrichers-Bt97Bb7F.mjs} +5 -5
  60. package/dist/fetchAllRequestEnrichers-Bt97Bb7F.mjs.map +1 -0
  61. package/dist/fetchAllRequestIdentifiers-BXx3rSee.mjs +10 -0
  62. package/dist/fetchAllRequestIdentifiers-BXx3rSee.mjs.map +1 -0
  63. package/dist/fetchAllRequests-xGgt_STo.mjs +2 -0
  64. package/dist/fetchAllRequests-xGgt_STo.mjs.map +1 -0
  65. package/dist/fetchRequestDataSilo-0UvyeL60.mjs +2 -0
  66. package/dist/fetchRequestDataSilo-0UvyeL60.mjs.map +1 -0
  67. package/dist/{fetchRequestFilesForRequest-BbxrEKFK.mjs → fetchRequestFilesForRequest-CJH2iB-P.mjs} +4 -4
  68. package/dist/fetchRequestFilesForRequest-CJH2iB-P.mjs.map +1 -0
  69. package/dist/generateCrossAccountApiKeys-DztJoLQS.mjs +2 -0
  70. package/dist/generateCrossAccountApiKeys-DztJoLQS.mjs.map +1 -0
  71. package/dist/impl-B-PzeHxN.mjs +2 -0
  72. package/dist/impl-B-PzeHxN.mjs.map +1 -0
  73. package/dist/impl-B6TXE2oE.mjs +4 -0
  74. package/dist/impl-B6TXE2oE.mjs.map +1 -0
  75. package/dist/impl-BBKJIP0Q.mjs +2 -0
  76. package/dist/impl-BBKJIP0Q.mjs.map +1 -0
  77. package/dist/impl-BBnnC5xq.mjs +2 -0
  78. package/dist/impl-BBnnC5xq.mjs.map +1 -0
  79. package/dist/impl-BGGm947r2.mjs +2 -0
  80. package/dist/impl-BGGm947r2.mjs.map +1 -0
  81. package/dist/{impl-fqOKTw5J.mjs → impl-BKrNGF2F.mjs} +2 -2
  82. package/dist/{impl-fqOKTw5J.mjs.map → impl-BKrNGF2F.mjs.map} +1 -1
  83. package/dist/{impl-DGiPB5Vq2.mjs → impl-BMnXA_Vd.mjs} +2 -2
  84. package/dist/impl-BMnXA_Vd.mjs.map +1 -0
  85. package/dist/{impl-P_NDC3cX.mjs → impl-BRiRfzgu.mjs} +2 -2
  86. package/dist/{impl-P_NDC3cX.mjs.map → impl-BRiRfzgu.mjs.map} +1 -1
  87. package/dist/{impl-DGuwD_qz.mjs → impl-BSKl6rC6.mjs} +2 -2
  88. package/dist/{impl-DGuwD_qz.mjs.map → impl-BSKl6rC6.mjs.map} +1 -1
  89. package/dist/impl-BVHfSIVG.mjs +2 -0
  90. package/dist/{impl-CMmyv1cl.mjs.map → impl-BVHfSIVG.mjs.map} +1 -1
  91. package/dist/impl-BVnfUDUm.mjs +2 -0
  92. package/dist/impl-BVnfUDUm.mjs.map +1 -0
  93. package/dist/impl-BfeWet_F2.mjs +2 -0
  94. package/dist/impl-BfeWet_F2.mjs.map +1 -0
  95. package/dist/{impl-CSChmq_t2.mjs → impl-BffzTHKU.mjs} +2 -2
  96. package/dist/impl-BffzTHKU.mjs.map +1 -0
  97. package/dist/impl-BxOydpyJ.mjs +2 -0
  98. package/dist/impl-BxOydpyJ.mjs.map +1 -0
  99. package/dist/{impl-BUC4ZelU.mjs → impl-C-u5h8We.mjs} +2 -2
  100. package/dist/{impl-BUC4ZelU.mjs.map → impl-C-u5h8We.mjs.map} +1 -1
  101. package/dist/{impl-KDuBh4bu2.mjs → impl-C3DXXn8M.mjs} +2 -2
  102. package/dist/impl-C3DXXn8M.mjs.map +1 -0
  103. package/dist/{impl-BOUm7wly2.mjs → impl-CC0rkA9s.mjs} +2 -2
  104. package/dist/impl-CC0rkA9s.mjs.map +1 -0
  105. package/dist/impl-CODwodEc.mjs +7 -0
  106. package/dist/impl-CODwodEc.mjs.map +1 -0
  107. package/dist/impl-CPIMsZg-.mjs +2 -0
  108. package/dist/{impl-DEWXA_QC.mjs.map → impl-CPIMsZg-.mjs.map} +1 -1
  109. package/dist/{impl-c7rUQYDc2.mjs → impl-CZsYoSZQ.mjs} +2 -2
  110. package/dist/impl-CZsYoSZQ.mjs.map +1 -0
  111. package/dist/impl-CnHiD4zU.mjs +2 -0
  112. package/dist/impl-CnHiD4zU.mjs.map +1 -0
  113. package/dist/impl-CpJljZV2.mjs +2 -0
  114. package/dist/impl-CpJljZV2.mjs.map +1 -0
  115. package/dist/impl-Cpndlxar.mjs +4 -0
  116. package/dist/impl-Cpndlxar.mjs.map +1 -0
  117. package/dist/{impl-CNez1OAw.mjs → impl-CqH3YYuv.mjs} +2 -2
  118. package/dist/{impl-CNez1OAw.mjs.map → impl-CqH3YYuv.mjs.map} +1 -1
  119. package/dist/{impl-MpkLBntW.mjs → impl-CvJtt8H2.mjs} +2 -2
  120. package/dist/{impl-MpkLBntW.mjs.map → impl-CvJtt8H2.mjs.map} +1 -1
  121. package/dist/impl-Cw10WeUv.mjs +2 -0
  122. package/dist/impl-Cw10WeUv.mjs.map +1 -0
  123. package/dist/{impl-CCUsnhoW2.mjs → impl-Cy8-6_Oo2.mjs} +2 -2
  124. package/dist/{impl-CCUsnhoW2.mjs.map → impl-Cy8-6_Oo2.mjs.map} +1 -1
  125. package/dist/{impl-CNykdy3e2.mjs → impl-DJ4VCAcc.mjs} +2 -2
  126. package/dist/impl-DJ4VCAcc.mjs.map +1 -0
  127. package/dist/impl-DKAV-8XC.mjs +3 -0
  128. package/dist/impl-DKAV-8XC.mjs.map +1 -0
  129. package/dist/{impl-JThkrXiI2.mjs → impl-D_AxguFh2.mjs} +2 -2
  130. package/dist/{impl-JThkrXiI2.mjs.map → impl-D_AxguFh2.mjs.map} +1 -1
  131. package/dist/{impl-D-cp0CYr.mjs → impl-DaK9UOwL.mjs} +2 -2
  132. package/dist/{impl-D-cp0CYr.mjs.map → impl-DaK9UOwL.mjs.map} +1 -1
  133. package/dist/{impl-Cgg_bv7j.mjs → impl-DfVep2mE.mjs} +2 -2
  134. package/dist/{impl-Cgg_bv7j.mjs.map → impl-DfVep2mE.mjs.map} +1 -1
  135. package/dist/impl-DhXQb3bm.mjs +2 -0
  136. package/dist/impl-DhXQb3bm.mjs.map +1 -0
  137. package/dist/impl-DpGVNllB.mjs +2 -0
  138. package/dist/impl-DpGVNllB.mjs.map +1 -0
  139. package/dist/impl-DpwyYsfg.mjs +2 -0
  140. package/dist/impl-DpwyYsfg.mjs.map +1 -0
  141. package/dist/impl-DvrSuAJv.mjs +12 -0
  142. package/dist/impl-DvrSuAJv.mjs.map +1 -0
  143. package/dist/{impl-CqXFyvgV2.mjs → impl-Dw9uW5zy2.mjs} +2 -2
  144. package/dist/{impl-CqXFyvgV2.mjs.map → impl-Dw9uW5zy2.mjs.map} +1 -1
  145. package/dist/impl-PdIU1pLr2.mjs +2 -0
  146. package/dist/impl-PdIU1pLr2.mjs.map +1 -0
  147. package/dist/{impl-D9NjIwEi2.mjs → impl-StdJMCiM.mjs} +2 -2
  148. package/dist/impl-StdJMCiM.mjs.map +1 -0
  149. package/dist/impl-daUiLV3c.mjs +2 -0
  150. package/dist/impl-daUiLV3c.mjs.map +1 -0
  151. package/dist/{impl-Rt3C_fDF.mjs → impl-iGMjSniP.mjs} +2 -2
  152. package/dist/{impl-Rt3C_fDF.mjs.map → impl-iGMjSniP.mjs.map} +1 -1
  153. package/dist/impl-ogUHfunr.mjs +2 -0
  154. package/dist/impl-ogUHfunr.mjs.map +1 -0
  155. package/dist/impl-uwkj-RbF.mjs +2 -0
  156. package/dist/impl-uwkj-RbF.mjs.map +1 -0
  157. package/dist/{impl-DGzvE8aJ.mjs → impl-yvc0y1uO.mjs} +2 -2
  158. package/dist/{impl-DGzvE8aJ.mjs.map → impl-yvc0y1uO.mjs.map} +1 -1
  159. package/dist/index.d.mts +664 -3851
  160. package/dist/index.d.mts.map +1 -1
  161. package/dist/index.mjs +4 -78
  162. package/dist/index.mjs.map +1 -1
  163. package/dist/{inquirer-BgNcicZ4.mjs → inquirer-DyRwhvoh.mjs} +2 -2
  164. package/dist/{inquirer-BgNcicZ4.mjs.map → inquirer-DyRwhvoh.mjs.map} +1 -1
  165. package/dist/{listFiles-qzyQMaYH.mjs → listFiles-Odj7j2E1.mjs} +1 -1
  166. package/dist/{listFiles-qzyQMaYH.mjs.map → listFiles-Odj7j2E1.mjs.map} +1 -1
  167. package/dist/{logger-B-LXIf3U.mjs → logger-Bj782ZYD.mjs} +1 -1
  168. package/dist/{logger-B-LXIf3U.mjs.map → logger-Bj782ZYD.mjs.map} +1 -1
  169. package/dist/markRequestDataSiloIdsCompleted-DJSICILv.mjs +2 -0
  170. package/dist/markRequestDataSiloIdsCompleted-DJSICILv.mjs.map +1 -0
  171. package/dist/markSilentPrivacyRequests-ytCzpUkY.mjs +2 -0
  172. package/dist/markSilentPrivacyRequests-ytCzpUkY.mjs.map +1 -0
  173. package/dist/notifyPrivacyRequestsAdditionalTime-D8v68eAg.mjs +2 -0
  174. package/dist/notifyPrivacyRequestsAdditionalTime-D8v68eAg.mjs.map +1 -0
  175. package/dist/parquetToCsvOneFile-bgEgRoAi.mjs +6 -0
  176. package/dist/parquetToCsvOneFile-bgEgRoAi.mjs.map +1 -0
  177. package/dist/parseAttributesFromString-B8h4DudO.mjs +2 -0
  178. package/dist/{parseAttributesFromString-CZStzJc0.mjs.map → parseAttributesFromString-B8h4DudO.mjs.map} +1 -1
  179. package/dist/parseVariablesFromString-CvoeZZ75.mjs +23 -0
  180. package/dist/parseVariablesFromString-CvoeZZ75.mjs.map +1 -0
  181. package/dist/pullAllDatapoints-CqgqXRbp.mjs +45 -0
  182. package/dist/pullAllDatapoints-CqgqXRbp.mjs.map +1 -0
  183. package/dist/pullChunkedCustomSiloOutstandingIdentifiers-DaYEDZ66.mjs +2 -0
  184. package/dist/pullChunkedCustomSiloOutstandingIdentifiers-DaYEDZ66.mjs.map +1 -0
  185. package/dist/pullConsentManagerMetrics-BO0hYPDG.mjs +2 -0
  186. package/dist/pullConsentManagerMetrics-BO0hYPDG.mjs.map +1 -0
  187. package/dist/pullManualEnrichmentIdentifiersToCsv-BNuhsG20.mjs +2 -0
  188. package/dist/pullManualEnrichmentIdentifiersToCsv-BNuhsG20.mjs.map +1 -0
  189. package/dist/pullTranscendConfiguration-DSyMRyPe.mjs +58 -0
  190. package/dist/pullTranscendConfiguration-DSyMRyPe.mjs.map +1 -0
  191. package/dist/{pullUnstructuredSubDataPointRecommendations-DZd2q6S2.mjs → pullUnstructuredSubDataPointRecommendations-jE-tdoVK.mjs} +4 -4
  192. package/dist/pullUnstructuredSubDataPointRecommendations-jE-tdoVK.mjs.map +1 -0
  193. package/dist/pushCronIdentifiersFromCsv-D9Hzna0W.mjs +2 -0
  194. package/dist/pushCronIdentifiersFromCsv-D9Hzna0W.mjs.map +1 -0
  195. package/dist/pushManualEnrichmentIdentifiersFromCsv-BiR7PS_d.mjs +2 -0
  196. package/dist/pushManualEnrichmentIdentifiersFromCsv-BiR7PS_d.mjs.map +1 -0
  197. package/dist/{readCsv-CyOL7eCc.mjs → readCsv-0PIlJQCN.mjs} +1 -1
  198. package/dist/{readCsv-CyOL7eCc.mjs.map → readCsv-0PIlJQCN.mjs.map} +1 -1
  199. package/dist/{readTranscendYaml-D-J1ilS0.mjs → readTranscendYaml-DVkQL2SC.mjs} +2 -2
  200. package/dist/{readTranscendYaml-D-J1ilS0.mjs.map → readTranscendYaml-DVkQL2SC.mjs.map} +1 -1
  201. package/dist/removeUnverifiedRequestIdentifiers-B0Gx09XN.mjs +35 -0
  202. package/dist/removeUnverifiedRequestIdentifiers-B0Gx09XN.mjs.map +1 -0
  203. package/dist/{request-CAsR6CMY.mjs → request-SLqRySNU.mjs} +1 -1
  204. package/dist/{request-CAsR6CMY.mjs.map → request-SLqRySNU.mjs.map} +1 -1
  205. package/dist/retryRequestDataSilos-DFjFhhC0.mjs +2 -0
  206. package/dist/retryRequestDataSilos-DFjFhhC0.mjs.map +1 -0
  207. package/dist/skipPreflightJobs-Bm8lZZk-.mjs +2 -0
  208. package/dist/skipPreflightJobs-Bm8lZZk-.mjs.map +1 -0
  209. package/dist/skipRequestDataSilos-B5FByYTj.mjs +2 -0
  210. package/dist/skipRequestDataSilos-B5FByYTj.mjs.map +1 -0
  211. package/dist/streamPrivacyRequestsToCsv-CBzh80oQ.mjs +2 -0
  212. package/dist/streamPrivacyRequestsToCsv-CBzh80oQ.mjs.map +1 -0
  213. package/dist/syncCodePackages-BOS5foh6.mjs +2 -0
  214. package/dist/syncCodePackages-BOS5foh6.mjs.map +1 -0
  215. package/dist/syncEnrichers-C9HcWCrs.mjs +3 -0
  216. package/dist/syncEnrichers-C9HcWCrs.mjs.map +1 -0
  217. package/dist/updateConsentManagerVersionToLatest-X1HAM_IX.mjs +2 -0
  218. package/dist/updateConsentManagerVersionToLatest-X1HAM_IX.mjs.map +1 -0
  219. package/dist/uploadConsents-BP5XILuw.mjs +2 -0
  220. package/dist/uploadConsents-BP5XILuw.mjs.map +1 -0
  221. package/dist/uploadCookiesFromCsv-B42cZgYW.mjs +2 -0
  222. package/dist/uploadCookiesFromCsv-B42cZgYW.mjs.map +1 -0
  223. package/dist/uploadDataFlowsFromCsv-D2V567pP.mjs +2 -0
  224. package/dist/uploadDataFlowsFromCsv-D2V567pP.mjs.map +1 -0
  225. package/dist/uploadPrivacyRequestsFromCsv-Czc3vGfJ.mjs +2 -0
  226. package/dist/uploadPrivacyRequestsFromCsv-Czc3vGfJ.mjs.map +1 -0
  227. package/dist/{validateTranscendAuth-1W1IylqE.mjs → validateTranscendAuth-DCwAtgvh.mjs} +2 -2
  228. package/dist/{validateTranscendAuth-1W1IylqE.mjs.map → validateTranscendAuth-DCwAtgvh.mjs.map} +1 -1
  229. package/dist/{writeCsv-B51ulrVl.mjs → writeCsv-Da8NUe1V.mjs} +1 -1
  230. package/dist/{writeCsv-B51ulrVl.mjs.map → writeCsv-Da8NUe1V.mjs.map} +1 -1
  231. package/package.json +10 -7
  232. package/dist/RateCounter-DFL_mnk2.mjs +0 -2
  233. package/dist/RateCounter-DFL_mnk2.mjs.map +0 -1
  234. package/dist/RequestDataSilo-_Iv44M9u.mjs.map +0 -1
  235. package/dist/approvePrivacyRequests-CWGZR2N6.mjs +0 -2
  236. package/dist/approvePrivacyRequests-CWGZR2N6.mjs.map +0 -1
  237. package/dist/assessment-BDywVaGR.mjs +0 -284
  238. package/dist/assessment-BDywVaGR.mjs.map +0 -1
  239. package/dist/bluebird-CUitXgsY.mjs +0 -2
  240. package/dist/bluebird-CUitXgsY.mjs.map +0 -1
  241. package/dist/buildXdiSyncEndpoint-Cb-pvpak.mjs +0 -9
  242. package/dist/buildXdiSyncEndpoint-Cb-pvpak.mjs.map +0 -1
  243. package/dist/bulkRestartRequests-CKF_xpN0.mjs +0 -2
  244. package/dist/bulkRestartRequests-CKF_xpN0.mjs.map +0 -1
  245. package/dist/bulkRetryEnrichers-B-Szmin-.mjs +0 -2
  246. package/dist/bulkRetryEnrichers-B-Szmin-.mjs.map +0 -1
  247. package/dist/cancelPrivacyRequests-DNiL13E_.mjs +0 -2
  248. package/dist/cancelPrivacyRequests-DNiL13E_.mjs.map +0 -1
  249. package/dist/codecs-Dx_vGxsl.mjs +0 -2
  250. package/dist/codecs-Dx_vGxsl.mjs.map +0 -1
  251. package/dist/constants-CeMiHaHx.mjs +0 -2
  252. package/dist/constants-CeMiHaHx.mjs.map +0 -1
  253. package/dist/createExtraKeyHandler-tubeaEjA.mjs +0 -23
  254. package/dist/createExtraKeyHandler-tubeaEjA.mjs.map +0 -1
  255. package/dist/createPreferenceAccessTokens-DqmFctn3.mjs +0 -10
  256. package/dist/createPreferenceAccessTokens-DqmFctn3.mjs.map +0 -1
  257. package/dist/createSombraGotInstance-D1Il9zUE.mjs +0 -10
  258. package/dist/createSombraGotInstance-D1Il9zUE.mjs.map +0 -1
  259. package/dist/dataFlowsToDataSilos-NhvBw1iy.mjs.map +0 -1
  260. package/dist/downloadPrivacyRequestFiles-DlpgxqHF.mjs +0 -2
  261. package/dist/downloadPrivacyRequestFiles-DlpgxqHF.mjs.map +0 -1
  262. package/dist/extractErrorMessage-CPnTsT1S.mjs +0 -2
  263. package/dist/extractErrorMessage-CPnTsT1S.mjs.map +0 -1
  264. package/dist/fetchAllActions-BJsPdnxy.mjs +0 -832
  265. package/dist/fetchAllActions-BJsPdnxy.mjs.map +0 -1
  266. package/dist/fetchAllDataFlows-D248lO6_.mjs +0 -2
  267. package/dist/fetchAllDataFlows-D248lO6_.mjs.map +0 -1
  268. package/dist/fetchAllPreferenceTopics-ForE9GpZ.mjs +0 -36
  269. package/dist/fetchAllPreferenceTopics-ForE9GpZ.mjs.map +0 -1
  270. package/dist/fetchAllPurposes-ZdkO2fMp.mjs +0 -29
  271. package/dist/fetchAllPurposes-ZdkO2fMp.mjs.map +0 -1
  272. package/dist/fetchAllPurposesAndPreferences-DD6OyA5t.mjs +0 -2
  273. package/dist/fetchAllPurposesAndPreferences-DD6OyA5t.mjs.map +0 -1
  274. package/dist/fetchAllRequestEnrichers-CK-kk5eg.mjs.map +0 -1
  275. package/dist/fetchAllRequestIdentifiers-DrFFOt0m.mjs +0 -10
  276. package/dist/fetchAllRequestIdentifiers-DrFFOt0m.mjs.map +0 -1
  277. package/dist/fetchAllRequests-DNQQsY4s.mjs +0 -2
  278. package/dist/fetchAllRequests-DNQQsY4s.mjs.map +0 -1
  279. package/dist/fetchApiKeys-DjOr44xA.mjs +0 -33
  280. package/dist/fetchApiKeys-DjOr44xA.mjs.map +0 -1
  281. package/dist/fetchCatalogs-BM4FCbcS.mjs +0 -12
  282. package/dist/fetchCatalogs-BM4FCbcS.mjs.map +0 -1
  283. package/dist/fetchConsentManagerId-CFkg3-RS.mjs +0 -321
  284. package/dist/fetchConsentManagerId-CFkg3-RS.mjs.map +0 -1
  285. package/dist/fetchIdentifiers-pjQV4vUg.mjs +0 -54
  286. package/dist/fetchIdentifiers-pjQV4vUg.mjs.map +0 -1
  287. package/dist/fetchRequestDataSilo-P4yA7Lyc.mjs +0 -2
  288. package/dist/fetchRequestDataSilo-P4yA7Lyc.mjs.map +0 -1
  289. package/dist/fetchRequestFilesForRequest-BbxrEKFK.mjs.map +0 -1
  290. package/dist/generateCrossAccountApiKeys-Bxc_dzMG.mjs +0 -33
  291. package/dist/generateCrossAccountApiKeys-Bxc_dzMG.mjs.map +0 -1
  292. package/dist/impl-4ltdSmpl2.mjs +0 -4
  293. package/dist/impl-4ltdSmpl2.mjs.map +0 -1
  294. package/dist/impl-B19fH75P.mjs +0 -12
  295. package/dist/impl-B19fH75P.mjs.map +0 -1
  296. package/dist/impl-BBMjv5YQ.mjs +0 -2
  297. package/dist/impl-BBMjv5YQ.mjs.map +0 -1
  298. package/dist/impl-BKH3QRLi.mjs +0 -3
  299. package/dist/impl-BKH3QRLi.mjs.map +0 -1
  300. package/dist/impl-BOUm7wly2.mjs.map +0 -1
  301. package/dist/impl-BhTCp0kg.mjs +0 -2
  302. package/dist/impl-BhTCp0kg.mjs.map +0 -1
  303. package/dist/impl-BlHU1bbJ2.mjs +0 -2
  304. package/dist/impl-BlHU1bbJ2.mjs.map +0 -1
  305. package/dist/impl-BwjguKHC.mjs +0 -4
  306. package/dist/impl-BwjguKHC.mjs.map +0 -1
  307. package/dist/impl-C2o0eDzJ.mjs +0 -2
  308. package/dist/impl-C2o0eDzJ.mjs.map +0 -1
  309. package/dist/impl-C8HKnjw82.mjs +0 -2
  310. package/dist/impl-C8HKnjw82.mjs.map +0 -1
  311. package/dist/impl-CCc-wXqD.mjs +0 -2
  312. package/dist/impl-CCc-wXqD.mjs.map +0 -1
  313. package/dist/impl-CMmyv1cl.mjs +0 -2
  314. package/dist/impl-CNykdy3e2.mjs.map +0 -1
  315. package/dist/impl-CSChmq_t2.mjs.map +0 -1
  316. package/dist/impl-Ce9K4OCp.mjs +0 -2
  317. package/dist/impl-Ce9K4OCp.mjs.map +0 -1
  318. package/dist/impl-ChCqHkOc2.mjs +0 -2
  319. package/dist/impl-ChCqHkOc2.mjs.map +0 -1
  320. package/dist/impl-CqEwwWeD.mjs +0 -2
  321. package/dist/impl-CqEwwWeD.mjs.map +0 -1
  322. package/dist/impl-CxLSJk2P.mjs +0 -2
  323. package/dist/impl-CxLSJk2P.mjs.map +0 -1
  324. package/dist/impl-CzU9WTiW.mjs +0 -2
  325. package/dist/impl-CzU9WTiW.mjs.map +0 -1
  326. package/dist/impl-D9NjIwEi2.mjs.map +0 -1
  327. package/dist/impl-DEWXA_QC.mjs +0 -2
  328. package/dist/impl-DGiPB5Vq2.mjs.map +0 -1
  329. package/dist/impl-DTp9OQIZ.mjs +0 -7
  330. package/dist/impl-DTp9OQIZ.mjs.map +0 -1
  331. package/dist/impl-DhscnXSw.mjs +0 -2
  332. package/dist/impl-DhscnXSw.mjs.map +0 -1
  333. package/dist/impl-Dk7MdX-1.mjs +0 -2
  334. package/dist/impl-Dk7MdX-1.mjs.map +0 -1
  335. package/dist/impl-DsNPvet4.mjs +0 -2
  336. package/dist/impl-DsNPvet4.mjs.map +0 -1
  337. package/dist/impl-DxUFb0vv.mjs +0 -2
  338. package/dist/impl-DxUFb0vv.mjs.map +0 -1
  339. package/dist/impl-KDuBh4bu2.mjs.map +0 -1
  340. package/dist/impl-c7rUQYDc2.mjs.map +0 -1
  341. package/dist/impl-oiBTZqQS2.mjs +0 -2
  342. package/dist/impl-oiBTZqQS2.mjs.map +0 -1
  343. package/dist/impl-tbGnvKFm.mjs +0 -2
  344. package/dist/impl-tbGnvKFm.mjs.map +0 -1
  345. package/dist/makeGraphQLRequest-Cq26A_Lq.mjs +0 -2
  346. package/dist/makeGraphQLRequest-Cq26A_Lq.mjs.map +0 -1
  347. package/dist/markRequestDataSiloIdsCompleted-DzqJ5MNY.mjs +0 -2
  348. package/dist/markRequestDataSiloIdsCompleted-DzqJ5MNY.mjs.map +0 -1
  349. package/dist/markSilentPrivacyRequests-BKQUu6Ep.mjs +0 -2
  350. package/dist/markSilentPrivacyRequests-BKQUu6Ep.mjs.map +0 -1
  351. package/dist/mergeTranscendInputs-DGC4xUGu.mjs +0 -2
  352. package/dist/mergeTranscendInputs-DGC4xUGu.mjs.map +0 -1
  353. package/dist/notifyPrivacyRequestsAdditionalTime-TEHAJe4C.mjs +0 -2
  354. package/dist/notifyPrivacyRequestsAdditionalTime-TEHAJe4C.mjs.map +0 -1
  355. package/dist/package-C4J38oR1.mjs +0 -2
  356. package/dist/package-C4J38oR1.mjs.map +0 -1
  357. package/dist/parquetToCsvOneFile-DZVKXrjn.mjs +0 -6
  358. package/dist/parquetToCsvOneFile-DZVKXrjn.mjs.map +0 -1
  359. package/dist/parseAttributesFromString-CZStzJc0.mjs +0 -2
  360. package/dist/pullAllDatapoints-Cntwuzw7.mjs +0 -45
  361. package/dist/pullAllDatapoints-Cntwuzw7.mjs.map +0 -1
  362. package/dist/pullChunkedCustomSiloOutstandingIdentifiers-BT-GZpT1.mjs +0 -2
  363. package/dist/pullChunkedCustomSiloOutstandingIdentifiers-BT-GZpT1.mjs.map +0 -1
  364. package/dist/pullConsentManagerMetrics-FnhPEszu.mjs +0 -2
  365. package/dist/pullConsentManagerMetrics-FnhPEszu.mjs.map +0 -1
  366. package/dist/pullManualEnrichmentIdentifiersToCsv-B_4REnga.mjs +0 -2
  367. package/dist/pullManualEnrichmentIdentifiersToCsv-B_4REnga.mjs.map +0 -1
  368. package/dist/pullTranscendConfiguration-CqsgEf9A.mjs +0 -80
  369. package/dist/pullTranscendConfiguration-CqsgEf9A.mjs.map +0 -1
  370. package/dist/pullUnstructuredSubDataPointRecommendations-DZd2q6S2.mjs.map +0 -1
  371. package/dist/pushCronIdentifiersFromCsv-D2saGR5i.mjs +0 -2
  372. package/dist/pushCronIdentifiersFromCsv-D2saGR5i.mjs.map +0 -1
  373. package/dist/pushManualEnrichmentIdentifiersFromCsv-DOvAzMyt.mjs +0 -2
  374. package/dist/pushManualEnrichmentIdentifiersFromCsv-DOvAzMyt.mjs.map +0 -1
  375. package/dist/removeUnverifiedRequestIdentifiers-ChlwRmhd.mjs +0 -35
  376. package/dist/removeUnverifiedRequestIdentifiers-ChlwRmhd.mjs.map +0 -1
  377. package/dist/retryRequestDataSilos-DnwXA1YZ.mjs +0 -2
  378. package/dist/retryRequestDataSilos-DnwXA1YZ.mjs.map +0 -1
  379. package/dist/skipPreflightJobs-jK5lNlmv.mjs +0 -2
  380. package/dist/skipPreflightJobs-jK5lNlmv.mjs.map +0 -1
  381. package/dist/skipRequestDataSilos-DQGroOos.mjs +0 -2
  382. package/dist/skipRequestDataSilos-DQGroOos.mjs.map +0 -1
  383. package/dist/splitCsvToList-BRq_CIfd.mjs +0 -2
  384. package/dist/splitCsvToList-BRq_CIfd.mjs.map +0 -1
  385. package/dist/streamPrivacyRequestsToCsv-BK07Bm-T.mjs +0 -2
  386. package/dist/streamPrivacyRequestsToCsv-BK07Bm-T.mjs.map +0 -1
  387. package/dist/syncCodePackages-F-97FNjo.mjs +0 -232
  388. package/dist/syncCodePackages-F-97FNjo.mjs.map +0 -1
  389. package/dist/syncCookies-BxY36BeJ.mjs +0 -2
  390. package/dist/syncCookies-BxY36BeJ.mjs.map +0 -1
  391. package/dist/syncDataFlows-Cx5LZCen.mjs +0 -2
  392. package/dist/syncDataFlows-Cx5LZCen.mjs.map +0 -1
  393. package/dist/syncTemplates-BrH7Yr0V.mjs +0 -23
  394. package/dist/syncTemplates-BrH7Yr0V.mjs.map +0 -1
  395. package/dist/time-Bl_c3W8U.mjs +0 -2
  396. package/dist/time-Bl_c3W8U.mjs.map +0 -1
  397. package/dist/types-B4CVJCpj.mjs +0 -2
  398. package/dist/types-B4CVJCpj.mjs.map +0 -1
  399. package/dist/updateConsentManagerVersionToLatest-C221vAAw.mjs +0 -2
  400. package/dist/updateConsentManagerVersionToLatest-C221vAAw.mjs.map +0 -1
  401. package/dist/uploadConsents-BbR7_sSt.mjs +0 -2
  402. package/dist/uploadConsents-BbR7_sSt.mjs.map +0 -1
  403. package/dist/uploadCookiesFromCsv-roHWekOP.mjs +0 -2
  404. package/dist/uploadCookiesFromCsv-roHWekOP.mjs.map +0 -1
  405. package/dist/uploadDataFlowsFromCsv-DcTbrsv2.mjs +0 -2
  406. package/dist/uploadDataFlowsFromCsv-DcTbrsv2.mjs.map +0 -1
  407. package/dist/uploadPrivacyRequestsFromCsv-BUGTS-pY.mjs +0 -17
  408. package/dist/uploadPrivacyRequestsFromCsv-BUGTS-pY.mjs.map +0 -1
  409. package/dist/uploadSiloDiscoveryResults-D2fK92WR.mjs +0 -20
  410. package/dist/uploadSiloDiscoveryResults-D2fK92WR.mjs.map +0 -1
  411. package/dist/withPreferenceRetry-xLMZyTq9.mjs +0 -2
  412. package/dist/withPreferenceRetry-xLMZyTq9.mjs.map +0 -1
@@ -1,832 +0,0 @@
1
- import{t as e}from"./logger-B-LXIf3U.mjs";import{n as t,t as n}from"./bluebird-CUitXgsY.mjs";import{a as r,d as i,f as a,l as o,n as s,r as c,s as l,t as u}from"./dataSilo-DrFetFXw.mjs";import{a as d,c as f,n as p,o as m,t as h}from"./dataSubject-y_aXI0pa.mjs";import{a as g,c as _,f as v}from"./fetchConsentManagerId-CFkg3-RS.mjs";import{t as y}from"./makeGraphQLRequest-Cq26A_Lq.mjs";import{AttributeKeyType as b,EnricherType as x,RequestAction as ee}from"@transcend-io/privacy-types";import{chunk as S,difference as C,flatten as w,keyBy as te,sortBy as ne,uniq as re}from"lodash-es";import{apply as ie}from"@transcend-io/type-utils";import T from"colors";import{gql as E}from"graphql-request";import D from"cli-progress";const O=E`
2
- query TranscendCliFetchPolicies($url: String!) {
3
- privacyCenterPolicies(lookup: { url: $url }) {
4
- id
5
- title {
6
- defaultMessage
7
- }
8
- disableEffectiveOn
9
- disabledLocales
10
- versions {
11
- effectiveOn
12
- content {
13
- defaultMessage
14
- }
15
- }
16
- }
17
- }
18
- `,ae=E`
19
- mutation TranscendCliUpdatePolicies($policies: [PolicyInput!]!, $privacyCenterId: ID!) {
20
- updatePolicies(
21
- input: { privacyCenterId: $privacyCenterId, policies: $policies, skipPublish: true }
22
- ) {
23
- clientMutationId
24
- }
25
- }
26
- `,oe=E`
27
- query TranscendCliFetchMessage {
28
- translatedMessages {
29
- id
30
- defaultMessage
31
- description
32
- targetReactIntlId
33
- translations {
34
- locale
35
- value
36
- }
37
- }
38
- }
39
- `,se=E`
40
- mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
41
- updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
42
- clientMutationId
43
- }
44
- }
45
- `,k=E`
46
- query TranscendCliPrompts($first: Int!, $offset: Int!, $filterBy: PromptFiltersInput) {
47
- prompts(
48
- first: $first
49
- orderBy: [{ field: title, direction: ASC }]
50
- offset: $offset
51
- filterBy: $filterBy
52
- ) {
53
- nodes {
54
- id
55
- title
56
- status
57
- content
58
- temperature
59
- topP
60
- maxTokensToSample
61
- }
62
- }
63
- }
64
- `,A=E`
65
- query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
66
- promptPartials(first: $first, offset: $offset) {
67
- nodes {
68
- id
69
- title
70
- content
71
- }
72
- }
73
- }
74
- `,j=E`
75
- query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
76
- promptGroups(first: $first, offset: $offset) {
77
- nodes {
78
- id
79
- title
80
- description
81
- prompts {
82
- title
83
- }
84
- }
85
- }
86
- }
87
- `,M=E`
88
- query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
89
- promptsWithVariables(input: $input) {
90
- prompts {
91
- id
92
- title
93
- content
94
- status
95
- temperature
96
- topP
97
- maxTokensToSample
98
- responseFormat
99
- }
100
- promptPartials {
101
- id
102
- title
103
- content
104
- slug
105
- }
106
- calculatedVariables {
107
- data
108
- name
109
- }
110
- runtimeVariables {
111
- name
112
- }
113
- }
114
- }
115
- `,ce=E`
116
- mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
117
- updatePrompts(input: $input) {
118
- clientMutationId
119
- }
120
- }
121
- `,le=E`
122
- mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
123
- createPrompt(input: $input) {
124
- clientMutationId
125
- prompt {
126
- id
127
- }
128
- }
129
- }
130
- `,ue=E`
131
- mutation TranscendCliUpdatePromptPartials($input: UpdatePromptPartialsInput!) {
132
- updatePromptPartials(input: $input) {
133
- clientMutationId
134
- }
135
- }
136
- `,de=E`
137
- mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
138
- createPromptPartial(input: $input) {
139
- clientMutationId
140
- promptPartial {
141
- id
142
- }
143
- }
144
- }
145
- `,fe=E`
146
- mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
147
- updatePromptGroups(input: $input) {
148
- clientMutationId
149
- }
150
- }
151
- `,pe=E`
152
- mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
153
- createPromptGroup(input: $input) {
154
- clientMutationId
155
- promptGroup {
156
- id
157
- }
158
- }
159
- }
160
- `,N=E`
161
- query TranscendCliTeams($first: Int!, $offset: Int!, $input: TeamFiltersInput) {
162
- teams(
163
- first: $first
164
- offset: $offset
165
- filterBy: $input
166
- orderBy: [{ field: createdAt, direction: ASC }, { field: name, direction: ASC }]
167
- ) {
168
- nodes {
169
- id
170
- name
171
- description
172
- ssoDepartment
173
- ssoGroup
174
- ssoTitle
175
- users {
176
- id
177
- email
178
- name
179
- }
180
- scopes {
181
- id
182
- name
183
- title
184
- }
185
- }
186
- }
187
- }
188
- `,me=E`
189
- mutation TranscendCliCreateTeam($input: TeamInput!) {
190
- createTeam(input: $input) {
191
- team {
192
- id
193
- name
194
- }
195
- }
196
- }
197
- `,he=E`
198
- mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
199
- updateTeam(input: $input) {
200
- team {
201
- id
202
- name
203
- }
204
- }
205
- }
206
- `,P=E`
207
- query TranscendCliGlobalActionItemCollectionss(
208
- $filterBy: GlobalActionItemCollectionFiltersInput!
209
- ) {
210
- globalActionItemCollections(filterBy: $filterBy) {
211
- nodes {
212
- id
213
- title
214
- description
215
- hidden
216
- productLine
217
- }
218
- }
219
- }
220
- `,ge=E`
221
- mutation TranscendCliCreateActionItemCollection($input: CreateActionItemCollectionInput!) {
222
- createActionItemCollection(input: $input) {
223
- created {
224
- id
225
- title
226
- }
227
- }
228
- }
229
- `,_e=E`
230
- mutation TranscendCliUpdateActionItemCollection($input: UpdateActionItemCollectionInput!) {
231
- updateActionItemCollection(input: $input) {
232
- clientMutationId
233
- }
234
- }
235
- `,F=E`
236
- query TranscendCliAttributes($first: Int!, $offset: Int!) {
237
- attributeKeys(first: $first, offset: $offset, useMaster: false) {
238
- nodes {
239
- id
240
- isCustom
241
- description
242
- enabledOn
243
- name
244
- type
245
- }
246
- }
247
- }
248
- `,ve=E`
249
- mutation TranscendCliCreateAttributeValues($input: [CreateAttributeValuesInput!]!) {
250
- createAttributeValues(input: $input) {
251
- clientMutationId
252
- }
253
- }
254
- `,ye=E`
255
- mutation TranscendCliUpdateAttributeValues($input: [UpdateAttributeValueInput!]!) {
256
- updateAttributeValues(input: $input) {
257
- clientMutationId
258
- }
259
- }
260
- `,be=E`
261
- mutation TranscendCliDeleteAttributeValue($id: ID!) {
262
- deleteAttributeValue(id: $id) {
263
- clientMutationId
264
- }
265
- }
266
- `,I=E`
267
- query TranscendCliAttributeValues($first: Int!, $offset: Int!, $attributeKeyId: ID!) {
268
- attributeValues(
269
- first: $first
270
- offset: $offset
271
- useMaster: false
272
- filterBy: { attributeKeys: [$attributeKeyId] }
273
- ) {
274
- nodes {
275
- id
276
- name
277
- description
278
- color
279
- }
280
- }
281
- }
282
- `,xe=E`
283
- mutation TranscendCliCreateAttribute(
284
- $name: String!
285
- $type: AttributeKeyType!
286
- $description: String
287
- $enabledOn: [AttributeSupportedResourceType!]
288
- ) {
289
- createAttributeKey(
290
- input: { name: $name, type: $type, description: $description, enabledOn: $enabledOn }
291
- ) {
292
- clientMutationId
293
- attributeKey {
294
- id
295
- }
296
- }
297
- }
298
- `,Se=E`
299
- mutation TranscendCliCreateAttribute(
300
- $attributeKeyId: ID!
301
- $description: String
302
- $enabledOn: [AttributeSupportedResourceType!]
303
- ) {
304
- updateAttributeKey(
305
- input: { id: $attributeKeyId, description: $description, enabledOn: $enabledOn }
306
- ) {
307
- clientMutationId
308
- attributeKey {
309
- id
310
- }
311
- }
312
- }
313
- `,Ce=E`
314
- mutation TranscendCliSetResourceAttributes($input: SetResourceAttributesInput!) {
315
- setResourceAttributes(input: $input) {
316
- clientMutationId
317
- }
318
- }
319
- `,L=E`
320
- query TranscendCliBusinessEntities($first: Int!, $offset: Int!) {
321
- businessEntities(
322
- first: $first
323
- offset: $offset
324
- orderBy: [{ field: createdAt, direction: ASC }, { field: title, direction: ASC }]
325
- useMaster: false
326
- ) {
327
- nodes {
328
- id
329
- title
330
- description
331
- dataProtectionOfficerName
332
- dataProtectionOfficerEmail
333
- address
334
- headquarterCountry
335
- headquarterSubDivision
336
- attributeValues {
337
- name
338
- attributeKey {
339
- name
340
- }
341
- }
342
- }
343
- }
344
- }
345
- `,we=E`
346
- mutation TranscendCliCreateBusinessEntity($input: CreateBusinessEntityInput!) {
347
- createBusinessEntity(input: $input) {
348
- businessEntity {
349
- id
350
- title
351
- description
352
- dataProtectionOfficerName
353
- dataProtectionOfficerEmail
354
- address
355
- headquarterCountry
356
- headquarterSubDivision
357
- attributeValues {
358
- name
359
- attributeKey {
360
- name
361
- }
362
- }
363
- }
364
- }
365
- }
366
- `,Te=E`
367
- mutation TranscendCliUpdateBusinessEntities($input: [UpdateBusinessEntityInput!]!) {
368
- updateBusinessEntities(input: { businessEntities: $input }) {
369
- clientMutationId
370
- }
371
- }
372
- `,R=E`
373
- query TranscendCliActions($first: Int!, $offset: Int!) {
374
- actions(
375
- first: $first
376
- offset: $offset
377
- useMaster: false
378
- orderBy: [{ field: type, direction: ASC }]
379
- ) {
380
- nodes {
381
- id
382
- type
383
- skipSecondaryIfNoFiles
384
- skipDownloadableStep
385
- requiresReview
386
- regionList
387
- regionDetectionMethod
388
- waitingPeriod
389
- }
390
- }
391
- }
392
- `,Ee=E`
393
- mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
394
- updateAction(input: $input) {
395
- clientMutationId
396
- }
397
- }
398
- `,z=E`
399
- query TranscendCliGlobalActionItems(
400
- $first: Int!
401
- $offset: Int!
402
- $filterBy: GlobalActionItemFiltersInput!
403
- ) {
404
- globalActionItems(first: $first, offset: $offset, filterBy: $filterBy) {
405
- nodes {
406
- ids
407
- count
408
- teams {
409
- id
410
- name
411
- }
412
- customerExperienceActionItemIds
413
- users {
414
- id
415
- email
416
- }
417
- collections {
418
- title
419
- id
420
- }
421
- dueDate
422
- priority
423
- titles
424
- resolved
425
- notes
426
- links
427
- type
428
- additionalContexts {
429
- iconOverride
430
- requestId
431
- dataSiloId
432
- requestType
433
- latestAirgapVersion
434
- parentTitle
435
- }
436
- attributeValues {
437
- name
438
- attributeKey {
439
- name
440
- }
441
- }
442
- }
443
- }
444
- }
445
- `,De=E`
446
- mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
447
- updateActionItems(input: $input) {
448
- clientMutationId
449
- }
450
- }
451
- `,Oe=E`
452
- mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
453
- createActionItems(input: $input) {
454
- clientMutationId
455
- }
456
- }
457
- `,B=E`
458
- query TranscendCliFetchPrivacyCenterId($url: String!) {
459
- privacyCenter(lookup: { url: $url }) {
460
- id
461
- }
462
- }
463
- `,V=E`
464
- query TranscendCliDeployedPrivacyCenterUrl {
465
- organization {
466
- deployedPrivacyCenterUrl
467
- }
468
- }
469
- `,ke=E`
470
- query TranscendCliFetchPrivacyCenters($url: String!) {
471
- privacyCenter(lookup: { url: $url }) {
472
- id
473
- url
474
- isDisabled
475
- showPrivacyRequestButton
476
- showPolicies
477
- showTrackingTechnologies
478
- showCookies
479
- showDataFlows
480
- showConsentManager
481
- showManageYourPrivacy
482
- showMarketingPreferences
483
- locales
484
- defaultLocale
485
- preferBrowserDefaultLocale
486
- supportEmail
487
- replyToEmail
488
- useNoReplyEmailAddress
489
- useCustomEmailDomain
490
- transformAccessReportJsonToCsv
491
- themeStr
492
- }
493
- }
494
- `,Ae=E`
495
- mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
496
- updatePrivacyCenter(input: $input) {
497
- clientMutationId
498
- }
499
- }
500
- `,H=E`
501
- query TranscendCliAgents($first: Int!, $offset: Int!, $filterBy: AgentFiltersInput) {
502
- agents(
503
- first: $first
504
- offset: $offset
505
- filterBy: $filterBy
506
- orderBy: [{ field: createdAt, direction: ASC }, { field: name, direction: ASC }]
507
- ) {
508
- nodes {
509
- id
510
- name
511
- agentId
512
- instructions
513
- description
514
- codeInterpreterEnabled
515
- retrievalEnabled
516
- prompt {
517
- title
518
- }
519
- largeLanguageModel {
520
- name
521
- client
522
- }
523
- teams {
524
- name
525
- }
526
- owners {
527
- email
528
- }
529
- agentFunctions {
530
- name
531
- }
532
- agentFiles {
533
- name
534
- }
535
- }
536
- }
537
- }
538
- `,je=E`
539
- mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
540
- createAgent(input: $input) {
541
- agent {
542
- id
543
- name
544
- agentId
545
- }
546
- }
547
- }
548
- `,Me=E`
549
- mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
550
- updateAgents(input: $input) {
551
- clientMutationId
552
- }
553
- }
554
- `,U=E`
555
- query TranscendCliAgentFiles($first: Int!, $offset: Int!, $filterBy: AgentFileFiltersInput) {
556
- agentFiles(
557
- first: $first
558
- offset: $offset
559
- filterBy: $filterBy
560
- orderBy: [{ field: createdAt, direction: ASC }, { field: name, direction: ASC }]
561
- ) {
562
- nodes {
563
- id
564
- name
565
- description
566
- fileId
567
- size
568
- purpose
569
- initialFileName
570
- }
571
- }
572
- }
573
- `,Ne=E`
574
- mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
575
- createAgentFile(input: $input) {
576
- agentFile {
577
- id
578
- name
579
- fileId
580
- initialFileName
581
- }
582
- }
583
- }
584
- `,Pe=E`
585
- mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
586
- updateAgentFiles(input: $input) {
587
- clientMutationId
588
- }
589
- }
590
- `,W=E`
591
- query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
592
- agentFunctions(
593
- first: $first
594
- offset: $offset
595
- orderBy: [{ field: createdAt, direction: ASC }, { field: name, direction: ASC }]
596
- ) {
597
- nodes {
598
- id
599
- name
600
- description
601
- parameters
602
- }
603
- }
604
- }
605
- `,Fe=E`
606
- mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
607
- createAgentFunction(input: $input) {
608
- agentFunction {
609
- id
610
- name
611
- }
612
- }
613
- }
614
- `,Ie=E`
615
- mutation TranscendCliUpdateAgentFunctions($input: UpdateAgentFunctionsInput!) {
616
- updateAgentFunctions(input: $input) {
617
- clientMutationId
618
- }
619
- }
620
- `,G=E`
621
- query TranscendCliVendors($first: Int!, $offset: Int!) {
622
- vendors(
623
- first: $first
624
- offset: $offset
625
- useMaster: false
626
- isExportCsv: true
627
- orderBy: [{ field: createdAt, direction: ASC }, { field: title, direction: ASC }]
628
- ) {
629
- nodes {
630
- id
631
- title
632
- description
633
- dataProcessingAgreementLink
634
- contactName
635
- contactEmail
636
- contactPhone
637
- address
638
- headquarterCountry
639
- headquarterSubDivision
640
- websiteUrl
641
- businessEntity {
642
- title
643
- }
644
- teams {
645
- name
646
- }
647
- owners {
648
- email
649
- }
650
- attributeValues {
651
- attributeKey {
652
- name
653
- }
654
- name
655
- }
656
- }
657
- }
658
- }
659
- `,Le=E`
660
- mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
661
- createVendor(input: $input) {
662
- vendor {
663
- id
664
- title
665
- }
666
- }
667
- }
668
- `,Re=E`
669
- mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
670
- updateVendors(input: $input) {
671
- clientMutationId
672
- }
673
- }
674
- `,K=E`
675
- query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
676
- dataSubCategories(first: $first, offset: $offset, isExportCsv: true, useMaster: false) {
677
- nodes {
678
- id
679
- name
680
- category
681
- description
682
- regex
683
- teams {
684
- name
685
- }
686
- owners {
687
- email
688
- }
689
- attributeValues {
690
- attributeKey {
691
- name
692
- }
693
- name
694
- }
695
- }
696
- }
697
- }
698
- `,ze=E`
699
- mutation TranscendCliCreateDataSubCategory($input: CreateDataInventorySubCategoryInput!) {
700
- createDataSubCategory(input: $input) {
701
- dataSubCategory {
702
- id
703
- name
704
- category
705
- }
706
- }
707
- }
708
- `,Be=E`
709
- mutation TranscendCliUpdateDataSubCategories($input: UpdateDataSubCategoriesInput!) {
710
- updateDataSubCategories(input: $input) {
711
- clientMutationId
712
- }
713
- }
714
- `,q=E`
715
- query TranscendCliProcessingPurposeSubCategories($first: Int!, $offset: Int!) {
716
- processingPurposeSubCategories(
717
- first: $first
718
- offset: $offset
719
- isExportCsv: true
720
- useMaster: false
721
- ) {
722
- nodes {
723
- id
724
- name
725
- purpose
726
- description
727
- teams {
728
- name
729
- }
730
- owners {
731
- email
732
- }
733
- attributeValues {
734
- attributeKey {
735
- name
736
- }
737
- name
738
- }
739
- }
740
- }
741
- }
742
- `,Ve=E`
743
- mutation TranscendCliCreateProcessingPurposeSubCategory(
744
- $input: CreateProcessingPurposeCategoryInput!
745
- ) {
746
- createProcessingPurposeSubCategory(input: $input) {
747
- processingPurposeSubCategory {
748
- id
749
- name
750
- purpose
751
- }
752
- }
753
- }
754
- `,He=E`
755
- mutation TranscendCliUpdateProcessingPurposeSubCategories(
756
- $input: UpdateProcessingPurposeSubCategoriesInput!
757
- ) {
758
- updateProcessingPurposeSubCategories(input: $input) {
759
- clientMutationId
760
- }
761
- }
762
- `,J=E`
763
- query TranscendCliProcessingActivities($first: Int!, $offset: Int!) {
764
- processingActivities(first: $first, offset: $offset, useMaster: false) {
765
- nodes {
766
- id
767
- title
768
- description
769
- securityMeasureDetails
770
- controllerships
771
- storageRegions {
772
- countrySubDivision
773
- country
774
- }
775
- transferRegions {
776
- countrySubDivision
777
- country
778
- }
779
- retentionType
780
- retentionPeriod
781
- dataProtectionImpactAssessmentLink
782
- dataProtectionImpactAssessmentStatus
783
- attributeValues {
784
- name
785
- attributeKey {
786
- name
787
- }
788
- }
789
- dataSilos {
790
- title
791
- }
792
- dataSubjects {
793
- type
794
- }
795
- teams {
796
- name
797
- }
798
- owners {
799
- email
800
- }
801
- processingPurposeSubCategories {
802
- name
803
- purpose
804
- }
805
- dataSubCategories {
806
- name
807
- category
808
- }
809
- saaSCategories {
810
- title
811
- }
812
- }
813
- }
814
- }
815
- `,Ue=E`
816
- mutation TranscendCliCreateProcessingActivity($input: CreateProcessingActivityInput!) {
817
- createProcessingActivity(input: $input) {
818
- processingActivity {
819
- id
820
- title
821
- }
822
- }
823
- }
824
- `,We=E`
825
- mutation TranscendCliUpdateProcessingActivities($input: UpdateProcessingActivitiesInput!) {
826
- updateProcessingActivities(input: $input) {
827
- clientMutationId
828
- }
829
- }
830
- `;async function Ge(e,t={}){let n=[],r=0,i=!1;do{let{globalActionItems:{nodes:a}}=await y(e,z,{first:20,offset:r,filterBy:{...t,...t.startDueDate?{startDueDate:t.startDueDate.toISOString()}:{},...t.endDueDate?{endDueDate:t.endDueDate.toISOString()}:{}}});n.push(...a.map(e=>({...e,id:e.ids[0],title:e.titles[0],notes:e.notes[0],link:e.links[0]}))),r+=20,i=a.length===20}while(i);return n}async function Ke(e,t={}){let n=[],r=0,i=!1;do{let{agentFiles:{nodes:a}}=await y(e,U,{first:20,offset:r,filterBy:t});n.push(...a),r+=20,i=a.length===20}while(i);return n.sort((e,t)=>e.name.localeCompare(t.name))}async function qe(e){let t=[],n=0,r=!1;do{let{agentFunctions:{nodes:i}}=await y(e,W,{first:20,offset:n});t.push(...i.map(e=>({...e,parameters:JSON.parse(e.parameters)}))),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}async function Je(e,t={}){let n=[],r=0,i=!1;do{let{agents:{nodes:a}}=await y(e,H,{first:20,offset:r,filterBy:t});n.push(...a),r+=20,i=a.length===20}while(i);return n.sort((e,t)=>e.name.localeCompare(t.name))}async function Y(t,n){e.info(T.magenta(`Fetching all attribute values for ${n}...`));let r=[],i=0,a=!1;do{let{attributeValues:{nodes:e}}=await y(t,I,{first:100,offset:i,attributeKeyId:n});r.push(...e),i+=100,a=e.length===100}while(a);return r.sort((e,t)=>e.name.localeCompare(t.name))}const X=[b.MultiSelect,b.SingleSelect];async function Ye(t){e.info(T.magenta(`Fetching all attributes...`));let n=[],r=0,i=!1;do{let{attributeKeys:{nodes:e}}=await y(t,F,{first:100,offset:r});n.push(...await Promise.all(e.map(async e=>({...e,values:X.includes(e.type)?await Y(t,e.id):[]})))),r+=100,i=e.length===100}while(i);return n.sort((e,t)=>e.name.localeCompare(t.name))}async function Xe(e){let t=[],n=0,r=!1;do{let{businessEntities:{nodes:i}}=await y(e,L,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}async function Ze(e){let t=[],n=0,r=!1;do{let{dataSubCategories:{nodes:i}}=await y(e,K,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}async function Z(e){let{organization:t}=await y(e,V);return t.deployedPrivacyCenterUrl}async function Qe(e,t){let n=t;n||=await Z(e);let{privacyCenter:r}=await y(e,B,{url:n});return r.id}async function $e(e){let{privacyCenterPolicies:t}=await y(e,O,{url:await Z(e)});return t.sort((e,t)=>e.title.defaultMessage.localeCompare(t.title.defaultMessage))}async function et(e){let t=[],n=0,r=!1;do{let{processingActivities:{nodes:i}}=await y(e,J,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}async function tt(e){let t=[],n=0,r=!1;do{let{processingPurposeSubCategories:{nodes:i}}=await y(e,q,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}async function nt(e){let t=[],n=0,r=!1;do{let{teams:{nodes:i}}=await y(e,N,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}async function rt(e){let t=[],n=0,r=!1;do{let{vendors:{nodes:i}}=await y(e,G,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}async function it(e){let{internalSubjects:t}=await y(e,p);return t}async function at({"data-silos":n=[],"data-subjects":r=[],"processing-activities":i=[],enrichers:a=[]},o,s=!1){let c=re([...w(n.map(e=>e[`data-subjects`]||[])||[]),...w(i.map(({dataSubjectTypes:e})=>e??[])??[]),...w(a.map(e=>e[`data-subjects`]||[])||[]),...r.map(e=>e.type)]);if(c.length===0&&!s)return{};let l=await it(o),u=te(l,`type`),d=C(c,l.map(({type:e})=>e));return d.length>0&&(e.info(T.magenta(`Creating ${d.length} new data subjects...`)),await t(d,async t=>{e.info(T.magenta(`Creating data subject ${t}...`));let{createSubject:n}=await y(o,h,{type:t,skipPublish:!0});e.info(T.green(`Created data subject ${t}!`)),u[t]=n.subject})),u}function Q(e,t){return e.forEach(e=>{if(!t[e])throw Error(`Expected to find data subject definition: ${e}`)}),Object.values(t).filter(t=>!e.includes(t.type)).map(({id:e})=>e)}function ot(e,t){return e.forEach(e=>{if(!t[e])throw Error(`Expected to find data subject definition: ${e}`)}),Object.values(t).filter(t=>!e.includes(t.type)).map(({type:e})=>e)}async function st(e){let t=[],n=0,r=!1;do{let{promptGroups:{nodes:i}}=await y(e,j,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}async function ct(e){let t=[],n=0,r=!1;do{let{promptPartials:{nodes:i}}=await y(e,A,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}async function lt(e,{text:t,titles:n=[],ids:r=[]}={}){let i=[],a=0,o=!1;do{let{prompts:{nodes:s}}=await y(e,k,{first:20,offset:a,filterBy:{...t?{text:t}:{},...n.length>0?{title:n}:{},...r.length>0?{id:r}:{}}});i.push(...s),a+=20,o=s.length===20}while(o);return i.sort((e,t)=>e.title.localeCompare(t.title))}async function ut(e,{promptTitles:t=[],promptIds:n=[]}={}){let{promptsWithVariables:r}=await y(e,M,{input:{...t.length>0?{promptTitles:t}:{},...n.length>0?{promptIds:n}:{}}});return r}async function dt(e,t={}){let{globalActionItemCollections:{nodes:n}}=await y(e,P,{filterBy:{...t}});return n}async function $(t,{titles:n,pageSize:r,ids:i=[],gql:a=s,integrationNames:o=[]}){e.info(T.magenta(`Fetching ${i.length===0?`all`:i.length} Data Silos...`));let c=[],l=0,u=!1;do{let{dataSilos:{nodes:e}}=await y(t,a,{filterBy:{ids:i.length>0?i:void 0,type:o.length>0?o:void 0,titles:n},first:r,offset:l});c.push(...e),l+=r,u=e.length===r}while(u);return e.info(T.green(`Found a total of ${c.length} data silo${i.length>0?` matching IDs ${i.join(`,`)}`:``}s${o.length>0?` matching integrationNames ${o.join(`,`)}`:``}`)),c.sort((e,t)=>e.title.localeCompare(t.title))}async function ft(t,n,{debug:r,includeGuessedCategories:a,pageSize:s}){let c=[],l=0,u=!1;do try{r&&e.log(T.magenta(`Pulling in subdatapoints for offset ${l}`));let{subDataPoints:{nodes:d}}=await y(t,a?i:o,{first:s,filterBy:{dataPoints:[n]},offset:l});c.push(...d),l+=s,u=d.length===s,r&&e.log(T.green(`Pulled in subdatapoints for offset ${l} for dataPointId=${n}`))}catch(t){throw e.error(T.red(`An error fetching subdatapoints for offset ${l} for dataPointId=${n}`)),t}while(u);return ne(c,`name`)}async function pt(t,r,{debug:i,pageSize:a,skipSubDatapoints:o,includeGuessedCategories:s}){let c=[],u=0,d=!1;do{i&&e.info(T.magenta(`Fetching datapoints with offset: ${u}`));let{dataPoints:{nodes:f}}=await y(t,l,{first:a,filterBy:{dataSilos:[r]},offset:u});i&&e.info(T.magenta(`Fetched ${f.length} datapoints at offset: ${u}`)),o||(await n(f,async n=>{try{i&&e.info(T.magenta(`Fetching subdatapoints for ${n.name} for datapoint offset ${u}`));let r=await ft(t,n.id,{pageSize:1e3,debug:i,includeGuessedCategories:s});c.push({...n,subDataPoints:r.sort((e,t)=>e.name.localeCompare(t.name))}),i&&e.info(T.green(`Successfully fetched subdatapoints for ${n.name}`))}catch(t){throw e.error(T.red(`An error fetching subdatapoints for ${n.name} datapoint offset ${u}`)),t}},{concurrency:5}),i&&e.info(T.green(`Fetched all subdatapoints for page of datapoints at offset: ${u}`))),u+=a,d=f.length===a}while(d);return c.sort((e,t)=>e.name.localeCompare(t.name))}async function mt(n,{ids:r,pageSize:i,titles:a,debug:o,skipDatapoints:s,skipSubDatapoints:l,includeGuessedCategories:u,integrationNames:d}){let f=[],p=await $(n,{titles:a,ids:r,integrationNames:d,pageSize:i,gql:c});return s||await t(p,async(t,r)=>{e.info(T.magenta(`[${r+1}/${p.length}] Fetching data silo - ${t.title}`));let a=await pt(n,t.id,{debug:o,pageSize:i,skipSubDatapoints:l,includeGuessedCategories:u});o&&e.info(T.green(`[${r+1}/${p.length}] Successfully fetched datapoint for - ${t.title}`)),f.push([t,a])}),e.info(T.green(`Successfully fetched all ${p.length} data silo configurations`)),f}async function ht(i,o,{pageSize:s,dataSubjectsByName:c,apiKeysByTitle:l}){let d=!1,f=new Date().getTime();e.info(T.magenta(`Syncing "${i.length}" data silos...`));let p=te(await $(o,{titles:i.map(({title:e})=>e),pageSize:s}),`title`),m=i.filter(({title:e})=>!p[e]);m.length>0&&(e.info(T.magenta(`Creating "${m.length}" data silos that did not exist...`)),await t(S(m,20),async e=>{let{createDataSilos:{dataSilos:t}}=await y(o,u,{input:e.map(e=>({name:e[`outer-type`]||e.integrationName,title:e.title,country:e.country,countrySubDivision:e.countrySubDivision}))});t.forEach(e=>{p[e.title]=e})}),e.info(T.green(`Successfully created "${m.length}" data silos!`)));let h=S(i,20);await t(h,async(t,n)=>{e.info(T.magenta(`[Batch ${n+1}/${h.length}] Syncing "${t.length}" data silos`)),await y(o,r,{input:{dataSilos:t.map(e=>({id:p[e.title].id,country:e.country,countrySubDivision:e.countrySubDivision,url:e.url,headers:e.headers,description:e.description,identifiers:e[`identity-keys`],isLive:!e.disabled,ownerEmails:e.owners,teamNames:e.teams,dependedOnDataSiloTitles:e[`deletion-dependencies`]?void 0:[],apiKeyId:e[`api-key-title`]?l[e[`api-key-title`]].id:void 0,dataSubjectBlockListIds:e[`data-subjects`]?Q(e[`data-subjects`],c):void 0,attributes:e.attributes,businessEntityTitles:e.businessEntityTitles,notifyEmailAddress:e[`email-settings`]?.[`notify-email-address`],promptAVendorEmailSendFrequency:e[`email-settings`]?.[`send-frequency`],promptAVendorEmailSendType:e[`email-settings`]?.[`send-type`],promptAVendorEmailIncludeIdentifiersAttachment:e[`email-settings`]?.[`include-identifiers-attachment`],promptAVendorEmailCompletionLinkType:e[`email-settings`]?.[`completion-link-type`],manualWorkRetryFrequency:e[`email-settings`]?.[`manual-work-retry-frequency`]}))}}),e.info(T.green(`[Batch ${n+1}/${h.length}] Synced "${t.length}" data silos!`))});let g=new D.SingleBar({},D.Presets.shades_classic),_=i.filter(({datapoints:e=[]})=>e.length>0),v=i.map(({datapoints:e=[]})=>e.length).reduce((e,t)=>e+t,0);e.info(T.magenta(`Syncing "${v}" datapoints from "${_.length}" data silos...`)),g.start(v,0);let b=0;await n(_,async({datapoints:n,title:r})=>{n&&await t(n,async t=>{let n=t.fields?t.fields.map(({key:e,description:t,categories:n,purposes:r,attributes:i,...a})=>({name:e,description:t,categories:n?n.map(e=>({...e,name:e.name||`Other`})):void 0,purposes:r?r.map(e=>({...e,name:e.name||`Other`})):void 0,attributes:i,accessRequestVisibilityEnabled:a[`access-request-visibility-enabled`],erasureRequestRedactionEnabled:a[`erasure-request-redaction-enabled`]})):void 0,i={dataSiloId:p[r].id,path:t.path,name:t.key,title:t.title,description:t.description,...t.owners?{ownerEmails:t.owners}:{},...t.teams?{teamNames:t.teams}:{},...t[`data-collection-tag`]?{dataCollectionTag:t[`data-collection-tag`]}:{},querySuggestions:t[`privacy-action-queries`]?Object.entries(t[`privacy-action-queries`]).map(([e,t])=>({requestType:e,suggestedQuery:t})):void 0,enabledActions:t[`privacy-actions`]||[],subDataPoints:n},s=(i.subDataPoints||[]).map(({name:e})=>e),c=s.filter((e,t)=>s.indexOf(e)!==t);if(c.length>0)e.info(T.red(`\nCannot update datapoint "${t.key}" as it has duplicate sub-datapoints with the same name: \n${c.join(`
831
- `)}`)),d=!0;else try{await y(o,a,i)}catch(n){e.info(T.red(`\nFailed to update datapoint "${t.key}" for data silo "${r}"! - \n${n.message}`)),d=!0}b+=1,g.update(b)})},{concurrency:10}),g.stop();let x=new Date().getTime()-f;return e.info(T.green(`Synced "${i.length}" data silos and "${v}" datapoints in "${x/1e3}" seconds!`)),{success:!d,dataSiloTitleToId:ie(p,({id:e})=>e)}}async function gt(n,i){let a=!1;return e.info(T.magenta(`Syncing "${i.length}" data silo dependencies...`)),await t(S(i,20),async(t,i)=>{e.info(T.magenta(`[Batch ${i}/${t.length}] Updating "${t.length}" data silos...`));try{await y(n,r,{input:{dataSilos:t.map(([e,t])=>({id:e,dependedOnDataSiloTitles:t}))}}),e.info(T.green(`[Batch ${i+1}/${t.length}] Synced "${t.length}" data silos!`))}catch(n){a=!0,e.info(T.red(`[Batch ${i+1}/${t.length}] Failed to update "${t.length}" silos! - ${n.message}`))}}),!a}async function _t(e,t){let n=[],r=0,i=!1;do{let{enrichers:{nodes:a}}=await y(e,m,{first:20,offset:r,title:t});n.push(...a),r+=20,i=a.length===20}while(i);return n.sort((e,t)=>e.title.localeCompare(t.title))}async function vt(e,{enricher:t,identifierByName:n,dataSubjectsByName:r}){let i=(await _t(e,t.title)).find(({title:e})=>e===t.title),a=t[`data-subjects`]?.map(e=>{let t=r[e];if(!t)throw Error(`Failed to find a data subject with name: ${e}`);return t.id}),o=t[`input-identifier`],s=t[`privacy-actions`]||Object.values(ee);i?await y(e,f,{input:{id:i.id,title:t.title,url:t.url,headers:t.headers,testRegex:t.testRegex,lookerQueryTitle:t.lookerQueryTitle,expirationDuration:typeof t.expirationDuration==`number`?t.expirationDuration.toString():void 0,transitionRequestStatus:t.transitionRequestStatus,phoneNumbers:t.phoneNumbers,regionList:t.regionList,dataSubjectIds:a,description:t.description||``,inputIdentifier:o?n[o].id:void 0,identifiers:t[`output-identifiers`].map(e=>n[e].id),...i.type===x.Sombra?{}:{actions:s}}}):o&&await y(e,d,{input:{title:t.title,url:t.url,type:t.type||x.Server,headers:t.headers,testRegex:t.testRegex,lookerQueryTitle:t.lookerQueryTitle,expirationDuration:typeof t.expirationDuration==`number`?t.expirationDuration.toString():void 0,transitionRequestStatus:t.transitionRequestStatus,phoneNumbers:t.phoneNumbers,dataSubjectIds:a,regionList:t.regionList,description:t.description||``,inputIdentifier:n[o].id,identifiers:t[`output-identifiers`].map(e=>n[e].id),actions:s}})}async function yt(e){let t=[],n=0,r=!1;do{let{consentPartitions:{nodes:i}}=await y(e,_,{first:50,offset:n});t.push(...i),n+=50,r=i.length===50}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}async function bt(n,r){let i=await g(n),a=!1,o=await yt(n);return await t(C(r.map(({name:e})=>e),o.map(({name:e})=>e)),async t=>{try{await y(n,v,{input:{id:i,name:t}}),e.info(T.green(`Successfully created consent partition: ${t}!`))}catch(n){e.error(T.red(`Failed to create consent partition: ${t}! - ${n.message}`)),a=!0}}),!a}async function xt(e){let t=[],n=0,r=!1;do{let{actions:{nodes:i}}=await y(e,R,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.type.localeCompare(t.type))}export{Ne as $,X as A,le as At,Ve as B,oe as Bt,tt as C,ye as Ct,Z as D,me as Dt,Qe as E,_e as Et,Ke as F,j as Ft,Be as G,He as H,O as Ht,Ge as I,A as It,G as J,Le as K,Ue as L,ce as Lt,Ye as M,de as Mt,Je as N,k as Nt,Ze as O,N as Ot,qe as P,M as Pt,U as Q,J as R,fe as Rt,nt as S,Se as St,$e as T,P as Tt,ze as U,ae as Ut,q as V,se as Vt,K as W,Fe as X,W as Y,Ie as Z,ot as _,I as _t,vt as a,B as at,it as b,be as bt,ft as c,Oe as ct,ht as d,R as dt,Pe as et,dt as f,Ee as ft,st as g,F as gt,ct as h,Te as ht,_t as i,V as it,Y as j,pe as jt,Xe as k,he as kt,mt as l,z as lt,ut as m,we as mt,yt as n,je as nt,pt as o,ke as ot,lt as p,L as pt,Re as q,bt as r,Me as rt,$ as s,Ae as st,xt as t,H as tt,gt as u,De as ut,Q as v,xe as vt,et as w,ge as wt,rt as x,Ce as xt,at as y,ve as yt,We as z,ue as zt};
832
- //# sourceMappingURL=fetchAllActions-BJsPdnxy.mjs.map