@transcend-io/cli 4.120.1 → 4.121.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.
Files changed (160) hide show
  1. package/README.md +97 -37
  2. package/build/cli-discover-silos.js +15 -4
  3. package/build/cli-discover-silos.js.map +1 -1
  4. package/build/cli-scan-packages.d.ts +3 -0
  5. package/build/cli-scan-packages.d.ts.map +1 -0
  6. package/build/cli-scan-packages.js +74 -0
  7. package/build/cli-scan-packages.js.map +1 -0
  8. package/build/code-scanning/constants.d.ts +12 -0
  9. package/build/code-scanning/constants.d.ts.map +1 -0
  10. package/build/code-scanning/constants.js +25 -0
  11. package/build/code-scanning/constants.js.map +1 -0
  12. package/build/code-scanning/findCodePackagesInFolder.d.ts +16 -0
  13. package/build/code-scanning/findCodePackagesInFolder.d.ts.map +1 -0
  14. package/build/code-scanning/findCodePackagesInFolder.js +50 -0
  15. package/build/code-scanning/findCodePackagesInFolder.js.map +1 -0
  16. package/build/code-scanning/findFilesToScan.d.ts +29 -0
  17. package/build/code-scanning/findFilesToScan.d.ts.map +1 -0
  18. package/build/{plugins → code-scanning}/findFilesToScan.js +12 -12
  19. package/build/code-scanning/findFilesToScan.js.map +1 -0
  20. package/build/code-scanning/index.d.ts +4 -0
  21. package/build/code-scanning/index.d.ts.map +1 -0
  22. package/build/{plugins → code-scanning}/index.js +1 -1
  23. package/build/code-scanning/index.js.map +1 -0
  24. package/build/code-scanning/integrations/cocoaPods.d.ts +3 -0
  25. package/build/code-scanning/integrations/cocoaPods.d.ts.map +1 -0
  26. package/build/code-scanning/integrations/cocoaPods.js +44 -0
  27. package/build/code-scanning/integrations/cocoaPods.js.map +1 -0
  28. package/build/code-scanning/integrations/gemfile.d.ts +3 -0
  29. package/build/code-scanning/integrations/gemfile.d.ts.map +1 -0
  30. package/build/code-scanning/integrations/gemfile.js +58 -0
  31. package/build/code-scanning/integrations/gemfile.js.map +1 -0
  32. package/build/code-scanning/integrations/gradle.d.ts +13 -0
  33. package/build/code-scanning/integrations/gradle.d.ts.map +1 -0
  34. package/build/code-scanning/integrations/gradle.js +81 -0
  35. package/build/code-scanning/integrations/gradle.js.map +1 -0
  36. package/build/{plugins → code-scanning}/integrations/index.d.ts +2 -0
  37. package/build/code-scanning/integrations/index.d.ts.map +1 -0
  38. package/build/{plugins → code-scanning}/integrations/index.js +2 -0
  39. package/build/code-scanning/integrations/index.js.map +1 -0
  40. package/build/code-scanning/integrations/javascriptPackageJson.d.ts +3 -0
  41. package/build/code-scanning/integrations/javascriptPackageJson.d.ts.map +1 -0
  42. package/build/code-scanning/integrations/javascriptPackageJson.js +38 -0
  43. package/build/code-scanning/integrations/javascriptPackageJson.js.map +1 -0
  44. package/build/code-scanning/integrations/pubspec.d.ts +3 -0
  45. package/build/code-scanning/integrations/pubspec.d.ts.map +1 -0
  46. package/build/code-scanning/integrations/pubspec.js +70 -0
  47. package/build/code-scanning/integrations/pubspec.js.map +1 -0
  48. package/build/code-scanning/integrations/pythonRequirementsTxt.d.ts +3 -0
  49. package/build/code-scanning/integrations/pythonRequirementsTxt.d.ts.map +1 -0
  50. package/build/code-scanning/integrations/pythonRequirementsTxt.js +47 -0
  51. package/build/code-scanning/integrations/pythonRequirementsTxt.js.map +1 -0
  52. package/build/code-scanning/types.d.ts +10 -0
  53. package/build/code-scanning/types.d.ts.map +1 -0
  54. package/build/{plugins → code-scanning}/types.js.map +1 -1
  55. package/build/codecs.d.ts +108 -0
  56. package/build/codecs.d.ts.map +1 -1
  57. package/build/codecs.js +91 -1
  58. package/build/codecs.js.map +1 -1
  59. package/build/graphql/fetchActiveSiloDiscoPlugin.d.ts +2 -3
  60. package/build/graphql/fetchActiveSiloDiscoPlugin.d.ts.map +1 -1
  61. package/build/graphql/fetchActiveSiloDiscoPlugin.js +1 -7
  62. package/build/graphql/fetchActiveSiloDiscoPlugin.js.map +1 -1
  63. package/build/graphql/fetchAllCodePackages.d.ts +52 -0
  64. package/build/graphql/fetchAllCodePackages.d.ts.map +1 -0
  65. package/build/graphql/fetchAllCodePackages.js +32 -0
  66. package/build/graphql/fetchAllCodePackages.js.map +1 -0
  67. package/build/graphql/fetchAllRepositories.d.ts +33 -0
  68. package/build/graphql/fetchAllRepositories.d.ts.map +1 -0
  69. package/build/graphql/fetchAllRepositories.js +32 -0
  70. package/build/graphql/fetchAllRepositories.js.map +1 -0
  71. package/build/graphql/fetchAllSoftwareDevelopmentKits.d.ts +38 -0
  72. package/build/graphql/fetchAllSoftwareDevelopmentKits.d.ts.map +1 -0
  73. package/build/graphql/fetchAllSoftwareDevelopmentKits.js +32 -0
  74. package/build/graphql/fetchAllSoftwareDevelopmentKits.js.map +1 -0
  75. package/build/graphql/gqls/codePackage.d.ts +4 -0
  76. package/build/graphql/gqls/codePackage.d.ts.map +1 -0
  77. package/build/graphql/gqls/codePackage.js +112 -0
  78. package/build/graphql/gqls/codePackage.js.map +1 -0
  79. package/build/graphql/gqls/index.d.ts +3 -0
  80. package/build/graphql/gqls/index.d.ts.map +1 -1
  81. package/build/graphql/gqls/index.js +3 -0
  82. package/build/graphql/gqls/index.js.map +1 -1
  83. package/build/graphql/gqls/repository.d.ts +4 -0
  84. package/build/graphql/gqls/repository.d.ts.map +1 -0
  85. package/build/graphql/gqls/repository.js +80 -0
  86. package/build/graphql/gqls/repository.js.map +1 -0
  87. package/build/graphql/gqls/softwareDevelopmentKit.d.ts +4 -0
  88. package/build/graphql/gqls/softwareDevelopmentKit.d.ts.map +1 -0
  89. package/build/graphql/gqls/softwareDevelopmentKit.js +92 -0
  90. package/build/graphql/gqls/softwareDevelopmentKit.js.map +1 -0
  91. package/build/graphql/index.d.ts +3 -0
  92. package/build/graphql/index.d.ts.map +1 -1
  93. package/build/graphql/index.js +3 -0
  94. package/build/graphql/index.js.map +1 -1
  95. package/build/graphql/syncAssessmentTemplates.js +2 -2
  96. package/build/graphql/syncAssessmentTemplates.js.map +1 -1
  97. package/build/graphql/syncAssessments.js +3 -3
  98. package/build/graphql/syncAssessments.js.map +1 -1
  99. package/build/graphql/syncCodePackages.d.ts +77 -0
  100. package/build/graphql/syncCodePackages.d.ts.map +1 -0
  101. package/build/graphql/syncCodePackages.js +150 -0
  102. package/build/graphql/syncCodePackages.js.map +1 -0
  103. package/build/graphql/syncDataSilos.js +2 -2
  104. package/build/graphql/syncDataSilos.js.map +1 -1
  105. package/build/graphql/syncRepositories.d.ts +65 -0
  106. package/build/graphql/syncRepositories.d.ts.map +1 -0
  107. package/build/graphql/syncRepositories.js +113 -0
  108. package/build/graphql/syncRepositories.js.map +1 -0
  109. package/build/graphql/syncSoftwareDevelopmentKits.d.ts +84 -0
  110. package/build/graphql/syncSoftwareDevelopmentKits.d.ts.map +1 -0
  111. package/build/graphql/syncSoftwareDevelopmentKits.js +118 -0
  112. package/build/graphql/syncSoftwareDevelopmentKits.js.map +1 -0
  113. package/build/graphql/uploadSiloDiscoveryResults.d.ts +1 -1
  114. package/build/graphql/uploadSiloDiscoveryResults.d.ts.map +1 -1
  115. package/build/graphql/uploadSiloDiscoveryResults.js +5 -2
  116. package/build/graphql/uploadSiloDiscoveryResults.js.map +1 -1
  117. package/build/tests/findCodePackagesInFolder.test.d.ts +2 -0
  118. package/build/tests/findCodePackagesInFolder.test.d.ts.map +1 -0
  119. package/build/tests/findCodePackagesInFolder.test.js +507 -0
  120. package/build/tests/findCodePackagesInFolder.test.js.map +1 -0
  121. package/build/tsbuildinfo +1 -1
  122. package/examples/code-scanning/test-gradle/test-nested-package-json/package.json +20 -0
  123. package/examples/code-scanning/test-package-json/package.json +20 -0
  124. package/package.json +5 -4
  125. package/LICENSE +0 -21
  126. package/build/plugins/constants.d.ts +0 -9
  127. package/build/plugins/constants.d.ts.map +0 -1
  128. package/build/plugins/constants.js +0 -11
  129. package/build/plugins/constants.js.map +0 -1
  130. package/build/plugins/findFilesToScan.d.ts +0 -12
  131. package/build/plugins/findFilesToScan.d.ts.map +0 -1
  132. package/build/plugins/findFilesToScan.js.map +0 -1
  133. package/build/plugins/index.d.ts +0 -4
  134. package/build/plugins/index.d.ts.map +0 -1
  135. package/build/plugins/index.js.map +0 -1
  136. package/build/plugins/integrations/cocoaPods.d.ts +0 -3
  137. package/build/plugins/integrations/cocoaPods.d.ts.map +0 -1
  138. package/build/plugins/integrations/cocoaPods.js +0 -30
  139. package/build/plugins/integrations/cocoaPods.js.map +0 -1
  140. package/build/plugins/integrations/gradle.d.ts +0 -3
  141. package/build/plugins/integrations/gradle.d.ts.map +0 -1
  142. package/build/plugins/integrations/gradle.js +0 -53
  143. package/build/plugins/integrations/gradle.js.map +0 -1
  144. package/build/plugins/integrations/index.d.ts.map +0 -1
  145. package/build/plugins/integrations/index.js.map +0 -1
  146. package/build/plugins/integrations/javascriptPackageJson.d.ts +0 -3
  147. package/build/plugins/integrations/javascriptPackageJson.d.ts.map +0 -1
  148. package/build/plugins/integrations/javascriptPackageJson.js +0 -32
  149. package/build/plugins/integrations/javascriptPackageJson.js.map +0 -1
  150. package/build/plugins/integrations/pythonRequirementsTxt.d.ts +0 -3
  151. package/build/plugins/integrations/pythonRequirementsTxt.d.ts.map +0 -1
  152. package/build/plugins/integrations/pythonRequirementsTxt.js +0 -33
  153. package/build/plugins/integrations/pythonRequirementsTxt.js.map +0 -1
  154. package/build/plugins/typeguards.d.ts +0 -9
  155. package/build/plugins/typeguards.d.ts.map +0 -1
  156. package/build/plugins/typeguards.js +0 -15
  157. package/build/plugins/typeguards.js.map +0 -1
  158. package/build/plugins/types.d.ts +0 -29
  159. package/build/plugins/types.d.ts.map +0 -1
  160. /package/build/{plugins → code-scanning}/types.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"fetchActiveSiloDiscoPlugin.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchActiveSiloDiscoPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAqB,eAAe,EAAE,MAAM,YAAY,CAAC;AAKhE,MAAM,WAAW,MAAM;IACrB,2BAA2B;IAC3B,QAAQ,EAAE;QACR,yBAAyB;QACzB,IAAI,EAAE,eAAe,CAAC;KACvB,CAAC;IACF,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,cAAc;IAC7B,qCAAqC;IACrC,OAAO,EAAE;QACP,sBAAsB;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,0BAA0B;QAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACH;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC,CAwBjB"}
