@transcend-io/cli 8.32.6 → 8.32.7
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 +46 -46
- package/dist/bin/bash-complete.cjs +1 -1
- package/dist/bin/cli.cjs +1 -1
- package/dist/bin/deprecated-command.cjs +2 -2
- package/dist/{chunk-PCK2N4IA.cjs → chunk-4GILGOAM.cjs} +4 -4
- package/dist/{chunk-PCK2N4IA.cjs.map → chunk-4GILGOAM.cjs.map} +1 -1
- package/dist/{chunk-MLH6KKUK.cjs → chunk-4NEO6Q2F.cjs} +2 -2
- package/dist/{chunk-MLH6KKUK.cjs.map → chunk-4NEO6Q2F.cjs.map} +1 -1
- package/dist/{chunk-X2P2BWT7.cjs → chunk-4OEVQFNG.cjs} +21 -21
- package/dist/{chunk-X2P2BWT7.cjs.map → chunk-4OEVQFNG.cjs.map} +1 -1
- package/dist/{chunk-GJ6V5BHG.cjs → chunk-5MG2CEZV.cjs} +2 -2
- package/dist/{chunk-GJ6V5BHG.cjs.map → chunk-5MG2CEZV.cjs.map} +1 -1
- package/dist/{chunk-SZ7K447J.cjs → chunk-ATEDOYYC.cjs} +2 -2
- package/dist/{chunk-SZ7K447J.cjs.map → chunk-ATEDOYYC.cjs.map} +1 -1
- package/dist/{chunk-LE6FS55Q.cjs → chunk-EMLESF76.cjs} +6 -6
- package/dist/{chunk-LE6FS55Q.cjs.map → chunk-EMLESF76.cjs.map} +1 -1
- package/dist/{chunk-I6GMLKI6.cjs → chunk-ETSLJPTD.cjs} +2 -2
- package/dist/{chunk-I6GMLKI6.cjs.map → chunk-ETSLJPTD.cjs.map} +1 -1
- package/dist/{chunk-SFPZ6GEN.cjs → chunk-GCTE43TS.cjs} +4 -4
- package/dist/{chunk-SFPZ6GEN.cjs.map → chunk-GCTE43TS.cjs.map} +1 -1
- package/dist/{chunk-CDX243U3.cjs → chunk-H3EBIKX6.cjs} +2 -2
- package/dist/{chunk-CDX243U3.cjs.map → chunk-H3EBIKX6.cjs.map} +1 -1
- package/dist/{chunk-NZEATKWL.cjs → chunk-HZU3YROT.cjs} +2 -2
- package/dist/{chunk-NZEATKWL.cjs.map → chunk-HZU3YROT.cjs.map} +1 -1
- package/dist/{chunk-O7SJYOEK.cjs → chunk-ILBF5XZN.cjs} +2 -2
- package/dist/{chunk-O7SJYOEK.cjs.map → chunk-ILBF5XZN.cjs.map} +1 -1
- package/dist/{chunk-WJ3RFUZV.cjs → chunk-JRYG6ZXI.cjs} +2 -2
- package/dist/{chunk-WJ3RFUZV.cjs.map → chunk-JRYG6ZXI.cjs.map} +1 -1
- package/dist/{chunk-VWN5MN3U.cjs → chunk-KYOQWIIS.cjs} +4 -4
- package/dist/{chunk-VWN5MN3U.cjs.map → chunk-KYOQWIIS.cjs.map} +1 -1
- package/dist/{chunk-5UWKWV3X.cjs → chunk-ZNTCC7Y7.cjs} +2 -2
- package/dist/{chunk-5UWKWV3X.cjs.map → chunk-ZNTCC7Y7.cjs.map} +1 -1
- package/dist/{impl-UKTKLJSZ.cjs → impl-2NLTX2DX.cjs} +2 -2
- package/dist/{impl-UKTKLJSZ.cjs.map → impl-2NLTX2DX.cjs.map} +1 -1
- package/dist/{impl-DVIXGQJR.cjs → impl-2Z37FQLH.cjs} +2 -2
- package/dist/{impl-DVIXGQJR.cjs.map → impl-2Z37FQLH.cjs.map} +1 -1
- package/dist/{impl-ZUAB2R6X.cjs → impl-3G7CA7V7.cjs} +2 -2
- package/dist/{impl-ZUAB2R6X.cjs.map → impl-3G7CA7V7.cjs.map} +1 -1
- package/dist/{impl-MO2EAW2B.cjs → impl-43DHFRH3.cjs} +2 -2
- package/dist/{impl-MO2EAW2B.cjs.map → impl-43DHFRH3.cjs.map} +1 -1
- package/dist/{impl-G7YD5U53.cjs → impl-4GESIKYG.cjs} +2 -2
- package/dist/{impl-G7YD5U53.cjs.map → impl-4GESIKYG.cjs.map} +1 -1
- package/dist/{impl-PHXT2QG7.cjs → impl-4LNG6EWX.cjs} +2 -2
- package/dist/{impl-PHXT2QG7.cjs.map → impl-4LNG6EWX.cjs.map} +1 -1
- package/dist/{impl-EAI3VXKU.cjs → impl-5BSN73TG.cjs} +4 -4
- package/dist/{impl-EAI3VXKU.cjs.map → impl-5BSN73TG.cjs.map} +1 -1
- package/dist/{impl-RAZVKALS.cjs → impl-AB7CBUNN.cjs} +2 -2
- package/dist/{impl-RAZVKALS.cjs.map → impl-AB7CBUNN.cjs.map} +1 -1
- package/dist/{impl-CL5OTH3R.cjs → impl-ANZ5Q2QW.cjs} +2 -2
- package/dist/{impl-CL5OTH3R.cjs.map → impl-ANZ5Q2QW.cjs.map} +1 -1
- package/dist/{impl-575YOEHZ.cjs → impl-B2KHIHOI.cjs} +2 -2
- package/dist/{impl-575YOEHZ.cjs.map → impl-B2KHIHOI.cjs.map} +1 -1
- package/dist/{impl-D7RH4J5E.cjs → impl-BCRCUBC6.cjs} +2 -2
- package/dist/{impl-D7RH4J5E.cjs.map → impl-BCRCUBC6.cjs.map} +1 -1
- package/dist/{impl-SUS5VKKB.cjs → impl-BFSM3FLJ.cjs} +2 -2
- package/dist/{impl-SUS5VKKB.cjs.map → impl-BFSM3FLJ.cjs.map} +1 -1
- package/dist/{impl-QMDXFUAO.cjs → impl-C3RL4PL5.cjs} +2 -2
- package/dist/{impl-QMDXFUAO.cjs.map → impl-C3RL4PL5.cjs.map} +1 -1
- package/dist/{impl-PHHRQWTE.cjs → impl-C3YOETUJ.cjs} +2 -2
- package/dist/{impl-PHHRQWTE.cjs.map → impl-C3YOETUJ.cjs.map} +1 -1
- package/dist/{impl-CV6MBTAL.cjs → impl-CUQGOWYL.cjs} +2 -2
- package/dist/{impl-CV6MBTAL.cjs.map → impl-CUQGOWYL.cjs.map} +1 -1
- package/dist/{impl-RZSXBVAC.cjs → impl-CWWJOV4W.cjs} +2 -2
- package/dist/{impl-RZSXBVAC.cjs.map → impl-CWWJOV4W.cjs.map} +1 -1
- package/dist/{impl-T3KGRFUR.cjs → impl-D27XUTVP.cjs} +2 -2
- package/dist/{impl-T3KGRFUR.cjs.map → impl-D27XUTVP.cjs.map} +1 -1
- package/dist/{impl-IC4KAL33.cjs → impl-D6D7MZ4F.cjs} +2 -2
- package/dist/{impl-IC4KAL33.cjs.map → impl-D6D7MZ4F.cjs.map} +1 -1
- package/dist/{impl-TXBSRO6N.cjs → impl-EOWKDUEB.cjs} +2 -2
- package/dist/{impl-TXBSRO6N.cjs.map → impl-EOWKDUEB.cjs.map} +1 -1
- package/dist/impl-EQL4NORJ.cjs +2 -0
- package/dist/{impl-DNVWNGPJ.cjs.map → impl-EQL4NORJ.cjs.map} +1 -1
- package/dist/{impl-T6FTWSLY.cjs → impl-FAE3G5FE.cjs} +2 -2
- package/dist/{impl-T6FTWSLY.cjs.map → impl-FAE3G5FE.cjs.map} +1 -1
- package/dist/{impl-DGZB5IDM.cjs → impl-FVEGOBQM.cjs} +2 -2
- package/dist/{impl-DGZB5IDM.cjs.map → impl-FVEGOBQM.cjs.map} +1 -1
- package/dist/{impl-SA4YQJID.cjs → impl-HNWZZEKE.cjs} +2 -2
- package/dist/{impl-SA4YQJID.cjs.map → impl-HNWZZEKE.cjs.map} +1 -1
- package/dist/{impl-5LMTXEQA.cjs → impl-JJ56CQTW.cjs} +2 -2
- package/dist/{impl-5LMTXEQA.cjs.map → impl-JJ56CQTW.cjs.map} +1 -1
- package/dist/{impl-UU5CW4E4.cjs → impl-JNDENIQD.cjs} +2 -2
- package/dist/{impl-UU5CW4E4.cjs.map → impl-JNDENIQD.cjs.map} +1 -1
- package/dist/{impl-XT4Q54W2.cjs → impl-JOK5WPTD.cjs} +2 -2
- package/dist/{impl-XT4Q54W2.cjs.map → impl-JOK5WPTD.cjs.map} +1 -1
- package/dist/{impl-G422JWSA.cjs → impl-KJTD4WO2.cjs} +3 -3
- package/dist/{impl-G422JWSA.cjs.map → impl-KJTD4WO2.cjs.map} +1 -1
- package/dist/{impl-UYKI3NKQ.cjs → impl-KRMOTRYI.cjs} +2 -2
- package/dist/{impl-UYKI3NKQ.cjs.map → impl-KRMOTRYI.cjs.map} +1 -1
- package/dist/{impl-M2JWCIOX.cjs → impl-LX4ZUDUY.cjs} +2 -2
- package/dist/{impl-M2JWCIOX.cjs.map → impl-LX4ZUDUY.cjs.map} +1 -1
- package/dist/{impl-Y6ENZCUI.cjs → impl-MBWE7OAC.cjs} +2 -2
- package/dist/{impl-Y6ENZCUI.cjs.map → impl-MBWE7OAC.cjs.map} +1 -1
- package/dist/{impl-ZV7OZ5BN.cjs → impl-O4WDS4V2.cjs} +2 -2
- package/dist/{impl-ZV7OZ5BN.cjs.map → impl-O4WDS4V2.cjs.map} +1 -1
- package/dist/{impl-C6TDBSVQ.cjs → impl-PISNT2E4.cjs} +2 -2
- package/dist/{impl-C6TDBSVQ.cjs.map → impl-PISNT2E4.cjs.map} +1 -1
- package/dist/{impl-VVICNSEP.cjs → impl-PS3WRA65.cjs} +2 -2
- package/dist/{impl-VVICNSEP.cjs.map → impl-PS3WRA65.cjs.map} +1 -1
- package/dist/{impl-R5PX6MIE.cjs → impl-TBYACXLK.cjs} +5 -5
- package/dist/{impl-R5PX6MIE.cjs.map → impl-TBYACXLK.cjs.map} +1 -1
- package/dist/{impl-YQXGFOOO.cjs → impl-TD5BKXIH.cjs} +2 -2
- package/dist/{impl-YQXGFOOO.cjs.map → impl-TD5BKXIH.cjs.map} +1 -1
- package/dist/{impl-XOHK7EPT.cjs → impl-VBS6LHXD.cjs} +2 -2
- package/dist/{impl-XOHK7EPT.cjs.map → impl-VBS6LHXD.cjs.map} +1 -1
- package/dist/impl-WPM2STGX.cjs +2 -0
- package/dist/{impl-WY3A5X7O.cjs.map → impl-WPM2STGX.cjs.map} +1 -1
- package/dist/{impl-56QEHP2B.cjs → impl-WQF6YIDK.cjs} +3 -3
- package/dist/{impl-56QEHP2B.cjs.map → impl-WQF6YIDK.cjs.map} +1 -1
- package/dist/{impl-LJBAH4YS.cjs → impl-WWYWKXMK.cjs} +2 -2
- package/dist/{impl-LJBAH4YS.cjs.map → impl-WWYWKXMK.cjs.map} +1 -1
- package/dist/{impl-JT7MI4YS.cjs → impl-Y5TP56IB.cjs} +2 -2
- package/dist/{impl-JT7MI4YS.cjs.map → impl-Y5TP56IB.cjs.map} +1 -1
- package/dist/{impl-7DIFXY6N.cjs → impl-YOSAEFO2.cjs} +3 -3
- package/dist/{impl-7DIFXY6N.cjs.map → impl-YOSAEFO2.cjs.map} +1 -1
- package/dist/{impl-MCIWWT2M.cjs → impl-ZIBUPJJN.cjs} +2 -2
- package/dist/{impl-MCIWWT2M.cjs.map → impl-ZIBUPJJN.cjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/package.json +1 -1
- package/dist/impl-DNVWNGPJ.cjs +0 -2
- package/dist/impl-WY3A5X7O.cjs +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkJH5HRI6Dcjs = require('./chunk-JH5HRI6D.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkJH5HRI6Dcjs = require('./chunk-JH5HRI6D.cjs');var _chunkJRYG6ZXIcjs = require('./chunk-JRYG6ZXI.cjs');var _chunkZNTCC7Y7cjs = require('./chunk-ZNTCC7Y7.cjs');require('./chunk-ABKDAPPR.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkKYOQWIIScjs = require('./chunk-KYOQWIIS.cjs');require('./chunk-TSJTXXLZ.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunk5MG2CEZVcjs = require('./chunk-5MG2CEZV.cjs');var _chunk7PB6LVSEcjs = require('./chunk-7PB6LVSE.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var _path = require('path');var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);async function Y({auth:L,resources:g=_chunkJRYG6ZXIcjs.i,file:e,transcendUrl:p,dataSiloIds:d=[],integrationNames:T=[],trackerStatuses:h=_chunkJRYG6ZXIcjs.j,pageSize:y,skipDatapoints:S,skipSubDatapoints:$,includeGuessedCategories:A,debug:s}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let i=await _chunkZNTCC7Y7cjs.b.call(void 0, L),C=g.includes("all")?Object.values(_chunk7PB6LVSEcjs.d):g;if(typeof i=="string"){try{let r=_chunkKYOQWIIScjs.zc.call(void 0, p,i),t=await _chunkKYOQWIIScjs.ke.call(void 0, r,{dataSiloIds:d,integrationNames:T,resources:C,pageSize:y,debug:s,skipDatapoints:S,skipSubDatapoints:$,includeGuessedCategories:A,trackerStatuses:h});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Writing configuration to file "${e}"...`)),_chunkJH5HRI6Dcjs.e.call(void 0, e,t)}catch(r){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error occurred syncing the schema: ${s?r.stack:r.message}`)),this.process.exit(1)}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced yaml file to disk at ${e}! View at ${_chunk5MG2CEZVcjs.p}`))}else{if(!_fs2.default.lstatSync(e).isDirectory())throw new Error("File is expected to be a folder when passing in a list of API keys to pull from. e.g. --file=./working/");let r=[];await _chunkKYOQWIIScjs.b.call(void 0, i,async(t,_)=>{let a=`[${_+1}/${i.length}][${t.organizationName}] `;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`~~~
|
|
2
2
|
|
|
3
3
|
${a}Attempting to pull configuration...
|
|
4
4
|
|
|
5
|
-
~~~`));let k=
|
|
6
|
-
//# sourceMappingURL=impl-
|
|
5
|
+
~~~`));let k=_chunkKYOQWIIScjs.zc.call(void 0, p,t.apiKey);try{let c=await _chunkKYOQWIIScjs.ke.call(void 0, k,{dataSiloIds:d,integrationNames:T,resources:C,pageSize:y,debug:s,skipDatapoints:S,skipSubDatapoints:$,includeGuessedCategories:A,trackerStatuses:h}),w=_path.join.call(void 0, e,`${t.organizationName}.yml`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Writing configuration to file "${w}"...`)),_chunkJH5HRI6Dcjs.e.call(void 0, w,c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`${a}Successfully pulled configuration!`))}catch(c){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to sync configuration. - ${c.message}`)),r.push(t.organizationName)}}),r.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors for "${r.join(",")}". View output above for more information, or check out ${_chunk5MG2CEZVcjs.p}`)),this.process.exit(1))}}exports.pull = Y;
|
|
6
|
+
//# sourceMappingURL=impl-WQF6YIDK.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-WQF6YIDK.cjs","../src/commands/inventory/pull/impl.ts"],"names":["pull","auth","resources","DEFAULT_TRANSCEND_PULL_RESOURCES","file","transcendUrl","dataSiloIds","integrationNames","trackerStatuses","DEFAULT_CONSENT_TRACKER_STATUSES","pageSize","skipDatapoints","skipSubDatapoints","includeGuessedCategories","debug","doneInputValidation","apiKeyOrList","validateTranscendAuth","resourcesToPull","TranscendPullResource","client","buildTranscendGraphQLClient","configuration","pullTranscendConfiguration","logger","colors","writeTranscendYaml","err"],"mappings":"AAAA,iOAAwC,wDAAgD,wDAAyC,gCAA6B,wDAAyC,wDAAyD,gCAA6B,wDAAyC,wDAAyC,wDAAyC,gFCSrY,4BAEE,gEACN,MA0Bf,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CAAYC,mBAAAA,CACZ,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,CAAC,CAAA,CACf,gBAAA,CAAAC,CAAAA,CAAmB,CAAC,CAAA,CACpB,eAAA,CAAAC,CAAAA,CAAkBC,mBAAAA,CAClB,QAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAC,CAAAA,CACA,wBAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAGrC,IAAMC,CAAAA,CAAe,MAAMC,iCAAAA,CAA0B,CAAA,CAE/CC,CAAAA,CAA2ChB,CAAAA,CAAU,QAAA,CAAS,KAAK,CAAA,CACrE,MAAA,CAAO,MAAA,CAAOiB,mBAAqB,CAAA,CAClCjB,CAAAA,CAGL,EAAA,CAAI,OAAOc,CAAAA,EAAiB,QAAA,CAAU,CACpC,GAAI,CAEF,IAAMI,CAAAA,CAASC,kCAAAA,CAA4BhB,CAAcW,CAAY,CAAA,CAE/DM,CAAAA,CAAgB,MAAMC,kCAAAA,CAA2BH,CAAQ,CAC7D,WAAA,CAAAd,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,SAAA,CAAWW,CAAAA,CACX,QAAA,CAAAR,CAAAA,CACA,KAAA,CAAAI,CAAAA,CACA,cAAA,CAAAH,CAAAA,CACA,iBAAA,CAAAC,CAAAA,CACA,wBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAL,CACF,CAAC,CAAA,CAEDgB,mBAAAA,CAAO,IAAA,CAAKC,gBAAAA,CAAO,OAAA,CAAQ,CAAA,+BAAA,EAAkCrB,CAAI,CAAA,IAAA,CAAM,CAAC,CAAA,CACxEsB,iCAAAA,CAAmBtB,CAAMkB,CAAa,CACxC,CAAA,KAAA,CAASK,CAAAA,CAAK,CACZH,mBAAAA,CAAO,KAAA,CACLC,gBAAAA,CAAO,GAAA,CACL,CAAA,sCAAA,EACEX,CAAAA,CAAQa,CAAAA,CAAI,KAAA,CAAQA,CAAAA,CAAI,OAC1B,CAAA,CAAA;AA0BA;AAAgB;AAAA;AAiD1B,GAAA","file":"/home/runner/work/cli/cli/dist/impl-WQF6YIDK.cjs","sourcesContent":[null,"import { ConsentTrackerStatus } from '@transcend-io/privacy-types';\nimport type { LocalContext } from '../../../context';\nimport { TranscendPullResource } from '../../../enums';\nimport {\n DEFAULT_CONSENT_TRACKER_STATUSES,\n DEFAULT_TRANSCEND_PULL_RESOURCES,\n} from './command';\n\nimport { logger } from '../../../logger';\nimport colors from 'colors';\nimport { mapSeries } from '../../../lib/bluebird';\nimport { join } from 'node:path';\nimport fs from 'node:fs';\nimport {\n buildTranscendGraphQLClient,\n pullTranscendConfiguration,\n} from '../../../lib/graphql';\n\nimport { writeTranscendYaml } from '../../../lib/readTranscendYaml';\nimport { ADMIN_DASH_INTEGRATIONS } from '../../../constants';\nimport { validateTranscendAuth } from '../../../lib/api-keys';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\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.exit);\n\n // Parse authentication as API key or path to list of API keys\n const apiKeyOrList = await validateTranscendAuth(auth);\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 logger.info(colors.magenta(`Writing configuration to file \"${file}\"...`));\n writeTranscendYaml(file, configuration);\n } catch (err) {\n logger.error(\n colors.red(\n `An error occurred syncing the schema: ${\n debug ? err.stack : err.message\n }`,\n ),\n );\n this.process.exit(1);\n }\n\n // Indicate success\n 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 (!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}][${\n apiKey.organizationName\n }] `;\n logger.info(\n colors.magenta(\n `~~~\\n\\n${prefix}Attempting to pull configuration...\\n\\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 = join(file, `${apiKey.organizationName}.yml`);\n logger.info(\n colors.magenta(`Writing configuration to file \"${filePath}\"...`),\n );\n writeTranscendYaml(filePath, configuration);\n\n logger.info(\n colors.green(`${prefix}Successfully pulled configuration!`),\n );\n } catch (err) {\n logger.error(\n colors.red(`${prefix}Failed to sync configuration. - ${err.message}`),\n );\n encounteredErrors.push(apiKey.organizationName);\n }\n });\n\n if (encounteredErrors.length > 0) {\n 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"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkKYOQWIIScjs = require('./chunk-KYOQWIIS.cjs');require('./chunk-TSJTXXLZ.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-5MG2CEZV.cjs');require('./chunk-7PB6LVSE.cjs');async function p({auth:r,actions:s,statuses:i=[],requestIds:c,silentModeBefore:e,createdAtBefore:t,createdAtAfter:n,cancellationTitle:u,transcendUrl:d,concurrency:l}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkKYOQWIIScjs.Jf.call(void 0, {transcendUrl:d,requestActions:s,auth:r,cancellationTitle:u,requestIds:c,statuses:i,concurrency:l,silentModeBefore:e?new Date(e):void 0,createdAtBefore:t?new Date(t):void 0,createdAtAfter:n?new Date(n):void 0})}exports.cancel = p;
|
|
2
|
+
//# sourceMappingURL=impl-WWYWKXMK.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-WWYWKXMK.cjs","../src/commands/request/cancel/impl.ts"],"names":["cancel","auth","actions","statuses","requestIds","silentModeBefore","createdAtBefore","createdAtAfter","cancellationTitle","transcendUrl","concurrency","doneInputValidation","cancelPrivacyRequests"],"mappings":"AAAA,iIAAwC,wDAA0C,gCAA6B,gCAA6B,gCAA6B,gCAA6B,MCkBtM,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CAAW,CAAC,CAAA,CACZ,UAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,MAAMC,kCAAAA,CACJ,YAAA,CAAAH,CAAAA,CACA,cAAA,CAAgBP,CAAAA,CAChB,IAAA,CAAAD,CAAAA,CACA,iBAAA,CAAAO,CAAAA,CACA,UAAA,CAAAJ,CAAAA,CACA,QAAA,CAAAD,CAAAA,CACA,WAAA,CAAAO,CAAAA,CACA,gBAAA,CAAkBL,CAAAA,CAAmB,IAAI,IAAA,CAAKA,CAAgB,CAAA,CAAI,KAAA,CAAA,CAClE,eAAA,CAAiBC,CAAAA,CAAkB,IAAI,IAAA,CAAKA,CAAe,CAAA,CAAI,KAAA,CAAA,CAC/D,cAAA,CAAgBC,CAAAA,CAAiB,IAAI,IAAA,CAAKA,CAAc,CAAA,CAAI,KAAA,CAC9D,CAAC,CACH,CAAA,mBAAA","file":"/home/runner/work/cli/cli/dist/impl-WWYWKXMK.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport { RequestAction, RequestStatus } from '@transcend-io/privacy-types';\nimport { cancelPrivacyRequests } from '../../../lib/requests';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface CancelCommandFlags {\n auth: string;\n actions: RequestAction[];\n statuses?: RequestStatus[];\n requestIds?: string[];\n silentModeBefore?: Date;\n createdAtBefore?: Date;\n createdAtAfter?: Date;\n cancellationTitle: string;\n transcendUrl: string;\n concurrency: number;\n}\n\nexport async function cancel(\n this: LocalContext,\n {\n auth,\n actions,\n statuses = [],\n requestIds,\n silentModeBefore,\n createdAtBefore,\n createdAtAfter,\n cancellationTitle,\n transcendUrl,\n concurrency,\n }: CancelCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n await cancelPrivacyRequests({\n transcendUrl,\n requestActions: actions,\n auth,\n cancellationTitle,\n requestIds,\n statuses,\n concurrency,\n silentModeBefore: silentModeBefore ? new Date(silentModeBefore) : undefined,\n createdAtBefore: createdAtBefore ? new Date(createdAtBefore) : undefined,\n createdAtAfter: createdAtAfter ? new Date(createdAtAfter) : undefined,\n });\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk4NEO6Q2Fcjs = require('./chunk-4NEO6Q2F.cjs');require('./chunk-HZU3YROT.cjs');var _chunkZNTCC7Y7cjs = require('./chunk-ZNTCC7Y7.cjs');require('./chunk-ABKDAPPR.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkKYOQWIIScjs = require('./chunk-KYOQWIIS.cjs');require('./chunk-TSJTXXLZ.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');require('./chunk-5MG2CEZV.cjs');require('./chunk-7PB6LVSE.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var _privacytypes = require('@transcend-io/privacy-types');async function x({auth:f,bundleTypes:r=[_privacytypes.ConsentBundleType.Production,_privacytypes.ConsentBundleType.Test],deploy:i,transcendUrl:s}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let t=await _chunkZNTCC7Y7cjs.b.call(void 0, f);typeof t=="string"?(await _chunk4NEO6Q2Fcjs.a.call(void 0, {deploy:i,transcendUrl:s,auth:t,bundleTypes:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green("Successfully updated Consent Manager!"))):(await _chunkKYOQWIIScjs.b.call(void 0, t,async e=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating Consent Manager for organization "${e.organizationName}"...`)),await _chunk4NEO6Q2Fcjs.a.call(void 0, {deploy:i,transcendUrl:s,auth:e.apiKey,bundleTypes:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated Consent Manager for organization "${e.organizationName}"!`))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green("Successfully updated Consent Managers!")))}exports.updateConsentManager = x;
|
|
2
|
+
//# sourceMappingURL=impl-Y5TP56IB.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-Y5TP56IB.cjs","../src/commands/consent/update-consent-manager/impl.ts"],"names":["updateConsentManager","auth","bundleTypes","ConsentBundleType","deploy","transcendUrl","doneInputValidation","apiKeyOrList","validateTranscendAuth","updateConsentManagerVersionToLatest","logger","colors","mapSeries","apiKey"],"mappings":"AAAA,iOAAmC,gCAA6B,wDAAyC,gCAA6B,wDAAyC,wDAAyC,gCAA6B,wDAAyC,gCAA6B,gCAA6B,gFCCrU,2DACe,MAelC,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,CAACC,+BAAAA,CAAkB,UAAA,CAAYA,+BAAAA,CAAkB,IAAI,CAAA,CACnE,MAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAGrC,IAAMC,CAAAA,CAAe,MAAMC,iCAAAA,CAA0B,CAAA,CAGjD,OAAOD,CAAAA,EAAiB,QAAA,CAAA,CAE1B,MAAME,iCAAAA,CACJ,MAAA,CAAAL,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAME,CAAAA,CACN,WAAA,CAAAL,CACF,CAAC,CAAA,CACDQ,mBAAAA,CAAO,IAAA,CAAKC,gBAAAA,CAAO,KAAA,CAAM,uCAAuC,CAAC,CAAA,CAAA,CAAA,CAEjE,MAAMC,iCAAAA,CAAUL,CAAc,MAAOM,CAAAA,EAAW,CAC9CH,mBAAAA,CAAO,IAAA,CACLC,gBAAAA,CAAO,OAAA,CACL,CAAA,2CAAA,EAA8CE,CAAAA,CAAO,gBAAgB,CAAA,IAAA,CACvE,CACF,CAAA,CAEA,MAAMJ,iCAAAA,CACJ,MAAA,CAAAL,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAMQ,CAAAA,CAAO,MAAA,CACb,WAAA,CAAAX,CACF,CAAC,CAAA,CAEDQ,mBAAAA,CAAO,IAAA,CACLC,gBAAAA,CAAO,KAAA,CACL,CAAA,uDAAA,EAA0DE,CAAAA,CAAO,gBAAgB,CAAA,EAAA,CACnF,CACF,CACF,CAAC,CAAA,CACDH,mBAAAA,CAAO,IAAA,CAAKC,gBAAAA,CAAO,KAAA,CAAM,wCAAwC,CAAC,CAAA,CAEtE,CAAA,iCAAA","file":"/home/runner/work/cli/cli/dist/impl-Y5TP56IB.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport colors from 'colors';\nimport { ConsentBundleType } from '@transcend-io/privacy-types';\nimport { mapSeries } from '../../../lib/bluebird';\n\nimport { logger } from '../../../logger';\nimport { updateConsentManagerVersionToLatest } from '../../../lib/consent-manager';\nimport { validateTranscendAuth } from '../../../lib/api-keys';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\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.exit);\n\n // Parse authentication as API key or path to list of API keys\n const apiKeyOrList = await validateTranscendAuth(auth);\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 logger.info(colors.green('Successfully updated Consent Manager!'));\n } else {\n await mapSeries(apiKeyOrList, async (apiKey) => {\n logger.info(\n colors.magenta(\n `Updating Consent Manager for organization \"${apiKey.organizationName}\"...`,\n ),\n );\n\n await updateConsentManagerVersionToLatest({\n deploy,\n transcendUrl,\n auth: apiKey.apiKey,\n bundleTypes,\n });\n\n logger.info(\n colors.green(\n `Successfully updated Consent Manager for organization \"${apiKey.organizationName}\"!`,\n ),\n );\n });\n logger.info(colors.green('Successfully updated Consent Managers!'));\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkJH5HRI6Dcjs = require('./chunk-JH5HRI6D.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkJH5HRI6Dcjs = require('./chunk-JH5HRI6D.cjs');var _chunkZNTCC7Y7cjs = require('./chunk-ZNTCC7Y7.cjs');require('./chunk-ABKDAPPR.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkKYOQWIIScjs = require('./chunk-KYOQWIIS.cjs');require('./chunk-TSJTXXLZ.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunk5MG2CEZVcjs = require('./chunk-5MG2CEZV.cjs');require('./chunk-7PB6LVSE.cjs');var _fs = require('fs');var _path = require('path');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function N({transcendUrl:i,auth:c,pageSize:h,publishToPrivacyCenter:y,contents:l,deleteExtraAttributeValues:m=!1,classifyService:f=!1}){let u=_chunkKYOQWIIScjs.zc.call(void 0, i,c);try{return!await _chunkKYOQWIIScjs.zg.call(void 0, l,u,{pageSize:h,publishToPrivacyCenter:y,classifyService:f,deleteExtraAttributeValues:m})}catch(o){return _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An unexpected error occurred syncing the schema: ${o.message}`)),!1}}async function U({file:i="./transcend.yml",transcendUrl:c,auth:h,variables:y,pageSize:l,publishToPrivacyCenter:m,classifyService:f,deleteExtraAttributeValues:u}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let o=await _chunkZNTCC7Y7cjs.b.call(void 0, h),E=_chunkKYOQWIIScjs.Yf.call(void 0, y),p;if(Array.isArray(o)&&_fs.lstatSync.call(void 0, i).isDirectory()?p=_chunkZNTCC7Y7cjs.c.call(void 0, i).map(e=>_path.join.call(void 0, i,e)):p=i.split(","),p.length<1)throw new Error("No file specified!");let s=p.map(e=>{_fs.existsSync.call(void 0, e)?_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Reading file "${e}"...`)):(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`The file path does not exist on disk: ${e}. You can specify the filepath using --file=./examples/transcend.yml`)),this.process.exit(1));try{let r=_chunkJH5HRI6Dcjs.d.call(void 0, e,E);return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully read in "${e}"`)),{content:r,name:e.split("/").pop().replace(".yml","")}}catch(r){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`The shape of your yaml file is invalid with the following errors: ${r.message}`)),this.process.exit(1)}});if(typeof o=="string"){let[e,...r]=s.map(({content:d})=>d),$=_chunkIBTP5OXEcjs.a.call(void 0, e,...r);await N({transcendUrl:c,auth:o,contents:$,publishToPrivacyCenter:m,deleteExtraAttributeValues:u,pageSize:l,classifyService:!!f})||(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors. View output above for more information, or check out ${_chunk5MG2CEZVcjs.p}`)),this.process.exit(1))}else{if(s.length!==1&&s.length!==o.length)throw new Error(`Expected list of yml files to be equal to the list of API keys.Got ${s.length} YML file${s.length===1?"":"s"} and ${o.length} API key${o.length===1?"":"s"}`);let e=[];await _chunkKYOQWIIScjs.b.call(void 0, o,async(r,$)=>{let a=`[${$+1}/${o.length}][${r.organizationName}] `;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`~~~
|
|
2
2
|
|
|
3
3
|
${a}Attempting to push configuration...
|
|
4
4
|
|
|
5
|
-
~~~`));let d=s.length===1?s[0].content:_optionalChain([s, 'access', _ => _.find, 'call', _2 => _2(z=>z.name===r.organizationName), 'optionalAccess', _3 => _3.content]);if(!d){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to find transcend.yml file for organization: "${r.organizationName}".`)),e.push(r.organizationName);return}await N({transcendUrl:c,auth:r.apiKey,contents:d,pageSize:l,publishToPrivacyCenter:m,deleteExtraAttributeValues:u,classifyService:f})?_chunkZUNVPK23cjs.a.info(_colors2.default.green(`${a}Successfully pushed configuration!`)):(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to sync configuration.`)),e.push(r.organizationName))}),e.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors for "${e.join(",")}". View output above for more information, or check out ${
|
|
6
|
-
//# sourceMappingURL=impl-
|
|
5
|
+
~~~`));let d=s.length===1?s[0].content:_optionalChain([s, 'access', _ => _.find, 'call', _2 => _2(z=>z.name===r.organizationName), 'optionalAccess', _3 => _3.content]);if(!d){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to find transcend.yml file for organization: "${r.organizationName}".`)),e.push(r.organizationName);return}await N({transcendUrl:c,auth:r.apiKey,contents:d,pageSize:l,publishToPrivacyCenter:m,deleteExtraAttributeValues:u,classifyService:f})?_chunkZUNVPK23cjs.a.info(_colors2.default.green(`${a}Successfully pushed configuration!`)):(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to sync configuration.`)),e.push(r.organizationName))}),e.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors for "${e.join(",")}". View output above for more information, or check out ${_chunk5MG2CEZVcjs.p}`)),this.process.exit(1))}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced yaml file to Transcend! View at ${_chunk5MG2CEZVcjs.p}`))}exports.push = U;
|
|
6
|
+
//# sourceMappingURL=impl-YOSAEFO2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-YOSAEFO2.cjs","../src/commands/inventory/push/impl.ts"],"names":["syncConfiguration","transcendUrl","auth","pageSize","publishToPrivacyCenter","contents","deleteExtraAttributeValues","classifyService","client","buildTranscendGraphQLClient","syncConfigurationToTranscend","err","logger","colors"],"mappings":"AAAA,quBAAwC,wDAAyC,wDAAgD,gCAA6B,wDAAyC,wDAAiE,gCAA6B,wDAAyC,wDAAyC,gCAA6B,wBCI9W,4BACjB,gFAEF,MAmBnB,SAAeA,CAAAA,CAAkB,CAC/B,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,sBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,0BAAA,CAAAC,CAAAA,CAA6B,CAAA,CAAA,CAC7B,eAAA,CAAAC,CAAAA,CAAkB,CAAA,CACpB,CAAA,CAeqB,CACnB,IAAMC,CAAAA,CAASC,kCAAAA,CAA4BR,CAAcC,CAAI,CAAA,CAG7D,GAAI,CAWF,MAAO,CAVkB,MAAMQ,kCAAAA,CAC7BL,CACAG,CAAAA,CACA,CACE,QAAA,CAAAL,CAAAA,CACA,sBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAG,CAAAA,CACA,0BAAA,CAAAD,CACF,CACF,CAEF,CAAA,KAAA,CAASK,CAAAA,CAAK,CACZ,OAAAC,mBAAAA,CAAO,KAAA,CACLC,gBAAAA,CAAO,GAAA,CACL,CAAA,iDAAA,EAAoDF,CAAAA,CAAI,OAAO,CAAA,CAAA;AAsI7D;AAAgB;AAAA;AA8D1B,GAAA","file":"/home/runner/work/cli/cli/dist/impl-YOSAEFO2.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\n\nimport { logger } from '../../../logger';\nimport { mapSeries } from '../../../lib/bluebird';\nimport { existsSync, lstatSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { readTranscendYaml } from '../../../lib/readTranscendYaml';\nimport colors from 'colors';\nimport {\n buildTranscendGraphQLClient,\n syncConfigurationToTranscend,\n} from '../../../lib/graphql';\n\nimport { ADMIN_DASH_INTEGRATIONS } from '../../../constants';\nimport { TranscendInput } from '../../../codecs';\nimport { validateTranscendAuth, listFiles } from '../../../lib/api-keys';\nimport { mergeTranscendInputs } from '../../../lib/mergeTranscendInputs';\nimport { parseVariablesFromString } from '../../../lib/helpers/parseVariablesFromString';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\n/**\n * Sync configuration to Transcend\n *\n * @param options - Options\n * @returns True if synced successfully, false if error occurs\n */\nasync function syncConfiguration({\n transcendUrl,\n auth,\n pageSize,\n publishToPrivacyCenter,\n contents,\n deleteExtraAttributeValues = false,\n classifyService = false,\n}: {\n /** Transcend YAML */\n contents: TranscendInput;\n /** Transcend URL */\n transcendUrl: string;\n /** API key */\n auth: string;\n /** Page size */\n pageSize: number;\n /** Skip privacy center publish step */\n publishToPrivacyCenter: boolean;\n /** classify data flow service if missing */\n classifyService?: boolean;\n /** Delete attributes when syncing */\n deleteExtraAttributeValues?: boolean;\n}): Promise<boolean> {\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Sync to Transcend\n try {\n const encounteredError = await syncConfigurationToTranscend(\n contents,\n client,\n {\n pageSize,\n publishToPrivacyCenter,\n classifyService,\n deleteExtraAttributeValues,\n },\n );\n return !encounteredError;\n } catch (err) {\n logger.error(\n colors.red(\n `An unexpected error occurred syncing the schema: ${err.message}`,\n ),\n );\n return false;\n }\n}\n\nexport interface PushCommandFlags {\n auth: string;\n file: string;\n transcendUrl: string;\n pageSize: number;\n variables: string;\n publishToPrivacyCenter: boolean;\n classifyService: boolean;\n deleteExtraAttributeValues: boolean;\n}\n\nexport async function push(\n this: LocalContext,\n {\n file = './transcend.yml',\n transcendUrl,\n auth,\n variables,\n pageSize,\n publishToPrivacyCenter,\n classifyService,\n deleteExtraAttributeValues,\n }: PushCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n // Parse authentication as API key or path to list of API keys\n const apiKeyOrList = await validateTranscendAuth(auth);\n\n // Parse out the variables\n const vars = parseVariablesFromString(variables);\n\n // check if we are being passed a list of API keys and a list of files\n let fileList: string[];\n if (Array.isArray(apiKeyOrList) && lstatSync(file).isDirectory()) {\n fileList = listFiles(file).map((filePath) => join(file, filePath));\n } else {\n fileList = file.split(',');\n }\n\n // Ensure at least one file is parsed\n if (fileList.length < 1) {\n throw new Error('No file specified!');\n }\n\n // eslint-disable-next-line array-callback-return,consistent-return\n const transcendInputs = fileList.map((filePath) => {\n // Ensure yaml file exists on disk\n if (!existsSync(filePath)) {\n logger.error(\n colors.red(\n `The file path does not exist on disk: ${filePath}. You can specify the filepath using --file=./examples/transcend.yml`,\n ),\n );\n this.process.exit(1);\n } else {\n logger.info(colors.magenta(`Reading file \"${filePath}\"...`));\n }\n\n try {\n // Read in the yaml file and validate it's shape\n const newContents = readTranscendYaml(filePath, vars);\n logger.info(colors.green(`Successfully read in \"${filePath}\"`));\n return {\n content: newContents,\n name: filePath.split('/').pop()!.replace('.yml', ''),\n };\n } catch (err) {\n logger.error(\n colors.red(\n `The shape of your yaml file is invalid with the following errors: ${err.message}`,\n ),\n );\n this.process.exit(1);\n }\n });\n\n // process a single API key\n if (typeof apiKeyOrList === 'string') {\n // if passed multiple inputs, merge them together\n const [base, ...rest] = transcendInputs.map(({ content }) => content);\n const contents = mergeTranscendInputs(base, ...rest);\n\n // sync the configuration\n const success = await syncConfiguration({\n transcendUrl,\n auth: apiKeyOrList,\n contents,\n publishToPrivacyCenter,\n deleteExtraAttributeValues,\n pageSize,\n classifyService: !!classifyService,\n });\n\n // exist with error code\n if (!success) {\n logger.info(\n colors.red(\n `Sync encountered errors. View output above for more information, or check out ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n\n this.process.exit(1);\n }\n } else {\n // if passed multiple inputs, expect them to be one per instance\n if (\n transcendInputs.length !== 1 &&\n transcendInputs.length !== apiKeyOrList.length\n ) {\n throw new Error(\n 'Expected list of yml files to be equal to the list of API keys.' +\n `Got ${transcendInputs.length} YML file${\n transcendInputs.length === 1 ? '' : 's'\n } and ${apiKeyOrList.length} API key${\n apiKeyOrList.length === 1 ? '' : 's'\n }`,\n );\n }\n\n const encounteredErrors: string[] = [];\n await mapSeries(apiKeyOrList, async (apiKey, ind) => {\n const prefix = `[${ind + 1}/${apiKeyOrList.length}][${\n apiKey.organizationName\n }] `;\n logger.info(\n colors.magenta(\n `~~~\\n\\n${prefix}Attempting to push configuration...\\n\\n~~~`,\n ),\n );\n\n // use the merged contents if 1 yml passed, else use the contents that map to that organization\n const useContents =\n transcendInputs.length === 1\n ? transcendInputs[0].content\n : transcendInputs.find(\n (input) => input.name === apiKey.organizationName,\n )?.content;\n\n // Throw error if cannot find a yml file matching that organization name\n if (!useContents) {\n logger.error(\n colors.red(\n `${prefix}Failed to find transcend.yml file for organization: \"${apiKey.organizationName}\".`,\n ),\n );\n encounteredErrors.push(apiKey.organizationName);\n return;\n }\n\n const success = await syncConfiguration({\n transcendUrl,\n auth: apiKey.apiKey,\n contents: useContents,\n pageSize,\n publishToPrivacyCenter,\n deleteExtraAttributeValues,\n classifyService,\n });\n\n if (success) {\n logger.info(\n colors.green(`${prefix}Successfully pushed configuration!`),\n );\n } else {\n logger.error(colors.red(`${prefix}Failed to sync configuration.`));\n encounteredErrors.push(apiKey.organizationName);\n }\n });\n\n if (encounteredErrors.length > 0) {\n 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 // Indicate success\n logger.info(\n colors.green(\n `Successfully synced yaml file to Transcend! View at ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk4GILGOAMcjs = require('./chunk-4GILGOAM.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkKYOQWIIScjs = require('./chunk-KYOQWIIS.cjs');require('./chunk-TSJTXXLZ.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');require('./chunk-5MG2CEZV.cjs');require('./chunk-7PB6LVSE.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var _path = require('path');var _fs = require('fs');function H(r,e){r||(_chunkZUNVPK23cjs.a.error(_colors2.default.red("A --directory must be provided.")),e.process.exit(1));let n=[];try{n=_fs.readdirSync.call(void 0, r).filter(s=>s.endsWith(".csv")).map(s=>_path.join.call(void 0, r,s)).filter(s=>{try{return _fs.statSync.call(void 0, s).isFile()}catch (e2){return!1}})}catch(i){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Failed to read directory: ${r}`)),_chunkZUNVPK23cjs.a.error(_colors2.default.red(i.message)),e.process.exit(1)}return n.length===0&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`No CSV files found in directory: ${r}`)),e.process.exit(1)),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Found: ${n.join(", ")} CSV files`)),n}var _promises = require('fs/promises');var _promises3 = require('stream/promises');var _stream = require('stream');var _events = require('events');var _csvparse = require('csv-parse');var _fastcsv = require('fast-csv'); var K = _interopRequireWildcard(_fastcsv);function M(r,e){let n=_fs.createWriteStream.call(void 0, r),i=K.format({headers:e,writeHeaders:!0,objectMode:!0});return i.pipe(n),{async write(s){i.write(s)||await _events.once.call(void 0, i,"drain")},async end(){let s=Promise.all([_events.once.call(void 0, n,"finish")]);i.end(),await s}}}function me(r){return String(r).padStart(4,"0")}function fe(r){return Buffer.byteLength(Object.values(r).map(e=>e==null?"":String(e)).join(","),"utf8")}async function N(r){let{filePath:e,outputDir:n,clearOutputDir:i,chunkSizeMB:s,onProgress:f,reportEveryMs:g=500}=r,{size:l}=await _promises.stat.call(void 0, e),u=0;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Chunking ${e} into ~${s}MB files...`));let C=Math.floor(s*1024*1024),w=_path.basename.call(void 0, e,".csv"),d=n||_path.dirname.call(void 0, e);if(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Output directory: ${d}`)),await _promises.mkdir.call(void 0, d,{recursive:!0}),i){_chunkZUNVPK23cjs.a.warn(_colors2.default.yellow(`Clearing output directory: ${d}`));let a=await _promises.readdir.call(void 0, d);await Promise.all(a.filter(m=>m.startsWith(`${w}_chunk_`)&&m.endsWith(".csv")).map(m=>_promises.unlink.call(void 0, _path.join.call(void 0, d,m))))}let t=null,h=null,c=0,P=1,v=0,G=new (0, _csvparse.Parser)({columns:!1,skip_empty_lines:!0}),O=0,b=0,S=()=>{let a=b>0?O/b:0,m=a>0?Math.max(c,Math.ceil(l/a)):void 0;f(c,m),u=Date.now()};S();let p=null,$=()=>_path.join.call(void 0, d,`${w}_chunk_${me(P)}.csv`),U=new (0, _stream.Transform)({objectMode:!0,async transform(a,m,T){try{if(!t){t=a.slice(0),h=t.length,p=M($(),t),T();return}h!==null&&a.length!==h&&_chunkZUNVPK23cjs.a.warn(_colors2.default.yellow(`Row has ${a.length} cols; expected ${h}`)),c+=1,c%25e4===0&&f(c);let x=Object.fromEntries(t.map((Q,X)=>[Q,a[X]])),D=fe(x);O+=D,b+=1,Date.now()-u>=g&&S(),p&&v>0&&v+D>C&&(await p.end(),P+=1,v=0,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Rolling to chunk ${P} after ${c.toLocaleString()} rows.`)),p=M($(),t)),p||(p=M($(),t)),await p.write(x),v+=D,T()}catch(x){T(x)}},async flush(a){try{p&&(await p.end(),p=null),S(),a()}catch(m){a(m)}}}),J=_fs.createReadStream.call(void 0, e);await _promises3.pipeline.call(void 0, J,G,U),f(c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Chunked ${e} into ${P} file(s); processed ${c.toLocaleString()} rows.`))}async function A(){let r=Number(process.env.WORKER_ID||"0");_chunkZUNVPK23cjs.a.info(`[w${r}] ready pid=${process.pid}`),_optionalChain([process, 'access', _2 => _2.send, 'optionalCall', _3 => _3({type:"ready"})]),process.on("message",async e=>{if(!e||typeof e!="object"||(e.type==="shutdown"&&process.exit(0),e.type!=="task"))return;let{filePath:n,options:i}=e.payload,{outputDir:s,clearOutputDir:f,chunkSizeMB:g}=i;try{await N({filePath:n,outputDir:s,clearOutputDir:f,chunkSizeMB:g,onProgress:(l,u)=>_optionalChain([process, 'access', _4 => _4.send, 'optionalCall', _5 => _5({type:"progress",payload:{filePath:n,processed:l,total:u}})])}),_optionalChain([process, 'access', _6 => _6.send, 'optionalCall', _7 => _7({type:"result",payload:{ok:!0,filePath:n}})])}catch(l){let u=_chunkKYOQWIIScjs._f.call(void 0, l);_chunkZUNVPK23cjs.a.error(`[w${r}] ERROR ${n}: ${u}`),_optionalChain([process, 'access', _8 => _8.send, 'optionalCall', _9 => _9({type:"result",payload:{ok:!1,filePath:n,error:u}})])}}),await new Promise(()=>{})}function de(r){return _chunk4GILGOAMcjs.d.call(void 0, r)}function he(r){return _chunk4GILGOAMcjs.e.call(void 0, r)}var q={renderHeader:de,renderWorkers:he};function ke(){return typeof __filename<"u"?__filename:process.argv[1]}async function Ue(r){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let{directory:e,outputDir:n,clearOutputDir:i,chunkSizeMB:s,concurrency:f,viewerMode:g}=r,l=H(e,this),{poolSize:u,cpuCount:C}=_chunk4GILGOAMcjs.a.call(void 0, f,l.length);_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Chunking ${l.length} CSV file(s) with pool size ${u} (CPU=${C})`));let w=l.map(t=>({filePath:t,options:{outputDir:n,clearOutputDir:i,chunkSizeMB:s}})),d={nextTask:()=>w.shift(),taskLabel:t=>t.filePath,initTotals:()=>({}),initSlotProgress:()=>{},onProgress:t=>t,onResult:(t,h)=>({totals:t,ok:!!h.ok}),postProcess:async()=>{}};await _chunk4GILGOAMcjs.f.call(void 0, {title:`Chunk CSV - ${e}`,baseDir:e||n||process.cwd(),childFlag:_chunk4GILGOAMcjs.b,childModulePath:ke(),poolSize:u,cpuCount:C,filesTotal:l.length,hooks:d,viewerMode:g,render:t=>_chunk4GILGOAMcjs.c.call(void 0, t,q,g),extraKeyHandler:({logsBySlot:t,repaint:h,setPaused:c})=>_chunk4GILGOAMcjs.g.call(void 0, {logsBySlot:t,repaint:h,setPaused:c})})}process.argv.includes(_chunk4GILGOAMcjs.b)&&A().catch(r=>{_chunkZUNVPK23cjs.a.error(r),process.exit(1)});exports.chunkCsv = Ue;
|
|
2
|
+
//# sourceMappingURL=impl-ZIBUPJJN.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-ZIBUPJJN.cjs","../src/commands/admin/chunk-csv/impl.ts","../src/lib/helpers/collectCsvFilesOrExit.ts"],"names":["collectCsvFilesOrExit","directory","localContext","logger","colors","files","readdirSync","f","join","p","statSync","err"],"mappings":"AAAA,u/BAAkF,wDAAyC,wDAA0C,gCAA6B,wDAAyC,gCAA6B,gCAA6B,gFCClR,4BCDE,wBACiB,SAatBA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACU,CACLD,CAAAA,EAAAA,CACHE,mBAAAA,CAAO,KAAA,CAAMC,gBAAAA,CAAO,GAAA,CAAI,iCAAiC,CAAC,CAAA,CAC1DF,CAAAA,CAAa,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CAAA,CAG7B,IAAIG,CAAAA,CAAkB,CAAC,CAAA,CACvB,GAAI,CAEFA,CAAAA,CADgBC,6BAAAA,CAAqB,CAAA,CAElC,MAAA,CAAQC,CAAAA,EAAMA,CAAAA,CAAE,QAAA,CAAS,MAAM,CAAC,CAAA,CAChC,GAAA,CAAKA,CAAAA,EAAMC,wBAAAA,CAAKP,CAAWM,CAAC,CAAC,CAAA,CAC7B,MAAA,CAAQE,CAAAA,EAAM,CACb,GAAI,CACF,OAAOC,0BAAAA,CAAU,CAAA,CAAE,MAAA,CAAO,CAC5B,CAAA,UAAQ,CACN,MAAO,CAAA,CACT,CACF,CAAC,CACL,CAAA,KAAA,CAASC,CAAAA,CAAK,CACZR,mBAAAA,CAAO,KAAA,CAAMC,gBAAAA,CAAO,GAAA,CAAI,CAAA,0BAAA,EAA6BH,CAAS,CAAA,CAAA","file":"/home/runner/work/cli/cli/dist/impl-ZIBUPJJN.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport colors from 'colors';\nimport { logger } from '../../../logger';\nimport { collectCsvFilesOrExit } from '../../../lib/helpers/collectCsvFilesOrExit';\nimport {\n computePoolSize,\n createExtraKeyHandler,\n CHILD_FLAG,\n type PoolHooks,\n runPool,\n dashboardPlugin,\n} from '../../../lib/pooling';\nimport {\n runChild,\n type ChunkProgress,\n type ChunkResult,\n type ChunkTask,\n} from './worker';\nimport { chunkCsvPlugin } from './ui';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\n/**\n * Returns the current module's path so the worker pool knows what file to re-exec.\n * In Node ESM, __filename is undefined, so we fall back to argv[1].\n *\n * @returns The current module's path as a string\n */\nfunction getCurrentModulePath(): string {\n if (typeof __filename !== 'undefined') {\n return __filename as unknown as string;\n }\n return process.argv[1];\n}\n\n/**\n * Totals aggregate for this command.\n * We don’t need custom counters since the runner already tracks\n * completed/failed counts in its header — so we just use an empty record.\n */\ntype Totals = Record<string, never>;\n\n/**\n * CLI flags accepted by the `chunk-csv` command.\n *\n * These are passed down from the CLI parser into the parent process.\n */\nexport type ChunkCsvCommandFlags = {\n directory: string;\n outputDir?: string;\n clearOutputDir: boolean;\n chunkSizeMB: number;\n concurrency?: number;\n viewerMode: boolean;\n};\n\n/**\n * Parent entrypoint for chunking many CSVs in parallel using the worker pool runner.\n *\n * Lifecycle:\n * 1) Discover CSV inputs (exit if none).\n * 2) Compute pool size (CPU-count heuristic or --concurrency).\n * 3) Build a FIFO queue of `ChunkTask`s.\n * 4) Define pool hooks to drive task assignment, progress, and result handling.\n * 5) Launch the pool with `runPool`, rendering via the `chunkCsvPlugin`.\n *\n * @param this - Bound CLI context (provides process exit + logging).\n * @param flags - CLI options for the run.\n */\nexport async function chunkCsv(\n this: LocalContext,\n flags: ChunkCsvCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n const {\n directory,\n outputDir,\n clearOutputDir,\n chunkSizeMB,\n concurrency,\n viewerMode,\n } = flags;\n\n /* 1) Discover CSV inputs */\n const files = collectCsvFilesOrExit(directory, this);\n\n /* 2) Size the pool */\n const { poolSize, cpuCount } = computePoolSize(concurrency, files.length);\n\n logger.info(\n colors.green(\n `Chunking ${files.length} CSV file(s) with pool size ${poolSize} (CPU=${cpuCount})`,\n ),\n );\n\n /* 3) Prepare a simple FIFO queue of tasks (one per file). */\n const queue = files.map<ChunkTask>((filePath) => ({\n filePath,\n options: { outputDir, clearOutputDir, chunkSizeMB },\n }));\n\n /* 4) Define pool hooks to adapt runner to this command. */\n const hooks: PoolHooks<ChunkTask, ChunkProgress, ChunkResult, Totals> = {\n nextTask: () => queue.shift(),\n taskLabel: (t) => t.filePath,\n initTotals: () => ({} as Totals),\n initSlotProgress: () => undefined,\n onProgress: (totals) => totals,\n onResult: (totals, res) => ({ totals, ok: !!res.ok }),\n // postProcess receives log context when viewerMode=true — we don’t need it here.\n postProcess: async () => {\n // nothing extra for chunk-csv\n },\n };\n\n /* 5) Launch the pool runner with our hooks and custom dashboard plugin. */\n await runPool({\n title: `Chunk CSV - ${directory}`,\n baseDir: directory || outputDir || process.cwd(),\n childFlag: CHILD_FLAG,\n childModulePath: getCurrentModulePath(),\n poolSize,\n cpuCount,\n filesTotal: files.length,\n hooks,\n viewerMode,\n render: (input) => dashboardPlugin(input, chunkCsvPlugin, viewerMode),\n extraKeyHandler: ({ logsBySlot, repaint, setPaused }) =>\n createExtraKeyHandler({\n logsBySlot,\n repaint,\n setPaused,\n }),\n });\n}\n\n/* -------------------------------------------------------------------------------------------------\n * If invoked directly as a child process, enter worker loop\n * ------------------------------------------------------------------------------------------------- */\nif (process.argv.includes(CHILD_FLAG)) {\n runChild().catch((err) => {\n logger.error(err);\n process.exit(1);\n });\n}\n","import { join } from 'node:path';\nimport { readdirSync, statSync } from 'node:fs';\nimport colors from 'colors';\nimport { logger } from '../../logger';\nimport type { LocalContext } from '../../context';\n\n/**\n * Validate flags and collect CSV file paths from a directory.\n * On validation error, the provided `exit` function is called.\n *\n * @param directory - the directory containing CSV files\n * @param localContext - the context of the command, used for logging and exit\n * @returns an array of valid CSV file paths\n */\nexport function collectCsvFilesOrExit(\n directory: string | undefined,\n localContext: LocalContext,\n): string[] {\n if (!directory) {\n logger.error(colors.red('A --directory must be provided.'));\n localContext.process.exit(1);\n }\n\n let files: string[] = [];\n try {\n const entries = readdirSync(directory);\n files = entries\n .filter((f) => f.endsWith('.csv'))\n .map((f) => join(directory, f))\n .filter((p) => {\n try {\n return statSync(p).isFile();\n } catch {\n return false;\n }\n });\n } catch (err) {\n logger.error(colors.red(`Failed to read directory: ${directory}`));\n logger.error(colors.red((err as Error).message));\n localContext.process.exit(1);\n }\n\n if (files.length === 0) {\n logger.error(colors.red(`No CSV files found in directory: ${directory}`));\n localContext.process.exit(1);\n }\n logger.info(colors.green(`Found: ${files.join(', ')} CSV files`));\n return files;\n}\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class;var _chunkO7SJYOEKcjs = require('./chunk-O7SJYOEK.cjs');var _chunkCDX243U3cjs = require('./chunk-CDX243U3.cjs');var _chunkSFPZ6GENcjs = require('./chunk-SFPZ6GEN.cjs');var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkJH5HRI6Dcjs = require('./chunk-JH5HRI6D.cjs');var _chunkMLH6KKUKcjs = require('./chunk-MLH6KKUK.cjs');var _chunkNZEATKWLcjs = require('./chunk-NZEATKWL.cjs');var _chunk5UWKWV3Xcjs = require('./chunk-5UWKWV3X.cjs');var _chunkABKDAPPRcjs = require('./chunk-ABKDAPPR.cjs');var _chunkVWN5MN3Ucjs = require('./chunk-VWN5MN3U.cjs');var _chunkTSJTXXLZcjs = require('./chunk-TSJTXXLZ.cjs');require('./chunk-ZUNVPK23.cjs');var _chunkGJ6V5BHGcjs = require('./chunk-GJ6V5BHG.cjs');var _chunk7PB6LVSEcjs = require('./chunk-7PB6LVSE.cjs');var _typeutils = require('@transcend-io/type-utils');var _handlebarsutils = require('@transcend-io/handlebars-utils');var _privacytypes = require('@transcend-io/privacy-types');var T=20;async function $(a){let e=[],r=0,t=!1;do{let{largeLanguageModels:{nodes:s}}=await _chunkVWN5MN3Ucjs.wg.call(void 0, a,_chunkVWN5MN3Ucjs.Ib,{first:T,offset:r});e.push(...s),r+=T,t=s.length===T}while(t);return e.sort((s,o)=>s.name.localeCompare(o.name))}function j(a){return new RegExp(`<${a}>([\\s\\S]+?)<\\/${a}>`)}function ec(a){return a}var H=a=>{try{return JSON.parse(a)}catch (e2){return a}},F= exports.TranscendPromptManager = (_class =class{__init() {this.largeLanguageModels=[]}__init2() {this.agentsByName={}}__init3() {this.agentsByAgentId={}}constructor({prompts:e,handlebarsOptions:r={},transcendUrl:t=_chunkGJ6V5BHGcjs.r,transcendApiKey:s,requireApproval:o=!0,cacheDuration:i,defaultVariables:p={}}){;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);this.prompts=e,this.transcendUrl=t,this.transcendApiKey=s,this.variables=p,this.defaultVariables=p,this.graphQLClient=_chunkVWN5MN3Ucjs.zc.call(void 0, t,typeof s=="object"?s.release():s),this.requireApproval=o,this.cacheDuration=i,this.handlebarsOptions=r,this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, r)}async fetchPromptsAndMetadata(){let e=_typeutils.getValues.call(void 0, this.prompts),r=e.map(({id:n})=>n).filter(n=>!!n),t=e.map(({title:n})=>n).filter(n=>!!n),s=_chunkGJ6V5BHGcjs.j.call(void 0, e.map(({agentNames:n})=>n||[]).flat()),[o,i,p]=await Promise.all([_chunkVWN5MN3Ucjs.Fd.call(void 0, this.graphQLClient,{promptIds:r,promptTitles:t}),$(this.graphQLClient),_chunkVWN5MN3Ucjs.Jc.call(void 0, this.graphQLClient,{names:s})]);this.agentsByName=_chunkGJ6V5BHGcjs.e.call(void 0, p,"name"),this.agentsByAgentId=_chunkGJ6V5BHGcjs.e.call(void 0, p,"agentId"),this.largeLanguageModels=i.filter(n=>n.isTranscendHosted===!1);let m=_chunkGJ6V5BHGcjs.e.call(void 0, o.prompts,"title"),c=_chunkGJ6V5BHGcjs.e.call(void 0, o.prompts,"id");return this.variables={...o.calculatedVariables.reduce((n,g)=>Object.assign(n,{[g.name]:g.data?JSON.parse(g.data):g.data}),{}),...this.defaultVariables},this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, {...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...o.promptPartials.map(n=>({name:n.slug,content:n.content}))]}),this.promptContentMap=_typeutils.apply.call(void 0, this.prompts,({id:n,title:g})=>{let d=n?c[n]:g?m[g]:void 0;if(!d)throw new Error(`Failed to find prompt with title: "${g}" and id: "${n}"`);return d}),this.lastUpdatedAt=new Date,o}async getAgentByName(e){let r=this.agentsByName[e];if(r)return r;let[t]=await _chunkVWN5MN3Ucjs.Jc.call(void 0, this.graphQLClient,{names:[e]});if(t)return this.agentsByName[t.name]=t,this.agentsByAgentId[t.agentId]=t,t}async getPromptThreadBySlackTs(e){let[r]=await _chunkVWN5MN3Ucjs.Gd.call(void 0, this.graphQLClient,{slackMessageTs:[e]});return r}async getAgentsByName(e){if(e.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:r=[],missingCache:t=[]}=_chunkGJ6V5BHGcjs.d.call(void 0, e,p=>this.agentsByName[p]?"hasCache":"missingCache"),s=r.map(p=>this.agentsByName[p]);if(t.length===0)return s;let o=_chunkGJ6V5BHGcjs.b.call(void 0, t,50),i=[];return await _chunkVWN5MN3Ucjs.b.call(void 0, o,async p=>{let m=await _chunkVWN5MN3Ucjs.Jc.call(void 0, this.graphQLClient,{names:p});m.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),i.push(...m)}),[...s,...i]}getAgentFiles(e){return _chunkVWN5MN3Ucjs.Hc.call(void 0, this.graphQLClient,e)}getLargeLanguageModel(e){let r=this.largeLanguageModels.find(t=>typeof e=="string"?t.id===e:t.name===e.name&&t.client===e.client);if(!r)throw new Error(`Failed to find model matching: ${typeof e=="string"?e:JSON.stringify(e)}`);return r}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:r}=this;if(!r)throw new Error("Expected this.promptContentMap to be defined");let t=r[e];if(!t)throw new Error(`Expected this.promptContentMap[${e}] to be defined`);return t}async compilePrompt(e,r){let t=await this.getPromptDefinition(e),s=this.prompts[e];if(!s)throw new Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&t.status!==_privacytypes.PromptStatus.Approved)throw new Error(`Assessment "${t.title}" cannot be used because its in status: "${t.status}"`);if(t.status===_privacytypes.PromptStatus.Rejected)throw new Error(`Assessment "${t.title}" cannot be used because it's in status: "${t.status}"`);return _typeutils.decodeCodec.call(void 0, s.paramCodec,r),this.handlebars.compile(t.content)({currentDate:new Date().toISOString(),...this.variables,...r})}parseAiResponse(e,r){let t=this.prompts[e];if(!t)throw new Error(`Expected this.prompts[${e}] to be defined`);let s=t.extractFromTag&&(j(t.extractFromTag).exec(r)||[])[1]||r;return _typeutils.decodeCodec.call(void 0, t.outputCodec,H(s),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);if(t.promptRunMessages[t.promptRunMessages.length-1].role!==_privacytypes.ChatCompletionRole.Assistant)throw new Error(`promptRunMessages[${t.promptRunMessages.length-1}].role is expected to be = ${_privacytypes.ChatCompletionRole.Assistant}`);let i=t.promptRunMessages[t.promptRunMessages.length-1].content,p;try{p=this.parseAiResponse(e,i)}catch(c){throw await _chunkVWN5MN3Ucjs.le.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,error:c.message,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((n,g)=>({...n,...g===0?{template:o.content}:{}}))}),c}let m=await _chunkVWN5MN3Ucjs.le.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Resolved,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((c,n)=>({...c,...n===0?{template:o.content}:{}}))});return{result:p,promptRunId:m,promptRunUrl:`https://app.transcend.io/prompts/runs/${m}`}}async reportPromptRunError(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);let i=await _chunkVWN5MN3Ucjs.le.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((p,m)=>({...p,...m===0?{template:o.content}:{}}))});return{promptRunId:i,promptRunUrl:`https://app.transcend.io/prompts/runs/${i}`}}}, _class);function nc(a){let e=/(https?:\/\/[^\s]+)/g;return a.replace(e,"<link-omitted>")}function oc(a){return Object.entries(a).reduce((e,[r,t])=>t!=null&&t!==""&&!(Array.isArray(t)&&t.length===0)&&!(typeof t=="object"&&Object.keys(t).length===0)?Object.assign(e,{[r]:t}):e,{})}var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _child_process = require('child_process');function cc({baseBranch:a,rootDirectory:e,githubRepo:r,excludedGlob:t=[],fileBlockList:s=[]}){_child_process.execSync.call(void 0, `git fetch origin ${a}`);let o=_child_process.execSync.call(void 0, `git ls-remote ${r} "refs/heads/${a}" | cut -f 1`,{encoding:"utf-8"}).split(`
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class;var _chunkILBF5XZNcjs = require('./chunk-ILBF5XZN.cjs');var _chunkH3EBIKX6cjs = require('./chunk-H3EBIKX6.cjs');var _chunkGCTE43TScjs = require('./chunk-GCTE43TS.cjs');var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkJH5HRI6Dcjs = require('./chunk-JH5HRI6D.cjs');var _chunk4NEO6Q2Fcjs = require('./chunk-4NEO6Q2F.cjs');var _chunkHZU3YROTcjs = require('./chunk-HZU3YROT.cjs');var _chunkZNTCC7Y7cjs = require('./chunk-ZNTCC7Y7.cjs');var _chunkABKDAPPRcjs = require('./chunk-ABKDAPPR.cjs');var _chunkKYOQWIIScjs = require('./chunk-KYOQWIIS.cjs');var _chunkTSJTXXLZcjs = require('./chunk-TSJTXXLZ.cjs');require('./chunk-ZUNVPK23.cjs');var _chunk5MG2CEZVcjs = require('./chunk-5MG2CEZV.cjs');var _chunk7PB6LVSEcjs = require('./chunk-7PB6LVSE.cjs');var _typeutils = require('@transcend-io/type-utils');var _handlebarsutils = require('@transcend-io/handlebars-utils');var _privacytypes = require('@transcend-io/privacy-types');var T=20;async function $(a){let e=[],r=0,t=!1;do{let{largeLanguageModels:{nodes:s}}=await _chunkKYOQWIIScjs.wg.call(void 0, a,_chunkKYOQWIIScjs.Ib,{first:T,offset:r});e.push(...s),r+=T,t=s.length===T}while(t);return e.sort((s,o)=>s.name.localeCompare(o.name))}function j(a){return new RegExp(`<${a}>([\\s\\S]+?)<\\/${a}>`)}function ec(a){return a}var H=a=>{try{return JSON.parse(a)}catch (e2){return a}},F= exports.TranscendPromptManager = (_class =class{__init() {this.largeLanguageModels=[]}__init2() {this.agentsByName={}}__init3() {this.agentsByAgentId={}}constructor({prompts:e,handlebarsOptions:r={},transcendUrl:t=_chunk5MG2CEZVcjs.r,transcendApiKey:s,requireApproval:o=!0,cacheDuration:i,defaultVariables:p={}}){;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);this.prompts=e,this.transcendUrl=t,this.transcendApiKey=s,this.variables=p,this.defaultVariables=p,this.graphQLClient=_chunkKYOQWIIScjs.zc.call(void 0, t,typeof s=="object"?s.release():s),this.requireApproval=o,this.cacheDuration=i,this.handlebarsOptions=r,this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, r)}async fetchPromptsAndMetadata(){let e=_typeutils.getValues.call(void 0, this.prompts),r=e.map(({id:n})=>n).filter(n=>!!n),t=e.map(({title:n})=>n).filter(n=>!!n),s=_chunk5MG2CEZVcjs.j.call(void 0, e.map(({agentNames:n})=>n||[]).flat()),[o,i,p]=await Promise.all([_chunkKYOQWIIScjs.Fd.call(void 0, this.graphQLClient,{promptIds:r,promptTitles:t}),$(this.graphQLClient),_chunkKYOQWIIScjs.Jc.call(void 0, this.graphQLClient,{names:s})]);this.agentsByName=_chunk5MG2CEZVcjs.e.call(void 0, p,"name"),this.agentsByAgentId=_chunk5MG2CEZVcjs.e.call(void 0, p,"agentId"),this.largeLanguageModels=i.filter(n=>n.isTranscendHosted===!1);let m=_chunk5MG2CEZVcjs.e.call(void 0, o.prompts,"title"),c=_chunk5MG2CEZVcjs.e.call(void 0, o.prompts,"id");return this.variables={...o.calculatedVariables.reduce((n,g)=>Object.assign(n,{[g.name]:g.data?JSON.parse(g.data):g.data}),{}),...this.defaultVariables},this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, {...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...o.promptPartials.map(n=>({name:n.slug,content:n.content}))]}),this.promptContentMap=_typeutils.apply.call(void 0, this.prompts,({id:n,title:g})=>{let d=n?c[n]:g?m[g]:void 0;if(!d)throw new Error(`Failed to find prompt with title: "${g}" and id: "${n}"`);return d}),this.lastUpdatedAt=new Date,o}async getAgentByName(e){let r=this.agentsByName[e];if(r)return r;let[t]=await _chunkKYOQWIIScjs.Jc.call(void 0, this.graphQLClient,{names:[e]});if(t)return this.agentsByName[t.name]=t,this.agentsByAgentId[t.agentId]=t,t}async getPromptThreadBySlackTs(e){let[r]=await _chunkKYOQWIIScjs.Gd.call(void 0, this.graphQLClient,{slackMessageTs:[e]});return r}async getAgentsByName(e){if(e.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:r=[],missingCache:t=[]}=_chunk5MG2CEZVcjs.d.call(void 0, e,p=>this.agentsByName[p]?"hasCache":"missingCache"),s=r.map(p=>this.agentsByName[p]);if(t.length===0)return s;let o=_chunk5MG2CEZVcjs.b.call(void 0, t,50),i=[];return await _chunkKYOQWIIScjs.b.call(void 0, o,async p=>{let m=await _chunkKYOQWIIScjs.Jc.call(void 0, this.graphQLClient,{names:p});m.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),i.push(...m)}),[...s,...i]}getAgentFiles(e){return _chunkKYOQWIIScjs.Hc.call(void 0, this.graphQLClient,e)}getLargeLanguageModel(e){let r=this.largeLanguageModels.find(t=>typeof e=="string"?t.id===e:t.name===e.name&&t.client===e.client);if(!r)throw new Error(`Failed to find model matching: ${typeof e=="string"?e:JSON.stringify(e)}`);return r}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:r}=this;if(!r)throw new Error("Expected this.promptContentMap to be defined");let t=r[e];if(!t)throw new Error(`Expected this.promptContentMap[${e}] to be defined`);return t}async compilePrompt(e,r){let t=await this.getPromptDefinition(e),s=this.prompts[e];if(!s)throw new Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&t.status!==_privacytypes.PromptStatus.Approved)throw new Error(`Assessment "${t.title}" cannot be used because its in status: "${t.status}"`);if(t.status===_privacytypes.PromptStatus.Rejected)throw new Error(`Assessment "${t.title}" cannot be used because it's in status: "${t.status}"`);return _typeutils.decodeCodec.call(void 0, s.paramCodec,r),this.handlebars.compile(t.content)({currentDate:new Date().toISOString(),...this.variables,...r})}parseAiResponse(e,r){let t=this.prompts[e];if(!t)throw new Error(`Expected this.prompts[${e}] to be defined`);let s=t.extractFromTag&&(j(t.extractFromTag).exec(r)||[])[1]||r;return _typeutils.decodeCodec.call(void 0, t.outputCodec,H(s),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);if(t.promptRunMessages[t.promptRunMessages.length-1].role!==_privacytypes.ChatCompletionRole.Assistant)throw new Error(`promptRunMessages[${t.promptRunMessages.length-1}].role is expected to be = ${_privacytypes.ChatCompletionRole.Assistant}`);let i=t.promptRunMessages[t.promptRunMessages.length-1].content,p;try{p=this.parseAiResponse(e,i)}catch(c){throw await _chunkKYOQWIIScjs.le.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,error:c.message,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((n,g)=>({...n,...g===0?{template:o.content}:{}}))}),c}let m=await _chunkKYOQWIIScjs.le.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Resolved,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((c,n)=>({...c,...n===0?{template:o.content}:{}}))});return{result:p,promptRunId:m,promptRunUrl:`https://app.transcend.io/prompts/runs/${m}`}}async reportPromptRunError(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);let i=await _chunkKYOQWIIScjs.le.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((p,m)=>({...p,...m===0?{template:o.content}:{}}))});return{promptRunId:i,promptRunUrl:`https://app.transcend.io/prompts/runs/${i}`}}}, _class);function nc(a){let e=/(https?:\/\/[^\s]+)/g;return a.replace(e,"<link-omitted>")}function oc(a){return Object.entries(a).reduce((e,[r,t])=>t!=null&&t!==""&&!(Array.isArray(t)&&t.length===0)&&!(typeof t=="object"&&Object.keys(t).length===0)?Object.assign(e,{[r]:t}):e,{})}var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _child_process = require('child_process');function cc({baseBranch:a,rootDirectory:e,githubRepo:r,excludedGlob:t=[],fileBlockList:s=[]}){_child_process.execSync.call(void 0, `git fetch origin ${a}`);let o=_child_process.execSync.call(void 0, `git ls-remote ${r} "refs/heads/${a}" | cut -f 1`,{encoding:"utf-8"}).split(`
|
|
2
2
|
`)[0],i=_child_process.execSync.call(void 0, "git rev-parse HEAD",{encoding:"utf-8"}).split(`
|
|
3
|
-
`)[0];if(!o||!i)throw new Error("FAILED TO FIND COMMIT RANGE");let p=_child_process.execSync.call(void 0, `git fetch && git diff --name-only "${a||o}...${i}" -- ${e}`,{encoding:"utf-8"}),m=
|
|
4
|
-
`).filter(d=>d),s),c=t.length>0?_fastglob2.default.sync(m,{ignore:t}):m,n={};c.forEach(d=>{let Q=_child_process.execSync.call(void 0, `git show ${i}:${d}`,{encoding:"utf-8"});n[d]=Q});let g=r.split("/").pop().split(".")[0];return{changedFiles:m,fileDiffs:n,repoName:g,commit:i}}exports.ACTIONS = _chunkVWN5MN3Ucjs.wb; exports.ADD_MESSAGES_TO_PROMPT_RUN = _chunkVWN5MN3Ucjs.Ja; exports.ADD_SILO_DISCOVERY_RESULTS = _chunkVWN5MN3Ucjs.J; exports.ADMIN_DASH = _chunkGJ6V5BHGcjs.o; exports.ADMIN_DASH_DATAPOINTS = _chunkGJ6V5BHGcjs.q; exports.ADMIN_DASH_INTEGRATIONS = _chunkGJ6V5BHGcjs.p; exports.AGENTS = _chunkVWN5MN3Ucjs.Jb; exports.AGENT_FILES = _chunkVWN5MN3Ucjs.Mb; exports.AGENT_FUNCTIONS = _chunkVWN5MN3Ucjs.Pb; exports.API_KEYS = _chunkVWN5MN3Ucjs.F; exports.APPROVE_PRIVACY_REQUEST = _chunkVWN5MN3Ucjs.Z; exports.ASSESSMENTS = _chunkVWN5MN3Ucjs.ha; exports.ASSESSMENT_SECTION_FIELDS = _chunkVWN5MN3Ucjs.ga; exports.ASSESSMENT_TEMPLATES = _chunkVWN5MN3Ucjs.la; exports.ASSUME_ROLE = _chunkVWN5MN3Ucjs.Hb; exports.ATTRIBUTES = _chunkVWN5MN3Ucjs.Na; exports.ATTRIBUTE_KEYS_REQUESTS = _chunkVWN5MN3Ucjs.O; exports.ATTRIBUTE_VALUES = _chunkVWN5MN3Ucjs.Ra; exports.ActionInput = _chunkABKDAPPRcjs.G; exports.ActionItemCollectionInput = _chunkABKDAPPRcjs.R; exports.ActionItemInput = _chunkABKDAPPRcjs.S; exports.AgentFileInput = _chunkABKDAPPRcjs.o; exports.AgentFunctionInput = _chunkABKDAPPRcjs.n; exports.AgentInput = _chunkABKDAPPRcjs.m; exports.ApiKeyInput = _chunkABKDAPPRcjs.c; exports.AssessmentAction = _chunkVWN5MN3Ucjs.Ud; exports.AssessmentAnswerOptionInput = _chunkABKDAPPRcjs.Y; exports.AssessmentDisplayLogicInput = _chunkABKDAPPRcjs.V; exports.AssessmentInput = _chunkABKDAPPRcjs.ca; exports.AssessmentNestedRule = _chunkVWN5MN3Ucjs.Td; exports.AssessmentNestedRuleInput = _chunkABKDAPPRcjs.U; exports.AssessmentResourceInput = _chunkABKDAPPRcjs.ba; exports.AssessmentRetentionScheduleInput = _chunkABKDAPPRcjs.$; exports.AssessmentRiskLogic = _chunkVWN5MN3Ucjs.Wd; exports.AssessmentRule = _chunkVWN5MN3Ucjs.Sd; exports.AssessmentRuleInput = _chunkABKDAPPRcjs.T; exports.AssessmentRuleWithOperands = _chunkVWN5MN3Ucjs.Qd; exports.AssessmentRuleWithoutOperands = _chunkVWN5MN3Ucjs.Rd; exports.AssessmentSectionInput = _chunkABKDAPPRcjs._; exports.AssessmentSectionQuestionInput = _chunkABKDAPPRcjs.Z; exports.AssessmentTemplateInput = _chunkABKDAPPRcjs.aa; exports.AttestedExtraIdentifiers = _chunkVWN5MN3Ucjs.uf; exports.AttributeInput = _chunkABKDAPPRcjs.k; exports.AttributePreview = _chunkABKDAPPRcjs.l; exports.AttributeValueInput = _chunkABKDAPPRcjs.j; exports.BLANK = _chunkVWN5MN3Ucjs.gc; exports.BULK_APPLY = _chunkVWN5MN3Ucjs.fc; exports.BULK_REQUEST_FILES = _chunkVWN5MN3Ucjs.Ha; exports.BUSINESS_ENTITIES = _chunkVWN5MN3Ucjs.tb; exports.BusinessEntityInput = _chunkABKDAPPRcjs.y; exports.CANCEL_PRIVACY_REQUEST = _chunkVWN5MN3Ucjs._; exports.CAN_APPLY_IN_BULK = _chunkVWN5MN3Ucjs.kc; exports.CATALOGS = _chunkVWN5MN3Ucjs.t; exports.CHANGE_REQUEST_DATA_SILO_STATUS = _chunkVWN5MN3Ucjs.xa; exports.CODE_PACKAGES = _chunkVWN5MN3Ucjs.S; exports.CONSENT_MANAGER_ANALYTICS_DATA = _chunkVWN5MN3Ucjs.sb; exports.CONSENT_PARTITIONS = _chunkVWN5MN3Ucjs.Wa; exports.COOKIES = _chunkVWN5MN3Ucjs.$a; exports.CREATE_ACTION_ITEMS = _chunkVWN5MN3Ucjs.Ab; exports.CREATE_ACTION_ITEM_COLLECTION = _chunkVWN5MN3Ucjs.La; exports.CREATE_AGENT = _chunkVWN5MN3Ucjs.Kb; exports.CREATE_AGENT_FILE = _chunkVWN5MN3Ucjs.Nb; exports.CREATE_AGENT_FUNCTION = _chunkVWN5MN3Ucjs.Qb; exports.CREATE_API_KEY = _chunkVWN5MN3Ucjs.G; exports.CREATE_ATTRIBUTE = _chunkVWN5MN3Ucjs.Sa; exports.CREATE_ATTRIBUTE_VALUES = _chunkVWN5MN3Ucjs.Oa; exports.CREATE_BUSINESS_ENTITY = _chunkVWN5MN3Ucjs.ub; exports.CREATE_CODE_PACKAGE = _chunkVWN5MN3Ucjs.U; exports.CREATE_CONSENT_EXPERIENCE = _chunkVWN5MN3Ucjs.qb; exports.CREATE_CONSENT_MANAGER = _chunkVWN5MN3Ucjs.db; exports.CREATE_CONSENT_PARTITION = _chunkVWN5MN3Ucjs.rb; exports.CREATE_DATA_FLOWS = _chunkVWN5MN3Ucjs.Xa; exports.CREATE_DATA_SILOS = _chunkVWN5MN3Ucjs.o; exports.CREATE_DATA_SUBJECT = _chunkVWN5MN3Ucjs.z; exports.CREATE_DATA_SUB_CATEGORY = _chunkVWN5MN3Ucjs.Wb; exports.CREATE_ENRICHER = _chunkVWN5MN3Ucjs.r; exports.CREATE_IDENTIFIER = _chunkVWN5MN3Ucjs.w; exports.CREATE_PREFERENCE_ACCESS_TOKENS = _chunkVWN5MN3Ucjs.I; exports.CREATE_PROCESSING_ACTIVITY = _chunkVWN5MN3Ucjs.ac; exports.CREATE_PROCESSING_PURPOSE_SUB_CATEGORY = _chunkVWN5MN3Ucjs.Zb; exports.CREATE_PROMPT = _chunkVWN5MN3Ucjs.ra; exports.CREATE_PROMPT_GROUP = _chunkVWN5MN3Ucjs.va; exports.CREATE_PROMPT_PARTIAL = _chunkVWN5MN3Ucjs.ta; exports.CREATE_REPOSITORY = _chunkVWN5MN3Ucjs.E; exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = _chunkVWN5MN3Ucjs.R; exports.CREATE_TEAM = _chunkVWN5MN3Ucjs.Ba; exports.CREATE_TEMPLATE = _chunkVWN5MN3Ucjs.M; exports.CREATE_VENDOR = _chunkVWN5MN3Ucjs.Tb; exports.CachedFileState = _chunkVWN5MN3Ucjs.lc; exports.CachedRequestState = _chunkVWN5MN3Ucjs.nc; exports.CodePackageInput = _chunkABKDAPPRcjs.D; exports.CodePackageSdk = _chunkABKDAPPRcjs.C; exports.ColumnName = _chunkVWN5MN3Ucjs.ic; exports.ConsentManageExperienceInput = _chunkABKDAPPRcjs.K; exports.ConsentManagerInput = _chunkABKDAPPRcjs.M; exports.ConsentManagerMetricBin = _chunkVWN5MN3Ucjs.Vc; exports.ConsentManagerServiceMetadata = _chunkABKDAPPRcjs.la; exports.ConsentPreferenceTopic = _chunkABKDAPPRcjs.ea; exports.ConsentPreferenceTopicOptionValue = _chunkABKDAPPRcjs.da; exports.ConsentPurpose = _chunkABKDAPPRcjs.fa; exports.CookieCsvInput = _chunkABKDAPPRcjs.ka; exports.CookieInput = _chunkABKDAPPRcjs.J; exports.CronIdentifier = _chunkCDX243U3cjs.a; exports.CronIdentifierPush = _chunkCDX243U3cjs.c; exports.DATAPOINT_EXPORT = _chunkVWN5MN3Ucjs.i; exports.DATA_FLOWS = _chunkVWN5MN3Ucjs._a; exports.DATA_POINTS = _chunkVWN5MN3Ucjs.c; exports.DATA_POINT_COUNT = _chunkVWN5MN3Ucjs.d; exports.DATA_SILOS = _chunkVWN5MN3Ucjs.k; exports.DATA_SILOS_ENRICHED = _chunkVWN5MN3Ucjs.m; exports.DATA_SILO_EXPORT = _chunkVWN5MN3Ucjs.l; exports.DATA_SUBJECTS = _chunkVWN5MN3Ucjs.y; exports.DATA_SUB_CATEGORIES = _chunkVWN5MN3Ucjs.Vb; exports.DAY_MS = _chunkVWN5MN3Ucjs.hg; exports.DEBUG = _chunkGJ6V5BHGcjs.z; exports.DEFAULT_TRANSCEND_API = _chunkGJ6V5BHGcjs.r; exports.DEFAULT_TRANSCEND_CONSENT_API = _chunkGJ6V5BHGcjs.s; exports.DEFAULT_TRANSCEND_PULL_RESOURCES = _chunkVWN5MN3Ucjs.je; exports.DELETE_API_KEY = _chunkVWN5MN3Ucjs.H; exports.DELETE_ATTRIBUTE_VALUE = _chunkVWN5MN3Ucjs.Qa; exports.DEPLOYED_PRIVACY_CENTER_URL = _chunkVWN5MN3Ucjs.Cb; exports.DEPLOY_CONSENT_MANAGER = _chunkVWN5MN3Ucjs.gb; exports.DETERMINE_LOGIN_METHOD = _chunkVWN5MN3Ucjs.Fb; exports.DataCategoryGuessInput = _chunkABKDAPPRcjs.h; exports.DataCategoryInput = _chunkABKDAPPRcjs.q; exports.DataCategoryPreviewInput = _chunkABKDAPPRcjs.g; exports.DataCategoryRecommendationInput = _chunkABKDAPPRcjs.i; exports.DataFlowCsvInput = _chunkABKDAPPRcjs.ja; exports.DataFlowInput = _chunkABKDAPPRcjs.I; exports.DataSiloInput = _chunkABKDAPPRcjs.Q; exports.DataSubjectInput = _chunkABKDAPPRcjs.F; exports.DatapointInput = _chunkABKDAPPRcjs.w; exports.ENABLED_PLUGINS = _chunkVWN5MN3Ucjs.K; exports.ENRICHERS = _chunkVWN5MN3Ucjs.p; exports.ENTRY_COUNT = _chunkVWN5MN3Ucjs.j; exports.EXPERIENCES = _chunkVWN5MN3Ucjs.Va; exports.EnrichPrivacyRequest = _chunkO7SJYOEKcjs.b; exports.EnricherInput = _chunkABKDAPPRcjs.e; exports.FETCH_CONSENT_MANAGER = _chunkVWN5MN3Ucjs.bb; exports.FETCH_CONSENT_MANAGER_ID = _chunkVWN5MN3Ucjs.ab; exports.FETCH_CONSENT_MANAGER_THEME = _chunkVWN5MN3Ucjs.cb; exports.FETCH_PRIVACY_CENTER_ID = _chunkVWN5MN3Ucjs.Bb; exports.FIVE_MIN_MS = _chunkVWN5MN3Ucjs.jg; exports.FieldInput = _chunkABKDAPPRcjs.v; exports.GLOBAL_ACTION_ITEMS = _chunkVWN5MN3Ucjs.yb; exports.GLOBAL_ACTION_ITEM_COLLECTIONS = _chunkVWN5MN3Ucjs.Ka; exports.HOUR_MS = _chunkVWN5MN3Ucjs.ig; exports.IDENTIFIERS = _chunkVWN5MN3Ucjs.u; exports.IDENTIFIER_BLOCK_LIST = _chunkVWN5MN3Ucjs.hc; exports.IMPORT_ONE_TRUST_ASSESSMENT_FORMS = _chunkVWN5MN3Ucjs.ia; exports.INITIALIZER = _chunkVWN5MN3Ucjs.q; exports.IP_ADDRESS_REGEX = _chunkMLH6KKUKcjs.f; exports.IS_REQUIRED = _chunkVWN5MN3Ucjs.jc; exports.IdentifierInput = _chunkABKDAPPRcjs.H; exports.ImportOnetrustAssessmentsInput = _chunkABKDAPPRcjs.sa; exports.IntlMessage = _chunkVWN5MN3Ucjs.yf; exports.IntlMessageInput = _chunkABKDAPPRcjs.P; exports.LARGE_LANGUAGE_MODELS = _chunkVWN5MN3Ucjs.Ib; exports.LOGIN = _chunkVWN5MN3Ucjs.Gb; exports.MESSAGES = _chunkVWN5MN3Ucjs.ba; exports.NEW_IDENTIFIER_TYPES = _chunkVWN5MN3Ucjs.v; exports.NONE = _chunkVWN5MN3Ucjs.ec; exports.NOTIFY_ADDITIONAL_TIME = _chunkVWN5MN3Ucjs.aa; exports.ORGANIZATION = _chunkVWN5MN3Ucjs.N; exports.OneTrustFileFormat = _chunk7PB6LVSEcjs.a; exports.OneTrustPullResource = _chunk7PB6LVSEcjs.b; exports.OneTrustPullSource = _chunk7PB6LVSEcjs.c; exports.OpenAIEnabledRoute = _chunkABKDAPPRcjs.na; exports.OpenAIEnabledRoutes = _chunkABKDAPPRcjs.oa; exports.OpenAIIntegration = _chunkABKDAPPRcjs.pa; exports.OpenAIRouteName = _chunk7PB6LVSEcjs.f; exports.POLICIES = _chunkVWN5MN3Ucjs.W; exports.PREFERENCE_TOPICS = _chunkVWN5MN3Ucjs.ka; exports.PRIVACY_CENTER = _chunkVWN5MN3Ucjs.Db; exports.PROCESSING_ACTIVITIES = _chunkVWN5MN3Ucjs.$b; exports.PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkVWN5MN3Ucjs.Yb; exports.PROMPTS = _chunkVWN5MN3Ucjs.ma; exports.PROMPTS_WITH_VARIABLES = _chunkVWN5MN3Ucjs.pa; exports.PROMPT_GROUPS = _chunkVWN5MN3Ucjs.oa; exports.PROMPT_PARTIALS = _chunkVWN5MN3Ucjs.na; exports.PROMPT_THREADS = _chunkVWN5MN3Ucjs.V; exports.PURPOSES = _chunkVWN5MN3Ucjs.ja; exports.ParsedAttributeInput = _chunkVWN5MN3Ucjs.sc; exports.PartitionInput = _chunkABKDAPPRcjs.L; exports.PathfinderPolicy = _chunkABKDAPPRcjs.qa; exports.PathfinderPolicyName = _chunk7PB6LVSEcjs.e; exports.PathfinderPolicyNameC = _chunkABKDAPPRcjs.ma; exports.PathfinderPromptRunMetadata = _chunkABKDAPPRcjs.ra; exports.PolicyInput = _chunkABKDAPPRcjs.O; exports.PrivacyCenterInput = _chunkABKDAPPRcjs.N; exports.PrivacyRequest = _chunkVWN5MN3Ucjs.pd; exports.PrivacyRequestInput = _chunkVWN5MN3Ucjs.vf; exports.PrivacyRequestResponse = _chunkVWN5MN3Ucjs.Ef; exports.ProcessingActivityInput = _chunkABKDAPPRcjs.A; exports.ProcessingPurposeInput = _chunkABKDAPPRcjs.r; exports.ProcessingPurposePreviewInput = _chunkABKDAPPRcjs.f; exports.PromptAVendorEmailSettings = _chunkABKDAPPRcjs.x; exports.PromptGroupInput = _chunkABKDAPPRcjs.u; exports.PromptInput = _chunkABKDAPPRcjs.s; exports.PromptPartialInput = _chunkABKDAPPRcjs.t; exports.PurposeMap = _chunkNZEATKWLcjs.c; exports.REDUCED_REQUESTS_FOR_DATA_SILO_COUNT = _chunkVWN5MN3Ucjs.za; exports.REMOVE_REQUEST_IDENTIFIERS = _chunkVWN5MN3Ucjs.Da; exports.REPORT_PROMPT_RUN = _chunkVWN5MN3Ucjs.Ia; exports.REPOSITORIES = _chunkVWN5MN3Ucjs.C; exports.REQUESTS = _chunkVWN5MN3Ucjs.Y; exports.REQUEST_DATA_SILOS = _chunkVWN5MN3Ucjs.wa; exports.REQUEST_ENRICHERS = _chunkVWN5MN3Ucjs.da; exports.REQUEST_FILES = _chunkVWN5MN3Ucjs.Ga; exports.REQUEST_IDENTIFIERS = _chunkVWN5MN3Ucjs.Ea; exports.RETRYABLE_BATCH_STATUSES = _chunkGJ6V5BHGcjs.y; exports.RETRY_REQUEST_DATA_SILO = _chunkVWN5MN3Ucjs.ya; exports.RETRY_REQUEST_ENRICHER = _chunkVWN5MN3Ucjs.ea; exports.RateCounter = _chunkVWN5MN3Ucjs.dg; exports.RegionInput = _chunkABKDAPPRcjs.z; exports.RepositoryInput = _chunkABKDAPPRcjs.E; exports.RequestFileMetadata = _chunkVWN5MN3Ucjs.zf; exports.RequestFileMetadataResponse = _chunkVWN5MN3Ucjs.Af; exports.RequestIdentifiersResponse = _chunkVWN5MN3Ucjs.md; exports.RequestPurposeTrigger = _chunkVWN5MN3Ucjs.od; exports.RiskAssignmentInput = _chunkABKDAPPRcjs.W; exports.RiskLogicInput = _chunkABKDAPPRcjs.X; exports.SCOPES_BY_TITLE = _chunkGJ6V5BHGcjs.w; exports.SCOPE_TITLES = _chunkGJ6V5BHGcjs.x; exports.SET_RESOURCE_ATTRIBUTES = _chunkVWN5MN3Ucjs.Ua; exports.SILO_DISCOVERY_RESULTS = _chunkVWN5MN3Ucjs.dc; exports.SKIP_REQUEST_ENRICHER = _chunkVWN5MN3Ucjs.fa; exports.SOFTWARE_DEVELOPMENT_KITS = _chunkVWN5MN3Ucjs.P; exports.SOMBRA_VERSION = _chunkVWN5MN3Ucjs.cc; exports.SUB_DATA_POINTS = _chunkVWN5MN3Ucjs.e; exports.SUB_DATA_POINTS_COUNT = _chunkVWN5MN3Ucjs.f; exports.SUB_DATA_POINTS_WITH_GUESSES = _chunkVWN5MN3Ucjs.g; exports.SYNC_ATTRIBUTE_TYPES = _chunkVWN5MN3Ucjs.Pc; exports.SiloDiscoveryResultInput = _chunkABKDAPPRcjs.ga; exports.SoftwareDevelopmentKitInput = _chunkABKDAPPRcjs.B; exports.StoredApiKey = _chunkABKDAPPRcjs.ia; exports.SuccessfulRequest = _chunkVWN5MN3Ucjs.mc; exports.TEAMS = _chunkVWN5MN3Ucjs.Aa; exports.TEMPLATES = _chunkVWN5MN3Ucjs.L; exports.TOGGLE_CONSENT_PRECEDENCE = _chunkVWN5MN3Ucjs.nb; exports.TOGGLE_DATA_SUBJECT = _chunkVWN5MN3Ucjs.B; exports.TOGGLE_TELEMETRY_PARTITION_STRATEGY = _chunkVWN5MN3Ucjs.mb; exports.TOGGLE_UNKNOWN_COOKIE_POLICY = _chunkVWN5MN3Ucjs.lb; exports.TOGGLE_UNKNOWN_REQUEST_POLICY = _chunkVWN5MN3Ucjs.kb; exports.TR_PULL_RESOURCE_SCOPE_MAP = _chunkGJ6V5BHGcjs.u; exports.TR_PUSH_RESOURCE_SCOPE_MAP = _chunkGJ6V5BHGcjs.t; exports.TR_YML_RESOURCE_TO_FIELD_NAME = _chunkGJ6V5BHGcjs.v; exports.TeamInput = _chunkABKDAPPRcjs.d; exports.TemplateInput = _chunkABKDAPPRcjs.a; exports.TranscendInput = _chunkABKDAPPRcjs.ha; exports.TranscendPromptManager = F; exports.TranscendPullResource = _chunk7PB6LVSEcjs.d; exports.UPDATE_ACTION = _chunkVWN5MN3Ucjs.xb; exports.UPDATE_ACTION_ITEMS = _chunkVWN5MN3Ucjs.zb; exports.UPDATE_ACTION_ITEM_COLLECTION = _chunkVWN5MN3Ucjs.Ma; exports.UPDATE_AGENTS = _chunkVWN5MN3Ucjs.Lb; exports.UPDATE_AGENT_FILES = _chunkVWN5MN3Ucjs.Ob; exports.UPDATE_AGENT_FUNCTIONS = _chunkVWN5MN3Ucjs.Rb; exports.UPDATE_ATTRIBUTE = _chunkVWN5MN3Ucjs.Ta; exports.UPDATE_ATTRIBUTE_VALUES = _chunkVWN5MN3Ucjs.Pa; exports.UPDATE_BUSINESS_ENTITIES = _chunkVWN5MN3Ucjs.vb; exports.UPDATE_CODE_PACKAGES = _chunkVWN5MN3Ucjs.T; exports.UPDATE_CONSENT_EXPERIENCE = _chunkVWN5MN3Ucjs.pb; exports.UPDATE_CONSENT_MANAGER_DOMAINS = _chunkVWN5MN3Ucjs.hb; exports.UPDATE_CONSENT_MANAGER_PARTITION = _chunkVWN5MN3Ucjs.ib; exports.UPDATE_CONSENT_MANAGER_THEME = _chunkVWN5MN3Ucjs.ob; exports.UPDATE_CONSENT_MANAGER_TO_LATEST = _chunkVWN5MN3Ucjs.fb; exports.UPDATE_CONSENT_MANAGER_VERSION = _chunkVWN5MN3Ucjs.eb; exports.UPDATE_DATA_FLOWS = _chunkVWN5MN3Ucjs.Ya; exports.UPDATE_DATA_SILOS = _chunkVWN5MN3Ucjs.n; exports.UPDATE_DATA_SUBJECT = _chunkVWN5MN3Ucjs.A; exports.UPDATE_DATA_SUB_CATEGORIES = _chunkVWN5MN3Ucjs.Xb; exports.UPDATE_ENRICHER = _chunkVWN5MN3Ucjs.s; exports.UPDATE_IDENTIFIER = _chunkVWN5MN3Ucjs.x; exports.UPDATE_INTL_MESSAGES = _chunkVWN5MN3Ucjs.ca; exports.UPDATE_LOAD_OPTIONS = _chunkVWN5MN3Ucjs.jb; exports.UPDATE_OR_CREATE_COOKIES = _chunkVWN5MN3Ucjs.Za; exports.UPDATE_OR_CREATE_DATA_POINT = _chunkVWN5MN3Ucjs.h; exports.UPDATE_POLICIES = _chunkVWN5MN3Ucjs.X; exports.UPDATE_PRIVACY_CENTER = _chunkVWN5MN3Ucjs.Eb; exports.UPDATE_PRIVACY_REQUEST = _chunkVWN5MN3Ucjs.$; exports.UPDATE_PROCESSING_ACTIVITIES = _chunkVWN5MN3Ucjs.bc; exports.UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkVWN5MN3Ucjs._b; exports.UPDATE_PROMPTS = _chunkVWN5MN3Ucjs.qa; exports.UPDATE_PROMPT_GROUPS = _chunkVWN5MN3Ucjs.ua; exports.UPDATE_PROMPT_PARTIALS = _chunkVWN5MN3Ucjs.sa; exports.UPDATE_REPOSITORIES = _chunkVWN5MN3Ucjs.D; exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = _chunkVWN5MN3Ucjs.Q; exports.UPDATE_TEAM = _chunkVWN5MN3Ucjs.Ca; exports.UPDATE_VENDORS = _chunkVWN5MN3Ucjs.Ub; exports.USERS = _chunkVWN5MN3Ucjs.Fa; exports.USP_STRING_REGEX = _chunkNZEATKWLcjs.b; exports.VARIABLE_PARAMETERS_NAME = _chunkJH5HRI6Dcjs.b; exports.VARIABLE_PARAMETERS_REGEXP = _chunkJH5HRI6Dcjs.a; exports.VENDORS = _chunkVWN5MN3Ucjs.Sb; exports.VendorInput = _chunkABKDAPPRcjs.p; exports.WebhookHeader = _chunkABKDAPPRcjs.b; exports.addDaysUtc = _chunkVWN5MN3Ucjs.og; exports.addMessagesToPromptRun = _chunkVWN5MN3Ucjs.xc; exports.addMs = _chunkVWN5MN3Ucjs.ng; exports.appendCsvRowsOrdered = _chunkVWN5MN3Ucjs.rg; exports.appendCsvSync = _chunkVWN5MN3Ucjs.sg; exports.approvePrivacyRequests = _chunkVWN5MN3Ucjs.Gf; exports.assumeRole = _chunkVWN5MN3Ucjs.Nd; exports.buildAIIntegrationType = _chunkTSJTXXLZcjs.b; exports.buildEnabledRouteType = _chunkTSJTXXLZcjs.a; exports.buildTranscendGraphQLClient = _chunkVWN5MN3Ucjs.zc; exports.buildTranscendGraphQLClientGeneric = _chunkVWN5MN3Ucjs.yc; exports.buildXdiSyncEndpoint = _chunkMLH6KKUKcjs.g; exports.bulkRestartRequests = _chunkVWN5MN3Ucjs.Of; exports.bulkRetryEnrichers = _chunkVWN5MN3Ucjs.Qf; exports.cancelPrivacyRequests = _chunkVWN5MN3Ucjs.Jf; exports.clampPageSize = _chunkVWN5MN3Ucjs.kg; exports.collectParquetFilesOrExit = _chunkVWN5MN3Ucjs.fg; exports.consentManagersToBusinessEntities = _chunkMLH6KKUKcjs.h; exports.convertToDataSubjectAllowlist = _chunkVWN5MN3Ucjs.Bd; exports.convertToDataSubjectBlockList = _chunkVWN5MN3Ucjs.Ad; exports.createActionItemCollection = _chunkVWN5MN3Ucjs.pe; exports.createActionItems = _chunkVWN5MN3Ucjs.se; exports.createAgent = _chunkVWN5MN3Ucjs.Be; exports.createAgentFile = _chunkVWN5MN3Ucjs.ve; exports.createAgentFunction = _chunkVWN5MN3Ucjs.ye; exports.createApiKey = _chunkVWN5MN3Ucjs.Od; exports.createBusinessEntity = _chunkVWN5MN3Ucjs.Fe; exports.createCodePackage = _chunkVWN5MN3Ucjs.Oe; exports.createConsentToken = _chunkNZEATKWLcjs.a; exports.createDataCategory = _chunkVWN5MN3Ucjs.Ve; exports.createDataFlows = _chunkVWN5MN3Ucjs.Ze; exports.createPreferenceAccessTokens = _chunkVWN5MN3Ucjs.Mc; exports.createProcessingPurpose = _chunkVWN5MN3Ucjs.hf; exports.createPrompt = _chunkVWN5MN3Ucjs.kf; exports.createRegexForTag = j; exports.createRepository = _chunkVWN5MN3Ucjs.Le; exports.createSoftwareDevelopmentKit = _chunkVWN5MN3Ucjs.Ie; exports.createSombraGotInstance = _chunkVWN5MN3Ucjs.Ac; exports.createTranscendConsentGotInstance = _chunkVWN5MN3Ucjs.Bc; exports.createVendor = _chunkVWN5MN3Ucjs.nf; exports.defineTranscendPrompts = ec; exports.deleteApiKey = _chunkVWN5MN3Ucjs.Pd; exports.deployConsentManager = _chunkVWN5MN3Ucjs.Cc; exports.description = _chunkGJ6V5BHGcjs.l; exports.domainToHost = _chunkMLH6KKUKcjs.e; exports.downloadPrivacyRequestFiles = _chunkVWN5MN3Ucjs.Df; exports.enrichPrivacyRequest = _chunkO7SJYOEKcjs.c; exports.ensureAllDataSubjectsExist = _chunkVWN5MN3Ucjs.zd; exports.extractClientError = _chunkVWN5MN3Ucjs.Lf; exports.extractErrorMessage = _chunkVWN5MN3Ucjs._f; exports.fetchActiveSiloDiscoPlugin = _chunkVWN5MN3Ucjs.Ec; exports.fetchAllActionItems = _chunkVWN5MN3Ucjs.Fc; exports.fetchAllActions = _chunkVWN5MN3Ucjs.Gc; exports.fetchAllAgentFiles = _chunkVWN5MN3Ucjs.Hc; exports.fetchAllAgentFunctions = _chunkVWN5MN3Ucjs.Ic; exports.fetchAllAgents = _chunkVWN5MN3Ucjs.Jc; exports.fetchAllApiKeys = _chunkVWN5MN3Ucjs.ud; exports.fetchAllAssessmentTemplates = _chunkVWN5MN3Ucjs.Lc; exports.fetchAllAssessments = _chunkVWN5MN3Ucjs.Kc; exports.fetchAllAttributeValues = _chunkVWN5MN3Ucjs.Oc; exports.fetchAllAttributes = _chunkVWN5MN3Ucjs.Qc; exports.fetchAllBusinessEntities = _chunkVWN5MN3Ucjs.Rc; exports.fetchAllCatalogs = _chunkVWN5MN3Ucjs.wd; exports.fetchAllCookies = _chunkVWN5MN3Ucjs.Yc; exports.fetchAllDataCategories = _chunkVWN5MN3Ucjs.Zc; exports.fetchAllDataFlows = _chunkVWN5MN3Ucjs._c; exports.fetchAllDataPoints = _chunkVWN5MN3Ucjs._d; exports.fetchAllDataSilos = _chunkVWN5MN3Ucjs.Yd; exports.fetchAllDataSubjects = _chunkVWN5MN3Ucjs.yd; exports.fetchAllEnrichers = _chunkVWN5MN3Ucjs.ce; exports.fetchAllIdentifiers = _chunkVWN5MN3Ucjs.xg; exports.fetchAllMessages = _chunkVWN5MN3Ucjs.$c; exports.fetchAllPolicies = _chunkVWN5MN3Ucjs.cd; exports.fetchAllPreferenceTopics = _chunkVWN5MN3Ucjs.ed; exports.fetchAllPrivacyCenters = _chunkVWN5MN3Ucjs.fd; exports.fetchAllProcessingActivities = _chunkVWN5MN3Ucjs.gd; exports.fetchAllProcessingPurposes = _chunkVWN5MN3Ucjs.hd; exports.fetchAllPromptGroups = _chunkVWN5MN3Ucjs.Cd; exports.fetchAllPromptPartials = _chunkVWN5MN3Ucjs.Dd; exports.fetchAllPromptThreads = _chunkVWN5MN3Ucjs.Gd; exports.fetchAllPrompts = _chunkVWN5MN3Ucjs.Ed; exports.fetchAllPurposes = _chunkVWN5MN3Ucjs.id; exports.fetchAllPurposesAndPreferences = _chunkVWN5MN3Ucjs.jd; exports.fetchAllRequestAttributeKeys = _chunkVWN5MN3Ucjs.Nc; exports.fetchAllRequestEnrichers = _chunkVWN5MN3Ucjs.kd; exports.fetchAllRequestIdentifierMetadata = _chunkVWN5MN3Ucjs.ld; exports.fetchAllRequestIdentifiers = _chunkVWN5MN3Ucjs.nd; exports.fetchAllRequests = _chunkVWN5MN3Ucjs.qd; exports.fetchAllSiloDiscoveryResults = _chunkVWN5MN3Ucjs.ie; exports.fetchAllSubDataPoints = _chunkVWN5MN3Ucjs.Zd; exports.fetchAllTeams = _chunkVWN5MN3Ucjs.rd; exports.fetchAllTemplates = _chunkVWN5MN3Ucjs.ee; exports.fetchAllUsers = _chunkVWN5MN3Ucjs.sd; exports.fetchAllVendors = _chunkVWN5MN3Ucjs.td; exports.fetchAndIndexCatalogs = _chunkVWN5MN3Ucjs.xd; exports.fetchApiKeys = _chunkVWN5MN3Ucjs.vd; exports.fetchConsentManager = _chunkVWN5MN3Ucjs.Sc; exports.fetchConsentManagerAnalyticsData = _chunkVWN5MN3Ucjs.Wc; exports.fetchConsentManagerExperiences = _chunkVWN5MN3Ucjs.Uc; exports.fetchConsentManagerId = _chunkVWN5MN3Ucjs.Tc; exports.fetchConsentManagerTheme = _chunkVWN5MN3Ucjs.Xc; exports.fetchEnrichedDataSilos = _chunkVWN5MN3Ucjs.$d; exports.fetchIdentifiersAndCreateMissing = _chunkVWN5MN3Ucjs.yg; exports.fetchPartitions = _chunkVWN5MN3Ucjs.ge; exports.fetchPrivacyCenterId = _chunkVWN5MN3Ucjs.bd; exports.fetchPrivacyCenterUrl = _chunkVWN5MN3Ucjs.ad; exports.fetchPromptsWithVariables = _chunkVWN5MN3Ucjs.Fd; exports.fetchRequestDataSilo = _chunkVWN5MN3Ucjs.Jd; exports.fetchRequestDataSiloActiveCount = _chunkVWN5MN3Ucjs.Kd; exports.fetchRequestDataSilos = _chunkVWN5MN3Ucjs.Id; exports.fetchRequestDataSilosCount = _chunkVWN5MN3Ucjs.Hd; exports.fetchRequestFilesForRequest = _chunkVWN5MN3Ucjs.Ld; exports.filterNullishValuesFromObject = oc; exports.filterRows = _chunkVWN5MN3Ucjs.wc; exports.formatAttributeValues = _chunkVWN5MN3Ucjs.dd; exports.fuzzyMatchColumns = _chunkVWN5MN3Ucjs.pc; exports.fuzzySearch = _chunkVWN5MN3Ucjs.oc; exports.generateCrossAccountApiKeys = _chunk5UWKWV3Xcjs.a; exports.getErrorStatus = _chunkVWN5MN3Ucjs.Zf; exports.getFileMetadataForPrivacyRequests = _chunkVWN5MN3Ucjs.Bf; exports.getGitFilesThatChanged = cc; exports.getUniqueValuesForColumn = _chunkVWN5MN3Ucjs.vc; exports.initCsvFile = _chunkVWN5MN3Ucjs.qg; exports.inquirerAutoComplete = _chunkVWN5MN3Ucjs.Xf; exports.inquirerConfirmBoolean = _chunkVWN5MN3Ucjs.Vf; exports.inquirerConfirmText = _chunkVWN5MN3Ucjs.Wf; exports.limitRecords = _chunkVWN5MN3Ucjs.cg; exports.listDirectories = _chunk5UWKWV3Xcjs.d; exports.listFiles = _chunk5UWKWV3Xcjs.c; exports.loginUser = _chunkVWN5MN3Ucjs.Md; exports.makeGraphQLRequest = _chunkVWN5MN3Ucjs.wg; exports.mapColumnsToAttributes = _chunkVWN5MN3Ucjs.Kf; exports.mapColumnsToIdentifiers = _chunkVWN5MN3Ucjs.If; exports.mapCsvColumnsToApi = _chunkVWN5MN3Ucjs.sf; exports.mapCsvRowsToRequestInputs = _chunkVWN5MN3Ucjs.xf; exports.mapEnumValues = _chunkVWN5MN3Ucjs.qc; exports.mapRequestEnumValues = _chunkVWN5MN3Ucjs.tf; exports.markCronIdentifierCompleted = _chunkCDX243U3cjs.d; exports.markRequestDataSiloIdsCompleted = _chunkCDX243U3cjs.f; exports.markSilentPrivacyRequests = _chunkVWN5MN3Ucjs.rf; exports.mergeTranscendInputs = _chunkIBTP5OXEcjs.a; exports.name = _chunkGJ6V5BHGcjs.n; exports.normalizeIdentifierValue = _chunkVWN5MN3Ucjs.wf; exports.notifyPrivacyRequestsAdditionalTime = _chunkVWN5MN3Ucjs.Hf; exports.parquetToCsvOneFile = _chunkVWN5MN3Ucjs.gg; exports.parseAssessmentDisplayLogic = _chunkVWN5MN3Ucjs.Vd; exports.parseAssessmentRiskLogic = _chunkVWN5MN3Ucjs.Xd; exports.parseAttributesFromString = _chunkVWN5MN3Ucjs.tc; exports.parseFilePath = _chunkVWN5MN3Ucjs.ug; exports.parseVariablesFromString = _chunkVWN5MN3Ucjs.Yf; exports.pullAllDatapoints = _chunkSFPZ6GENcjs.a; exports.pullChunkedCustomSiloOutstandingIdentifiers = _chunkCDX243U3cjs.g; exports.pullConsentManagerMetrics = _chunkMLH6KKUKcjs.d; exports.pullCronPageOfIdentifiers = _chunkCDX243U3cjs.b; exports.pullManualEnrichmentIdentifiersToCsv = _chunkO7SJYOEKcjs.a; exports.pullPrivacyRequests = _chunkVWN5MN3Ucjs.Sf; exports.pullTranscendConfiguration = _chunkVWN5MN3Ucjs.ke; exports.pullUnstructuredSubDataPointRecommendations = _chunkSFPZ6GENcjs.b; exports.pushCronIdentifiersFromCsv = _chunkCDX243U3cjs.e; exports.pushManualEnrichmentIdentifiersFromCsv = _chunkO7SJYOEKcjs.d; exports.readCsv = _chunkVWN5MN3Ucjs.uc; exports.readSafe = _chunkVWN5MN3Ucjs.eg; exports.readTranscendYaml = _chunkJH5HRI6Dcjs.d; exports.removeLinks = nc; exports.removeUnverifiedRequestIdentifiers = _chunkVWN5MN3Ucjs.Uf; exports.replaceVariablesInYaml = _chunkJH5HRI6Dcjs.c; exports.reportPromptRun = _chunkVWN5MN3Ucjs.le; exports.restartPrivacyRequest = _chunkVWN5MN3Ucjs.Nf; exports.retryRequestDataSilos = _chunkVWN5MN3Ucjs.Rf; exports.retryRequestEnricher = _chunkVWN5MN3Ucjs.me; exports.retrySamePromise = _chunkVWN5MN3Ucjs.bg; exports.setResourceAttributes = _chunkVWN5MN3Ucjs.ne; exports.skipPreflightJobs = _chunkVWN5MN3Ucjs.Pf; exports.skipRequestDataSilos = _chunkVWN5MN3Ucjs.Tf; exports.sleepPromise = _chunkVWN5MN3Ucjs.$f; exports.splitCsvToList = _chunkVWN5MN3Ucjs.rc; exports.splitInHalf = _chunkVWN5MN3Ucjs.ag; exports.startOfHour = _chunkVWN5MN3Ucjs.mg; exports.startOfUtcDay = _chunkVWN5MN3Ucjs.lg; exports.streamPrivacyRequestFiles = _chunkVWN5MN3Ucjs.Cf; exports.submitPrivacyRequest = _chunkVWN5MN3Ucjs.Ff; exports.syncAction = _chunkVWN5MN3Ucjs.oe; exports.syncActionItemCollections = _chunkVWN5MN3Ucjs.re; exports.syncActionItems = _chunkVWN5MN3Ucjs.ue; exports.syncAgentFiles = _chunkVWN5MN3Ucjs.xe; exports.syncAgentFunctions = _chunkVWN5MN3Ucjs.Ae; exports.syncAgents = _chunkVWN5MN3Ucjs.De; exports.syncAttribute = _chunkVWN5MN3Ucjs.Ee; exports.syncBusinessEntities = _chunkVWN5MN3Ucjs.He; exports.syncCodePackages = _chunkVWN5MN3Ucjs.Qe; exports.syncConfigurationToTranscend = _chunkVWN5MN3Ucjs.zg; exports.syncConsentManager = _chunkVWN5MN3Ucjs.Se; exports.syncConsentManagerExperiences = _chunkVWN5MN3Ucjs.Re; exports.syncCookies = _chunkVWN5MN3Ucjs.Ue; exports.syncDataCategories = _chunkVWN5MN3Ucjs.Xe; exports.syncDataFlows = _chunkVWN5MN3Ucjs._e; exports.syncDataSiloDependencies = _chunkVWN5MN3Ucjs.be; exports.syncDataSilos = _chunkVWN5MN3Ucjs.ae; exports.syncDataSubject = _chunkVWN5MN3Ucjs.$e; exports.syncEnricher = _chunkVWN5MN3Ucjs.de; exports.syncIdentifier = _chunkVWN5MN3Ucjs.af; exports.syncIntlMessages = _chunkVWN5MN3Ucjs.cf; exports.syncPartitions = _chunkVWN5MN3Ucjs.he; exports.syncPolicies = _chunkVWN5MN3Ucjs.ef; exports.syncPrivacyCenter = _chunkVWN5MN3Ucjs.ff; exports.syncProcessingActivities = _chunkVWN5MN3Ucjs.gf; exports.syncProcessingPurposes = _chunkVWN5MN3Ucjs.jf; exports.syncPrompts = _chunkVWN5MN3Ucjs.mf; exports.syncRepositories = _chunkVWN5MN3Ucjs.Ne; exports.syncSoftwareDevelopmentKits = _chunkVWN5MN3Ucjs.Ke; exports.syncTemplate = _chunkVWN5MN3Ucjs.fe; exports.syncVendors = _chunkVWN5MN3Ucjs.pf; exports.updateActionItem = _chunkVWN5MN3Ucjs.te; exports.updateActionItemCollection = _chunkVWN5MN3Ucjs.qe; exports.updateAgentFiles = _chunkVWN5MN3Ucjs.we; exports.updateAgentFunctions = _chunkVWN5MN3Ucjs.ze; exports.updateAgents = _chunkVWN5MN3Ucjs.Ce; exports.updateBusinessEntities = _chunkVWN5MN3Ucjs.Ge; exports.updateCodePackages = _chunkVWN5MN3Ucjs.Pe; exports.updateConsentManagerToLatest = _chunkVWN5MN3Ucjs.Dc; exports.updateConsentManagerVersionToLatest = _chunkMLH6KKUKcjs.a; exports.updateDataCategories = _chunkVWN5MN3Ucjs.We; exports.updateDataFlows = _chunkVWN5MN3Ucjs.Ye; exports.updateIntlMessages = _chunkVWN5MN3Ucjs.bf; exports.updateOrCreateCookies = _chunkVWN5MN3Ucjs.Te; exports.updatePolicies = _chunkVWN5MN3Ucjs.df; exports.updateProcessingPurposes = _chunkVWN5MN3Ucjs.if; exports.updatePrompts = _chunkVWN5MN3Ucjs.lf; exports.updateRepositories = _chunkVWN5MN3Ucjs.Me; exports.updateSoftwareDevelopmentKits = _chunkVWN5MN3Ucjs.Je; exports.updateVendors = _chunkVWN5MN3Ucjs.of; exports.uploadConsents = _chunkNZEATKWLcjs.d; exports.uploadCookiesFromCsv = _chunkMLH6KKUKcjs.c; exports.uploadDataFlowsFromCsv = _chunkMLH6KKUKcjs.b; exports.uploadPrivacyRequestsFromCsv = _chunkVWN5MN3Ucjs.Mf; exports.uploadSiloDiscoveryResults = _chunkVWN5MN3Ucjs.qf; exports.validateTranscendAuth = _chunk5UWKWV3Xcjs.b; exports.version = _chunkGJ6V5BHGcjs.m; exports.writeCsv = _chunkVWN5MN3Ucjs.tg; exports.writeCsvSync = _chunkVWN5MN3Ucjs.pg; exports.writeLargeCsv = _chunkVWN5MN3Ucjs.vg; exports.writeTranscendYaml = _chunkJH5HRI6Dcjs.e;
|
|
3
|
+
`)[0];if(!o||!i)throw new Error("FAILED TO FIND COMMIT RANGE");let p=_child_process.execSync.call(void 0, `git fetch && git diff --name-only "${a||o}...${i}" -- ${e}`,{encoding:"utf-8"}),m=_chunk5MG2CEZVcjs.c.call(void 0, p.split(`
|
|
4
|
+
`).filter(d=>d),s),c=t.length>0?_fastglob2.default.sync(m,{ignore:t}):m,n={};c.forEach(d=>{let Q=_child_process.execSync.call(void 0, `git show ${i}:${d}`,{encoding:"utf-8"});n[d]=Q});let g=r.split("/").pop().split(".")[0];return{changedFiles:m,fileDiffs:n,repoName:g,commit:i}}exports.ACTIONS = _chunkKYOQWIIScjs.wb; exports.ADD_MESSAGES_TO_PROMPT_RUN = _chunkKYOQWIIScjs.Ja; exports.ADD_SILO_DISCOVERY_RESULTS = _chunkKYOQWIIScjs.J; exports.ADMIN_DASH = _chunk5MG2CEZVcjs.o; exports.ADMIN_DASH_DATAPOINTS = _chunk5MG2CEZVcjs.q; exports.ADMIN_DASH_INTEGRATIONS = _chunk5MG2CEZVcjs.p; exports.AGENTS = _chunkKYOQWIIScjs.Jb; exports.AGENT_FILES = _chunkKYOQWIIScjs.Mb; exports.AGENT_FUNCTIONS = _chunkKYOQWIIScjs.Pb; exports.API_KEYS = _chunkKYOQWIIScjs.F; exports.APPROVE_PRIVACY_REQUEST = _chunkKYOQWIIScjs.Z; exports.ASSESSMENTS = _chunkKYOQWIIScjs.ha; exports.ASSESSMENT_SECTION_FIELDS = _chunkKYOQWIIScjs.ga; exports.ASSESSMENT_TEMPLATES = _chunkKYOQWIIScjs.la; exports.ASSUME_ROLE = _chunkKYOQWIIScjs.Hb; exports.ATTRIBUTES = _chunkKYOQWIIScjs.Na; exports.ATTRIBUTE_KEYS_REQUESTS = _chunkKYOQWIIScjs.O; exports.ATTRIBUTE_VALUES = _chunkKYOQWIIScjs.Ra; exports.ActionInput = _chunkABKDAPPRcjs.G; exports.ActionItemCollectionInput = _chunkABKDAPPRcjs.R; exports.ActionItemInput = _chunkABKDAPPRcjs.S; exports.AgentFileInput = _chunkABKDAPPRcjs.o; exports.AgentFunctionInput = _chunkABKDAPPRcjs.n; exports.AgentInput = _chunkABKDAPPRcjs.m; exports.ApiKeyInput = _chunkABKDAPPRcjs.c; exports.AssessmentAction = _chunkKYOQWIIScjs.Ud; exports.AssessmentAnswerOptionInput = _chunkABKDAPPRcjs.Y; exports.AssessmentDisplayLogicInput = _chunkABKDAPPRcjs.V; exports.AssessmentInput = _chunkABKDAPPRcjs.ca; exports.AssessmentNestedRule = _chunkKYOQWIIScjs.Td; exports.AssessmentNestedRuleInput = _chunkABKDAPPRcjs.U; exports.AssessmentResourceInput = _chunkABKDAPPRcjs.ba; exports.AssessmentRetentionScheduleInput = _chunkABKDAPPRcjs.$; exports.AssessmentRiskLogic = _chunkKYOQWIIScjs.Wd; exports.AssessmentRule = _chunkKYOQWIIScjs.Sd; exports.AssessmentRuleInput = _chunkABKDAPPRcjs.T; exports.AssessmentRuleWithOperands = _chunkKYOQWIIScjs.Qd; exports.AssessmentRuleWithoutOperands = _chunkKYOQWIIScjs.Rd; exports.AssessmentSectionInput = _chunkABKDAPPRcjs._; exports.AssessmentSectionQuestionInput = _chunkABKDAPPRcjs.Z; exports.AssessmentTemplateInput = _chunkABKDAPPRcjs.aa; exports.AttestedExtraIdentifiers = _chunkKYOQWIIScjs.uf; exports.AttributeInput = _chunkABKDAPPRcjs.k; exports.AttributePreview = _chunkABKDAPPRcjs.l; exports.AttributeValueInput = _chunkABKDAPPRcjs.j; exports.BLANK = _chunkKYOQWIIScjs.gc; exports.BULK_APPLY = _chunkKYOQWIIScjs.fc; exports.BULK_REQUEST_FILES = _chunkKYOQWIIScjs.Ha; exports.BUSINESS_ENTITIES = _chunkKYOQWIIScjs.tb; exports.BusinessEntityInput = _chunkABKDAPPRcjs.y; exports.CANCEL_PRIVACY_REQUEST = _chunkKYOQWIIScjs._; exports.CAN_APPLY_IN_BULK = _chunkKYOQWIIScjs.kc; exports.CATALOGS = _chunkKYOQWIIScjs.t; exports.CHANGE_REQUEST_DATA_SILO_STATUS = _chunkKYOQWIIScjs.xa; exports.CODE_PACKAGES = _chunkKYOQWIIScjs.S; exports.CONSENT_MANAGER_ANALYTICS_DATA = _chunkKYOQWIIScjs.sb; exports.CONSENT_PARTITIONS = _chunkKYOQWIIScjs.Wa; exports.COOKIES = _chunkKYOQWIIScjs.$a; exports.CREATE_ACTION_ITEMS = _chunkKYOQWIIScjs.Ab; exports.CREATE_ACTION_ITEM_COLLECTION = _chunkKYOQWIIScjs.La; exports.CREATE_AGENT = _chunkKYOQWIIScjs.Kb; exports.CREATE_AGENT_FILE = _chunkKYOQWIIScjs.Nb; exports.CREATE_AGENT_FUNCTION = _chunkKYOQWIIScjs.Qb; exports.CREATE_API_KEY = _chunkKYOQWIIScjs.G; exports.CREATE_ATTRIBUTE = _chunkKYOQWIIScjs.Sa; exports.CREATE_ATTRIBUTE_VALUES = _chunkKYOQWIIScjs.Oa; exports.CREATE_BUSINESS_ENTITY = _chunkKYOQWIIScjs.ub; exports.CREATE_CODE_PACKAGE = _chunkKYOQWIIScjs.U; exports.CREATE_CONSENT_EXPERIENCE = _chunkKYOQWIIScjs.qb; exports.CREATE_CONSENT_MANAGER = _chunkKYOQWIIScjs.db; exports.CREATE_CONSENT_PARTITION = _chunkKYOQWIIScjs.rb; exports.CREATE_DATA_FLOWS = _chunkKYOQWIIScjs.Xa; exports.CREATE_DATA_SILOS = _chunkKYOQWIIScjs.o; exports.CREATE_DATA_SUBJECT = _chunkKYOQWIIScjs.z; exports.CREATE_DATA_SUB_CATEGORY = _chunkKYOQWIIScjs.Wb; exports.CREATE_ENRICHER = _chunkKYOQWIIScjs.r; exports.CREATE_IDENTIFIER = _chunkKYOQWIIScjs.w; exports.CREATE_PREFERENCE_ACCESS_TOKENS = _chunkKYOQWIIScjs.I; exports.CREATE_PROCESSING_ACTIVITY = _chunkKYOQWIIScjs.ac; exports.CREATE_PROCESSING_PURPOSE_SUB_CATEGORY = _chunkKYOQWIIScjs.Zb; exports.CREATE_PROMPT = _chunkKYOQWIIScjs.ra; exports.CREATE_PROMPT_GROUP = _chunkKYOQWIIScjs.va; exports.CREATE_PROMPT_PARTIAL = _chunkKYOQWIIScjs.ta; exports.CREATE_REPOSITORY = _chunkKYOQWIIScjs.E; exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = _chunkKYOQWIIScjs.R; exports.CREATE_TEAM = _chunkKYOQWIIScjs.Ba; exports.CREATE_TEMPLATE = _chunkKYOQWIIScjs.M; exports.CREATE_VENDOR = _chunkKYOQWIIScjs.Tb; exports.CachedFileState = _chunkKYOQWIIScjs.lc; exports.CachedRequestState = _chunkKYOQWIIScjs.nc; exports.CodePackageInput = _chunkABKDAPPRcjs.D; exports.CodePackageSdk = _chunkABKDAPPRcjs.C; exports.ColumnName = _chunkKYOQWIIScjs.ic; exports.ConsentManageExperienceInput = _chunkABKDAPPRcjs.K; exports.ConsentManagerInput = _chunkABKDAPPRcjs.M; exports.ConsentManagerMetricBin = _chunkKYOQWIIScjs.Vc; exports.ConsentManagerServiceMetadata = _chunkABKDAPPRcjs.la; exports.ConsentPreferenceTopic = _chunkABKDAPPRcjs.ea; exports.ConsentPreferenceTopicOptionValue = _chunkABKDAPPRcjs.da; exports.ConsentPurpose = _chunkABKDAPPRcjs.fa; exports.CookieCsvInput = _chunkABKDAPPRcjs.ka; exports.CookieInput = _chunkABKDAPPRcjs.J; exports.CronIdentifier = _chunkH3EBIKX6cjs.a; exports.CronIdentifierPush = _chunkH3EBIKX6cjs.c; exports.DATAPOINT_EXPORT = _chunkKYOQWIIScjs.i; exports.DATA_FLOWS = _chunkKYOQWIIScjs._a; exports.DATA_POINTS = _chunkKYOQWIIScjs.c; exports.DATA_POINT_COUNT = _chunkKYOQWIIScjs.d; exports.DATA_SILOS = _chunkKYOQWIIScjs.k; exports.DATA_SILOS_ENRICHED = _chunkKYOQWIIScjs.m; exports.DATA_SILO_EXPORT = _chunkKYOQWIIScjs.l; exports.DATA_SUBJECTS = _chunkKYOQWIIScjs.y; exports.DATA_SUB_CATEGORIES = _chunkKYOQWIIScjs.Vb; exports.DAY_MS = _chunkKYOQWIIScjs.hg; exports.DEBUG = _chunk5MG2CEZVcjs.z; exports.DEFAULT_TRANSCEND_API = _chunk5MG2CEZVcjs.r; exports.DEFAULT_TRANSCEND_CONSENT_API = _chunk5MG2CEZVcjs.s; exports.DEFAULT_TRANSCEND_PULL_RESOURCES = _chunkKYOQWIIScjs.je; exports.DELETE_API_KEY = _chunkKYOQWIIScjs.H; exports.DELETE_ATTRIBUTE_VALUE = _chunkKYOQWIIScjs.Qa; exports.DEPLOYED_PRIVACY_CENTER_URL = _chunkKYOQWIIScjs.Cb; exports.DEPLOY_CONSENT_MANAGER = _chunkKYOQWIIScjs.gb; exports.DETERMINE_LOGIN_METHOD = _chunkKYOQWIIScjs.Fb; exports.DataCategoryGuessInput = _chunkABKDAPPRcjs.h; exports.DataCategoryInput = _chunkABKDAPPRcjs.q; exports.DataCategoryPreviewInput = _chunkABKDAPPRcjs.g; exports.DataCategoryRecommendationInput = _chunkABKDAPPRcjs.i; exports.DataFlowCsvInput = _chunkABKDAPPRcjs.ja; exports.DataFlowInput = _chunkABKDAPPRcjs.I; exports.DataSiloInput = _chunkABKDAPPRcjs.Q; exports.DataSubjectInput = _chunkABKDAPPRcjs.F; exports.DatapointInput = _chunkABKDAPPRcjs.w; exports.ENABLED_PLUGINS = _chunkKYOQWIIScjs.K; exports.ENRICHERS = _chunkKYOQWIIScjs.p; exports.ENTRY_COUNT = _chunkKYOQWIIScjs.j; exports.EXPERIENCES = _chunkKYOQWIIScjs.Va; exports.EnrichPrivacyRequest = _chunkILBF5XZNcjs.b; exports.EnricherInput = _chunkABKDAPPRcjs.e; exports.FETCH_CONSENT_MANAGER = _chunkKYOQWIIScjs.bb; exports.FETCH_CONSENT_MANAGER_ID = _chunkKYOQWIIScjs.ab; exports.FETCH_CONSENT_MANAGER_THEME = _chunkKYOQWIIScjs.cb; exports.FETCH_PRIVACY_CENTER_ID = _chunkKYOQWIIScjs.Bb; exports.FIVE_MIN_MS = _chunkKYOQWIIScjs.jg; exports.FieldInput = _chunkABKDAPPRcjs.v; exports.GLOBAL_ACTION_ITEMS = _chunkKYOQWIIScjs.yb; exports.GLOBAL_ACTION_ITEM_COLLECTIONS = _chunkKYOQWIIScjs.Ka; exports.HOUR_MS = _chunkKYOQWIIScjs.ig; exports.IDENTIFIERS = _chunkKYOQWIIScjs.u; exports.IDENTIFIER_BLOCK_LIST = _chunkKYOQWIIScjs.hc; exports.IMPORT_ONE_TRUST_ASSESSMENT_FORMS = _chunkKYOQWIIScjs.ia; exports.INITIALIZER = _chunkKYOQWIIScjs.q; exports.IP_ADDRESS_REGEX = _chunk4NEO6Q2Fcjs.f; exports.IS_REQUIRED = _chunkKYOQWIIScjs.jc; exports.IdentifierInput = _chunkABKDAPPRcjs.H; exports.ImportOnetrustAssessmentsInput = _chunkABKDAPPRcjs.sa; exports.IntlMessage = _chunkKYOQWIIScjs.yf; exports.IntlMessageInput = _chunkABKDAPPRcjs.P; exports.LARGE_LANGUAGE_MODELS = _chunkKYOQWIIScjs.Ib; exports.LOGIN = _chunkKYOQWIIScjs.Gb; exports.MESSAGES = _chunkKYOQWIIScjs.ba; exports.NEW_IDENTIFIER_TYPES = _chunkKYOQWIIScjs.v; exports.NONE = _chunkKYOQWIIScjs.ec; exports.NOTIFY_ADDITIONAL_TIME = _chunkKYOQWIIScjs.aa; exports.ORGANIZATION = _chunkKYOQWIIScjs.N; exports.OneTrustFileFormat = _chunk7PB6LVSEcjs.a; exports.OneTrustPullResource = _chunk7PB6LVSEcjs.b; exports.OneTrustPullSource = _chunk7PB6LVSEcjs.c; exports.OpenAIEnabledRoute = _chunkABKDAPPRcjs.na; exports.OpenAIEnabledRoutes = _chunkABKDAPPRcjs.oa; exports.OpenAIIntegration = _chunkABKDAPPRcjs.pa; exports.OpenAIRouteName = _chunk7PB6LVSEcjs.f; exports.POLICIES = _chunkKYOQWIIScjs.W; exports.PREFERENCE_TOPICS = _chunkKYOQWIIScjs.ka; exports.PRIVACY_CENTER = _chunkKYOQWIIScjs.Db; exports.PROCESSING_ACTIVITIES = _chunkKYOQWIIScjs.$b; exports.PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkKYOQWIIScjs.Yb; exports.PROMPTS = _chunkKYOQWIIScjs.ma; exports.PROMPTS_WITH_VARIABLES = _chunkKYOQWIIScjs.pa; exports.PROMPT_GROUPS = _chunkKYOQWIIScjs.oa; exports.PROMPT_PARTIALS = _chunkKYOQWIIScjs.na; exports.PROMPT_THREADS = _chunkKYOQWIIScjs.V; exports.PURPOSES = _chunkKYOQWIIScjs.ja; exports.ParsedAttributeInput = _chunkKYOQWIIScjs.sc; exports.PartitionInput = _chunkABKDAPPRcjs.L; exports.PathfinderPolicy = _chunkABKDAPPRcjs.qa; exports.PathfinderPolicyName = _chunk7PB6LVSEcjs.e; exports.PathfinderPolicyNameC = _chunkABKDAPPRcjs.ma; exports.PathfinderPromptRunMetadata = _chunkABKDAPPRcjs.ra; exports.PolicyInput = _chunkABKDAPPRcjs.O; exports.PrivacyCenterInput = _chunkABKDAPPRcjs.N; exports.PrivacyRequest = _chunkKYOQWIIScjs.pd; exports.PrivacyRequestInput = _chunkKYOQWIIScjs.vf; exports.PrivacyRequestResponse = _chunkKYOQWIIScjs.Ef; exports.ProcessingActivityInput = _chunkABKDAPPRcjs.A; exports.ProcessingPurposeInput = _chunkABKDAPPRcjs.r; exports.ProcessingPurposePreviewInput = _chunkABKDAPPRcjs.f; exports.PromptAVendorEmailSettings = _chunkABKDAPPRcjs.x; exports.PromptGroupInput = _chunkABKDAPPRcjs.u; exports.PromptInput = _chunkABKDAPPRcjs.s; exports.PromptPartialInput = _chunkABKDAPPRcjs.t; exports.PurposeMap = _chunkHZU3YROTcjs.c; exports.REDUCED_REQUESTS_FOR_DATA_SILO_COUNT = _chunkKYOQWIIScjs.za; exports.REMOVE_REQUEST_IDENTIFIERS = _chunkKYOQWIIScjs.Da; exports.REPORT_PROMPT_RUN = _chunkKYOQWIIScjs.Ia; exports.REPOSITORIES = _chunkKYOQWIIScjs.C; exports.REQUESTS = _chunkKYOQWIIScjs.Y; exports.REQUEST_DATA_SILOS = _chunkKYOQWIIScjs.wa; exports.REQUEST_ENRICHERS = _chunkKYOQWIIScjs.da; exports.REQUEST_FILES = _chunkKYOQWIIScjs.Ga; exports.REQUEST_IDENTIFIERS = _chunkKYOQWIIScjs.Ea; exports.RETRYABLE_BATCH_STATUSES = _chunk5MG2CEZVcjs.y; exports.RETRY_REQUEST_DATA_SILO = _chunkKYOQWIIScjs.ya; exports.RETRY_REQUEST_ENRICHER = _chunkKYOQWIIScjs.ea; exports.RateCounter = _chunkKYOQWIIScjs.dg; exports.RegionInput = _chunkABKDAPPRcjs.z; exports.RepositoryInput = _chunkABKDAPPRcjs.E; exports.RequestFileMetadata = _chunkKYOQWIIScjs.zf; exports.RequestFileMetadataResponse = _chunkKYOQWIIScjs.Af; exports.RequestIdentifiersResponse = _chunkKYOQWIIScjs.md; exports.RequestPurposeTrigger = _chunkKYOQWIIScjs.od; exports.RiskAssignmentInput = _chunkABKDAPPRcjs.W; exports.RiskLogicInput = _chunkABKDAPPRcjs.X; exports.SCOPES_BY_TITLE = _chunk5MG2CEZVcjs.w; exports.SCOPE_TITLES = _chunk5MG2CEZVcjs.x; exports.SET_RESOURCE_ATTRIBUTES = _chunkKYOQWIIScjs.Ua; exports.SILO_DISCOVERY_RESULTS = _chunkKYOQWIIScjs.dc; exports.SKIP_REQUEST_ENRICHER = _chunkKYOQWIIScjs.fa; exports.SOFTWARE_DEVELOPMENT_KITS = _chunkKYOQWIIScjs.P; exports.SOMBRA_VERSION = _chunkKYOQWIIScjs.cc; exports.SUB_DATA_POINTS = _chunkKYOQWIIScjs.e; exports.SUB_DATA_POINTS_COUNT = _chunkKYOQWIIScjs.f; exports.SUB_DATA_POINTS_WITH_GUESSES = _chunkKYOQWIIScjs.g; exports.SYNC_ATTRIBUTE_TYPES = _chunkKYOQWIIScjs.Pc; exports.SiloDiscoveryResultInput = _chunkABKDAPPRcjs.ga; exports.SoftwareDevelopmentKitInput = _chunkABKDAPPRcjs.B; exports.StoredApiKey = _chunkABKDAPPRcjs.ia; exports.SuccessfulRequest = _chunkKYOQWIIScjs.mc; exports.TEAMS = _chunkKYOQWIIScjs.Aa; exports.TEMPLATES = _chunkKYOQWIIScjs.L; exports.TOGGLE_CONSENT_PRECEDENCE = _chunkKYOQWIIScjs.nb; exports.TOGGLE_DATA_SUBJECT = _chunkKYOQWIIScjs.B; exports.TOGGLE_TELEMETRY_PARTITION_STRATEGY = _chunkKYOQWIIScjs.mb; exports.TOGGLE_UNKNOWN_COOKIE_POLICY = _chunkKYOQWIIScjs.lb; exports.TOGGLE_UNKNOWN_REQUEST_POLICY = _chunkKYOQWIIScjs.kb; exports.TR_PULL_RESOURCE_SCOPE_MAP = _chunk5MG2CEZVcjs.u; exports.TR_PUSH_RESOURCE_SCOPE_MAP = _chunk5MG2CEZVcjs.t; exports.TR_YML_RESOURCE_TO_FIELD_NAME = _chunk5MG2CEZVcjs.v; exports.TeamInput = _chunkABKDAPPRcjs.d; exports.TemplateInput = _chunkABKDAPPRcjs.a; exports.TranscendInput = _chunkABKDAPPRcjs.ha; exports.TranscendPromptManager = F; exports.TranscendPullResource = _chunk7PB6LVSEcjs.d; exports.UPDATE_ACTION = _chunkKYOQWIIScjs.xb; exports.UPDATE_ACTION_ITEMS = _chunkKYOQWIIScjs.zb; exports.UPDATE_ACTION_ITEM_COLLECTION = _chunkKYOQWIIScjs.Ma; exports.UPDATE_AGENTS = _chunkKYOQWIIScjs.Lb; exports.UPDATE_AGENT_FILES = _chunkKYOQWIIScjs.Ob; exports.UPDATE_AGENT_FUNCTIONS = _chunkKYOQWIIScjs.Rb; exports.UPDATE_ATTRIBUTE = _chunkKYOQWIIScjs.Ta; exports.UPDATE_ATTRIBUTE_VALUES = _chunkKYOQWIIScjs.Pa; exports.UPDATE_BUSINESS_ENTITIES = _chunkKYOQWIIScjs.vb; exports.UPDATE_CODE_PACKAGES = _chunkKYOQWIIScjs.T; exports.UPDATE_CONSENT_EXPERIENCE = _chunkKYOQWIIScjs.pb; exports.UPDATE_CONSENT_MANAGER_DOMAINS = _chunkKYOQWIIScjs.hb; exports.UPDATE_CONSENT_MANAGER_PARTITION = _chunkKYOQWIIScjs.ib; exports.UPDATE_CONSENT_MANAGER_THEME = _chunkKYOQWIIScjs.ob; exports.UPDATE_CONSENT_MANAGER_TO_LATEST = _chunkKYOQWIIScjs.fb; exports.UPDATE_CONSENT_MANAGER_VERSION = _chunkKYOQWIIScjs.eb; exports.UPDATE_DATA_FLOWS = _chunkKYOQWIIScjs.Ya; exports.UPDATE_DATA_SILOS = _chunkKYOQWIIScjs.n; exports.UPDATE_DATA_SUBJECT = _chunkKYOQWIIScjs.A; exports.UPDATE_DATA_SUB_CATEGORIES = _chunkKYOQWIIScjs.Xb; exports.UPDATE_ENRICHER = _chunkKYOQWIIScjs.s; exports.UPDATE_IDENTIFIER = _chunkKYOQWIIScjs.x; exports.UPDATE_INTL_MESSAGES = _chunkKYOQWIIScjs.ca; exports.UPDATE_LOAD_OPTIONS = _chunkKYOQWIIScjs.jb; exports.UPDATE_OR_CREATE_COOKIES = _chunkKYOQWIIScjs.Za; exports.UPDATE_OR_CREATE_DATA_POINT = _chunkKYOQWIIScjs.h; exports.UPDATE_POLICIES = _chunkKYOQWIIScjs.X; exports.UPDATE_PRIVACY_CENTER = _chunkKYOQWIIScjs.Eb; exports.UPDATE_PRIVACY_REQUEST = _chunkKYOQWIIScjs.$; exports.UPDATE_PROCESSING_ACTIVITIES = _chunkKYOQWIIScjs.bc; exports.UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkKYOQWIIScjs._b; exports.UPDATE_PROMPTS = _chunkKYOQWIIScjs.qa; exports.UPDATE_PROMPT_GROUPS = _chunkKYOQWIIScjs.ua; exports.UPDATE_PROMPT_PARTIALS = _chunkKYOQWIIScjs.sa; exports.UPDATE_REPOSITORIES = _chunkKYOQWIIScjs.D; exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = _chunkKYOQWIIScjs.Q; exports.UPDATE_TEAM = _chunkKYOQWIIScjs.Ca; exports.UPDATE_VENDORS = _chunkKYOQWIIScjs.Ub; exports.USERS = _chunkKYOQWIIScjs.Fa; exports.USP_STRING_REGEX = _chunkHZU3YROTcjs.b; exports.VARIABLE_PARAMETERS_NAME = _chunkJH5HRI6Dcjs.b; exports.VARIABLE_PARAMETERS_REGEXP = _chunkJH5HRI6Dcjs.a; exports.VENDORS = _chunkKYOQWIIScjs.Sb; exports.VendorInput = _chunkABKDAPPRcjs.p; exports.WebhookHeader = _chunkABKDAPPRcjs.b; exports.addDaysUtc = _chunkKYOQWIIScjs.og; exports.addMessagesToPromptRun = _chunkKYOQWIIScjs.xc; exports.addMs = _chunkKYOQWIIScjs.ng; exports.appendCsvRowsOrdered = _chunkKYOQWIIScjs.rg; exports.appendCsvSync = _chunkKYOQWIIScjs.sg; exports.approvePrivacyRequests = _chunkKYOQWIIScjs.Gf; exports.assumeRole = _chunkKYOQWIIScjs.Nd; exports.buildAIIntegrationType = _chunkTSJTXXLZcjs.b; exports.buildEnabledRouteType = _chunkTSJTXXLZcjs.a; exports.buildTranscendGraphQLClient = _chunkKYOQWIIScjs.zc; exports.buildTranscendGraphQLClientGeneric = _chunkKYOQWIIScjs.yc; exports.buildXdiSyncEndpoint = _chunk4NEO6Q2Fcjs.g; exports.bulkRestartRequests = _chunkKYOQWIIScjs.Of; exports.bulkRetryEnrichers = _chunkKYOQWIIScjs.Qf; exports.cancelPrivacyRequests = _chunkKYOQWIIScjs.Jf; exports.clampPageSize = _chunkKYOQWIIScjs.kg; exports.collectParquetFilesOrExit = _chunkKYOQWIIScjs.fg; exports.consentManagersToBusinessEntities = _chunk4NEO6Q2Fcjs.h; exports.convertToDataSubjectAllowlist = _chunkKYOQWIIScjs.Bd; exports.convertToDataSubjectBlockList = _chunkKYOQWIIScjs.Ad; exports.createActionItemCollection = _chunkKYOQWIIScjs.pe; exports.createActionItems = _chunkKYOQWIIScjs.se; exports.createAgent = _chunkKYOQWIIScjs.Be; exports.createAgentFile = _chunkKYOQWIIScjs.ve; exports.createAgentFunction = _chunkKYOQWIIScjs.ye; exports.createApiKey = _chunkKYOQWIIScjs.Od; exports.createBusinessEntity = _chunkKYOQWIIScjs.Fe; exports.createCodePackage = _chunkKYOQWIIScjs.Oe; exports.createConsentToken = _chunkHZU3YROTcjs.a; exports.createDataCategory = _chunkKYOQWIIScjs.Ve; exports.createDataFlows = _chunkKYOQWIIScjs.Ze; exports.createPreferenceAccessTokens = _chunkKYOQWIIScjs.Mc; exports.createProcessingPurpose = _chunkKYOQWIIScjs.hf; exports.createPrompt = _chunkKYOQWIIScjs.kf; exports.createRegexForTag = j; exports.createRepository = _chunkKYOQWIIScjs.Le; exports.createSoftwareDevelopmentKit = _chunkKYOQWIIScjs.Ie; exports.createSombraGotInstance = _chunkKYOQWIIScjs.Ac; exports.createTranscendConsentGotInstance = _chunkKYOQWIIScjs.Bc; exports.createVendor = _chunkKYOQWIIScjs.nf; exports.defineTranscendPrompts = ec; exports.deleteApiKey = _chunkKYOQWIIScjs.Pd; exports.deployConsentManager = _chunkKYOQWIIScjs.Cc; exports.description = _chunk5MG2CEZVcjs.l; exports.domainToHost = _chunk4NEO6Q2Fcjs.e; exports.downloadPrivacyRequestFiles = _chunkKYOQWIIScjs.Df; exports.enrichPrivacyRequest = _chunkILBF5XZNcjs.c; exports.ensureAllDataSubjectsExist = _chunkKYOQWIIScjs.zd; exports.extractClientError = _chunkKYOQWIIScjs.Lf; exports.extractErrorMessage = _chunkKYOQWIIScjs._f; exports.fetchActiveSiloDiscoPlugin = _chunkKYOQWIIScjs.Ec; exports.fetchAllActionItems = _chunkKYOQWIIScjs.Fc; exports.fetchAllActions = _chunkKYOQWIIScjs.Gc; exports.fetchAllAgentFiles = _chunkKYOQWIIScjs.Hc; exports.fetchAllAgentFunctions = _chunkKYOQWIIScjs.Ic; exports.fetchAllAgents = _chunkKYOQWIIScjs.Jc; exports.fetchAllApiKeys = _chunkKYOQWIIScjs.ud; exports.fetchAllAssessmentTemplates = _chunkKYOQWIIScjs.Lc; exports.fetchAllAssessments = _chunkKYOQWIIScjs.Kc; exports.fetchAllAttributeValues = _chunkKYOQWIIScjs.Oc; exports.fetchAllAttributes = _chunkKYOQWIIScjs.Qc; exports.fetchAllBusinessEntities = _chunkKYOQWIIScjs.Rc; exports.fetchAllCatalogs = _chunkKYOQWIIScjs.wd; exports.fetchAllCookies = _chunkKYOQWIIScjs.Yc; exports.fetchAllDataCategories = _chunkKYOQWIIScjs.Zc; exports.fetchAllDataFlows = _chunkKYOQWIIScjs._c; exports.fetchAllDataPoints = _chunkKYOQWIIScjs._d; exports.fetchAllDataSilos = _chunkKYOQWIIScjs.Yd; exports.fetchAllDataSubjects = _chunkKYOQWIIScjs.yd; exports.fetchAllEnrichers = _chunkKYOQWIIScjs.ce; exports.fetchAllIdentifiers = _chunkKYOQWIIScjs.xg; exports.fetchAllMessages = _chunkKYOQWIIScjs.$c; exports.fetchAllPolicies = _chunkKYOQWIIScjs.cd; exports.fetchAllPreferenceTopics = _chunkKYOQWIIScjs.ed; exports.fetchAllPrivacyCenters = _chunkKYOQWIIScjs.fd; exports.fetchAllProcessingActivities = _chunkKYOQWIIScjs.gd; exports.fetchAllProcessingPurposes = _chunkKYOQWIIScjs.hd; exports.fetchAllPromptGroups = _chunkKYOQWIIScjs.Cd; exports.fetchAllPromptPartials = _chunkKYOQWIIScjs.Dd; exports.fetchAllPromptThreads = _chunkKYOQWIIScjs.Gd; exports.fetchAllPrompts = _chunkKYOQWIIScjs.Ed; exports.fetchAllPurposes = _chunkKYOQWIIScjs.id; exports.fetchAllPurposesAndPreferences = _chunkKYOQWIIScjs.jd; exports.fetchAllRequestAttributeKeys = _chunkKYOQWIIScjs.Nc; exports.fetchAllRequestEnrichers = _chunkKYOQWIIScjs.kd; exports.fetchAllRequestIdentifierMetadata = _chunkKYOQWIIScjs.ld; exports.fetchAllRequestIdentifiers = _chunkKYOQWIIScjs.nd; exports.fetchAllRequests = _chunkKYOQWIIScjs.qd; exports.fetchAllSiloDiscoveryResults = _chunkKYOQWIIScjs.ie; exports.fetchAllSubDataPoints = _chunkKYOQWIIScjs.Zd; exports.fetchAllTeams = _chunkKYOQWIIScjs.rd; exports.fetchAllTemplates = _chunkKYOQWIIScjs.ee; exports.fetchAllUsers = _chunkKYOQWIIScjs.sd; exports.fetchAllVendors = _chunkKYOQWIIScjs.td; exports.fetchAndIndexCatalogs = _chunkKYOQWIIScjs.xd; exports.fetchApiKeys = _chunkKYOQWIIScjs.vd; exports.fetchConsentManager = _chunkKYOQWIIScjs.Sc; exports.fetchConsentManagerAnalyticsData = _chunkKYOQWIIScjs.Wc; exports.fetchConsentManagerExperiences = _chunkKYOQWIIScjs.Uc; exports.fetchConsentManagerId = _chunkKYOQWIIScjs.Tc; exports.fetchConsentManagerTheme = _chunkKYOQWIIScjs.Xc; exports.fetchEnrichedDataSilos = _chunkKYOQWIIScjs.$d; exports.fetchIdentifiersAndCreateMissing = _chunkKYOQWIIScjs.yg; exports.fetchPartitions = _chunkKYOQWIIScjs.ge; exports.fetchPrivacyCenterId = _chunkKYOQWIIScjs.bd; exports.fetchPrivacyCenterUrl = _chunkKYOQWIIScjs.ad; exports.fetchPromptsWithVariables = _chunkKYOQWIIScjs.Fd; exports.fetchRequestDataSilo = _chunkKYOQWIIScjs.Jd; exports.fetchRequestDataSiloActiveCount = _chunkKYOQWIIScjs.Kd; exports.fetchRequestDataSilos = _chunkKYOQWIIScjs.Id; exports.fetchRequestDataSilosCount = _chunkKYOQWIIScjs.Hd; exports.fetchRequestFilesForRequest = _chunkKYOQWIIScjs.Ld; exports.filterNullishValuesFromObject = oc; exports.filterRows = _chunkKYOQWIIScjs.wc; exports.formatAttributeValues = _chunkKYOQWIIScjs.dd; exports.fuzzyMatchColumns = _chunkKYOQWIIScjs.pc; exports.fuzzySearch = _chunkKYOQWIIScjs.oc; exports.generateCrossAccountApiKeys = _chunkZNTCC7Y7cjs.a; exports.getErrorStatus = _chunkKYOQWIIScjs.Zf; exports.getFileMetadataForPrivacyRequests = _chunkKYOQWIIScjs.Bf; exports.getGitFilesThatChanged = cc; exports.getUniqueValuesForColumn = _chunkKYOQWIIScjs.vc; exports.initCsvFile = _chunkKYOQWIIScjs.qg; exports.inquirerAutoComplete = _chunkKYOQWIIScjs.Xf; exports.inquirerConfirmBoolean = _chunkKYOQWIIScjs.Vf; exports.inquirerConfirmText = _chunkKYOQWIIScjs.Wf; exports.limitRecords = _chunkKYOQWIIScjs.cg; exports.listDirectories = _chunkZNTCC7Y7cjs.d; exports.listFiles = _chunkZNTCC7Y7cjs.c; exports.loginUser = _chunkKYOQWIIScjs.Md; exports.makeGraphQLRequest = _chunkKYOQWIIScjs.wg; exports.mapColumnsToAttributes = _chunkKYOQWIIScjs.Kf; exports.mapColumnsToIdentifiers = _chunkKYOQWIIScjs.If; exports.mapCsvColumnsToApi = _chunkKYOQWIIScjs.sf; exports.mapCsvRowsToRequestInputs = _chunkKYOQWIIScjs.xf; exports.mapEnumValues = _chunkKYOQWIIScjs.qc; exports.mapRequestEnumValues = _chunkKYOQWIIScjs.tf; exports.markCronIdentifierCompleted = _chunkH3EBIKX6cjs.d; exports.markRequestDataSiloIdsCompleted = _chunkH3EBIKX6cjs.f; exports.markSilentPrivacyRequests = _chunkKYOQWIIScjs.rf; exports.mergeTranscendInputs = _chunkIBTP5OXEcjs.a; exports.name = _chunk5MG2CEZVcjs.n; exports.normalizeIdentifierValue = _chunkKYOQWIIScjs.wf; exports.notifyPrivacyRequestsAdditionalTime = _chunkKYOQWIIScjs.Hf; exports.parquetToCsvOneFile = _chunkKYOQWIIScjs.gg; exports.parseAssessmentDisplayLogic = _chunkKYOQWIIScjs.Vd; exports.parseAssessmentRiskLogic = _chunkKYOQWIIScjs.Xd; exports.parseAttributesFromString = _chunkKYOQWIIScjs.tc; exports.parseFilePath = _chunkKYOQWIIScjs.ug; exports.parseVariablesFromString = _chunkKYOQWIIScjs.Yf; exports.pullAllDatapoints = _chunkGCTE43TScjs.a; exports.pullChunkedCustomSiloOutstandingIdentifiers = _chunkH3EBIKX6cjs.g; exports.pullConsentManagerMetrics = _chunk4NEO6Q2Fcjs.d; exports.pullCronPageOfIdentifiers = _chunkH3EBIKX6cjs.b; exports.pullManualEnrichmentIdentifiersToCsv = _chunkILBF5XZNcjs.a; exports.pullPrivacyRequests = _chunkKYOQWIIScjs.Sf; exports.pullTranscendConfiguration = _chunkKYOQWIIScjs.ke; exports.pullUnstructuredSubDataPointRecommendations = _chunkGCTE43TScjs.b; exports.pushCronIdentifiersFromCsv = _chunkH3EBIKX6cjs.e; exports.pushManualEnrichmentIdentifiersFromCsv = _chunkILBF5XZNcjs.d; exports.readCsv = _chunkKYOQWIIScjs.uc; exports.readSafe = _chunkKYOQWIIScjs.eg; exports.readTranscendYaml = _chunkJH5HRI6Dcjs.d; exports.removeLinks = nc; exports.removeUnverifiedRequestIdentifiers = _chunkKYOQWIIScjs.Uf; exports.replaceVariablesInYaml = _chunkJH5HRI6Dcjs.c; exports.reportPromptRun = _chunkKYOQWIIScjs.le; exports.restartPrivacyRequest = _chunkKYOQWIIScjs.Nf; exports.retryRequestDataSilos = _chunkKYOQWIIScjs.Rf; exports.retryRequestEnricher = _chunkKYOQWIIScjs.me; exports.retrySamePromise = _chunkKYOQWIIScjs.bg; exports.setResourceAttributes = _chunkKYOQWIIScjs.ne; exports.skipPreflightJobs = _chunkKYOQWIIScjs.Pf; exports.skipRequestDataSilos = _chunkKYOQWIIScjs.Tf; exports.sleepPromise = _chunkKYOQWIIScjs.$f; exports.splitCsvToList = _chunkKYOQWIIScjs.rc; exports.splitInHalf = _chunkKYOQWIIScjs.ag; exports.startOfHour = _chunkKYOQWIIScjs.mg; exports.startOfUtcDay = _chunkKYOQWIIScjs.lg; exports.streamPrivacyRequestFiles = _chunkKYOQWIIScjs.Cf; exports.submitPrivacyRequest = _chunkKYOQWIIScjs.Ff; exports.syncAction = _chunkKYOQWIIScjs.oe; exports.syncActionItemCollections = _chunkKYOQWIIScjs.re; exports.syncActionItems = _chunkKYOQWIIScjs.ue; exports.syncAgentFiles = _chunkKYOQWIIScjs.xe; exports.syncAgentFunctions = _chunkKYOQWIIScjs.Ae; exports.syncAgents = _chunkKYOQWIIScjs.De; exports.syncAttribute = _chunkKYOQWIIScjs.Ee; exports.syncBusinessEntities = _chunkKYOQWIIScjs.He; exports.syncCodePackages = _chunkKYOQWIIScjs.Qe; exports.syncConfigurationToTranscend = _chunkKYOQWIIScjs.zg; exports.syncConsentManager = _chunkKYOQWIIScjs.Se; exports.syncConsentManagerExperiences = _chunkKYOQWIIScjs.Re; exports.syncCookies = _chunkKYOQWIIScjs.Ue; exports.syncDataCategories = _chunkKYOQWIIScjs.Xe; exports.syncDataFlows = _chunkKYOQWIIScjs._e; exports.syncDataSiloDependencies = _chunkKYOQWIIScjs.be; exports.syncDataSilos = _chunkKYOQWIIScjs.ae; exports.syncDataSubject = _chunkKYOQWIIScjs.$e; exports.syncEnricher = _chunkKYOQWIIScjs.de; exports.syncIdentifier = _chunkKYOQWIIScjs.af; exports.syncIntlMessages = _chunkKYOQWIIScjs.cf; exports.syncPartitions = _chunkKYOQWIIScjs.he; exports.syncPolicies = _chunkKYOQWIIScjs.ef; exports.syncPrivacyCenter = _chunkKYOQWIIScjs.ff; exports.syncProcessingActivities = _chunkKYOQWIIScjs.gf; exports.syncProcessingPurposes = _chunkKYOQWIIScjs.jf; exports.syncPrompts = _chunkKYOQWIIScjs.mf; exports.syncRepositories = _chunkKYOQWIIScjs.Ne; exports.syncSoftwareDevelopmentKits = _chunkKYOQWIIScjs.Ke; exports.syncTemplate = _chunkKYOQWIIScjs.fe; exports.syncVendors = _chunkKYOQWIIScjs.pf; exports.updateActionItem = _chunkKYOQWIIScjs.te; exports.updateActionItemCollection = _chunkKYOQWIIScjs.qe; exports.updateAgentFiles = _chunkKYOQWIIScjs.we; exports.updateAgentFunctions = _chunkKYOQWIIScjs.ze; exports.updateAgents = _chunkKYOQWIIScjs.Ce; exports.updateBusinessEntities = _chunkKYOQWIIScjs.Ge; exports.updateCodePackages = _chunkKYOQWIIScjs.Pe; exports.updateConsentManagerToLatest = _chunkKYOQWIIScjs.Dc; exports.updateConsentManagerVersionToLatest = _chunk4NEO6Q2Fcjs.a; exports.updateDataCategories = _chunkKYOQWIIScjs.We; exports.updateDataFlows = _chunkKYOQWIIScjs.Ye; exports.updateIntlMessages = _chunkKYOQWIIScjs.bf; exports.updateOrCreateCookies = _chunkKYOQWIIScjs.Te; exports.updatePolicies = _chunkKYOQWIIScjs.df; exports.updateProcessingPurposes = _chunkKYOQWIIScjs.if; exports.updatePrompts = _chunkKYOQWIIScjs.lf; exports.updateRepositories = _chunkKYOQWIIScjs.Me; exports.updateSoftwareDevelopmentKits = _chunkKYOQWIIScjs.Je; exports.updateVendors = _chunkKYOQWIIScjs.of; exports.uploadConsents = _chunkHZU3YROTcjs.d; exports.uploadCookiesFromCsv = _chunk4NEO6Q2Fcjs.c; exports.uploadDataFlowsFromCsv = _chunk4NEO6Q2Fcjs.b; exports.uploadPrivacyRequestsFromCsv = _chunkKYOQWIIScjs.Mf; exports.uploadSiloDiscoveryResults = _chunkKYOQWIIScjs.qf; exports.validateTranscendAuth = _chunkZNTCC7Y7cjs.b; exports.version = _chunk5MG2CEZVcjs.m; exports.writeCsv = _chunkKYOQWIIScjs.tg; exports.writeCsvSync = _chunkKYOQWIIScjs.pg; exports.writeLargeCsv = _chunkKYOQWIIScjs.vg; exports.writeTranscendYaml = _chunkJH5HRI6Dcjs.e;
|
|
5
5
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -156227,7 +156227,7 @@ declare function removeUnverifiedRequestIdentifiers({ requestActions, identifier
|
|
|
156227
156227
|
}): Promise<number>;
|
|
156228
156228
|
|
|
156229
156229
|
var description = "A command line interface for programmatic operations across Transcend.";
|
|
156230
|
-
var version = "8.32.
|
|
156230
|
+
var version = "8.32.7";
|
|
156231
156231
|
|
|
156232
156232
|
/**
|
|
156233
156233
|
* The name of the main binary for the CLI
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Transcend Inc.",
|
|
3
3
|
"name": "@transcend-io/cli",
|
|
4
4
|
"description": "A command line interface for programmatic operations across Transcend.",
|
|
5
|
-
"version": "8.32.
|
|
5
|
+
"version": "8.32.7",
|
|
6
6
|
"homepage": "https://github.com/transcend-io/cli",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
package/dist/impl-DNVWNGPJ.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO7SJYOEKcjs = require('./chunk-O7SJYOEK.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');require('./chunk-VWN5MN3U.cjs');require('./chunk-TSJTXXLZ.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-GJ6V5BHG.cjs');require('./chunk-7PB6LVSE.cjs');async function u({auth:r,transcendUrl:i,file:e,enricherId:o,concurrency:s,markSilent:a,sombraAuth:m}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkO7SJYOEKcjs.d.call(void 0, {file:e,transcendUrl:i,enricherId:o,concurrency:s,markSilent:a,auth:r,sombraAuth:m})}exports.pushIdentifiers = u;
|
|
2
|
-
//# sourceMappingURL=impl-DNVWNGPJ.cjs.map
|
package/dist/impl-WY3A5X7O.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMLH6KKUKcjs = require('./chunk-MLH6KKUK.cjs');require('./chunk-NZEATKWL.cjs');require('./chunk-ABKDAPPR.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');require('./chunk-VWN5MN3U.cjs');require('./chunk-TSJTXXLZ.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-GJ6V5BHG.cjs');require('./chunk-7PB6LVSE.cjs');async function m({auth:r,trackerStatus:s,file:a,transcendUrl:e}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkMLH6KKUKcjs.c.call(void 0, {auth:r,trackerStatus:s,file:a,transcendUrl:e})}exports.uploadCookiesFromCsv = m;
|
|
2
|
-
//# sourceMappingURL=impl-WY3A5X7O.cjs.map
|