@transcend-io/cli 4.121.2 → 4.122.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 +12 -0
- package/build/codecs.d.ts +12540 -1290
- package/build/codecs.d.ts.map +1 -1
- package/build/codecs.js +225 -12
- package/build/codecs.js.map +1 -1
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +12 -0
- package/build/constants.js.map +1 -1
- package/build/enums.d.ts +7 -1
- package/build/enums.d.ts.map +1 -1
- package/build/enums.js +6 -0
- package/build/enums.js.map +1 -1
- package/build/graphql/fetchAllAgentFiles.d.ts +24 -0
- package/build/graphql/fetchAllAgentFiles.d.ts.map +1 -0
- package/build/graphql/fetchAllAgentFiles.js +32 -0
- package/build/graphql/fetchAllAgentFiles.js.map +1 -0
- package/build/graphql/fetchAllAgentFunctions.d.ts +20 -0
- package/build/graphql/fetchAllAgentFunctions.d.ts.map +1 -0
- package/build/graphql/fetchAllAgentFunctions.js +35 -0
- package/build/graphql/fetchAllAgentFunctions.js.map +1 -0
- package/build/graphql/fetchAllAgents.d.ts +54 -0
- package/build/graphql/fetchAllAgents.d.ts.map +1 -0
- package/build/graphql/fetchAllAgents.js +32 -0
- package/build/graphql/fetchAllAgents.js.map +1 -0
- package/build/graphql/fetchAllDataCategories.d.ts +42 -0
- package/build/graphql/fetchAllDataCategories.d.ts.map +1 -0
- package/build/graphql/fetchAllDataCategories.js +32 -0
- package/build/graphql/fetchAllDataCategories.js.map +1 -0
- package/build/graphql/fetchAllProcessingPurposes.d.ts +40 -0
- package/build/graphql/fetchAllProcessingPurposes.d.ts.map +1 -0
- package/build/graphql/fetchAllProcessingPurposes.js +32 -0
- package/build/graphql/fetchAllProcessingPurposes.js.map +1 -0
- package/build/graphql/fetchAllVendors.d.ts +57 -0
- package/build/graphql/fetchAllVendors.d.ts.map +1 -0
- package/build/graphql/fetchAllVendors.js +32 -0
- package/build/graphql/fetchAllVendors.js.map +1 -0
- package/build/graphql/gqls/agent.d.ts +4 -0
- package/build/graphql/gqls/agent.d.ts.map +1 -0
- package/build/graphql/gqls/agent.js +64 -0
- package/build/graphql/gqls/agent.js.map +1 -0
- package/build/graphql/gqls/agentFile.d.ts +4 -0
- package/build/graphql/gqls/agentFile.d.ts.map +1 -0
- package/build/graphql/gqls/agentFile.js +47 -0
- package/build/graphql/gqls/agentFile.js.map +1 -0
- package/build/graphql/gqls/agentFunction.d.ts +4 -0
- package/build/graphql/gqls/agentFunction.d.ts.map +1 -0
- package/build/graphql/gqls/agentFunction.js +46 -0
- package/build/graphql/gqls/agentFunction.js.map +1 -0
- package/build/graphql/gqls/dataCategory.d.ts +4 -0
- package/build/graphql/gqls/dataCategory.d.ts.map +1 -0
- package/build/graphql/gqls/dataCategory.js +62 -0
- package/build/graphql/gqls/dataCategory.js.map +1 -0
- package/build/graphql/gqls/index.d.ts +6 -0
- package/build/graphql/gqls/index.d.ts.map +1 -1
- package/build/graphql/gqls/index.js +6 -0
- package/build/graphql/gqls/index.js.map +1 -1
- package/build/graphql/gqls/processingPurpose.d.ts +4 -0
- package/build/graphql/gqls/processingPurpose.d.ts.map +1 -0
- package/build/graphql/gqls/processingPurpose.js +64 -0
- package/build/graphql/gqls/processingPurpose.js.map +1 -0
- package/build/graphql/gqls/vendor.d.ts +4 -0
- package/build/graphql/gqls/vendor.d.ts.map +1 -0
- package/build/graphql/gqls/vendor.js +65 -0
- package/build/graphql/gqls/vendor.js.map +1 -0
- package/build/graphql/index.d.ts +12 -0
- package/build/graphql/index.d.ts.map +1 -1
- package/build/graphql/index.js +12 -0
- package/build/graphql/index.js.map +1 -1
- package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
- package/build/graphql/pullTranscendConfiguration.js +126 -1
- package/build/graphql/pullTranscendConfiguration.js.map +1 -1
- package/build/graphql/syncAgentFiles.d.ts +26 -0
- package/build/graphql/syncAgentFiles.d.ts.map +1 -0
- package/build/graphql/syncAgentFiles.js +99 -0
- package/build/graphql/syncAgentFiles.js.map +1 -0
- package/build/graphql/syncAgentFunctions.d.ts +26 -0
- package/build/graphql/syncAgentFunctions.d.ts.map +1 -0
- package/build/graphql/syncAgentFunctions.js +94 -0
- package/build/graphql/syncAgentFunctions.js.map +1 -0
- package/build/graphql/syncAgents.d.ts +34 -0
- package/build/graphql/syncAgents.d.ts.map +1 -0
- package/build/graphql/syncAgents.js +109 -0
- package/build/graphql/syncAgents.js.map +1 -0
- package/build/graphql/syncBusinessEntities.d.ts.map +1 -1
- package/build/graphql/syncBusinessEntities.js +1 -0
- package/build/graphql/syncBusinessEntities.js.map +1 -1
- package/build/graphql/syncConfigurationToTranscend.d.ts.map +1 -1
- package/build/graphql/syncConfigurationToTranscend.js +37 -1
- package/build/graphql/syncConfigurationToTranscend.js.map +1 -1
- package/build/graphql/syncDataCategories.d.ts +26 -0
- package/build/graphql/syncDataCategories.d.ts.map +1 -0
- package/build/graphql/syncDataCategories.js +97 -0
- package/build/graphql/syncDataCategories.js.map +1 -0
- package/build/graphql/syncProcessingPurposes.d.ts +26 -0
- package/build/graphql/syncProcessingPurposes.d.ts.map +1 -0
- package/build/graphql/syncProcessingPurposes.js +97 -0
- package/build/graphql/syncProcessingPurposes.js.map +1 -0
- package/build/graphql/syncVendors.d.ts +26 -0
- package/build/graphql/syncVendors.d.ts.map +1 -0
- package/build/graphql/syncVendors.js +108 -0
- package/build/graphql/syncVendors.js.map +1 -0
- package/build/tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllAgentFunctions.js","sourceRoot":"","sources":["../../src/graphql/fetchAllAgentFunctions.ts"],"names":[],"mappings":";;;AACA,iCAAyC;AACzC,6DAA0D;AAmB1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,sBAAsB,CAC1C,MAAqB;IAErB,MAAM,cAAc,GAAoB,EAAE,CAAC;IAC3C,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,cAAc,EAAE,EAAE,KAAK,EAAE;QACzB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,sBAAe,EAAE;YAC1B,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,cAAc,CAAC,IAAI,CACjB,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACtB,GAAG,IAAI;YACP,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;SACxC,CAAC,CAAC,CACJ,CAAC;QACF,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACrE,CAAC;AAjCD,wDAiCC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { LargeLanguageModelClient } from '@transcend-io/privacy-types';
|
|
3
|
+
export interface Agent {
|
|
4
|
+
/** ID of agent */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Name of agent */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Description of the agent */
|
|
9
|
+
description: string;
|
|
10
|
+
/** Whether the agent has code interpreter enabled */
|
|
11
|
+
codeInterpreterEnabled: boolean;
|
|
12
|
+
/** Whether the agent has retrieval enabled */
|
|
13
|
+
retrievalEnabled: boolean;
|
|
14
|
+
/** The prompt that the agent is based on */
|
|
15
|
+
prompt: {
|
|
16
|
+
/** Title of the prompt */
|
|
17
|
+
title: string;
|
|
18
|
+
};
|
|
19
|
+
/** Large language model that the agent is based on */
|
|
20
|
+
largeLanguageModel: {
|
|
21
|
+
/** Name of model */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Client */
|
|
24
|
+
client: LargeLanguageModelClient;
|
|
25
|
+
};
|
|
26
|
+
/** Teams assigned to the agent */
|
|
27
|
+
teams: {
|
|
28
|
+
/** Team name */
|
|
29
|
+
name: string;
|
|
30
|
+
}[];
|
|
31
|
+
/** Users assigned to the agent */
|
|
32
|
+
owners: {
|
|
33
|
+
/** User email */
|
|
34
|
+
email: string;
|
|
35
|
+
}[];
|
|
36
|
+
/** Functions that the agent has access to */
|
|
37
|
+
agentFunctions: {
|
|
38
|
+
/** Function name */
|
|
39
|
+
name: string;
|
|
40
|
+
}[];
|
|
41
|
+
/** Files that the agent has access to */
|
|
42
|
+
agentFiles: {
|
|
43
|
+
/** File name */
|
|
44
|
+
name: string;
|
|
45
|
+
}[];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Fetch all agents in the organization
|
|
49
|
+
*
|
|
50
|
+
* @param client - GraphQL client
|
|
51
|
+
* @returns All agents in the organization
|
|
52
|
+
*/
|
|
53
|
+
export declare function fetchAllAgents(client: GraphQLClient): Promise<Agent[]>;
|
|
54
|
+
//# sourceMappingURL=fetchAllAgents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllAgents.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllAgents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,MAAM,WAAW,KAAK;IACpB,kBAAkB;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,sBAAsB,EAAE,OAAO,CAAC;IAChC,8CAA8C;IAC9C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,4CAA4C;IAC5C,MAAM,EAAE;QACN,0BAA0B;QAC1B,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,sDAAsD;IACtD,kBAAkB,EAAE;QAClB,oBAAoB;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,aAAa;QACb,MAAM,EAAE,wBAAwB,CAAC;KAClC,CAAC;IACF,kCAAkC;IAClC,KAAK,EAAE;QACL,gBAAgB;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,kCAAkC;IAClC,MAAM,EAAE;QACN,iBAAiB;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,6CAA6C;IAC7C,cAAc,EAAE;QACd,oBAAoB;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,yCAAyC;IACzC,UAAU,EAAE;QACV,gBAAgB;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;CACL;AAID;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CA0B5E"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAllAgents = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const PAGE_SIZE = 20;
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all agents in the organization
|
|
9
|
+
*
|
|
10
|
+
* @param client - GraphQL client
|
|
11
|
+
* @returns All agents in the organization
|
|
12
|
+
*/
|
|
13
|
+
async function fetchAllAgents(client) {
|
|
14
|
+
const agents = [];
|
|
15
|
+
let offset = 0;
|
|
16
|
+
// Whether to continue looping
|
|
17
|
+
let shouldContinue = false;
|
|
18
|
+
do {
|
|
19
|
+
const { agents: { nodes },
|
|
20
|
+
// eslint-disable-next-line no-await-in-loop
|
|
21
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.AGENTS, {
|
|
22
|
+
first: PAGE_SIZE,
|
|
23
|
+
offset,
|
|
24
|
+
});
|
|
25
|
+
agents.push(...nodes);
|
|
26
|
+
offset += PAGE_SIZE;
|
|
27
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
28
|
+
} while (shouldContinue);
|
|
29
|
+
return agents.sort((a, b) => a.name.localeCompare(b.name));
|
|
30
|
+
}
|
|
31
|
+
exports.fetchAllAgents = fetchAllAgents;
|
|
32
|
+
//# sourceMappingURL=fetchAllAgents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllAgents.js","sourceRoot":"","sources":["../../src/graphql/fetchAllAgents.ts"],"names":[],"mappings":";;;AACA,iCAAgC;AAChC,6DAA0D;AAgD1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,cAAc,CAAC,MAAqB;IACxD,MAAM,MAAM,GAAY,EAAE,CAAC;IAC3B,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,MAAM,EAAE,EAAE,KAAK,EAAE;QACjB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,aAAM,EAAE;YACjB,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACtB,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7D,CAAC;AA1BD,wCA0BC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { DataCategoryType } from '@transcend-io/privacy-types';
|
|
3
|
+
export interface DataSubCategory {
|
|
4
|
+
/** ID of data category */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Name of data category */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Type of data category */
|
|
9
|
+
category: DataCategoryType;
|
|
10
|
+
/** Description of data category */
|
|
11
|
+
description?: string;
|
|
12
|
+
/** Regex for data category */
|
|
13
|
+
regex?: string;
|
|
14
|
+
/** Assigned teams */
|
|
15
|
+
teams: {
|
|
16
|
+
/** Team name */
|
|
17
|
+
name: string;
|
|
18
|
+
}[];
|
|
19
|
+
/** Assigned owners */
|
|
20
|
+
owners: {
|
|
21
|
+
/** Email */
|
|
22
|
+
email: string;
|
|
23
|
+
}[];
|
|
24
|
+
/** Custom fields */
|
|
25
|
+
attributeValues: {
|
|
26
|
+
/** Name of attribute value */
|
|
27
|
+
name: string;
|
|
28
|
+
/** Attribute key that the value represents */
|
|
29
|
+
attributeKey: {
|
|
30
|
+
/** Name of attribute team */
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
}[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Fetch all dataSubCategories in the organization
|
|
37
|
+
*
|
|
38
|
+
* @param client - GraphQL client
|
|
39
|
+
* @returns All dataSubCategories in the organization
|
|
40
|
+
*/
|
|
41
|
+
export declare function fetchAllDataCategories(client: GraphQLClient): Promise<DataSubCategory[]>;
|
|
42
|
+
//# sourceMappingURL=fetchAllDataCategories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllDataCategories.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllDataCategories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,KAAK,EAAE;QACL,gBAAgB;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,sBAAsB;IACtB,MAAM,EAAE;QACN,YAAY;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,oBAAoB;IACpB,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;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,eAAe,EAAE,CAAC,CA0B5B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAllDataCategories = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const PAGE_SIZE = 20;
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all dataSubCategories in the organization
|
|
9
|
+
*
|
|
10
|
+
* @param client - GraphQL client
|
|
11
|
+
* @returns All dataSubCategories in the organization
|
|
12
|
+
*/
|
|
13
|
+
async function fetchAllDataCategories(client) {
|
|
14
|
+
const dataSubCategories = [];
|
|
15
|
+
let offset = 0;
|
|
16
|
+
// Whether to continue looping
|
|
17
|
+
let shouldContinue = false;
|
|
18
|
+
do {
|
|
19
|
+
const { dataSubCategories: { nodes },
|
|
20
|
+
// eslint-disable-next-line no-await-in-loop
|
|
21
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.DATA_SUB_CATEGORIES, {
|
|
22
|
+
first: PAGE_SIZE,
|
|
23
|
+
offset,
|
|
24
|
+
});
|
|
25
|
+
dataSubCategories.push(...nodes);
|
|
26
|
+
offset += PAGE_SIZE;
|
|
27
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
28
|
+
} while (shouldContinue);
|
|
29
|
+
return dataSubCategories.sort((a, b) => a.name.localeCompare(b.name));
|
|
30
|
+
}
|
|
31
|
+
exports.fetchAllDataCategories = fetchAllDataCategories;
|
|
32
|
+
//# sourceMappingURL=fetchAllDataCategories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllDataCategories.js","sourceRoot":"","sources":["../../src/graphql/fetchAllDataCategories.ts"],"names":[],"mappings":";;;AACA,iCAA6C;AAC7C,6DAA0D;AAoC1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,sBAAsB,CAC1C,MAAqB;IAErB,MAAM,iBAAiB,GAAsB,EAAE,CAAC;IAChD,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,iBAAiB,EAAE,EAAE,KAAK,EAAE;QAC5B,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,0BAAmB,EAAE;YAC9B,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,iBAAiB,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACjC,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC;AA5BD,wDA4BC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { ProcessingPurpose } from '@transcend-io/privacy-types';
|
|
3
|
+
export interface ProcessingPurposeSubCategory {
|
|
4
|
+
/** ID of processing purpose */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Name of processing purpose */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Type of processing purpose */
|
|
9
|
+
purpose: ProcessingPurpose;
|
|
10
|
+
/** Description of processing purpose */
|
|
11
|
+
description?: string;
|
|
12
|
+
/** Assigned teams */
|
|
13
|
+
teams: {
|
|
14
|
+
/** Team name */
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
/** Assigned owners */
|
|
18
|
+
owners: {
|
|
19
|
+
/** Email */
|
|
20
|
+
email: string;
|
|
21
|
+
}[];
|
|
22
|
+
/** Custom fields */
|
|
23
|
+
attributeValues: {
|
|
24
|
+
/** Name of attribute value */
|
|
25
|
+
name: string;
|
|
26
|
+
/** Attribute key that the value represents */
|
|
27
|
+
attributeKey: {
|
|
28
|
+
/** Name of attribute team */
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
}[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Fetch all processingPurposeSubCategories in the organization
|
|
35
|
+
*
|
|
36
|
+
* @param client - GraphQL client
|
|
37
|
+
* @returns All processingPurposeSubCategories in the organization
|
|
38
|
+
*/
|
|
39
|
+
export declare function fetchAllProcessingPurposes(client: GraphQLClient): Promise<ProcessingPurposeSubCategory[]>;
|
|
40
|
+
//# sourceMappingURL=fetchAllProcessingPurposes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllProcessingPurposes.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllProcessingPurposes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,WAAW,4BAA4B;IAC3C,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,KAAK,EAAE;QACL,gBAAgB;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,sBAAsB;IACtB,MAAM,EAAE;QACN,YAAY;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,oBAAoB;IACpB,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;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,4BAA4B,EAAE,CAAC,CA4BzC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAllProcessingPurposes = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const PAGE_SIZE = 20;
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all processingPurposeSubCategories in the organization
|
|
9
|
+
*
|
|
10
|
+
* @param client - GraphQL client
|
|
11
|
+
* @returns All processingPurposeSubCategories in the organization
|
|
12
|
+
*/
|
|
13
|
+
async function fetchAllProcessingPurposes(client) {
|
|
14
|
+
const processingPurposeSubCategories = [];
|
|
15
|
+
let offset = 0;
|
|
16
|
+
// Whether to continue looping
|
|
17
|
+
let shouldContinue = false;
|
|
18
|
+
do {
|
|
19
|
+
const { processingPurposeSubCategories: { nodes },
|
|
20
|
+
// eslint-disable-next-line no-await-in-loop
|
|
21
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.PROCESSING_PURPOSE_SUB_CATEGORIES, {
|
|
22
|
+
first: PAGE_SIZE,
|
|
23
|
+
offset,
|
|
24
|
+
});
|
|
25
|
+
processingPurposeSubCategories.push(...nodes);
|
|
26
|
+
offset += PAGE_SIZE;
|
|
27
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
28
|
+
} while (shouldContinue);
|
|
29
|
+
return processingPurposeSubCategories.sort((a, b) => a.name.localeCompare(b.name));
|
|
30
|
+
}
|
|
31
|
+
exports.fetchAllProcessingPurposes = fetchAllProcessingPurposes;
|
|
32
|
+
//# sourceMappingURL=fetchAllProcessingPurposes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllProcessingPurposes.js","sourceRoot":"","sources":["../../src/graphql/fetchAllProcessingPurposes.ts"],"names":[],"mappings":";;;AACA,iCAA2D;AAC3D,6DAA0D;AAkC1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,0BAA0B,CAC9C,MAAqB;IAErB,MAAM,8BAA8B,GAAmC,EAAE,CAAC;IAC1E,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,8BAA8B,EAAE,EAAE,KAAK,EAAE;QACzC,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,wCAAiC,EAAE;YAC5C,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,8BAA8B,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC9C,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,8BAA8B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAClD,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAC7B,CAAC;AACJ,CAAC;AA9BD,gEA8BC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { IsoCountryCode, IsoCountrySubdivisionCode } from '@transcend-io/privacy-types';
|
|
3
|
+
export interface Vendor {
|
|
4
|
+
/** ID of vendor */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Title of vendor */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Description of vendor */
|
|
9
|
+
description: string;
|
|
10
|
+
/** DPA link */
|
|
11
|
+
dataProcessingAgreementLink?: string;
|
|
12
|
+
/** Contract email */
|
|
13
|
+
contactName?: string;
|
|
14
|
+
/** Contract phone */
|
|
15
|
+
contactPhone?: string;
|
|
16
|
+
/** Address */
|
|
17
|
+
address?: string;
|
|
18
|
+
/** Headquarters country */
|
|
19
|
+
headquarterCountry?: IsoCountryCode;
|
|
20
|
+
/** Headquarters subdivision */
|
|
21
|
+
headquarterSubDivision?: IsoCountrySubdivisionCode;
|
|
22
|
+
/** Website URL */
|
|
23
|
+
websiteUrl?: string;
|
|
24
|
+
/** Business entity */
|
|
25
|
+
businessEntity?: {
|
|
26
|
+
/** Business entity title */
|
|
27
|
+
title: string;
|
|
28
|
+
};
|
|
29
|
+
/** Assigned teams */
|
|
30
|
+
teams: {
|
|
31
|
+
/** Team name */
|
|
32
|
+
name: string;
|
|
33
|
+
}[];
|
|
34
|
+
/** Assigned owners */
|
|
35
|
+
owners: {
|
|
36
|
+
/** Email */
|
|
37
|
+
email: string;
|
|
38
|
+
}[];
|
|
39
|
+
/** Custom fields */
|
|
40
|
+
attributeValues: {
|
|
41
|
+
/** Name of attribute value */
|
|
42
|
+
name: string;
|
|
43
|
+
/** Attribute key that the value represents */
|
|
44
|
+
attributeKey: {
|
|
45
|
+
/** Name of attribute team */
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
48
|
+
}[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Fetch all vendors in the organization
|
|
52
|
+
*
|
|
53
|
+
* @param client - GraphQL client
|
|
54
|
+
* @returns All vendors in the organization
|
|
55
|
+
*/
|
|
56
|
+
export declare function fetchAllVendors(client: GraphQLClient): Promise<Vendor[]>;
|
|
57
|
+
//# sourceMappingURL=fetchAllVendors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllVendors.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllVendors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EACL,cAAc,EACd,yBAAyB,EAC1B,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,MAAM;IACrB,mBAAmB;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe;IACf,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,qBAAqB;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,cAAc,CAAC;IACpC,+BAA+B;IAC/B,sBAAsB,CAAC,EAAE,yBAAyB,CAAC;IACnD,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB;IACtB,cAAc,CAAC,EAAE;QACf,4BAA4B;QAC5B,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,qBAAqB;IACrB,KAAK,EAAE;QACL,gBAAgB;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,sBAAsB;IACtB,MAAM,EAAE;QACN,YAAY;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,oBAAoB;IACpB,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;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,MAAM,EAAE,CAAC,CA0BnB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAllVendors = void 0;
|
|
4
|
+
const gqls_1 = require("./gqls");
|
|
5
|
+
const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
|
|
6
|
+
const PAGE_SIZE = 20;
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all vendors in the organization
|
|
9
|
+
*
|
|
10
|
+
* @param client - GraphQL client
|
|
11
|
+
* @returns All vendors in the organization
|
|
12
|
+
*/
|
|
13
|
+
async function fetchAllVendors(client) {
|
|
14
|
+
const vendors = [];
|
|
15
|
+
let offset = 0;
|
|
16
|
+
// Whether to continue looping
|
|
17
|
+
let shouldContinue = false;
|
|
18
|
+
do {
|
|
19
|
+
const { vendors: { nodes },
|
|
20
|
+
// eslint-disable-next-line no-await-in-loop
|
|
21
|
+
} = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.VENDORS, {
|
|
22
|
+
first: PAGE_SIZE,
|
|
23
|
+
offset,
|
|
24
|
+
});
|
|
25
|
+
vendors.push(...nodes);
|
|
26
|
+
offset += PAGE_SIZE;
|
|
27
|
+
shouldContinue = nodes.length === PAGE_SIZE;
|
|
28
|
+
} while (shouldContinue);
|
|
29
|
+
return vendors.sort((a, b) => a.title.localeCompare(b.title));
|
|
30
|
+
}
|
|
31
|
+
exports.fetchAllVendors = fetchAllVendors;
|
|
32
|
+
//# sourceMappingURL=fetchAllVendors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAllVendors.js","sourceRoot":"","sources":["../../src/graphql/fetchAllVendors.ts"],"names":[],"mappings":";;;AACA,iCAAiC;AACjC,6DAA0D;AAsD1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,eAAe,CACnC,MAAqB;IAErB,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,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;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,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAChE,CAAC;AA5BD,0CA4BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/agent.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,QAsClB,CAAC;AAEF,eAAO,MAAM,YAAY,QASxB,CAAC;AAEF,eAAO,MAAM,aAAa,QAMzB,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UPDATE_AGENTS = exports.CREATE_AGENT = exports.AGENTS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
// TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
6
|
+
// isExportCsv: true
|
|
7
|
+
// useMaster: false
|
|
8
|
+
exports.AGENTS = (0, graphql_request_1.gql) `
|
|
9
|
+
query TranscendCliAgents($first: Int!, $offset: Int!) {
|
|
10
|
+
agents(
|
|
11
|
+
first: $first
|
|
12
|
+
offset: $offset
|
|
13
|
+
orderBy: [
|
|
14
|
+
{ field: createdAt, direction: ASC }
|
|
15
|
+
{ field: name, direction: ASC }
|
|
16
|
+
]
|
|
17
|
+
) {
|
|
18
|
+
nodes {
|
|
19
|
+
id
|
|
20
|
+
name
|
|
21
|
+
description
|
|
22
|
+
codeInterpreterEnabled
|
|
23
|
+
retrievalEnabled
|
|
24
|
+
prompt {
|
|
25
|
+
title
|
|
26
|
+
}
|
|
27
|
+
largeLanguageModel {
|
|
28
|
+
name
|
|
29
|
+
client
|
|
30
|
+
}
|
|
31
|
+
teams {
|
|
32
|
+
name
|
|
33
|
+
}
|
|
34
|
+
owners {
|
|
35
|
+
email
|
|
36
|
+
}
|
|
37
|
+
agentFunctions {
|
|
38
|
+
name
|
|
39
|
+
}
|
|
40
|
+
agentFiles {
|
|
41
|
+
name
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
exports.CREATE_AGENT = (0, graphql_request_1.gql) `
|
|
48
|
+
mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
|
|
49
|
+
createAgent(input: $input) {
|
|
50
|
+
agent {
|
|
51
|
+
id
|
|
52
|
+
name
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
exports.UPDATE_AGENTS = (0, graphql_request_1.gql) `
|
|
58
|
+
mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
|
|
59
|
+
updateAgents(input: $input) {
|
|
60
|
+
clientMutationId
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
//# sourceMappingURL=agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../src/graphql/gqls/agent.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEtC,oEAAoE;AACpE,oBAAoB;AACpB,mBAAmB;AACN,QAAA,MAAM,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCxB,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;CAS9B,CAAC;AAEW,QAAA,aAAa,GAAG,IAAA,qBAAG,EAAA;;;;;;CAM/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentFile.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/agentFile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,QAoBvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAU7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAM9B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UPDATE_AGENT_FILES = exports.CREATE_AGENT_FILE = exports.AGENT_FILES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
// TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
6
|
+
// isExportCsv: true
|
|
7
|
+
// useMaster: false
|
|
8
|
+
exports.AGENT_FILES = (0, graphql_request_1.gql) `
|
|
9
|
+
query TranscendCliAgentFiles($first: Int!, $offset: Int!) {
|
|
10
|
+
agentFiles(
|
|
11
|
+
first: $first
|
|
12
|
+
offset: $offset
|
|
13
|
+
orderBy: [
|
|
14
|
+
{ field: createdAt, direction: ASC }
|
|
15
|
+
{ field: name, direction: ASC }
|
|
16
|
+
]
|
|
17
|
+
) {
|
|
18
|
+
nodes {
|
|
19
|
+
id
|
|
20
|
+
name
|
|
21
|
+
description
|
|
22
|
+
fileId
|
|
23
|
+
size
|
|
24
|
+
purpose
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
exports.CREATE_AGENT_FILE = (0, graphql_request_1.gql) `
|
|
30
|
+
mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
|
|
31
|
+
createAgentFile(input: $input) {
|
|
32
|
+
agentFile {
|
|
33
|
+
id
|
|
34
|
+
name
|
|
35
|
+
fileId
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
exports.UPDATE_AGENT_FILES = (0, graphql_request_1.gql) `
|
|
41
|
+
mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
|
|
42
|
+
updateAgentFiles(input: $input) {
|
|
43
|
+
clientMutationId
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
//# sourceMappingURL=agentFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentFile.js","sourceRoot":"","sources":["../../../src/graphql/gqls/agentFile.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEtC,oEAAoE;AACpE,oBAAoB;AACpB,mBAAmB;AACN,QAAA,WAAW,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;CAoB7B,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;CAUnC,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;;CAMpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentFunction.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/agentFunction.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,QAkB3B,CAAC;AAEF,eAAO,MAAM,qBAAqB,QASjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAQlC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UPDATE_AGENT_FUNCTIONS = exports.CREATE_AGENT_FUNCTION = exports.AGENT_FUNCTIONS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
// TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
6
|
+
// isExportCsv: true
|
|
7
|
+
// useMaster: false
|
|
8
|
+
exports.AGENT_FUNCTIONS = (0, graphql_request_1.gql) `
|
|
9
|
+
query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
|
|
10
|
+
agentFunctions(
|
|
11
|
+
first: $first
|
|
12
|
+
offset: $offset
|
|
13
|
+
orderBy: [
|
|
14
|
+
{ field: createdAt, direction: ASC }
|
|
15
|
+
{ field: name, direction: ASC }
|
|
16
|
+
]
|
|
17
|
+
) {
|
|
18
|
+
nodes {
|
|
19
|
+
id
|
|
20
|
+
name
|
|
21
|
+
description
|
|
22
|
+
parameters
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
exports.CREATE_AGENT_FUNCTION = (0, graphql_request_1.gql) `
|
|
28
|
+
mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
|
|
29
|
+
createAgentFunction(input: $input) {
|
|
30
|
+
agentFunction {
|
|
31
|
+
id
|
|
32
|
+
name
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
exports.UPDATE_AGENT_FUNCTIONS = (0, graphql_request_1.gql) `
|
|
38
|
+
mutation TranscendCliUpdateAgentFunctions(
|
|
39
|
+
$input: UpdateAgentFunctionsInput!
|
|
40
|
+
) {
|
|
41
|
+
updateAgentFunctions(input: $input) {
|
|
42
|
+
clientMutationId
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
//# sourceMappingURL=agentFunction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentFunction.js","sourceRoot":"","sources":["../../../src/graphql/gqls/agentFunction.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEtC,oEAAoE;AACpE,oBAAoB;AACpB,mBAAmB;AACN,QAAA,eAAe,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;CAkBjC,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;CASvC,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;CAQxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataCategory.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/dataCategory.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB,QA6B/B,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAYpC,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAQtC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UPDATE_DATA_SUB_CATEGORIES = exports.CREATE_DATA_SUB_CATEGORY = exports.DATA_SUB_CATEGORIES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
// TODO: https://transcend.height.app/T-27909 - enable optimizations
|
|
6
|
+
// orderBy: [
|
|
7
|
+
// { field: createdAt, direction: ASC }
|
|
8
|
+
// { field: name, direction: ASC }
|
|
9
|
+
// ]
|
|
10
|
+
exports.DATA_SUB_CATEGORIES = (0, graphql_request_1.gql) `
|
|
11
|
+
query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
|
|
12
|
+
dataSubCategories(
|
|
13
|
+
first: $first
|
|
14
|
+
offset: $offset
|
|
15
|
+
isExportCsv: true
|
|
16
|
+
useMaster: false
|
|
17
|
+
) {
|
|
18
|
+
nodes {
|
|
19
|
+
id
|
|
20
|
+
name
|
|
21
|
+
category
|
|
22
|
+
description
|
|
23
|
+
regex
|
|
24
|
+
teams {
|
|
25
|
+
name
|
|
26
|
+
}
|
|
27
|
+
owners {
|
|
28
|
+
email
|
|
29
|
+
}
|
|
30
|
+
attributeValues {
|
|
31
|
+
attributeKey {
|
|
32
|
+
name
|
|
33
|
+
}
|
|
34
|
+
name
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
exports.CREATE_DATA_SUB_CATEGORY = (0, graphql_request_1.gql) `
|
|
41
|
+
mutation TranscendCliCreateDataSubCategory(
|
|
42
|
+
$input: CreateDataInventorySubCategoryInput!
|
|
43
|
+
) {
|
|
44
|
+
createDataSubCategory(input: $input) {
|
|
45
|
+
dataSubCategory {
|
|
46
|
+
id
|
|
47
|
+
name
|
|
48
|
+
category
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
exports.UPDATE_DATA_SUB_CATEGORIES = (0, graphql_request_1.gql) `
|
|
54
|
+
mutation TranscendCliUpdateDataSubCategories(
|
|
55
|
+
$input: UpdateDataSubCategoriesInput!
|
|
56
|
+
) {
|
|
57
|
+
updateDataSubCategories(input: $input) {
|
|
58
|
+
clientMutationId
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
//# sourceMappingURL=dataCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataCategory.js","sourceRoot":"","sources":["../../../src/graphql/gqls/dataCategory.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEtC,oEAAoE;AACpE,aAAa;AACb,yCAAyC;AACzC,oCAAoC;AACpC,IAAI;AACS,QAAA,mBAAmB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BrC,CAAC;AAEW,QAAA,wBAAwB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;CAY1C,CAAC;AAEW,QAAA,0BAA0B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;CAQ5C,CAAC"}
|
|
@@ -29,4 +29,10 @@ export * from './action';
|
|
|
29
29
|
export * from './privacyCenter';
|
|
30
30
|
export * from './auth';
|
|
31
31
|
export * from './largeLanguageModel';
|
|
32
|
+
export * from './agent';
|
|
33
|
+
export * from './agentFile';
|
|
34
|
+
export * from './agentFunction';
|
|
35
|
+
export * from './vendor';
|
|
36
|
+
export * from './dataCategory';
|
|
37
|
+
export * from './processingPurpose';
|
|
32
38
|
//# sourceMappingURL=index.d.ts.map
|