@transcend-io/cli 6.22.1 → 6.24.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/README.md +54 -17
- package/build/cli-skip-preflight-jobs.d.ts +3 -0
- package/build/cli-skip-preflight-jobs.d.ts.map +1 -0
- package/build/cli-skip-preflight-jobs.js +53 -0
- package/build/cli-skip-preflight-jobs.js.map +1 -0
- package/build/codecs.d.ts +8 -0
- package/build/codecs.d.ts.map +1 -1
- package/build/codecs.js +4 -0
- package/build/codecs.js.map +1 -1
- package/build/graphql/gqls/RequestEnricher.d.ts +1 -0
- package/build/graphql/gqls/RequestEnricher.d.ts.map +1 -1
- package/build/graphql/gqls/RequestEnricher.js +10 -1
- package/build/graphql/gqls/RequestEnricher.js.map +1 -1
- package/build/graphql/gqls/dataSilo.d.ts.map +1 -1
- package/build/graphql/gqls/dataSilo.js +6 -0
- package/build/graphql/gqls/dataSilo.js.map +1 -1
- package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
- package/build/graphql/pullTranscendConfiguration.js +9 -1
- package/build/graphql/pullTranscendConfiguration.js.map +1 -1
- package/build/graphql/syncDataSilos.d.ts +14 -0
- package/build/graphql/syncDataSilos.d.ts.map +1 -1
- package/build/graphql/syncDataSilos.js +1 -0
- package/build/graphql/syncDataSilos.js.map +1 -1
- package/build/requests/index.d.ts +1 -0
- package/build/requests/index.d.ts.map +1 -1
- package/build/requests/index.js +1 -0
- package/build/requests/index.js.map +1 -1
- package/build/requests/skipPreflightJobs.d.ts +20 -0
- package/build/requests/skipPreflightJobs.d.ts.map +1 -0
- package/build/requests/skipPreflightJobs.js +73 -0
- package/build/requests/skipPreflightJobs.js.map +1 -0
- package/build/tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,71 +90,75 @@
|
|
|
90
90
|
- [Authentication](#authentication-19)
|
|
91
91
|
- [Arguments](#arguments-19)
|
|
92
92
|
- [Usage](#usage-20)
|
|
93
|
-
- [tr-
|
|
93
|
+
- [tr-skip-preflight-jobs](#tr-skip-preflight-jobs)
|
|
94
94
|
- [Authentication](#authentication-20)
|
|
95
95
|
- [Arguments](#arguments-20)
|
|
96
96
|
- [Usage](#usage-21)
|
|
97
|
-
- [tr-
|
|
97
|
+
- [tr-retry-request-data-silos](#tr-retry-request-data-silos)
|
|
98
98
|
- [Authentication](#authentication-21)
|
|
99
99
|
- [Arguments](#arguments-21)
|
|
100
100
|
- [Usage](#usage-22)
|
|
101
|
-
- [tr-consent-
|
|
101
|
+
- [tr-update-consent-manager](#tr-update-consent-manager)
|
|
102
102
|
- [Authentication](#authentication-22)
|
|
103
103
|
- [Arguments](#arguments-22)
|
|
104
104
|
- [Usage](#usage-23)
|
|
105
|
-
- [tr-consent-
|
|
105
|
+
- [tr-consent-managers-to-business-entities](#tr-consent-managers-to-business-entities)
|
|
106
106
|
- [Authentication](#authentication-23)
|
|
107
107
|
- [Arguments](#arguments-23)
|
|
108
108
|
- [Usage](#usage-24)
|
|
109
|
-
- [tr-
|
|
109
|
+
- [tr-consent-manager-service-json-to-yml](#tr-consent-manager-service-json-to-yml)
|
|
110
110
|
- [Authentication](#authentication-24)
|
|
111
111
|
- [Arguments](#arguments-24)
|
|
112
112
|
- [Usage](#usage-25)
|
|
113
|
-
- [tr-derive-data-silos-from-data-flows
|
|
113
|
+
- [tr-derive-data-silos-from-data-flows](#tr-derive-data-silos-from-data-flows)
|
|
114
114
|
- [Authentication](#authentication-25)
|
|
115
115
|
- [Arguments](#arguments-25)
|
|
116
116
|
- [Usage](#usage-26)
|
|
117
|
-
- [tr-
|
|
117
|
+
- [tr-derive-data-silos-from-data-flows-cross-instance](#tr-derive-data-silos-from-data-flows-cross-instance)
|
|
118
118
|
- [Authentication](#authentication-26)
|
|
119
119
|
- [Arguments](#arguments-26)
|
|
120
120
|
- [Usage](#usage-27)
|
|
121
|
-
- [tr-pull-
|
|
121
|
+
- [tr-pull-consent-metrics](#tr-pull-consent-metrics)
|
|
122
122
|
- [Authentication](#authentication-27)
|
|
123
123
|
- [Arguments](#arguments-27)
|
|
124
124
|
- [Usage](#usage-28)
|
|
125
|
-
- [tr-pull-
|
|
125
|
+
- [tr-pull-datapoints](#tr-pull-datapoints)
|
|
126
126
|
- [Authentication](#authentication-28)
|
|
127
127
|
- [Arguments](#arguments-28)
|
|
128
128
|
- [Usage](#usage-29)
|
|
129
|
-
- [tr-
|
|
129
|
+
- [tr-pull-pull-unstructured-discovery-files](#tr-pull-pull-unstructured-discovery-files)
|
|
130
130
|
- [Authentication](#authentication-29)
|
|
131
|
-
- [Authentication](#authentication-30)
|
|
132
131
|
- [Arguments](#arguments-29)
|
|
133
132
|
- [Usage](#usage-30)
|
|
134
|
-
- [tr-upload-
|
|
133
|
+
- [tr-upload-preferences](#tr-upload-preferences)
|
|
134
|
+
- [Authentication](#authentication-30)
|
|
135
135
|
- [Authentication](#authentication-31)
|
|
136
136
|
- [Arguments](#arguments-30)
|
|
137
137
|
- [Usage](#usage-31)
|
|
138
|
-
- [tr-
|
|
138
|
+
- [tr-upload-consent-preferences](#tr-upload-consent-preferences)
|
|
139
139
|
- [Authentication](#authentication-32)
|
|
140
140
|
- [Arguments](#arguments-31)
|
|
141
141
|
- [Usage](#usage-32)
|
|
142
|
-
- [tr-
|
|
142
|
+
- [tr-pull-consent-preferences](#tr-pull-consent-preferences)
|
|
143
143
|
- [Authentication](#authentication-33)
|
|
144
144
|
- [Arguments](#arguments-32)
|
|
145
145
|
- [Usage](#usage-33)
|
|
146
|
-
- [tr-upload-
|
|
146
|
+
- [tr-upload-data-flows-from-csv](#tr-upload-data-flows-from-csv)
|
|
147
147
|
- [Authentication](#authentication-34)
|
|
148
148
|
- [Arguments](#arguments-33)
|
|
149
149
|
- [Usage](#usage-34)
|
|
150
|
-
- [tr-
|
|
150
|
+
- [tr-upload-cookies-from-csv](#tr-upload-cookies-from-csv)
|
|
151
151
|
- [Authentication](#authentication-35)
|
|
152
152
|
- [Arguments](#arguments-34)
|
|
153
153
|
- [Usage](#usage-35)
|
|
154
|
-
- [tr-
|
|
154
|
+
- [tr-generate-api-keys](#tr-generate-api-keys)
|
|
155
155
|
- [Authentication](#authentication-36)
|
|
156
156
|
- [Arguments](#arguments-35)
|
|
157
157
|
- [Usage](#usage-36)
|
|
158
|
+
- [tr-build-xdi-sync-endpoint](#tr-build-xdi-sync-endpoint)
|
|
159
|
+
- [Authentication](#authentication-37)
|
|
160
|
+
- [Arguments](#arguments-36)
|
|
161
|
+
- [Usage](#usage-37)
|
|
158
162
|
- [Prompt Manager](#prompt-manager)
|
|
159
163
|
- [Proxy usage](#proxy-usage)
|
|
160
164
|
|
|
@@ -1995,6 +1999,39 @@ Set to status "RESOLVED" instead of status "SKIPPED"
|
|
|
1995
1999
|
yarn tr-skip-request-data-silos --auth=$TRANSCEND_API_KEY --dataSiloId=70810f2e-cf90-43f6-9776-901a5950599f --status=RESOLVED
|
|
1996
2000
|
```
|
|
1997
2001
|
|
|
2002
|
+
### tr-skip-preflight-jobs
|
|
2003
|
+
|
|
2004
|
+
This command allows for bulk skipping preflight checks.
|
|
2005
|
+
|
|
2006
|
+
#### Authentication
|
|
2007
|
+
|
|
2008
|
+
In order to use this cli, you will first need to generate an API key on the Transcend Admin Dashboard (https://app.transcend.io/infrastructure/api-keys).
|
|
2009
|
+
|
|
2010
|
+
The API key must have the following scopes:
|
|
2011
|
+
|
|
2012
|
+
- "Manage Request Compilation"
|
|
2013
|
+
|
|
2014
|
+
#### Arguments
|
|
2015
|
+
|
|
2016
|
+
| Argument | Description | Type | Default | Required |
|
|
2017
|
+
| ------------ | ----------------------------------------------------------------------------- | --------------- | ------------------------ | -------- |
|
|
2018
|
+
| auth | The Transcend API key with the scopes necessary for the command. | string | N/A | true |
|
|
2019
|
+
| enricherIds | The ID of the enrichers to skip privacy request jobs for. | string[] - UUID | N/A | true |
|
|
2020
|
+
| transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
|
|
2021
|
+
|
|
2022
|
+
#### Usage
|
|
2023
|
+
|
|
2024
|
+
```sh
|
|
2025
|
+
yarn tr-skip-preflight-jobs --auth=$TRANSCEND_API_KEY --enricherIds=70810f2e-cf90-43f6-9776-901a5950599f
|
|
2026
|
+
```
|
|
2027
|
+
|
|
2028
|
+
Specifying the backend URL, needed for US hosted backend infrastructure.
|
|
2029
|
+
|
|
2030
|
+
```sh
|
|
2031
|
+
yarn tr-skip-preflight-jobs --auth=$TRANSCEND_API_KEY --enricherIds=70810f2e-cf90-43f6-9776-901a5950599f,db1e64ba-cea6-43ff-ad27-5dc8122e5224 \
|
|
2032
|
+
--transcendUrl=https://api.us.transcend.io
|
|
2033
|
+
```
|
|
2034
|
+
|
|
1998
2035
|
### tr-retry-request-data-silos
|
|
1999
2036
|
|
|
2000
2037
|
This command allows for bulk restarting a set of data silos jobs for open privacy requests. This is equivalent to clicking the "Wipe and Retry" button for a particular data silo across a set of privacy requests.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-skip-preflight-jobs.d.ts","sourceRoot":"","sources":["../src/cli-skip-preflight-jobs.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const yargs_parser_1 = __importDefault(require("yargs-parser"));
|
|
8
|
+
const colors_1 = __importDefault(require("colors"));
|
|
9
|
+
const logger_1 = require("./logger");
|
|
10
|
+
const requests_1 = require("./requests");
|
|
11
|
+
const constants_1 = require("./constants");
|
|
12
|
+
/**
|
|
13
|
+
* Given an enricher ID, skip all active enrichment jobs that are open for that enricher
|
|
14
|
+
*
|
|
15
|
+
* Requires an API key with scope:
|
|
16
|
+
* - "Manage Request Compilation"
|
|
17
|
+
*
|
|
18
|
+
* Dev Usage:
|
|
19
|
+
* yarn ts-node ./src/cli-skip-preflight-jobs.ts --auth=$TRANSCEND_API_KEY \
|
|
20
|
+
* --enricherIds=92636cda-b7c6-48c6-b1b1-2df574596cbc
|
|
21
|
+
*
|
|
22
|
+
* Standard usage:
|
|
23
|
+
* yarn tr-skip-request-data-silos --auth=$TRANSCEND_API_KEY \
|
|
24
|
+
* --enricherIds=92636cda-b7c6-48c6-b1b1-2df574596cbc
|
|
25
|
+
*/
|
|
26
|
+
async function main() {
|
|
27
|
+
// Parse command line arguments
|
|
28
|
+
const {
|
|
29
|
+
/** Transcend Backend URL */
|
|
30
|
+
transcendUrl = constants_1.DEFAULT_TRANSCEND_API,
|
|
31
|
+
/** API key */
|
|
32
|
+
auth,
|
|
33
|
+
/** Enricher ID to mark requests fpr */
|
|
34
|
+
enricherIds, } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
35
|
+
// Ensure auth is passed
|
|
36
|
+
if (!auth) {
|
|
37
|
+
logger_1.logger.error(colors_1.default.red('A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY'));
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
40
|
+
// Ensure enricherIds is provided
|
|
41
|
+
if (!enricherIds) {
|
|
42
|
+
logger_1.logger.error(colors_1.default.red('An enricher ID must be provided. You can specify using --enricherIds=2560bb81-b837-4c6f-a57e-dcef87069d43'));
|
|
43
|
+
process.exit(1);
|
|
44
|
+
}
|
|
45
|
+
// Upload privacy requests
|
|
46
|
+
await (0, requests_1.skipPreflightJobs)({
|
|
47
|
+
transcendUrl,
|
|
48
|
+
auth,
|
|
49
|
+
enricherIds: (0, requests_1.splitCsvToList)(enricherIds),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
main();
|
|
53
|
+
//# sourceMappingURL=cli-skip-preflight-jobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-skip-preflight-jobs.js","sourceRoot":"","sources":["../src/cli-skip-preflight-jobs.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,yCAA+D;AAC/D,2CAAoD;AAEpD;;;;;;;;;;;;;GAaG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM;IACJ,4BAA4B;IAC5B,YAAY,GAAG,iCAAqB;IACpC,cAAc;IACd,IAAI;IACJ,uCAAuC;IACvC,WAAW,GACZ,GAAG,IAAA,sBAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAA8B,CAAC;IAE9D,wBAAwB;IACxB,IAAI,CAAC,IAAI,EAAE;QACT,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,uFAAuF,CACxF,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,iCAAiC;IACjC,IAAI,CAAC,WAAW,EAAE;QAChB,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,2GAA2G,CAC5G,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,0BAA0B;IAC1B,MAAM,IAAA,4BAAiB,EAAC;QACtB,YAAY;QACZ,IAAI;QACJ,WAAW,EAAE,IAAA,yBAAc,EAAC,WAAW,CAAC;KACzC,CAAC,CAAC;AACL,CAAC;AACD,IAAI,EAAE,CAAC"}
|
package/build/codecs.d.ts
CHANGED
|
@@ -46973,6 +46973,10 @@ export declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
|
|
|
46973
46973
|
/** Attribute values */
|
|
46974
46974
|
values: t.ArrayC<t.StringC>;
|
|
46975
46975
|
}>>;
|
|
46976
|
+
/**
|
|
46977
|
+
* The business entities associated with this data silo
|
|
46978
|
+
*/
|
|
46979
|
+
businessEntityTitles: t.ArrayC<t.StringC>;
|
|
46976
46980
|
}>]>;
|
|
46977
46981
|
/** Type override */
|
|
46978
46982
|
export type DataSiloInput = t.TypeOf<typeof DataSiloInput>;
|
|
@@ -81703,6 +81707,10 @@ export declare const TranscendInput: t.PartialC<{
|
|
|
81703
81707
|
/** Attribute values */
|
|
81704
81708
|
values: t.ArrayC<t.StringC>;
|
|
81705
81709
|
}>>;
|
|
81710
|
+
/**
|
|
81711
|
+
* The business entities associated with this data silo
|
|
81712
|
+
*/
|
|
81713
|
+
businessEntityTitles: t.ArrayC<t.StringC>;
|
|
81706
81714
|
}>]>>;
|
|
81707
81715
|
/**
|
|
81708
81716
|
* Data flow definitions
|