@transcend-io/cli 6.13.2 → 6.14.1

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.
Files changed (123) hide show
  1. package/README.md +40 -13
  2. package/build/cli-sync-ot.d.ts +3 -0
  3. package/build/cli-sync-ot.d.ts.map +1 -0
  4. package/build/cli-sync-ot.js +56 -0
  5. package/build/cli-sync-ot.js.map +1 -0
  6. package/build/codecs.d.ts +46 -0
  7. package/build/codecs.d.ts.map +1 -1
  8. package/build/codecs.js +28 -1
  9. package/build/codecs.js.map +1 -1
  10. package/build/graphql/fetchAllRequestIdentifiers.d.ts +2 -0
  11. package/build/graphql/fetchAllRequestIdentifiers.d.ts.map +1 -1
  12. package/build/graphql/gqls/assessment.d.ts +1 -0
  13. package/build/graphql/gqls/assessment.d.ts.map +1 -1
  14. package/build/graphql/gqls/assessment.js +13 -1
  15. package/build/graphql/gqls/assessment.js.map +1 -1
  16. package/build/graphql/parseAssessmentRiskLogic.d.ts +3 -1
  17. package/build/graphql/parseAssessmentRiskLogic.d.ts.map +1 -1
  18. package/build/graphql/parseAssessmentRiskLogic.js +3 -1
  19. package/build/graphql/parseAssessmentRiskLogic.js.map +1 -1
  20. package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
  21. package/build/graphql/pullTranscendConfiguration.js +3 -1
  22. package/build/graphql/pullTranscendConfiguration.js.map +1 -1
  23. package/build/oneTrust/{getListOfAssessments.d.ts → endpoints/getListOfOneTrustAssessments.d.ts} +4 -3
  24. package/build/oneTrust/endpoints/getListOfOneTrustAssessments.d.ts.map +1 -0
  25. package/build/oneTrust/{getListOfAssessments.js → endpoints/getListOfOneTrustAssessments.js} +9 -7
  26. package/build/oneTrust/endpoints/getListOfOneTrustAssessments.js.map +1 -0
  27. package/build/oneTrust/{getAssessment.d.ts → endpoints/getOneTrustAssessment.d.ts} +4 -3
  28. package/build/oneTrust/endpoints/getOneTrustAssessment.d.ts.map +1 -0
  29. package/build/oneTrust/endpoints/getOneTrustAssessment.js +18 -0
  30. package/build/oneTrust/endpoints/getOneTrustAssessment.js.map +1 -0
  31. package/build/oneTrust/endpoints/getOneTrustRisk.d.ts +16 -0
  32. package/build/oneTrust/endpoints/getOneTrustRisk.d.ts.map +1 -0
  33. package/build/oneTrust/endpoints/getOneTrustRisk.js +18 -0
  34. package/build/oneTrust/endpoints/getOneTrustRisk.js.map +1 -0
  35. package/build/oneTrust/endpoints/getOneTrustUser.d.ts +16 -0
  36. package/build/oneTrust/endpoints/getOneTrustUser.d.ts.map +1 -0
  37. package/build/oneTrust/endpoints/getOneTrustUser.js +18 -0
  38. package/build/oneTrust/endpoints/getOneTrustUser.js.map +1 -0
  39. package/build/oneTrust/endpoints/index.d.ts +5 -0
  40. package/build/oneTrust/endpoints/index.d.ts.map +1 -0
  41. package/build/oneTrust/endpoints/index.js +21 -0
  42. package/build/oneTrust/endpoints/index.js.map +1 -0
  43. package/build/oneTrust/helpers/constants.d.ts +3 -0
  44. package/build/oneTrust/helpers/constants.d.ts.map +1 -0
  45. package/build/oneTrust/helpers/constants.js +15 -0
  46. package/build/oneTrust/helpers/constants.js.map +1 -0
  47. package/build/oneTrust/helpers/convertToEmptyStrings.d.ts +34 -0
  48. package/build/oneTrust/helpers/convertToEmptyStrings.d.ts.map +1 -0
  49. package/build/oneTrust/helpers/convertToEmptyStrings.js +58 -0
  50. package/build/oneTrust/helpers/convertToEmptyStrings.js.map +1 -0
  51. package/build/oneTrust/helpers/enrichOneTrustAssessment.d.ts +22 -0
  52. package/build/oneTrust/helpers/enrichOneTrustAssessment.d.ts.map +1 -0
  53. package/build/oneTrust/helpers/enrichOneTrustAssessment.js +95 -0
  54. package/build/oneTrust/helpers/enrichOneTrustAssessment.js.map +1 -0
  55. package/build/oneTrust/helpers/flattenOneTrustAssessment.d.ts +5 -0
  56. package/build/oneTrust/helpers/flattenOneTrustAssessment.d.ts.map +1 -0
  57. package/build/oneTrust/helpers/flattenOneTrustAssessment.js +136 -0
  58. package/build/oneTrust/helpers/flattenOneTrustAssessment.js.map +1 -0
  59. package/build/oneTrust/helpers/index.d.ts +4 -0
  60. package/build/oneTrust/helpers/index.d.ts.map +1 -0
  61. package/build/oneTrust/helpers/index.js +20 -0
  62. package/build/oneTrust/helpers/index.js.map +1 -0
  63. package/build/oneTrust/helpers/oneTrustAssessmentToCsv.d.ts +14 -0
  64. package/build/oneTrust/helpers/oneTrustAssessmentToCsv.d.ts.map +1 -0
  65. package/build/oneTrust/helpers/oneTrustAssessmentToCsv.js +25 -0
  66. package/build/oneTrust/helpers/oneTrustAssessmentToCsv.js.map +1 -0
  67. package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.d.ts +10 -0
  68. package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.d.ts.map +1 -0
  69. package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.js +38 -0
  70. package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.js.map +1 -0
  71. package/build/oneTrust/helpers/oneTrustAssessmentToJson.d.ts +18 -0
  72. package/build/oneTrust/helpers/oneTrustAssessmentToJson.d.ts.map +1 -0
  73. package/build/oneTrust/helpers/oneTrustAssessmentToJson.js +28 -0
  74. package/build/oneTrust/helpers/oneTrustAssessmentToJson.js.map +1 -0
  75. package/build/oneTrust/{parseCliPullOtArguments.d.ts → helpers/parseCliSyncOtArguments.d.ts} +11 -5
  76. package/build/oneTrust/helpers/parseCliSyncOtArguments.d.ts.map +1 -0
  77. package/build/oneTrust/helpers/parseCliSyncOtArguments.js +109 -0
  78. package/build/oneTrust/helpers/parseCliSyncOtArguments.js.map +1 -0
  79. package/build/oneTrust/{writeOneTrustAssessment.d.ts → helpers/syncOneTrustAssessmentToDisk.d.ts} +5 -7
  80. package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.d.ts.map +1 -0
  81. package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.js +49 -0
  82. package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.js.map +1 -0
  83. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.d.ts +25 -0
  84. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.d.ts.map +1 -0
  85. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.js +35 -0
  86. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.js.map +1 -0
  87. package/build/oneTrust/helpers/syncOneTrustAssessments.d.ts +22 -0
  88. package/build/oneTrust/helpers/syncOneTrustAssessments.d.ts.map +1 -0
  89. package/build/oneTrust/helpers/syncOneTrustAssessments.js +125 -0
  90. package/build/oneTrust/helpers/syncOneTrustAssessments.js.map +1 -0
  91. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.d.ts +2 -0
  92. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.d.ts.map +1 -0
  93. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.js +74 -0
  94. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.js.map +1 -0
  95. package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.d.ts +2 -0
  96. package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.d.ts.map +1 -0
  97. package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.js +592 -0
  98. package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.js.map +1 -0
  99. package/build/oneTrust/index.d.ts +2 -4
  100. package/build/oneTrust/index.d.ts.map +1 -1
  101. package/build/oneTrust/index.js +2 -4
  102. package/build/oneTrust/index.js.map +1 -1
  103. package/build/tsbuildinfo +1 -1
  104. package/package.json +4 -4
  105. package/build/cli-pull-ot.d.ts +0 -3
  106. package/build/cli-pull-ot.d.ts.map +0 -1
  107. package/build/cli-pull-ot.js +0 -55
  108. package/build/cli-pull-ot.js.map +0 -1
  109. package/build/oneTrust/getAssessment.d.ts.map +0 -1
  110. package/build/oneTrust/getAssessment.js +0 -15
  111. package/build/oneTrust/getAssessment.js.map +0 -1
  112. package/build/oneTrust/getListOfAssessments.d.ts.map +0 -1
  113. package/build/oneTrust/getListOfAssessments.js.map +0 -1
  114. package/build/oneTrust/parseCliPullOtArguments.d.ts.map +0 -1
  115. package/build/oneTrust/parseCliPullOtArguments.js +0 -67
  116. package/build/oneTrust/parseCliPullOtArguments.js.map +0 -1
  117. package/build/oneTrust/types.d.ts +0 -391
  118. package/build/oneTrust/types.d.ts.map +0 -1
  119. package/build/oneTrust/types.js +0 -4
  120. package/build/oneTrust/types.js.map +0 -1
  121. package/build/oneTrust/writeOneTrustAssessment.d.ts.map +0 -1
  122. package/build/oneTrust/writeOneTrustAssessment.js +0 -41
  123. package/build/oneTrust/writeOneTrustAssessment.js.map +0 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Transcend Inc.",
