@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
|
@@ -1,592 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
/* eslint-disable max-lines */
|
|
30
|
-
const chai_1 = __importStar(require("chai"));
|
|
31
|
-
const deep_equal_in_any_order_1 = __importDefault(require("deep-equal-in-any-order"));
|
|
32
|
-
const flattenOneTrustAssessment_1 = require("../flattenOneTrustAssessment");
|
|
33
|
-
const type_utils_1 = require("@transcend-io/type-utils");
|
|
34
|
-
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
35
|
-
chai_1.default.use(deep_equal_in_any_order_1.default);
|
|
36
|
-
describe('flattenOneTrustAssessment', () => {
|
|
37
|
-
const defaultQuestion = (0, type_utils_1.createDefaultCodec)(privacy_types_1.OneTrustEnrichedAssessmentQuestion);
|
|
38
|
-
const defaultNestedQuestion = (0, type_utils_1.createDefaultCodec)(privacy_types_1.OneTrustAssessmentNestedQuestion);
|
|
39
|
-
describe('flattenOneTrustSections', () => {
|
|
40
|
-
const defaultSection = (0, type_utils_1.createDefaultCodec)(privacy_types_1.OneTrustEnrichedAssessmentSection);
|
|
41
|
-
const defaultSectionHeader = (0, type_utils_1.createDefaultCodec)(privacy_types_1.OneTrustAssessmentSectionHeader);
|
|
42
|
-
it('should correctly flatten the section headers', () => {
|
|
43
|
-
const sections = [
|
|
44
|
-
{
|
|
45
|
-
...defaultSection,
|
|
46
|
-
header: {
|
|
47
|
-
...defaultSectionHeader,
|
|
48
|
-
sectionId: 'section-0-id',
|
|
49
|
-
name: 'section-0',
|
|
50
|
-
riskStatistics: {
|
|
51
|
-
maxRiskLevel: 10,
|
|
52
|
-
riskCount: 5,
|
|
53
|
-
sectionId: 'section-0-id',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
...defaultSection,
|
|
59
|
-
header: {
|
|
60
|
-
...defaultSectionHeader,
|
|
61
|
-
sectionId: 'section-1-id',
|
|
62
|
-
name: 'section-1',
|
|
63
|
-
riskStatistics: null,
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
];
|
|
67
|
-
const { sections_name, sections_sectionId, sections_riskStatistics_maxRiskLevel, sections_riskStatistics_riskCount, sections_riskStatistics_sectionId, } = (0, flattenOneTrustAssessment_1.flattenOneTrustSections)(sections);
|
|
68
|
-
(0, chai_1.expect)(sections_name).to.equal('section-0,section-1');
|
|
69
|
-
(0, chai_1.expect)(sections_sectionId).to.equal('section-0-id,section-1-id');
|
|
70
|
-
(0, chai_1.expect)(sections_riskStatistics_maxRiskLevel).to.equal('10,');
|
|
71
|
-
(0, chai_1.expect)(sections_riskStatistics_riskCount).to.equal('5,');
|
|
72
|
-
(0, chai_1.expect)(sections_riskStatistics_sectionId).to.equal('section-0-id,');
|
|
73
|
-
});
|
|
74
|
-
it('should correctly flatten the section questions', () => {
|
|
75
|
-
const sections = [
|
|
76
|
-
{
|
|
77
|
-
...defaultSection,
|
|
78
|
-
questions: [
|
|
79
|
-
{
|
|
80
|
-
...defaultQuestion,
|
|
81
|
-
question: {
|
|
82
|
-
...defaultNestedQuestion,
|
|
83
|
-
content: 'section0-question0',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
...defaultSection,
|
|
90
|
-
questions: [],
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
...defaultSection,
|
|
94
|
-
questions: [
|
|
95
|
-
{
|
|
96
|
-
...defaultQuestion,
|
|
97
|
-
question: {
|
|
98
|
-
...defaultNestedQuestion,
|
|
99
|
-
content: 'section1-question0',
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
},
|
|
104
|
-
];
|
|
105
|
-
const result = (0, flattenOneTrustAssessment_1.flattenOneTrustSections)(sections);
|
|
106
|
-
// should ignore sections without questions
|
|
107
|
-
const { sections_questions_content } = result;
|
|
108
|
-
(0, chai_1.expect)(sections_questions_content).to.equal('[section0-question0],[section1-question0]');
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
describe('flattenOneTrustQuestions', () => {
|
|
112
|
-
const defaultQuestionResponses = (0, type_utils_1.createDefaultCodec)(privacy_types_1.OneTrustAssessmentQuestionResponses);
|
|
113
|
-
const defaultResponses = (0, type_utils_1.createDefaultCodec)(privacy_types_1.OneTrustAssessmentResponses);
|
|
114
|
-
const defaultQuestionOption = (0, type_utils_1.createDefaultCodec)(privacy_types_1.OneTrustAssessmentQuestionOption);
|
|
115
|
-
const defaultRisk = (0, type_utils_1.createDefaultCodec)(privacy_types_1.OneTrustEnrichedRisk);
|
|
116
|
-
const defaultRiskCategory = (0, type_utils_1.createDefaultCodec)(privacy_types_1.OneTrustRiskCategories);
|
|
117
|
-
it('should return an empty flat object on empty list input', () => {
|
|
118
|
-
const questions = [[]];
|
|
119
|
-
const result = (0, flattenOneTrustAssessment_1.flattenOneTrustQuestions)(questions, 'sections');
|
|
120
|
-
(0, chai_1.expect)(result).to.deep.equal({});
|
|
121
|
-
});
|
|
122
|
-
it('should correctly flatten questions responses', () => {
|
|
123
|
-
/**
|
|
124
|
-
* the 1st section has
|
|
125
|
-
* - 1st question with 2 question responses with 1 responses
|
|
126
|
-
* - 2nd question with 1 questionResponses with 0 responses
|
|
127
|
-
* - 3rd question with 0 questionResponses
|
|
128
|
-
* the second section has
|
|
129
|
-
* - 1st question with 1 questionResponses with 0 responses
|
|
130
|
-
* - 2nd question with 0 questionResponses
|
|
131
|
-
* the third section has
|
|
132
|
-
* - 1st question with 0 question responses
|
|
133
|
-
*/
|
|
134
|
-
const allSectionQuestions = [
|
|
135
|
-
// 1st section
|
|
136
|
-
[
|
|
137
|
-
// 1st section - 1st question
|
|
138
|
-
{
|
|
139
|
-
...defaultQuestion,
|
|
140
|
-
questionResponses: [
|
|
141
|
-
{
|
|
142
|
-
...defaultQuestionResponses[0],
|
|
143
|
-
responses: [
|
|
144
|
-
{
|
|
145
|
-
...defaultResponses[0],
|
|
146
|
-
response: 's1q1r1',
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
...defaultQuestionResponses[0],
|
|
152
|
-
responses: [
|
|
153
|
-
{
|
|
154
|
-
...defaultResponses[0],
|
|
155
|
-
response: 's1q1r2',
|
|
156
|
-
},
|
|
157
|
-
],
|
|
158
|
-
},
|
|
159
|
-
],
|
|
160
|
-
},
|
|
161
|
-
// 1st section - 2nd question
|
|
162
|
-
{
|
|
163
|
-
...defaultQuestion,
|
|
164
|
-
questionResponses: [
|
|
165
|
-
{
|
|
166
|
-
...defaultQuestionResponses[0],
|
|
167
|
-
responses: [],
|
|
168
|
-
},
|
|
169
|
-
],
|
|
170
|
-
},
|
|
171
|
-
// 1st section - 3rd question
|
|
172
|
-
{
|
|
173
|
-
...defaultQuestion,
|
|
174
|
-
questionResponses: [],
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
// second section
|
|
178
|
-
[
|
|
179
|
-
// 2nd section - 1st question
|
|
180
|
-
{
|
|
181
|
-
...defaultQuestion,
|
|
182
|
-
questionResponses: [
|
|
183
|
-
{
|
|
184
|
-
...defaultQuestionResponses[0],
|
|
185
|
-
responses: [],
|
|
186
|
-
},
|
|
187
|
-
],
|
|
188
|
-
},
|
|
189
|
-
// 2nd section - 2nd question
|
|
190
|
-
{
|
|
191
|
-
...defaultQuestion,
|
|
192
|
-
questionResponses: [],
|
|
193
|
-
},
|
|
194
|
-
],
|
|
195
|
-
// third section
|
|
196
|
-
[
|
|
197
|
-
// 3nd section - 2nd question
|
|
198
|
-
{
|
|
199
|
-
...defaultQuestion,
|
|
200
|
-
questionResponses: [],
|
|
201
|
-
},
|
|
202
|
-
],
|
|
203
|
-
];
|
|
204
|
-
const { sections_questions_questionResponses_response } = (0, flattenOneTrustAssessment_1.flattenOneTrustQuestions)(allSectionQuestions, 'sections');
|
|
205
|
-
// 1st section has 3 questions, the first with 2 answers
|
|
206
|
-
const section1 = '[[s1q1r1,s1q1r2],[],[]]';
|
|
207
|
-
// 2nd section has 2 questions, none with answers.
|
|
208
|
-
const section2 = '[[],[]]';
|
|
209
|
-
// 2nd section has 1 question without answers
|
|
210
|
-
const section3 = '[[]]';
|
|
211
|
-
(0, chai_1.expect)(sections_questions_questionResponses_response).to.equal(`${section1},${section2},${section3}`);
|
|
212
|
-
});
|
|
213
|
-
it('should correctly flatten questions risks', () => {
|
|
214
|
-
const allSectionQuestions = [
|
|
215
|
-
// section 1
|
|
216
|
-
[
|
|
217
|
-
// 1st section - 1st question
|
|
218
|
-
{
|
|
219
|
-
...defaultQuestion,
|
|
220
|
-
risks: [
|
|
221
|
-
{
|
|
222
|
-
...defaultRisk,
|
|
223
|
-
name: 's1q1r1',
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
...defaultRisk,
|
|
227
|
-
name: 's1q1r2',
|
|
228
|
-
},
|
|
229
|
-
],
|
|
230
|
-
},
|
|
231
|
-
// 1st section - 2nd question
|
|
232
|
-
{
|
|
233
|
-
...defaultQuestion,
|
|
234
|
-
risks: [
|
|
235
|
-
{
|
|
236
|
-
...defaultRisk,
|
|
237
|
-
name: 's1q2r1',
|
|
238
|
-
},
|
|
239
|
-
],
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
// 1st section - 3rd question
|
|
243
|
-
...defaultQuestion,
|
|
244
|
-
risks: [],
|
|
245
|
-
},
|
|
246
|
-
// 1st section - 4th question
|
|
247
|
-
{
|
|
248
|
-
...defaultQuestion,
|
|
249
|
-
risks: null,
|
|
250
|
-
},
|
|
251
|
-
],
|
|
252
|
-
// section 2
|
|
253
|
-
[
|
|
254
|
-
{
|
|
255
|
-
// 2nd section - 1st question
|
|
256
|
-
...defaultQuestion,
|
|
257
|
-
risks: [],
|
|
258
|
-
},
|
|
259
|
-
// 2nd section - 2nd question
|
|
260
|
-
{
|
|
261
|
-
...defaultQuestion,
|
|
262
|
-
risks: [
|
|
263
|
-
{
|
|
264
|
-
...defaultRisk,
|
|
265
|
-
name: 's2q2r1',
|
|
266
|
-
},
|
|
267
|
-
],
|
|
268
|
-
},
|
|
269
|
-
// 1st section - 3rd question
|
|
270
|
-
{
|
|
271
|
-
...defaultQuestion,
|
|
272
|
-
risks: null,
|
|
273
|
-
},
|
|
274
|
-
],
|
|
275
|
-
// section 3
|
|
276
|
-
[
|
|
277
|
-
{
|
|
278
|
-
// 3rd - 1st question
|
|
279
|
-
...defaultQuestion,
|
|
280
|
-
risks: [],
|
|
281
|
-
},
|
|
282
|
-
// 3rd - 2nd question
|
|
283
|
-
{
|
|
284
|
-
...defaultQuestion,
|
|
285
|
-
risks: null,
|
|
286
|
-
},
|
|
287
|
-
],
|
|
288
|
-
// section 4
|
|
289
|
-
[
|
|
290
|
-
// 4rth section - 1st question
|
|
291
|
-
{
|
|
292
|
-
...defaultQuestion,
|
|
293
|
-
risks: null,
|
|
294
|
-
},
|
|
295
|
-
],
|
|
296
|
-
];
|
|
297
|
-
const { sections_questions_risks_name } = (0, flattenOneTrustAssessment_1.flattenOneTrustQuestions)(allSectionQuestions, 'sections');
|
|
298
|
-
// 1st section has 4 questions, the 1st with 2 risks, the 2nd with 1, and the rest with none
|
|
299
|
-
const section1 = '[[s1q1r1,s1q1r2],[s1q2r1],[],[]]';
|
|
300
|
-
// 2nd section has 3 questions, one with one risk
|
|
301
|
-
const section2 = '[[],[s2q2r1],[]]';
|
|
302
|
-
// 4th section has 2 questions, none with risk
|
|
303
|
-
const section3 = '[[],[]]';
|
|
304
|
-
// 4th section has 1 question without risk
|
|
305
|
-
const section4 = '[[]]';
|
|
306
|
-
(0, chai_1.expect)(sections_questions_risks_name).to.equal(`${section1},${section2},${section3},${section4}`);
|
|
307
|
-
});
|
|
308
|
-
it('should correctly flatten questions risks categories', () => {
|
|
309
|
-
const allSectionQuestions = [
|
|
310
|
-
// section 0
|
|
311
|
-
[
|
|
312
|
-
// question 0
|
|
313
|
-
{
|
|
314
|
-
...defaultQuestion,
|
|
315
|
-
risks: [
|
|
316
|
-
// risk 0
|
|
317
|
-
{
|
|
318
|
-
...defaultRisk,
|
|
319
|
-
categories: [
|
|
320
|
-
// category 0
|
|
321
|
-
{
|
|
322
|
-
...defaultRiskCategory[0],
|
|
323
|
-
name: 's010r0c0',
|
|
324
|
-
},
|
|
325
|
-
// category 1
|
|
326
|
-
{
|
|
327
|
-
...defaultRiskCategory[0],
|
|
328
|
-
name: 's010r0c1',
|
|
329
|
-
},
|
|
330
|
-
],
|
|
331
|
-
},
|
|
332
|
-
// risk 1
|
|
333
|
-
{
|
|
334
|
-
...defaultRisk,
|
|
335
|
-
categories: [],
|
|
336
|
-
},
|
|
337
|
-
],
|
|
338
|
-
},
|
|
339
|
-
// question 1
|
|
340
|
-
{
|
|
341
|
-
...defaultQuestion,
|
|
342
|
-
risks: [
|
|
343
|
-
// risk 1
|
|
344
|
-
{
|
|
345
|
-
...defaultRisk,
|
|
346
|
-
// empty categories
|
|
347
|
-
categories: [],
|
|
348
|
-
},
|
|
349
|
-
// risk 2
|
|
350
|
-
{
|
|
351
|
-
...defaultRisk,
|
|
352
|
-
// empty categories
|
|
353
|
-
categories: [],
|
|
354
|
-
},
|
|
355
|
-
],
|
|
356
|
-
},
|
|
357
|
-
// question 2
|
|
358
|
-
{
|
|
359
|
-
...defaultQuestion,
|
|
360
|
-
risks: [
|
|
361
|
-
// risk 0
|
|
362
|
-
{
|
|
363
|
-
...defaultRisk,
|
|
364
|
-
// empty categories
|
|
365
|
-
categories: [],
|
|
366
|
-
},
|
|
367
|
-
// risk 1
|
|
368
|
-
{
|
|
369
|
-
...defaultRisk,
|
|
370
|
-
categories: [
|
|
371
|
-
// category 0
|
|
372
|
-
{
|
|
373
|
-
...defaultRiskCategory[0],
|
|
374
|
-
name: 's0q2r1c0',
|
|
375
|
-
},
|
|
376
|
-
],
|
|
377
|
-
},
|
|
378
|
-
// risk 2
|
|
379
|
-
{
|
|
380
|
-
...defaultRisk,
|
|
381
|
-
// empty categories
|
|
382
|
-
categories: [],
|
|
383
|
-
},
|
|
384
|
-
],
|
|
385
|
-
},
|
|
386
|
-
// question 3
|
|
387
|
-
{
|
|
388
|
-
...defaultQuestion,
|
|
389
|
-
// empty risks
|
|
390
|
-
risks: [],
|
|
391
|
-
},
|
|
392
|
-
// TODO: test with null risks
|
|
393
|
-
],
|
|
394
|
-
// section 1
|
|
395
|
-
[
|
|
396
|
-
// question 0
|
|
397
|
-
{
|
|
398
|
-
...defaultQuestion,
|
|
399
|
-
risks: [
|
|
400
|
-
// risk 0
|
|
401
|
-
{
|
|
402
|
-
...defaultRisk,
|
|
403
|
-
// empty categories
|
|
404
|
-
categories: [],
|
|
405
|
-
},
|
|
406
|
-
],
|
|
407
|
-
},
|
|
408
|
-
],
|
|
409
|
-
// section 2
|
|
410
|
-
[
|
|
411
|
-
// question 0
|
|
412
|
-
{
|
|
413
|
-
...defaultQuestion,
|
|
414
|
-
// empty risks
|
|
415
|
-
risks: [],
|
|
416
|
-
},
|
|
417
|
-
// question 1
|
|
418
|
-
{
|
|
419
|
-
...defaultQuestion,
|
|
420
|
-
// empty risks
|
|
421
|
-
risks: [],
|
|
422
|
-
},
|
|
423
|
-
],
|
|
424
|
-
// section 3
|
|
425
|
-
[
|
|
426
|
-
// question 0
|
|
427
|
-
{
|
|
428
|
-
...defaultQuestion,
|
|
429
|
-
risks: [
|
|
430
|
-
{
|
|
431
|
-
...defaultRisk,
|
|
432
|
-
// empty categories
|
|
433
|
-
categories: [],
|
|
434
|
-
},
|
|
435
|
-
],
|
|
436
|
-
},
|
|
437
|
-
// question 1
|
|
438
|
-
{
|
|
439
|
-
...defaultQuestion,
|
|
440
|
-
// empty risks
|
|
441
|
-
risks: [],
|
|
442
|
-
},
|
|
443
|
-
],
|
|
444
|
-
];
|
|
445
|
-
// section 0 question 0 has 2 risks, the first with 2 categories
|
|
446
|
-
const section0Question0 = '[[s010r0c0,s010r0c1],[]]';
|
|
447
|
-
// section 0 question 1 has 2 risks, none with categories
|
|
448
|
-
const section0Question1 = '[[],[]]';
|
|
449
|
-
// section 0 question 2 has 3 risks, the middle one with 1 category
|
|
450
|
-
const section0Question2 = '[[],[s0q2r1c0],[]]';
|
|
451
|
-
// section 0 question 3 has 0 risks
|
|
452
|
-
const section0Question3 = '[]';
|
|
453
|
-
const section0 = `[${section0Question0},${section0Question1},${section0Question2},${section0Question3}]`;
|
|
454
|
-
// section 1 question 0 has 1 risk with empty categories
|
|
455
|
-
const section1question0 = '[[]]';
|
|
456
|
-
const section1 = `[${section1question0}]`;
|
|
457
|
-
// section 2 questions have 0 risk
|
|
458
|
-
const section2 = '[]';
|
|
459
|
-
// section 3 question 0 has 1 risk with empty categories
|
|
460
|
-
const section3question0 = '[[]]';
|
|
461
|
-
// section 3 question 1 has 0 risks
|
|
462
|
-
const section3question1 = '[]';
|
|
463
|
-
const section3 = `[${section3question0},${section3question1}]`;
|
|
464
|
-
const { sections_questions_risks_categories_name } = (0, flattenOneTrustAssessment_1.flattenOneTrustQuestions)(allSectionQuestions, 'sections');
|
|
465
|
-
(0, chai_1.expect)(sections_questions_risks_categories_name).to.equal(`${section0},${section1},${section2},${section3}`);
|
|
466
|
-
});
|
|
467
|
-
it('should correctly flatten nested questions', () => {
|
|
468
|
-
const allSectionQuestions = [
|
|
469
|
-
// section 1 has 2 questions
|
|
470
|
-
[
|
|
471
|
-
{
|
|
472
|
-
...defaultQuestion,
|
|
473
|
-
question: {
|
|
474
|
-
...defaultNestedQuestion,
|
|
475
|
-
sequence: 0,
|
|
476
|
-
questionType: 'ATTRIBUTE',
|
|
477
|
-
content: 's1q1',
|
|
478
|
-
},
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
...defaultQuestion,
|
|
482
|
-
question: {
|
|
483
|
-
...defaultNestedQuestion,
|
|
484
|
-
sequence: 1,
|
|
485
|
-
questionType: 'ENGAGEMENT',
|
|
486
|
-
content: 's1q2',
|
|
487
|
-
},
|
|
488
|
-
},
|
|
489
|
-
],
|
|
490
|
-
// section 2 has 0 questions
|
|
491
|
-
[],
|
|
492
|
-
];
|
|
493
|
-
const { sections_questions_sequence, sections_questions_questionType, sections_questions_content, } = (0, flattenOneTrustAssessment_1.flattenOneTrustQuestions)(allSectionQuestions, 'sections');
|
|
494
|
-
(0, chai_1.expect)(sections_questions_sequence).to.equal('[0,1],[]');
|
|
495
|
-
(0, chai_1.expect)(sections_questions_questionType).to.equal('[ATTRIBUTE,ENGAGEMENT],[]');
|
|
496
|
-
(0, chai_1.expect)(sections_questions_content).to.equal('[s1q1,s1q2],[]');
|
|
497
|
-
});
|
|
498
|
-
it('should correctly flatten nested question options', () => {
|
|
499
|
-
const allSectionQuestions = [
|
|
500
|
-
// 1st section
|
|
501
|
-
[
|
|
502
|
-
// 1st section - 1st question
|
|
503
|
-
{
|
|
504
|
-
...defaultQuestion,
|
|
505
|
-
question: {
|
|
506
|
-
...defaultNestedQuestion,
|
|
507
|
-
options: [
|
|
508
|
-
{
|
|
509
|
-
...defaultQuestionOption,
|
|
510
|
-
option: 's1q1o1',
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
...defaultQuestionOption,
|
|
514
|
-
option: 's1q1o2',
|
|
515
|
-
},
|
|
516
|
-
],
|
|
517
|
-
},
|
|
518
|
-
},
|
|
519
|
-
// 1st section - 2nd question
|
|
520
|
-
{
|
|
521
|
-
...defaultQuestion,
|
|
522
|
-
question: {
|
|
523
|
-
...defaultNestedQuestion,
|
|
524
|
-
options: [
|
|
525
|
-
{
|
|
526
|
-
...defaultQuestionOption,
|
|
527
|
-
option: 's1q2o1',
|
|
528
|
-
},
|
|
529
|
-
],
|
|
530
|
-
},
|
|
531
|
-
},
|
|
532
|
-
// 1st section - 3rd question
|
|
533
|
-
{
|
|
534
|
-
...defaultQuestion,
|
|
535
|
-
question: {
|
|
536
|
-
...defaultNestedQuestion,
|
|
537
|
-
options: [],
|
|
538
|
-
},
|
|
539
|
-
},
|
|
540
|
-
// 1st section - 4th question
|
|
541
|
-
{
|
|
542
|
-
...defaultQuestion,
|
|
543
|
-
question: {
|
|
544
|
-
...defaultNestedQuestion,
|
|
545
|
-
options: null,
|
|
546
|
-
},
|
|
547
|
-
},
|
|
548
|
-
],
|
|
549
|
-
// 2nd section
|
|
550
|
-
[
|
|
551
|
-
// 2nd section - 1st question
|
|
552
|
-
{
|
|
553
|
-
...defaultQuestion,
|
|
554
|
-
question: {
|
|
555
|
-
...defaultNestedQuestion,
|
|
556
|
-
options: [],
|
|
557
|
-
},
|
|
558
|
-
},
|
|
559
|
-
// 2nd section - 2nd question
|
|
560
|
-
{
|
|
561
|
-
...defaultQuestion,
|
|
562
|
-
question: {
|
|
563
|
-
...defaultNestedQuestion,
|
|
564
|
-
options: null,
|
|
565
|
-
},
|
|
566
|
-
},
|
|
567
|
-
],
|
|
568
|
-
// 3rd section
|
|
569
|
-
[
|
|
570
|
-
// 3rd section - 1st question
|
|
571
|
-
{
|
|
572
|
-
...defaultQuestion,
|
|
573
|
-
question: {
|
|
574
|
-
...defaultNestedQuestion,
|
|
575
|
-
options: null,
|
|
576
|
-
},
|
|
577
|
-
},
|
|
578
|
-
],
|
|
579
|
-
];
|
|
580
|
-
const { sections_questions_options_option } = (0, flattenOneTrustAssessment_1.flattenOneTrustQuestions)(allSectionQuestions, 'sections');
|
|
581
|
-
// 1st section has 4 questions, the first with 2 options, the second with 1 option,
|
|
582
|
-
const section1 = '[[s1q1o1,s1q1o2],[s1q2o1],[],[]]';
|
|
583
|
-
// 2nd section has 2 questions, none with options
|
|
584
|
-
const section2 = '[[],[]]';
|
|
585
|
-
// 3rd section has 1 question without options
|
|
586
|
-
const section3 = '[[]]';
|
|
587
|
-
(0, chai_1.expect)(sections_questions_options_option).to.equal(`${section1},${section2},${section3}`);
|
|
588
|
-
});
|
|
589
|
-
});
|
|
590
|
-
});
|
|
591
|
-
/* eslint-enable max-lines */
|
|
592
|
-
//# sourceMappingURL=flattenOneTrustQuestionResponses.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flattenOneTrustQuestionResponses.test.js","sourceRoot":"","sources":["../../../../src/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,6CAAoC;AACpC,sFAA0D;AAE1D,4EAGsC;AACtC,yDAA8D;AAC9D,+DAUqC;AAErC,cAAI,CAAC,GAAG,CAAC,iCAAmB,CAAC,CAAC;AAE9B,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,MAAM,eAAe,GACnB,IAAA,+BAAkB,EAAC,kDAAkC,CAAC,CAAC;IACzD,MAAM,qBAAqB,GACzB,IAAA,+BAAkB,EAAC,gDAAgC,CAAC,CAAC;IAEvD,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;QACvC,MAAM,cAAc,GAClB,IAAA,+BAAkB,EAAC,iDAAiC,CAAC,CAAC;QACxD,MAAM,oBAAoB,GACxB,IAAA,+BAAkB,EAAC,+CAA+B,CAAC,CAAC;QAEtD,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;YACtD,MAAM,QAAQ,GAAwC;gBACpD;oBACE,GAAG,cAAc;oBACjB,MAAM,EAAE;wBACN,GAAG,oBAAoB;wBACvB,SAAS,EAAE,cAAc;wBACzB,IAAI,EAAE,WAAW;wBACjB,cAAc,EAAE;4BACd,YAAY,EAAE,EAAE;4BAChB,SAAS,EAAE,CAAC;4BACZ,SAAS,EAAE,cAAc;yBAC1B;qBACF;iBACF;gBACD;oBACE,GAAG,cAAc;oBACjB,MAAM,EAAE;wBACN,GAAG,oBAAoB;wBACvB,SAAS,EAAE,cAAc;wBACzB,IAAI,EAAE,WAAW;wBACjB,cAAc,EAAE,IAAI;qBACrB;iBACF;aACF,CAAC;YAEF,MAAM,EACJ,aAAa,EACb,kBAAkB,EAClB,oCAAoC,EACpC,iCAAiC,EACjC,iCAAiC,GAClC,GAAG,IAAA,mDAAuB,EAAC,QAAQ,CAAC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