@transcend-io/cli 6.18.0 → 6.21.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 +6 -7
- package/build/cli-sync-ot.js +1 -2
- package/build/cli-sync-ot.js.map +1 -1
- package/build/codecs.d.ts +4 -32
- package/build/codecs.d.ts.map +1 -1
- package/build/codecs.js +0 -2
- package/build/codecs.js.map +1 -1
- package/build/enums.d.ts +3 -4
- package/build/enums.d.ts.map +1 -1
- package/build/enums.js +0 -1
- package/build/enums.js.map +1 -1
- package/build/graphql/gqls/dataPoint.d.ts.map +1 -1
- package/build/graphql/gqls/dataPoint.js +0 -1
- package/build/graphql/gqls/dataPoint.js.map +1 -1
- package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
- package/build/graphql/pullTranscendConfiguration.js +0 -1
- package/build/graphql/pullTranscendConfiguration.js.map +1 -1
- package/build/oneTrust/helpers/index.d.ts +0 -1
- package/build/oneTrust/helpers/index.d.ts.map +1 -1
- package/build/oneTrust/helpers/index.js +0 -1
- package/build/oneTrust/helpers/index.js.map +1 -1
- package/build/oneTrust/helpers/oneTrustAssessmentToJson.d.ts +1 -1
- package/build/oneTrust/helpers/oneTrustAssessmentToJson.d.ts.map +1 -1
- package/build/oneTrust/helpers/oneTrustAssessmentToJson.js +2 -2
- package/build/oneTrust/helpers/oneTrustAssessmentToJson.js.map +1 -1
- package/build/oneTrust/helpers/parseCliSyncOtArguments.d.ts +1 -3
- package/build/oneTrust/helpers/parseCliSyncOtArguments.d.ts.map +1 -1
- package/build/oneTrust/helpers/parseCliSyncOtArguments.js +3 -23
- package/build/oneTrust/helpers/parseCliSyncOtArguments.js.map +1 -1
- package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.d.ts +1 -4
- package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.d.ts.map +1 -1
- package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.js +15 -27
- package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.js.map +1 -1
- package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.d.ts +1 -1
- package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.d.ts.map +1 -1
- package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.js +2 -2
- package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.js.map +1 -1
- package/build/oneTrust/helpers/syncOneTrustAssessmentsFromFile.d.ts.map +1 -1
- package/build/oneTrust/helpers/syncOneTrustAssessmentsFromFile.js +44 -51
- package/build/oneTrust/helpers/syncOneTrustAssessmentsFromFile.js.map +1 -1
- package/build/oneTrust/helpers/syncOneTrustAssessmentsFromOneTrust.d.ts +1 -4
- package/build/oneTrust/helpers/syncOneTrustAssessmentsFromOneTrust.d.ts.map +1 -1
- package/build/oneTrust/helpers/syncOneTrustAssessmentsFromOneTrust.js +3 -5
- package/build/oneTrust/helpers/syncOneTrustAssessmentsFromOneTrust.js.map +1 -1
- package/build/tsbuildinfo +1 -1
- package/package.json +3 -1
- package/build/oneTrust/helpers/constants.d.ts +0 -3
- package/build/oneTrust/helpers/constants.d.ts.map +0 -1
- package/build/oneTrust/helpers/constants.js +0 -15
- package/build/oneTrust/helpers/constants.js.map +0 -1
- package/build/oneTrust/helpers/flattenOneTrustAssessment.d.ts +0 -5
- package/build/oneTrust/helpers/flattenOneTrustAssessment.d.ts.map +0 -1
- package/build/oneTrust/helpers/flattenOneTrustAssessment.js +0 -136
- package/build/oneTrust/helpers/flattenOneTrustAssessment.js.map +0 -1
- package/build/oneTrust/helpers/oneTrustAssessmentToCsv.d.ts +0 -14
- package/build/oneTrust/helpers/oneTrustAssessmentToCsv.d.ts.map +0 -1
- package/build/oneTrust/helpers/oneTrustAssessmentToCsv.js +0 -25
- package/build/oneTrust/helpers/oneTrustAssessmentToCsv.js.map +0 -1
- package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.d.ts +0 -10
- package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.d.ts.map +0 -1
- package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.js +0 -38
- package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.js.map +0 -1
- package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.d.ts +0 -2
- package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.d.ts.map +0 -1
- package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.js +0 -592
- package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.js.map +0 -1
package/README.md
CHANGED
|
@@ -618,8 +618,7 @@ The API key needs the following scopes when pushing the various resource types:
|
|
|
618
618
|
| source | Whether to read the assessments from OneTrust or from a file | string | oneTrust | false |
|
|
619
619
|
| transcendAuth | The Transcend API Key to with the scopes necessary to access Transcend's Public APIs. | string | N/A | false |
|
|
620
620
|
| transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
|
|
621
|
-
| file | Path to the file to pull the resource into.
|
|
622
|
-
| fileFormat | The format of the output file. | string | json | false |
|
|
621
|
+
| file | Path to the file to pull the resource into. Must be a json file! | string | N/A | false |
|
|
623
622
|
| resource | The resource to pull from OneTrust. For now, only assessments is supported. | string | assessments | false |
|
|
624
623
|
| dryRun | Whether to export the resource to a file rather than sync to Transcend. | boolean | false | false |
|
|
625
624
|
| debug | Whether to print detailed logs in case of error. | boolean | false | false |
|
|
@@ -634,15 +633,15 @@ tr-sync-ot --hostname=trial.onetrust.com --oneTrustAuth=$ONE_TRUST_OAUTH_TOKEN -
|
|
|
634
633
|
Alternatively, you can set dryRun to true and sync the resource to disk:
|
|
635
634
|
|
|
636
635
|
```sh
|
|
637
|
-
# Writes out file to ./oneTrustAssessments.
|
|
638
|
-
tr-sync-ot --hostname=trial.onetrust.com --oneTrustAuth=$ONE_TRUST_OAUTH_TOKEN --dryRun=true --file=./oneTrustAssessments.
|
|
636
|
+
# Writes out file to ./oneTrustAssessments.json
|
|
637
|
+
tr-sync-ot --hostname=trial.onetrust.com --oneTrustAuth=$ONE_TRUST_OAUTH_TOKEN --dryRun=true --file=./oneTrustAssessments.json
|
|
639
638
|
```
|
|
640
639
|
|
|
641
|
-
|
|
640
|
+
Once you save the assessments into disk, you can sync them to Transcend by reading from the file instead:
|
|
642
641
|
|
|
643
642
|
```sh
|
|
644
|
-
#
|
|
645
|
-
tr-sync-ot --
|
|
643
|
+
# Syncs to Transcend by reading from file ./oneTrustAssessments.json
|
|
644
|
+
tr-sync-ot --source=file --file=./oneTrustAssessments.json --transcendAuth=$TRANSCEND_API_KEY
|
|
646
645
|
```
|
|
647
646
|
|
|
648
647
|
### tr-push
|
package/build/cli-sync-ot.js
CHANGED
|
@@ -20,7 +20,7 @@ const helpers_1 = require("./oneTrust/helpers");
|
|
|
20
20
|
* yarn cli-sync-ot --hostname=customer.my.onetrust.com --oneTrustAuth=$ONE_TRUST_OAUTH_TOKEN --transcendAuth=$TRANSCEND_API_KEY
|
|
21
21
|
*/
|
|
22
22
|
async function main() {
|
|
23
|
-
const { file,
|
|
23
|
+
const { file, hostname, oneTrustAuth, transcendAuth, transcendUrl, resource, debug, dryRun, source, } = (0, oneTrust_1.parseCliSyncOtArguments)();
|
|
24
24
|
// instantiate a client to talk to OneTrust
|
|
25
25
|
const oneTrust = hostname && oneTrustAuth
|
|
26
26
|
? (0, oneTrust_1.createOneTrustGotInstance)({
|
|
@@ -38,7 +38,6 @@ async function main() {
|
|
|
38
38
|
await (0, helpers_1.syncOneTrustAssessmentsFromOneTrust)({
|
|
39
39
|
oneTrust,
|
|
40
40
|
file,
|
|
41
|
-
fileFormat,
|
|
42
41
|
dryRun,
|
|
43
42
|
...(transcend && { transcend }),
|
|
44
43
|
});
|
package/build/cli-sync-ot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-sync-ot.js","sourceRoot":"","sources":["../src/cli-sync-ot.ts"],"names":[],"mappings":";;;;;;AACA,qCAAkC;AAEl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AA+B,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;aAC5D;SACF;KACF;IAAC,OAAO,GAAG,EAAE;QACZ,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,0CAA0C,QAAQ,mBAChD,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAC1B,EAAE,CACH,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,mBAAmB;IACnB,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,KAAK,CACV,gCAAgC,QAAQ,OACtC,MAAM,CAAC,CAAC,CAAC,YAAY,IAAI,GAAG,CAAC,CAAC,CAAC,WACjC,GAAG,CACJ,CACF,CAAC;AACJ,CAAC;AAED,IAAI,EAAE,CAAC"}
|
package/build/codecs.d.ts
CHANGED
|
@@ -5738,12 +5738,6 @@ export declare const DataCategoryGuessInput: t.IntersectionC<[t.TypeC<{
|
|
|
5738
5738
|
PENDING: unknown;
|
|
5739
5739
|
REJECTED: unknown;
|
|
5740
5740
|
}>;
|
|
5741
|
-
/** Confidence label */
|
|
5742
|
-
confidenceLabel: t.KeyofC<{
|
|
5743
|
-
HIGH: unknown;
|
|
5744
|
-
MEDIUM: unknown;
|
|
5745
|
-
LOW: unknown;
|
|
5746
|
-
}>;
|
|
5747
5741
|
/** Confidence level of guess */
|
|
5748
5742
|
confidence: t.NumberC;
|
|
5749
5743
|
}>, t.PartialC<{
|
|
@@ -11665,12 +11659,6 @@ export declare const FieldInput: t.IntersectionC<[t.TypeC<{
|
|
|
11665
11659
|
PENDING: unknown;
|
|
11666
11660
|
REJECTED: unknown;
|
|
11667
11661
|
}>;
|
|
11668
|
-
/** Confidence label */
|
|
11669
|
-
confidenceLabel: t.KeyofC<{
|
|
11670
|
-
HIGH: unknown;
|
|
11671
|
-
MEDIUM: unknown;
|
|
11672
|
-
LOW: unknown;
|
|
11673
|
-
}>;
|
|
11674
11662
|
/** Confidence level of guess */
|
|
11675
11663
|
confidence: t.NumberC;
|
|
11676
11664
|
}>, t.PartialC<{
|
|
@@ -11889,12 +11877,6 @@ export declare const DatapointInput: t.IntersectionC<[t.TypeC<{
|
|
|
11889
11877
|
PENDING: unknown;
|
|
11890
11878
|
REJECTED: unknown;
|
|
11891
11879
|
}>;
|
|
11892
|
-
/** Confidence label */
|
|
11893
|
-
confidenceLabel: t.KeyofC<{
|
|
11894
|
-
HIGH: unknown;
|
|
11895
|
-
MEDIUM: unknown;
|
|
11896
|
-
LOW: unknown;
|
|
11897
|
-
}>;
|
|
11898
11880
|
/** Confidence level of guess */
|
|
11899
11881
|
confidence: t.NumberC;
|
|
11900
11882
|
}>, t.PartialC<{
|
|
@@ -41069,6 +41051,7 @@ export declare const PrivacyCenterInput: t.PartialC<{
|
|
|
41069
41051
|
name: t.StringC;
|
|
41070
41052
|
url: t.StringC;
|
|
41071
41053
|
}>, t.PartialC<{
|
|
41054
|
+
/** Type override */
|
|
41072
41055
|
assets: t.ArrayC<t.TypeC<{
|
|
41073
41056
|
name: t.StringC;
|
|
41074
41057
|
url: t.StringC;
|
|
@@ -41081,7 +41064,7 @@ export declare const PrivacyCenterInput: t.PartialC<{
|
|
|
41081
41064
|
assets: t.ArrayC<t.TypeC<{
|
|
41082
41065
|
name: t.StringC;
|
|
41083
41066
|
url: t.StringC;
|
|
41084
|
-
}>>;
|
|
41067
|
+
}>>;
|
|
41085
41068
|
}>]>;
|
|
41086
41069
|
}>;
|
|
41087
41070
|
}>;
|
|
@@ -41515,12 +41498,6 @@ export declare const DataSiloInput: t.IntersectionC<[t.TypeC<{
|
|
|
41515
41498
|
PENDING: unknown;
|
|
41516
41499
|
REJECTED: unknown;
|
|
41517
41500
|
}>;
|
|
41518
|
-
/** Confidence label */
|
|
41519
|
-
confidenceLabel: t.KeyofC<{
|
|
41520
|
-
HIGH: unknown;
|
|
41521
|
-
MEDIUM: unknown;
|
|
41522
|
-
LOW: unknown;
|
|
41523
|
-
}>;
|
|
41524
41501
|
/** Confidence level of guess */
|
|
41525
41502
|
confidence: t.NumberC;
|
|
41526
41503
|
}>, t.PartialC<{
|
|
@@ -76251,12 +76228,6 @@ export declare const TranscendInput: t.PartialC<{
|
|
|
76251
76228
|
PENDING: unknown;
|
|
76252
76229
|
REJECTED: unknown;
|
|
76253
76230
|
}>;
|
|
76254
|
-
/** Confidence label */
|
|
76255
|
-
confidenceLabel: t.KeyofC<{
|
|
76256
|
-
HIGH: unknown;
|
|
76257
|
-
MEDIUM: unknown;
|
|
76258
|
-
LOW: unknown;
|
|
76259
|
-
}>;
|
|
76260
76231
|
/** Confidence level of guess */
|
|
76261
76232
|
confidence: t.NumberC;
|
|
76262
76233
|
}>, t.PartialC<{
|
|
@@ -88354,6 +88325,7 @@ export declare const TranscendInput: t.PartialC<{
|
|
|
88354
88325
|
name: t.StringC;
|
|
88355
88326
|
url: t.StringC;
|
|
88356
88327
|
}>, t.PartialC<{
|
|
88328
|
+
/** Type override */
|
|
88357
88329
|
assets: t.ArrayC<t.TypeC<{
|
|
88358
88330
|
name: t.StringC;
|
|
88359
88331
|
url: t.StringC;
|
|
@@ -88366,7 +88338,7 @@ export declare const TranscendInput: t.PartialC<{
|
|
|
88366
88338
|
assets: t.ArrayC<t.TypeC<{
|
|
88367
88339
|
name: t.StringC;
|
|
88368
88340
|
url: t.StringC;
|
|
88369
|
-
}>>;
|
|
88341
|
+
}>>;
|
|
88370
88342
|
}>]>;
|
|
88371
88343
|
}>;
|
|
88372
88344
|
}>;
|