@transcend-io/cli 4.26.2 → 4.29.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 +66 -24
- package/build/cli-pull.js +18 -1
- package/build/cli-pull.js.map +1 -1
- package/build/codecs.d.ts +11417 -17
- package/build/codecs.d.ts.map +1 -1
- package/build/codecs.js +259 -10
- package/build/codecs.js.map +1 -1
- package/build/graphql/fetchAllActions.d.ts +24 -0
- package/build/graphql/fetchAllActions.d.ts.map +1 -0
- package/build/graphql/fetchAllActions.js +32 -0
- package/build/graphql/fetchAllActions.js.map +1 -0
- package/build/graphql/fetchAllAttributes.d.ts +57 -0
- package/build/graphql/fetchAllAttributes.d.ts.map +1 -0
- package/build/graphql/fetchAllAttributes.js +78 -0
- package/build/graphql/fetchAllAttributes.js.map +1 -0
- package/build/graphql/fetchAllBusinessEntities.d.ts +38 -0
- package/build/graphql/fetchAllBusinessEntities.d.ts.map +1 -0
- package/build/graphql/fetchAllBusinessEntities.js +32 -0
- package/build/graphql/fetchAllBusinessEntities.js.map +1 -0
- package/build/graphql/fetchAllCookies.js +1 -1
- package/build/graphql/fetchAllCookies.js.map +1 -1
- package/build/graphql/fetchConsentManagerId.d.ts +29 -0
- package/build/graphql/fetchConsentManagerId.d.ts.map +1 -1
- package/build/graphql/fetchConsentManagerId.js +24 -2
- package/build/graphql/fetchConsentManagerId.js.map +1 -1
- package/build/graphql/fetchDataSubjects.d.ts +21 -1
- package/build/graphql/fetchDataSubjects.d.ts.map +1 -1
- package/build/graphql/fetchDataSubjects.js +16 -4
- package/build/graphql/fetchDataSubjects.js.map +1 -1
- package/build/graphql/fetchIdentifiers.d.ts +28 -0
- package/build/graphql/fetchIdentifiers.d.ts.map +1 -1
- package/build/graphql/fetchIdentifiers.js.map +1 -1
- package/build/graphql/gqls/action.d.ts +2 -0
- package/build/graphql/gqls/action.d.ts.map +1 -0
- package/build/graphql/gqls/action.js +19 -0
- package/build/graphql/gqls/action.js.map +1 -0
- package/build/graphql/gqls/attribute.d.ts +6 -0
- package/build/graphql/gqls/attribute.d.ts.map +1 -0
- package/build/graphql/gqls/attribute.js +104 -0
- package/build/graphql/gqls/attribute.js.map +1 -0
- package/build/graphql/gqls/businessEntity.d.ts +2 -0
- package/build/graphql/gqls/businessEntity.d.ts.map +1 -0
- package/build/graphql/gqls/businessEntity.js +27 -0
- package/build/graphql/gqls/businessEntity.js.map +1 -0
- package/build/graphql/gqls/consentManager.d.ts +3 -0
- package/build/graphql/gqls/consentManager.d.ts.map +1 -1
- package/build/graphql/gqls/consentManager.js +35 -4
- package/build/graphql/gqls/consentManager.js.map +1 -1
- package/build/graphql/gqls/dataSubject.d.ts.map +1 -1
- package/build/graphql/gqls/dataSubject.js +7 -0
- package/build/graphql/gqls/dataSubject.js.map +1 -1
- package/build/graphql/gqls/enricher.js +1 -1
- package/build/graphql/gqls/identifier.d.ts.map +1 -1
- package/build/graphql/gqls/identifier.js +15 -0
- package/build/graphql/gqls/identifier.js.map +1 -1
- package/build/graphql/gqls/index.d.ts +3 -0
- package/build/graphql/gqls/index.d.ts.map +1 -1
- package/build/graphql/gqls/index.js +3 -0
- package/build/graphql/gqls/index.js.map +1 -1
- package/build/graphql/index.d.ts +5 -0
- package/build/graphql/index.d.ts.map +1 -1
- package/build/graphql/index.js +5 -0
- package/build/graphql/index.js.map +1 -1
- package/build/graphql/pullTranscendConfiguration.d.ts +28 -7
- package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
- package/build/graphql/pullTranscendConfiguration.js +298 -109
- package/build/graphql/pullTranscendConfiguration.js.map +1 -1
- package/build/graphql/syncAttribute.d.ts +12 -0
- package/build/graphql/syncAttribute.d.ts.map +1 -0
- package/build/graphql/syncAttribute.js +68 -0
- package/build/graphql/syncAttribute.js.map +1 -0
- package/build/graphql/syncConfigurationToTranscend.d.ts.map +1 -1
- package/build/graphql/syncConfigurationToTranscend.js +95 -9
- package/build/graphql/syncConfigurationToTranscend.js.map +1 -1
- package/build/graphql/syncDataFlows.d.ts +17 -0
- package/build/graphql/syncDataFlows.d.ts.map +1 -0
- package/build/graphql/syncDataFlows.js +70 -0
- package/build/graphql/syncDataFlows.js.map +1 -0
- package/build/graphql/syncEnrichers.d.ts.map +1 -1
- package/build/graphql/syncEnrichers.js +6 -3
- package/build/graphql/syncEnrichers.js.map +1 -1
- package/build/tests/readTranscendYaml.test.js +0 -3
- package/build/tests/readTranscendYaml.test.js.map +1 -1
- package/build/tmp-attribute-key.d.ts +52 -0
- package/build/tmp-attribute-key.d.ts.map +1 -0
- package/build/tmp-attribute-key.js +46 -0
- package/build/tmp-attribute-key.js.map +1 -0
- package/build/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { IsoCountryCode, IsoCountrySubdivisionCode } from '@transcend-io/privacy-types';
|
|
3
|
+
export interface BusinessEntity {
|
|
4
|
+
/** ID of business entity */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Title of business entity */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Description of business entity */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** Data protection officer name */
|
|
11
|
+
dataProtectionOfficerName?: string;
|
|
12
|
+
/** Data protection officer email */
|
|
13
|
+
dataProtectionOfficerEmail?: string;
|
|
14
|
+
/** Address of business entity */
|
|
15
|
+
address?: string;
|
|
16
|
+
/** Headquarters of business entity */
|
|
17
|
+
headquarterCountry?: IsoCountryCode;
|
|
18
|
+
/** Subdivision of business entity */
|
|
19
|
+
headquarterSubDivision?: IsoCountrySubdivisionCode;
|
|
20
|
+
/** Attributes */
|
|
21
|
+
attributeValues: {
|
|
22
|
+
/** Name of attribute value */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Attribute key */
|
|
25
|
+
attributeKey: {
|
|
26
|
+
/** Name of attribute key */
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
}[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Fetch all businessEntities in the organization
|
|
33
|
+
*
|
|
34
|
+
* @param client - GraphQL client
|
|
35
|
+
* @returns All businessEntities in the organization
|
|
36
|
+
*/
|
|
37
|
+
export declare function fetchAllBusinessEntities(client: GraphQLClient): Promise<BusinessEntity[]>;
|
|
38
|
+
//# sourceMappingURL=fetchAllBusinessEntities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllBusinessEntities.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllBusinessEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EACL,cAAc,EACd,yBAAyB,EAC1B,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,cAAc;IAC7B,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,oCAAoC;IACpC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,cAAc,CAAC;IACpC,qCAAqC;IACrC,sBAAsB,CAAC,EAAE,yBAAyB,CAAC;IACnD,iBAAiB;IACjB,eAAe,EAAE;QACf,8BAA8B;QAC9B,IAAI,EAAE,MAAM,CAAC;QACb,oBAAoB;QACpB,YAAY,EAAE;YACZ,4BAA4B;YAC5B,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,EAAE,CAAC;CACL;AAID;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,cAAc,EAAE,CAAC,CAoB3B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAllBusinessEntities = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const PAGE_SIZE = 20;
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all businessEntities in the organization
|
|
9
|
+
*
|
|
10
|
+
* @param client - GraphQL client
|
|
11
|
+
* @returns All businessEntities in the organization
|
|
12
|
+
*/
|
|
13
|
+
async function fetchAllBusinessEntities(client) {
|
|
14
|
+
const businessEntities = [];
|
|
15
|
+
let offset = 0;
|
|
16
|
+
// Try to fetch an enricher with the same title
|
|
17
|
+
let shouldContinue = false;
|
|
18
|
+
do {
|
|
19
|
+
const { businessEntities: { nodes },
|
|
20
|
+
// eslint-disable-next-line no-await-in-loop
|
|
21
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.BUSINESS_ENTITIES, {
|
|
22
|
+
first: PAGE_SIZE,
|
|
23
|
+
offset,
|
|
24
|
+
});
|
|
25
|
+
businessEntities.push(...nodes);
|
|
26
|
+
offset += PAGE_SIZE;
|
|
27
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
28
|
+
} while (shouldContinue);
|
|
29
|
+
return businessEntities;
|
|
30
|
+
}
|
|
31
|
+
exports.fetchAllBusinessEntities = fetchAllBusinessEntities;
|
|
32
|
+
//# sourceMappingURL=fetchAllBusinessEntities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllBusinessEntities.js","sourceRoot":"","sources":["../../src/graphql/fetchAllBusinessEntities.ts"],"names":[],"mappings":";;;AACA,iCAA2C;AAC3C,6DAA0D;AAmC1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,wBAAwB,CAC5C,MAAqB;IAErB,MAAM,gBAAgB,GAAqB,EAAE,CAAC;IAC9C,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,+CAA+C;IAC/C,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,gBAAgB,EAAE,EAAE,KAAK,EAAE;QAC3B,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAAC,MAAM,EAAE,wBAAiB,EAAE;YACtD,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,gBAAgB,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAChC,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAtBD,4DAsBC"}
|
|
@@ -22,7 +22,7 @@ async function fetchAllCookies(client, status = privacy_types_1.ConsentTrackerSt
|
|
|
22
22
|
do {
|
|
23
23
|
const { cookies: { nodes },
|
|
24
24
|
// eslint-disable-next-line no-await-in-loop
|
|
25
|
-
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.
|
|
25
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.COOKIES, {
|
|
26
26
|
first: PAGE_SIZE,
|
|
27
27
|
offset,
|
|
28
28
|
airgapBundleId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAllCookies.js","sourceRoot":"","sources":["../../src/graphql/fetchAllCookies.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"fetchAllCookies.js","sourceRoot":"","sources":["../../src/graphql/fetchAllCookies.ts"],"names":[],"mappings":";;;AACA,iCAAiC;AACjC,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,cAAO,EAAE;YAClB,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"}
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
export interface ConsentManager {
|
|
3
|
+
/** ID of consent manager */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Configuration of consent manager */
|
|
6
|
+
configuration: {
|
|
7
|
+
/** Domain list */
|
|
8
|
+
domains: string[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Fetch consent manager ID
|
|
13
|
+
*
|
|
14
|
+
* @param client - GraphQL client
|
|
15
|
+
* @returns Consent manager ID in organization
|
|
16
|
+
*/
|
|
17
|
+
export declare function fetchConsentManager(client: GraphQLClient): Promise<ConsentManager>;
|
|
2
18
|
/**
|
|
3
19
|
* Fetch consent manager ID
|
|
4
20
|
*
|
|
@@ -6,4 +22,17 @@ import { GraphQLClient } from 'graphql-request';
|
|
|
6
22
|
* @returns Consent manager ID in organization
|
|
7
23
|
*/
|
|
8
24
|
export declare function fetchConsentManagerId(client: GraphQLClient): Promise<string>;
|
|
25
|
+
export interface ConsentPurpose {
|
|
26
|
+
/** ID of purpose */
|
|
27
|
+
id: string;
|
|
28
|
+
/** Name of purpose */
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Fetch consent manager ID
|
|
33
|
+
*
|
|
34
|
+
* @param client - GraphQL client
|
|
35
|
+
* @returns Consent manager ID in organization
|
|
36
|
+
*/
|
|
37
|
+
export declare function fetchPurposes(client: GraphQLClient): Promise<ConsentPurpose[]>;
|
|
9
38
|
//# sourceMappingURL=fetchConsentManagerId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchConsentManagerId.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchConsentManagerId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchConsentManagerId.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchConsentManagerId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQhD,MAAM,WAAW,cAAc;IAC7B,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,uCAAuC;IACvC,aAAa,EAAE;QACb,kBAAkB;QAClB,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACH;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,cAAc,CAAC,CAWzB;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,MAAM,CAAC,CAcjB;AAED,MAAM,WAAW,cAAc;IAC7B,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,cAAc,EAAE,CAAC,CAW3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchConsentManagerId = void 0;
|
|
3
|
+
exports.fetchPurposes = exports.fetchConsentManagerId = exports.fetchConsentManager = void 0;
|
|
4
4
|
const gqls_1 = require("./gqls");
|
|
5
5
|
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
6
|
/**
|
|
@@ -9,9 +9,31 @@ const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
|
9
9
|
* @param client - GraphQL client
|
|
10
10
|
* @returns Consent manager ID in organization
|
|
11
11
|
*/
|
|
12
|
-
async function
|
|
12
|
+
async function fetchConsentManager(client) {
|
|
13
13
|
const { consentManager: { consentManager }, } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.FETCH_CONSENT_MANAGER);
|
|
14
|
+
return consentManager;
|
|
15
|
+
}
|
|
16
|
+
exports.fetchConsentManager = fetchConsentManager;
|
|
17
|
+
/**
|
|
18
|
+
* Fetch consent manager ID
|
|
19
|
+
*
|
|
20
|
+
* @param client - GraphQL client
|
|
21
|
+
* @returns Consent manager ID in organization
|
|
22
|
+
*/
|
|
23
|
+
async function fetchConsentManagerId(client) {
|
|
24
|
+
const { consentManager: { consentManager }, } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.FETCH_CONSENT_MANAGER_ID);
|
|
14
25
|
return consentManager.id;
|
|
15
26
|
}
|
|
16
27
|
exports.fetchConsentManagerId = fetchConsentManagerId;
|
|
28
|
+
/**
|
|
29
|
+
* Fetch consent manager ID
|
|
30
|
+
*
|
|
31
|
+
* @param client - GraphQL client
|
|
32
|
+
* @returns Consent manager ID in organization
|
|
33
|
+
*/
|
|
34
|
+
async function fetchPurposes(client) {
|
|
35
|
+
const { purposes: { purposes }, } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.PURPOSES);
|
|
36
|
+
return purposes;
|
|
37
|
+
}
|
|
38
|
+
exports.fetchPurposes = fetchPurposes;
|
|
17
39
|
//# sourceMappingURL=fetchConsentManagerId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchConsentManagerId.js","sourceRoot":"","sources":["../../src/graphql/fetchConsentManagerId.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"fetchConsentManagerId.js","sourceRoot":"","sources":["../../src/graphql/fetchConsentManagerId.ts"],"names":[],"mappings":";;;AACA,iCAIgB;AAChB,6DAA0D;AAY1D;;;;;GAKG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAAqB;IAErB,MAAM,EACJ,cAAc,EAAE,EAAE,cAAc,EAAE,GACnC,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,4BAAqB,CAAC,CAAC;IAClC,OAAO,cAAc,CAAC;AACxB,CAAC;AAbD,kDAaC;AAED;;;;;GAKG;AACI,KAAK,UAAU,qBAAqB,CACzC,MAAqB;IAErB,MAAM,EACJ,cAAc,EAAE,EAAE,cAAc,EAAE,GACnC,GAAG,MAAM,IAAA,uCAAkB,EASzB,MAAM,EAAE,+BAAwB,CAAC,CAAC;IACrC,OAAO,cAAc,CAAC,EAAE,CAAC;AAC3B,CAAC;AAhBD,sDAgBC;AASD;;;;;GAKG;AACI,KAAK,UAAU,aAAa,CACjC,MAAqB;IAErB,MAAM,EACJ,QAAQ,EAAE,EAAE,QAAQ,EAAE,GACvB,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,eAAQ,CAAC,CAAC;IACrB,OAAO,QAAQ,CAAC;AAClB,CAAC;AAbD,sCAaC"}
|
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { RequestActionObjectResolver } from '@transcend-io/privacy-types';
|
|
2
3
|
import { TranscendInput } from '../codecs';
|
|
3
4
|
export interface DataSubject {
|
|
4
5
|
/** ID of data subject */
|
|
5
6
|
id: string;
|
|
6
7
|
/** Type of data subject */
|
|
7
8
|
type: string;
|
|
9
|
+
/** Title of data subject */
|
|
10
|
+
title: {
|
|
11
|
+
/** Default message */
|
|
12
|
+
defaultMessage: string;
|
|
13
|
+
};
|
|
14
|
+
/** Whether silent mode is enabled by default */
|
|
15
|
+
adminDashboardDefaultSilentMode: boolean;
|
|
16
|
+
/** Enabled actions */
|
|
17
|
+
actions: {
|
|
18
|
+
/** Type of action */
|
|
19
|
+
type: RequestActionObjectResolver;
|
|
20
|
+
}[];
|
|
8
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Fetch all data subjects in an organization
|
|
24
|
+
*
|
|
25
|
+
* @param client - GraphQL client
|
|
26
|
+
* @returns List of data subject configurations
|
|
27
|
+
*/
|
|
28
|
+
export declare function fetchAllDataSubjects(client: GraphQLClient): Promise<DataSubject[]>;
|
|
9
29
|
/**
|
|
10
30
|
* Fetch all of the data subjects in the organization
|
|
11
31
|
*
|
|
@@ -14,7 +34,7 @@ export interface DataSubject {
|
|
|
14
34
|
* @param fetchAll - When true, always fetch all subjects
|
|
15
35
|
* @returns The list of data subjects
|
|
16
36
|
*/
|
|
17
|
-
export declare function
|
|
37
|
+
export declare function ensureAllDataSubjectsExist({ 'data-silos': dataSilos }: TranscendInput, client: GraphQLClient, fetchAll?: boolean): Promise<{
|
|
18
38
|
[type in string]: DataSubject;
|
|
19
39
|
}>;
|
|
20
40
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDataSubjects.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchDataSubjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMhD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,C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AC3C,gBAAgB,EAAE,MAAM,EAAE,EAC1B,eAAe,EAAE;KAAG,IAAI,IAAI,MAAM,GAAG,WAAW;CAAE,GACjD,MAAM,EAAE,CAUV"}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.convertToDataSubjectAllowlist = exports.convertToDataSubjectBlockList = exports.
|
|
6
|
+
exports.convertToDataSubjectAllowlist = exports.convertToDataSubjectBlockList = exports.ensureAllDataSubjectsExist = exports.fetchAllDataSubjects = void 0;
|
|
7
7
|
const gqls_1 = require("./gqls");
|
|
8
8
|
const keyBy_1 = __importDefault(require("lodash/keyBy"));
|
|
9
9
|
const flatten_1 = __importDefault(require("lodash/flatten"));
|
|
@@ -13,6 +13,18 @@ const logger_1 = require("../logger");
|
|
|
13
13
|
const colors_1 = __importDefault(require("colors"));
|
|
14
14
|
const bluebird_1 = require("bluebird");
|
|
15
15
|
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
16
|
+
/**
|
|
17
|
+
* Fetch all data subjects in an organization
|
|
18
|
+
*
|
|
19
|
+
* @param client - GraphQL client
|
|
20
|
+
* @returns List of data subject configurations
|
|
21
|
+
*/
|
|
22
|
+
async function fetchAllDataSubjects(client) {
|
|
23
|
+
// Fetch all data subjects in the organization
|
|
24
|
+
const { internalSubjects } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.DATA_SUBJECTS);
|
|
25
|
+
return internalSubjects;
|
|
26
|
+
}
|
|
27
|
+
exports.fetchAllDataSubjects = fetchAllDataSubjects;
|
|
16
28
|
/**
|
|
17
29
|
* Fetch all of the data subjects in the organization
|
|
18
30
|
*
|
|
@@ -21,14 +33,14 @@ const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
|
21
33
|
* @param fetchAll - When true, always fetch all subjects
|
|
22
34
|
* @returns The list of data subjects
|
|
23
35
|
*/
|
|
24
|
-
async function
|
|
36
|
+
async function ensureAllDataSubjectsExist({ 'data-silos': dataSilos = [] }, client, fetchAll = false) {
|
|
25
37
|
// Only need to fetch data subjects if specified in config
|
|
26
38
|
const expectedDataSubjects = (0, uniq_1.default)((0, flatten_1.default)(dataSilos.map((silo) => silo['data-subjects'] || []) || []));
|
|
27
39
|
if (expectedDataSubjects.length === 0 && !fetchAll) {
|
|
28
40
|
return {};
|
|
29
41
|
}
|
|
30
42
|
// Fetch all data subjects in the organization
|
|
31
|
-
const
|
|
43
|
+
const internalSubjects = await fetchAllDataSubjects(client);
|
|
32
44
|
const dataSubjectByName = (0, keyBy_1.default)(internalSubjects, 'type');
|
|
33
45
|
// Determine expected set of data subjects to create
|
|
34
46
|
const missingDataSubjects = (0, difference_1.default)(expectedDataSubjects, internalSubjects.map(({ type }) => type));
|
|
@@ -46,7 +58,7 @@ async function fetchDataSubjects({ 'data-silos': dataSilos = [] }, client, fetch
|
|
|
46
58
|
}
|
|
47
59
|
return dataSubjectByName;
|
|
48
60
|
}
|
|
49
|
-
exports.
|
|
61
|
+
exports.ensureAllDataSubjectsExist = ensureAllDataSubjectsExist;
|
|
50
62
|
/**
|
|
51
63
|
* Convert a list of data subject types into the block list of IDs to assign to the data silo
|
|
52
64
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDataSubjects.js","sourceRoot":"","sources":["../../src/graphql/fetchDataSubjects.ts"],"names":[],"mappings":";;;;;;AACA,iCAA4D;AAC5D,yDAAiC;AACjC,6DAAqC;AACrC,uDAA+B;AAC/B,mEAA2C;
|
|
1
|
+
{"version":3,"file":"fetchDataSubjects.js","sourceRoot":"","sources":["../../src/graphql/fetchDataSubjects.ts"],"names":[],"mappings":";;;;;;AACA,iCAA4D;AAC5D,yDAAiC;AACjC,6DAAqC;AACrC,uDAA+B;AAC/B,mEAA2C;AAG3C,sCAAmC;AACnC,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,6CAA6C,IAAI,EAAE,CAAC,CAAC;SACtE;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC;SAClC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACvD,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC;AAbD,sEAaC"}
|
|
@@ -1,10 +1,38 @@
|
|
|
1
1
|
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { IdentifierType, RequestAction } from '@transcend-io/privacy-types';
|
|
2
3
|
import { TranscendInput } from '../codecs';
|
|
3
4
|
export interface Identifier {
|
|
4
5
|
/** ID of identifier */
|
|
5
6
|
id: string;
|
|
6
7
|
/** Name of identifier */
|
|
7
8
|
name: string;
|
|
9
|
+
/** The type of identifier */
|
|
10
|
+
type: IdentifierType;
|
|
11
|
+
/** Regular expression to */
|
|
12
|
+
regex: string;
|
|
13
|
+
/** The set of options that the identifier */
|
|
14
|
+
selectOptions: string[];
|
|
15
|
+
/** Whether identifier is enabled on privacy center */
|
|
16
|
+
privacyCenterVisibility: RequestAction[];
|
|
17
|
+
/** Enabled data subjects that are exposed this identifier on the privacy center */
|
|
18
|
+
dataSubjects: {
|
|
19
|
+
/** type of data subjects */
|
|
20
|
+
type: string;
|
|
21
|
+
}[];
|
|
22
|
+
/** Whether identifier is a required field in privacy center form */
|
|
23
|
+
isRequiredInForm: boolean;
|
|
24
|
+
/** Identifier placeholder text */
|
|
25
|
+
placeholder: string;
|
|
26
|
+
/** Display title for identifier */
|
|
27
|
+
displayTitle: {
|
|
28
|
+
/** Default message */
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
};
|
|
31
|
+
/** Display description for identifier */
|
|
32
|
+
displayDescription: {
|
|
33
|
+
/** Default */
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
};
|
|
8
36
|
}
|
|
9
37
|
/**
|
|
10
38
|
* Fetch all identifiers in the organization
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchIdentifiers.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchIdentifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchIdentifiers.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchIdentifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAK5E,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAO3C,MAAM,WAAW,UAAU;IACzB,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,IAAI,EAAE,cAAc,CAAC;IACrB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,sDAAsD;IACtD,uBAAuB,EAAE,aAAa,EAAE,CAAC;IACzC,mFAAmF;IACnF,YAAY,EAAE;QACZ,4BAA4B;QAC5B,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,oEAAoE;IACpE,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,YAAY,EAAE;QACZ,sBAAsB;QACtB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,yCAAyC;IACzC,kBAAkB,EAAE;QAClB,cAAc;QACd,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AAID;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,UAAU,EAAE,CAAC,CAoBvB;AAED;;;;;;;GAOG;AACH,wBAAsB,gCAAgC,CACpD,EAAE,SAAc,EAAE,YAAY,EAAE,SAAc,EAAE,EAAE,cAAc,EAChE,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC;KAAG,CAAC,IAAI,MAAM,GAAG,UAAU;CAAE,CAAC,CAuDxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchIdentifiers.js","sourceRoot":"","sources":["../../src/graphql/fetchIdentifiers.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"fetchIdentifiers.js","sourceRoot":"","sources":["../../src/graphql/fetchIdentifiers.ts"],"names":[],"mappings":";;;;;;AAEA,iCAA8E;AAC9E,yDAAiC;AACjC,uDAA+B;AAC/B,6DAAqC;AAErC,mEAA2C;AAC3C,sCAAmC;AACnC,oDAA4B;AAC5B,uCAAqC;AACrC,6DAA0D;AAoC1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,mBAAmB,CACvC,MAAqB;IAErB,MAAM,WAAW,GAAiB,EAAE,CAAC;IACrC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,+CAA+C;IAC/C,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,WAAW,EAAE,EAAE,KAAK,EAAE;QACtB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAAC,MAAM,EAAE,kBAAW,EAAE;YAChD,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,WAAW,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC3B,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,WAAW,CAAC;AACrB,CAAC;AAtBD,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EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;QACxE,MAAM,IAAA,oBAAS,EAAC,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;YACvD,eAAM,CAAC,IAAI,CAAC,gBAAM,CAAC,OAAO,CAAC,uBAAuB,UAAU,KAAK,CAAC,CAAC,CAAC;YACpE,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,IAAA,uCAAkB,EACnD,MAAM,EACN,wBAAiB,EACjB;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,oBAAoB,CAAC,QAAQ,CAAC,UAAW,CAAC;oBAC9C,CAAC,CAAC,UAAU;oBACZ,CAAC,CAAC,QAAQ;aACb,CACF,CAAC;YACF,eAAM,CAAC,IAAI,CAAC,gBAAM,CAAC,KAAK,CAAC,sBAAsB,UAAU,GAAG,CAAC,CAAC,CAAC;YAE/D,iBAAiB,CAAC,UAAW,CAAC,GAAG,gBAAgB,CAAC,UAAU,CAAC;QAC/D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AA1DD,4EA0DC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/action.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAanB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ACTIONS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
exports.ACTIONS = (0, graphql_request_1.gql) `
|
|
6
|
+
query TranscendCliActions($first: Int!, $offset: Int!) {
|
|
7
|
+
actions(first: $first, offset: $offset) {
|
|
8
|
+
nodes {
|
|
9
|
+
id
|
|
10
|
+
type
|
|
11
|
+
skipSecondaryIfNoFiles
|
|
12
|
+
skipDownloadableStep
|
|
13
|
+
requiresReview
|
|
14
|
+
waitingPeriod
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
//# sourceMappingURL=action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.js","sourceRoot":"","sources":["../../../src/graphql/gqls/action.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,OAAO,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;CAazB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ATTRIBUTES: string;
|
|
2
|
+
export declare const CREATE_ATTRIBUTE_VALUES: string;
|
|
3
|
+
export declare const ATTRIBUTE_VALUES: string;
|
|
4
|
+
export declare const CREATE_ATTRIBUTE: string;
|
|
5
|
+
export declare const UPDATE_ATTRIBUTE: string;
|
|
6
|
+
//# sourceMappingURL=attribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/attribute.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,UAAU,QAatB,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAQnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAkB5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAqB5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAmB5B,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UPDATE_ATTRIBUTE = exports.CREATE_ATTRIBUTE = exports.ATTRIBUTE_VALUES = exports.CREATE_ATTRIBUTE_VALUES = exports.ATTRIBUTES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
const tmp_attribute_key_1 = require("../../tmp-attribute-key");
|
|
6
|
+
// TODO: https://transcend.height.app/T-23527 - remove these when GraphQL schema is re-designed
|
|
7
|
+
const ENABLED_ON_QUERY_INPUT = Object.values(tmp_attribute_key_1.ATTRIBUTE_KEY_TO_ENABLED_ON)
|
|
8
|
+
.map((enabledOn) => ` $${enabledOn}: Boolean`)
|
|
9
|
+
.join('\n');
|
|
10
|
+
const ENABLED_ON_RESPONSE = Object.values(tmp_attribute_key_1.ATTRIBUTE_KEY_TO_ENABLED_ON)
|
|
11
|
+
.map((enabledOn) => ` ${enabledOn}`)
|
|
12
|
+
.join('\n');
|
|
13
|
+
const ENABLED_ON_INPUT = Object.values(tmp_attribute_key_1.ATTRIBUTE_KEY_TO_ENABLED_ON)
|
|
14
|
+
.map((enabledOn) => ` ${enabledOn}: $${enabledOn}`)
|
|
15
|
+
.join('\n');
|
|
16
|
+
// TODO: https://transcend.height.app/T-23523 - update monorepo to not be required
|
|
17
|
+
const ENABLED_ON_CREATE_INPUT = Object.values(tmp_attribute_key_1.ATTRIBUTE_KEY_TO_ENABLED_ON)
|
|
18
|
+
.map((enabledOn) => ` $${enabledOn}: Boolean!`)
|
|
19
|
+
.join('\n');
|
|
20
|
+
exports.ATTRIBUTES = (0, graphql_request_1.gql) `
|
|
21
|
+
query TranscendCliAttributes($first: Int!, $offset: Int!) {
|
|
22
|
+
attributeKeys(first: $first, offset: $offset) {
|
|
23
|
+
nodes {
|
|
24
|
+
id
|
|
25
|
+
isCustom
|
|
26
|
+
description
|
|
27
|
+
${ENABLED_ON_RESPONSE}
|
|
28
|
+
name
|
|
29
|
+
type
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
exports.CREATE_ATTRIBUTE_VALUES = (0, graphql_request_1.gql) `
|
|
35
|
+
mutation TranscendCliCreateAttributeValues(
|
|
36
|
+
$input: [CreateAttributeValuesInput!]!
|
|
37
|
+
) {
|
|
38
|
+
createAttributeValues(input: $input) {
|
|
39
|
+
clientMutationId
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
exports.ATTRIBUTE_VALUES = (0, graphql_request_1.gql) `
|
|
44
|
+
query TranscendCliAttributeValues(
|
|
45
|
+
$first: Int!
|
|
46
|
+
$offset: Int!
|
|
47
|
+
$attributeKeyId: ID!
|
|
48
|
+
) {
|
|
49
|
+
attributeValues(
|
|
50
|
+
first: $first
|
|
51
|
+
offset: $offset
|
|
52
|
+
filterBy: { attributeKeys: [$attributeKeyId] }
|
|
53
|
+
) {
|
|
54
|
+
nodes {
|
|
55
|
+
id
|
|
56
|
+
name
|
|
57
|
+
color
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
exports.CREATE_ATTRIBUTE = (0, graphql_request_1.gql) `
|
|
63
|
+
mutation TranscendCliCreateAttribute(
|
|
64
|
+
$name: String!
|
|
65
|
+
$type: AttributeKeyType!
|
|
66
|
+
$description: String
|
|
67
|
+
${ENABLED_ON_CREATE_INPUT}
|
|
68
|
+
) {
|
|
69
|
+
createAttributeKey(
|
|
70
|
+
input: {
|
|
71
|
+
name: $name
|
|
72
|
+
type: $type
|
|
73
|
+
description: $description
|
|
74
|
+
${ENABLED_ON_INPUT}
|
|
75
|
+
}
|
|
76
|
+
) {
|
|
77
|
+
clientMutationId
|
|
78
|
+
attributeKey {
|
|
79
|
+
id
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
exports.UPDATE_ATTRIBUTE = (0, graphql_request_1.gql) `
|
|
85
|
+
mutation TranscendCliCreateAttribute(
|
|
86
|
+
$attributeKeyId: ID!
|
|
87
|
+
$description: String
|
|
88
|
+
${ENABLED_ON_QUERY_INPUT}
|
|
89
|
+
) {
|
|
90
|
+
updateAttributeKey(
|
|
91
|
+
input: {
|
|
92
|
+
id: $attributeKeyId
|
|
93
|
+
description: $description
|
|
94
|
+
${ENABLED_ON_INPUT}
|
|
95
|
+
}
|
|
96
|
+
) {
|
|
97
|
+
clientMutationId
|
|
98
|
+
attributeKey {
|
|
99
|
+
id
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
//# sourceMappingURL=attribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute.js","sourceRoot":"","sources":["../../../src/graphql/gqls/attribute.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AACtC,+DAAsE;AAEtE,+FAA+F;AAC/F,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,+CAA2B,CAAC;KACtE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,QAAQ,SAAS,WAAW,CAAC;KAChD,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,+CAA2B,CAAC;KACnE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,WAAW,SAAS,EAAE,CAAC;KAC1C,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,+CAA2B,CAAC;KAChE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,WAAW,SAAS,MAAM,SAAS,EAAE,CAAC;KACzD,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,kFAAkF;AAClF,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC,+CAA2B,CAAC;KACvE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,QAAQ,SAAS,YAAY,CAAC;KACjD,IAAI,CAAC,IAAI,CAAC,CAAC;AAED,QAAA,UAAU,GAAG,IAAA,qBAAG,EAAA;;;;;;;UAOnB,mBAAmB;;;;;;CAM5B,CAAC;AAEW,QAAA,uBAAuB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;CAQzC,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;CAkBlC,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;EAKjC,uBAAuB;;;;;;;EAOvB,gBAAgB;;;;;;;;;CASjB,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;EAIjC,sBAAsB;;;;;;EAMtB,gBAAgB;;;;;;;;;CASjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"businessEntity.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/businessEntity.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,QAqB7B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BUSINESS_ENTITIES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
exports.BUSINESS_ENTITIES = (0, graphql_request_1.gql) `
|
|
6
|
+
query TranscendCliBusinessEntities {
|
|
7
|
+
businessEntities {
|
|
8
|
+
nodes {
|
|
9
|
+
id
|
|
10
|
+
title
|
|
11
|
+
description
|
|
12
|
+
dataProtectionOfficerName
|
|
13
|
+
dataProtectionOfficerEmail
|
|
14
|
+
address
|
|
15
|
+
headquarterCountry
|
|
16
|
+
headquarterSubDivision
|
|
17
|
+
attributeValues {
|
|
18
|
+
name
|
|
19
|
+
attributeKey {
|
|
20
|
+
name
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
//# sourceMappingURL=businessEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"businessEntity.js","sourceRoot":"","sources":["../../../src/graphql/gqls/businessEntity.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;CAqBnC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
export declare const PURPOSES: string;
|
|
1
2
|
export declare const CREATE_DATA_FLOWS: string;
|
|
3
|
+
export declare const UPDATE_DATA_FLOWS: string;
|
|
2
4
|
export declare const CREATE_COOKIES: string;
|
|
3
5
|
export declare const DATA_FLOWS: string;
|
|
4
6
|
export declare const COOKIES: string;
|
|
7
|
+
export declare const FETCH_CONSENT_MANAGER_ID: string;
|
|
5
8
|
export declare const FETCH_CONSENT_MANAGER: string;
|
|
6
9
|
//# sourceMappingURL=consentManager.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"consentManager.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/consentManager.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QASpB,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAa7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAQ7B,CAAC;AAEF,eAAO,MAAM,cAAc,QAa1B,CAAC;AACF,eAAO,MAAM,UAAU,QAuCtB,CAAC;AAEF,eAAO,MAAM,OAAO,QAuCnB,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAQpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAWjC,CAAC"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
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;
|
|
3
|
+
exports.FETCH_CONSENT_MANAGER = exports.FETCH_CONSENT_MANAGER_ID = exports.COOKIES = exports.DATA_FLOWS = exports.CREATE_COOKIES = exports.UPDATE_DATA_FLOWS = exports.CREATE_DATA_FLOWS = exports.PURPOSES = void 0;
|
|
4
4
|
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
exports.PURPOSES = (0, graphql_request_1.gql) `
|
|
6
|
+
query TranscendCliPurposes {
|
|
7
|
+
purposes {
|
|
8
|
+
purposes {
|
|
9
|
+
id
|
|
10
|
+
name
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
5
15
|
exports.CREATE_DATA_FLOWS = (0, graphql_request_1.gql) `
|
|
6
|
-
mutation
|
|
16
|
+
mutation TranscendCliCreateDataFlows(
|
|
7
17
|
$dataFlows: [DataFlowInput!]!
|
|
8
18
|
$airgapBundleId: ID!
|
|
9
19
|
) {
|
|
@@ -16,8 +26,17 @@ exports.CREATE_DATA_FLOWS = (0, graphql_request_1.gql) `
|
|
|
16
26
|
}
|
|
17
27
|
}
|
|
18
28
|
`;
|
|
29
|
+
exports.UPDATE_DATA_FLOWS = (0, graphql_request_1.gql) `
|
|
30
|
+
mutation TranscendCliUpdateDataFlows($dataFlows: [UpdateDataFlowInput!]!) {
|
|
31
|
+
updateDataFlows(input: { dataFlows: $dataFlows }) {
|
|
32
|
+
dataFlows {
|
|
33
|
+
id
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
19
38
|
exports.CREATE_COOKIES = (0, graphql_request_1.gql) `
|
|
20
|
-
mutation
|
|
39
|
+
mutation TranscendCliCreateCookies(
|
|
21
40
|
$cookies: [CookieInput!]!
|
|
22
41
|
$airgapBundleId: ID!
|
|
23
42
|
) {
|
|
@@ -110,11 +129,23 @@ exports.COOKIES = (0, graphql_request_1.gql) `
|
|
|
110
129
|
}
|
|
111
130
|
}
|
|
112
131
|
`;
|
|
132
|
+
exports.FETCH_CONSENT_MANAGER_ID = (0, graphql_request_1.gql) `
|
|
133
|
+
query TranscendCliFetchConsentManagerId {
|
|
134
|
+
consentManager {
|
|
135
|
+
consentManager {
|
|
136
|
+
id
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
`;
|
|
113
141
|
exports.FETCH_CONSENT_MANAGER = (0, graphql_request_1.gql) `
|
|
114
|
-
query
|
|
142
|
+
query TranscendCliFetchConsentManager {
|
|
115
143
|
consentManager {
|
|
116
144
|
consentManager {
|
|
117
145
|
id
|
|
146
|
+
configuration {
|
|
147
|
+
domains
|
|
148
|
+
}
|
|
118
149
|
}
|
|
119
150
|
}
|
|
120
151
|
}
|