1
+ {"version":3,"file":"fetchActiveSiloDiscoPlugin.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchActiveSiloDiscoPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,MAAM,WAAW,MAAM;IACrB,2BAA2B;IAC3B,QAAQ,EAAE;QACR,yBAAyB;QACzB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,cAAc;IAC7B,qCAAqC;IACrC,OAAO,EAAE;QACP,sBAAsB;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,0BAA0B;QAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACH;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC,CAkBjB"}
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fetchActiveSiloDiscoPlugin = void 0;
4
- const plugins_1 = require("../plugins");
5
4
  const logger_1 = require("../logger");
6
5
  const gqls_1 = require("./gqls");
7
6
  const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
8
7
  /**
9
- * async
8
+ * Fetch a data silo discovery plugin
10
9
  *
11
10
  * @param client - GraphQL client
12
11
  * @param dataSiloId - The data silo to look up plugins for
@@ -23,11 +22,6 @@ async function fetchActiveSiloDiscoPlugin(client, dataSiloId) {
23
22
  process.exit(1);
24
23
  }
25
24
  const plugin = plugins[0];
26
- const resolvedPlugin = (0, plugins_1.isSupportedPlugin)(plugin.dataSilo.type);
27
- if (!resolvedPlugin) {
28
- logger_1.logger.error('This plugin is not supported for offline silo discovery.');
29
- process.exit(1);
30
- }
31
25
  return plugin;
32
26
  }
33
27
  exports.fetchActiveSiloDiscoPlugin = fetchActiveSiloDiscoPlugin;
@@ -1 +1 @@
1
- {"version":3,"file":"fetchActiveSiloDiscoPlugin.js","sourceRoot":"","sources":["../../src/graphql/fetchActiveSiloDiscoPlugin.ts"],"names":[],"mappings":";;;AACA,wCAAgE;AAChE,sCAAmC;AACnC,iCAAyC;AACzC,6DAA0D;AAsB1D;;;;;;GAMG;AACI,KAAK,UAAU,0BAA0B,CAC9C,MAAqB,EACrB,UAAkB;IAElB,MAAM,QAAQ,GAAG,MAAM,IAAA,uCAAkB,EACvC,MAAM,EACN,sBAAe,EACf;QACE,UAAU;QACV,IAAI,EAAE,qBAAqB;KAC5B,CACF,CAAC;IAEF,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,OAAO,CAAC;IACjD,IAAI,UAAU,KAAK,CAAC,EAAE;QACpB,eAAM,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;QACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC1B,MAAM,cAAc,GAAG,IAAA,2BAAiB,EAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/D,IAAI,CAAC,cAAc,EAAE;QACnB,eAAM,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;QACzE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AA3BD,gEA2BC"}
1
+ {"version":3,"file":"fetchActiveSiloDiscoPlugin.js","sourceRoot":"","sources":["../../src/graphql/fetchActiveSiloDiscoPlugin.ts"],"names":[],"mappings":";;;AACA,sCAAmC;AACnC,iCAAyC;AACzC,6DAA0D;AAsB1D;;;;;;GAMG;AACI,KAAK,UAAU,0BAA0B,CAC9C,MAAqB,EACrB,UAAkB;IAElB,MAAM,QAAQ,GAAG,MAAM,IAAA,uCAAkB,EACvC,MAAM,EACN,sBAAe,EACf;QACE,UAAU;QACV,IAAI,EAAE,qBAAqB;KAC5B,CACF,CAAC;IAEF,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,OAAO,CAAC;IACjD,IAAI,UAAU,KAAK,CAAC,EAAE;QACpB,eAAM,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;QACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC1B,OAAO,MAAM,CAAC;AAChB,CAAC;AArBD,gEAqBC"}
@@ -0,0 +1,52 @@
1
+ import { GraphQLClient } from 'graphql-request';
2
+ import { CodePackageType } from '@transcend-io/privacy-types';
3
+ export interface CodePackage {
4
+ /** ID of code package */
5
+ id: string;
6
+ /** Name of code package */
7
+ name: string;
8
+ /** Description of code package */
9
+ description: string;
10
+ /** Type of code package */
11
+ type: CodePackageType;
12
+ /** Relative path to code package in repository */
13
+ relativePath: string;
14
+ /** The teams that manage the code package */
15
+ teams: {
16
+ /** ID of team */
17
+ id: string;
18
+ /** Name of team */
19
+ name: string;
20
+ }[];
21
+ /** The users that manage the code package */
22
+ owners: {
23
+ /** ID of user */
24
+ id: string;
25
+ /** Email of user */
26
+ email: string;
27
+ }[];
28
+ /** The repository where the code package belongs */
29
+ repository: {
30
+ /** ID of repository */
31
+ id: string;
32
+ /** Name of repository */
33
+ name: string;
34
+ };
35
+ /** The data silo that the code package relates to */
36
+ dataSilo?: {
37
+ /** ID of repository */
38
+ id: string;
39
+ /** Title of repository */
40
+ title: string;
41
+ /** Type of data silo */
42
+ type: string;
43
+ };
44
+ }
45
+ /**
46
+ * Fetch all code packages in the organization
47
+ *
48
+ * @param client - GraphQL client
49
+ * @returns All code packages in the organization
50
+ */
51
+ export declare function fetchAllCodePackages(client: GraphQLClient): Promise<CodePackage[]>;
52
+ //# sourceMappingURL=fetchAllCodePackages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchAllCodePackages.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllCodePackages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,MAAM,WAAW,WAAW;IAC1B,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,kDAAkD;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,KAAK,EAAE;QACL,iBAAiB;QACjB,EAAE,EAAE,MAAM,CAAC;QACX,mBAAmB;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,6CAA6C;IAC7C,MAAM,EAAE;QACN,iBAAiB;QACjB,EAAE,EAAE,MAAM,CAAC;QACX,oBAAoB;QACpB,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,oDAAoD;IACpD,UAAU,EAAE;QACV,uBAAuB;QACvB,EAAE,EAAE,MAAM,CAAC;QACX,yBAAyB;QACzB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,qDAAqD;IACrD,QAAQ,CAAC,EAAE;QACT,uBAAuB;QACvB,EAAE,EAAE,MAAM,CAAC;QACX,0BAA0B;QAC1B,KAAK,EAAE,MAAM,CAAC;QACd,wBAAwB;QACxB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAID;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,WAAW,EAAE,CAAC,CA0BxB"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchAllCodePackages = void 0;
4
+ const gqls_1 = require("./gqls");
5
+ const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
6
+ const PAGE_SIZE = 20;
7
+ /**
8
+ * Fetch all code packages in the organization
9
+ *
10
+ * @param client - GraphQL client
11
+ * @returns All code packages in the organization
12
+ */
13
+ async function fetchAllCodePackages(client) {
14
+ const codePackages = [];
15
+ let offset = 0;
16
+ // Whether to continue looping
17
+ let shouldContinue = false;
18
+ do {
19
+ const { codePackages: { nodes },
20
+ // eslint-disable-next-line no-await-in-loop
21
+ } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.CODE_PACKAGES, {
22
+ first: PAGE_SIZE,
23
+ offset,
24
+ });
25
+ codePackages.push(...nodes);
26
+ offset += PAGE_SIZE;
27
+ shouldContinue = nodes.length === PAGE_SIZE;
28
+ } while (shouldContinue);
29
+ return codePackages.sort((a, b) => a.name.localeCompare(b.name));
30
+ }
31
+ exports.fetchAllCodePackages = fetchAllCodePackages;
32
+ //# sourceMappingURL=fetchAllCodePackages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchAllCodePackages.js","sourceRoot":"","sources":["../../src/graphql/fetchAllCodePackages.ts"],"names":[],"mappings":";;;AACA,iCAAuC;AACvC,6DAA0D;AA8C1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,oBAAoB,CACxC,MAAqB;IAErB,MAAM,YAAY,GAAkB,EAAE,CAAC;IACvC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,YAAY,EAAE,EAAE,KAAK,EAAE;QACvB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,oBAAa,EAAE;YACxB,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,YAAY,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC5B,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACnE,CAAC;AA5BD,oDA4BC"}
@@ -0,0 +1,33 @@
1
+ import { GraphQLClient } from 'graphql-request';
2
+ export interface Repository {
3
+ /** ID of repository */
4
+ id: string;
5
+ /** Name of repository */
6
+ name: string;
7
+ /** Description of repository */
8
+ description: string;
9
+ /** URL of repo */
10
+ url: string;
11
+ /** The teams that manage the repository */
12
+ teams: {
13
+ /** ID of team */
14
+ id: string;
15
+ /** Name of team */
16
+ name: string;
17
+ }[];
18
+ /** The users that manage the repository */
19
+ owners: {
20
+ /** ID of user */
21
+ id: string;
22
+ /** Email of user */
23
+ email: string;
24
+ }[];
25
+ }
26
+ /**
27
+ * Fetch all repositories in the organization
28
+ *
29
+ * @param client - GraphQL client
30
+ * @returns All repositories in the organization
31
+ */
32
+ export declare function fetchAllRepositories(client: GraphQLClient): Promise<Repository[]>;
33
+ //# sourceMappingURL=fetchAllRepositories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchAllRepositories.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllRepositories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,WAAW,UAAU;IACzB,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,2CAA2C;IAC3C,KAAK,EAAE;QACL,iBAAiB;QACjB,EAAE,EAAE,MAAM,CAAC;QACX,mBAAmB;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,2CAA2C;IAC3C,MAAM,EAAE;QACN,iBAAiB;QACjB,EAAE,EAAE,MAAM,CAAC;QACX,oBAAoB;QACpB,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAID;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,UAAU,EAAE,CAAC,CA0BvB"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchAllRepositories = void 0;
4
+ const gqls_1 = require("./gqls");
5
+ const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
6
+ const PAGE_SIZE = 20;
7
+ /**
8
+ * Fetch all repositories in the organization
9
+ *
10
+ * @param client - GraphQL client
11
+ * @returns All repositories in the organization
12
+ */
13
+ async function fetchAllRepositories(client) {
14
+ const repositories = [];
15
+ let offset = 0;
16
+ // Whether to continue looping
17
+ let shouldContinue = false;
18
+ do {
19
+ const { repositories: { nodes },
20
+ // eslint-disable-next-line no-await-in-loop
21
+ } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.REPOSITORIES, {
22
+ first: PAGE_SIZE,
23
+ offset,
24
+ });
25
+ repositories.push(...nodes);
26
+ offset += PAGE_SIZE;
27
+ shouldContinue = nodes.length === PAGE_SIZE;
28
+ } while (shouldContinue);
29
+ return repositories.sort((a, b) => a.name.localeCompare(b.name));
30
+ }
31
+ exports.fetchAllRepositories = fetchAllRepositories;
32
+ //# sourceMappingURL=fetchAllRepositories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchAllRepositories.js","sourceRoot":"","sources":["../../src/graphql/fetchAllRepositories.ts"],"names":[],"mappings":";;;AACA,iCAAsC;AACtC,6DAA0D;AA2B1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,oBAAoB,CACxC,MAAqB;IAErB,MAAM,YAAY,GAAiB,EAAE,CAAC;IACtC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,YAAY,EAAE,EAAE,KAAK,EAAE;QACvB,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,mBAAY,EAAE;YACvB,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,YAAY,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC5B,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACnE,CAAC;AA5BD,oDA4BC"}
@@ -0,0 +1,38 @@
1
+ import { GraphQLClient } from 'graphql-request';
2
+ import { CodePackageType } from '@transcend-io/privacy-types';
3
+ export interface SoftwareDevelopmentKit {
4
+ /** ID of software development kit */
5
+ id: string;
6
+ /** Name of software development kit */
7
+ name: string;
8
+ /** Description of software development kit */
9
+ description: string;
10
+ /** Type of software development kit */
11
+ codePackageType: CodePackageType;
12
+ /** Related documentation */
13
+ documentationLinks: string[];
14
+ /** Link to git repository */
15
+ repositoryUrl?: string;
16
+ /** The teams that manage the software development kit */
17
+ teams: {
18
+ /** ID of team */
19
+ id: string;
20
+ /** Name of team */
21
+ name: string;
22
+ }[];
23
+ /** The users that manage the software development kit */
24
+ owners: {
25
+ /** ID of user */
26
+ id: string;
27
+ /** Email of user */
28
+ email: string;
29
+ }[];
30
+ }
31
+ /**
32
+ * Fetch all software development kits in the organization
33
+ *
34
+ * @param client - GraphQL client
35
+ * @returns All software development kits in the organization
36
+ */
37
+ export declare function fetchAllSoftwareDevelopmentKits(client: GraphQLClient): Promise<SoftwareDevelopmentKit[]>;
38
+ //# sourceMappingURL=fetchAllSoftwareDevelopmentKits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchAllSoftwareDevelopmentKits.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllSoftwareDevelopmentKits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,MAAM,WAAW,sBAAsB;IACrC,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,eAAe,EAAE,eAAe,CAAC;IACjC,4BAA4B;IAC5B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,KAAK,EAAE;QACL,iBAAiB;QACjB,EAAE,EAAE,MAAM,CAAC;QACX,mBAAmB;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,yDAAyD;IACzD,MAAM,EAAE;QACN,iBAAiB;QACjB,EAAE,EAAE,MAAM,CAAC;QACX,oBAAoB;QACpB,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAID;;;;;GAKG;AACH,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,sBAAsB,EAAE,CAAC,CA0BnC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchAllSoftwareDevelopmentKits = void 0;
4
+ const gqls_1 = require("./gqls");
5
+ const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
6
+ const PAGE_SIZE = 20;
7
+ /**
8
+ * Fetch all software development kits in the organization
9
+ *
10
+ * @param client - GraphQL client
11
+ * @returns All software development kits in the organization
12
+ */
13
+ async function fetchAllSoftwareDevelopmentKits(client) {
14
+ const softwareDevelopmentKits = [];
15
+ let offset = 0;
16
+ // Whether to continue looping
17
+ let shouldContinue = false;
18
+ do {
19
+ const { softwareDevelopmentKits: { nodes },
20
+ // eslint-disable-next-line no-await-in-loop
21
+ } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.SOFTWARE_DEVELOPMENT_KITS, {
22
+ first: PAGE_SIZE,
23
+ offset,
24
+ });
25
+ softwareDevelopmentKits.push(...nodes);
26
+ offset += PAGE_SIZE;
27
+ shouldContinue = nodes.length === PAGE_SIZE;
28
+ } while (shouldContinue);
29
+ return softwareDevelopmentKits.sort((a, b) => a.name.localeCompare(b.name));
30
+ }
31
+ exports.fetchAllSoftwareDevelopmentKits = fetchAllSoftwareDevelopmentKits;
32
+ //# sourceMappingURL=fetchAllSoftwareDevelopmentKits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchAllSoftwareDevelopmentKits.js","sourceRoot":"","sources":["../../src/graphql/fetchAllSoftwareDevelopmentKits.ts"],"names":[],"mappings":";;;AACA,iCAAmD;AACnD,6DAA0D;AAgC1D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;GAKG;AACI,KAAK,UAAU,+BAA+B,CACnD,MAAqB;IAErB,MAAM,uBAAuB,GAA6B,EAAE,CAAC;IAC7D,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,8BAA8B;IAC9B,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,GAAG;QACD,MAAM,EACJ,uBAAuB,EAAE,EAAE,KAAK,EAAE;QAClC,4CAA4C;UAC7C,GAAG,MAAM,IAAA,uCAAkB,EAMzB,MAAM,EAAE,gCAAyB,EAAE;YACpC,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;QACH,uBAAuB,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACvC,MAAM,IAAI,SAAS,CAAC;QACpB,cAAc,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;KAC7C,QAAQ,cAAc,EAAE;IAEzB,OAAO,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9E,CAAC;AA5BD,0EA4BC"}
@@ -0,0 +1,4 @@
1
+ export declare const CODE_PACKAGES: string;
2
+ export declare const UPDATE_CODE_PACKAGES: string;
3
+ export declare const CREATE_CODE_PACKAGE: string;
4
+ //# sourceMappingURL=codePackage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codePackage.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/codePackage.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,QAyCzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,QA8BhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,QA8B/B,CAAC"}
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CREATE_CODE_PACKAGE = exports.UPDATE_CODE_PACKAGES = exports.CODE_PACKAGES = 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.CODE_PACKAGES = (0, graphql_request_1.gql) `
9
+ query TranscendCliCodePackages(
10
+ $first: Int!
11
+ $offset: Int!
12
+ $input: CodePackageFiltersInput
13
+ ) {
14
+ codePackages(
15
+ first: $first
16
+ offset: $offset
17
+ filterBy: $input
18
+ orderBy: [
19
+ { field: createdAt, direction: ASC }
20
+ { field: name, direction: ASC }
21
+ ]
22
+ ) {
23
+ nodes {
24
+ id
25
+ name
26
+ description
27
+ type
28
+ relativePath
29
+ teams {
30
+ id
31
+ name
32
+ }
33
+ owners {
34
+ id
35
+ email
36
+ }
37
+ repository {
38
+ id
39
+ name
40
+ }
41
+ dataSilo {
42
+ id
43
+ title
44
+ type
45
+ }
46
+ }
47
+ }
48
+ }
49
+ `;
50
+ exports.UPDATE_CODE_PACKAGES = (0, graphql_request_1.gql) `
51
+ mutation TranscendCliUpdateCodePackages($input: UpdateCodePackagesInput!) {
52
+ updateCodePackages(input: $input) {
53
+ clientMutationId
54
+ codePackages {
55
+ id
56
+ name
57
+ description
58
+ type
59
+ relativePath
60
+ teams {
61
+ id
62
+ name
63
+ }
64
+ owners {
65
+ id
66
+ email
67
+ }
68
+ repository {
69
+ id
70
+ name
71
+ }
72
+ dataSilo {
73
+ id
74
+ title
75
+ type
76
+ }
77
+ }
78
+ }
79
+ }
80
+ `;
81
+ exports.CREATE_CODE_PACKAGE = (0, graphql_request_1.gql) `
82
+ mutation TranscendCliCreateCodePackage($input: CreateCodePackageInput!) {
83
+ createCodePackage(input: $input) {
84
+ clientMutationId
85
+ codePackage {
86
+ id
87
+ name
88
+ description
89
+ type
90
+ relativePath
91
+ teams {
92
+ id
93
+ name
94
+ }
95
+ owners {
96
+ id
97
+ email
98
+ }
99
+ repository {
100
+ id
101
+ name
102
+ }
103
+ dataSilo {
104
+ id
105
+ title
106
+ type
107
+ }
108
+ }
109
+ }
110
+ }
111
+ `;
112
+ //# sourceMappingURL=codePackage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codePackage.js","sourceRoot":"","sources":["../../../src/graphql/gqls/codePackage.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEtC,oEAAoE;AACpE,oBAAoB;AACpB,mBAAmB;AACN,QAAA,aAAa,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC/B,CAAC;AAEW,QAAA,oBAAoB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BtC,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BrC,CAAC"}
@@ -4,12 +4,15 @@ export * from './enricher';
4
4
  export * from './catalog';
