@transcend-io/cli
Advanced tools
Comparing version 4.2.2 to 4.3.0
@@ -209,2 +209,8 @@ import * as t from 'io-ts'; | ||
/** | ||
* Configure the category of data that this datapoint should be grouped by in a data access request. | ||
* | ||
* @see https://docs.transcend.io/docs/privacy-requests/connecting-data-silos/saas-tools#configuring-an-integration | ||
*/ | ||
'data-collection-tag': t.StringC; | ||
/** | ||
* The SQL queries that should be run for that datapoint in a privacy request. | ||
@@ -417,2 +423,8 @@ * | ||
/** | ||
* Configure the category of data that this datapoint should be grouped by in a data access request. | ||
* | ||
* @see https://docs.transcend.io/docs/privacy-requests/connecting-data-silos/saas-tools#configuring-an-integration | ||
*/ | ||
'data-collection-tag': t.StringC; | ||
/** | ||
* The SQL queries that should be run for that datapoint in a privacy request. | ||
@@ -515,2 +527,5 @@ * | ||
}>]>>; | ||
/** | ||
* Configure email notification settings for privacy requests | ||
*/ | ||
'email-settings': t.PartialC<{ | ||
@@ -670,2 +685,8 @@ /** The email address of the user to notify when a promptAPerson integration */ | ||
/** | ||
* Configure the category of data that this datapoint should be grouped by in a data access request. | ||
* | ||
* @see https://docs.transcend.io/docs/privacy-requests/connecting-data-silos/saas-tools#configuring-an-integration | ||
*/ | ||
'data-collection-tag': t.StringC; | ||
/** | ||
* The SQL queries that should be run for that datapoint in a privacy request. | ||
@@ -768,2 +789,5 @@ * | ||
}>]>>; | ||
/** | ||
* Configure email notification settings for privacy requests | ||
*/ | ||
'email-settings': t.PartialC<{ | ||
@@ -770,0 +794,0 @@ /** The email address of the user to notify when a promptAPerson integration */ |
@@ -149,2 +149,8 @@ "use strict"; | ||
/** | ||
* Configure the category of data that this datapoint should be grouped by in a data access request. | ||
* | ||
* @see https://docs.transcend.io/docs/privacy-requests/connecting-data-silos/saas-tools#configuring-an-integration | ||
*/ | ||
'data-collection-tag': t.string, | ||
/** | ||
* The SQL queries that should be run for that datapoint in a privacy request. | ||
@@ -260,2 +266,5 @@ * | ||
datapoints: t.array(exports.DatapointInput), | ||
/** | ||
* Configure email notification settings for privacy requests | ||
*/ | ||
'email-settings': exports.PromptAVendorEmailSettings, | ||
@@ -262,0 +271,0 @@ }), |
@@ -26,2 +26,7 @@ "use strict"; | ||
} | ||
dataCollection { | ||
title { | ||
defaultMessage | ||
} | ||
} | ||
dbIntegrationQueries { | ||
@@ -70,2 +75,3 @@ query | ||
$description: String | ||
$dataCollectionTag: String | ||
$querySuggestions: [DbIntegrationQuerySuggestionInput!] | ||
@@ -80,2 +86,3 @@ $enabledActions: [RequestActionObjectResolver!] | ||
title: $title | ||
dataCollectionTag: $dataCollectionTag | ||
description: $description | ||
@@ -82,0 +89,0 @@ querySuggestions: $querySuggestions |
export declare const TEMPLATES: string; | ||
export declare const CREATE_TEMPLATE: string; | ||
export declare const UPDATE_TEMPLATE: string; | ||
//# sourceMappingURL=template.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UPDATE_TEMPLATE = exports.CREATE_TEMPLATE = exports.TEMPLATES = void 0; | ||
exports.CREATE_TEMPLATE = exports.TEMPLATES = void 0; | ||
const graphql_request_1 = require("graphql-request"); | ||
@@ -22,9 +22,2 @@ exports.TEMPLATES = (0, graphql_request_1.gql) ` | ||
`; | ||
exports.UPDATE_TEMPLATE = (0, graphql_request_1.gql) ` | ||
mutation SchemaSyncUpdateTemplate($id: ID!, $title: String!) { | ||
updateTemplate(input: { id: $id, title: $title }) { | ||
clientMutationId | ||
} | ||
} | ||
`; | ||
//# sourceMappingURL=template.js.map |
@@ -101,2 +101,7 @@ "use strict"; | ||
key: dataPoint.name, | ||
...(dataPoint.dataCollection | ||
? { | ||
'data-collection-tag': dataPoint.dataCollection.title.defaultMessage, | ||
} | ||
: {}), | ||
...(dataPoint.dbIntegrationQueries.length > 0 | ||
@@ -103,0 +108,0 @@ ? { |
@@ -66,2 +66,10 @@ import { DataCategoryInput, DataSiloInput, ProcessingPurposeInput } from '../codecs'; | ||
}[]; | ||
/** Data collection tag for privacy request download zip labeling */ | ||
dataCollection?: { | ||
/** Title of data collection */ | ||
title: { | ||
/** Default message (since message can be translated) */ | ||
defaultMessage: string; | ||
}; | ||
}; | ||
/** Metadata for this data silo */ | ||
@@ -68,0 +76,0 @@ catalog: { |
@@ -12,3 +12,3 @@ "use strict"; | ||
const fetchDataSubjects_1 = require("./fetchDataSubjects"); | ||
const PAGE_SIZE = 20; | ||
const PAGE_SIZE = 100; | ||
/** | ||
@@ -40,2 +40,3 @@ * Fetch all dataSilos in the organization | ||
} while (shouldContinue); | ||
logger_1.logger.info(colors_1.default.green(`Found a total of ${dataSilos.length} data silos`)); | ||
return dataSilos; | ||
@@ -104,2 +105,3 @@ } | ||
exports.fetchAllDataPoints = fetchAllDataPoints; | ||
const LOG_FREQUENCY = 10; | ||
/** | ||
@@ -115,3 +117,3 @@ * Fetch all dataSilos with additional metadata | ||
const silos = await fetchAllDataSilos(client, { title, ids }); | ||
await (0, bluebird_1.mapSeries)(silos, async (silo) => { | ||
await (0, bluebird_1.mapSeries)(silos, async (silo, index) => { | ||
const { dataSilo } = await client.request(gqls_1.DATA_SILO, { | ||
@@ -122,3 +124,7 @@ id: silo.id, | ||
dataSilos.push([dataSilo, dataPoints]); | ||
if (index % LOG_FREQUENCY === 0) { | ||
logger_1.logger.info(colors_1.default.magenta(`Successfully fetched ${index + 1}/${silos.length} data silo configurations`)); | ||
} | ||
}); | ||
logger_1.logger.info(colors_1.default.green(`Successfully fetched all ${silos.length} data silo configurations`)); | ||
return dataSilos; | ||
@@ -230,2 +236,5 @@ } | ||
description: datapoint.description, | ||
...(datapoint['data-collection-tag'] | ||
? { dataCollectionTag: datapoint['data-collection-tag'] } | ||
: {}), | ||
querySuggestions: !datapoint['privacy-action-queries'] | ||
@@ -240,3 +249,2 @@ ? undefined | ||
}); | ||
// TODO:https://transcend.height.app/T-10773 - obj.fields | ||
logger_1.logger.info(colors_1.default.green(`Synced datapoint "${datapoint.key}"!`)); | ||
@@ -243,0 +251,0 @@ }); |
@@ -43,10 +43,4 @@ "use strict"; | ||
const existingTemplate = matches.find(({ title }) => title === template.title); | ||
// If Template exists, update it, else create new | ||
if (existingTemplate) { | ||
await client.request(gqls_1.UPDATE_TEMPLATE, { | ||
id: existingTemplate.id, | ||
title: template.title, | ||
}); | ||
} | ||
else { | ||
// If Template exists, update it | ||
if (!existingTemplate) { | ||
await client.request(gqls_1.CREATE_TEMPLATE, { | ||
@@ -53,0 +47,0 @@ title: template.title, |
@@ -5,3 +5,3 @@ { | ||
"description": "Small package containing useful typescript utilities.", | ||
"version": "4.2.2", | ||
"version": "4.3.0", | ||
"homepage": "https://github.com/transcend-io/cli", | ||
@@ -8,0 +8,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
272751
3426