@transcend-io/cli 4.26.0 → 4.26.2
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 +19 -17
- package/build/graphql/fetchAllCookies.d.ts +52 -0
- package/build/graphql/fetchAllCookies.d.ts.map +1 -0
- package/build/graphql/fetchAllCookies.js +38 -0
- package/build/graphql/fetchAllCookies.js.map +1 -0
- package/build/graphql/fetchAllDataFlows.d.ts +52 -0
- package/build/graphql/fetchAllDataFlows.d.ts.map +1 -0
- package/build/graphql/fetchAllDataFlows.js +38 -0
- package/build/graphql/fetchAllDataFlows.js.map +1 -0
- package/build/graphql/fetchConsentManagerId.d.ts +9 -0
- package/build/graphql/fetchConsentManagerId.d.ts.map +1 -0
- package/build/graphql/fetchConsentManagerId.js +17 -0
- package/build/graphql/fetchConsentManagerId.js.map +1 -0
- package/build/graphql/formatAttributeValues.d.ts +2 -2
- package/build/graphql/formatAttributeValues.d.ts.map +1 -1
- package/build/graphql/formatAttributeValues.js.map +1 -1
- package/build/graphql/gqls/consentManager.d.ts +6 -0
- package/build/graphql/gqls/consentManager.d.ts.map +1 -0
- package/build/graphql/gqls/consentManager.js +122 -0
- package/build/graphql/gqls/consentManager.js.map +1 -0
- package/build/graphql/gqls/index.d.ts +1 -0
- package/build/graphql/gqls/index.d.ts.map +1 -1
- package/build/graphql/gqls/index.js +1 -0
- package/build/graphql/gqls/index.js.map +1 -1
- package/build/graphql/index.d.ts +3 -0
- package/build/graphql/index.d.ts.map +1 -1
- package/build/graphql/index.js +3 -0
- package/build/graphql/index.js.map +1 -1
- package/build/graphql/syncDataSilos.d.ts +4 -4
- package/build/graphql/syncDataSilos.d.ts.map +1 -1
- package/build/requests/mapCsvRowsToRequestInputs.d.ts +2 -2
- package/build/requests/mapCsvRowsToRequestInputs.d.ts.map +1 -1
- package/build/requests/mapCsvRowsToRequestInputs.js.map +1 -1
- package/build/requests/parseAttributesFromString.d.ts +2 -2
- package/build/requests/parseAttributesFromString.d.ts.map +1 -1
- package/build/requests/submitPrivacyRequest.d.ts +3 -2
- package/build/requests/submitPrivacyRequest.d.ts.map +1 -1
- package/build/tsbuildinfo +1 -1
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -24,35 +24,35 @@
|
|
|
24
24
|
- [tr-request-upload](#tr-request-upload)
|
|
25
25
|
- [Authentication](#authentication-3)
|
|
26
26
|
- [Arguments](#arguments-3)
|
|
27
|
-
|
|
27
|
+
- [Usage](#usage-4)
|
|
28
28
|
- [tr-request-restart](#tr-request-restart)
|
|
29
29
|
- [Authentication](#authentication-4)
|
|
30
30
|
- [Arguments](#arguments-4)
|
|
31
|
-
|
|
31
|
+
- [Usage](#usage-5)
|
|
32
32
|
- [tr-cron-pull-identifiers](#tr-cron-pull-identifiers)
|
|
33
33
|
- [Authentication](#authentication-5)
|
|
34
34
|
- [Arguments](#arguments-5)
|
|
35
|
-
|
|
35
|
+
- [Usage](#usage-6)
|
|
36
36
|
- [tr-cron-mark-identifiers-completed](#tr-cron-mark-identifiers-completed)
|
|
37
37
|
- [Authentication](#authentication-6)
|
|
38
38
|
- [Arguments](#arguments-6)
|
|
39
|
-
|
|
39
|
+
- [Usage](#usage-7)
|
|
40
40
|
- [tr-manual-enrichment-pull-identifiers](#tr-manual-enrichment-pull-identifiers)
|
|
41
41
|
- [Authentication](#authentication-7)
|
|
42
42
|
- [Arguments](#arguments-7)
|
|
43
|
-
|
|
43
|
+
- [Usage](#usage-8)
|
|
44
44
|
- [tr-manual-enrichment-push-identifiers](#tr-manual-enrichment-push-identifiers)
|
|
45
45
|
- [Authentication](#authentication-8)
|
|
46
46
|
- [Arguments](#arguments-8)
|
|
47
|
-
|
|
47
|
+
- [Usage](#usage-9)
|
|
48
48
|
- [tr-mark-request-data-silos-completed](#tr-mark-request-data-silos-completed)
|
|
49
49
|
- [Authentication](#authentication-9)
|
|
50
50
|
- [Arguments](#arguments-9)
|
|
51
|
-
|
|
51
|
+
- [Usage](#usage-10)
|
|
52
52
|
- [tr-retry-request-data-silos](#tr-retry-request-data-silos)
|
|
53
53
|
- [Authentication](#authentication-10)
|
|
54
54
|
- [Arguments](#arguments-10)
|
|
55
|
-
|
|
55
|
+
- [Usage](#usage-11)
|
|
56
56
|
|
|
57
57
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
58
58
|
|
|
@@ -124,7 +124,9 @@ You can find various examples for your `transcend.yml` file in the [examples/](.
|
|
|
124
124
|
|
|
125
125
|
The API for this YAML file can be found in [./src/codecs.ts](./src/codecs.ts) under the variable named "TranscendInput". The shape of the YAML file will be type-checked every time a command is run.
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
By default, your editor or IDE should recognize `transcend.yml` and validate it against our published [JSON schema](./transcend-yml-schema-v4.json). This is dependent on whether your editor uses [yaml-language-server](https://github.com/redhat-developer/yaml-language-server), such as through the [VS Code YAML extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).
|
|
128
|
+
|
|
129
|
+
The structure of `transcend.yml` looks something like the following:
|
|
128
130
|
|
|
129
131
|
```yaml
|
|
130
132
|
# Manage at: https://app.transcend.io/infrastructure/api-keys
|
|
@@ -500,7 +502,7 @@ The API key needs the following scopes:
|
|
|
500
502
|
| debug | Debug logging. | boolean | false | false |
|
|
501
503
|
| defaultPhoneCountryCode | When uploading phone numbers, if the phone number is missing a country code, assume this country code. Defaults to USA. | string | 1 | false |
|
|
502
504
|
|
|
503
|
-
|
|
505
|
+
#### Usage
|
|
504
506
|
|
|
505
507
|
```sh
|
|
506
508
|
yarn tr-request-upload --auth=$TRANSCEND_API_KEY --file=/Users/transcend/Desktop/test.csv
|
|
@@ -607,7 +609,7 @@ The API key needs the following scopes:
|
|
|
607
609
|
| copyIdentifiers | Copy over all enriched identifiers from the initial request. Leave false to restart from scratch with initial identifiers only. | boolean | false | false |
|
|
608
610
|
| skipWaitingPeriod | Skip queued state of request and go straight to compiling | boolean | false | false |
|
|
609
611
|
|
|
610
|
-
|
|
612
|
+
#### Usage
|
|
611
613
|
|
|
612
614
|
```sh
|
|
613
615
|
yarn tr-request-restart --auth=$TRANSCEND_API_KEY --statuses=COMPILING,ENRICHING --actions=ACCESS,ERASURE
|
|
@@ -701,7 +703,7 @@ The API key must be associated to the ID of the integration/data silo that is be
|
|
|
701
703
|
| sombraAuth | The sombra internal key, use for additional authentication when self-hosting sombra. | string | N/A | false |
|
|
702
704
|
| pageLimit | The page limit to use when pulling in pages of identifiers. | number | 100 | false |
|
|
703
705
|
|
|
704
|
-
|
|
706
|
+
#### Usage
|
|
705
707
|
|
|
706
708
|
```sh
|
|
707
709
|
yarn tr-cron-pull-identifiers --auth=$TRANSCEND_API_KEY --dataSiloId=70810f2e-cf90-43f6-9776-901a5950599f --requestType=ERASURE
|
|
@@ -764,7 +766,7 @@ The API key must be associated to the ID of the integration/data silo that is be
|
|
|
764
766
|
| transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
|
|
765
767
|
| sombraAuth | The sombra internal key, use for additional authentication when self-hosting sombra. | string | N/A | false |
|
|
766
768
|
|
|
767
|
-
|
|
769
|
+
#### Usage
|
|
768
770
|
|
|
769
771
|
```sh
|
|
770
772
|
yarn tr-cron-mark-identifiers-completed --auth=$TRANSCEND_API_KEY --dataSiloId=70810f2e-cf90-43f6-9776-901a5950599f
|
|
@@ -822,7 +824,7 @@ The API key must have the following scopes:
|
|
|
822
824
|
| actions | The set of request actions to pull requests for. | RequestAction[] | [] | false |
|
|
823
825
|
| concurrency | The concurrency to use when uploading requests in parallel. | number | 100 | false |
|
|
824
826
|
|
|
825
|
-
|
|
827
|
+
#### Usage
|
|
826
828
|
|
|
827
829
|
```sh
|
|
828
830
|
yarn tr-manual-enrichment-push-identifiers --auth=$TRANSCEND_API_KEY
|
|
@@ -883,7 +885,7 @@ The API key must have the following scopes:
|
|
|
883
885
|
| file | Path to the CSV file where requests will be written to. | string - file-path | ./manual-enrichment-identifiers.csv | false |
|
|
884
886
|
| concurrency | The concurrency to use when uploading requests in parallel. | number | 100 | false |
|
|
885
887
|
|
|
886
|
-
|
|
888
|
+
#### Usage
|
|
887
889
|
|
|
888
890
|
```sh
|
|
889
891
|
yarn tr-manual-enrichment-push-identifiers --auth=$TRANSCEND_API_KEY --enricherId=27d45a0d-7d03-47fa-9b30-6d697005cfcf
|
|
@@ -935,7 +937,7 @@ The API key must have the following scopes:
|
|
|
935
937
|
| file | Path to the CSV file where identifiers will be written to. | string - file-path | ./request-identifiers.csv | false |
|
|
936
938
|
| transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
|
|
937
939
|
|
|
938
|
-
|
|
940
|
+
#### Usage
|
|
939
941
|
|
|
940
942
|
```sh
|
|
941
943
|
yarn tr-mark-request-data-silos-completed --auth=$TRANSCEND_API_KEY --dataSiloId=70810f2e-cf90-43f6-9776-901a5950599f
|
|
@@ -976,7 +978,7 @@ The API key must have the following scopes:
|
|
|
976
978
|
| actions | The [request action](https://docs.transcend.io/docs/privacy-requests/configuring-requests/data-subject-requests#data-actions) to restart. | RequestAction[] | N/A | true |
|
|
977
979
|
| transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
|
|
978
980
|
|
|
979
|
-
|
|
981
|
+
#### Usage
|
|
980
982
|
|
|
981
983
|
```sh
|
|
982
984
|
yarn tr-retry-request-data-silos --auth=$TRANSCEND_API_KEY --dataSiloId=70810f2e-cf90-43f6-9776-901a5950599f --actions=ACCESS
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { ConsentTrackerSource, ConsentTrackerStatus } from '@transcend-io/privacy-types';
|
|
3
|
+
export interface Cookie {
|
|
4
|
+
/** ID of the cookie */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Name of the cookie */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Whether cookie is a regular express */
|
|
9
|
+
isRegex: boolean;
|
|
10
|
+
/** Description of cookie */
|
|
11
|
+
description: string;
|
|
12
|
+
/** Enabled tracking purposes for the cookie */
|
|
13
|
+
trackingPurposes: string[];
|
|
14
|
+
/** The consent service */
|
|
15
|
+
service: {
|
|
16
|
+
/** Integration name of service */
|
|
17
|
+
integrationName: string;
|
|
18
|
+
};
|
|
19
|
+
/** Source of how tracker was added */
|
|
20
|
+
source: ConsentTrackerSource;
|
|
21
|
+
/** Status of cookie labeling */
|
|
22
|
+
status: ConsentTrackerStatus;
|
|
23
|
+
/** Owners of that cookie */
|
|
24
|
+
owners: {
|
|
25
|
+
/** Email address of owner */
|
|
26
|
+
email: string;
|
|
27
|
+
}[];
|
|
28
|
+
/** Teams assigned to that cookie */
|
|
29
|
+
teams: {
|
|
30
|
+
/** Name of team */
|
|
31
|
+
name: string;
|
|
32
|
+
}[];
|
|
33
|
+
/** Attributes assigned to that cookie */
|
|
34
|
+
attributeValues: {
|
|
35
|
+
/** Name of attribute value */
|
|
36
|
+
name: string;
|
|
37
|
+
/** Attribute key that the value represents */
|
|
38
|
+
attributeKey: {
|
|
39
|
+
/** Name of attribute team */
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Fetch all Cookies in the organization
|
|
46
|
+
*
|
|
47
|
+
* @param client - GraphQL client
|
|
48
|
+
* @param status - The status to fetch
|
|
49
|
+
* @returns All Cookies in the organization
|
|
50
|
+
*/
|
|
51
|
+
export declare function fetchAllCookies(client: GraphQLClient, status?: ConsentTrackerStatus): Promise<Cookie[]>;
|
|
52
|
+
//# sourceMappingURL=fetchAllCookies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllCookies.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllCookies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,MAAM;IACrB,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,0BAA0B;IAC1B,OAAO,EAAE;QACP,kCAAkC;QAClC,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,sCAAsC;IACtC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,gCAAgC;IAChC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,4BAA4B;IAC5B,MAAM,EAAE;QACN,6BAA6B;QAC7B,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,oCAAoC;IACpC,KAAK,EAAE;QACL,mBAAmB;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,yCAAyC;IACzC,eAAe,EAAE;QACf,8BAA8B;QAC9B,IAAI,EAAE,MAAM,CAAC;QACb,8CAA8C;QAC9C,YAAY,EAAE;YACZ,6BAA6B;YAC7B,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,EAAE,CAAC;CACL;AAID;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,aAAa,EACrB,MAAM,uBAA4B,GACjC,OAAO,CAAC,MAAM,EAAE,CAAC,CA8BnB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAllCookies = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const fetchConsentManagerId_1 = require("./fetchConsentManagerId");
|
|
7
|
+
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
8
|
+
const PAGE_SIZE = 20;
|
|
9
|
+
/**
|
|
10
|
+
* Fetch all Cookies in the organization
|
|
11
|
+
*
|
|
12
|
+
* @param client - GraphQL client
|
|
13
|
+
* @param status - The status to fetch
|
|
14
|
+
* @returns All Cookies in the organization
|
|
15
|
+
*/
|
|
16
|
+
async function fetchAllCookies(client, status = privacy_types_1.ConsentTrackerStatus.Live) {
|
|
17
|
+
const cookies = [];
|
|
18
|
+
let offset = 0;
|
|
19
|
+
const airgapBundleId = await (0, fetchConsentManagerId_1.fetchConsentManagerId)(client);
|
|
20
|
+
// Try to fetch an Cookies with the same title
|
|
21
|
+
let shouldContinue = false;
|
|
22
|
+
do {
|
|
23
|
+
const { cookies: { nodes },
|
|
24
|
+
// eslint-disable-next-line no-await-in-loop
|
|
25
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.DATA_FLOWS, {
|
|
26
|
+
first: PAGE_SIZE,
|
|
27
|
+
offset,
|
|
28
|
+
airgapBundleId,
|
|
29
|
+
status,
|
|
30
|
+
});
|
|
31
|
+
cookies.push(...nodes);
|
|
32
|
+
offset += PAGE_SIZE;
|
|
33
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
34
|
+
} while (shouldContinue);
|
|
35
|
+
return cookies;
|
|
36
|
+
}
|
|
37
|
+
exports.fetchAllCookies = fetchAllCookies;
|
|
38
|
+
//# sourceMappingURL=fetchAllCookies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllCookies.js","sourceRoot":"","sources":["../../src/graphql/fetchAllCookies.ts"],"names":[],"mappings":";;;AACA,iCAAoC;AACpC,6DAA0D;AAC1D,mEAAgE;AAChE,+DAGqC;AA4CrC,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;;GAMG;AACI,KAAK,UAAU,eAAe,CACnC,MAAqB,EACrB,MAAM,GAAG,oCAAoB,CAAC,IAAI;IAElC,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,MAAM,cAAc,GAAG,MAAM,IAAA,6CAAqB,EAAC,MAAM,CAAC,CAAC;IAE3D,8CAA8C;IAC9C,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,OAAO,EAAE,EAAE,KAAK,EAAE;QAClB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,iBAAU,EAAE;YACrB,KAAK,EAAE,SAAS;YAChB,MAAM;YACN,cAAc;YACd,MAAM;SACP,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACvB,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,OAAO,CAAC;AACjB,CAAC;AAjCD,0CAiCC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { DataFlowScope, ConsentTrackerSource, ConsentTrackerStatus } from '@transcend-io/privacy-types';
|
|
3
|
+
export interface DataFlow {
|
|
4
|
+
/** ID of data flow */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Value of data flow */
|
|
7
|
+
value: string;
|
|
8
|
+
/** Type of data flow */
|
|
9
|
+
type: DataFlowScope;
|
|
10
|
+
/** Description of data flow */
|
|
11
|
+
description: string;
|
|
12
|
+
/** Enabled tracking purposes */
|
|
13
|
+
trackingType: string[];
|
|
14
|
+
/** The consent service */
|
|
15
|
+
service: {
|
|
16
|
+
/** Integration name of service */
|
|
17
|
+
integrationName: string;
|
|
18
|
+
};
|
|
19
|
+
/** Source of how tracker was added */
|
|
20
|
+
source: ConsentTrackerSource;
|
|
21
|
+
/** Status of data flow labeling */
|
|
22
|
+
status: ConsentTrackerStatus;
|
|
23
|
+
/** Owners of that data flow */
|
|
24
|
+
owners: {
|
|
25
|
+
/** Email address of owner */
|
|
26
|
+
email: string;
|
|
27
|
+
}[];
|
|
28
|
+
/** Teams assigned to that data flow */
|
|
29
|
+
teams: {
|
|
30
|
+
/** Name of team */
|
|
31
|
+
name: string;
|
|
32
|
+
}[];
|
|
33
|
+
/** Attributes assigned to that data flow */
|
|
34
|
+
attributeValues: {
|
|
35
|
+
/** Name of attribute value */
|
|
36
|
+
name: string;
|
|
37
|
+
/** Attribute key that the value represents */
|
|
38
|
+
attributeKey: {
|
|
39
|
+
/** Name of attribute team */
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Fetch all DataFlows in the organization
|
|
46
|
+
*
|
|
47
|
+
* @param client - GraphQL client
|
|
48
|
+
* @param status - The status to fetch
|
|
49
|
+
* @returns All DataFlows in the organization
|
|
50
|
+
*/
|
|
51
|
+
export declare function fetchAllDataFlows(client: GraphQLClient, status?: ConsentTrackerStatus): Promise<DataFlow[]>;
|
|
52
|
+
//# sourceMappingURL=fetchAllDataFlows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllDataFlows.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllDataFlows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,QAAQ;IACvB,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,0BAA0B;IAC1B,OAAO,EAAE;QACP,kCAAkC;QAClC,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,sCAAsC;IACtC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,mCAAmC;IACnC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,+BAA+B;IAC/B,MAAM,EAAE;QACN,6BAA6B;QAC7B,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,uCAAuC;IACvC,KAAK,EAAE;QACL,mBAAmB;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,4CAA4C;IAC5C,eAAe,EAAE;QACf,8BAA8B;QAC9B,IAAI,EAAE,MAAM,CAAC;QACb,8CAA8C;QAC9C,YAAY,EAAE;YACZ,6BAA6B;YAC7B,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,EAAE,CAAC;CACL;AAID;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,aAAa,EACrB,MAAM,uBAA4B,GACjC,OAAO,CAAC,QAAQ,EAAE,CAAC,CA8BrB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAllDataFlows = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const fetchConsentManagerId_1 = require("./fetchConsentManagerId");
|
|
7
|
+
const privacy_types_1 = require("@transcend-io/privacy-types");
|
|
8
|
+
const PAGE_SIZE = 20;
|
|
9
|
+
/**
|
|
10
|
+
* Fetch all DataFlows in the organization
|
|
11
|
+
*
|
|
12
|
+
* @param client - GraphQL client
|
|
13
|
+
* @param status - The status to fetch
|
|
14
|
+
* @returns All DataFlows in the organization
|
|
15
|
+
*/
|
|
16
|
+
async function fetchAllDataFlows(client, status = privacy_types_1.ConsentTrackerStatus.Live) {
|
|
17
|
+
const dataFlows = [];
|
|
18
|
+
let offset = 0;
|
|
19
|
+
const airgapBundleId = await (0, fetchConsentManagerId_1.fetchConsentManagerId)(client);
|
|
20
|
+
// Try to fetch an DataFlow with the same title
|
|
21
|
+
let shouldContinue = false;
|
|
22
|
+
do {
|
|
23
|
+
const { dataFlows: { nodes },
|
|
24
|
+
// eslint-disable-next-line no-await-in-loop
|
|
25
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.DATA_FLOWS, {
|
|
26
|
+
first: PAGE_SIZE,
|
|
27
|
+
offset,
|
|
28
|
+
airgapBundleId,
|
|
29
|
+
status,
|
|
30
|
+
});
|
|
31
|
+
dataFlows.push(...nodes);
|
|
32
|
+
offset += PAGE_SIZE;
|
|
33
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
34
|
+
} while (shouldContinue);
|
|
35
|
+
return dataFlows;
|
|
36
|
+
}
|
|
37
|
+
exports.fetchAllDataFlows = fetchAllDataFlows;
|
|
38
|
+
//# sourceMappingURL=fetchAllDataFlows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllDataFlows.js","sourceRoot":"","sources":["../../src/graphql/fetchAllDataFlows.ts"],"names":[],"mappings":";;;AACA,iCAAoC;AACpC,6DAA0D;AAC1D,mEAAgE;AAChE,+DAIqC;AA4CrC,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;;GAMG;AACI,KAAK,UAAU,iBAAiB,CACrC,MAAqB,EACrB,MAAM,GAAG,oCAAoB,CAAC,IAAI;IAElC,MAAM,SAAS,GAAe,EAAE,CAAC;IACjC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,MAAM,cAAc,GAAG,MAAM,IAAA,6CAAqB,EAAC,MAAM,CAAC,CAAC;IAE3D,+CAA+C;IAC/C,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,SAAS,EAAE,EAAE,KAAK,EAAE;QACpB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,iBAAU,EAAE;YACrB,KAAK,EAAE,SAAS;YAChB,MAAM;YACN,cAAc;YACd,MAAM;SACP,CAAC,CAAC;QACH,SAAS,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACzB,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,SAAS,CAAC;AACnB,CAAC;AAjCD,8CAiCC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
/**
|
|
3
|
+
* Fetch consent manager ID
|
|
4
|
+
*
|
|
5
|
+
* @param client - GraphQL client
|
|
6
|
+
* @returns Consent manager ID in organization
|
|
7
|
+
*/
|
|
8
|
+
export declare function fetchConsentManagerId(client: GraphQLClient): Promise<string>;
|
|
9
|
+
//# sourceMappingURL=fetchConsentManagerId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchConsentManagerId.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchConsentManagerId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,MAAM,CAAC,CAcjB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchConsentManagerId = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
/**
|
|
7
|
+
* Fetch consent manager ID
|
|
8
|
+
*
|
|
9
|
+
* @param client - GraphQL client
|
|
10
|
+
* @returns Consent manager ID in organization
|
|
11
|
+
*/
|
|
12
|
+
async function fetchConsentManagerId(client) {
|
|
13
|
+
const { consentManager: { consentManager }, } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.FETCH_CONSENT_MANAGER);
|
|
14
|
+
return consentManager.id;
|
|
15
|
+
}
|
|
16
|
+
exports.fetchConsentManagerId = fetchConsentManagerId;
|
|
17
|
+
//# sourceMappingURL=fetchConsentManagerId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchConsentManagerId.js","sourceRoot":"","sources":["../../src/graphql/fetchConsentManagerId.ts"],"names":[],"mappings":";;;AACA,iCAA+C;AAC/C,6DAA0D;AAE1D;;;;;GAKG;AACI,KAAK,UAAU,qBAAqB,CACzC,MAAqB;IAErB,MAAM,EACJ,cAAc,EAAE,EAAE,cAAc,EAAE,GACnC,GAAG,MAAM,IAAA,uCAAkB,EASzB,MAAM,EAAE,4BAAqB,CAAC,CAAC;IAClC,OAAO,cAAc,CAAC,EAAE,CAAC;AAC3B,CAAC;AAhBD,sDAgBC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DataSiloAttributeValue } from './syncDataSilos';
|
|
2
2
|
export interface FormattedAttribute {
|
|
3
3
|
/** Attribute key */
|
|
4
4
|
key: string;
|
|
@@ -11,5 +11,5 @@ export interface FormattedAttribute {
|
|
|
11
11
|
* @param vals - Attribute values
|
|
12
12
|
* @returns formatted attributes
|
|
13
13
|
*/
|
|
14
|
-
export declare function formatAttributeValues(vals:
|
|
14
|
+
export declare function formatAttributeValues(vals: DataSiloAttributeValue[]): FormattedAttribute[];
|
|
15
15
|
//# sourceMappingURL=formatAttributeValues.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAttributeValues.d.ts","sourceRoot":"","sources":["../../src/graphql/formatAttributeValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"formatAttributeValues.d.ts","sourceRoot":"","sources":["../../src/graphql/formatAttributeValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IACjC,oBAAoB;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,sBAAsB,EAAE,GAC7B,kBAAkB,EAAE,CAmBtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAttributeValues.js","sourceRoot":"","sources":["../../src/graphql/formatAttributeValues.ts"],"names":[],"mappings":";;;AASA;;;;;GAKG;AACH,SAAgB,qBAAqB,CACnC,
|
|
1
|
+
{"version":3,"file":"formatAttributeValues.js","sourceRoot":"","sources":["../../src/graphql/formatAttributeValues.ts"],"names":[],"mappings":";;;AASA;;;;;GAKG;AACH,SAAgB,qBAAqB,CACnC,IAA8B;IAE9B,MAAM,UAAU,GAAyB,EAAE,CAAC;IAE5C,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACf,IAAI,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAE3E,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,QAAQ,GAAG;gBACT,GAAG,EAAE,GAAG,CAAC,YAAY,CAAC,IAAI;gBAC1B,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;aACnB,CAAC;YACF,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC3B;aAAM;YACL,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAChC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC;AACpB,CAAC;AArBD,sDAqBC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const CREATE_DATA_FLOWS: string;
|
|
2
|
+
export declare const CREATE_COOKIES: string;
|
|
3
|
+
export declare const DATA_FLOWS: string;
|
|
4
|
+
export declare const COOKIES: string;
|
|
5
|
+
export declare const FETCH_CONSENT_MANAGER: string;
|
|
6
|
+
//# sourceMappingURL=consentManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consentManager.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/consentManager.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,QAa7B,CAAC;AAEF,eAAO,MAAM,cAAc,QAa1B,CAAC;AACF,eAAO,MAAM,UAAU,QAuCtB,CAAC;AAEF,eAAO,MAAM,OAAO,QAuCnB,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAQjC,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FETCH_CONSENT_MANAGER = exports.COOKIES = exports.DATA_FLOWS = exports.CREATE_COOKIES = exports.CREATE_DATA_FLOWS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
exports.CREATE_DATA_FLOWS = (0, graphql_request_1.gql) `
|
|
6
|
+
mutation TranscendCreateDataFlows(
|
|
7
|
+
$dataFlows: [DataFlowInput!]!
|
|
8
|
+
$airgapBundleId: ID!
|
|
9
|
+
) {
|
|
10
|
+
createDataFlows(
|
|
11
|
+
input: { airgapBundleId: $airgapBundleId, dataFlows: $dataFlows }
|
|
12
|
+
) {
|
|
13
|
+
dataFlows {
|
|
14
|
+
id
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
exports.CREATE_COOKIES = (0, graphql_request_1.gql) `
|
|
20
|
+
mutation TranscendCreateCookies(
|
|
21
|
+
$cookies: [CookieInput!]!
|
|
22
|
+
$airgapBundleId: ID!
|
|
23
|
+
) {
|
|
24
|
+
createCookies(
|
|
25
|
+
input: { airgapBundleId: $airgapBundleId, cookies: $cookies }
|
|
26
|
+
) {
|
|
27
|
+
dataFlows {
|
|
28
|
+
id
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
exports.DATA_FLOWS = (0, graphql_request_1.gql) `
|
|
34
|
+
query TranscendCliDataFlows(
|
|
35
|
+
$first: Int!
|
|
36
|
+
$airgapBundleId: ID!
|
|
37
|
+
$offset: Int!
|
|
38
|
+
$status: DataFlowStatus
|
|
39
|
+
) {
|
|
40
|
+
dataFlows(
|
|
41
|
+
first: $first
|
|
42
|
+
offset: $offset
|
|
43
|
+
filterBy: { status: $status }
|
|
44
|
+
input: { airgapBundleId: $airgapBundleId }
|
|
45
|
+
) {
|
|
46
|
+
nodes {
|
|
47
|
+
id
|
|
48
|
+
value
|
|
49
|
+
type
|
|
50
|
+
description
|
|
51
|
+
trackingType
|
|
52
|
+
service {
|
|
53
|
+
integrationName
|
|
54
|
+
}
|
|
55
|
+
source
|
|
56
|
+
status
|
|
57
|
+
owners {
|
|
58
|
+
email
|
|
59
|
+
}
|
|
60
|
+
teams {
|
|
61
|
+
name
|
|
62
|
+
}
|
|
63
|
+
attributeValues {
|
|
64
|
+
name
|
|
65
|
+
attributeKey {
|
|
66
|
+
name
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
exports.COOKIES = (0, graphql_request_1.gql) `
|
|
74
|
+
query TranscendCliCookies(
|
|
75
|
+
$first: Int!
|
|
76
|
+
$offset: Int!
|
|
77
|
+
$airgapBundleId: ID!
|
|
78
|
+
$status: DataFlowStatus
|
|
79
|
+
) {
|
|
80
|
+
cookies(
|
|
81
|
+
first: $first
|
|
82
|
+
offset: $offset
|
|
83
|
+
filterBy: { status: $status }
|
|
84
|
+
input: { airgapBundleId: $airgapBundleId }
|
|
85
|
+
) {
|
|
86
|
+
nodes {
|
|
87
|
+
id
|
|
88
|
+
name
|
|
89
|
+
isRegex
|
|
90
|
+
description
|
|
91
|
+
trackingPurposes
|
|
92
|
+
service {
|
|
93
|
+
integrationName
|
|
94
|
+
}
|
|
95
|
+
source
|
|
96
|
+
status
|
|
97
|
+
owners {
|
|
98
|
+
email
|
|
99
|
+
}
|
|
100
|
+
teams {
|
|
101
|
+
name
|
|
102
|
+
}
|
|
103
|
+
attributeValues {
|
|
104
|
+
name
|
|
105
|
+
attributeKey {
|
|
106
|
+
name
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
113
|
+
exports.FETCH_CONSENT_MANAGER = (0, graphql_request_1.gql) `
|
|
114
|
+
query TranscendFetchConsentManager {
|
|
115
|
+
consentManager {
|
|
116
|
+
consentManager {
|
|
117
|
+
id
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
`;
|
|
122
|
+
//# sourceMappingURL=consentManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consentManager.js","sourceRoot":"","sources":["../../../src/graphql/gqls/consentManager.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;CAanC,CAAC;AAEW,QAAA,cAAc,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;CAahC,CAAC;AACW,QAAA,UAAU,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC5B,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCzB,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;CAQvC,CAAC"}
|
|
@@ -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,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,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,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
@@ -24,4 +24,5 @@ __exportStar(require("./request"), exports);
|
|
|
24
24
|
__exportStar(require("./RequestIdentifier"), exports);
|
|
25
25
|
__exportStar(require("./RequestEnricher"), exports);
|
|
26
26
|
__exportStar(require("./RequestDataSilo"), exports);
|
|
27
|
+
__exportStar(require("./consentManager"), exports);
|
|
27
28
|
//# 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,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,kDAAgC;AAChC,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B;AAC/B,4CAA0B;AAC1B,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,kDAAgC;AAChC,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B;AAC/B,4CAA0B;AAC1B,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,mDAAiC"}
|
package/build/graphql/index.d.ts
CHANGED
|
@@ -17,4 +17,7 @@ export * from './fetchAllRequests';
|
|
|
17
17
|
export * from './fetchAllRequestIdentifiers';
|
|
18
18
|
export * from './fetchAllRequestEnrichers';
|
|
19
19
|
export * from './fetchRequestDataSilo';
|
|
20
|
+
export * from './fetchAllDataFlows';
|
|
21
|
+
export * from './fetchAllCookies';
|
|
22
|
+
export * from './fetchConsentManagerId';
|
|
20
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,QAAQ,CAAC;AACvB,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,QAAQ,CAAC;AACvB,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC"}
|
package/build/graphql/index.js
CHANGED
|
@@ -29,4 +29,7 @@ __exportStar(require("./fetchAllRequests"), exports);
|
|
|
29
29
|
__exportStar(require("./fetchAllRequestIdentifiers"), exports);
|
|
30
30
|
__exportStar(require("./fetchAllRequestEnrichers"), exports);
|
|
31
31
|
__exportStar(require("./fetchRequestDataSilo"), exports);
|
|
32
|
+
__exportStar(require("./fetchAllDataFlows"), exports);
|
|
33
|
+
__exportStar(require("./fetchAllCookies"), exports);
|
|
34
|
+
__exportStar(require("./fetchConsentManagerId"), exports);
|
|
32
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA6C;AAC7C,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,iEAA+C;AAC/C,kDAAgC;AAChC,kDAAgC;AAChC,+DAA6C;AAC7C,kDAAgC;AAChC,uDAAqC;AACrC,4DAA0C;AAC1C,gEAA8C;AAC9C,yCAAuB;AACvB,0DAAwC;AACxC,qDAAmC;AACnC,+DAA6C;AAC7C,6DAA2C;AAC3C,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA6C;AAC7C,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,iEAA+C;AAC/C,kDAAgC;AAChC,kDAAgC;AAChC,+DAA6C;AAC7C,kDAAgC;AAChC,uDAAqC;AACrC,4DAA0C;AAC1C,gEAA8C;AAC9C,yCAAuB;AACvB,0DAAwC;AACxC,qDAAmC;AACnC,+DAA6C;AAC7C,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,oDAAkC;AAClC,0DAAwC"}
|
|
@@ -3,7 +3,7 @@ import { GraphQLClient } from 'graphql-request';
|
|
|
3
3
|
import { DataSubject } from './fetchDataSubjects';
|
|
4
4
|
import { ApiKey } from './fetchApiKeys';
|
|
5
5
|
import { PromptAVendorEmailCompletionLinkType, PromptAVendorEmailSendType, RequestActionObjectResolver } from '@transcend-io/privacy-types';
|
|
6
|
-
export interface
|
|
6
|
+
export interface DataSiloAttributeValue {
|
|
7
7
|
/** Key associated to value */
|
|
8
8
|
attributeKey: {
|
|
9
9
|
/** Name of key */
|
|
@@ -22,7 +22,7 @@ export interface DataSilo {
|
|
|
22
22
|
/** The link to the data silo */
|
|
23
23
|
link: string;
|
|
24
24
|
/** Attribute labels */
|
|
25
|
-
attributeValues:
|
|
25
|
+
attributeValues: DataSiloAttributeValue[];
|
|
26
26
|
/** description */
|
|
27
27
|
description: string;
|
|
28
28
|
/** Metadata for this data silo */
|
|
@@ -70,7 +70,7 @@ interface SubDataPoint {
|
|
|
70
70
|
*/
|
|
71
71
|
erasureRequestRedactionEnabled: boolean;
|
|
72
72
|
/** Attribute attached to subdatapoint */
|
|
73
|
-
attributeValues:
|
|
73
|
+
attributeValues: DataSiloAttributeValue[];
|
|
74
74
|
}
|
|
75
75
|
interface DataPoint {
|
|
76
76
|
/** ID of dataPoint */
|
|
@@ -227,7 +227,7 @@ export interface DataSiloEnriched {
|
|
|
227
227
|
*/
|
|
228
228
|
manualWorkRetryFrequency: string;
|
|
229
229
|
/** Attribute values tagged to data silo */
|
|
230
|
-
attributeValues:
|
|
230
|
+
attributeValues: DataSiloAttributeValue[];
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
233
|
* Fetch all dataSilos with additional metadata
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncDataSilos.d.ts","sourceRoot":"","sources":["../../src/graphql/syncDataSilos.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,sBAAsB,EACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAchD,OAAO,EAEL,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EACL,oCAAoC,EACpC,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AAIrC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"syncDataSilos.d.ts","sourceRoot":"","sources":["../../src/graphql/syncDataSilos.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,sBAAsB,EACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAchD,OAAO,EAEL,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EACL,oCAAoC,EACpC,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AAIrC,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,YAAY,EAAE;QACZ,kBAAkB;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,QAAQ;IACvB,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,eAAe,EAAE,sBAAsB,EAAE,CAAC;IAC1C,kBAAkB;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,OAAO,EAAE;QACP,mEAAmE;QACnE,mBAAmB,EAAE,OAAO,CAAC;KAC9B,CAAC;CACH;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,aAAa,EACrB,EACE,KAAK,EACL,QAAQ,EACR,GAAQ,EACR,gBAAqB,GACtB,EAAE;IACD,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY;IACZ,KAAK,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