@transcend-io/cli 8.0.4 → 8.0.6
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/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-XJAEXXYU.cjs → chunk-5Y7FIOUT.cjs} +2 -2
- package/dist/{chunk-XJAEXXYU.cjs.map → chunk-5Y7FIOUT.cjs.map} +1 -1
- package/dist/{chunk-ZBKJMC7C.cjs → chunk-7O5DWH3M.cjs} +18 -18
- package/dist/{chunk-ZBKJMC7C.cjs.map → chunk-7O5DWH3M.cjs.map} +1 -1
- package/dist/{chunk-HJBQCKCR.cjs → chunk-DCBE53LG.cjs} +3 -3
- package/dist/{chunk-HJBQCKCR.cjs.map → chunk-DCBE53LG.cjs.map} +1 -1
- package/dist/{chunk-6VG44TPZ.cjs → chunk-DTGC4M5U.cjs} +2 -2
- package/dist/{chunk-6VG44TPZ.cjs.map → chunk-DTGC4M5U.cjs.map} +1 -1
- package/dist/{chunk-2P2C7ZL3.cjs → chunk-IU4E6MQW.cjs} +2 -2
- package/dist/{chunk-2P2C7ZL3.cjs.map → chunk-IU4E6MQW.cjs.map} +1 -1
- package/dist/{chunk-6Z44RBJE.cjs → chunk-JZEDU4GZ.cjs} +2 -2
- package/dist/{chunk-6Z44RBJE.cjs.map → chunk-JZEDU4GZ.cjs.map} +1 -1
- package/dist/{chunk-LQHB5EIW.cjs → chunk-KU3UCRAF.cjs} +2 -2
- package/dist/{chunk-LQHB5EIW.cjs.map → chunk-KU3UCRAF.cjs.map} +1 -1
- package/dist/{chunk-4ZN6PNJE.cjs → chunk-LPUZGMB6.cjs} +4 -4
- package/dist/{chunk-4ZN6PNJE.cjs.map → chunk-LPUZGMB6.cjs.map} +1 -1
- package/dist/{chunk-QG4ECDFE.cjs → chunk-MFIMY5RY.cjs} +2 -2
- package/dist/{chunk-QG4ECDFE.cjs.map → chunk-MFIMY5RY.cjs.map} +1 -1
- package/dist/{chunk-GVWWTQ2S.cjs → chunk-NAGRUVXK.cjs} +2 -2
- package/dist/{chunk-GVWWTQ2S.cjs.map → chunk-NAGRUVXK.cjs.map} +1 -1
- package/dist/{chunk-YREFLYHM.cjs → chunk-OKLX7XKW.cjs} +2 -2
- package/dist/{chunk-YREFLYHM.cjs.map → chunk-OKLX7XKW.cjs.map} +1 -1
- package/dist/{chunk-OBNZ7JBG.cjs → chunk-YMH24XQT.cjs} +19 -19
- package/dist/{chunk-OBNZ7JBG.cjs.map → chunk-YMH24XQT.cjs.map} +1 -1
- package/dist/{impl-3WG6YKYX.cjs → impl-22FRQBKA.cjs} +2 -2
- package/dist/{impl-3WG6YKYX.cjs.map → impl-22FRQBKA.cjs.map} +1 -1
- package/dist/{impl-6GEUCO6I.cjs → impl-2WH2UTIZ.cjs} +2 -2
- package/dist/{impl-6GEUCO6I.cjs.map → impl-2WH2UTIZ.cjs.map} +1 -1
- package/dist/{impl-6HXNGVRH.cjs → impl-2XFKDVXC.cjs} +2 -2
- package/dist/{impl-6HXNGVRH.cjs.map → impl-2XFKDVXC.cjs.map} +1 -1
- package/dist/{impl-YVUKRVNV.cjs → impl-3JDGUUXS.cjs} +2 -2
- package/dist/{impl-YVUKRVNV.cjs.map → impl-3JDGUUXS.cjs.map} +1 -1
- package/dist/{impl-RO3RT7ZE.cjs → impl-4WFQNFXM.cjs} +2 -2
- package/dist/{impl-RO3RT7ZE.cjs.map → impl-4WFQNFXM.cjs.map} +1 -1
- package/dist/{impl-BYVUQ5PD.cjs → impl-5IVCXXAL.cjs} +2 -2
- package/dist/{impl-BYVUQ5PD.cjs.map → impl-5IVCXXAL.cjs.map} +1 -1
- package/dist/{impl-CQPYZDEP.cjs → impl-5VNZMRQP.cjs} +2 -2
- package/dist/{impl-CQPYZDEP.cjs.map → impl-5VNZMRQP.cjs.map} +1 -1
- package/dist/{impl-I7QN6JHE.cjs → impl-7JEVVESR.cjs} +2 -2
- package/dist/{impl-I7QN6JHE.cjs.map → impl-7JEVVESR.cjs.map} +1 -1
- package/dist/{impl-426AX523.cjs → impl-7U3M4RGF.cjs} +2 -2
- package/dist/{impl-426AX523.cjs.map → impl-7U3M4RGF.cjs.map} +1 -1
- package/dist/{impl-AIUN3M37.cjs → impl-B3OMYCGQ.cjs} +2 -2
- package/dist/{impl-AIUN3M37.cjs.map → impl-B3OMYCGQ.cjs.map} +1 -1
- package/dist/{impl-EHBBW7RO.cjs → impl-DGMMPU6J.cjs} +2 -2
- package/dist/{impl-EHBBW7RO.cjs.map → impl-DGMMPU6J.cjs.map} +1 -1
- package/dist/{impl-WVOC3NBM.cjs → impl-DUKSVNOM.cjs} +2 -2
- package/dist/{impl-WVOC3NBM.cjs.map → impl-DUKSVNOM.cjs.map} +1 -1
- package/dist/{impl-3IUL3P3V.cjs → impl-EJMVBV6T.cjs} +2 -2
- package/dist/{impl-3IUL3P3V.cjs.map → impl-EJMVBV6T.cjs.map} +1 -1
- package/dist/{impl-E6NFYH4V.cjs → impl-GNNZ6ISS.cjs} +2 -2
- package/dist/{impl-E6NFYH4V.cjs.map → impl-GNNZ6ISS.cjs.map} +1 -1
- package/dist/{impl-EPE2BP2D.cjs → impl-I6ETF7X7.cjs} +2 -2
- package/dist/{impl-EPE2BP2D.cjs.map → impl-I6ETF7X7.cjs.map} +1 -1
- package/dist/impl-IKL2VVT5.cjs +2 -0
- package/dist/{impl-VO6SR3UF.cjs.map → impl-IKL2VVT5.cjs.map} +1 -1
- package/dist/{impl-O5FXKTSS.cjs → impl-IN2PQA3H.cjs} +2 -2
- package/dist/{impl-O5FXKTSS.cjs.map → impl-IN2PQA3H.cjs.map} +1 -1
- package/dist/{impl-QHLD4E4E.cjs → impl-JA34WWJ5.cjs} +2 -2
- package/dist/{impl-QHLD4E4E.cjs.map → impl-JA34WWJ5.cjs.map} +1 -1
- package/dist/{impl-35XLHL4O.cjs → impl-LAYRDHOS.cjs} +2 -2
- package/dist/{impl-35XLHL4O.cjs.map → impl-LAYRDHOS.cjs.map} +1 -1
- package/dist/{impl-5IBWZCND.cjs → impl-LO7NADSE.cjs} +2 -2
- package/dist/{impl-5IBWZCND.cjs.map → impl-LO7NADSE.cjs.map} +1 -1
- package/dist/{impl-UIQVAQFF.cjs → impl-LWPYKGCZ.cjs} +2 -2
- package/dist/{impl-UIQVAQFF.cjs.map → impl-LWPYKGCZ.cjs.map} +1 -1
- package/dist/impl-OMOQK2HQ.cjs +12 -0
- package/dist/impl-OMOQK2HQ.cjs.map +1 -0
- package/dist/{impl-M6FW6NDT.cjs → impl-OZ6XHZRW.cjs} +2 -2
- package/dist/{impl-M6FW6NDT.cjs.map → impl-OZ6XHZRW.cjs.map} +1 -1
- package/dist/{impl-IHFTH6YX.cjs → impl-S3QSYERT.cjs} +2 -2
- package/dist/{impl-IHFTH6YX.cjs.map → impl-S3QSYERT.cjs.map} +1 -1
- package/dist/{impl-JZLYOI5F.cjs → impl-SVLQQPHG.cjs} +2 -2
- package/dist/{impl-JZLYOI5F.cjs.map → impl-SVLQQPHG.cjs.map} +1 -1
- package/dist/{impl-77KAZ4XH.cjs → impl-SZM2IXSY.cjs} +3 -3
- package/dist/{impl-77KAZ4XH.cjs.map → impl-SZM2IXSY.cjs.map} +1 -1
- package/dist/{impl-OKNOTBT6.cjs → impl-TEADN2ZL.cjs} +5 -5
- package/dist/{impl-OKNOTBT6.cjs.map → impl-TEADN2ZL.cjs.map} +1 -1
- package/dist/{impl-5B6CLRP6.cjs → impl-TVRDO556.cjs} +2 -2
- package/dist/{impl-5B6CLRP6.cjs.map → impl-TVRDO556.cjs.map} +1 -1
- package/dist/{impl-VMZLIXUM.cjs → impl-VRTPR7ZC.cjs} +2 -2
- package/dist/{impl-VMZLIXUM.cjs.map → impl-VRTPR7ZC.cjs.map} +1 -1
- package/dist/{impl-HOCQ2FU3.cjs → impl-VZDR2CDX.cjs} +2 -2
- package/dist/{impl-HOCQ2FU3.cjs.map → impl-VZDR2CDX.cjs.map} +1 -1
- package/dist/{impl-PB3CEDXP.cjs → impl-WCRE3QMZ.cjs} +2 -2
- package/dist/{impl-PB3CEDXP.cjs.map → impl-WCRE3QMZ.cjs.map} +1 -1
- package/dist/{impl-E7RIXWG5.cjs → impl-X7QVQTTU.cjs} +2 -2
- package/dist/{impl-E7RIXWG5.cjs.map → impl-X7QVQTTU.cjs.map} +1 -1
- package/dist/{impl-V4AAI72P.cjs → impl-XXGHYIS2.cjs} +2 -2
- package/dist/{impl-V4AAI72P.cjs.map → impl-XXGHYIS2.cjs.map} +1 -1
- package/dist/{impl-T4JNIPRU.cjs → impl-YYLZH24L.cjs} +4 -4
- package/dist/{impl-T4JNIPRU.cjs.map → impl-YYLZH24L.cjs.map} +1 -1
- package/dist/{impl-YJ7MLTPD.cjs → impl-Z3TEIP7I.cjs} +2 -2
- package/dist/{impl-YJ7MLTPD.cjs.map → impl-Z3TEIP7I.cjs.map} +1 -1
- package/dist/{impl-SDF36RUQ.cjs → impl-ZXCX5CQQ.cjs} +2 -2
- package/dist/{impl-SDF36RUQ.cjs.map → impl-ZXCX5CQQ.cjs.map} +1 -1
- package/dist/{impl-B5MBY4PI.cjs → impl-ZY3HLGMV.cjs} +2 -2
- package/dist/{impl-B5MBY4PI.cjs.map → impl-ZY3HLGMV.cjs.map} +1 -1
- package/dist/{impl-ZGRHLCA3.cjs → impl-ZZL5FMCH.cjs} +3 -3
- package/dist/{impl-ZGRHLCA3.cjs.map → impl-ZZL5FMCH.cjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -3
- package/package.json +1 -1
- package/dist/impl-G7JOSWM6.cjs +0 -12
- package/dist/impl-G7JOSWM6.cjs.map +0 -1
- package/dist/impl-VO6SR3UF.cjs +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict"; 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 _chunkT462ONFXcjs = require('../chunk-T462ONFX.cjs');var
|
|
2
|
+
"use strict"; 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 _chunkT462ONFXcjs = require('../chunk-T462ONFX.cjs');var _chunkYMH24XQTcjs = require('../chunk-YMH24XQT.cjs');require('../chunk-5Y7FIOUT.cjs');require('../chunk-MFIMY5RY.cjs');require('../chunk-Q7I37FJV.cjs');var _core = require('@stricli/core');async function e(){let o=process.argv.slice(3);_optionalChain([process, 'access', _ => _.env, 'access', _2 => _2.COMP_LINE, 'optionalAccess', _3 => _3.endsWith, 'call', _4 => _4(" ")])&&o.push(""),await _core.proposeCompletions.call(void 0, _chunkYMH24XQTcjs.a,o,_chunkT462ONFXcjs.a.call(void 0, process));try{for(let{completion:r}of await _core.proposeCompletions.call(void 0, _chunkYMH24XQTcjs.a,o,_chunkT462ONFXcjs.a.call(void 0, process)))process.stdout.write(`${r}
|
|
3
3
|
`)}catch (e2){}}e();
|
|
4
4
|
//# sourceMappingURL=bash-complete.cjs.map
|
package/dist/bin/cli.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var _chunkT462ONFXcjs = require('../chunk-T462ONFX.cjs');var
|
|
2
|
+
"use strict";var _chunkT462ONFXcjs = require('../chunk-T462ONFX.cjs');var _chunkYMH24XQTcjs = require('../chunk-YMH24XQT.cjs');require('../chunk-5Y7FIOUT.cjs');require('../chunk-MFIMY5RY.cjs');require('../chunk-Q7I37FJV.cjs');var _core = require('@stricli/core');async function n(){await _core.run.call(void 0, _chunkYMH24XQTcjs.a,process.argv.slice(2),_chunkT462ONFXcjs.a.call(void 0, process))}n();
|
|
3
3
|
//# sourceMappingURL=cli.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict"; 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
|
+
"use strict"; 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 _chunkYMH24XQTcjs = require('../chunk-YMH24XQT.cjs');require('../chunk-5Y7FIOUT.cjs');var _chunkZUNVPK23cjs = require('../chunk-ZUNVPK23.cjs');require('../chunk-MFIMY5RY.cjs');require('../chunk-Q7I37FJV.cjs');var _core = require('@stricli/core');var o={"tr-build-xdi-sync-endpoint":["consent","build-xdi-sync-endpoint"],"tr-consent-manager-service-json-to-yml":["inventory","consent-manager-service-json-to-yml"],"tr-consent-managers-to-business-entities":["inventory","consent-managers-to-business-entities"],"tr-cron-mark-identifiers-completed":["request","cron","mark-identifiers-completed"],"tr-cron-pull-identifiers":["request","cron","pull-identifiers"],"tr-derive-data-silos-from-data-flows":["inventory","derive-data-silos-from-data-flows"],"tr-derive-data-silos-from-data-flows-cross-instance":["inventory","derive-data-silos-from-data-flows-cross-instance"],"tr-discover-silos":["inventory","discover-silos"],"tr-generate-api-keys":["admin","generate-api-keys"],"tr-manual-enrichment-pull-identifiers":["request","preflight","pull-identifiers"],"tr-manual-enrichment-push-identifiers":["request","preflight","push-identifiers"],"tr-mark-request-data-silos-completed":["request","system","mark-request-data-silos-completed"],"tr-pull":["inventory","pull"],"tr-pull-consent-metrics":["consent","pull-consent-metrics"],"tr-pull-consent-preferences":["consent","pull-consent-preferences"],"tr-pull-datapoints":["inventory","pull-datapoints"],"tr-pull-pull-unstructured-discovery-files":["inventory","pull-unstructured-discovery-files"],"tr-push":["inventory","push"],"tr-request-approve":["request","approve"],"tr-request-cancel":["request","cancel"],"tr-request-download-files":["request","download-files"],"tr-request-enricher-restart":["request","enricher-restart"],"tr-request-export":["request","export"],"tr-request-mark-silent":["request","mark-silent"],"tr-request-notify-additional-time":["request","notify-additional-time"],"tr-request-reject-unverified-identifiers":["request","reject-unverified-identifiers"],"tr-request-restart":["request","restart"],"tr-request-upload":["request","upload"],"tr-retry-request-data-silos":["request","system","retry-request-data-silos"],"tr-scan-packages":["inventory","scan-packages"],"tr-skip-preflight-jobs":["request","skip-preflight-jobs"],"tr-skip-request-data-silos":["request","system","skip-request-data-silos"],"tr-sync-ot":["migration","sync-ot"],"tr-update-consent-manager":["consent","update-consent-manager"],"tr-upload-consent-preferences":["consent","upload-consent-preferences"],"tr-upload-cookies-from-csv":["consent","upload-cookies-from-csv"],"tr-upload-data-flows-from-csv":["consent","upload-data-flows-from-csv"],"tr-upload-preferences":["consent","upload-preferences"]};function p(t){return _optionalChain([_core.generateHelpTextForAllCommands.call(void 0, _chunkYMH24XQTcjs.a), 'access', _ => _.find, 'call', _2 => _2(s=>s[0]===`${_chunkYMH24XQTcjs.a.config.name} ${t.join(" ")}`), 'optionalAccess', _3 => _3[1]])}function i(t){_chunkZUNVPK23cjs.a.log("[DEPRECATION NOTICE]");let e=o[t];if(!e){let a=Object.entries(o).map(([l,d])=>`\`${l}\` -> \`${_chunkYMH24XQTcjs.a.config.name} ${d.join(" ")}\``).join(`
|
|
3
3
|
`);_chunkZUNVPK23cjs.a.log(`This command is deprecated as of v7.0.0. Here is a list of new commands, mapped to their legacy command names:
|
|
4
4
|
${a}`);return}_chunkZUNVPK23cjs.a.log(`\`${t}\` is deprecated as of v7.0.0.
|
|
5
|
-
Use \`${
|
|
5
|
+
Use \`${_chunkYMH24XQTcjs.a.config.name} ${e.join(" ")}\` instead.
|
|
6
6
|
`);let s=p(e);if(!s)throw new Error(`Failed to get help text for command: \`${e.join(" ")}\``);_chunkZUNVPK23cjs.a.log(s)}function m(){let e=_optionalChain([process, 'access', _4 => _4.argv, 'access', _5 => _5.at, 'call', _6 => _6(-1), 'optionalAccess', _7 => _7.split, 'call', _8 => _8("/"), 'access', _9 => _9.pop, 'call', _10 => _10(), 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()]);if(e)i(e);else throw new Error("Deprecated command");process.exit(1)}m();
|
|
7
7
|
//# sourceMappingURL=deprecated-command.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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; } }var
|
|
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; } }var _chunkMFIMY5RYcjs = require('./chunk-MFIMY5RY.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _core = require('@stricli/core');var _privacytypes = require('@transcend-io/privacy-types');function h(e){if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e))throw new Error(`Invalid UUID format: ${e}`);return e}function a(e){try{return new URL(e).toString().replace(/\/$/,"")}catch (e2){throw new Error(`Invalid URL format: ${e}`)}}function b(e){return e.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function T(e){let r=new Date(e);if(Number.isNaN(r.getTime()))throw new TypeError(`Invalid date: ${e}. Try using the ISO 8601 format (YYYY-MM-DDTHH:MM:SS.SSSZ)`);return r}var l=({scopes:e,requiresSiloScope:r=!1})=>{let t={kind:"parsed",parse:String,brief:"The Transcend API key."};return r&&(t.brief+=" This key must be associated with the data silo(s) being operated on."),e==="Varies"?{...t,brief:`${t.brief} The scopes required will vary depending on the operation performed. If in doubt, the ${_privacytypes.TRANSCEND_SCOPES[_privacytypes.ScopeName.FullAdmin].title} scope will always work.`}:e.length===0?{...t,brief:`${t.brief} No scopes are required for this command.`}:{...t,brief:`${t.brief} Requires scopes: ${e.map(p=>`"${_privacytypes.TRANSCEND_SCOPES[p].title}"`).join(", ")}`}},d= exports.e =(e=_chunkMFIMY5RYcjs.r)=>({kind:"parsed",parse:a,brief:"URL of the Transcend backend. Use https://api.us.transcend.io for US hosting",default:e}),A= exports.f =(e=_chunkMFIMY5RYcjs.s)=>({kind:"parsed",parse:a,brief:"URL of the Transcend consent backend. Use https://consent.us.transcend.io for US hosting",default:e}),U= exports.g =()=>({kind:"parsed",parse:String,brief:"The Sombra internal key, use for additional authentication when self-hosting Sombra",optional:!0});var g=["dataSilos","enrichers","templates","apiKeys"],N= exports.i =Object.values(_privacytypes.ConsentTrackerStatus),L= exports.j =_core.buildCommand.call(void 0, {loader:async()=>{let{pull:e}=await Promise.resolve().then(() => _interopRequireWildcard(require("./impl-SZM2IXSY.cjs")));return e},parameters:{flags:{auth:l({scopes:"Varies"}),resources:{kind:"enum",values:["all",...Object.values(_chunkQ7I37FJVcjs.d)],brief:`The different resource types to pull in. Defaults to ${g.join(",")}.`,variadic:",",optional:!0},file:{kind:"parsed",parse:String,brief:"Path to the YAML file to pull into",default:"./transcend.yml"},transcendUrl:d(),dataSiloIds:{kind:"parsed",parse:String,variadic:",",brief:"The UUIDs of the data silos that should be pulled into the YAML file",optional:!0},integrationNames:{kind:"parsed",parse:String,variadic:",",brief:"The types of integrations to pull down",optional:!0},trackerStatuses:{kind:"enum",values:Object.values(_privacytypes.ConsentTrackerStatus),variadic:",",brief:"The statuses of consent manager trackers to pull down. Defaults to all statuses.",optional:!0},pageSize:{kind:"parsed",parse:_core.numberParser,brief:"The page size to use when paginating over the API",default:"50"},skipDatapoints:{kind:"boolean",brief:"When true, skip pulling in datapoints alongside data silo resource",default:!1},skipSubDatapoints:{kind:"boolean",brief:"When true, skip pulling in subDatapoints alongside data silo resource",default:!1},includeGuessedCategories:{kind:"boolean",brief:"When true, included guessed data categories that came from the content classifier",default:!1},debug:{kind:"boolean",brief:"Set to true to include debug logs while pulling the configuration",default:!1}}},docs:{brief:"Pull metadata from Transcend into transcend.yml",fullDescription:`Generates a transcend.yml by pulling the configuration from your Transcend instance.
|
|
2
2
|
|
|
3
3
|
The API key needs various scopes depending on the resources being pulled (see the CLI's README for more details).
|
|
4
4
|
|
|
@@ -6,4 +6,4 @@ This command can be helpful if you are looking to:
|
|
|
6
6
|
|
|
7
7
|
- Copy your data into another instance
|
|
8
8
|
- Generate a transcend.yml file as a starting point to maintain parts of your data inventory in code.`}});exports.a = h; exports.b = b; exports.c = T; exports.d = l; exports.e = d; exports.f = A; exports.g = U; exports.h = g; exports.i = N; exports.j = L;
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-5Y7FIOUT.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-5Y7FIOUT.cjs","../src/commands/inventory/pull/command.ts","../src/lib/cli/parsers.ts"],"names":["uuidParser","input"],"mappings":"AAAA,mZAA+C,wDAAyC,qCCA7C,2DACN,SCMrBA,CAAAA,CAAWC,CAAAA,CAAuB,CAGhD,EAAA,CAAI,CADF,4EAAA,CACa,IAAA,CAAKA,CAAK,CAAA,CACvB,MAAM,IAAI,KAAA,CAAM,CAAA,qBAAA,EAAwBA,CAAK,CAAA,CAAA;AD0F5B;AAAA;AAAA;AAAA;AAAA;AAAA;AASpB,qGAAA","file":"/home/runner/work/cli/cli/dist/chunk-5Y7FIOUT.cjs","sourcesContent":[null,"import { buildCommand, numberParser } from '@stricli/core';\nimport { ConsentTrackerStatus } from '@transcend-io/privacy-types';\nimport {\n createAuthParameter,\n createTranscendUrlParameter,\n} from '../../../lib/cli/common-parameters';\nimport { TranscendPullResource } from '../../../enums';\n\nexport const DEFAULT_TRANSCEND_PULL_RESOURCES = [\n TranscendPullResource.DataSilos,\n TranscendPullResource.Enrichers,\n TranscendPullResource.Templates,\n TranscendPullResource.ApiKeys,\n];\n\nexport const DEFAULT_CONSENT_TRACKER_STATUSES =\n Object.values(ConsentTrackerStatus);\n\nexport const pullCommand = buildCommand({\n loader: async () => {\n const { pull } = await import('./impl');\n return pull;\n },\n parameters: {\n flags: {\n auth: createAuthParameter({\n scopes: 'Varies',\n }),\n resources: {\n kind: 'enum',\n values: ['all', ...Object.values(TranscendPullResource)],\n brief: `The different resource types to pull in. Defaults to ${DEFAULT_TRANSCEND_PULL_RESOURCES.join(\n ',',\n )}.`,\n variadic: ',',\n optional: true,\n },\n file: {\n kind: 'parsed',\n parse: String,\n brief: 'Path to the YAML file to pull into',\n default: './transcend.yml',\n },\n transcendUrl: createTranscendUrlParameter(),\n dataSiloIds: {\n kind: 'parsed',\n parse: String,\n variadic: ',',\n brief:\n 'The UUIDs of the data silos that should be pulled into the YAML file',\n optional: true,\n },\n integrationNames: {\n kind: 'parsed',\n parse: String,\n variadic: ',',\n brief: 'The types of integrations to pull down',\n optional: true,\n },\n trackerStatuses: {\n kind: 'enum',\n values: Object.values(ConsentTrackerStatus),\n variadic: ',',\n brief:\n 'The statuses of consent manager trackers to pull down. Defaults to all statuses.',\n optional: true,\n },\n pageSize: {\n kind: 'parsed',\n parse: numberParser,\n brief: 'The page size to use when paginating over the API',\n default: '50',\n },\n skipDatapoints: {\n kind: 'boolean',\n brief:\n 'When true, skip pulling in datapoints alongside data silo resource',\n default: false,\n },\n skipSubDatapoints: {\n kind: 'boolean',\n brief:\n 'When true, skip pulling in subDatapoints alongside data silo resource',\n default: false,\n },\n includeGuessedCategories: {\n kind: 'boolean',\n brief:\n 'When true, included guessed data categories that came from the content classifier',\n default: false,\n },\n debug: {\n kind: 'boolean',\n brief:\n 'Set to true to include debug logs while pulling the configuration',\n default: false,\n },\n },\n },\n docs: {\n brief: 'Pull metadata from Transcend into transcend.yml',\n fullDescription: `Generates a transcend.yml by pulling the configuration from your Transcend instance.\n\nThe API key needs various scopes depending on the resources being pulled (see the CLI's README for more details).\n\nThis command can be helpful if you are looking to:\n\n- Copy your data into another instance\n- Generate a transcend.yml file as a starting point to maintain parts of your data inventory in code.`,\n },\n});\n","/**\n * Validates and returns a UUID string.\n *\n * @param input - The input string to validate as UUID\n * @returns The validated UUID string\n * @throws Error if input is not a valid UUID\n */\nexport function uuidParser(input: string): string {\n const uuidRegex =\n /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n if (!uuidRegex.test(input)) {\n throw new Error(`Invalid UUID format: ${input}`);\n }\n return input;\n}\n\n/**\n * Validates and returns a URL string.\n *\n * @param input - The input string to validate as URL\n * @returns The validated URL string\n * @throws Error if input is not a valid URL\n */\nexport function urlParser(input: string): string {\n try {\n const url = new URL(input);\n return url.toString().replace(/\\/$/, '');\n } catch {\n throw new Error(`Invalid URL format: ${input}`);\n }\n}\n\n/**\n * Parse a comma-separated string to array.\n * NOTE: Prefer using `variadic` for list arguments instead of this function. This should only be used for arguments which have a default value.\n *\n * @param input - The comma-separated string to parse\n * @returns Array of trimmed, non-empty strings\n */\nexport function arrayParser(input: string): string[] {\n return input\n .split(',')\n .map((s) => s.trim())\n .filter((s) => s.length > 0);\n}\n\n/**\n * Parse a date string to a Date object.\n *\n * @param input - The date string to parse\n * @returns The parsed Date object\n * @throws TypeError if input is not a valid date\n */\nexport function dateParser(input: string): Date {\n const date = new Date(input);\n if (Number.isNaN(date.getTime())) {\n throw new TypeError(\n `Invalid date: ${input}. Try using the ISO 8601 format (YYYY-MM-DDTHH:MM:SS.SSSZ)`,\n );\n }\n return date;\n}\n"]}
|