@transcend-io/cli 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{a as r,b as o}from"./chunk-CUW3DAWM.js";import"./chunk-47G5FDLU.js";import{run as i}from"@stricli/core";await i(r,process.argv.slice(2),o(process));
@@ -0,0 +1 @@
1
+ import"./chunk-47G5FDLU.js";import*as o from"node:fs";async function r(e){console.log("Approving requests with actions:",e.actions),console.log("Concurrency:",e.concurrency),console.log("Transcend URL:",e.transcendUrl),e.origins&&console.log("Origins:",e.origins),e.silentModeBefore&&console.log("Silent mode before:",e.silentModeBefore),e.createdAtBefore&&console.log("Created before:",e.createdAtBefore),e.createdAtAfter&&console.log("Created after:",e.createdAtAfter),await new Promise(t=>setTimeout(t,100)),console.log("Approve command completed")}async function n(e){console.log("Downloading files to folder:",e.folderPath),console.log("Statuses:",e.statuses),console.log("Concurrency:",e.concurrency),console.log("Approve after download:",e.approveAfterDownload),e.requestIds&&console.log("Request IDs:",e.requestIds),e.createdAtBefore&&console.log("Created before:",e.createdAtBefore),e.createdAtAfter&&console.log("Created after:",e.createdAtAfter),o.existsSync(e.folderPath)||o.mkdirSync(e.folderPath,{recursive:!0}),await new Promise(t=>setTimeout(t,100)),console.log("Download files command completed")}async function i(e){console.log("Canceling requests with actions:",e.actions),console.log("Statuses:",e.statuses),console.log("Cancellation title:",e.cancellationTitle),console.log("Concurrency:",e.concurrency),e.requestIds&&console.log("Request IDs:",e.requestIds),e.silentModeBefore&&console.log("Silent mode before:",e.silentModeBefore),e.createdAtBefore&&console.log("Created before:",e.createdAtBefore),e.createdAtAfter&&console.log("Created after:",e.createdAtAfter),await new Promise(t=>setTimeout(t,100)),console.log("Cancel command completed")}async function s(e){console.log("Notifying additional time for requests created before:",e.createdAtBefore),console.log("Days left threshold:",e.daysLeft),console.log("Days to extend:",e.days),console.log("Email template:",e.emailTemplate),console.log("Concurrency:",e.concurrency),e.createdAtAfter&&console.log("Created after:",e.createdAtAfter),e.actions&&console.log("Actions:",e.actions),e.requestIds&&console.log("Request IDs:",e.requestIds),await new Promise(t=>setTimeout(t,100)),console.log("Notify additional time command completed")}async function c(e){console.log("Marking requests as silent with actions:",e.actions),console.log("Statuses:",e.statuses),console.log("Concurrency:",e.concurrency),e.requestIds&&console.log("Request IDs:",e.requestIds),e.createdAtBefore&&console.log("Created before:",e.createdAtBefore),e.createdAtAfter&&console.log("Created after:",e.createdAtAfter),await new Promise(t=>setTimeout(t,100)),console.log("Mark silent command completed")}async function a(e){if(console.log("Uploading requests from file:",e.file),console.log("Cache filepath:",e.cacheFilepath),console.log("Receipt folder:",e.requestReceiptFolder),console.log("Concurrency:",e.concurrency),console.log("Attributes:",e.attributes),console.log("Is test:",e.isTest),console.log("Is silent:",e.isSilent),console.log("Skip sending receipt:",e.skipSendingReceipt),console.log("Email is verified:",e.emailIsVerified),console.log("Skip filter step:",e.skipFilterStep),console.log("Dry run:",e.dryRun),console.log("Debug:",e.debug),console.log("Default phone country code:",e.defaultPhoneCountryCode),!o.existsSync(e.file))throw new Error(`File not found: ${e.file}`);o.existsSync(e.requestReceiptFolder)||o.mkdirSync(e.requestReceiptFolder,{recursive:!0}),await new Promise(t=>setTimeout(t,100)),console.log("Upload command completed")}async function d(e){console.log("Restarting requests with actions:",e.actions),console.log("Statuses:",e.statuses),console.log("Concurrency:",e.concurrency),console.log("Email is verified:",e.emailIsVerified),console.log("Send email receipt:",e.sendEmailReceipt),console.log("Copy identifiers:",e.copyIdentifiers),console.log("Skip waiting period:",e.skipWaitingPeriod),e.requestIds&&console.log("Request IDs:",e.requestIds),e.createdAt&&console.log("Created at:",e.createdAt),e.silentModeBefore&&console.log("Silent mode before:",e.silentModeBefore),e.createdAtBefore&&console.log("Created before:",e.createdAtBefore),e.createdAtAfter&&console.log("Created after:",e.createdAtAfter),await new Promise(t=>setTimeout(t,100)),console.log("Restart command completed")}async function l(e){console.log("Restarting enricher with ID:",e.enricherId),console.log("Concurrency:",e.concurrency),e.actions&&console.log("Actions:",e.actions),e.requestEnricherStatuses&&console.log("Request enricher statuses:",e.requestEnricherStatuses),e.requestIds&&console.log("Request IDs:",e.requestIds),e.createdAtBefore&&console.log("Created before:",e.createdAtBefore),e.createdAtAfter&&console.log("Created after:",e.createdAtAfter),await new Promise(t=>setTimeout(t,100)),console.log("Enricher restart command completed")}async function u(e){console.log("Rejecting unverified identifiers:",e.identifierNames),e.actions&&console.log("Actions:",e.actions),await new Promise(t=>setTimeout(t,100)),console.log("Reject unverified identifiers command completed")}async function m(e){console.log("Exporting requests to file:",e.file),console.log("Concurrency:",e.concurrency),e.actions&&console.log("Actions:",e.actions),e.statuses&&console.log("Statuses:",e.statuses),e.createdAtBefore&&console.log("Created before:",e.createdAtBefore),e.createdAtAfter&&console.log("Created after:",e.createdAtAfter),e.showTests!==void 0&&console.log("Show tests:",e.showTests),await new Promise(t=>setTimeout(t,100)),console.log("Export command completed")}async function f(e){console.log("Skipping preflight jobs for enrichers:",e.enricherIds),console.log("Transcend URL:",e.transcendUrl),await new Promise(t=>setTimeout(t,100)),console.log("Skip preflight jobs command completed")}export{r as approve,i as cancel,n as downloadFiles,l as enricherRestart,m as exportRequests,c as markSilent,s as notifyAdditionalTime,u as rejectUnverifiedIdentifiers,d as restart,f as skipPreflightJobs,a as upload};
@@ -0,0 +1 @@
1
+ import"./chunk-47G5FDLU.js";function t(o){throw console.log("Pull command started..."),console.log("Flags:",o),new Error("Command not yet implemented")}function e(o){throw console.log("Push command started..."),console.log("Flags:",o),new Error("Command not yet implemented")}function n(o){throw console.log("Scan packages command started..."),console.log("Flags:",o),new Error("Command not yet implemented")}function s(o){throw console.log("Discover silos command started..."),console.log("Flags:",o),new Error("Command not yet implemented")}function a(o){throw console.log("Pull datapoints command started..."),console.log("Flags:",o),new Error("Command not yet implemented")}function r(o){throw console.log("Pull unstructured discovery files command started..."),console.log("Flags:",o),new Error("Command not yet implemented")}function l(o){throw console.log("Derive data silos from data flows command started..."),console.log("Flags:",o),new Error("Command not yet implemented")}function i(o){throw console.log("Derive data silos from data flows cross instance command started..."),console.log("Flags:",o),new Error("Command not yet implemented")}export{l as deriveDataSilosFromDataFlows,i as deriveDataSilosFromDataFlowsCrossInstance,s as discoverSilos,t as pull,a as pullDatapoints,r as pullUnstructuredDiscoveryFiles,e as push,n as scanPackages};
@@ -0,0 +1 @@
1
+ import"./chunk-47G5FDLU.js";function t(n){throw console.log("Sync OneTrust command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}export{t as syncOt};
@@ -0,0 +1 @@
1
+ import"./chunk-47G5FDLU.js";function e(n){throw console.log("Build XDI sync endpoint command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}function o(n){throw console.log("Pull consent metrics command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}function t(n){throw console.log("Pull consent preferences command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}function s(n){throw console.log("Update consent manager command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}function r(n){throw console.log("Upload consent preferences command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}function a(n){throw console.log("Upload cookies from CSV command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}function i(n){throw console.log("Upload data flows from CSV command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}function l(n){throw console.log("Upload preferences command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}function m(n){throw console.log("Consent manager service JSON to YML command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}function d(n){throw console.log("Consent managers to business entities command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}export{e as buildXdiSyncEndpoint,m as consentManagerServiceJsonToYml,d as consentManagersToBusinessEntities,o as pullConsentMetrics,t as pullConsentPreferences,s as updateConsentManager,r as uploadConsentPreferences,a as uploadCookiesFromCsv,i as uploadDataFlowsFromCsv,l as uploadPreferences};
@@ -0,0 +1 @@
1
+ import"./chunk-47G5FDLU.js";function t(e){throw console.log("Generate API keys command started..."),console.log("Flags:",e),new Error("Command not yet implemented")}export{t as generateApiKeys};
@@ -0,0 +1 @@
1
+ import"./chunk-47G5FDLU.js";import*as o from"node:fs";async function t(e){console.log("Pulling identifiers for data silo:",e.dataSiloId),console.log("Actions:",e.actions),console.log("Output file:",e.file),console.log("Page limit:",e.pageLimit),console.log("Chunk size:",e.chunkSize),console.log("Skip request count:",e.skipRequestCount),await new Promise(i=>setTimeout(i,100)),console.log("Pull identifiers command completed")}async function n(e){if(console.log("Marking identifiers as completed for data silo:",e.dataSiloId),console.log("Input file:",e.file),!o.existsSync(e.file))throw new Error(`File not found: ${e.file}`);await new Promise(i=>setTimeout(i,100)),console.log("Mark identifiers completed command finished")}export{n as markIdentifiersCompleted,t as pullIdentifiers};
@@ -0,0 +1 @@
1
+ import"./chunk-47G5FDLU.js";function e(t){throw console.log("Mark request data silos completed command started..."),console.log("Flags:",t),new Error("Command not yet implemented")}function o(t){throw console.log("Retry request data silos command started..."),console.log("Flags:",t),new Error("Command not yet implemented")}function a(t){throw console.log("Skip request data silos command started..."),console.log("Flags:",t),new Error("Command not yet implemented")}export{e as markRequestDataSilosCompleted,o as retryRequestDataSilos,a as skipRequestDataSilos};
@@ -0,0 +1 @@
1
+ import"./chunk-47G5FDLU.js";function e(n){throw console.log("Manual enrichment pull identifiers command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}function t(n){throw console.log("Manual enrichment push identifiers command started..."),console.log("Flags:",n),new Error("Command not yet implemented")}export{e as pullIdentifiers,t as pushIdentifiers};
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@transcend-io/cli",
3
+ "author": "Transcend",
4
+ "description": "A command line interface for programmatic operations across Transcend.",
5
+ "license": "UNLICENSED",
6
+ "type": "module",
7
+ "version": "0.0.0",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "bin": {
12
+ "@transcend-io/cli": "dist/cli.js",
13
+ "__@transcend-io/cli_bash_complete": "dist/bash-complete.js"
14
+ },
15
+ "engines": {
16
+ "node": ">=18"
17
+ },
18
+ "scripts": {
19
+ "start": "./dist/cli.js",
20
+ "prebuild": "tsc -p tsconfig.json",
21
+ "build": "tsup",
22
+ "build:watch": "tsup --watch",
23
+ "test": "vitest run",
24
+ "prepublishOnly": "pnpm lint && pnpm build && pnpm test && pnpm publint",
25
+ "postinstall": "@transcend-io/cli install",
26
+ "lint": "pnpm run --parallel --aggregate-output \"/^lint:*/\"",
27
+ "lint:prettier": "prettier --check . --log-level warn",
28
+ "lint:types": "tsc --noEmit",
29
+ "lint:eslint": "eslint .",
30
+ "format": "prettier --write ."
31
+ },
32
+ "tsup": {
33
+ "entry": [
34
+ "src/bin/cli.ts",
35
+ "src/bin/bash-complete.ts"
36
+ ],
37
+ "format": [
38
+ "esm"
39
+ ],
40
+ "tsconfig": "tsconfig.json",
41
+ "clean": true,
42
+ "splitting": true,
43
+ "minify": true
44
+ },
45
+ "dependencies": {
46
+ "@stricli/auto-complete": "^1.2.0",
47
+ "@stricli/core": "^1.2.0",
48
+ "zod": "^3.25.73"
49
+ },
50
+ "devDependencies": {
51
+ "@eslint/js": "^8.57.1",
52
+ "@ianvs/prettier-plugin-sort-imports": "^4.4.0",
53
+ "@transcend-io/privacy-types": "^4.124.2",
54
+ "@tsconfig/node18": "^18.x",
55
+ "@tsconfig/strictest": "^2.0.5",
56
+ "@types/eslint": "^9.6.1",
57
+ "@types/eslint__eslintrc": "^2.1.2",
58
+ "@types/eslint__js": "^8.42.3",
59
+ "@types/node": "18.x",
60
+ "eslint": "^9.18.0",
61
+ "eslint-plugin-unicorn": "^56.0.1",
62
+ "prettier": "^3.4.2",
63
+ "publint": "^0.3.3",
64
+ "tsup": "^6.7.0",
65
+ "typescript": "5.6.x",
66
+ "typescript-eslint": "^8.21.0",
67
+ "vitest": "^3.2.4"
68
+ }
69
+ }