@transcend-io/cli 4.63.0 → 4.65.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 +102 -14
- package/build/api-keys/generateCrossAccountApiKeys.d.ts.map +1 -1
- package/build/api-keys/generateCrossAccountApiKeys.js +2 -1
- package/build/api-keys/generateCrossAccountApiKeys.js.map +1 -1
- package/build/cli-build-xdi-sync-endpoint.d.ts +3 -0
- package/build/cli-build-xdi-sync-endpoint.d.ts.map +1 -0
- package/build/cli-build-xdi-sync-endpoint.js +48 -0
- package/build/cli-build-xdi-sync-endpoint.js.map +1 -0
- package/build/cli-cron-mark-identifiers-completed.js +2 -1
- package/build/cli-cron-mark-identifiers-completed.js.map +1 -1
- package/build/cli-cron-pull-identifiers.js +2 -1
- package/build/cli-cron-pull-identifiers.js.map +1 -1
- package/build/cli-discover-silos.js +1 -1
- package/build/cli-discover-silos.js.map +1 -1
- package/build/cli-generate-cross-account-api-keys.js +2 -1
- package/build/cli-generate-cross-account-api-keys.js.map +1 -1
- package/build/cli-manual-enrichment-pull-identifiers.js +2 -1
- package/build/cli-manual-enrichment-pull-identifiers.js.map +1 -1
- package/build/cli-manual-enrichment-push-identifiers.js +2 -1
- package/build/cli-manual-enrichment-push-identifiers.js.map +1 -1
- package/build/cli-mark-request-data-silos-completed.js +2 -1
- package/build/cli-mark-request-data-silos-completed.js.map +1 -1
- package/build/cli-pull-consent-metrics.js +1 -1
- package/build/cli-pull-consent-metrics.js.map +1 -1
- package/build/cli-pull.js +2 -2
- package/build/cli-pull.js.map +1 -1
- package/build/cli-push.js +2 -2
- package/build/cli-push.js.map +1 -1
- package/build/cli-request-approve.js +2 -1
- package/build/cli-request-approve.js.map +1 -1
- package/build/cli-request-cancel.js +5 -1
- package/build/cli-request-cancel.js.map +1 -1
- package/build/cli-request-export.js +2 -1
- package/build/cli-request-export.js.map +1 -1
- package/build/cli-request-restart.js +2 -1
- package/build/cli-request-restart.js.map +1 -1
- package/build/cli-request-upload.js +2 -1
- package/build/cli-request-upload.js.map +1 -1
- package/build/cli-retry-request-data-silos.js +2 -1
- package/build/cli-retry-request-data-silos.js.map +1 -1
- package/build/cli-skip-request-data-silos.js +2 -1
- package/build/cli-skip-request-data-silos.js.map +1 -1
- package/build/cli-update-consent-manager-to-latest.js +2 -1
- package/build/cli-update-consent-manager-to-latest.js.map +1 -1
- package/build/cli-upload-data-flows-from-csv.js +2 -1
- package/build/cli-upload-data-flows-from-csv.js.map +1 -1
- package/build/consent-manager/buildXdiSyncEndpoint.d.ts +43 -0
- package/build/consent-manager/buildXdiSyncEndpoint.d.ts.map +1 -0
- package/build/consent-manager/buildXdiSyncEndpoint.js +87 -0
- package/build/consent-manager/buildXdiSyncEndpoint.js.map +1 -0
- package/build/consent-manager/index.d.ts +1 -0
- package/build/consent-manager/index.d.ts.map +1 -1
- package/build/consent-manager/index.js +1 -0
- package/build/consent-manager/index.js.map +1 -1
- package/build/consent-manager/updateConsentManagerVersionToLatest.d.ts.map +1 -1
- package/build/consent-manager/updateConsentManagerVersionToLatest.js +2 -1
- package/build/consent-manager/updateConsentManagerVersionToLatest.js.map +1 -1
- package/build/consent-manager/uploadDataFlowsFromCsv.d.ts.map +1 -1
- package/build/consent-manager/uploadDataFlowsFromCsv.js +2 -1
- package/build/consent-manager/uploadDataFlowsFromCsv.js.map +1 -1
- package/build/constants.d.ts +1 -0
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +2 -1
- package/build/constants.js.map +1 -1
- package/build/cron/markRequestDataSiloIdsCompleted.d.ts.map +1 -1
- package/build/cron/markRequestDataSiloIdsCompleted.js +2 -1
- package/build/cron/markRequestDataSiloIdsCompleted.js.map +1 -1
- package/build/cron/pullCronIdentifiersToCsv.d.ts.map +1 -1
- package/build/cron/pullCronIdentifiersToCsv.js +2 -1
- package/build/cron/pullCronIdentifiersToCsv.js.map +1 -1
- package/build/cron/pushCronIdentifiersFromCsv.d.ts.map +1 -1
- package/build/cron/pushCronIdentifiersFromCsv.js +2 -1
- package/build/cron/pushCronIdentifiersFromCsv.js.map +1 -1
- package/build/graphql/fetchConsentManagerId.d.ts +5 -0
- package/build/graphql/fetchConsentManagerId.d.ts.map +1 -1
- package/build/graphql/fetchConsentManagerId.js.map +1 -1
- package/build/graphql/gqls/consentManager.d.ts.map +1 -1
- package/build/graphql/gqls/consentManager.js +3 -0
- package/build/graphql/gqls/consentManager.js.map +1 -1
- package/build/graphql/syncDataSilos.js +1 -1
- package/build/graphql/syncDataSilos.js.map +1 -1
- package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.d.ts.map +1 -1
- package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.js +2 -1
- package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.js.map +1 -1
- package/build/manual-enrichment/pushManualEnrichmentIdentifiersFromCsv.d.ts.map +1 -1
- package/build/manual-enrichment/pushManualEnrichmentIdentifiersFromCsv.js +2 -1
- package/build/manual-enrichment/pushManualEnrichmentIdentifiersFromCsv.js.map +1 -1
- package/build/requests/approvePrivacyRequests.d.ts.map +1 -1
- package/build/requests/approvePrivacyRequests.js +2 -1
- package/build/requests/approvePrivacyRequests.js.map +1 -1
- package/build/requests/bulkRestartRequests.d.ts.map +1 -1
- package/build/requests/bulkRestartRequests.js +2 -1
- package/build/requests/bulkRestartRequests.js.map +1 -1
- package/build/requests/cancelPrivacyRequests.d.ts +3 -1
- package/build/requests/cancelPrivacyRequests.d.ts.map +1 -1
- package/build/requests/cancelPrivacyRequests.js +8 -3
- package/build/requests/cancelPrivacyRequests.js.map +1 -1
- package/build/requests/pullRequestsToCsv.d.ts.map +1 -1
- package/build/requests/pullRequestsToCsv.js +2 -1
- package/build/requests/pullRequestsToCsv.js.map +1 -1
- package/build/requests/retryRequestDataSilos.d.ts.map +1 -1
- package/build/requests/retryRequestDataSilos.js +2 -1
- package/build/requests/retryRequestDataSilos.js.map +1 -1
- package/build/requests/skipRequestDataSilos.d.ts.map +1 -1
- package/build/requests/skipRequestDataSilos.js +2 -1
- package/build/requests/skipRequestDataSilos.js.map +1 -1
- package/build/requests/uploadPrivacyRequestsFromCsv.d.ts.map +1 -1
- package/build/requests/uploadPrivacyRequestsFromCsv.js +2 -1
- package/build/requests/uploadPrivacyRequestsFromCsv.js.map +1 -1
- package/build/tsbuildinfo +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -85,6 +85,10 @@
|
|
|
85
85
|
- [Authentication](#authentication-18)
|
|
86
86
|
- [Arguments](#arguments-18)
|
|
87
87
|
- [Usage](#usage-19)
|
|
88
|
+
- [tr-build-xdi-sync-endpoint](#tr-build-xdi-sync-endpoint)
|
|
89
|
+
- [Authentication](#authentication-19)
|
|
90
|
+
- [Arguments](#arguments-19)
|
|
91
|
+
- [Usage](#usage-20)
|
|
88
92
|
|
|
89
93
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
90
94
|
|
|
@@ -118,8 +122,10 @@ yarn tr-mark-request-data-silos-completed --auth=$TRANSCEND_API_KEY
|
|
|
118
122
|
yarn tr-skip-request-data-silos --auth=$TRANSCEND_API_KEY
|
|
119
123
|
yarn tr-retry-request-data-silos --auth=$TRANSCEND_API_KEY
|
|
120
124
|
yarn tr-update-consent-manager --auth=$TRANSCEND_API_KEY
|
|
125
|
+
yarn tr-pull-consent-metrics --auth=$TRANSCEND_API_KEY
|
|
121
126
|
yarn tr-upload-data-flows-from-csv --auth=$TRANSCEND_API_KEY
|
|
122
127
|
yarn tr-generate-api-keys --auth=$TRANSCEND_API_KEY
|
|
128
|
+
yarn tr-build-xdi-sync-endpoint --auth=$TRANSCEND_API_KEY
|
|
123
129
|
```
|
|
124
130
|
|
|
125
131
|
or
|
|
@@ -144,8 +150,11 @@ tr-mark-request-data-silos-completed --auth=$TRANSCEND_API_KEY
|
|
|
144
150
|
tr-skip-request-data-silos --auth=$TRANSCEND_API_KEY
|
|
145
151
|
tr-retry-request-data-silos --auth=$TRANSCEND_API_KEY
|
|
146
152
|
tr-update-consent-manager --auth=$TRANSCEND_API_KEY
|
|
153
|
+
tr-pull-consent-metrics --auth=$TRANSCEND_API_KEY
|
|
147
154
|
tr-upload-data-flows-from-csv --auth=$TRANSCEND_API_KEY
|
|
148
155
|
tr-generate-api-keys --auth=$TRANSCEND_API_KEY
|
|
156
|
+
tr-build-xdi-sync-endpoint --auth=$TRANSCEND_API_KEY
|
|
157
|
+
|
|
149
158
|
```
|
|
150
159
|
|
|
151
160
|
alternatively, you can install the cli globally on your machine:
|
|
@@ -682,15 +691,17 @@ The API key needs the following scopes:
|
|
|
682
691
|
|
|
683
692
|
#### Arguments
|
|
684
693
|
|
|
685
|
-
| Argument
|
|
686
|
-
|
|
|
687
|
-
| auth
|
|
688
|
-
| actions
|
|
689
|
-
| statuses
|
|
690
|
-
|
|
|
691
|
-
|
|
692
|
-
|
|
|
693
|
-
|
|
|
694
|
+
| Argument | Description | Type | Default | Required |
|
|
695
|
+
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------- | --------------- | ---------------------------------------------------------------------------------------- | -------- |
|
|
696
|
+
| auth | The Transcend API key with the scopes necessary for the command. | string | N/A | true |
|
|
697
|
+
| actions | The [request actions](https://docs.transcend.io/docs/privacy-requests/configuring-requests/data-subject-requests#data-actions) to cancel. | RequestAction[] | N/A | true |
|
|
698
|
+
| statuses | The [request statuses](https://docs.transcend.io/docs/privacy-requests/overview#request-statuses) to cancel. | RequestStatus[] | REQUEST_MADE,WAITING.ENRICHING,COMPILING,DELAYED,APPROVING,SECONDARY,SECONDARY_APPROVING | false |
|
|
699
|
+
| requestIds | Specify the specific request IDs to cancel | string[] | [] | false |
|
|
700
|
+
|
|
701
|
+
| silentModeBefore | Any requests made before this date should be marked as silent mode for canceling to skip email sending | Date | N/A | false |
|
|
702
|
+
| cancellationTitle | The title of the [email template](https://app.transcend.io/privacy-requests/email-templates) that should be sent to the requests upon cancelation. Any request in silent mode will not be emailed. | string | Request Canceled | false |
|
|
703
|
+
| transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
|
|
704
|
+
| concurrency | The concurrency to use when uploading requests in parallel. | number | 100 | false |
|
|
694
705
|
|
|
695
706
|
#### Usage
|
|
696
707
|
|
|
@@ -712,6 +723,13 @@ Bulk cancel all Erasure (request.type=ERASURE) requests that are in an enriching
|
|
|
712
723
|
yarn tr-request-cancel --auth=$TRANSCEND_API_KEY --actions=ERASURE --statuses=ENRICHING
|
|
713
724
|
```
|
|
714
725
|
|
|
726
|
+
Bulk cancel requests by ID
|
|
727
|
+
|
|
728
|
+
```sh
|
|
729
|
+
yarn tr-request-cancel --auth=$TRANSCEND_API_KEY --actions=ACCESS,ERASURE,SALE_OPT_OUT,CONTACT_OPT_OUT --statuses=ENRICHING,COMPILING,APPROVING,WAITING,REQUEST_MADE,ON_HOLD,DELAYED,SECONDARY \
|
|
730
|
+
--requestIds=c3ae78c9-2768-4666-991a-d2f729503337,342e4bd1-64ea-4af0-a4ad-704b5a07cfe4
|
|
731
|
+
```
|
|
732
|
+
|
|
715
733
|
Send a specific email template to the request that are being canceled. When not provided, the default cancellation template is used ("Request Canceled").
|
|
716
734
|
|
|
717
735
|
```sh
|
|
@@ -1173,31 +1191,31 @@ The API key must have the following scopes:
|
|
|
1173
1191
|
#### Usage
|
|
1174
1192
|
|
|
1175
1193
|
```sh
|
|
1176
|
-
yarn tr-manual-enrichment-
|
|
1194
|
+
yarn tr-manual-enrichment-pull-identifiers --auth=$TRANSCEND_API_KEY
|
|
1177
1195
|
```
|
|
1178
1196
|
|
|
1179
1197
|
Pull to a specific file location
|
|
1180
1198
|
|
|
1181
1199
|
```sh
|
|
1182
|
-
yarn tr-manual-enrichment-
|
|
1200
|
+
yarn tr-manual-enrichment-pull-identifiers --auth=$TRANSCEND_API_KEY --file=/Users/transcend/Desktop/test.csv
|
|
1183
1201
|
```
|
|
1184
1202
|
|
|
1185
1203
|
For specific types of requests
|
|
1186
1204
|
|
|
1187
1205
|
```sh
|
|
1188
|
-
yarn tr-manual-enrichment-
|
|
1206
|
+
yarn tr-manual-enrichment-pull-identifiers --auth=$TRANSCEND_API_KEY --actions=ACCESS,ERASURE
|
|
1189
1207
|
```
|
|
1190
1208
|
|
|
1191
1209
|
For US hosted infrastructure
|
|
1192
1210
|
|
|
1193
1211
|
```sh
|
|
1194
|
-
yarn tr-manual-enrichment-
|
|
1212
|
+
yarn tr-manual-enrichment-pull-identifiers --auth=$TRANSCEND_API_KEY --transcendUrl=https://api.us.transcend.io
|
|
1195
1213
|
```
|
|
1196
1214
|
|
|
1197
1215
|
With specific concurrency
|
|
1198
1216
|
|
|
1199
1217
|
```sh
|
|
1200
|
-
yarn tr-manual-enrichment-
|
|
1218
|
+
yarn tr-manual-enrichment-pull-identifiers --auth=$TRANSCEND_API_KEY --concurrency=200
|
|
1201
1219
|
```
|
|
1202
1220
|
|
|
1203
1221
|
### tr-manual-enrichment-push-identifiers
|
|
@@ -1618,3 +1636,73 @@ yarn tr-generate-api-keys --email=test@transcend.io --password=$TRANSCEND_PASSW
|
|
|
1618
1636
|
--scopes="View Email Templates,View Data Map" --apiKeyTitle="CLI Usage Cross Instance Sync" -file=./working/auth.json \
|
|
1619
1637
|
--deleteExistingApiKey=false
|
|
1620
1638
|
```
|
|
1639
|
+
|
|
1640
|
+
### tr-build-xdi-sync-endpoint
|
|
1641
|
+
|
|
1642
|
+
This command allows for building of the [XDI Sync Endpoint](<https://docs.transcend.io/docs/consent/reference/xdi#addxdihostscript(standalone)>) across a set of Transcend accounts.
|
|
1643
|
+
|
|
1644
|
+
#### Authentication
|
|
1645
|
+
|
|
1646
|
+
In order to use this cli, you will first need to generate an API key on the Transcend Admin Dashboard (https://app.transcend.io/infrastructure/api-keys) or by using the `yarn tr-generate-api-keys` command above.
|
|
1647
|
+
|
|
1648
|
+
The API key must have the following scopes:
|
|
1649
|
+
|
|
1650
|
+
- "View Consent Manager"
|
|
1651
|
+
|
|
1652
|
+
#### Arguments
|
|
1653
|
+
|
|
1654
|
+
| Argument | Description | Type | Default | Required |
|
|
1655
|
+
| ------------------ | --------------------------------------------------------------------------------------------------------- | ------------------ | ------------------------ | -------- |
|
|
1656
|
+
| auth | The Transcend API key with the scopes necessary for the command. | string | N/A | true |
|
|
1657
|
+
| xdiLocation | The location of the XDI that will be loaded by the generated sync endpoint. Typically this ends in xdi.js | string | N/A | true |
|
|
1658
|
+
| file | The HTML file path where the sync endpoint should be written. | string - file-path | ./sync-endpoint.html | false |
|
|
1659
|
+
| removeIpAddresses | When true, remove IP addresses from the domain list | boolean | true | false |
|
|
1660
|
+
| domainBlockList | The set of domains that should be excluded from the sync endpoint | string[] | localhost | false |
|
|
1661
|
+
| xdiAllowedCommands | The allowed set of XDI commands | string | ConsentManager:Sync | false |
|
|
1662
|
+
| transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
|
|
1663
|
+
|
|
1664
|
+
#### Usage
|
|
1665
|
+
|
|
1666
|
+
```sh
|
|
1667
|
+
yarn tr-build-xdi-sync-endpoint --auth=$TRANSCEND_API_KEY --xdiLocation=https://cdn.your-site.com/xdi.js
|
|
1668
|
+
```
|
|
1669
|
+
|
|
1670
|
+
Specifying the backend URL, needed for US hosted backend infrastructure.
|
|
1671
|
+
|
|
1672
|
+
```sh
|
|
1673
|
+
yarn tr-build-xdi-sync-endpoint --auth=$TRANSCEND_API_KEY --xdiLocation=https://cdn.your-site.com/xdi.js --transcendUrl=https://api.us.transcend.io
|
|
1674
|
+
```
|
|
1675
|
+
|
|
1676
|
+
Configuring across multiple Transcend Instances:
|
|
1677
|
+
|
|
1678
|
+
```sh
|
|
1679
|
+
# Pull down API keys across all Transcend instances
|
|
1680
|
+
yarn tr-generate-api-keys --email=$TRANSCEND_EMAIL --password=$TRANSCEND_PASSWORD --transcendUrl=https://api.us.transcend.io --scopes="View Consent Manager" --apiKeyTitle="[cli][$TRANSCEND_EMAIL] XDI Endpoint Construction" --file=./api-keys.json --parentOrganizationId=1821d872-6114-406e-90c3-73b4d5e246cf
|
|
1681
|
+
|
|
1682
|
+
# Path list of API keys as authentication
|
|
1683
|
+
yarn tr-build-xdi-sync-endpoint --auth=./api-keys.json --xdiLocation=https://cdn.your-site.com/xdi.js --transcendUrl=https://api.us.transcend.io
|
|
1684
|
+
```
|
|
1685
|
+
|
|
1686
|
+
Pull to specific file location
|
|
1687
|
+
|
|
1688
|
+
```sh
|
|
1689
|
+
yarn tr-build-xdi-sync-endpoint --auth=$TRANSCEND_API_KEY --xdiLocation=https://cdn.your-site.com/xdi.js --file=./my-folder/sync-endpoint.html
|
|
1690
|
+
```
|
|
1691
|
+
|
|
1692
|
+
Don't filter out regular expressions
|
|
1693
|
+
|
|
1694
|
+
```sh
|
|
1695
|
+
yarn tr-build-xdi-sync-endpoint --auth=$TRANSCEND_API_KEY --xdiLocation=https://cdn.your-site.com/xdi.js --removeIpAddresses=false
|
|
1696
|
+
```
|
|
1697
|
+
|
|
1698
|
+
Filter out certain domains that should not be included in the sync endpoint definition
|
|
1699
|
+
|
|
1700
|
+
```sh
|
|
1701
|
+
yarn tr-build-xdi-sync-endpoint --auth=$TRANSCEND_API_KEY --xdiLocation=https://cdn.your-site.com/xdi.js --domainBlockList=ignored.com,localhost
|
|
1702
|
+
```
|
|
1703
|
+
|
|
1704
|
+
Override XDI allowed commands
|
|
1705
|
+
|
|
1706
|
+
```sh
|
|
1707
|
+
yarn tr-build-xdi-sync-endpoint --auth=$TRANSCEND_API_KEY --xdiLocation=https://cdn.your-site.com/xdi.js --xdiAllowedCommands="ExtractIdentifiers:Simple"
|
|
1708
|
+
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateCrossAccountApiKeys.d.ts","sourceRoot":"","sources":["../../src/api-keys/generateCrossAccountApiKeys.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"generateCrossAccountApiKeys.d.ts","sourceRoot":"","sources":["../../src/api-keys/generateCrossAccountApiKeys.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAIzC,MAAM,WAAW,mBAAmB;IAClC,uBAAuB;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAsB,2BAA2B,CAAC,EAChD,KAAK,EACL,QAAQ,EACR,MAAM,EACN,WAAW,EACX,oBAAoB,EACpB,oBAA2B,EAC3B,eAAsB,EACtB,YAAoC,GACrC,EAAE;IACD,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gIAAgI;IAChI,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iFAAiF;IACjF,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,OAAO,CAAC;IACV,6BAA6B;IAC7B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,oBAAoB;IACpB,MAAM,EAAE,mBAAmB,EAAE,CAAC;CAC/B,CAAC,CAuID"}
|
|
@@ -8,13 +8,14 @@ const bluebird_1 = require("bluebird");
|
|
|
8
8
|
const graphql_1 = require("../graphql");
|
|
9
9
|
const colors_1 = __importDefault(require("colors"));
|
|
10
10
|
const logger_1 = require("../logger");
|
|
11
|
+
const constants_1 = require("../constants");
|
|
11
12
|
/**
|
|
12
13
|
* Generate API keys across multiple transcend accounts
|
|
13
14
|
*
|
|
14
15
|
* @param options - Options
|
|
15
16
|
* @returns Number of API keys created
|
|
16
17
|
*/
|
|
17
|
-
async function generateCrossAccountApiKeys({ email, password, scopes, apiKeyTitle, parentOrganizationId, deleteExistingApiKey = true, createNewApiKey = true, transcendUrl =
|
|
18
|
+
async function generateCrossAccountApiKeys({ email, password, scopes, apiKeyTitle, parentOrganizationId, deleteExistingApiKey = true, createNewApiKey = true, transcendUrl = constants_1.DEFAULT_TRANSCEND_API, }) {
|
|
18
19
|
// Create GraphQL client
|
|
19
20
|
const client = await (0, graphql_1.buildTranscendGraphQLClientGeneric)(transcendUrl, {});
|
|
20
21
|
// Login the user
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateCrossAccountApiKeys.js","sourceRoot":"","sources":["../../src/api-keys/generateCrossAccountApiKeys.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAqC;AACrC,wCAOoB;AAEpB,oDAA4B;AAE5B,sCAAmC;
|
|
1
|
+
{"version":3,"file":"generateCrossAccountApiKeys.js","sourceRoot":"","sources":["../../src/api-keys/generateCrossAccountApiKeys.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAqC;AACrC,wCAOoB;AAEpB,oDAA4B;AAE5B,sCAAmC;AACnC,4CAAqD;AAWrD;;;;;GAKG;AACI,KAAK,UAAU,2BAA2B,CAAC,EAChD,KAAK,EACL,QAAQ,EACR,MAAM,EACN,WAAW,EACX,oBAAoB,EACpB,oBAAoB,GAAG,IAAI,EAC3B,eAAe,GAAG,IAAI,EACtB,YAAY,GAAG,iCAAqB,GAkBrC;IAMC,wBAAwB;IACxB,MAAM,MAAM,GAAG,MAAM,IAAA,4CAAkC,EAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAE1E,iBAAiB;IACjB,eAAM,CAAC,IAAI,CAAC,gBAAM,CAAC,OAAO,CAAC,sCAAsC,CAAC,CA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],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 yargs_parser_1 = __importDefault(require("yargs-parser"));
|
|
8
|
+
const logger_1 = require("./logger");
|
|
9
|
+
const colors_1 = __importDefault(require("colors"));
|
|
10
|
+
const fs_1 = require("fs");
|
|
11
|
+
const api_keys_1 = require("./api-keys");
|
|
12
|
+
const constants_1 = require("./constants");
|
|
13
|
+
const consent_manager_1 = require("./consent-manager");
|
|
14
|
+
const requests_1 = require("./requests");
|
|
15
|
+
/**
|
|
16
|
+
* Build the Transcend Consent Manager XDI sync endpoint
|
|
17
|
+
*
|
|
18
|
+
* @see https://docs.transcend.io/docs/consent/reference/xdi#addxdihostscript(standalone)
|
|
19
|
+
*
|
|
20
|
+
* Dev Usage:
|
|
21
|
+
* yarn ts-node ./src/cli-build-xdi-sync-endpoint.ts --xdiLocation=https://cdn.your-site.com/xdi.js
|
|
22
|
+
*
|
|
23
|
+
* Standard usage
|
|
24
|
+
* yarn tr-build-xdi-sync-endpoint --xdiLocation=https://cdn.your-site.com/xdi.js
|
|
25
|
+
*/
|
|
26
|
+
async function main() {
|
|
27
|
+
// Parse command line arguments
|
|
28
|
+
const { transcendUrl = constants_1.DEFAULT_TRANSCEND_API, auth, xdiLocation, file = './sync-endpoint.html', removeIpAddresses = 'true', domainBlockList = '', xdiAllowedCommands = 'ConsentManager:Sync', } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
29
|
+
// Parse authentication as API key or path to list of API keys
|
|
30
|
+
const apiKeyOrList = await (0, api_keys_1.validateTranscendAuth)(auth);
|
|
31
|
+
// Parse block list setting
|
|
32
|
+
const blockList = (0, requests_1.splitCsvToList)(domainBlockList);
|
|
33
|
+
// Build the sync endpoint
|
|
34
|
+
const { syncGroups, html } = await (0, consent_manager_1.buildXdiSyncEndpoint)(apiKeyOrList, {
|
|
35
|
+
xdiLocation,
|
|
36
|
+
transcendUrl,
|
|
37
|
+
removeIpAddresses: removeIpAddresses === 'true',
|
|
38
|
+
domainBlockList: blockList.length > 0 ? blockList : undefined,
|
|
39
|
+
xdiAllowedCommands,
|
|
40
|
+
});
|
|
41
|
+
// Log success
|
|
42
|
+
logger_1.logger.info(colors_1.default.green(`Successfully constructed sync endpoint for sync groups: ${JSON.stringify(syncGroups, null, 2)}`));
|
|
43
|
+
// Write to disk
|
|
44
|
+
(0, fs_1.writeFileSync)(file, html);
|
|
45
|
+
logger_1.logger.info(colors_1.default.green(`Wrote configuration to file "${file}"!`));
|
|
46
|
+
}
|
|
47
|
+
main();
|
|
48
|
+
//# sourceMappingURL=cli-build-xdi-sync-endpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-build-xdi-sync-endpoint.js","sourceRoot":"","sources":["../src/cli-build-xdi-sync-endpoint.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,qCAAkC;AAClC,oDAA4B;AAC5B,2BAAmC;AACnC,yCAAmD;AACnD,2CAAoD;AACpD,uDAAyD;AACzD,yCAA4C;AAE5C;;;;;;;;;;GAUG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,YAAY,GAAG,iCAAqB,EACpC,IAAI,EACJ,WAAW,EACX,IAAI,GAAG,sBAAsB,EAC7B,iBAAiB,GAAG,MAAM,EAC1B,eAAe,GAAG,EAAE,EACpB,kBAAkB,GAAG,qBAAqB,GAC3C,GAAG,IAAA,sBAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAEjC,8DAA8D;IAC9D,MAAM,YAAY,GAAG,MAAM,IAAA,gCAAqB,EAAC,IAAI,CAAC,CAAC;IAEvD,2BAA2B;IAC3B,MAAM,SAAS,GAAG,IAAA,yBAAc,EAAC,eAAe,CAAC,CAAC;IAElD,0BAA0B;IAC1B,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,sCAAoB,EAAC,YAAY,EAAE;QACpE,WAAW;QACX,YAAY;QACZ,iBAAiB,EAAE,iBAAiB,KAAK,MAAM;QAC/C,eAAe,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;QAC7D,kBAAkB;KACnB,CAAC,CAAC;IAEH,cAAc;IACd,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,KAAK,CACV,2DAA2D,IAAI,CAAC,SAAS,CACvE,UAAU,EACV,IAAI,EACJ,CAAC,CACF,EAAE,CACJ,CACF,CAAC;IAEF,gBAAgB;IAChB,IAAA,kBAAa,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1B,eAAM,CAAC,IAAI,CAAC,gBAAM,CAAC,KAAK,CAAC,gCAAgC,IAAI,IAAI,CAAC,CAAC,CAAC;AACtE,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -8,6 +8,7 @@ const yargs_parser_1 = __importDefault(require("yargs-parser"));
|
|
|
8
8
|
const colors_1 = __importDefault(require("colors"));
|
|
9
9
|
const logger_1 = require("./logger");
|
|
10
10
|
const cron_1 = require("./cron");
|
|
11
|
+
const constants_1 = require("./constants");
|
|
11
12
|
/**
|
|
12
13
|
* Mark all of the identifiers in a cron job CSV as completed.
|
|
13
14
|
*
|
|
@@ -25,7 +26,7 @@ const cron_1 = require("./cron");
|
|
|
25
26
|
*/
|
|
26
27
|
async function main() {
|
|
27
28
|
// Parse command line arguments
|
|
28
|
-
const { file = './cron-identifiers.csv', transcendUrl =
|
|
29
|
+
const { file = './cron-identifiers.csv', transcendUrl = constants_1.DEFAULT_TRANSCEND_API, auth, sombraAuth, dataSiloId, } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
29
30
|
// Ensure auth is passed
|
|
30
31
|
if (!auth) {
|
|
31
32
|
logger_1.logger.error(colors_1.default.red('A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-cron-mark-identifiers-completed.js","sourceRoot":"","sources":["../src/cli-cron-mark-identifiers-completed.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,iCAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,IAAI,GAAG,wBAAwB,EAC/B,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"cli-cron-mark-identifiers-completed.js","sourceRoot":"","sources":["../src/cli-cron-mark-identifiers-completed.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,iCAAoD;AACpD,2CAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,IAAI,GAAG,wBAAwB,EAC/B,YAAY,GAAG,iCAAqB,EACpC,IAAI,EACJ,UAAU,EACV,UAAU,GACX,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,0BAA0B;IAC1B,MAAM,IAAA,iCAA0B,EAAC;QAC/B,IAAI;QACJ,YAAY;QACZ,IAAI;QACJ,UAAU;QACV,UAAU;KACX,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -9,6 +9,7 @@ const colors_1 = __importDefault(require("colors"));
|
|
|
9
9
|
const logger_1 = require("./logger");
|
|
10
10
|
const cron_1 = require("./cron");
|
|
11
11
|
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
12
|
+
const constants_1 = require("./constants");
|
|
12
13
|
/**
|
|
13
14
|
* Pull the set of active identifiers for a cron job silo.
|
|
14
15
|
*
|
|
@@ -28,7 +29,7 @@ const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
|
28
29
|
*/
|
|
29
30
|
async function main() {
|
|
30
31
|
// Parse command line arguments
|
|
31
|
-
const { file = './cron-identifiers.csv', transcendUrl =
|
|
32
|
+
const { file = './cron-identifiers.csv', transcendUrl = constants_1.DEFAULT_TRANSCEND_API, auth, sombraAuth, dataSiloId, requestType, pageLimit = '100', } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
32
33
|
// Ensure auth is passed
|
|
33
34
|
if (!auth) {
|
|
34
35
|
logger_1.logger.error(colors_1.default.red('A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-cron-pull-identifiers.js","sourceRoot":"","sources":["../src/cli-cron-pull-identifiers.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,iCAAkD;AAClD,+DAA4D;
|
|
1
|
+
{"version":3,"file":"cli-cron-pull-identifiers.js","sourceRoot":"","sources":["../src/cli-cron-pull-identifiers.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,iCAAkD;AAClD,+DAA4D;AAC5D,2CAAoD;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,IAAI,GAAG,wBAAwB,EAC/B,YAAY,GAAG,iCAAqB,EACpC,IAAI,EACJ,UAAU,EACV,UAAU,EACV,WAAW,EACX,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,wBAAwB;IACxB,8DAA8D;IAC9D,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,6BAAa,CAAC,CAAC,QAAQ,CAAC,WAAkB,CAAC,EAAE;QAC9D,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,gCAAgC,WAAW,MAAM;YAC/C,sBAAsB,MAAM,CAAC,MAAM,CAAC,6BAAa,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAClE,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,0BAA0B;IAC1B,MAAM,IAAA,+BAAwB,EAAC;QAC7B,IAAI;QACJ,YAAY;QACZ,SAAS,EAAE,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC;QAClC,WAAW,EAAE,WAA4B;QACzC,IAAI;QACJ,UAAU;QACV,UAAU;KACX,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -27,7 +27,7 @@ const findFilesToScan_1 = require("./plugins/findFilesToScan");
|
|
|
27
27
|
*/
|
|
28
28
|
async function main() {
|
|
29
29
|
// Parse command line arguments
|
|
30
|
-
const { scanPath = '.', ignoreDirs = '', transcendUrl =
|
|
30
|
+
const { scanPath = '.', ignoreDirs = '', transcendUrl = constants_1.DEFAULT_TRANSCEND_API, dataSiloId = '', fileGlobs = '', auth, } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
31
31
|
// // Ensure auth is passed
|
|
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'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-discover-silos.js","sourceRoot":"","sources":["../src/cli-discover-silos.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,qCAAkC;AAClC,oDAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"cli-discover-silos.js","sourceRoot":"","sources":["../src/cli-discover-silos.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,qCAAkC;AAClC,oDAA4B;AAC5B,2CAAgE;AAChE,uCAAqD;AACrD,uCAImB;AACnB,+DAA4D;AAE5D;;;;;;;;;;;;;GAaG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,QAAQ,GAAG,GAAG,EACd,UAAU,GAAG,EAAE,EACf,YAAY,GAAG,iCAAqB,EACpC,UAAU,GAAG,EAAE,EACf,SAAS,GAAG,EAAE,EACd,IAAI,GACL,GAAG,IAAA,sBAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAEjC,2BAA2B;IAC3B,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;IACD,0BAA0B;IAC1B,MAAM,MAAM,GAAG,IAAA,qCAA2B,EAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAE/D,MAAM,MAAM,GAAG,MAAM,IAAA,oCAA0B,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACpE,MAAM,MAAM,GAAG,kCAAwB,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9D,MAAM,OAAO,GAAG,MAAM,IAAA,iCAAe,EACnC,QAAQ,EACR,SAAS,EACT,UAAU,EACV,MAAM,CACP,CAAC;IAEF,MAAM,IAAA,oCAA0B,EAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAE7D,mBAAmB;IACnB,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,KAAK,CACV,cAAc,OAAO,CAAC,MAAM,4BAA4B,QAAQ,IAAI;QAClE,WAAW,sBAAU,gDAAgD,CACxE,CACF,CAAC;AACJ,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -11,6 +11,7 @@ const keyBy_1 = __importDefault(require("lodash/keyBy"));
|
|
|
11
11
|
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
12
12
|
const logger_1 = require("./logger");
|
|
13
13
|
const api_keys_1 = require("./api-keys");
|
|
14
|
+
const constants_1 = require("./constants");
|
|
14
15
|
const SCOPES_BY_TITLE = (0, keyBy_1.default)(Object.entries(privacy_types_1.TRANSCEND_SCOPES).map(([name, value]) => ({
|
|
15
16
|
...value,
|
|
16
17
|
name,
|
|
@@ -31,7 +32,7 @@ const SCOPE_TITLES = Object.keys(SCOPES_BY_TITLE);
|
|
|
31
32
|
*/
|
|
32
33
|
async function main() {
|
|
33
34
|
// Parse command line arguments
|
|
34
|
-
const { transcendUrl =
|
|
35
|
+
const { transcendUrl = constants_1.DEFAULT_TRANSCEND_API, file, email, password, apiKeyTitle, scopes, parentOrganizationId, deleteExistingApiKey = 'true', createNewApiKey = 'true', } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
35
36
|
// Ensure file is passed
|
|
36
37
|
if (!file) {
|
|
37
38
|
logger_1.logger.error(colors_1.default.red('A file must be provided. You can specify using --file=./secrets.json'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-generate-cross-account-api-keys.js","sourceRoot":"","sources":["../src/cli-generate-cross-account-api-keys.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAC5B,2BAAmC;AACnC,yDAAiC;AACjC,+DAA0E;AAE1E,qCAAkC;AAClC,yCAAyD;
|
|
1
|
+
{"version":3,"file":"cli-generate-cross-account-api-keys.js","sourceRoot":"","sources":["../src/cli-generate-cross-account-api-keys.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAC5B,2BAAmC;AACnC,yDAAiC;AACjC,+DAA0E;AAE1E,qCAAkC;AAClC,yCAAyD;AACzD,2CAAoD;AAEpD,MAAM,eAAe,GAAG,IAAA,eAAK,EAC3B,MAAM,CAAC,OAAO,CAAC,gCAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IACvD,GAAG,KAAK;IACR,IAAI;CACL,CAAC,CAAC,EACH,OAAO,CACR,CAAC;AACF,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AAElD;;;;;;;;;;;;GAYG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,YAAY,GAAG,iCAAqB,EACpC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,oBAAoB,EACpB,oBAAoB,GAAG,MAAM,EAC7B,eAAe,GAAG,MAAM,GACzB,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,sEAAsE,CACvE,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,yBAAyB;IACzB,IAAI,CAAC,KAAK,EAAE;QACV,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,0EAA0E,CAC3E,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,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AAE,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,IAAiB,CAC9D,CAAC;IAEF,0BAA0B;IAC1B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAA,sCAA2B,EAAC;QAC5D,YAAY;QACZ,QAAQ;QACR,KAAK;QACL,oBAAoB;QACpB,oBAAoB,EAAE,oBAAoB,KAAK,OAAO;QACtD,eAAe,EAAE,eAAe,KAAK,OAAO;QAC5C,WAAW;QACX,MAAM,EAAE,UAAU;KACnB,CAAC,CAAC;IAEH,gBAAgB;IAChB,IAAA,kBAAa,EAAC,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7D,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;AACH,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -9,6 +9,7 @@ const colors_1 = __importDefault(require("colors"));
|
|
|
9
9
|
const logger_1 = require("./logger");
|
|
10
10
|
const manual_enrichment_1 = require("./manual-enrichment");
|
|
11
11
|
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
12
|
+
const constants_1 = require("./constants");
|
|
12
13
|
/**
|
|
13
14
|
* Pull the the set of requests that actively require manual enrichment.
|
|
14
15
|
*
|
|
@@ -26,7 +27,7 @@ const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
|
26
27
|
*/
|
|
27
28
|
async function main() {
|
|
28
29
|
// Parse command line arguments
|
|
29
|
-
const { file = './manual-enrichment-identifiers.csv', transcendUrl =
|
|
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));
|
|
30
31
|
// Ensure auth is passed
|
|
31
32
|
if (!auth) {
|
|
32
33
|
logger_1.logger.error(colors_1.default.red('A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY'));
|
|
@@ -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;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,2DAA2E;AAC3E,+DAA4D;
|
|
1
|
+
{"version":3,"file":"cli-manual-enrichment-pull-identifiers.js","sourceRoot":"","sources":["../src/cli-manual-enrichment-pull-identifiers.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,2DAA2E;AAC3E,+DAA4D;AAC5D,2CAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,IAAI,GAAG,qCAAqC,EAC5C,YAAY,GAAG,iCAAqB,EACpC,IAAI,EACJ,OAAO,GAAG,EAAE,EACZ,WAAW,GAAG,KAAK,GACpB,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,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;KACL,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -8,6 +8,7 @@ const yargs_parser_1 = __importDefault(require("yargs-parser"));
|
|
|
8
8
|
const colors_1 = __importDefault(require("colors"));
|
|
9
9
|
const logger_1 = require("./logger");
|
|
10
10
|
const manual_enrichment_1 = require("./manual-enrichment");
|
|
11
|
+
const constants_1 = require("./constants");
|
|
11
12
|
/**
|
|
12
13
|
* Push the the set of manually enriched requests back into the Transcend dashboard
|
|
13
14
|
*
|
|
@@ -23,7 +24,7 @@ const manual_enrichment_1 = require("./manual-enrichment");
|
|
|
23
24
|
*/
|
|
24
25
|
async function main() {
|
|
25
26
|
// Parse command line arguments
|
|
26
|
-
const { file = './manual-enrichment-identifiers.csv', transcendUrl =
|
|
27
|
+
const { file = './manual-enrichment-identifiers.csv', transcendUrl = constants_1.DEFAULT_TRANSCEND_API, auth, enricherId, sombraAuth, concurrency = '100', } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
27
28
|
// Ensure auth is passed
|
|
28
29
|
if (!auth) {
|
|
29
30
|
logger_1.logger.error(colors_1.default.red('A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-manual-enrichment-push-identifiers.js","sourceRoot":"","sources":["../src/cli-manual-enrichment-push-identifiers.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,2DAA6E;
|
|
1
|
+
{"version":3,"file":"cli-manual-enrichment-push-identifiers.js","sourceRoot":"","sources":["../src/cli-manual-enrichment-push-identifiers.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,2DAA6E;AAC7E,2CAAoD;AAEpD;;;;;;;;;;;;GAYG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,IAAI,GAAG,qCAAqC,EAC5C,YAAY,GAAG,iCAAqB,EACpC,IAAI,EACJ,UAAU,EACV,UAAU,EACV,WAAW,GAAG,KAAK,GACpB,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,gCAAgC;IAChC,IAAI,CAAC,UAAU,EAAE;QACf,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,mCAAmC;YACjC,yEAAyE,CAC5E,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,qCAAqC;IACrC,MAAM,IAAA,0DAAsC,EAAC;QAC3C,IAAI;QACJ,YAAY;QACZ,UAAU;QACV,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;QACtC,IAAI;QACJ,UAAU;KACX,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -8,6 +8,7 @@ const yargs_parser_1 = __importDefault(require("yargs-parser"));
|
|
|
8
8
|
const colors_1 = __importDefault(require("colors"));
|
|
9
9
|
const logger_1 = require("./logger");
|
|
10
10
|
const cron_1 = require("./cron");
|
|
11
|
+
const constants_1 = require("./constants");
|
|
11
12
|
/**
|
|
12
13
|
* Given a set of Request IDs and a Data Silo ID, mark the RequestDataSilos as completed
|
|
13
14
|
*
|
|
@@ -26,7 +27,7 @@ const cron_1 = require("./cron");
|
|
|
26
27
|
*/
|
|
27
28
|
async function main() {
|
|
28
29
|
// Parse command line arguments
|
|
29
|
-
const { file = './request-identifiers.csv', transcendUrl =
|
|
30
|
+
const { file = './request-identifiers.csv', transcendUrl = constants_1.DEFAULT_TRANSCEND_API, auth, dataSiloId, } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
30
31
|
// Ensure auth is passed
|
|
31
32
|
if (!auth) {
|
|
32
33
|
logger_1.logger.error(colors_1.default.red('A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-mark-request-data-silos-completed.js","sourceRoot":"","sources":["../src/cli-mark-request-data-silos-completed.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,iCAAyD;
|
|
1
|
+
{"version":3,"file":"cli-mark-request-data-silos-completed.js","sourceRoot":"","sources":["../src/cli-mark-request-data-silos-completed.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,oDAA4B;AAE5B,qCAAkC;AAClC,iCAAyD;AACzD,2CAAoD;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,IAAI,GAAG,2BAA2B,EAClC,YAAY,GAAG,iCAAqB,EACpC,IAAI,EACJ,UAAU,GACX,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,gCAAgC;IAChC,IAAI,CAAC,UAAU,EAAE;QACf,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CACR,0GAA0G,CAC3G,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,0BAA0B;IAC1B,MAAM,IAAA,sCAA+B,EAAC;QACpC,IAAI;QACJ,YAAY;QACZ,IAAI;QACJ,UAAU;KACX,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -49,7 +49,7 @@ const cron_1 = require("./cron");
|
|
|
49
49
|
*/
|
|
50
50
|
async function main() {
|
|
51
51
|
// Parse command line arguments
|
|
52
|
-
const { folder = './consent-metrics/', transcendUrl =
|
|
52
|
+
const { folder = './consent-metrics/', transcendUrl = constants_1.DEFAULT_TRANSCEND_API, bin = '1d', auth, end, start, } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
53
53
|
// Parse authentication as API key or path to list of API keys
|
|
54
54
|
const apiKeyOrList = await (0, api_keys_1.validateTranscendAuth)(auth);
|
|
55
55
|
// Ensure folder either does not exist or is not a file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-pull-consent-metrics.js","sourceRoot":"","sources":["../src/cli-pull-consent-metrics.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,gEAAiC;AACjC,qCAAkC;AAClC,oDAA4B;AAC5B,uCAAqC;AACrC,+BAA4B;AAC5B,yCAA+C;AAC/C,uCAGmB;AACnB,yCAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"cli-pull-consent-metrics.js","sourceRoot":"","sources":["../src/cli-pull-consent-metrics.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;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4BACd,KAAK;yBACN,CAAC,CAAC,CACJ,CAAC;oBACJ,CAAC,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,KAAK,CAAC,GAAG,MAAM,oCAAoC,CAAC,CAC5D,CAAC;aACH;YAAC,OAAO,GAAG,EAAE;gBACZ,eAAM,CAAC,KAAK,CAAC,gBAAM,CAAC,GAAG,CAAC,GAAG,MAAM,+BAA+B,CAAC,CAAC,CAAC;gBACnE,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;aACjD;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;YAChC,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,GAAG,CACR,gCAAgC,iBAAiB,CAAC,IAAI,CACpD,GAAG,CACJ,2DAA2D,mCAAuB,EAAE,CACtF,CACF,CAAC;YAEF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SACjB;KACF;AACH,CAAC;AAED,IAAI,EAAE,CAAC"}
|
package/build/cli-pull.js
CHANGED
|
@@ -28,7 +28,7 @@ const VALID_RESOURCES = Object.values(graphql_1.TranscendPullResource);
|
|
|
28
28
|
*/
|
|
29
29
|
async function main() {
|
|
30
30
|
// Parse command line arguments
|
|
31
|
-
const { file = './transcend.yml', transcendUrl =
|
|
31
|
+
const { file = './transcend.yml', transcendUrl = constants_1.DEFAULT_TRANSCEND_API, dataSiloIds = '', integrationNames = '', resources = graphql_1.DEFAULT_TRANSCEND_PULL_RESOURCES.join(','), pageSize = '', debug = '', auth, trackerStatuses = Object.values(privacy_types_1.ConsentTrackerStatus).join(','), } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
32
32
|
// Parse authentication as API key or path to list of API keys
|
|
33
33
|
const apiKeyOrList = await (0, api_keys_1.validateTranscendAuth)(auth);
|
|
34
34
|
// Validate trackerStatuses
|
|
@@ -112,7 +112,7 @@ async function main() {
|
|
|
112
112
|
logger_1.logger.info(colors_1.default.green(`${prefix}Successfully pulled configuration!`));
|
|
113
113
|
}
|
|
114
114
|
catch (err) {
|
|
115
|
-
logger_1.logger.error(colors_1.default.red(`${prefix}Failed to sync configuration
|
|
115
|
+
logger_1.logger.error(colors_1.default.red(`${prefix}Failed to sync configuration. - ${err.message}`));
|
|
116
116
|
encounteredErrors.push(apiKey.organizationName);
|
|
117
117
|
}
|
|
118
118
|
});
|
package/build/cli-pull.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-pull.js","sourceRoot":"","sources":["../src/cli-pull.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,qCAAkC;AAClC,oDAA4B;AAC5B,uCAAqC;AACrC,+BAA4B;AAC5B,4CAAoB;AACpB,uCAKmB;AACnB,+DAAmE;AACnE,yCAAmD;AACnD,2DAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"cli-pull.js","sourceRoot":"","sources":["../src/cli-pull.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAiC;AACjC,qCAAkC;AAClC,oDAA4B;AAC5B,uCAAqC;AACrC,+BAA4B;AAC5B,4CAAoB;AACpB,uCAKmB;AACnB,+DAAmE;AACnE,yCAAmD;AACnD,2DAAyD;AACzD,2CAA6E;AAC7E,yCAA4C;AAE5C,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,+BAAqB,CAAC,CAAC;AAE7D;;;;;;;;GAQG;AACH,KAAK,UAAU,IAAI;IACjB,+BAA+B;IAC/B,MAAM,EACJ,IAAI,GAAG,iBAAiB,EACxB,YAAY,GAAG,iCAAqB,EACpC,WAAW,GAAG,EAAE,EAChB,gBAAgB,GAAG,EAAE,EACrB,SAAS,GAAG,0CAAgC,CAAC,IAAI,CAAC,GAAG,CAAC,EACtD,QAAQ,GAAG,EAAE,EACb,KAAK,GAAG,EAAE,EACV,IAAI,EACJ,eAAe,GAAG,MAAM,CAA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AAE,qBAAqB;iBACvC,CAAC,CAAC;gBAEH,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,IAAI,EAAE,GAAG,MAAM,CAAC,gBAAgB,MAAM,CAAC,CAAC;gBAC9D,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,OAAO,CAAC,kCAAkC,QAAQ,MAAM,CAAC,CACjE,CAAC;gBACF,IAAA,sCAAkB,EAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;gBAE5C,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,KAAK,CAAC,GAAG,MAAM,oCAAoC,CAAC,CAC5D,CAAC;aACH;YAAC,OAAO,GAAG,EAAE;gBACZ,eAAM,CAAC,KAAK,CACV,gBAAM,CAAC,GAAG,CAAC,GAAG,MAAM,mCAAmC,GAAG,CAAC,OAAO,EAAE,CAAC,CACtE,CAAC;gBACF,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;aACjD;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;YAChC,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,GAAG,CACR,gCAAgC,iBAAiB,CAAC,IAAI,CACpD,GAAG,CACJ,2DAA2D,mCAAuB,EAAE,CACtF,CACF,CAAC;YAEF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SACjB;KACF;AACH,CAAC;AAED,IAAI,EAAE,CAAC"}
|
package/build/cli-push.js
CHANGED
|
@@ -44,7 +44,7 @@ async function syncConfiguration({ transcendUrl, auth, pageSize, publishToPrivac
|
|
|
44
44
|
*/
|
|
45
45
|
async function main() {
|
|
46
46
|
// Parse command line arguments
|
|
47
|
-
const { file = './transcend.yml', transcendUrl =
|
|
47
|
+
const { file = './transcend.yml', transcendUrl = constants_1.DEFAULT_TRANSCEND_API, auth, variables = '', pageSize = '', publishToPrivacyCenter, classifyService = '', } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
48
48
|
// Parse authentication as API key or path to list of API keys
|
|
49
49
|
const apiKeyOrList = await (0, api_keys_1.validateTranscendAuth)(auth);
|
|
50
50
|
// Parse out the variables
|
|
@@ -66,6 +66,7 @@ async function main() {
|
|
|
66
66
|
if (fileList.length < 1) {
|
|
67
67
|
throw new Error('No file specified!');
|
|
68
68
|
}
|
|
69
|
+
// eslint-disable-next-line array-callback-return,consistent-return
|
|
69
70
|
const transcendInputs = fileList.map((filePath) => {
|
|
70
71
|
// Ensure yaml file exists on disk
|
|
71
72
|
if (!(0, fs_1.existsSync)(filePath)) {
|
|
@@ -89,7 +90,6 @@ async function main() {
|
|
|
89
90
|
catch (err) {
|
|
90
91
|
logger_1.logger.error(colors_1.default.red(`The shape of your yaml file is invalid with the following errors: ${err.message}`));
|
|
91
92
|
process.exit(1);
|
|
92
|
-
throw err;
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
// Parse page size
|