5
5
  export * from './identifier';
6
6
  export * from './dataSubject';
7
+ export * from './repository';
7
8
  export * from './apiKey';
8
9
  export * from './assessment';
9
10
  export * from './siloDiscovery';
10
11
  export * from './template';
11
12
  export * from './organization';
12
13
  export * from './attributeKey';
14
+ export * from './softwareDevelopmentKit';
15
+ export * from './codePackage';
13
16
  export * from './request';
14
17
  export * from './RequestIdentifier';
15
18
  export * from './prompt';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC"}
@@ -20,12 +20,15 @@ __exportStar(require("./enricher"), exports);
20
20
  __exportStar(require("./catalog"), exports);
21
21
  __exportStar(require("./identifier"), exports);
22
22
  __exportStar(require("./dataSubject"), exports);
23
+ __exportStar(require("./repository"), exports);
23
24
  __exportStar(require("./apiKey"), exports);
24
25
  __exportStar(require("./assessment"), exports);
25
26
  __exportStar(require("./siloDiscovery"), exports);
26
27
  __exportStar(require("./template"), exports);
27
28
  __exportStar(require("./organization"), exports);
28
29
  __exportStar(require("./attributeKey"), exports);
30
+ __exportStar(require("./softwareDevelopmentKit"), exports);
31
+ __exportStar(require("./codePackage"), exports);
29
32
  __exportStar(require("./request"), exports);
