@transcend-io/cli 4.132.6 → 5.0.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/CHANGELOG.md +70 -0
- package/README.md +20 -1
- package/build/cli-manual-enrichment-pull-identifiers.js +6 -5
- package/build/cli-manual-enrichment-pull-identifiers.js.map +1 -1
- package/build/cli-request-export.js +3 -0
- package/build/cli-request-export.js.map +1 -1
- package/build/graphql/fetchAllRequestIdentifiers.d.ts +81 -15
- package/build/graphql/fetchAllRequestIdentifiers.d.ts.map +1 -1
- package/build/graphql/fetchAllRequestIdentifiers.js +67 -10
- package/build/graphql/fetchAllRequestIdentifiers.js.map +1 -1
- package/build/graphql/gqls/index.d.ts +1 -1
- package/build/graphql/gqls/index.d.ts.map +1 -1
- package/build/graphql/gqls/index.js +1 -1
- package/build/graphql/gqls/index.js.map +1 -1
- package/build/graphql/gqls/sombraVersion.d.ts +2 -0
- package/build/graphql/gqls/sombraVersion.d.ts.map +1 -0
- package/build/graphql/gqls/sombraVersion.js +14 -0
- package/build/graphql/gqls/sombraVersion.js.map +1 -0
- package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.d.ts +4 -2
- package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.d.ts.map +1 -1
- package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.js +7 -6
- package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.js.map +1 -1
- package/build/requests/bulkRestartRequests.d.ts.map +1 -1
- package/build/requests/bulkRestartRequests.js +11 -11
- package/build/requests/bulkRestartRequests.js.map +1 -1
- package/build/requests/pullPrivacyRequests.d.ts +4 -2
- package/build/requests/pullPrivacyRequests.d.ts.map +1 -1
- package/build/requests/pullPrivacyRequests.js +6 -5
- package/build/requests/pullPrivacyRequests.js.map +1 -1
- package/build/tsbuildinfo +1 -1
- package/package.json +3 -1
- package/build/graphql/gqls/RequestIdentifier.d.ts +0 -2
- package/build/graphql/gqls/RequestIdentifier.d.ts.map +0 -1
- package/build/graphql/gqls/RequestIdentifier.js +0 -37
- package/build/graphql/gqls/RequestIdentifier.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
2
|
+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
3
|
+
|
|
4
|
+
## Table of Contents
|
|
5
|
+
|
|
6
|
+
- [Changelog](#changelog)
|
|
7
|
+
- [[5.0.0] - 2024-04-23](#500---2024-04-23)
|
|
8
|
+
- [Changed](#changed)
|
|
9
|
+
|
|
10
|
+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
11
|
+
|
|
12
|
+
# Changelog
|
|
13
|
+
|
|
14
|
+
All notable changes to the Transcend CLI tools will be documented in this file.
|
|
15
|
+
|
|
16
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
17
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
18
|
+
|
|
19
|
+
## [5.0.0] - 2024-04-23
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Added support for encrypted identifiers to `tr-manual-enricher-pull-identifiers` command.
|
|
24
|
+
|
|
25
|
+
- Now that this command is using Sombra to decrypt request identifiers, you may need to provide the `--sombraAuth` argument. It's required when using self-hosted Sombra, but not for multi-tenant.
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
Before:
|
|
29
|
+
yarn tr-manual-enricher-pull-identifiers --auth=$TRANSCEND_API_KEY \
|
|
30
|
+
--actions=ERASURE \
|
|
31
|
+
--file=/Users/michaelfarrell/Desktop/test.csv
|
|
32
|
+
|
|
33
|
+
Now:
|
|
34
|
+
yarn tr-manual-enricher-pull-identifiers --auth=$TRANSCEND_API_KEY \
|
|
35
|
+
--sombraAuth=$SOMBRA_INTERNAL_KEY \
|
|
36
|
+
--actions=ERASURE \
|
|
37
|
+
--file=/Users/michaelfarrell/Desktop/test.csv
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
- Added support for encrypted identifiers to `tr-request-export` command.
|
|
41
|
+
|
|
42
|
+
- Now that this command is using Sombra to decrypt request identifiers, you may need to provide the `--sombraAuth` argument. It's required when using self-hosted Sombra, but not for multi-tenant.
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
Before:
|
|
46
|
+
yarn tr-request-export --auth=$TRANSCEND_API_KEY \
|
|
47
|
+
--actions=ERASURE \
|
|
48
|
+
--file=/Users/michaelfarrell/Desktop/test.csv
|
|
49
|
+
|
|
50
|
+
Now:
|
|
51
|
+
yarn tr-request-export --auth=$TRANSCEND_API_KEY \
|
|
52
|
+
--sombraAuth=$SOMBRA_INTERNAL_KEY \
|
|
53
|
+
--actions=ERASURE \
|
|
54
|
+
--file=/Users/michaelfarrell/Desktop/test.csv
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
- Added support for encrypted identifiers to `tr-request-restart` command, used only when `--copyIdentifiers` argument is specified.
|
|
58
|
+
|
|
59
|
+
- Now that this command is using Sombra to decrypt request identifiers, you may need to provide the `--sombraAuth` argument. It's required only when using `--copyIdentifiers` AND self-hosted Sombra, but is otherwise not required.
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
Before:
|
|
63
|
+
yarn tr-request-restart --auth=$TRANSCEND_API_KEY \
|
|
64
|
+
--statuses=COMPILING,APPROVING --actions=ERASURE --copyIdentifiers=true
|
|
65
|
+
|
|
66
|
+
Now:
|
|
67
|
+
yarn tr-request-restart --auth=$TRANSCEND_API_KEY \
|
|
68
|
+
--sombraAuth=$SOMBRA_INTERNAL_KEY \
|
|
69
|
+
--statuses=COMPILING,APPROVING --actions=ERASURE --copyIdentifiers=true
|
|
70
|
+
```
|
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Table of Contents
|
|
5
5
|
|
|
6
|
+
- [Changelog](#changelog)
|
|
6
7
|
- [Overview](#overview)
|
|
7
8
|
- [Installation](#installation)
|
|
8
9
|
- [transcend.yml](#transcendyml)
|
|
@@ -138,6 +139,10 @@
|
|
|
138
139
|
|
|
139
140
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
140
141
|
|
|
142
|
+
## Changelog
|
|
143
|
+
|
|
144
|
+
To stay up to date on breaking changes to the cli between major version updates, please refer to [CHANGELOG.md](CHANGELOG.md).
|
|
145
|
+
|
|
141
146
|
## Overview
|
|
142
147
|
|
|
143
148
|
A command line interface that allows you to define your Data Map in code and sync that configuration back to https://app.transcend.io.
|
|
@@ -1262,7 +1267,7 @@ The API key needs the following scopes:
|
|
|
1262
1267
|
| statuses | The [request statuses](https://docs.transcend.io/docs/privacy-requests/overview#request-statuses) to restart. | RequestStatus[] | N/A | true |
|
|
1263
1268
|
| transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
|
|
1264
1269
|
| requestReceiptFolder | The path to the folder where receipts of each upload are stored. This allows for debugging of errors. | string | ./privacy-request-upload-receipts | false |
|
|
1265
|
-
| sombraAuth | The sombra internal key, use for additional authentication when self-hosting sombra.
|
|
1270
|
+
| sombraAuth | The sombra internal key, use for additional authentication when self-hosting sombra. Only required when `copyIdentifiers` flag used. | string | N/A | false |
|
|
1266
1271
|
| concurrency | The concurrency to use when uploading requests in parallel. | number | 15 | false |
|
|
1267
1272
|
| requestIds | Specify the specific request IDs to restart | string[] | [] | false |
|
|
1268
1273
|
| emailIsVerified | Indicate whether the primary email address is verified. Set to false to send a verification email. | boolean | true | false |
|
|
@@ -1365,6 +1370,7 @@ The API key needs the following scopes:
|
|
|
1365
1370
|
| Argument | Description | Type | Default | Required |
|
|
1366
1371
|
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | ------------------------------ | -------- |
|
|
1367
1372
|
| auth | The Transcend API key with the scopes necessary for the command. | string | N/A | true |
|
|
1373
|
+
| sombraAuth | The sombra internal key, use for additional authentication when self-hosting sombra. | string | N/A | false |
|
|
1368
1374
|
| actions | The [request action](https://docs.transcend.io/docs/privacy-requests/configuring-requests/data-subject-requests#data-actions) to restart. | RequestAction[] | N/A | false |
|
|
1369
1375
|
| statuses | The [request statuses](https://docs.transcend.io/docs/privacy-requests/overview#request-statuses) to restart. | RequestStatus[] | N/A | false |
|
|
1370
1376
|
| transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
|
|
@@ -1394,6 +1400,12 @@ Specifying the backend URL, needed for US hosted backend infrastructure.
|
|
|
1394
1400
|
yarn tr-request-export --auth=$TRANSCEND_API_KEY --transcendUrl=https://api.us.transcend.io
|
|
1395
1401
|
```
|
|
1396
1402
|
|
|
1403
|
+
With Sombra authentication
|
|
1404
|
+
|
|
1405
|
+
```sh
|
|
1406
|
+
yarn tr-request-export --auth=$TRANSCEND_API_KEY --sombraAuth=$SOMBRA_INTERNAL_KEY
|
|
1407
|
+
```
|
|
1408
|
+
|
|
1397
1409
|
Increase the concurrency (defaults to 100)
|
|
1398
1410
|
|
|
1399
1411
|
```sh
|
|
@@ -1561,6 +1573,7 @@ The API key must have the following scopes:
|
|
|
1561
1573
|
| Argument | Description | Type | Default | Required |
|
|
1562
1574
|
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------ | ----------------------------------- | -------- |
|
|
1563
1575
|
| auth | The Transcend API key with the scopes necessary for the command. | string | N/A | true |
|
|
1576
|
+
| sombraAuth | The sombra internal key, use for additional authentication when self-hosting sombra. | string | N/A | false |
|
|
1564
1577
|
| transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
|
|
1565
1578
|
| file | Path to the CSV file where requests will be written to. | string - file-path | ./manual-enrichment-identifiers.csv | false |
|
|
1566
1579
|
| actions | The [request action](https://docs.transcend.io/docs/privacy-requests/configuring-requests/data-subject-requests#data-actions) to pull for. | RequestAction[] | N/A | false |
|
|
@@ -1591,6 +1604,12 @@ For US hosted infrastructure
|
|
|
1591
1604
|
yarn tr-manual-enrichment-pull-identifiers --auth=$TRANSCEND_API_KEY --transcendUrl=https://api.us.transcend.io
|
|
1592
1605
|
```
|
|
1593
1606
|
|
|
1607
|
+
With Sombra authentication
|
|
1608
|
+
|
|
1609
|
+
```sh
|
|
1610
|
+
yarn tr-manual-enrichment-pull-identifiers --auth=$TRANSCEND_API_KEY --sombraAuth=$SOMBRA_INTERNAL_KEY
|
|
1611
|
+
```
|
|
1612
|
+
|
|
1594
1613
|
With specific concurrency
|
|
1595
1614
|
|
|
1596
1615
|
```sh
|
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
const yargs_parser_1 = __importDefault(require("yargs-parser"));
|
|
8
7
|
const colors_1 = __importDefault(require("colors"));
|
|
9
|
-
const
|
|
10
|
-
const manual_enrichment_1 = require("./manual-enrichment");
|
|
8
|
+
const yargs_parser_1 = __importDefault(require("yargs-parser"));
|
|
11
9
|
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
12
10
|
const constants_1 = require("./constants");
|
|
11
|
+
const logger_1 = require("./logger");
|
|
12
|
+
const manual_enrichment_1 = require("./manual-enrichment");
|
|
13
13
|
/**
|
|
14
14
|
* Pull the the set of requests that actively require manual enrichment.
|
|
15
15
|
*
|
|
@@ -27,8 +27,8 @@ const constants_1 = require("./constants");
|
|
|
27
27
|
*/
|
|
28
28
|
async function main() {
|
|
29
29
|
// Parse command line arguments
|
|
30
|
-
const { file = './manual-enrichment-identifiers.csv', transcendUrl = constants_1.DEFAULT_TRANSCEND_API, auth, actions = '', concurrency = '100', } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
31
|
-
// Ensure auth is
|
|
30
|
+
const { file = './manual-enrichment-identifiers.csv', transcendUrl = constants_1.DEFAULT_TRANSCEND_API, auth, sombraAuth, actions = '', concurrency = '100', } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
31
|
+
// Ensure auth is provided
|
|
32
32
|
if (!auth) {
|
|
33
33
|
logger_1.logger.error(colors_1.default.red('A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY'));
|
|
34
34
|
process.exit(1);
|
|
@@ -49,6 +49,7 @@ async function main() {
|
|
|
49
49
|
concurrency: parseInt(concurrency, 10),
|
|
50
50
|
requestActions,
|
|
51
51
|
auth,
|
|
52
|
+
sombraAuth,
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-manual-enrichment-pull-identifiers.js","sourceRoot":"","sources":["../src/cli-manual-enrichment-pull-identifiers.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;
|
|
1
|
+
{"version":3,"file":"cli-manual-enrichment-pull-identifiers.js","sourceRoot":"","sources":["../src/cli-manual-enrichment-pull-identifiers.ts"],"names":[],"mappings":";;;;;;AAEA,oDAA4B;AAC5B,gEAAiC;AAEjC,+DAA4D;AAC5D,2CAAoD;AACpD,qCAAkC;AAClC,2DAA2E;AAE3E;;;;;;;;;;;;;;GAcG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,IAAI,GAAG,qCAAqC,EAC5C,YAAY,GAAG,iCAAqB,EACpC,IAAI,EACJ,UAAU,EACV,OAAO,GAAG,EAAE,EACZ,WAAW,GAAG,KAAK,GACpB,GAAG,IAAA,sBAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAA8B,CAAC;IAE9D,0BAA0B;IAC1B,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,mBAAmB;IACnB,MAAM,cAAc,GAAG,OAAO;SAC3B,KAAK,CAAC,GAAG,CAAC;SACV,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAoB,CAAC;IACzC,MAAM,cAAc,GAAG,cAAc,CAAC,MAAM,CAC1C,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,6BAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAC3D,CAAC;IACF,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,oCAAoC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAChE,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,qCAAqC;IACrC,MAAM,IAAA,wDAAoC,EAAC;QACzC,IAAI;QACJ,YAAY;QACZ,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;QACtC,cAAc;QACd,IAAI;QACJ,UAAU;KACX,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -36,6 +36,8 @@ async function main() {
|
|
|
36
36
|
transcendUrl = constants_1.DEFAULT_TRANSCEND_API,
|
|
37
37
|
/** API key */
|
|
38
38
|
auth,
|
|
39
|
+
/** Sombra API key */
|
|
40
|
+
sombraAuth,
|
|
39
41
|
/** Request actions to export */
|
|
40
42
|
actions = '',
|
|
41
43
|
/** Request statuses to export */
|
|
@@ -80,6 +82,7 @@ async function main() {
|
|
|
80
82
|
actions: parsedActions,
|
|
81
83
|
statuses: parsedStatuses,
|
|
82
84
|
auth,
|
|
85
|
+
sombraAuth,
|
|
83
86
|
createdAtBefore: createdAtBefore ? new Date(createdAtBefore) : undefined,
|
|
84
87
|
createdAtAfter: createdAtAfter ? new Date(createdAtAfter) : undefined,
|
|
85
88
|
isTest: showTests === 'true' ? true : showTests === 'false' ? false : undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-request-export.js","sourceRoot":"","sources":["../src/cli-request-export.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,uDAA+B;AAC/B,+DAA2E;AAC3E,yCAAiE;AACjE,2CAAoD;AACpD,iCAAkC;AAElC;;;;;;;;;;;;;;;;GAgBG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,IAAI,GAAG,gCAAgC;IACvC,4BAA4B;IAC5B,YAAY,GAAG,iCAAqB;IACpC,cAAc;IACd,IAAI;IACJ,gCAAgC;IAChC,OAAO,GAAG,EAAE;IACZ,iCAAiC;IACjC,QAAQ,GAAG,EAAE;IACb,8CAA8C;IAC9C,SAAS;IACT,kDAAkD;IAClD,eAAe;IACf,iDAAiD;IACjD,cAAc;IACd,iCAAiC;IACjC,SAAS,GAAG,KAAK,GAClB,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,mBAAmB;IACnB,MAAM,aAAa,GAAG,IAAA,yBAAc,EAAC,OAAO,CAAoB,CAAC;IACjE,MAAM,cAAc,GAAG,aAAa,CAAC,MAAM;IACzC,8DAA8D;IAC9D,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,6BAAa,CAAC,CAAC,QAAQ,CAAC,IAAW,CAAC,CAC9D,CAAC;IACF,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,4BAA4B,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"cli-request-export.js","sourceRoot":"","sources":["../src/cli-request-export.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,31 +1,97 @@
|
|
|
1
|
+
import type { Got } from 'got';
|
|
1
2
|
import { GraphQLClient } from 'graphql-request';
|
|
2
|
-
import
|
|
3
|
-
|
|
3
|
+
import * as t from 'io-ts';
|
|
4
|
+
declare const RequestIdentifier: t.TypeC<{
|
|
4
5
|
/** ID of request */
|
|
5
|
-
id:
|
|
6
|
+
id: t.StringC;
|
|
6
7
|
/** Name of identifier */
|
|
7
|
-
name:
|
|
8
|
+
name: t.StringC;
|
|
8
9
|
/** The underlying identifier value */
|
|
9
|
-
value:
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
value: t.StringC;
|
|
11
|
+
/** Type of identifier */
|
|
12
|
+
type: t.KeyofC<{
|
|
13
|
+
email: unknown;
|
|
14
|
+
phone: unknown;
|
|
15
|
+
thriveTrmContactId: unknown;
|
|
16
|
+
linkedInURL: unknown;
|
|
17
|
+
coreIdentifier: unknown;
|
|
18
|
+
custom: unknown;
|
|
19
|
+
gaid: unknown;
|
|
20
|
+
idfa: unknown;
|
|
21
|
+
idfv: unknown;
|
|
22
|
+
browserId: unknown;
|
|
23
|
+
microsoftAdvertisingId: unknown;
|
|
24
|
+
amazonFireAdvertisingId: unknown;
|
|
25
|
+
rida: unknown;
|
|
26
|
+
filestackHandle: unknown;
|
|
27
|
+
stripeId: unknown;
|
|
28
|
+
braintreeCustomerId: unknown;
|
|
29
|
+
chargebeeId: unknown;
|
|
30
|
+
talkableUUID: unknown;
|
|
31
|
+
advertisingId: unknown;
|
|
32
|
+
personaReferenceId: unknown;
|
|
33
|
+
streamUserId: unknown;
|
|
34
|
+
plaidProcessorToken: unknown;
|
|
35
|
+
onfidoApplicantId: unknown;
|
|
36
|
+
}>;
|
|
15
37
|
/** Whether request identifier has been verified at least one */
|
|
16
|
-
isVerifiedAtLeastOnce:
|
|
38
|
+
isVerifiedAtLeastOnce: t.BooleanC;
|
|
17
39
|
/** Whether request identifier has been verified */
|
|
18
|
-
isVerified:
|
|
19
|
-
}
|
|
40
|
+
isVerified: t.BooleanC;
|
|
41
|
+
}>;
|
|
42
|
+
/** Type override */
|
|
43
|
+
export type RequestIdentifier = t.TypeOf<typeof RequestIdentifier>;
|
|
44
|
+
export declare const RequestIdentifiersResponse: t.TypeC<{
|
|
45
|
+
identifiers: t.ArrayC<t.TypeC<{
|
|
46
|
+
/** ID of request */
|
|
47
|
+
id: t.StringC;
|
|
48
|
+
/** Name of identifier */
|
|
49
|
+
name: t.StringC;
|
|
50
|
+
/** The underlying identifier value */
|
|
51
|
+
value: t.StringC;
|
|
52
|
+
/** Type of identifier */
|
|
53
|
+
type: t.KeyofC<{
|
|
54
|
+
email: unknown;
|
|
55
|
+
phone: unknown;
|
|
56
|
+
thriveTrmContactId: unknown;
|
|
57
|
+
linkedInURL: unknown;
|
|
58
|
+
coreIdentifier: unknown;
|
|
59
|
+
custom: unknown;
|
|
60
|
+
gaid: unknown;
|
|
61
|
+
idfa: unknown;
|
|
62
|
+
idfv: unknown;
|
|
63
|
+
browserId: unknown;
|
|
64
|
+
microsoftAdvertisingId: unknown;
|
|
65
|
+
amazonFireAdvertisingId: unknown;
|
|
66
|
+
rida: unknown;
|
|
67
|
+
filestackHandle: unknown;
|
|
68
|
+
stripeId: unknown;
|
|
69
|
+
braintreeCustomerId: unknown;
|
|
70
|
+
chargebeeId: unknown;
|
|
71
|
+
talkableUUID: unknown;
|
|
72
|
+
advertisingId: unknown;
|
|
73
|
+
personaReferenceId: unknown;
|
|
74
|
+
streamUserId: unknown;
|
|
75
|
+
plaidProcessorToken: unknown;
|
|
76
|
+
onfidoApplicantId: unknown;
|
|
77
|
+
}>;
|
|
78
|
+
/** Whether request identifier has been verified at least one */
|
|
79
|
+
isVerifiedAtLeastOnce: t.BooleanC;
|
|
80
|
+
/** Whether request identifier has been verified */
|
|
81
|
+
isVerified: t.BooleanC;
|
|
82
|
+
}>>;
|
|
83
|
+
}>;
|
|
20
84
|
/**
|
|
21
85
|
* Fetch all request identifiers for a particular request
|
|
22
86
|
*
|
|
23
87
|
* @param client - GraphQL client
|
|
24
|
-
* @param
|
|
88
|
+
* @param sombra - Sombra client
|
|
89
|
+
* @param options - Options
|
|
25
90
|
* @returns List of request identifiers
|
|
26
91
|
*/
|
|
27
|
-
export declare function fetchAllRequestIdentifiers(client: GraphQLClient, { requestId, }: {
|
|
92
|
+
export declare function fetchAllRequestIdentifiers(client: GraphQLClient, sombra: Got, { requestId, }: {
|
|
28
93
|
/** ID of request to filter on */
|
|
29
94
|
requestId: string;
|
|
30
95
|
}): Promise<RequestIdentifier[]>;
|
|
96
|
+
export {};
|
|
31
97
|
//# sourceMappingURL=fetchAllRequestIdentifiers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAllRequestIdentifiers.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllRequestIdentifiers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchAllRequestIdentifiers.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllRequestIdentifiers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAQ3B,QAAA,MAAM,iBAAiB;IACrB,oBAAoB;;IAEpB,yBAAyB;;IAEzB,sCAAsC;;IAEtC,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;IAEzB,gEAAgE;;IAEhE,mDAAmD;;EAEnD,CAAC;AAEH,oBAAoB;AACpB,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAInE,eAAO,MAAM,0BAA0B;;QAnBrC,oBAAoB;;QAEpB,yBAAyB;;QAEzB,sCAAsC;;QAEtC,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;QAEzB,gEAAgE;;QAEhE,mDAAmD;;;EAWnD,CAAC;AAEH;;;;;;;GAOG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,GAAG,EACX,EACE,SAAS,GACV,EAAE;IACD,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;CACnB,GACA,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAsD9B"}
|
|
@@ -1,29 +1,86 @@
|
|
|
1
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
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchAllRequestIdentifiers = void 0;
|
|
29
|
+
exports.fetchAllRequestIdentifiers = exports.RequestIdentifiersResponse = void 0;
|
|
30
|
+
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
31
|
+
const type_utils_1 = require("@transcend-io/type-utils");
|
|
32
|
+
const t = __importStar(require("io-ts"));
|
|
33
|
+
const semver_1 = __importDefault(require("semver"));
|
|
4
34
|
const gqls_1 = require("./gqls");
|
|
5
35
|
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
36
|
+
const MIN_SOMBRA_VERSION_TO_DECRYPT = '7.180';
|
|
37
|
+
const RequestIdentifier = t.type({
|
|
38
|
+
/** ID of request */
|
|
39
|
+
id: t.string,
|
|
40
|
+
/** Name of identifier */
|
|
41
|
+
name: t.string,
|
|
42
|
+
/** The underlying identifier value */
|
|
43
|
+
value: t.string,
|
|
44
|
+
/** Type of identifier */
|
|
45
|
+
type: (0, type_utils_1.valuesOf)(privacy_types_1.IdentifierType),
|
|
46
|
+
/** Whether request identifier has been verified at least one */
|
|
47
|
+
isVerifiedAtLeastOnce: t.boolean,
|
|
48
|
+
/** Whether request identifier has been verified */
|
|
49
|
+
isVerified: t.boolean,
|
|
50
|
+
});
|
|
6
51
|
const PAGE_SIZE = 50;
|
|
52
|
+
exports.RequestIdentifiersResponse = t.type({
|
|
53
|
+
identifiers: t.array(RequestIdentifier),
|
|
54
|
+
});
|
|
7
55
|
/**
|
|
8
56
|
* Fetch all request identifiers for a particular request
|
|
9
57
|
*
|
|
10
58
|
* @param client - GraphQL client
|
|
11
|
-
* @param
|
|
59
|
+
* @param sombra - Sombra client
|
|
60
|
+
* @param options - Options
|
|
12
61
|
* @returns List of request identifiers
|
|
13
62
|
*/
|
|
14
|
-
async function fetchAllRequestIdentifiers(client, { requestId, }) {
|
|
63
|
+
async function fetchAllRequestIdentifiers(client, sombra, { requestId, }) {
|
|
15
64
|
const requestIdentifiers = [];
|
|
16
65
|
let offset = 0;
|
|
17
|
-
// Paginate
|
|
18
66
|
let shouldContinue = false;
|
|
67
|
+
// determine sombra version
|
|
68
|
+
const { organization: { sombra: { version }, }, } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.SOMBRA_VERSION);
|
|
69
|
+
if (version && semver_1.default.lt(version, MIN_SOMBRA_VERSION_TO_DECRYPT)) {
|
|
70
|
+
throw new Error(`Please upgrade Sombra to ${MIN_SOMBRA_VERSION_TO_DECRYPT} or greater to use this command.`);
|
|
71
|
+
}
|
|
19
72
|
do {
|
|
20
|
-
const { requestIdentifiers: { nodes },
|
|
21
73
|
// eslint-disable-next-line no-await-in-loop
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
74
|
+
const response = await sombra
|
|
75
|
+
.post('v1/request-identifiers', {
|
|
76
|
+
json: {
|
|
77
|
+
first: PAGE_SIZE,
|
|
78
|
+
offset,
|
|
79
|
+
requestId,
|
|
80
|
+
},
|
|
81
|
+
})
|
|
82
|
+
.json();
|
|
83
|
+
const { identifiers: nodes } = (0, type_utils_1.decodeCodec)(exports.RequestIdentifiersResponse, response);
|
|
27
84
|
requestIdentifiers.push(...nodes);
|
|
28
85
|
offset += PAGE_SIZE;
|
|
29
86
|
shouldContinue = nodes.length === PAGE_SIZE;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAllRequestIdentifiers.js","sourceRoot":"","sources":["../../src/graphql/fetchAllRequestIdentifiers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchAllRequestIdentifiers.js","sourceRoot":"","sources":["../../src/graphql/fetchAllRequestIdentifiers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA6D;AAC7D,yDAAiE;AAGjE,yCAA2B;AAC3B,oDAA4B;AAE5B,iCAAwC;AACxC,6DAA0D;AAE1D,MAAM,6BAA6B,GAAG,OAAO,CAAC;AAE9C,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/B,oBAAoB;IACpB,EAAE,EAAE,CAAC,CAAC,MAAM;IACZ,yBAAyB;IACzB,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,sCAAsC;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM;IACf,yBAAyB;IACzB,IAAI,EAAE,IAAA,qBAAQ,EAAC,8BAAc,CAAC;IAC9B,gEAAgE;IAChE,qBAAqB,EAAE,CAAC,CAAC,OAAO;IAChC,mDAAmD;IACnD,UAAU,EAAE,CAAC,CAAC,OAAO;CACtB,CAAC,CAAC;AAKH,MAAM,SAAS,GAAG,EAAE,CAAC;AAER,QAAA,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;CACxC,CAAC,CAAC;AAEH;;;;;;;GAOG;AACI,KAAK,UAAU,0BAA0B,CAC9C,MAAqB,EACrB,MAAW,EACX,EACE,SAAS,GAIV;IAED,MAAM,kBAAkB,GAAwB,EAAE,CAAC;IACnD,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,cAAc,GAAG,KAAK,CAAC;IAE3B,2BAA2B;IAC3B,MAAM,EACJ,YAAY,EAAE,EACZ,MAAM,EAAE,EAAE,OAAO,EAAE,GACpB,GACF,GAAG,MAAM,IAAA,uCAAkB,EASzB,MAAO,EAAE,qBAAc,CAAC,CAAC;IAE5B,IAAI,OAAO,IAAI,gBAAM,CAAC,EAAE,CAAC,OAAO,EAAE,6BAA6B,CAAC,EAAE;QAChE,MAAM,IAAI,KAAK,CACb,4BAA4B,6BAA6B,kCAAkC,CAC5F,CAAC;KACH;IAED,GAAG;QACD,4CAA4C;QAC5C,MAAM,QAAQ,GAAG,MAAM,MAAO;aAC3B,IAAI,CAGF,wBAAwB,EAAE;YAC3B,IAAI,EAAE;gBACJ,KAAK,EAAE,SAAS;gBAChB,MAAM;gBACN,SAAS;aACV;SACF,CAAC;aACD,IAAI,EAAE,CAAC;QAEV,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAA,wBAAW,EACxC,kCAA0B,EAC1B,QAAQ,CACT,CAAC;QAEF,kBAAkB,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAElC,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AA/DD,gEA+DC"}
|
|
@@ -15,7 +15,6 @@ export * from './softwareDevelopmentKit';
|
|
|
15
15
|
export * from './codePackage';
|
|
16
16
|
export * from './promptThread';
|
|
17
17
|
export * from './request';
|
|
18
|
-
export * from './RequestIdentifier';
|
|
19
18
|
export * from './prompt';
|
|
20
19
|
export * from './RequestEnricher';
|
|
21
20
|
export * from './RequestDataSilo';
|
|
@@ -36,4 +35,5 @@ export * from './agentFunction';
|
|
|
36
35
|
export * from './vendor';
|
|
37
36
|
export * from './dataCategory';
|
|
38
37
|
export * from './processingPurpose';
|
|
38
|
+
export * from './sombraVersion';
|
|
39
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
@@ -31,7 +31,6 @@ __exportStar(require("./softwareDevelopmentKit"), exports);
|
|
|
31
31
|
__exportStar(require("./codePackage"), exports);
|
|
32
32
|
__exportStar(require("./promptThread"), exports);
|
|
33
33
|
__exportStar(require("./request"), exports);
|
|
34
|
-
__exportStar(require("./RequestIdentifier"), exports);
|
|
35
34
|
__exportStar(require("./prompt"), exports);
|
|
36
35
|
__exportStar(require("./RequestEnricher"), exports);
|
|
37
36
|
__exportStar(require("./RequestDataSilo"), exports);
|
|
@@ -52,4 +51,5 @@ __exportStar(require("./agentFunction"), exports);
|
|
|
52
51
|
__exportStar(require("./vendor"), exports);
|
|
53
52
|
__exportStar(require("./dataCategory"), exports);
|
|
54
53
|
__exportStar(require("./processingPurpose"), exports);
|
|
54
|
+
__exportStar(require("./sombraVersion"), exports);
|
|
55
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B;AAC/B,2DAAyC;AACzC,gDAA8B;AAC9B,iDAA+B;AAC/B,4CAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B;AAC/B,2DAAyC;AACzC,gDAA8B;AAC9B,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,mDAAiC;AACjC,0DAAwC;AACxC,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,yCAAuB;AACvB,uDAAqC;AACrC,0CAAwB;AACxB,8CAA4B;AAC5B,kDAAgC;AAChC,2CAAyB;AACzB,iDAA+B;AAC/B,sDAAoC;AACpC,kDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sombraVersion.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/sombraVersion.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,QAQ1B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SOMBRA_VERSION = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
exports.SOMBRA_VERSION = (0, graphql_request_1.gql) `
|
|
6
|
+
query TranscendSombraVersion {
|
|
7
|
+
organization {
|
|
8
|
+
sombra {
|
|
9
|
+
version
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
//# sourceMappingURL=sombraVersion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sombraVersion.js","sourceRoot":"","sources":["../../../src/graphql/gqls/sombraVersion.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,cAAc,GAAG,IAAA,qBAAG,EAAA;;;;;;;;CAQhC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RequestEnricher, RequestIdentifier, PrivacyRequest } from '../graphql';
|
|
2
1
|
import { RequestAction } from '@transcend-io/privacy-types';
|
|
2
|
+
import { PrivacyRequest, RequestEnricher, RequestIdentifier } from '../graphql';
|
|
3
3
|
export interface PrivacyRequestWithIdentifiers extends PrivacyRequest {
|
|
4
4
|
/** Request Enrichers */
|
|
5
5
|
requestEnrichers: RequestEnricher[];
|
|
@@ -11,11 +11,13 @@ export interface PrivacyRequestWithIdentifiers extends PrivacyRequest {
|
|
|
11
11
|
*
|
|
12
12
|
* @param options - Options
|
|
13
13
|
*/
|
|
14
|
-
export declare function pullManualEnrichmentIdentifiersToCsv({ file, auth, requestActions, concurrency, transcendUrl, }: {
|
|
14
|
+
export declare function pullManualEnrichmentIdentifiersToCsv({ file, auth, sombraAuth, requestActions, concurrency, transcendUrl, }: {
|
|
15
15
|
/** CSV file path */
|
|
16
16
|
file: string;
|
|
17
17
|
/** Transcend API key authentication */
|
|
18
18
|
auth: string;
|
|
19
|
+
/** Sombra API key */
|
|
20
|
+
sombraAuth?: string;
|
|
19
21
|
/** Concurrency */
|
|
20
22
|
concurrency?: number;
|
|
21
23
|
/** The request actions to fetch */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pullManualEnrichmentIdentifiersToCsv.d.ts","sourceRoot":"","sources":["../../src/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"pullManualEnrichmentIdentifiersToCsv.d.ts","sourceRoot":"","sources":["../../src/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,6BAA6B,CAAC;AAO3E,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EAMlB,MAAM,YAAY,CAAC;AAGpB,MAAM,WAAW,6BAA8B,SAAQ,cAAc;IACnE,wBAAwB;IACxB,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,0BAA0B;IAC1B,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED;;;;GAIG;AACH,wBAAsB,oCAAoC,CAAC,EACzD,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,cAAc,EACd,WAAiB,EACjB,YAAoC,GACrC,EAAE;IACD,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,6BAA6B,EAAE,CAAC,CA2F3C"}
|
|
@@ -4,23 +4,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.pullManualEnrichmentIdentifiersToCsv = void 0;
|
|
7
|
-
const
|
|
7
|
+
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
8
|
+
const bluebird_1 = require("bluebird");
|
|
8
9
|
const colors_1 = __importDefault(require("colors"));
|
|
9
10
|
const groupBy_1 = __importDefault(require("lodash/groupBy"));
|
|
10
11
|
const uniq_1 = __importDefault(require("lodash/uniq"));
|
|
11
|
-
const
|
|
12
|
-
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
12
|
+
const constants_1 = require("../constants");
|
|
13
13
|
const writeCsv_1 = require("../cron/writeCsv");
|
|
14
|
+
const graphql_1 = require("../graphql");
|
|
14
15
|
const logger_1 = require("../logger");
|
|
15
|
-
const constants_1 = require("../constants");
|
|
16
16
|
/**
|
|
17
17
|
* Pull the set of manual enrichment jobs to CSV
|
|
18
18
|
*
|
|
19
19
|
* @param options - Options
|
|
20
20
|
*/
|
|
21
|
-
async function pullManualEnrichmentIdentifiersToCsv({ file, auth, requestActions, concurrency = 100, transcendUrl = constants_1.DEFAULT_TRANSCEND_API, }) {
|
|
21
|
+
async function pullManualEnrichmentIdentifiersToCsv({ file, auth, sombraAuth, requestActions, concurrency = 100, transcendUrl = constants_1.DEFAULT_TRANSCEND_API, }) {
|
|
22
22
|
// Find all requests made before createdAt that are in a removing data state
|
|
23
23
|
const client = (0, graphql_1.buildTranscendGraphQLClient)(transcendUrl, auth);
|
|
24
|
+
const sombra = await (0, graphql_1.createSombraGotInstance)(transcendUrl, auth, sombraAuth);
|
|
24
25
|
logger_1.logger.info(colors_1.default.magenta(`Pulling manual enrichment requests, filtered for actions: ${requestActions.join(',')}`));
|
|
25
26
|
// Pull all privacy requests
|
|
26
27
|
const allRequests = await (0, graphql_1.fetchAllRequests)(client, {
|
|
@@ -39,7 +40,7 @@ async function pullManualEnrichmentIdentifiersToCsv({ file, auth, requestActions
|
|
|
39
40
|
const hasManualEnrichment = requestEnrichers.filter(({ status }) => status === 'ACTION_REQUIRED');
|
|
40
41
|
// Save request to queue
|
|
41
42
|
if (hasManualEnrichment) {
|
|
42
|
-
const requestIdentifiers = await (0, graphql_1.fetchAllRequestIdentifiers)(client, {
|
|
43
|
+
const requestIdentifiers = await (0, graphql_1.fetchAllRequestIdentifiers)(client, sombra, {
|
|
43
44
|
requestId: request.id,
|
|
44
45
|
});
|
|
45
46
|
savedRequests.push({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pullManualEnrichmentIdentifiersToCsv.js","sourceRoot":"","sources":["../../src/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"pullManualEnrichmentIdentifiersToCsv.js","sourceRoot":"","sources":["../../src/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulkRestartRequests.d.ts","sourceRoot":"","sources":["../../src/requests/bulkRestartRequests.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulkRestartRequests.d.ts","sourceRoot":"","sources":["../../src/requests/bulkRestartRequests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAoC3E;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,EACxC,oBAAoB,EACpB,IAAI,EACJ,UAAU,EACV,cAAc,EACd,eAAe,EACf,eAAe,EACf,cAAc,EACd,YAAoC,EACpC,UAAe,EACf,SAAsB,EACtB,gBAAgB,EAChB,gBAAwB,EACxB,eAAsB,EACtB,eAAuB,EACvB,iBAAyB,EACzB,WAAgB,GACjB,EAAE;IACD,4BAA4B;IAC5B,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,4BAA4B;IAC5B,eAAe,EAAE,aAAa,EAAE,CAAC;IACjC,6CAA6C;IAC7C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,iEAAiE;IACjE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,+DAA+D;IAC/D,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,2FAA2F;IAC3F,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iGAAiG;IACjG,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mDAAmD;IACnD,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,kDAAkD;IAClD,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8JhB"}
|