@transcend-io/cli 13.0.2 → 13.0.4
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/README.md +2 -2
- package/dist/{app-CCGKgPiC.mjs → app-DuniUvGi.mjs} +16 -16
- package/dist/{app-CCGKgPiC.mjs.map → app-DuniUvGi.mjs.map} +1 -1
- package/dist/{approvePrivacyRequests-BBcqydVb.mjs → approvePrivacyRequests-57LFIxUv.mjs} +2 -2
- package/dist/{approvePrivacyRequests-BBcqydVb.mjs.map → approvePrivacyRequests-57LFIxUv.mjs.map} +1 -1
- package/dist/bin/bash-complete.mjs +1 -1
- package/dist/bin/cli.mjs +1 -1
- package/dist/bin/deprecated-command.mjs +1 -1
- package/dist/{buildExamples-DRU0o6EK.mjs → buildExamples-bIkCTZtO.mjs} +2 -2
- package/dist/{buildExamples-DRU0o6EK.mjs.map → buildExamples-bIkCTZtO.mjs.map} +1 -1
- package/dist/{buildXdiSyncEndpoint-CSjQKSn3.mjs → buildXdiSyncEndpoint-BUKWuQE6.mjs} +2 -2
- package/dist/{buildXdiSyncEndpoint-CSjQKSn3.mjs.map → buildXdiSyncEndpoint-BUKWuQE6.mjs.map} +1 -1
- package/dist/{bulkRestartRequests-Cx5LfpdX.mjs → bulkRestartRequests-V4cDUp29.mjs} +2 -2
- package/dist/{bulkRestartRequests-Cx5LfpdX.mjs.map → bulkRestartRequests-V4cDUp29.mjs.map} +1 -1
- package/dist/{bulkRetryEnrichers-BSJtvqJD.mjs → bulkRetryEnrichers-DYxHf2th.mjs} +2 -2
- package/dist/{bulkRetryEnrichers-BSJtvqJD.mjs.map → bulkRetryEnrichers-DYxHf2th.mjs.map} +1 -1
- package/dist/{cancelPrivacyRequests-Cy48R4tJ.mjs → cancelPrivacyRequests-4MzlSkHA.mjs} +2 -2
- package/dist/{cancelPrivacyRequests-Cy48R4tJ.mjs.map → cancelPrivacyRequests-4MzlSkHA.mjs.map} +1 -1
- package/dist/{command-Gip5wB8W.mjs → command-BYXHxOsD.mjs} +2 -2
- package/dist/{command-Gip5wB8W.mjs.map → command-BYXHxOsD.mjs.map} +1 -1
- package/dist/{constants-DAx9VK1C.mjs → constants-6F0ha8ue.mjs} +2 -2
- package/dist/{constants-DAx9VK1C.mjs.map → constants-6F0ha8ue.mjs.map} +1 -1
- package/dist/{createPoolingCommandUi-DZx16Cn8.mjs → createPoolingCommandUi-BUBLRVVY.mjs} +2 -2
- package/dist/{createPoolingCommandUi-DZx16Cn8.mjs.map → createPoolingCommandUi-BUBLRVVY.mjs.map} +1 -1
- package/dist/{downloadPrivacyRequestFiles-DBeuW9b3.mjs → downloadPrivacyRequestFiles-BckoJe0z.mjs} +2 -2
- package/dist/{downloadPrivacyRequestFiles-DBeuW9b3.mjs.map → downloadPrivacyRequestFiles-BckoJe0z.mjs.map} +1 -1
- package/dist/{generateCrossAccountApiKeys-CjmSyfwm.mjs → generateCrossAccountApiKeys-B7961x_Z.mjs} +2 -2
- package/dist/{generateCrossAccountApiKeys-CjmSyfwm.mjs.map → generateCrossAccountApiKeys-B7961x_Z.mjs.map} +1 -1
- package/dist/{impl-Dx8BYv7U.mjs → impl-8VWWJO22.mjs} +2 -2
- package/dist/{impl-Dx8BYv7U.mjs.map → impl-8VWWJO22.mjs.map} +1 -1
- package/dist/{impl-BkQryDNq.mjs → impl-B5z48Qiw.mjs} +2 -2
- package/dist/{impl-BkQryDNq.mjs.map → impl-B5z48Qiw.mjs.map} +1 -1
- package/dist/{impl-C2BYhujB.mjs → impl-BCABQS_h.mjs} +2 -2
- package/dist/{impl-C2BYhujB.mjs.map → impl-BCABQS_h.mjs.map} +1 -1
- package/dist/{impl-cU3bjY3P.mjs → impl-BK_CU73F.mjs} +2 -2
- package/dist/{impl-cU3bjY3P.mjs.map → impl-BK_CU73F.mjs.map} +1 -1
- package/dist/{impl-nYlbrsD7.mjs → impl-BMhPV4td.mjs} +2 -2
- package/dist/{impl-nYlbrsD7.mjs.map → impl-BMhPV4td.mjs.map} +1 -1
- package/dist/{impl-DjBbx05w.mjs → impl-BQDX9769.mjs} +2 -2
- package/dist/{impl-DjBbx05w.mjs.map → impl-BQDX9769.mjs.map} +1 -1
- package/dist/{impl-BLM6rMBq.mjs → impl-BSxV7vYK.mjs} +2 -2
- package/dist/{impl-BLM6rMBq.mjs.map → impl-BSxV7vYK.mjs.map} +1 -1
- package/dist/{impl-GphhprmF.mjs → impl-BVlc0BRG.mjs} +2 -2
- package/dist/{impl-GphhprmF.mjs.map → impl-BVlc0BRG.mjs.map} +1 -1
- package/dist/{impl-9W0QG6fB.mjs → impl-Ba1p4QRD.mjs} +2 -2
- package/dist/{impl-9W0QG6fB.mjs.map → impl-Ba1p4QRD.mjs.map} +1 -1
- package/dist/{impl-D8yF0jw9.mjs → impl-BeDNGUVg.mjs} +2 -2
- package/dist/{impl-D8yF0jw9.mjs.map → impl-BeDNGUVg.mjs.map} +1 -1
- package/dist/impl-BjMQ2W772.mjs +4 -0
- package/dist/impl-BjMQ2W772.mjs.map +1 -0
- package/dist/{impl-BPmzcgpy.mjs → impl-Bl42P-wI.mjs} +2 -2
- package/dist/{impl-BPmzcgpy.mjs.map → impl-Bl42P-wI.mjs.map} +1 -1
- package/dist/{impl-bUltX0u3.mjs → impl-Bm_dPfqr.mjs} +2 -2
- package/dist/{impl-bUltX0u3.mjs.map → impl-Bm_dPfqr.mjs.map} +1 -1
- package/dist/{impl-h0z8OSQY.mjs → impl-BnTWnayD.mjs} +2 -2
- package/dist/{impl-h0z8OSQY.mjs.map → impl-BnTWnayD.mjs.map} +1 -1
- package/dist/{impl-BsdneZZP.mjs → impl-BpF_4RGh.mjs} +2 -2
- package/dist/{impl-BsdneZZP.mjs.map → impl-BpF_4RGh.mjs.map} +1 -1
- package/dist/{impl-CjjiXsMh.mjs → impl-Bq596FSL.mjs} +2 -2
- package/dist/{impl-CjjiXsMh.mjs.map → impl-Bq596FSL.mjs.map} +1 -1
- package/dist/{impl-CJ4oVuXN.mjs → impl-ByTDMJFP.mjs} +2 -2
- package/dist/{impl-CJ4oVuXN.mjs.map → impl-ByTDMJFP.mjs.map} +1 -1
- package/dist/{impl-DnBmd-wi.mjs → impl-CCKFPk1i.mjs} +2 -2
- package/dist/{impl-DnBmd-wi.mjs.map → impl-CCKFPk1i.mjs.map} +1 -1
- package/dist/{impl-BuOc87b6.mjs → impl-CFJR1dQP.mjs} +2 -2
- package/dist/{impl-BuOc87b6.mjs.map → impl-CFJR1dQP.mjs.map} +1 -1
- package/dist/{impl-B9jwlKCX2.mjs → impl-CHDAZLJt2.mjs} +2 -2
- package/dist/{impl-B9jwlKCX2.mjs.map → impl-CHDAZLJt2.mjs.map} +1 -1
- package/dist/{impl-DiaD11OP.mjs → impl-Canhp2iV.mjs} +2 -2
- package/dist/{impl-DiaD11OP.mjs.map → impl-Canhp2iV.mjs.map} +1 -1
- package/dist/{impl-BUKV7sYp.mjs → impl-ChE-8VKk.mjs} +2 -2
- package/dist/{impl-BUKV7sYp.mjs.map → impl-ChE-8VKk.mjs.map} +1 -1
- package/dist/{impl-BIhXJ0Nw.mjs → impl-Chsw1pPO.mjs} +2 -2
- package/dist/{impl-BIhXJ0Nw.mjs.map → impl-Chsw1pPO.mjs.map} +1 -1
- package/dist/{impl-C_lIkMLn2.mjs → impl-CjgdTR8k2.mjs} +2 -2
- package/dist/{impl-C_lIkMLn2.mjs.map → impl-CjgdTR8k2.mjs.map} +1 -1
- package/dist/{impl-Nwbb2xaH.mjs → impl-D0pWt40T.mjs} +2 -2
- package/dist/{impl-Nwbb2xaH.mjs.map → impl-D0pWt40T.mjs.map} +1 -1
- package/dist/{impl-CcPwm8a4.mjs → impl-D9z1ovJu.mjs} +2 -2
- package/dist/{impl-CcPwm8a4.mjs.map → impl-D9z1ovJu.mjs.map} +1 -1
- package/dist/{impl-DvHiVaGW.mjs → impl-DC-YqHJx.mjs} +2 -2
- package/dist/{impl-DvHiVaGW.mjs.map → impl-DC-YqHJx.mjs.map} +1 -1
- package/dist/{impl-Do3hnGHt.mjs → impl-DEChTmJW.mjs} +2 -2
- package/dist/{impl-Do3hnGHt.mjs.map → impl-DEChTmJW.mjs.map} +1 -1
- package/dist/{impl-nte7qanu.mjs → impl-DL1d2zHJ.mjs} +2 -2
- package/dist/{impl-nte7qanu.mjs.map → impl-DL1d2zHJ.mjs.map} +1 -1
- package/dist/{impl-Bh1CkZhV.mjs → impl-DMli5cx_.mjs} +2 -2
- package/dist/{impl-Bh1CkZhV.mjs.map → impl-DMli5cx_.mjs.map} +1 -1
- package/dist/{impl-DEPuP4Oy2.mjs → impl-DVaook8H2.mjs} +2 -2
- package/dist/{impl-DEPuP4Oy2.mjs.map → impl-DVaook8H2.mjs.map} +1 -1
- package/dist/{impl-DGLrKNNs2.mjs → impl-Dj-u3wBR2.mjs} +2 -2
- package/dist/{impl-DGLrKNNs2.mjs.map → impl-Dj-u3wBR2.mjs.map} +1 -1
- package/dist/{impl-BahDGEJJ.mjs → impl-DrTKXQwb.mjs} +2 -2
- package/dist/{impl-BahDGEJJ.mjs.map → impl-DrTKXQwb.mjs.map} +1 -1
- package/dist/{impl-SKxxByoN.mjs → impl-DsOUCV22.mjs} +2 -2
- package/dist/{impl-SKxxByoN.mjs.map → impl-DsOUCV22.mjs.map} +1 -1
- package/dist/{impl-DqbJ33ve.mjs → impl-L1xM2Wb2.mjs} +2 -2
- package/dist/{impl-DqbJ33ve.mjs.map → impl-L1xM2Wb2.mjs.map} +1 -1
- package/dist/{impl-D6e2LNBm.mjs → impl-ouUdsmXK.mjs} +2 -2
- package/dist/{impl-D6e2LNBm.mjs.map → impl-ouUdsmXK.mjs.map} +1 -1
- package/dist/{impl-C8auyA7u.mjs → impl-p77uCDi3.mjs} +2 -2
- package/dist/{impl-C8auyA7u.mjs.map → impl-p77uCDi3.mjs.map} +1 -1
- package/dist/{impl-C5qif_gE.mjs → impl-yVOrJekX.mjs} +2 -2
- package/dist/{impl-C5qif_gE.mjs.map → impl-yVOrJekX.mjs.map} +1 -1
- package/dist/{impl-DPq1O87s.mjs → impl-zrqmQLuL.mjs} +2 -2
- package/dist/{impl-DPq1O87s.mjs.map → impl-zrqmQLuL.mjs.map} +1 -1
- package/dist/index.d.mts +6 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{markRequestDataSiloIdsCompleted-loC-xyyW.mjs → markRequestDataSiloIdsCompleted-CQl97k0h.mjs} +2 -2
- package/dist/{markRequestDataSiloIdsCompleted-loC-xyyW.mjs.map → markRequestDataSiloIdsCompleted-CQl97k0h.mjs.map} +1 -1
- package/dist/{markSilentPrivacyRequests-D7ncAg8k.mjs → markSilentPrivacyRequests-D78iaCVp.mjs} +2 -2
- package/dist/{markSilentPrivacyRequests-D7ncAg8k.mjs.map → markSilentPrivacyRequests-D78iaCVp.mjs.map} +1 -1
- package/dist/{notifyPrivacyRequestsAdditionalTime-DpCfIR_O.mjs → notifyPrivacyRequestsAdditionalTime-DCjnQmPj.mjs} +2 -2
- package/dist/{notifyPrivacyRequestsAdditionalTime-DpCfIR_O.mjs.map → notifyPrivacyRequestsAdditionalTime-DCjnQmPj.mjs.map} +1 -1
- package/dist/{policy-bundle-manifest-DW3Wilp8.mjs → policy-bundle-manifest-CJnaA9Ub.mjs} +2 -2
- package/dist/{policy-bundle-manifest-DW3Wilp8.mjs.map → policy-bundle-manifest-CJnaA9Ub.mjs.map} +1 -1
- package/dist/{policy-project-discovery-CND7N2HI.mjs → policy-project-discovery-BXmG3T6V.mjs} +2 -2
- package/dist/{policy-project-discovery-CND7N2HI.mjs.map → policy-project-discovery-BXmG3T6V.mjs.map} +1 -1
- package/dist/{policy-scaffold-config-CwY0QZC0.mjs → policy-scaffold-config-CCCySUqW.mjs} +2 -2
- package/dist/{policy-scaffold-config-CwY0QZC0.mjs.map → policy-scaffold-config-CCCySUqW.mjs.map} +1 -1
- package/dist/{pullChunkedCustomSiloOutstandingIdentifiers-7qvaMN58.mjs → pullChunkedCustomSiloOutstandingIdentifiers-D5lFuhaD.mjs} +2 -2
- package/dist/{pullChunkedCustomSiloOutstandingIdentifiers-7qvaMN58.mjs.map → pullChunkedCustomSiloOutstandingIdentifiers-D5lFuhaD.mjs.map} +1 -1
- package/dist/{pullManualEnrichmentIdentifiersToCsv-CWPs7VeX.mjs → pullManualEnrichmentIdentifiersToCsv-BJ60h_P2.mjs} +2 -2
- package/dist/{pullManualEnrichmentIdentifiersToCsv-CWPs7VeX.mjs.map → pullManualEnrichmentIdentifiersToCsv-BJ60h_P2.mjs.map} +1 -1
- package/dist/{pushCronIdentifiersFromCsv-DQoliMdQ.mjs → pushCronIdentifiersFromCsv-ageZIHg8.mjs} +2 -2
- package/dist/{pushCronIdentifiersFromCsv-DQoliMdQ.mjs.map → pushCronIdentifiersFromCsv-ageZIHg8.mjs.map} +1 -1
- package/dist/{pushManualEnrichmentIdentifiersFromCsv-R9BXYuFk.mjs → pushManualEnrichmentIdentifiersFromCsv-CXkMb7CB.mjs} +2 -2
- package/dist/{pushManualEnrichmentIdentifiersFromCsv-R9BXYuFk.mjs.map → pushManualEnrichmentIdentifiersFromCsv-CXkMb7CB.mjs.map} +1 -1
- package/dist/{removeUnverifiedRequestIdentifiers-CgnfHdbc.mjs → removeUnverifiedRequestIdentifiers-CUI1CqAm.mjs} +2 -2
- package/dist/{removeUnverifiedRequestIdentifiers-CgnfHdbc.mjs.map → removeUnverifiedRequestIdentifiers-CUI1CqAm.mjs.map} +1 -1
- package/dist/{retryRequestDataSilos-BrLLNQqT.mjs → retryRequestDataSilos-ClvwV9pP.mjs} +2 -2
- package/dist/{retryRequestDataSilos-BrLLNQqT.mjs.map → retryRequestDataSilos-ClvwV9pP.mjs.map} +1 -1
- package/dist/{skipPreflightJobs-CqjpB7ug.mjs → skipPreflightJobs-CUUEekOc.mjs} +2 -2
- package/dist/{skipPreflightJobs-CqjpB7ug.mjs.map → skipPreflightJobs-CUUEekOc.mjs.map} +1 -1
- package/dist/{skipRequestDataSilos-DPi6-XVr.mjs → skipRequestDataSilos-C_ZYQo4_.mjs} +2 -2
- package/dist/{skipRequestDataSilos-DPi6-XVr.mjs.map → skipRequestDataSilos-C_ZYQo4_.mjs.map} +1 -1
- package/dist/{streamPrivacyRequestsToCsv-DVPQ860_.mjs → streamPrivacyRequestsToCsv-ITzRIbT8.mjs} +2 -2
- package/dist/{streamPrivacyRequestsToCsv-DVPQ860_.mjs.map → streamPrivacyRequestsToCsv-ITzRIbT8.mjs.map} +1 -1
- package/dist/{updateConsentManagerVersionToLatest-gJMWny-i.mjs → updateConsentManagerVersionToLatest-CQ1tEPPa.mjs} +2 -2
- package/dist/{updateConsentManagerVersionToLatest-gJMWny-i.mjs.map → updateConsentManagerVersionToLatest-CQ1tEPPa.mjs.map} +1 -1
- package/dist/{uploadConsents-5HlMj7EK.mjs → uploadConsents-Crcidppk.mjs} +2 -2
- package/dist/{uploadConsents-5HlMj7EK.mjs.map → uploadConsents-Crcidppk.mjs.map} +1 -1
- package/dist/{uploadPrivacyRequestsFromCsv-Dh8KEW3n.mjs → uploadPrivacyRequestsFromCsv-CWJ1atMX.mjs} +2 -2
- package/dist/{uploadPrivacyRequestsFromCsv-Dh8KEW3n.mjs.map → uploadPrivacyRequestsFromCsv-CWJ1atMX.mjs.map} +1 -1
- package/package.json +2 -3
- package/dist/impl-B8DsKzNn2.mjs +0 -4
- package/dist/impl-B8DsKzNn2.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impl-
|
|
1
|
+
{"version":3,"file":"impl-DsOUCV22.mjs","names":["retryRequestDataSilosHelper"],"sources":["../src/commands/request/system/retry-request-data-silos/impl.ts"],"sourcesContent":["import type { RequestAction } from '@transcend-io/privacy-types';\n\nimport type { LocalContext } from '../../../../context.js';\nimport { doneInputValidation } from '../../../../lib/cli/done-input-validation.js';\nimport { retryRequestDataSilos as retryRequestDataSilosHelper } from '../../../../lib/requests/index.js';\n\nexport interface RetryRequestDataSilosCommandFlags {\n auth: string;\n dataSiloId: string;\n actions: RequestAction[];\n transcendUrl: string;\n}\n\nexport async function retryRequestDataSilos(\n this: LocalContext,\n { auth, dataSiloId, actions, transcendUrl }: RetryRequestDataSilosCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process);\n\n await retryRequestDataSilosHelper({\n requestActions: actions,\n transcendUrl,\n auth,\n dataSiloId,\n });\n}\n"],"mappings":"6GAaA,eAAsB,EAEpB,CAAE,OAAM,aAAY,UAAS,gBACd,CACf,EAAoB,KAAK,QAAQ,CAEjC,MAAMA,EAA4B,CAChC,eAAgB,EAChB,eACA,OACA,aACD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"./enums-OiLcZ26O.mjs";import{r as t}from"./constants-
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
import{i as e}from"./enums-OiLcZ26O.mjs";import{r as t}from"./constants-6F0ha8ue.mjs";import{n,t as r}from"./command-BYXHxOsD.mjs";import{o as i}from"./readTranscendYaml-D576bvzR.mjs";import{n as a}from"./pullTranscendConfiguration-CDUDqxpm.mjs";import{t as o}from"./validateTranscendAuth-BrVGfq6X.mjs";import{t as s}from"./done-input-validation-LiTaCEzF.mjs";import c from"node:path";import l from"colors";import{mapSeries as u}from"@transcend-io/utils";import{buildTranscendGraphQLClient as d}from"@transcend-io/sdk";async function f({auth:f,resources:p=n,file:m,transcendUrl:h,dataSiloIds:g=[],integrationNames:_=[],trackerStatuses:v=r,pageSize:y,skipDatapoints:b,skipSubDatapoints:x,includeGuessedCategories:S,debug:C}){s(this.process);let w=await o(f,this),T=p.includes(`all`)?Object.values(e):p;if(typeof w==`string`){try{let e=await a(d(h,w),{dataSiloIds:g,integrationNames:_,resources:T,pageSize:y,debug:C,skipDatapoints:b,skipSubDatapoints:x,includeGuessedCategories:S,trackerStatuses:v});this.logger.info(l.magenta(`Writing configuration to file "${m}"...`)),this.fs.writeFileSync(m,i(e))}catch(e){this.logger.error(l.red(`An error occurred syncing the schema: ${C?e.stack:e.message}`)),this.process.exit(1)}this.logger.info(l.green(`Successfully synced yaml file to disk at ${m}! View at ${t}`))}else{if(!this.fs.lstatSync(m).isDirectory())throw Error(`File is expected to be a folder when passing in a list of API keys to pull from. e.g. --file=./working/`);let e=[];await u(w,async(t,n)=>{let r=`[${n+1}/${w.length}][${t.organizationName}] `;this.logger.info(l.magenta(`~~~\n\n${r}Attempting to pull configuration...\n\n~~~`));let o=d(h,t.apiKey);try{let e=await a(o,{dataSiloIds:g,integrationNames:_,resources:T,pageSize:y,debug:C,skipDatapoints:b,skipSubDatapoints:x,includeGuessedCategories:S,trackerStatuses:v}),n=c.join(m,`${t.organizationName}.yml`);this.logger.info(l.magenta(`Writing configuration to file "${n}"...`)),this.fs.writeFileSync(n,i(e)),this.logger.info(l.green(`${r}Successfully pulled configuration!`))}catch(n){this.logger.error(l.red(`${r}Failed to sync configuration. - ${n.message}`)),e.push(t.organizationName)}}),e.length>0&&(this.logger.info(l.red(`Sync encountered errors for "${e.join(`,`)}". View output above for more information, or check out ${t}`)),this.process.exit(1))}}export{f as pull};
|
|
2
|
+
//# sourceMappingURL=impl-L1xM2Wb2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impl-
|
|
1
|
+
{"version":3,"file":"impl-L1xM2Wb2.mjs","names":[],"sources":["../src/commands/inventory/pull/impl.ts"],"sourcesContent":["import path from 'node:path';\n\nimport { ConsentTrackerStatus } from '@transcend-io/privacy-types';\nimport { buildTranscendGraphQLClient } from '@transcend-io/sdk';\nimport { mapSeries } from '@transcend-io/utils';\nimport colors from 'colors';\n\nimport { ADMIN_DASH_INTEGRATIONS } from '../../../constants.js';\nimport type { LocalContext } from '../../../context.js';\nimport { TranscendPullResource } from '../../../enums.js';\nimport { validateTranscendAuth } from '../../../lib/api-keys/index.js';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation.js';\nimport { pullTranscendConfiguration } from '../../../lib/graphql/index.js';\nimport { serializeTranscendYaml } from '../../../lib/readTranscendYaml.js';\nimport { DEFAULT_CONSENT_TRACKER_STATUSES, DEFAULT_TRANSCEND_PULL_RESOURCES } from './command.js';\n\nexport interface PullCommandFlags {\n auth: string;\n resources?: (TranscendPullResource | 'all')[];\n file: string;\n transcendUrl: string;\n dataSiloIds?: string[];\n integrationNames?: string[];\n trackerStatuses?: ConsentTrackerStatus[];\n pageSize: number;\n skipDatapoints: boolean;\n skipSubDatapoints: boolean;\n includeGuessedCategories: boolean;\n debug: boolean;\n}\n\nexport async function pull(\n this: LocalContext,\n {\n auth,\n resources = DEFAULT_TRANSCEND_PULL_RESOURCES,\n file,\n transcendUrl,\n dataSiloIds = [],\n integrationNames = [],\n trackerStatuses = DEFAULT_CONSENT_TRACKER_STATUSES,\n pageSize,\n skipDatapoints,\n skipSubDatapoints,\n includeGuessedCategories,\n debug,\n }: PullCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process);\n\n // Parse authentication as API key or path to list of API keys\n const apiKeyOrList = await validateTranscendAuth(auth, this);\n\n const resourcesToPull: TranscendPullResource[] = resources.includes('all')\n ? Object.values(TranscendPullResource)\n : (resources as TranscendPullResource[]);\n\n // Sync to Disk\n if (typeof apiKeyOrList === 'string') {\n try {\n // Create a GraphQL client\n const client = buildTranscendGraphQLClient(transcendUrl, apiKeyOrList);\n\n const configuration = await pullTranscendConfiguration(client, {\n dataSiloIds,\n integrationNames,\n resources: resourcesToPull,\n pageSize,\n debug,\n skipDatapoints,\n skipSubDatapoints,\n includeGuessedCategories,\n trackerStatuses,\n });\n\n this.logger.info(colors.magenta(`Writing configuration to file \"${file}\"...`));\n this.fs.writeFileSync(file, serializeTranscendYaml(configuration));\n } catch (err) {\n this.logger.error(\n colors.red(`An error occurred syncing the schema: ${debug ? err.stack : err.message}`),\n );\n this.process.exit(1);\n }\n\n // Indicate success\n this.logger.info(\n colors.green(\n `Successfully synced yaml file to disk at ${file}! View at ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n } else {\n if (!this.fs.lstatSync(file).isDirectory()) {\n throw new Error(\n 'File is expected to be a folder when passing in a list of API keys to pull from. e.g. --file=./working/',\n );\n }\n\n const encounteredErrors: string[] = [];\n await mapSeries(apiKeyOrList, async (apiKey, ind) => {\n const prefix = `[${ind + 1}/${apiKeyOrList.length}][${apiKey.organizationName}] `;\n this.logger.info(\n colors.magenta(`~~~\\n\\n${prefix}Attempting to pull configuration...\\n\\n~~~`),\n );\n\n // Create a GraphQL client\n const client = buildTranscendGraphQLClient(transcendUrl, apiKey.apiKey);\n\n try {\n const configuration = await pullTranscendConfiguration(client, {\n dataSiloIds,\n integrationNames,\n resources: resourcesToPull,\n pageSize,\n debug,\n skipDatapoints,\n skipSubDatapoints,\n includeGuessedCategories,\n trackerStatuses,\n });\n\n const filePath = path.join(file, `${apiKey.organizationName}.yml`);\n this.logger.info(colors.magenta(`Writing configuration to file \"${filePath}\"...`));\n this.fs.writeFileSync(filePath, serializeTranscendYaml(configuration));\n\n this.logger.info(colors.green(`${prefix}Successfully pulled configuration!`));\n } catch (err) {\n this.logger.error(colors.red(`${prefix}Failed to sync configuration. - ${err.message}`));\n encounteredErrors.push(apiKey.organizationName);\n }\n });\n\n if (encounteredErrors.length > 0) {\n this.logger.info(\n colors.red(\n `Sync encountered errors for \"${encounteredErrors.join(\n ',',\n )}\". View output above for more information, or check out ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n\n this.process.exit(1);\n }\n }\n}\n"],"mappings":"ugBA+BA,eAAsB,EAEpB,CACE,OACA,YAAY,EACZ,OACA,eACA,cAAc,EAAE,CAChB,mBAAmB,EAAE,CACrB,kBAAkB,EAClB,WACA,iBACA,oBACA,2BACA,SAEa,CACf,EAAoB,KAAK,QAAQ,CAGjC,IAAM,EAAe,MAAM,EAAsB,EAAM,KAAK,CAEtD,EAA2C,EAAU,SAAS,MAAM,CACtE,OAAO,OAAO,EAAsB,CACnC,EAGL,GAAI,OAAO,GAAiB,SAAU,CACpC,GAAI,CAIF,IAAM,EAAgB,MAAM,EAFb,EAA4B,EAAc,EAEI,CAAE,CAC7D,cACA,mBACA,UAAW,EACX,WACA,QACA,iBACA,oBACA,2BACA,kBACD,CAAC,CAEF,KAAK,OAAO,KAAK,EAAO,QAAQ,kCAAkC,EAAK,MAAM,CAAC,CAC9E,KAAK,GAAG,cAAc,EAAM,EAAuB,EAAc,CAAC,OAC3D,EAAK,CACZ,KAAK,OAAO,MACV,EAAO,IAAI,yCAAyC,EAAQ,EAAI,MAAQ,EAAI,UAAU,CACvF,CACD,KAAK,QAAQ,KAAK,EAAE,CAItB,KAAK,OAAO,KACV,EAAO,MACL,4CAA4C,EAAK,YAAY,IAC9D,CACF,KACI,CACL,GAAI,CAAC,KAAK,GAAG,UAAU,EAAK,CAAC,aAAa,CACxC,MAAU,MACR,0GACD,CAGH,IAAM,EAA8B,EAAE,CACtC,MAAM,EAAU,EAAc,MAAO,EAAQ,IAAQ,CACnD,IAAM,EAAS,IAAI,EAAM,EAAE,GAAG,EAAa,OAAO,IAAI,EAAO,iBAAiB,IAC9E,KAAK,OAAO,KACV,EAAO,QAAQ,UAAU,EAAO,4CAA4C,CAC7E,CAGD,IAAM,EAAS,EAA4B,EAAc,EAAO,OAAO,CAEvE,GAAI,CACF,IAAM,EAAgB,MAAM,EAA2B,EAAQ,CAC7D,cACA,mBACA,UAAW,EACX,WACA,QACA,iBACA,oBACA,2BACA,kBACD,CAAC,CAEI,EAAW,EAAK,KAAK,EAAM,GAAG,EAAO,iBAAiB,MAAM,CAClE,KAAK,OAAO,KAAK,EAAO,QAAQ,kCAAkC,EAAS,MAAM,CAAC,CAClF,KAAK,GAAG,cAAc,EAAU,EAAuB,EAAc,CAAC,CAEtE,KAAK,OAAO,KAAK,EAAO,MAAM,GAAG,EAAO,oCAAoC,CAAC,OACtE,EAAK,CACZ,KAAK,OAAO,MAAM,EAAO,IAAI,GAAG,EAAO,kCAAkC,EAAI,UAAU,CAAC,CACxF,EAAkB,KAAK,EAAO,iBAAiB,GAEjD,CAEE,EAAkB,OAAS,IAC7B,KAAK,OAAO,KACV,EAAO,IACL,gCAAgC,EAAkB,KAChD,IACD,CAAC,0DAA0D,IAC7D,CACF,CAED,KAAK,QAAQ,KAAK,EAAE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./pushManualEnrichmentIdentifiersFromCsv-
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
import{t as e}from"./pushManualEnrichmentIdentifiersFromCsv-CXkMb7CB.mjs";import{t}from"./done-input-validation-LiTaCEzF.mjs";async function n({auth:n,transcendUrl:r,file:i,enricherId:a,concurrency:o,markSilent:s,sombraAuth:c}){t(this.process),await e({file:i,transcendUrl:r,enricherId:a,concurrency:o,markSilent:s,auth:n,sombraAuth:c})}export{n as pushIdentifiers};
|
|
2
|
+
//# sourceMappingURL=impl-ouUdsmXK.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impl-
|
|
1
|
+
{"version":3,"file":"impl-ouUdsmXK.mjs","names":[],"sources":["../src/commands/request/preflight/push-identifiers/impl.ts"],"sourcesContent":["import type { LocalContext } from '../../../../context.js';\nimport { doneInputValidation } from '../../../../lib/cli/done-input-validation.js';\nimport { pushManualEnrichmentIdentifiersFromCsv } from '../../../../lib/manual-enrichment/index.js';\n\nexport interface PushIdentifiersCommandFlags {\n auth: string;\n enricherId: string;\n sombraAuth?: string;\n transcendUrl: string;\n file: string;\n markSilent: boolean;\n concurrency: number;\n}\n\nexport async function pushIdentifiers(\n this: LocalContext,\n {\n auth,\n transcendUrl,\n file,\n enricherId,\n concurrency,\n markSilent,\n sombraAuth,\n }: PushIdentifiersCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process);\n\n await pushManualEnrichmentIdentifiersFromCsv({\n file,\n transcendUrl,\n enricherId,\n concurrency,\n markSilent,\n auth,\n sombraAuth,\n });\n}\n"],"mappings":"8HAcA,eAAsB,EAEpB,CACE,OACA,eACA,OACA,aACA,cACA,aACA,cAEa,CACf,EAAoB,KAAK,QAAQ,CAEjC,MAAM,EAAuC,CAC3C,OACA,eACA,aACA,cACA,aACA,OACA,aACD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./updateConsentManagerVersionToLatest-
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
import{t as e}from"./updateConsentManagerVersionToLatest-CQ1tEPPa.mjs";import{t}from"./validateTranscendAuth-BrVGfq6X.mjs";import{t as n}from"./done-input-validation-LiTaCEzF.mjs";import{ConsentBundleType as r}from"@transcend-io/privacy-types";import i from"colors";import{mapSeries as a}from"@transcend-io/utils";async function o({auth:o,bundleTypes:s=[r.Production,r.Test],deploy:c,transcendUrl:l}){n(this.process);let u=await t(o,this);typeof u==`string`?(await e({deploy:c,transcendUrl:l,auth:u,bundleTypes:s}),this.logger.info(i.green(`Successfully updated Consent Manager!`))):(await a(u,async t=>{this.logger.info(i.magenta(`Updating Consent Manager for organization "${t.organizationName}"...`)),await e({deploy:c,transcendUrl:l,auth:t.apiKey,bundleTypes:s}),this.logger.info(i.green(`Successfully updated Consent Manager for organization "${t.organizationName}"!`))}),this.logger.info(i.green(`Successfully updated Consent Managers!`)))}export{o as updateConsentManager};
|
|
2
|
+
//# sourceMappingURL=impl-p77uCDi3.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impl-
|
|
1
|
+
{"version":3,"file":"impl-p77uCDi3.mjs","names":[],"sources":["../src/commands/consent/update-consent-manager/impl.ts"],"sourcesContent":["import { ConsentBundleType } from '@transcend-io/privacy-types';\nimport { mapSeries } from '@transcend-io/utils';\nimport colors from 'colors';\n\nimport type { LocalContext } from '../../../context.js';\nimport { validateTranscendAuth } from '../../../lib/api-keys/index.js';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation.js';\nimport { updateConsentManagerVersionToLatest } from '../../../lib/consent-manager/index.js';\n\nexport interface UpdateConsentManagerCommandFlags {\n auth: string;\n bundleTypes: ConsentBundleType[];\n deploy: boolean;\n transcendUrl: string;\n}\n\nexport async function updateConsentManager(\n this: LocalContext,\n {\n auth,\n bundleTypes = [ConsentBundleType.Production, ConsentBundleType.Test],\n deploy,\n transcendUrl,\n }: UpdateConsentManagerCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process);\n\n // Parse authentication as API key or path to list of API keys\n const apiKeyOrList = await validateTranscendAuth(auth, this);\n\n // Handle single update\n if (typeof apiKeyOrList === 'string') {\n // Update consent manager\n await updateConsentManagerVersionToLatest({\n deploy,\n transcendUrl,\n auth: apiKeyOrList,\n bundleTypes,\n });\n this.logger.info(colors.green('Successfully updated Consent Manager!'));\n } else {\n await mapSeries(apiKeyOrList, async (apiKey) => {\n this.logger.info(\n colors.magenta(`Updating Consent Manager for organization \"${apiKey.organizationName}\"...`),\n );\n\n await updateConsentManagerVersionToLatest({\n deploy,\n transcendUrl,\n auth: apiKey.apiKey,\n bundleTypes,\n });\n\n this.logger.info(\n colors.green(\n `Successfully updated Consent Manager for organization \"${apiKey.organizationName}\"!`,\n ),\n );\n });\n this.logger.info(colors.green('Successfully updated Consent Managers!'));\n }\n}\n"],"mappings":"0TAgBA,eAAsB,EAEpB,CACE,OACA,cAAc,CAAC,EAAkB,WAAY,EAAkB,KAAK,CACpE,SACA,gBAEa,CACf,EAAoB,KAAK,QAAQ,CAGjC,IAAM,EAAe,MAAM,EAAsB,EAAM,KAAK,CAGxD,OAAO,GAAiB,UAE1B,MAAM,EAAoC,CACxC,SACA,eACA,KAAM,EACN,cACD,CAAC,CACF,KAAK,OAAO,KAAK,EAAO,MAAM,wCAAwC,CAAC,GAEvE,MAAM,EAAU,EAAc,KAAO,IAAW,CAC9C,KAAK,OAAO,KACV,EAAO,QAAQ,8CAA8C,EAAO,iBAAiB,MAAM,CAC5F,CAED,MAAM,EAAoC,CACxC,SACA,eACA,KAAM,EAAO,OACb,cACD,CAAC,CAEF,KAAK,OAAO,KACV,EAAO,MACL,0DAA0D,EAAO,iBAAiB,IACnF,CACF,EACD,CACF,KAAK,OAAO,KAAK,EAAO,MAAM,yCAAyC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./pullManualEnrichmentIdentifiersToCsv-
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
import{t as e}from"./pullManualEnrichmentIdentifiersToCsv-BJ60h_P2.mjs";import{t}from"./done-input-validation-LiTaCEzF.mjs";async function n({auth:n,transcendUrl:r,file:i,concurrency:a,actions:o,sombraAuth:s}){t(this.process),await e({file:i,transcendUrl:r,concurrency:a,requestActions:o,auth:n,sombraAuth:s})}export{n as pullIdentifiers};
|
|
2
|
+
//# sourceMappingURL=impl-yVOrJekX.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impl-
|
|
1
|
+
{"version":3,"file":"impl-yVOrJekX.mjs","names":[],"sources":["../src/commands/request/preflight/pull-identifiers/impl.ts"],"sourcesContent":["import type { RequestAction } from '@transcend-io/privacy-types';\n\nimport type { LocalContext } from '../../../../context.js';\nimport { doneInputValidation } from '../../../../lib/cli/done-input-validation.js';\nimport { pullManualEnrichmentIdentifiersToCsv } from '../../../../lib/manual-enrichment/index.js';\n\nexport interface PullIdentifiersCommandFlags {\n auth: string;\n sombraAuth?: string;\n transcendUrl: string;\n file: string;\n actions?: RequestAction[];\n concurrency: number;\n}\n\nexport async function pullIdentifiers(\n this: LocalContext,\n { auth, transcendUrl, file, concurrency, actions, sombraAuth }: PullIdentifiersCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process);\n\n await pullManualEnrichmentIdentifiersToCsv({\n file,\n transcendUrl,\n concurrency,\n requestActions: actions,\n auth,\n sombraAuth,\n });\n}\n"],"mappings":"4HAeA,eAAsB,EAEpB,CAAE,OAAM,eAAc,OAAM,cAAa,UAAS,cACnC,CACf,EAAoB,KAAK,QAAQ,CAEjC,MAAM,EAAqC,CACzC,OACA,eACA,cACA,eAAgB,EAChB,OACA,aACD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./uploadPrivacyRequestsFromCsv-
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
import{t as e}from"./uploadPrivacyRequestsFromCsv-CWJ1atMX.mjs";import{t}from"./done-input-validation-LiTaCEzF.mjs";import{splitCsvToList as n}from"@transcend-io/utils";async function r({auth:r,file:i,transcendUrl:a,cacheFilepath:o,requestReceiptFolder:s,sombraAuth:c,concurrency:l,attributes:u,isTest:d,isSilent:f,skipSendingReceipt:p,emailIsVerified:m,skipFilterStep:h,dryRun:g,debug:_,defaultPhoneCountryCode:v}){t(this.process),await e({cacheFilepath:o,requestReceiptFolder:s,file:i,auth:r,sombraAuth:c,concurrency:l,transcendUrl:a,defaultPhoneCountryCode:v,attributes:n(u),debug:_,skipFilterStep:h,isSilent:f,skipSendingReceipt:p,emailIsVerified:m,isTest:d,dryRun:g})}export{r as upload};
|
|
2
|
+
//# sourceMappingURL=impl-zrqmQLuL.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impl-
|
|
1
|
+
{"version":3,"file":"impl-zrqmQLuL.mjs","names":[],"sources":["../src/commands/request/upload/impl.ts"],"sourcesContent":["import { splitCsvToList } from '@transcend-io/utils';\n\nimport type { LocalContext } from '../../../context.js';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation.js';\nimport { uploadPrivacyRequestsFromCsv } from '../../../lib/requests/index.js';\n\nexport interface UploadCommandFlags {\n auth: string;\n file: string;\n transcendUrl: string;\n cacheFilepath: string;\n requestReceiptFolder: string;\n sombraAuth?: string;\n concurrency: number;\n attributes: string;\n isTest: boolean;\n isSilent: boolean;\n skipSendingReceipt: boolean;\n emailIsVerified: boolean;\n skipFilterStep: boolean;\n dryRun: boolean;\n debug: boolean;\n defaultPhoneCountryCode: string;\n}\n\nexport async function upload(\n this: LocalContext,\n {\n auth,\n file,\n transcendUrl,\n cacheFilepath,\n requestReceiptFolder,\n sombraAuth,\n concurrency,\n attributes,\n isTest,\n isSilent,\n skipSendingReceipt,\n emailIsVerified,\n skipFilterStep,\n dryRun,\n debug,\n defaultPhoneCountryCode,\n }: UploadCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process);\n\n await uploadPrivacyRequestsFromCsv({\n cacheFilepath,\n requestReceiptFolder,\n file,\n auth,\n sombraAuth,\n concurrency,\n transcendUrl,\n defaultPhoneCountryCode,\n attributes: splitCsvToList(attributes),\n debug,\n skipFilterStep,\n isSilent,\n skipSendingReceipt,\n emailIsVerified,\n isTest,\n dryRun,\n });\n}\n"],"mappings":"yKAyBA,eAAsB,EAEpB,CACE,OACA,OACA,eACA,gBACA,uBACA,aACA,cACA,aACA,SACA,WACA,qBACA,kBACA,iBACA,SACA,QACA,2BAEa,CACf,EAAoB,KAAK,QAAQ,CAEjC,MAAM,EAA6B,CACjC,gBACA,uBACA,OACA,OACA,aACA,cACA,eACA,0BACA,WAAY,EAAe,EAAW,CACtC,QACA,iBACA,WACA,qBACA,kBACA,SACA,SACD,CAAC"}
|
package/dist/index.d.mts
CHANGED
|
@@ -84,6 +84,7 @@ declare const TeamInput: t.IntersectionC<[t.TypeC<{
|
|
|
84
84
|
manageBilling: unknown;
|
|
85
85
|
manageDataMap: unknown;
|
|
86
86
|
managedAssignedIntegrations: unknown;
|
|
87
|
+
approveAssignedIntegrationRequests: unknown;
|
|
87
88
|
managedAssignedDataInventory: unknown;
|
|
88
89
|
managedAssignedConsentManager: unknown;
|
|
89
90
|
managedAssignedRequests: unknown;
|
|
@@ -69419,6 +69420,8 @@ declare const ActionItemInput: t.IntersectionC<[t.TypeC<{
|
|
|
69419
69420
|
PROFILE_DATA_POINT_STATUS: unknown;
|
|
69420
69421
|
REQUEST_EXPIRY: unknown;
|
|
69421
69422
|
REQUEST_DATA_SILO_ERROR: unknown;
|
|
69423
|
+
REQUEST_DATA_SILO_NEEDS_APPROVAL: unknown;
|
|
69424
|
+
REQUEST_DATA_SILO_NEEDS_APPROVAL_ASSIGNED: unknown;
|
|
69422
69425
|
REQUEST_ENRICHER_ERROR: unknown;
|
|
69423
69426
|
REQUEST_IDENTIFIER_NEEDS_VERIFICATION: unknown;
|
|
69424
69427
|
REQUEST_ENRICHER_PERSON_NEEDS_MANUAL_ENTRY: unknown;
|
|
@@ -86942,6 +86945,8 @@ declare const TranscendInput: t.PartialC<{
|
|
|
86942
86945
|
PROFILE_DATA_POINT_STATUS: unknown;
|
|
86943
86946
|
REQUEST_EXPIRY: unknown;
|
|
86944
86947
|
REQUEST_DATA_SILO_ERROR: unknown;
|
|
86948
|
+
REQUEST_DATA_SILO_NEEDS_APPROVAL: unknown;
|
|
86949
|
+
REQUEST_DATA_SILO_NEEDS_APPROVAL_ASSIGNED: unknown;
|
|
86945
86950
|
REQUEST_ENRICHER_ERROR: unknown;
|
|
86946
86951
|
REQUEST_IDENTIFIER_NEEDS_VERIFICATION: unknown;
|
|
86947
86952
|
REQUEST_ENRICHER_PERSON_NEEDS_MANUAL_ENTRY: unknown;
|
|
@@ -87061,6 +87066,7 @@ declare const TranscendInput: t.PartialC<{
|
|
|
87061
87066
|
manageBilling: unknown;
|
|
87062
87067
|
manageDataMap: unknown;
|
|
87063
87068
|
managedAssignedIntegrations: unknown;
|
|
87069
|
+
approveAssignedIntegrationRequests: unknown;
|
|
87064
87070
|
managedAssignedDataInventory: unknown;
|
|
87065
87071
|
managedAssignedConsentManager: unknown;
|
|
87066
87072
|
managedAssignedRequests: unknown;
|