30
33
  __exportStar(require("./RequestIdentifier"), exports);
31
34
  __exportStar(require("./prompt"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B;AAC/B,4CAA0B;AAC1B,sDAAoC;AACpC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,mDAAiC;AACjC,0DAAwC;AACxC,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,yCAAuB;AACvB,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/gqls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B;AAC/B,2DAAyC;AACzC,gDAA8B;AAC9B,4CAA0B;AAC1B,sDAAoC;AACpC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,mDAAiC;AACjC,0DAAwC;AACxC,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,yCAAuB;AACvB,uDAAqC"}
@@ -0,0 +1,4 @@
1
+ export declare const REPOSITORIES: string;
2
+ export declare const UPDATE_REPOSITORIES: string;
3
+ export declare const CREATE_REPOSITORY: string;
4
+ //# sourceMappingURL=repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/repository.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,QA+BxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAmB/B,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAmB7B,CAAC"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CREATE_REPOSITORY = exports.UPDATE_REPOSITORIES = exports.REPOSITORIES = 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.REPOSITORIES = (0, graphql_request_1.gql) `
9
+ query TranscendCliRepositories(
10
+ $first: Int!
11
+ $offset: Int!
12
+ $input: RepositoryFiltersInput
13
+ ) {
14
+ repositories(
15
+ first: $first
16
+ offset: $offset
17
+ filterBy: $input
18
+ orderBy: [
19
+ { field: createdAt, direction: ASC }
20
+ { field: name, direction: ASC }
21
+ ]
22
+ ) {
23
+ nodes {
24
+ id
25
+ name
26
+ description
27
+ url
28
+ teams {
29
+ id
30
+ name
31
+ }
32
+ owners {
33
+ id
34
+ email
35
+ }
36
+ }
37
+ }
38
+ }
39
+ `;
40
+ exports.UPDATE_REPOSITORIES = (0, graphql_request_1.gql) `
41
+ mutation TranscendCliUpdateRepositories($input: UpdateRepositoriesInput!) {
42
+ updateRepositories(input: $input) {
43
+ clientMutationId
44
+ repositories {
45
+ id
46
+ name
47
+ url
48
+ teams {
49
+ id
50
+ name
51
+ }
52
+ owners {
53
+ id
54
+ email
55
+ }
56
+ }
57
+ }
58
+ }
59
+ `;
60
+ exports.CREATE_REPOSITORY = (0, graphql_request_1.gql) `
61
+ mutation TranscendCliCreateRepository($input: CreateRepositoryInput!) {
62
+ createRepository(input: $input) {
63
+ clientMutationId
64
+ repository {
65
+ id
66
+ name
67
+ url
68
+ teams {
69
+ id
70
+ name
71
+ }
72
+ owners {
73
+ id
74
+ email
75
+ }
76
+ }
77
+ }
78
+ }
79
+ `;
80
+ //# sourceMappingURL=repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../src/graphql/gqls/repository.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEtC,oEAAoE;AACpE,oBAAoB;AACpB,mBAAmB;AACN,QAAA,YAAY,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B9B,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;CAmBrC,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;CAmBnC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const SOFTWARE_DEVELOPMENT_KITS: string;
2
+ export declare const UPDATE_SOFTWARE_DEVELOPMENT_KITS: string;
3
+ export declare const CREATE_SOFTWARE_DEVELOPMENT_KIT: string;
4
+ //# sourceMappingURL=softwareDevelopmentKit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"softwareDevelopmentKit.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/softwareDevelopmentKit.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB,QAiCrC,CAAC;AAEF,eAAO,MAAM,gCAAgC,QAwB5C,CAAC;AAEF,eAAO,MAAM,+BAA+B,QAwB3C,CAAC"}
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = exports.SOFTWARE_DEVELOPMENT_KITS = 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.SOFTWARE_DEVELOPMENT_KITS = (0, graphql_request_1.gql) `
9
+ query TranscendCliSoftwareDevelopmentKits(
10
+ $first: Int!
11
+ $offset: Int!
12
+ $input: SoftwareDevelopmentKitFiltersInput
13
+ ) {
14
+ softwareDevelopmentKits(
15
+ first: $first
16
+ offset: $offset
17
+ filterBy: $input
18
+ orderBy: [
19
+ { field: createdAt, direction: ASC }
20
+ { field: name, direction: ASC }
21
+ ]
22
+ ) {
23
+ nodes {
24
+ id
25
+ name
26
+ description
27
+ codePackageType
28
+ documentationLinks
29
+ repositoryUrl
30
+ teams {
31
+ id
32
+ name
33
+ }
34
+ owners {
35
+ id
36
+ email
37
+ }
38
+ }
39
+ }
40
+ }
41
+ `;
42
+ exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = (0, graphql_request_1.gql) `
43
+ mutation TranscendCliUpdateSoftwareDevelopmentKits(
44
+ $input: UpdateSoftwareDevelopmentKitsInput!
45
+ ) {
46
+ updateSoftwareDevelopmentKits(input: $input) {
47
+ clientMutationId
48
+ softwareDevelopmentKits {
49
+ id
50
+ name
51
+ description
52
+ codePackageType
53
+ documentationLinks
54
+ repositoryUrl
55
+ teams {
56
+ id
57
+ name
58
+ }
59
+ owners {
60
+ id
61
+ email
62
+ }
63
+ }
64
+ }
65
+ }
66
+ `;
67
+ exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = (0, graphql_request_1.gql) `
68
+ mutation TranscendCliCreateSoftwareDevelopmentKit(
69
+ $input: CreateSoftwareDevelopmentKitInput!
70
+ ) {
71
+ createSoftwareDevelopmentKit(input: $input) {
72
+ clientMutationId
73
+ softwareDevelopmentKit {
74
+ id
75
+ name
76
+ description
77
+ codePackageType
78
+ documentationLinks
79
+ repositoryUrl
80
+ teams {
81
+ id
82
+ name
83
+ }
84
+ owners {
85
+ id
86
+ email
87
+ }
88
+ }
89
+ }
90
+ }
91
+ `;
92
+ //# sourceMappingURL=softwareDevelopmentKit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"softwareDevelopmentKit.js","sourceRoot":"","sources":["../../../src/graphql/gqls/softwareDevelopmentKit.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEtC,oEAAoE;AACpE,oBAAoB;AACpB,mBAAmB;AACN,QAAA,yBAAyB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC3C,CAAC;AAEW,QAAA,gCAAgC,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;CAwBlD,CAAC;AAEW,QAAA,+BAA+B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;CAwBjD,CAAC"}