3
3
  "name": "@transcend-io/cli",
4
4
  "description": "Small package containing useful typescript utilities.",
5
- "version": "6.13.2",
5
+ "version": "6.14.1",
6
6
  "homepage": "https://github.com/transcend-io/cli",
7
7
  "repository": {
8
8
  "type": "git",
@@ -28,7 +28,6 @@
28
28
  "tr-pull-consent-metrics": "./build/cli-pull-consent-metrics.js",
29
29
  "tr-pull-consent-preferences": "./build/cli-pull-consent-preferences.js",
30
30
  "tr-pull-datapoints": "./build/cli-pull-datapoints.js",
31
- "tr-pull-ot": "./build/cli-pull-ot.js",
32
31
  "tr-push": "./build/cli-push.js",
33
32
  "tr-request-approve": "./build/cli-request-approve.js",
34
33
  "tr-request-cancel": "./build/cli-request-cancel.js",
@@ -42,6 +41,7 @@
42
41
  "tr-retry-request-data-silos": "./build/cli-retry-request-data-silos.js",
43
42
  "tr-scan-packages": "./build/cli-scan-packages.js",
44
43
  "tr-skip-request-data-silos": "./build/cli-skip-request-data-silos.js",
44
+ "tr-sync-ot": "./build/cli-sync-ot.js",
45
45
  "tr-update-consent-manager": "./build/cli-update-consent-manager-to-latest.js",
46
46
  "tr-upload-consent-preferences": "./build/cli-upload-consent-preferences.js",
47
47
  "tr-upload-cookies-from-csv": "./build/cli-upload-cookies-from-csv.js",
@@ -68,9 +68,9 @@
68
68
  "@transcend-io/handlebars-utils": "^1.1.0",
69
69
  "@transcend-io/internationalization": "^1.6.0",
70
70
  "@transcend-io/persisted-state": "^1.0.4",
71
- "@transcend-io/privacy-types": "^4.103.0",
71
+ "@transcend-io/privacy-types": "^4.105.4",
72
72
  "@transcend-io/secret-value": "^1.2.0",
73
- "@transcend-io/type-utils": "^1.5.0",
73
+ "@transcend-io/type-utils": "^1.8.0",
74
74
  "bluebird": "^3.7.2",
75
75
  "cli-progress": "^3.11.2",
76
76
  "colors": "^1.4.0",
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=cli-pull-ot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli-pull-ot.d.ts","sourceRoot":"","sources":["../src/cli-pull-ot.ts"],"names":[],"mappings":""}
@@ -1,55 +0,0 @@
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 logger_1 = require("./logger");
8
- const colors_1 = __importDefault(require("colors"));
9
- const oneTrust_1 = require("./oneTrust");
10
- const enums_1 = require("./enums");
11
- const bluebird_1 = require("bluebird");
12
- /**
13
- * Pull configuration from OneTrust down locally to disk
14
- *
15
- * Dev Usage:
16
- * yarn ts-node ./src/cli-pull-ot.ts --hostname=customer.my.onetrust.com --auth=$ONE_TRUST_OAUTH_TOKEN --file=./oneTrustAssessment.json
17
- *
18
- * Standard usage
19
- * yarn cli-pull-ot --hostname=customer.my.onetrust.com --auth=$ONE_TRUST_OAUTH_TOKEN --file=./oneTrustAssessment.json
20
- */
21
- async function main() {
22
- const { file, fileFormat, hostname, auth, resource, debug } = (0, oneTrust_1.parseCliPullOtArguments)();
23
- try {
24
- if (resource === enums_1.OneTrustPullResource.Assessments) {
25
- // use the hostname and auth token to instantiate a client to talk to OneTrust
26
- const oneTrust = (0, oneTrust_1.createOneTrustGotInstance)({ hostname, auth });
27
- // fetch the list of all assessments in the OneTrust organization
28
- const assessments = await (0, oneTrust_1.getListOfAssessments)({ oneTrust });
29
- // fetch details about one assessment at a time and sync to disk right away to avoid running out of memory
30
- await (0, bluebird_1.mapSeries)(assessments, async (assessment, index) => {
31
- logger_1.logger.info(`Fetching details about assessment ${index + 1} of ${assessments.length}...`);
32
- const assessmentDetails = await (0, oneTrust_1.getAssessment)({
33
- oneTrust,
34
- assessmentId: assessment.assessmentId,
35
- });
36
- (0, oneTrust_1.writeOneTrustAssessment)({
37
- assessment,
38
- assessmentDetails,
39
- index,
40
- total: assessments.length,
41
- file,
42
- fileFormat,
43
- });
44
- });
45
- }
46
- }
47
- catch (err) {
48
- logger_1.logger.error(colors_1.default.red(`An error occurred pulling the resource ${resource} from OneTrust: ${debug ? err.stack : err.message}`));
49
- process.exit(1);
50
- }
51
- // Indicate success
52
- logger_1.logger.info(colors_1.default.green(`Successfully synced OneTrust ${resource} to disk at "${file}"!`));
53
- }
54
- main();
55
- //# sourceMappingURL=cli-pull-ot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli-pull-ot.js","sourceRoot":"","sources":["../src/cli-pull-ot.ts"],"names":[],"mappings":";;;;;;AACA,qCAAkC;AAClC,oDAA4B;AAC5B,yCAMoB;AACpB,mCAA+C;AAC/C,uCAAqC;AAErC;;;;;;;;GAQG;AACH,KAAK,UAAU,IAAI;IACjB,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GACzD,IAAA,kCAAuB,GAAE,CAAC;IAE5B,IAAI;QACF,IAAI,QAAQ,KAAK,4BAAoB,CAAC,WAAW,EAAE;YACjD,8EAA8E;YAC9E,MAAM,QAAQ,GAAG,IAAA,oCAAyB,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YAE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AO,MAAM,aAAa;IAIxB,mCAAmC;cACzB,GAAG;IACb,2CAA2C;kBAC7B,MAAM;MAClB,QAAQ,6BAA6B,CAMxC,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAssessment = void 0;
4
- /**
5
- * Retrieve details about a particular assessment.
6
- *
7
- * @param param - the information about the OneTrust client and assessment to retrieve
8
- * @returns details about the assessment
9
- */
10
- const getAssessment = async ({ oneTrust, assessmentId, }) => {
11
- const { body } = await oneTrust.get(`api/assessment/v2/assessments/${assessmentId}/export?ExcludeSkippedQuestions=false`);
12
- return JSON.parse(body);
13
- };
14
- exports.getAssessment = getAssessment;
15
- //# sourceMappingURL=getAssessment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAssessment.js","sourceRoot":"","sources":["../../src/oneTrust/getAssessment.ts"],"names":[],"mappings":";;;AAGA;;;;;GAKG;AACI,MAAM,aAAa,GAAG,KAAK,EAAE,EAClC,QAAQ,EACR,YAAY,GAMb,EAA0C,EAAE;IAC3C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,GAAG,CACjC,iCAAiC,YAAY,uCAAuC,CACrF,CAAC;IAEF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAkC,CAAC;AAC3D,CAAC,CAAC;AAdW,QAAA,aAAa,iBAcxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getListOfAssessments.d.ts","sourceRoot":"","sources":["../../src/oneTrust/getListOfAssessments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EACL,kBAAkB,EAEnB,MAAM,SAAS,CAAC;AAEjB;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;IAG/B,mCAAmC;cACzB,GAAG;MACX,QAAQ,kBAAkB,EAAE,CA8B/B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getListOfAssessments.js","sourceRoot":"","sources":["../../src/oneTrust/getListOfAssessments.ts"],"names":[],"mappings":";;;AACA,sCAAmC;AAMnC;;;;;GAKG;AACI,MAAM,oBAAoB,GAAG,KAAK,EAAE,EACzC,QAAQ,GAIT,EAAiC,EAAE;;IAClC,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,aAAa,GAAG,CAAC,CAAC;IAEtB,MAAM,cAAc,GAAyB,EAAE,CAAC;IAEhD,eAAM,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC;IAChE,OAAO,WAAW,GAAG,UAAU,EAAE;QAC/B,4CAA4C;QAC5C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,GAAG,CACjC,sCAAsC,WAAW,YAAY,CAC9D,CAAC;QACF,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAClC,IAAI,CACmC,CAAC;QAC1C,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,CAAC,CAAC;QACxC,IAAI,WAAW,KAAK,CAAC,EAAE;YACrB,UAAU,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,UAAU,mCAAI,CAAC,CAAC;YACnC,aAAa,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,aAAa,mCAAI,CAAC,CAAC;SAC1C;QACD,WAAW,IAAI,CAAC,CAAC;QAEjB,eAAe;QACf,eAAM,CAAC,IAAI,CACT,WAAW,cAAc,CAAC,MAAM,OAAO,aAAa,eAAe,CACpE,CAAC;KACH;IAED,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAnCW,QAAA,oBAAoB,wBAmC/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseCliPullOtArguments.d.ts","sourceRoot":"","sources":["../../src/oneTrust/parseCliPullOtArguments.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAKpE,UAAU,oBAAoB;IAC5B,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,yDAAyD;IACzD,KAAK,EAAE,OAAO,CAAC;IACf,gEAAgE;IAChE,UAAU,EAAE,kBAAkB,CAAC;CAChC;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAAO,oBAsF1C,CAAC"}
@@ -1,67 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.parseCliPullOtArguments = void 0;
7
- const logger_1 = require("../logger");
8
- const colors_1 = __importDefault(require("colors"));
9
- const yargs_parser_1 = __importDefault(require("yargs-parser"));
10
- const enums_1 = require("../enums");
11
- const VALID_RESOURCES = Object.values(enums_1.OneTrustPullResource);
12
- const VALID_FILE_FORMATS = Object.values(enums_1.OneTrustFileFormat);
13
- /**
14
- * Parse the command line arguments
15
- *
16
- * @returns the parsed arguments
17
- */
18
- const parseCliPullOtArguments = () => {
19
- const { file, hostname, auth, resource, debug, fileFormat } = (0, yargs_parser_1.default)(process.argv.slice(2), {
20
- string: ['file', 'hostname', 'auth', 'resource', 'fileFormat'],
21
- boolean: ['debug'],
22
- default: {
23
- resource: enums_1.OneTrustPullResource.Assessments,
24
- fileFormat: enums_1.OneTrustFileFormat.Json,
25
- debug: false,
26
- },
27
- });
28
- if (!file) {
29
- logger_1.logger.error(colors_1.default.red('Missing required parameter "file". e.g. --file=./oneTrustAssessments.json'));
30
- return process.exit(1);
31
- }
32
- const splitFile = file.split('.');
33
- if (splitFile.length < 2) {
34
- logger_1.logger.error(colors_1.default.red('The "file" parameter has an invalid format. Expected a path with extensions. e.g. --file=./pathToFile.json.'));
35
- return process.exit(1);
36
- }
37
- if (splitFile.at(-1) !== fileFormat) {
38
- logger_1.logger.error(colors_1.default.red(`The "file" and "fileFormat" parameters must specify the same format! Got file=${file} and fileFormat=${fileFormat}`));
39
- return process.exit(1);
40
- }
41
- if (!hostname) {
42
- logger_1.logger.error(colors_1.default.red('Missing required parameter "hostname". e.g. --hostname=customer.my.onetrust.com'));
43
- return process.exit(1);
44
- }
45
- if (!auth) {
46
- logger_1.logger.error(colors_1.default.red('Missing required parameter "auth". e.g. --auth=$ONE_TRUST_AUTH_TOKEN'));
47
- return process.exit(1);
48
- }
49
- if (!VALID_RESOURCES.includes(resource)) {
50
- logger_1.logger.error(colors_1.default.red(`Received invalid resource value: "${resource}". Allowed: ${VALID_RESOURCES.join(',')}`));
51
- return process.exit(1);
52
- }
53
- if (!VALID_FILE_FORMATS.includes(fileFormat)) {
54
- logger_1.logger.error(colors_1.default.red(`Received invalid fileFormat value: "${fileFormat}". Allowed: ${VALID_FILE_FORMATS.join(',')}`));
55
- return process.exit(1);
56
- }
57
- return {
58
- file,
59
- hostname,
60
- auth,
61
- resource,
62
- debug,
63
- fileFormat,
64
- };
65
- };
66
- exports.parseCliPullOtArguments = parseCliPullOtArguments;
67
- //# sourceMappingURL=parseCliPullOtArguments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseCliPullOtArguments.js","sourceRoot":"","sources":["../../src/oneTrust/parseCliPullOtArguments.ts"],"names":[],"mappings":";;;;;;AAAA,sCAAmC;AACnC,oDAA4B;AAC5B,gEAAiC;AACjC,oCAAoE;AAEpE,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,4BAAoB,CAAC,CAAC;AAC5D,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,0BAAkB,CAAC,CAAC;AAiB7D;;;;GAIG;AACI,MAAM,uBAAu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CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACxB;IAED,IAAI,CAAC,IAAI,EAAE;QACT,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,sEAAsE,CACvE,CACF,CAAC;QACF,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACxB;IACD,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QACvC,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,qCAAqC,QAAQ,eAAe,eAAe,CAAC,IAAI,CAC9E,GAAG,CACJ,EAAE,CACJ,CACF,CAAC;QACF,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACxB;IACD,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;QAC5C,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,uCAAuC,UAAU,eAAe,kBAAkB,CAAC,IAAI,CACrF,GAAG,CACJ,EAAE,CACJ,CACF,CAAC;QACF,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACxB;IAED,OAAO;QACL,IAAI;QACJ,QAAQ;QACR,IAAI;QACJ,QAAQ;QACR,KAAK;QACL,UAAU;KACX,CAAC;AACJ,CAAC,CAAC;AAtFW,QAAA,uBAAuB,2BAsFlC"}
@@ -1,391 +0,0 @@
1
- export interface OneTrustAssessment {
2
- /** ID of the assessment. */
3
- assessmentId: string;
4
- /** Date that the assessment was created. */
5
- createDt: string;
6
- /** Overall risk score without considering existing controls. */
7
- inherentRiskScore: number;
8
- /** Date and time that the assessment was last updated. */
9
- lastUpdated: string;
10
- /** Name of the assessment. */
11
- name: string;
12
- /** Number assigned to the assessment. */
13
- number: number;
14
- /** Number of risks that are open on the assessment. */
15
- openRiskCount: number;
16
- /** Name of the organization group assigned to the assessment. */
17
- orgGroupName: string;
18
- /** Details about the inventory record which is the primary record of the assessment. */
19
- primaryInventoryDetails: {
20
- /** GUID of the inventory record. */
21
- primaryInventoryId: string;
22
- /** Name of the inventory record. */
23
- primaryInventoryName: string;
24
- /** Integer ID of the inventory record. */
25
- primaryInventoryNumber: number;
26
- };
27
- /** Overall risk score after considering existing controls. */
28
- residualRiskScore: number;
29
- /** Result of the assessment. NOTE: This field will be deprecated soon. Please reference the 'resultName' field instead. */
30
- result: 'Approved' | 'AutoClosed' | 'Rejected';
31
- /** ID of the result. */
32
- resultId: string;
33
- /** Name of the result. */
34
- resultName: string;
35
- /** State of the assessment. */
36
- state: 'ARCHIVE' | 'ACTIVE';
37
- /** Status of the assessment. */
38
- status: 'Not Started' | 'In Progress' | 'Under Review' | 'Completed';
39
- /** Name of the tag attached to the assessment. */
40
- tags: string[];
41
- /** The desired risk score. */
42
- targetRiskScore: number;
43
- /** ID used to launch an assessment using a specific version of a template. */
44
- templateId: string;
45
- /** Name of the template that is being used on the assessment. */
46
- templateName: string;
47
- /** ID used to launch an assessment using the latest published version of a template. */
48
- templateRootVersionId: string;
49
- }
50
- export interface OneTrustGetListOfAssessmentsResponse {
51
- /** The list of assessments in the current page. */
52
- content?: OneTrustAssessment[];
53
- /** Details about the pages being fetched */
54
- page?: {
55
- /** Page number of the results list (0…N). */
56
- number: number;
57
- /** Number of records per page (0…N). */
58
- size: number;
59
- /** Total number of elements. */
60
- totalElements: number;
61
- /** Total number of pages. */
62
- totalPages: number;
63
- };
64
- }
65
- interface OneTrustAssessmentQuestionOption {
66
- /** ID of the option. */
67
- id: string;
68
- /** Name of the option. */
69
- option: string;
70
- /** Order in which the option appears. */
71
- sequence: number;
72
- /** Attribute for which the option is available. */
73
- attributes: string | null;
74
- /** Type of option. */
75
- optionType: 'NOT_SURE' | 'NOT_APPLICABLE' | 'OTHERS' | 'DEFAULT';
76
- }
77
- interface OneTrustAssessmentQuestionRisks {
78
- /** ID of the question for which the risk was flagged. */
79
- questionId: string;
80
- /** ID of the flagged risk. */
81
- riskId: string;
82
- /** Level of risk flagged on the question. */
83
- level: number;
84
- /** Score of risk flagged on the question. */
85
- score: number;
86
- /** Probability of risk flagged on the question. */
87
- probability?: number;
88
- /** Impact Level of risk flagged on the question. */
89
- impactLevel?: number;
90
- }
91
- interface OneTrustAssessmentQuestionResponses {
92
- /** The responses */
93
- responses: {
94
- /** ID of the response. */
95
- responseId: string;
96
- /** Content of the response. */
97
- response: string;
98
- /** Type of response. */
99
- type: 'NOT_SURE' | 'JUSTIFICATION' | 'NOT_APPLICABLE' | 'DEFAULT' | 'OTHERS';
100
- /** Source from which the assessment is launched. */
101
- responseSourceType: 'LAUNCH_FROM_INVENTORY' | 'FORCE_CREATED_SOURCE' | null;
102
- /** Error associated with the response. */
103
- errorCode: 'ATTRIBUTE_DISABLED' | 'ATTRIBUTE_OPTION_DISABLED' | 'INVENTORY_NOT_EXISTS' | 'RELATED_INVENTORY_ATTRIBUTE_DISABLED' | 'DATA_ELEMENT_NOT_EXISTS' | 'DUPLICATE_INVENTORY' | null;
104
- /** This parameter is only applicable for inventory type responses (Example- ASSETS). */
105
- responseMap: object;
106
- /** Indicates whether the response is valid. */
107
- valid: boolean;
108
- /** The data subject */
109
- dataSubject: {
110
- /** The ID of the data subject */
111
- id: string;
112
- /** The ID of the data subject */
113
- name: string;
114
- };
115
- /** The data category */
116
- dataCategory: {
117
- /** The ID of the data category */
118
- id: string;
119
- /** The name of the data category */
120
- name: string;
121
- };
122
- /** The data element */
123
- dataElement: {
124
- /** The ID of the data element */
125
- id: string;
126
- /** The ID of the data element */
127
- name: string;
128
- };
129
- }[];
130
- /** Justification comments for the given response. */
131
- justification: string | null;
132
- }
133
- interface OneTrustAssessmentQuestion {
134
- /** The question */
135
- question: {
136
- /** ID of the question. */
137
- id: string;
138
- /** ID of the root version of the question. */
139
- rootVersionId: string;
140
- /** Order in which the question appears in the assessment. */
141
- sequence: number;
142
- /** Type of question in the assessment. */
143
- questionType: 'TEXTBOX' | 'MULTICHOICE' | 'YESNO' | 'DATE' | 'STATEMENT' | 'INVENTORY' | 'ATTRIBUTE' | 'PERSONAL_DATA';
144
- /** Indicates whether a response to the question is required. */
145
- required: boolean;
146
- /** Data element attributes that are directly updated by the question. */
147
- attributes: string;
148
- /** Short, descriptive name for the question. */
149
- friendlyName: string | null;
150
- /** Description of the question. */
151
- description: string | null;
152
- /** Tooltip text within a hint for the question. */
153
- hint: string;
154
- /** ID of the parent question. */
155
- parentQuestionId: string;
156
- /** Indicates whether the response to the question is prepopulated. */
157
- prePopulateResponse: boolean;
158
- /** Indicates whether the assessment is linked to inventory records. */
159
- linkAssessmentToInventory: boolean;
160
- /** The question options */
161
- options: OneTrustAssessmentQuestionOption[] | null;
162
- /** Indicates whether the question is valid. */
163
- valid: boolean;
164
- /** Type of question in the assessment. */
165
- type: 'TEXTBOX' | 'MULTICHOICE' | 'YESNO' | 'DATE' | 'STATEMENT' | 'INVENTORY' | 'ATTRIBUTE' | 'PERSONAL_DATA';
166
- /** Whether the response can be multi select */
167
- allowMultiSelect: boolean;
168
- /** The text of a question. */
169
- content: string;
170
- /** Indicates whether justification comments are required for the question. */
171
- requireJustification: boolean;
172
- };
173
- /** Indicates whether the question is hidden on the assessment. */
174
- hidden: boolean;
175
- /** Reason for locking the question in the assessment. */
176
- lockReason: 'LAUNCH_FROM_INVENTORY' | 'FORCE_CREATION_LOCK' | null;
177
- /** The copy errors */
178
- copyErrors: string | null;
179
- /** Indicates whether navigation rules are enabled for the question. */
180
- hasNavigationRules: boolean;
181
- /** The responses to this question */
182
- questionResponses: OneTrustAssessmentQuestionResponses[];
183
- /** The risks associated with this question */
184
- risks: OneTrustAssessmentQuestionRisks[] | null;
185
- /** List of IDs associated with the question root requests. */
186
- rootRequestInformationIds: string[];
187
- /** Number of attachments added to the question. */
188
- totalAttachments: number;
189
- /** IDs of the attachment(s) added to the question. */
190
- attachmentIds: string[];
191
- }
192
- interface OneTrustAssessmentSection {
193
- /** The Assessment section header */
194
- header: {
195
- /** ID of the section in the assessment. */
196
- sectionId: string;
197
- /** Name of the section. */
198
- name: string;
199
- /** Description of the section header. */
200
- description: string | null;
201
- /** Sequence of the section within the form */
202
- sequence: number;
203
- /** Indicates whether the section is hidden in the assessment. */
204
- hidden: boolean;
205
- /** IDs of invalid questions in the section. */
206
- invalidQuestionIds: string[];
207
- /** IDs of required but unanswered questions in the section. */
208
- requiredUnansweredQuestionIds: string[];
209
- /** IDs of required questions in the section. */
210
- requiredQuestionIds: string[];
211
- /** IDs of unanswered questions in the section. */
212
- unansweredQuestionIds: string[];
213
- /** IDs of effectiveness questions in the section. */
214
- effectivenessQuestionIds: string[];
215
- /** Number of invalid questions in the section. */
216
- invalidQuestionCount: number;
217
- /** The risk statistics */
218
- riskStatistics: null | {
219
- /** Maximum level of risk in the section. */
220
- maxRiskLevel: number;
221
- /** Number of risks in the section. */
222
- riskCount: number;
223
- /** ID of the section in the assessment. */
224
- sectionId: string;
225
- };
226
- /** Whether the section was submitted */
227
- submitted: boolean;
228
- };
229
- /** The questions within the section */
230
- questions: OneTrustAssessmentQuestion[];
231
- /** Indicates whether navigation rules are enabled for the question. */
232
- hasNavigationRules: boolean;
233
- /** Who submitted the section */
234
- submittedBy: null | {
235
- /** The ID of the user who submitted the section */
236
- id: string;
237
- /** THe name of the user who submitted the section */
238
- name: string;
239
- };
240
- /** Date of the submission */
241
- submittedDt: string | null;
242
- /** Name of the section. */
243
- name: string;
244
- /** Indicates whether navigation rules are enabled for the question. */
245
- hidden: boolean;
246
- /** Indicates whether the section is valid. */
247
- valid: boolean;
248
- /** ID of the section in an assessment. */
249
- sectionId: string;
250
- /** Sequence of the section within the form */
251
- sequence: number;
252
- /** Whether the section was submitted */
253
- submitted: boolean;
254
- /** Descriptions of the section. */
255
- description: string | null;
256
- }
257
- interface OneTrustApprover {
258
- /** ID of the user assigned as an approver. */
259
- id: string;
260
- /** ID of the workflow stage */
261
- workflowStageId: string;
262
- /** Name of the user assigned as an approver. */
263
- name: string;
264
- /** More details about the approver */
265
- approver: {
266
- /** ID of the user assigned as an approver. */
267
- id: string;
268
- /** Full name of the user assigned as an approver. */
269
- fullName: string;
270
- /** Email of the user assigned as an approver. */
271
- email: string | null;
272
- /** Whether the user assigned as an approver was deleted. */
273
- deleted: boolean;
274
- };
275
- /** Assessment approval status. */
276
- approvalState: 'OPEN' | 'APPROVED' | 'REJECTED';
277
- /** Date and time at which the assessment was approved. */
278
- approvedOn: string;
279
- /** ID of the assessment result. */
280
- resultId: string;
281
- /** Name of the assessment result. */
282
- resultName: string;
283
- /** Name key of the assessment result. */
284
- resultNameKey: string;
285
- }
286
- export interface OneTrustGetAssessmentResponse {
287
- /** List of users assigned as approvers of the assessment. */
288
- approvers: OneTrustApprover[];
289
- /** ID of an assessment. */
290
- assessmentId: string;
291
- /** Number assigned to an assessment. */
292
- assessmentNumber: number;
293
- /** Date and time at which the assessment was completed. */
294
- completedOn: string | null;
295
- /** Creator of the Assessment */
296
- createdBy: {
297
- /** The ID of the creator */
298
- id: string;
299
- /** The name of the creator */
300
- name: string;
301
- };
302
- /** Date and time at which the assessment was created. */
303
- createdDT: string;
304
- /** Date and time by which the assessment must be completed. */
305
- deadline: string | null;
306
- /** Description of the assessment. */
307
- description: string;
308
- /** Overall inherent risk score without considering the existing controls. */
309
- inherentRiskScore: number | null;
310
- /** Date and time at which the assessment was last updated. */
311
- lastUpdated: string;
312
- /** Number of risks captured on the assessment with a low risk level. */
313
- lowRisk: number;
314
- /** Number of risks captured on the assessment with a medium risk level. */
315
- mediumRisk: number;
316
- /** Number of risks captured on the assessment with a high risk level. */
317
- highRisk: number;
318
- /** Name of the assessment. */
319
- name: string;
320
- /** Number of open risks that have not been addressed. */
321
- openRiskCount: number;
322
- /** The organization group */
323
- orgGroup: {
324
- /** The ID of the organization group */
325
- id: string;
326
- /** The name of the organization group */
327
- name: string;
328
- };
329
- /** The primary record */
330
- primaryEntityDetails: {
331
- /** Unique ID for the primary record. */
332
- id: string;
333
- /** Name of the primary record. */
334
- name: string;
335
- /** The number associated with the primary record. */
336
- number: number;
337
- /** Name and number of the primary record. */
338
- displayName: string;
339
- }[];
340
- /** Type of inventory record designated as the primary record. */
341
- primaryRecordType: 'ASSETS' | 'PROCESSING_ACTIVITY' | 'VENDORS' | 'ENTITIES' | 'ASSESS_CONTROL' | 'ENGAGEMENT' | null;
342
- /** Overall risk score after considering existing controls. */
343
- residualRiskScore: number | null;
344
- /** The respondent */
345
- respondent: {
346
- /** The ID of the respondent */
347
- id: string;
348
- /** The name or email of the respondent */
349
- name: string;
350
- };
351
- /** The respondents */
352
- respondents: {
353
- /** The ID of the respondent */
354
- id: string;
355
- /** The name or email of the respondent */
356
- name: string;
357
- }[];
358
- /** Result of the assessment. */
359
- result: string | null;
360
- /** ID of the result. */
361
- resultId: string | null;
362
- /** Name of the result. */
363
- resultName: string | null;
364
- /** Risk level of the assessment. */
365
- riskLevel: 'None' | 'Low' | 'Medium' | 'High' | 'Very High';
366
- /** List of sections in the assessment. */
367
- sections: OneTrustAssessmentSection[];
368
- /** Status of the assessment. */
369
- status: 'Not Started' | 'In Progress' | 'Under Review' | 'Completed' | null;
370
- /** Date and time at which the assessment was submitted. */
371
- submittedOn: string | null;
372
- /** List of tags associated with the assessment. */
373
- tags: string[];
374
- /** The desired target risk score. */
375
- targetRiskScore: number | null;
376
- /** The template */
377
- template: {
378
- /** The ID of the template */
379
- id: string;
380
- /** The name of the template */
381
- name: string;
382
- };
383
- /** Number of total risks on the assessment. */
384
- totalRiskCount: number;
385
- /** Number of very high risks on the assessment. */
386
- veryHighRisk: number;
387
- /** Welcome text if any in the assessment. */
388
- welcomeText: string | null;
389
- }
390
- export {};
391
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/oneTrust/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,kBAAkB;IACjC,4BAA4B;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,gEAAg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0C;IAC1C,QAAQ,EAAE,yBAAyB,EAAE,CAAC;IACtC,gCAAgC;IAChC,MAAM,EAAE,aAAa,GAAG,aAAa,GAAG,cAAc,GAAG,WAAW,GAAG,IAAI,CAAC;IAC5E,2DAA2D;IAC3D,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mDAAmD;IACnD,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,qCAAqC;IACrC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,mBAAmB;IACnB,QAAQ,EAAE;QACR,6BAA6B;QAC7B,EAAE,EAAE,MAAM,CAAC;QACX,+BAA+B;QAC/B,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,+CAA+C;IAC/C,cAAc,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /* eslint-enable max-lines */
4
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/oneTrust/types.ts"],"names":[],"mappings":";;AAmbA,6BAA6B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"writeOneTrustAssessment.d.ts","sourceRoot":"","sources":["../../src/oneTrust/writeOneTrustAssessment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAG5E;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;IASlC,+CAA+C;UACzC,MAAM;IACZ,oCAAoC;gBACxB,kBAAkB;IAC9B,2BAA2B;gBACf,kBAAkB;IAC9B,mCAAmC;uBAChB,6BAA6B;IAChD,4DAA4D;WACrD,MAAM;IACb,yDAAyD;WAClD,MAAM;MACX,IA+BH,CAAC"}