@transcend-io/cli 9.0.0 → 10.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.
- package/LICENSE +201 -0
- package/README.md +26 -34
- package/dist/RateCounter-DFL_mnk2.mjs +2 -0
- package/dist/RateCounter-DFL_mnk2.mjs.map +1 -0
- package/dist/RequestDataSilo-_Iv44M9u.mjs +51 -0
- package/dist/RequestDataSilo-_Iv44M9u.mjs.map +1 -0
- package/dist/app-By_zDIkK.mjs +131 -0
- package/dist/app-By_zDIkK.mjs.map +1 -0
- package/dist/approvePrivacyRequests-1cguqGqq.mjs +2 -0
- package/dist/approvePrivacyRequests-1cguqGqq.mjs.map +1 -0
- package/dist/assessment-BDywVaGR.mjs +284 -0
- package/dist/assessment-BDywVaGR.mjs.map +1 -0
- package/dist/bin/bash-complete.mjs +1 -1
- package/dist/bin/bash-complete.mjs.map +1 -1
- package/dist/bin/cli.mjs +1 -1
- package/dist/bin/cli.mjs.map +1 -1
- package/dist/bin/deprecated-command.mjs +1 -1
- package/dist/bin/deprecated-command.mjs.map +1 -1
- package/dist/bluebird-CUitXgsY.mjs +2 -0
- package/dist/bluebird-CUitXgsY.mjs.map +1 -0
- package/dist/buildXdiSyncEndpoint-BMaMHO7Z.mjs +9 -0
- package/dist/buildXdiSyncEndpoint-BMaMHO7Z.mjs.map +1 -0
- package/dist/bulkRestartRequests-DEPSHov-.mjs +2 -0
- package/dist/bulkRestartRequests-DEPSHov-.mjs.map +1 -0
- package/dist/bulkRetryEnrichers-BLkcFKXC.mjs +2 -0
- package/dist/bulkRetryEnrichers-BLkcFKXC.mjs.map +1 -0
- package/dist/cancelPrivacyRequests-C8MZQvsq.mjs +2 -0
- package/dist/cancelPrivacyRequests-C8MZQvsq.mjs.map +1 -0
- package/dist/codecs-BE3Wmoh8.mjs +2 -0
- package/dist/codecs-BE3Wmoh8.mjs.map +1 -0
- package/dist/codecs-Dx_vGxsl.mjs +2 -0
- package/dist/codecs-Dx_vGxsl.mjs.map +1 -0
- package/dist/{command-BlHM1nCd.mjs → command-BUnCUxva.mjs} +2 -2
- package/dist/command-BUnCUxva.mjs.map +1 -0
- package/dist/consentManagersToBusinessEntities-BDgOFga7.mjs +5 -0
- package/dist/consentManagersToBusinessEntities-BDgOFga7.mjs.map +1 -0
- package/dist/constants-AFtS5Nad.mjs +4 -0
- package/dist/constants-AFtS5Nad.mjs.map +1 -0
- package/dist/constants-CeMiHaHx.mjs +2 -0
- package/dist/constants-CeMiHaHx.mjs.map +1 -0
- package/dist/constants-lIvXgkdp.mjs +2 -0
- package/dist/constants-lIvXgkdp.mjs.map +1 -0
- package/dist/{context-bkKpii_t.mjs → context-CdSyuBlf.mjs} +1 -1
- package/dist/context-CdSyuBlf.mjs.map +1 -0
- package/dist/{pooling-BkZAO1Zs.mjs → createExtraKeyHandler-C_0EVj10.mjs} +5 -5
- package/dist/createExtraKeyHandler-C_0EVj10.mjs.map +1 -0
- package/dist/createPreferenceAccessTokens-6WLr6z-l.mjs +10 -0
- package/dist/createPreferenceAccessTokens-6WLr6z-l.mjs.map +1 -0
- package/dist/createSombraGotInstance-CahOgD6V.mjs +10 -0
- package/dist/createSombraGotInstance-CahOgD6V.mjs.map +1 -0
- package/dist/{dataFlowsToDataSilos-RAhfPV0l.mjs → dataFlowsToDataSilos-NhvBw1iy.mjs} +1 -1
- package/dist/dataFlowsToDataSilos-NhvBw1iy.mjs.map +1 -0
- package/dist/dataSilo-DrFetFXw.mjs +302 -0
- package/dist/dataSilo-DrFetFXw.mjs.map +1 -0
- package/dist/dataSubject-y_aXI0pa.mjs +92 -0
- package/dist/dataSubject-y_aXI0pa.mjs.map +1 -0
- package/dist/{done-input-validation-CcZtaz03.mjs → done-input-validation-DLR0-MJ7.mjs} +1 -1
- package/dist/{done-input-validation-CcZtaz03.mjs.map → done-input-validation-DLR0-MJ7.mjs.map} +1 -1
- package/dist/downloadPrivacyRequestFiles-B2yduagB.mjs +2 -0
- package/dist/downloadPrivacyRequestFiles-B2yduagB.mjs.map +1 -0
- package/dist/enums-CyFTrzXY.mjs.map +1 -1
- package/dist/extractClientError-DPjv09EH.mjs +2 -0
- package/dist/extractClientError-DPjv09EH.mjs.map +1 -0
- package/dist/extractErrorMessage-CPnTsT1S.mjs +2 -0
- package/dist/extractErrorMessage-CPnTsT1S.mjs.map +1 -0
- package/dist/fetchAllActions-C0l3wjQV.mjs +832 -0
- package/dist/fetchAllActions-C0l3wjQV.mjs.map +1 -0
- package/dist/fetchAllDataFlows-AQ9j_NRa.mjs +2 -0
- package/dist/fetchAllDataFlows-AQ9j_NRa.mjs.map +1 -0
- package/dist/fetchAllPreferenceTopics-Bn9PG-rO.mjs +36 -0
- package/dist/fetchAllPreferenceTopics-Bn9PG-rO.mjs.map +1 -0
- package/dist/fetchAllPurposes-CykSkZRY.mjs +29 -0
- package/dist/fetchAllPurposes-CykSkZRY.mjs.map +1 -0
- package/dist/fetchAllPurposesAndPreferences-Dog6N9L2.mjs +2 -0
- package/dist/fetchAllPurposesAndPreferences-Dog6N9L2.mjs.map +1 -0
- package/dist/fetchAllRequestEnrichers-q34mRuE5.mjs +42 -0
- package/dist/fetchAllRequestEnrichers-q34mRuE5.mjs.map +1 -0
- package/dist/fetchAllRequestIdentifiers-YP-geTV4.mjs +10 -0
- package/dist/fetchAllRequestIdentifiers-YP-geTV4.mjs.map +1 -0
- package/dist/fetchAllRequests-DEPTEUbi.mjs +2 -0
- package/dist/fetchAllRequests-DEPTEUbi.mjs.map +1 -0
- package/dist/fetchApiKeys-DkBco7W0.mjs +33 -0
- package/dist/fetchApiKeys-DkBco7W0.mjs.map +1 -0
- package/dist/fetchCatalogs-CBk871k6.mjs +12 -0
- package/dist/fetchCatalogs-CBk871k6.mjs.map +1 -0
- package/dist/fetchConsentManagerId-DHDA5Py9.mjs +321 -0
- package/dist/fetchConsentManagerId-DHDA5Py9.mjs.map +1 -0
- package/dist/fetchIdentifiers-DjqjUnaw.mjs +54 -0
- package/dist/fetchIdentifiers-DjqjUnaw.mjs.map +1 -0
- package/dist/fetchRequestDataSilo-CF6XOTQ-.mjs +2 -0
- package/dist/fetchRequestDataSilo-CF6XOTQ-.mjs.map +1 -0
- package/dist/fetchRequestFilesForRequest-DrHGOdih.mjs +33 -0
- package/dist/fetchRequestFilesForRequest-DrHGOdih.mjs.map +1 -0
- package/dist/generateCrossAccountApiKeys-F11uqpc5.mjs +33 -0
- package/dist/generateCrossAccountApiKeys-F11uqpc5.mjs.map +1 -0
- package/dist/impl--Lmj1RHh2.mjs +2 -0
- package/dist/impl--Lmj1RHh2.mjs.map +1 -0
- package/dist/impl-0ooudQ_J2.mjs +4 -0
- package/dist/impl-0ooudQ_J2.mjs.map +1 -0
- package/dist/{impl-BYBNi68b.mjs → impl-1U4QBT_L.mjs} +2 -2
- package/dist/impl-1U4QBT_L.mjs.map +1 -0
- package/dist/impl-2FbPcOv_2.mjs +2 -0
- package/dist/impl-2FbPcOv_2.mjs.map +1 -0
- package/dist/impl-ArGeiHuz.mjs +2 -0
- package/dist/impl-ArGeiHuz.mjs.map +1 -0
- package/dist/impl-B8iVBYdg.mjs +2 -0
- package/dist/impl-B8iVBYdg.mjs.map +1 -0
- package/dist/impl-BWjBYTQZ.mjs +2 -0
- package/dist/impl-BWjBYTQZ.mjs.map +1 -0
- package/dist/impl-Bc8Es_bT.mjs +7 -0
- package/dist/impl-Bc8Es_bT.mjs.map +1 -0
- package/dist/impl-BkyC7nnu.mjs +2 -0
- package/dist/impl-BkyC7nnu.mjs.map +1 -0
- package/dist/impl-BpUksm1b2.mjs +2 -0
- package/dist/impl-BpUksm1b2.mjs.map +1 -0
- package/dist/impl-BzupMfJi.mjs +12 -0
- package/dist/impl-BzupMfJi.mjs.map +1 -0
- package/dist/impl-C05tQHSq.mjs +2 -0
- package/dist/impl-C05tQHSq.mjs.map +1 -0
- package/dist/impl-CMX0qQr_2.mjs +2 -0
- package/dist/impl-CMX0qQr_2.mjs.map +1 -0
- package/dist/impl-CWHnw3oX.mjs +2 -0
- package/dist/impl-CWHnw3oX.mjs.map +1 -0
- package/dist/impl-CXK-D84c.mjs +4 -0
- package/dist/impl-CXK-D84c.mjs.map +1 -0
- package/dist/impl-CdoTu8TH.mjs +2 -0
- package/dist/impl-CdoTu8TH.mjs.map +1 -0
- package/dist/impl-CeLfAnyA2.mjs +2 -0
- package/dist/impl-CeLfAnyA2.mjs.map +1 -0
- package/dist/impl-Cgg_bv7j.mjs +2 -0
- package/dist/impl-Cgg_bv7j.mjs.map +1 -0
- package/dist/impl-CoLIqiH-2.mjs +2 -0
- package/dist/impl-CoLIqiH-2.mjs.map +1 -0
- package/dist/impl-Cq_RqK0_2.mjs +2 -0
- package/dist/impl-Cq_RqK0_2.mjs.map +1 -0
- package/dist/{impl-CIJ6P1GD.mjs → impl-Cwj9LeEI.mjs} +3 -3
- package/dist/impl-Cwj9LeEI.mjs.map +1 -0
- package/dist/impl-CyJBbyuF.mjs +2 -0
- package/dist/impl-CyJBbyuF.mjs.map +1 -0
- package/dist/impl-D-cp0CYr.mjs +2 -0
- package/dist/impl-D-cp0CYr.mjs.map +1 -0
- package/dist/impl-D-ldjJzl2.mjs +2 -0
- package/dist/impl-D-ldjJzl2.mjs.map +1 -0
- package/dist/impl-D6nwGrO8.mjs +2 -0
- package/dist/impl-D6nwGrO8.mjs.map +1 -0
- package/dist/impl-DGRuk3AB.mjs +2 -0
- package/dist/impl-DGRuk3AB.mjs.map +1 -0
- package/dist/impl-DXWN22xV.mjs +2 -0
- package/dist/impl-DXWN22xV.mjs.map +1 -0
- package/dist/impl-DZnSlfwn2.mjs +2 -0
- package/dist/impl-DZnSlfwn2.mjs.map +1 -0
- package/dist/impl-DcC8_dCy.mjs +2 -0
- package/dist/impl-DcC8_dCy.mjs.map +1 -0
- package/dist/impl-Dfc_yQML2.mjs +2 -0
- package/dist/impl-Dfc_yQML2.mjs.map +1 -0
- package/dist/impl-DgyjJ8RY2.mjs +2 -0
- package/dist/impl-DgyjJ8RY2.mjs.map +1 -0
- package/dist/impl-DhIyASha.mjs +2 -0
- package/dist/impl-DhIyASha.mjs.map +1 -0
- package/dist/impl-Dny1LX9A.mjs +2 -0
- package/dist/impl-Dny1LX9A.mjs.map +1 -0
- package/dist/impl-G1brwI4o.mjs +2 -0
- package/dist/impl-G1brwI4o.mjs.map +1 -0
- package/dist/impl-KV3yZaHz2.mjs +2 -0
- package/dist/impl-KV3yZaHz2.mjs.map +1 -0
- package/dist/impl-Rt3C_fDF.mjs +2 -0
- package/dist/impl-Rt3C_fDF.mjs.map +1 -0
- package/dist/impl-VHp2K2bg.mjs +2 -0
- package/dist/impl-VHp2K2bg.mjs.map +1 -0
- package/dist/impl-Zr8uLP_n.mjs +2 -0
- package/dist/impl-Zr8uLP_n.mjs.map +1 -0
- package/dist/impl-dEQtD5uE.mjs +2 -0
- package/dist/impl-dEQtD5uE.mjs.map +1 -0
- package/dist/impl-dlRlTYAQ.mjs +2 -0
- package/dist/impl-dlRlTYAQ.mjs.map +1 -0
- package/dist/impl-f4UPMoS_2.mjs +2 -0
- package/dist/impl-f4UPMoS_2.mjs.map +1 -0
- package/dist/impl-ph0q6K3i.mjs +2 -0
- package/dist/impl-ph0q6K3i.mjs.map +1 -0
- package/dist/impl-r8tHyAHB.mjs +2 -0
- package/dist/impl-r8tHyAHB.mjs.map +1 -0
- package/dist/impl-y1I9Muyc2.mjs +2 -0
- package/dist/impl-y1I9Muyc2.mjs.map +1 -0
- package/dist/index.d.mts +44 -32
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +78 -4
- package/dist/index.mjs.map +1 -1
- package/dist/inquirer-BgNcicZ4.mjs +2 -0
- package/dist/inquirer-BgNcicZ4.mjs.map +1 -0
- package/dist/listFiles-qzyQMaYH.mjs +2 -0
- package/dist/listFiles-qzyQMaYH.mjs.map +1 -0
- package/dist/{logger-Bj782ZYD.mjs → logger-B-LXIf3U.mjs} +1 -1
- package/dist/{logger-Bj782ZYD.mjs.map → logger-B-LXIf3U.mjs.map} +1 -1
- package/dist/makeGraphQLRequest-G078PsEL.mjs +2 -0
- package/dist/makeGraphQLRequest-G078PsEL.mjs.map +1 -0
- package/dist/markRequestDataSiloIdsCompleted-DmAz-R0M.mjs +2 -0
- package/dist/markRequestDataSiloIdsCompleted-DmAz-R0M.mjs.map +1 -0
- package/dist/markSilentPrivacyRequests-s7_aBROE.mjs +2 -0
- package/dist/markSilentPrivacyRequests-s7_aBROE.mjs.map +1 -0
- package/dist/mergeTranscendInputs-C64BJsse.mjs +2 -0
- package/dist/mergeTranscendInputs-C64BJsse.mjs.map +1 -0
- package/dist/notifyPrivacyRequestsAdditionalTime-BvXIXZYu.mjs +2 -0
- package/dist/notifyPrivacyRequestsAdditionalTime-BvXIXZYu.mjs.map +1 -0
- package/dist/package-BjNQxHlz.mjs +2 -0
- package/dist/package-BjNQxHlz.mjs.map +1 -0
- package/dist/parquetToCsvOneFile-DZVKXrjn.mjs +6 -0
- package/dist/parquetToCsvOneFile-DZVKXrjn.mjs.map +1 -0
- package/dist/parseAttributesFromString-CZStzJc0.mjs +2 -0
- package/dist/parseAttributesFromString-CZStzJc0.mjs.map +1 -0
- package/dist/pullAllDatapoints-DiMWp8a7.mjs +45 -0
- package/dist/pullAllDatapoints-DiMWp8a7.mjs.map +1 -0
- package/dist/pullChunkedCustomSiloOutstandingIdentifiers-DgWgggQt.mjs +2 -0
- package/dist/pullChunkedCustomSiloOutstandingIdentifiers-DgWgggQt.mjs.map +1 -0
- package/dist/pullConsentManagerMetrics-pFRPXTHJ.mjs +2 -0
- package/dist/pullConsentManagerMetrics-pFRPXTHJ.mjs.map +1 -0
- package/dist/pullManualEnrichmentIdentifiersToCsv-DA_4rIzW.mjs +2 -0
- package/dist/pullManualEnrichmentIdentifiersToCsv-DA_4rIzW.mjs.map +1 -0
- package/dist/pullTranscendConfiguration-D2cYlu6V.mjs +80 -0
- package/dist/pullTranscendConfiguration-D2cYlu6V.mjs.map +1 -0
- package/dist/pullUnstructuredSubDataPointRecommendations-C4aVhH-W.mjs +38 -0
- package/dist/pullUnstructuredSubDataPointRecommendations-C4aVhH-W.mjs.map +1 -0
- package/dist/pushCronIdentifiersFromCsv-C34TB9tG.mjs +2 -0
- package/dist/pushCronIdentifiersFromCsv-C34TB9tG.mjs.map +1 -0
- package/dist/pushManualEnrichmentIdentifiersFromCsv-CGS9E3Ft.mjs +2 -0
- package/dist/pushManualEnrichmentIdentifiersFromCsv-CGS9E3Ft.mjs.map +1 -0
- package/dist/readCsv-CyOL7eCc.mjs +2 -0
- package/dist/readCsv-CyOL7eCc.mjs.map +1 -0
- package/dist/{readTranscendYaml-DhKG1ViI.mjs → readTranscendYaml-D-J1ilS0.mjs} +2 -2
- package/dist/readTranscendYaml-D-J1ilS0.mjs.map +1 -0
- package/dist/removeUnverifiedRequestIdentifiers-pGGOFbfE.mjs +35 -0
- package/dist/removeUnverifiedRequestIdentifiers-pGGOFbfE.mjs.map +1 -0
- package/dist/request-CAsR6CMY.mjs +117 -0
- package/dist/request-CAsR6CMY.mjs.map +1 -0
- package/dist/retryRequestDataSilos-DXwN5uPw.mjs +2 -0
- package/dist/retryRequestDataSilos-DXwN5uPw.mjs.map +1 -0
- package/dist/skipPreflightJobs-BNQhuPZ8.mjs +2 -0
- package/dist/skipPreflightJobs-BNQhuPZ8.mjs.map +1 -0
- package/dist/skipRequestDataSilos-C39ji4lO.mjs +2 -0
- package/dist/skipRequestDataSilos-C39ji4lO.mjs.map +1 -0
- package/dist/splitCsvToList-BRq_CIfd.mjs +2 -0
- package/dist/splitCsvToList-BRq_CIfd.mjs.map +1 -0
- package/dist/streamPrivacyRequestsToCsv-C8lquiyd.mjs +2 -0
- package/dist/streamPrivacyRequestsToCsv-C8lquiyd.mjs.map +1 -0
- package/dist/syncCodePackages-BHgjfXCI.mjs +232 -0
- package/dist/syncCodePackages-BHgjfXCI.mjs.map +1 -0
- package/dist/syncCookies-CiLtxDFf.mjs +2 -0
- package/dist/syncCookies-CiLtxDFf.mjs.map +1 -0
- package/dist/syncDataFlows-DmBUs3G_.mjs +2 -0
- package/dist/syncDataFlows-DmBUs3G_.mjs.map +1 -0
- package/dist/syncTemplates-BNu1_dmW.mjs +23 -0
- package/dist/syncTemplates-BNu1_dmW.mjs.map +1 -0
- package/dist/time-Bl_c3W8U.mjs +2 -0
- package/dist/time-Bl_c3W8U.mjs.map +1 -0
- package/dist/types-B4CVJCpj.mjs +2 -0
- package/dist/types-B4CVJCpj.mjs.map +1 -0
- package/dist/updateConsentManagerVersionToLatest-BBMN94Hs.mjs +2 -0
- package/dist/updateConsentManagerVersionToLatest-BBMN94Hs.mjs.map +1 -0
- package/dist/uploadConsents-BbR7_sSt.mjs +2 -0
- package/dist/uploadConsents-BbR7_sSt.mjs.map +1 -0
- package/dist/uploadCookiesFromCsv-BKZx_E_2.mjs +2 -0
- package/dist/uploadCookiesFromCsv-BKZx_E_2.mjs.map +1 -0
- package/dist/uploadDataFlowsFromCsv-CJFVLvCJ.mjs +2 -0
- package/dist/uploadDataFlowsFromCsv-CJFVLvCJ.mjs.map +1 -0
- package/dist/uploadPrivacyRequestsFromCsv-BmP1JluQ.mjs +17 -0
- package/dist/uploadPrivacyRequestsFromCsv-BmP1JluQ.mjs.map +1 -0
- package/dist/uploadSiloDiscoveryResults-XpDp2u35.mjs +20 -0
- package/dist/uploadSiloDiscoveryResults-XpDp2u35.mjs.map +1 -0
- package/dist/validateTranscendAuth-1W1IylqE.mjs +2 -0
- package/dist/validateTranscendAuth-1W1IylqE.mjs.map +1 -0
- package/dist/withPreferenceRetry-Cb5S310L.mjs +2 -0
- package/dist/withPreferenceRetry-Cb5S310L.mjs.map +1 -0
- package/dist/writeCsv-B51ulrVl.mjs +6 -0
- package/dist/writeCsv-B51ulrVl.mjs.map +1 -0
- package/package.json +34 -53
- package/dist/api-keys-C7JLTDUZ.mjs +0 -2
- package/dist/api-keys-C7JLTDUZ.mjs.map +0 -1
- package/dist/app-Dti3qTxV.mjs +0 -131
- package/dist/app-Dti3qTxV.mjs.map +0 -1
- package/dist/buildAIIntegrationType-Bk0EbFKV.mjs +0 -2
- package/dist/buildAIIntegrationType-Bk0EbFKV.mjs.map +0 -1
- package/dist/code-scanning-3tLsE1W5.mjs +0 -4
- package/dist/code-scanning-3tLsE1W5.mjs.map +0 -1
- package/dist/codecs-TR6p48v3.mjs +0 -2
- package/dist/codecs-TR6p48v3.mjs.map +0 -1
- package/dist/command-BlHM1nCd.mjs.map +0 -1
- package/dist/consent-manager-BoaaMjRQ.mjs +0 -12
- package/dist/consent-manager-BoaaMjRQ.mjs.map +0 -1
- package/dist/constants-DdeeX81W.mjs +0 -2
- package/dist/constants-DdeeX81W.mjs.map +0 -1
- package/dist/context-bkKpii_t.mjs.map +0 -1
- package/dist/cron-DOicA1l8.mjs +0 -2
- package/dist/cron-DOicA1l8.mjs.map +0 -1
- package/dist/data-inventory-OeEcogPl.mjs +0 -75
- package/dist/data-inventory-OeEcogPl.mjs.map +0 -1
- package/dist/dataFlowsToDataSilos-RAhfPV0l.mjs.map +0 -1
- package/dist/impl--Ov8Om49.mjs +0 -2
- package/dist/impl--Ov8Om49.mjs.map +0 -1
- package/dist/impl-4BP7gY61.mjs +0 -2
- package/dist/impl-4BP7gY61.mjs.map +0 -1
- package/dist/impl-B0d5M861.mjs +0 -2
- package/dist/impl-B0d5M861.mjs.map +0 -1
- package/dist/impl-B40z0Aoz2.mjs +0 -2
- package/dist/impl-B40z0Aoz2.mjs.map +0 -1
- package/dist/impl-B8CoAX4t.mjs +0 -2
- package/dist/impl-B8CoAX4t.mjs.map +0 -1
- package/dist/impl-BDKBhSiG2.mjs +0 -2
- package/dist/impl-BDKBhSiG2.mjs.map +0 -1
- package/dist/impl-BEzyqD_12.mjs +0 -2
- package/dist/impl-BEzyqD_12.mjs.map +0 -1
- package/dist/impl-BI4zCNs0.mjs +0 -2
- package/dist/impl-BI4zCNs0.mjs.map +0 -1
- package/dist/impl-BJ9Ge6Wf2.mjs +0 -2
- package/dist/impl-BJ9Ge6Wf2.mjs.map +0 -1
- package/dist/impl-BPz3SpXo2.mjs +0 -2
- package/dist/impl-BPz3SpXo2.mjs.map +0 -1
- package/dist/impl-BYBNi68b.mjs.map +0 -1
- package/dist/impl-Bh04BLeU2.mjs +0 -2
- package/dist/impl-Bh04BLeU2.mjs.map +0 -1
- package/dist/impl-BhMd6_J22.mjs +0 -2
- package/dist/impl-BhMd6_J22.mjs.map +0 -1
- package/dist/impl-BiWrlucD.mjs +0 -2
- package/dist/impl-BiWrlucD.mjs.map +0 -1
- package/dist/impl-BpMKYqSR.mjs +0 -2
- package/dist/impl-BpMKYqSR.mjs.map +0 -1
- package/dist/impl-BraVBCrF2.mjs +0 -4
- package/dist/impl-BraVBCrF2.mjs.map +0 -1
- package/dist/impl-BvTvjK72.mjs +0 -2
- package/dist/impl-BvTvjK72.mjs.map +0 -1
- package/dist/impl-BvZai1Pf2.mjs +0 -2
- package/dist/impl-BvZai1Pf2.mjs.map +0 -1
- package/dist/impl-C73Uh2Ze.mjs +0 -2
- package/dist/impl-C73Uh2Ze.mjs.map +0 -1
- package/dist/impl-CIJ6P1GD.mjs.map +0 -1
- package/dist/impl-CNiEzL3_2.mjs +0 -2
- package/dist/impl-CNiEzL3_2.mjs.map +0 -1
- package/dist/impl-CTPHR7O62.mjs +0 -2
- package/dist/impl-CTPHR7O62.mjs.map +0 -1
- package/dist/impl-CU29SrJb2.mjs +0 -2
- package/dist/impl-CU29SrJb2.mjs.map +0 -1
- package/dist/impl-CaTnsoDi.mjs +0 -2
- package/dist/impl-CaTnsoDi.mjs.map +0 -1
- package/dist/impl-CiQeM677.mjs +0 -2
- package/dist/impl-CiQeM677.mjs.map +0 -1
- package/dist/impl-CkY0wfCz.mjs +0 -2
- package/dist/impl-CkY0wfCz.mjs.map +0 -1
- package/dist/impl-CoZhgLjC.mjs +0 -12
- package/dist/impl-CoZhgLjC.mjs.map +0 -1
- package/dist/impl-CvxsioT4.mjs +0 -2
- package/dist/impl-CvxsioT4.mjs.map +0 -1
- package/dist/impl-D2HalFgB2.mjs +0 -2
- package/dist/impl-D2HalFgB2.mjs.map +0 -1
- package/dist/impl-DFNq8PBe.mjs +0 -2
- package/dist/impl-DFNq8PBe.mjs.map +0 -1
- package/dist/impl-DOgLpdLw.mjs +0 -2
- package/dist/impl-DOgLpdLw.mjs.map +0 -1
- package/dist/impl-DP757pBT.mjs +0 -2
- package/dist/impl-DP757pBT.mjs.map +0 -1
- package/dist/impl-DVDN007x.mjs +0 -2
- package/dist/impl-DVDN007x.mjs.map +0 -1
- package/dist/impl-DfKI4fmI.mjs +0 -2
- package/dist/impl-DfKI4fmI.mjs.map +0 -1
- package/dist/impl-DgsWGnhH.mjs +0 -2
- package/dist/impl-DgsWGnhH.mjs.map +0 -1
- package/dist/impl-DzSmriDw.mjs +0 -2
- package/dist/impl-DzSmriDw.mjs.map +0 -1
- package/dist/impl-EhTHDCC1.mjs +0 -2
- package/dist/impl-EhTHDCC1.mjs.map +0 -1
- package/dist/impl-J-dQqTZJ2.mjs +0 -2
- package/dist/impl-J-dQqTZJ2.mjs.map +0 -1
- package/dist/impl-SxwaNC4m2.mjs +0 -2
- package/dist/impl-SxwaNC4m2.mjs.map +0 -1
- package/dist/impl-fESuqAH1.mjs +0 -2
- package/dist/impl-fESuqAH1.mjs.map +0 -1
- package/dist/impl-gYrR3kIh.mjs +0 -4
- package/dist/impl-gYrR3kIh.mjs.map +0 -1
- package/dist/impl-iwjvzA7a.mjs +0 -2
- package/dist/impl-iwjvzA7a.mjs.map +0 -1
- package/dist/impl-nKY3m-Vx.mjs +0 -2
- package/dist/impl-nKY3m-Vx.mjs.map +0 -1
- package/dist/impl-qiK6VF4F2.mjs +0 -2
- package/dist/impl-qiK6VF4F2.mjs.map +0 -1
- package/dist/manual-enrichment-CYoZNBjO.mjs +0 -2
- package/dist/manual-enrichment-CYoZNBjO.mjs.map +0 -1
- package/dist/mergeTranscendInputs-Coj_e2N3.mjs +0 -2
- package/dist/mergeTranscendInputs-Coj_e2N3.mjs.map +0 -1
- package/dist/pooling-BkZAO1Zs.mjs.map +0 -1
- package/dist/preference-management-BHj26bmE.mjs +0 -7
- package/dist/preference-management-BHj26bmE.mjs.map +0 -1
- package/dist/readTranscendYaml-DhKG1ViI.mjs.map +0 -1
- package/dist/syncConfigurationToTranscend-wWSbGVrI.mjs +0 -3010
- package/dist/syncConfigurationToTranscend-wWSbGVrI.mjs.map +0 -1
- package/dist/uploadConsents-nsjKy1I4.mjs +0 -2
- package/dist/uploadConsents-nsjKy1I4.mjs.map +0 -1
|
@@ -0,0 +1,832 @@
|
|
|
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-DHDA5Py9.mjs";import{t as y}from"./makeGraphQLRequest-G078PsEL.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-C0l3wjQV.mjs.map
|