@transcend-io/cli 7.0.0-alpha.5 → 7.0.0-alpha.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/README.md +534 -2880
- package/dist/bin/bash-complete.js +1 -1
- package/dist/bin/cli.js +1 -1
- package/dist/bin/deprecated-command.js +2 -2
- package/dist/{chunk-XIARI2AK.js → chunk-4S2LOGFN.js} +1 -1
- package/dist/{chunk-VQCJGKAI.js → chunk-4ZV5X5DQ.js} +1 -1
- package/dist/{chunk-CS6MRI6K.js → chunk-7HDHUOTF.js} +145 -145
- package/dist/{chunk-PGK2CKUL.js → chunk-B45U2NAI.js} +1 -1
- package/dist/{chunk-WTUT47OZ.js → chunk-CZFGCIEO.js} +1 -1
- package/dist/{chunk-ZU3IU5OT.js → chunk-ELYPVDLC.js} +1 -1
- package/dist/{chunk-6RCR5ICJ.js → chunk-FI3PMXDN.js} +1 -1
- package/dist/chunk-FL3V7KJR.js +8 -0
- package/dist/{chunk-IKR6UVU4.js → chunk-HNMFVG75.js} +1 -1
- package/dist/chunk-NGVJ6L35.js +1 -0
- package/dist/chunk-P6Y4JJ7H.js +89 -0
- package/dist/chunk-RBOBI6B6.js +5 -0
- package/dist/{chunk-ILAP7QZC.js → chunk-T5XKXHEX.js} +1 -1
- package/dist/{chunk-ENFEJNL6.js → chunk-Z77MEZNJ.js} +1 -1
- package/dist/impl-27ZMTITY.js +5 -0
- package/dist/impl-4HVU2DPL.js +1 -0
- package/dist/{impl-DTTZJZP6.js → impl-4J5UT2YS.js} +1 -1
- package/dist/{impl-SK7Y2LHH.js → impl-4LDKW5YP.js} +1 -1
- package/dist/{impl-WOGVE6TG.js → impl-6QYOU3LQ.js} +1 -1
- package/dist/{impl-XRSPZZNB.js → impl-6XFLK23G.js} +1 -1
- package/dist/{impl-VMJNP54F.js → impl-6XIVNFHV.js} +1 -1
- package/dist/{impl-QTDYR7UU.js → impl-7SOARMNA.js} +1 -1
- package/dist/impl-ABUUSFBL.js +1 -0
- package/dist/{impl-SNMVE4PF.js → impl-BE2FBQB2.js} +1 -1
- package/dist/{impl-S5DCAN3C.js → impl-CFQR7ENW.js} +1 -1
- package/dist/{impl-3XRYCJFT.js → impl-CQWH2NIM.js} +1 -1
- package/dist/{impl-MDSL64U2.js → impl-CWRYQS7O.js} +1 -1
- package/dist/{impl-2YCE2D74.js → impl-ERKTUJJM.js} +1 -1
- package/dist/{impl-2JGCSM5O.js → impl-F3HANU3F.js} +1 -1
- package/dist/{impl-ARGVBVLO.js → impl-FAK3X2IM.js} +1 -1
- package/dist/impl-FJRPV5PJ.js +1 -0
- package/dist/{impl-7XM7ZTU2.js → impl-FWV53PHN.js} +1 -1
- package/dist/impl-FWVAOA62.js +1 -0
- package/dist/impl-GJK6YEB5.js +1 -0
- package/dist/{impl-Q6KORRPH.js → impl-H4UVNREH.js} +1 -1
- package/dist/{impl-3PQTSYDH.js → impl-IM4ZHNF7.js} +1 -1
- package/dist/{impl-H7IPYWZN.js → impl-J2EOVLOE.js} +1 -1
- package/dist/{impl-YGOTUBUV.js → impl-JA6H6ALC.js} +1 -1
- package/dist/impl-KE4S4ANH.js +1 -0
- package/dist/{impl-HTUHEZIA.js → impl-LAJLFEXD.js} +1 -1
- package/dist/{impl-XWLNP7GV.js → impl-M6PFOSZI.js} +1 -1
- package/dist/{impl-57NMZUTX.js → impl-SRQ3L7UZ.js} +1 -1
- package/dist/impl-SWXA6ZBI.js +1 -0
- package/dist/{impl-EFPJLZZR.js → impl-T22SYITP.js} +1 -1
- package/dist/impl-UCJD5FZ6.js +1 -0
- package/dist/impl-UIHX2POD.js +1 -0
- package/dist/{impl-U7CNU3TK.js → impl-UPRMABFX.js} +1 -1
- package/dist/{impl-J2IFOOJA.js → impl-WMDL5UOF.js} +1 -1
- package/dist/impl-XDCAAD6P.js +1 -0
- package/dist/{impl-KQWYFNW6.js → impl-XS4TFODP.js} +1 -1
- package/dist/impl-ZTS5VZXR.js +1 -0
- package/dist/index.js +2 -2
- package/package.json +3 -1
- package/dist/chunk-4AH7KIGL.js +0 -5
- package/dist/chunk-KV3K4JMM.js +0 -1
- package/dist/chunk-QYTCLNZ7.js +0 -48
- package/dist/chunk-TAH6ELB3.js +0 -3
- package/dist/impl-6ODC2EKH.js +0 -1
- package/dist/impl-7CNLLLYG.js +0 -1
- package/dist/impl-AUECLWIQ.js +0 -1
- package/dist/impl-FETIWTDE.js +0 -1
- package/dist/impl-GHND2SIW.js +0 -1
- package/dist/impl-GUPQO6QP.js +0 -1
- package/dist/impl-JG2FKNHG.js +0 -5
- package/dist/impl-M3H7IS5R.js +0 -1
- package/dist/impl-MX7XDUTI.js +0 -1
- package/dist/impl-TB3T5L3R.js +0 -1
- package/dist/impl-V2TQGX3T.js +0 -1
- package/dist/impl-W2HOHRDF.js +0 -1
- /package/dist/{impl-AQRJP63X.js → impl-NYB4YSNU.js} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as s}from"../chunk-XMGVDVM2.js";import{a as o}from"../chunk-
|
|
2
|
+
import{a as s}from"../chunk-XMGVDVM2.js";import{a as o}from"../chunk-P6Y4JJ7H.js";import"../chunk-FL3V7KJR.js";import"../chunk-APA5PR4U.js";import"../chunk-4ZV5X5DQ.js";import"../chunk-EZCJGIOS.js";import{proposeCompletions as r}from"@stricli/core";var t=process.argv.slice(3);process.env.COMP_LINE?.endsWith(" ")&&t.push("");await r(o,t,s(process));try{for(let{completion:p}of await r(o,t,s(process)))process.stdout.write(`${p}
|
|
3
3
|
`)}catch{}
|
package/dist/bin/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as o}from"../chunk-XMGVDVM2.js";import{a as r}from"../chunk-
|
|
2
|
+
import{a as o}from"../chunk-XMGVDVM2.js";import{a as r}from"../chunk-P6Y4JJ7H.js";import"../chunk-FL3V7KJR.js";import"../chunk-APA5PR4U.js";import"../chunk-4ZV5X5DQ.js";import"../chunk-EZCJGIOS.js";import{run as i}from"@stricli/core";await i(r,process.argv.slice(2),o(process));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as n}from"../chunk-
|
|
2
|
+
import{a as n}from"../chunk-P6Y4JJ7H.js";import"../chunk-FL3V7KJR.js";import{a as r}from"../chunk-OERYFLN2.js";import"../chunk-APA5PR4U.js";import"../chunk-4ZV5X5DQ.js";import"../chunk-EZCJGIOS.js";import{generateHelpTextForAllCommands as c}from"@stricli/core";var s={"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 m(t){return c(n).find(o=>o[0]===`${n.config.name} ${t.join(" ")}`)?.[1]}function i(t){r.log("[DEPRECATION NOTICE]");let e=s[t];if(!e){let a=Object.entries(s).map(([d,l])=>`\`${d}\` -> \`${n.config.name} ${l.join(" ")}\``).join(`
|
|
3
3
|
`);r.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}r.log(`\`${t}\` is deprecated as of v7.0.0.
|
|
5
5
|
Use \`${n.config.name} ${e.join(" ")}\` instead.
|
|
6
|
-
`);let
|
|
6
|
+
`);let o=m(e);if(!o)throw new Error(`Failed to get help text for command: \`${e.join(" ")}\``);r.log(o)}function p(){let e=process.argv.at(-1)?.split("/").pop()?.trim();if(e)i(e);else throw new Error("Deprecated command");process.exit(1)}p();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as x}from"./chunk-
|
|
1
|
+
import{c as x}from"./chunk-T5XKXHEX.js";import{n as u,q as D}from"./chunk-ELYPVDLC.js";import{ga as w,ha as _}from"./chunk-HMF46LB7.js";import{Le as O,Me as U,a as R,b as P,bd as b,pc as L,pe as S,qc as M,tc as N,wc as k}from"./chunk-7HDHUOTF.js";import{a as c}from"./chunk-OERYFLN2.js";import{e as C}from"./chunk-APA5PR4U.js";import{ConsentBundleType as H}from"@transcend-io/privacy-types";import A from"colors";async function at({auth:e,deploy:i=!1,transcendUrl:o=C,bundleTypes:t=Object.values(H)}){let r=S(o,e),n=await M(r);await R(t,async a=>{c.info(A.magenta(`Update Consent Manager bundle with ID "${n}" and type "${a}" to latest version...`)),await U(r,{id:n,bundleType:a}),c.info(A.green(`Updated Consent Manager bundle with ID "${n}" and type "${a}" to latest version!`))}),i&&await R(t,async a=>{c.info(A.magenta(`Deploying Consent Manager bundle with ID "${n}" and type "${a}"...`)),await O(r,{id:n,bundleType:a}),c.info(A.green(`Deployed Consent Manager bundle with ID "${n}" and type "${a}"!`))})}import G from"colors";var K=["ID","Activity","Encounters","Last Seen At","Has Native Do Not Sell/Share Support","IAB USP API Support","Service Description","Website URL","Categories of Recipients"];async function Ct({auth:e,trackerStatus:i,file:o,classifyService:t=!1,transcendUrl:r=C}){let n=S(r,e);c.info(G.magenta(`Reading "${o}" from disk`));let l=D(o,w).map(({Type:d,Notes:m,Service:f,Purpose:E,Status:g,Owners:I,Teams:T,"Connections Made To":v,...y})=>({value:v,type:d,description:m,trackingPurposes:u(E),status:g||i,owners:I?u(I):void 0,teams:T?u(T):void 0,attributes:Object.entries(y).filter(([h])=>!K.includes(h)).map(([h,B])=>({key:h,values:u(B)}))}));await b(n,l,t)||(c.error(G.red("Encountered error(s) syncing data flows from CSV, see logs above for more info. ")),process.exit(1))}import F from"colors";var j=["ID","Activity","Encounters","Last Seen At","Has Native Do Not Sell/Share Support","IAB USP API Support","Service Description","Website URL","Categories of Recipients"];async function vt({auth:e,trackerStatus:i,file:o,transcendUrl:t=C}){let r=S(t,e);c.info(F.magenta(`Reading "${o}" from disk`));let a=D(o,_).map(({"Is Regex?":s,Notes:d,Service:m,Purpose:f,Status:E,Owners:g,Teams:I,Name:T,...v})=>({...typeof s=="string"?{isRegex:s.toLowerCase()==="true"}:{},name:T,description:d,trackingPurposes:u(f),status:E||i,owners:g?u(g):void 0,teams:I?u(I):void 0,attributes:Object.entries(v).filter(([y])=>!j.includes(y)).map(([y,h])=>({key:y,values:u(h)}))}));await k(r,a)||(c.error(F.red("Encountered error(s) syncing cookies from CSV, see logs above for more info. ")),process.exit(1))}var Y=1e3,Q=60*Y,V=60*Q,X=24*V,z=7*X;async function Lt(e,{bin:i,start:o,end:t=new Date}){let r=await M(e),n=Math.floor(o.getTime()/1e3),a=Math.floor(t.getTime()/1e3);if(n>a)throw new Error('Received "end" date that happened before "start" date');if(i==="1h"&&t.getTime()-o.getTime()>z*2)throw new Error("When using bin=1h, start and end time can be no more than 2 weeks apart");let l=o.toISOString(),s=t.toISOString(),[d,m,f]=await Promise.all([N(e,{dataSource:"PRIVACY_SIGNAL_TIMESERIES",startDate:l,endDate:s,forceRefetch:!0,airgapBundleId:r,binInterval:i,smoothTimeseries:!1}),N(e,{dataSource:"CONSENT_CHANGES_TIMESERIES",startDate:l,endDate:s,forceRefetch:!0,airgapBundleId:r,binInterval:i,smoothTimeseries:!1}),N(e,{dataSource:"CONSENT_SESSIONS_BY_REGIME",startDate:l,endDate:s,forceRefetch:!0,airgapBundleId:r,binInterval:i,smoothTimeseries:!1})]);return{PRIVACY_SIGNAL_TIMESERIES:d,CONSENT_CHANGES_TIMESERIES:m,CONSENT_SESSIONS_BY_REGIME:f}}var $=e=>new URL(`https://${e}`).hostname.split(".").slice(-2).join(".");import W from"colors";import{difference as q}from"lodash-es";var J=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;async function Ht(e,{xdiLocation:i,transcendUrl:o=C,removeIpAddresses:t=!0,domainBlockList:r=["localhost"],xdiAllowedCommands:n="ConsentManager:Sync"}){let a=Array.isArray(e)?e:[{apiKey:e,organizationId:"",organizationName:""}],l=await P(a,async m=>{c.info(W.magenta(`Pulling consent metadata for organization - ${m.organizationName}`));let f=S(o,m.apiKey);return await L(f)},{concurrency:5}),s={};return l.forEach(m=>{let f=m.partition?.partition||m.bundleURL.split("/").reverse()[1];s[f]||(s[f]=[]);let E=q(m.configuration.domains.filter(g=>!t||!J.test(g)).map(g=>$(g)),r);s[f]=[...new Set([...s[f]||[],...E])]}),{html:`
|
|
2
2
|
<!DOCTYPE html>
|
|
3
3
|
<script
|
|
4
4
|
src="${i}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var s="A command line interface for programmatic operations across Transcend.",n="7.0.0-alpha.
|
|
1
|
+
var s="A command line interface for programmatic operations across Transcend.",n="7.0.0-alpha.6";export{s as a,n as b};
|