@transcend-io/cli 4.48.1 → 4.49.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.
@@ -1 +1 @@
1
- {"version":3,"file":"fetchAllRequests.d.ts","sourceRoot":"","sources":["../../src/graphql/fetchAllRequests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,OAAO,EACL,aAAa,EACb,aAAa,EACb,cAAc,EACd,yBAAyB,EAC1B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,MAAM,WAAW,cAAc;IAC7B,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,sBAAsB;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,MAAM,EAAE,WAAW,CAAC;IACpB,wCAAwC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,6BAA6B;IAC7B,IAAI,EAAE,aAAa,CAAC;IACpB,+BAA+B;IAC/B,MAAM,EAAE,aAAa,CAAC;IACtB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,OAAO,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAChC,8BAA8B;IAC9B,kBAAkB,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IACtD,uBAAuB;IACvB,eAAe,EAAE;QACf,kBAAkB;QAClB,EAAE,EAAE,MAAM,CAAC;QACX,oBAAoB;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,oBAAoB;QACpB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE7B,yBAAyB;;;;;;;;;EAQzB,CAAC;AAEH,oBAAoB;AACpB,oBAAY,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAI7D;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,aAAa,EACrB,EACE,OAAY,EACZ,QAAa,EACb,eAAe,EACf,cAAc,EACd,SAAS,GACV,GAAE;IACD,2BAA2B;IAC3B,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,mDAAmD;IACnD,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,kDAAkD;IAClD,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;CAChB,GACL,OAAO,CAAC,cAAc,EAAE,CAAC,CA0D3B"}
@@ -1,14 +1,75 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
2
21
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
22
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
23
  };
5
24
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.fetchAllRequests = void 0;
25
+ exports.fetchAllRequests = exports.PrivacyRequest = void 0;
7
26
  const colors_1 = __importDefault(require("colors"));
8
27
  const gqls_1 = require("./gqls");
28
+ const t = __importStar(require("io-ts"));
9
29
  const cli_progress_1 = __importDefault(require("cli-progress"));
30
+ const type_utils_1 = require("@transcend-io/type-utils");
10
31
  const makeGraphQLRequest_1 = require("./makeGraphQLRequest");
32
+ const privacy_types_1 = require("@transcend-io/privacy-types");
11
33
  const logger_1 = require("../logger");
34
+ const internationalization_1 = require("@transcend-io/internationalization");
35
+ exports.PrivacyRequest = t.type({
36
+ /** Request ID */
37
+ id: t.string,
38
+ /** Time request was made */
39
+ createdAt: t.string,
40
+ /** Email of request */
41
+ email: t.string,
42
+ /** The type of request */
43
+ type: (0, type_utils_1.valuesOf)(privacy_types_1.RequestAction),
44
+ /** Link to request in Transcend dashboard */
45
+ link: t.string,
46
+ /** Whether request is in silent mode */
47
+ isSilent: t.boolean,
48
+ /** Where request was made */
49
+ origin: (0, type_utils_1.valuesOf)(privacy_types_1.RequestOrigin),
50
+ /** Whether request is a test request */
51
+ isTest: t.boolean,
52
+ /** The core identifier of the request */
53
+ coreIdentifier: t.string,
54
+ /** Request details */
55
+ details: t.string,
56
+ /** Locale of request */
57
+ locale: (0, type_utils_1.valuesOf)(internationalization_1.LanguageKey),
58
+ /** Status of request */
59
+ status: (0, type_utils_1.valuesOf)(privacy_types_1.RequestStatus),
60
+ /** Type of data subject */
61
+ subjectType: t.string,
62
+ /** Country of request */
63
+ country: t.union([t.null, (0, type_utils_1.valuesOf)(privacy_types_1.IsoCountryCode)]),
64
+ /** Subdivision of request */
65
+ countrySubDivision: t.union([t.null, (0, type_utils_1.valuesOf)(privacy_types_1.IsoCountrySubdivisionCode)]),
66
+ /** Request attributes */
67
+ attributeValues: t.array(t.type({
68
+ id: t.string,
69
+ attributeKey: t.type({ name: t.string, id: t.string }),
70
+ name: t.string,
71
+ })),
72
+ });
12
73
  const PAGE_SIZE = 50;
13
74
  /**
14
75
  * Fetch all requests matching a set of filters
@@ -17,7 +78,7 @@ const PAGE_SIZE = 50;
17
78
  * @param options - Filter options
18
79
  * @returns List of requests
19
80
  */
20
- async function fetchAllRequests(client, { actions, statuses, }) {
81
+ async function fetchAllRequests(client, { actions = [], statuses = [], createdAtBefore, createdAtAfter, showTests, } = {}) {
21
82
  // create a new progress bar instance and use shades_classic theme
22
83
  const t0 = new Date().getTime();
23
84
  const progressBar = new cli_progress_1.default.SingleBar({}, cli_progress_1.default.Presets.shades_classic);
@@ -32,8 +93,17 @@ async function fetchAllRequests(client, { actions, statuses, }) {
32
93
  } = await (0, makeGraphQLRequest_1.makeGraphQLRequest)(client, gqls_1.REQUESTS, {
33
94
  first: PAGE_SIZE,
34
95
  offset,
35
- actions,
36
- statuses,
96
+ filterBy: {
97
+ type: actions.length > 0 ? actions : undefined,
98
+ status: statuses.length > 0 ? statuses : undefined,
99
+ isTest: showTests,
100
+ createdAtBefore: createdAtBefore
101
+ ? createdAtBefore.toISOString()
102
+ : undefined,
103
+ createdAtAfter: createdAtAfter
104
+ ? createdAtAfter.toISOString()
105
+ : undefined,
106
+ },
37
107
  });
38
108
  if (offset === 0 && totalCount > PAGE_SIZE) {
39
109
  logger_1.logger.info(colors_1.default.magenta(`Fetching ${totalCount} requests`));
@@ -1 +1 @@
1
- {"version":3,"file":"fetchAllRequests.js","sourceRoot":"","sources":["../../src/graphql/fetchAllRequests.ts"],"names":[],"mappings":";;;;;;AACA,oDAA4B;AAC5B,iCAAkC;AAClC,gEAAuC;AACvC,6DAA0D;AAO1D,sCAAmC;AAgDnC,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;;GAMG;AACI,KAAK,UAAU,gBAAgB,CACpC,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/request.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QAuCpB,CAAC"}
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/graphql/gqls/request.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QAmCpB,CAAC"}
@@ -6,14 +6,9 @@ exports.REQUESTS = (0, graphql_request_1.gql) `
6
6
  query TranscendCliRequests(
7
7
  $first: Int!
8
8
  $offset: Int!
9
- $actions: [RequestAction!]!
10
- $statuses: [RequestStatus!]!
9
+ $filterBy: RequestFiltersInput!
11
10
  ) {
12
- requests(
13
- filterBy: { type: $actions, status: $statuses }
14
- first: $first
15
- offset: $offset
16
- ) {
11
+ requests(filterBy: $filterBy, first: $first, offset: $offset) {
17
12
  nodes {
18
13
  id
19
14
  createdAt
@@ -23,6 +18,7 @@ exports.REQUESTS = (0, graphql_request_1.gql) `
23
18
  details
24
19
  isTest
25
20
  locale
21
+ origin
26
22
  isSilent
27
23
  coreIdentifier
28
24
  type
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/graphql/gqls/request.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC1B,CAAC"}
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/graphql/gqls/request.ts"],"names":[],"mappings":";;;AAAA,qDAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC1B,CAAC"}
@@ -17,4 +17,5 @@ export * from './uploadPrivacyRequestsFromCsv';
17
17
  export * from './bulkRestartRequests';
18
18
  export * from './restartPrivacyRequest';
19
19
  export * from './retryRequestDataSilos';
20
+ export * from './pullRequestsToCsv';
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,WAAW,CAAC;AAC1B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,WAAW,CAAC;AAC1B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
@@ -29,4 +29,5 @@ __exportStar(require("./uploadPrivacyRequestsFromCsv"), exports);
29
29
  __exportStar(require("./bulkRestartRequests"), exports);
30
30
  __exportStar(require("./restartPrivacyRequest"), exports);
31
31
  __exportStar(require("./retryRequestDataSilos"), exports);
32
+ __exportStar(require("./pullRequestsToCsv"), exports);
32
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAoC;AACpC,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,8DAA4C;AAC5C,4CAA0B;AAC1B,6DAA2C;AAC3C,+CAA6B;AAC7B,uDAAqC;AACrC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,4DAA0C;AAC1C,2DAAyC;AACzC,uDAAqC;AACrC,iEAA+C;AAC/C,wDAAsC;AACtC,0DAAwC;AACxC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAoC;AACpC,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,8DAA4C;AAC5C,4CAA0B;AAC1B,6DAA2C;AAC3C,+CAA6B;AAC7B,uDAAqC;AACrC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,4DAA0C;AAC1C,2DAAyC;AACzC,uDAAqC;AACrC,iEAA+C;AAC/C,wDAAsC;AACtC,0DAAwC;AACxC,0DAAwC;AACxC,sDAAoC"}
@@ -0,0 +1,32 @@
1
+ import { RequestIdentifier, PrivacyRequest } from '../graphql';
2
+ import { RequestAction, RequestStatus } from '@transcend-io/privacy-types';
3
+ export interface ExportedPrivacyRequest extends PrivacyRequest {
4
+ /** Request identifiers */
5
+ requestIdentifiers: RequestIdentifier[];
6
+ }
7
+ /**
8
+ * Pull the set of cron job requests to CSV
9
+ *
10
+ * @param options - Options
11
+ */
12
+ export declare function pullRequestsToCsv({ file, auth, actions, statuses, pageLimit, transcendUrl, createdAtBefore, createdAtAfter, showTests, }: {
13
+ /** CSV file path */
14
+ file: string;
15
+ /** Transcend API key authentication */
16
+ auth: string;
17
+ /** API URL for Transcend backend */
18
+ transcendUrl?: string;
19
+ /** Statuses to filter on */
20
+ statuses?: RequestStatus[];
21
+ /** The request action to fetch */
22
+ actions?: RequestAction[];
23
+ /** Page limit when fetching requests */
24
+ pageLimit?: number;
25
+ /** Filter for requests created before this date */
26
+ createdAtBefore?: Date;
27
+ /** Filter for requests created after this date */
28
+ createdAtAfter?: Date;
29
+ /** Return test requests */
30
+ showTests?: boolean;
31
+ }): Promise<ExportedPrivacyRequest[]>;
32
+ //# sourceMappingURL=pullRequestsToCsv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pullRequestsToCsv.d.ts","sourceRoot":"","sources":["../../src/requests/pullRequestsToCsv.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EACjB,cAAc,EAEf,MAAM,YAAY,CAAC;AAKpB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI3E,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,0BAA0B;IAC1B,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,IAAI,EACJ,IAAI,EACJ,OAAY,EACZ,QAAa,EACb,SAAe,EACf,YAAyC,EACzC,eAAe,EACf,cAAc,EACd,SAAS,GACV,EAAE;IACD,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,kCAAkC;IAClC,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,kDAAkD;IAClD,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAsHpC"}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.pullRequestsToCsv = void 0;
7
+ const graphql_1 = require("../graphql");
8
+ const colors_1 = __importDefault(require("colors"));
9
+ const bluebird_1 = require("bluebird");
10
+ const uniq_1 = __importDefault(require("lodash/uniq"));
11
+ const groupBy_1 = __importDefault(require("lodash/groupBy"));
12
+ const writeCsv_1 = require("../cron/writeCsv");
13
+ const logger_1 = require("../logger");
14
+ /**
15
+ * Pull the set of cron job requests to CSV
16
+ *
17
+ * @param options - Options
18
+ */
19
+ async function pullRequestsToCsv({ file, auth, actions = [], statuses = [], pageLimit = 100, transcendUrl = 'https://api.transcend.io', createdAtBefore, createdAtAfter, showTests, }) {
20
+ // Find all requests made before createdAt that are in a removing data state
21
+ const client = (0, graphql_1.buildTranscendGraphQLClient)(transcendUrl, auth);
22
+ // Log date range
23
+ let dateRange = '';
24
+ if (createdAtBefore) {
25
+ dateRange += ` before ${createdAtBefore.toISOString()}`;
26
+ }
27
+ if (createdAtAfter) {
28
+ dateRange += `${dateRange ? ', and' : ''} after ${createdAtAfter.toISOString()}`;
29
+ }
30
+ // Log out
31
+ logger_1.logger.info(colors_1.default.magenta(`${actions.length > 0
32
+ ? `Pulling requests of type "${actions.join(',')}"`
33
+ : 'Pulling all requests'}${dateRange}`));
34
+ // fetch the requests
35
+ const requests = await (0, graphql_1.fetchAllRequests)(client, {
36
+ actions,
37
+ statuses,
38
+ createdAtBefore,
39
+ createdAtAfter,
40
+ showTests,
41
+ });
42
+ // Fetch the request identifiers for those requests
43
+ const requestsWithRequestIdentifiers = await (0, bluebird_1.map)(requests, async (request) => {
44
+ const requestIdentifiers = await (0, graphql_1.fetchAllRequestIdentifiers)(client, {
45
+ requestId: request.id,
46
+ });
47
+ return {
48
+ ...request,
49
+ requestIdentifiers,
50
+ };
51
+ }, {
52
+ concurrency: pageLimit,
53
+ });
54
+ logger_1.logger.info(colors_1.default.magenta(`Pulled ${requestsWithRequestIdentifiers.length} requests`));
55
+ // Write out to CSV
56
+ const data = requestsWithRequestIdentifiers.map(({ attributeValues, requestIdentifiers, id, email, type, status, subjectType, details, createdAt, country, locale, origin, countrySubDivision, isSilent, isTest, coreIdentifier, ...request }) => ({
57
+ 'Request ID': id,
58
+ 'Created At': createdAt,
59
+ Email: email,
60
+ 'Core Identifier': coreIdentifier,
61
+ 'Request Type': type,
62
+ 'Data Subject Type': subjectType,
63
+ Status: status,
64
+ Country: country,
65
+ 'Country Sub Division': countrySubDivision,
66
+ Details: details,
67
+ Origin: origin,
68
+ 'Silent Mode': isSilent,
69
+ 'Is Test Request': isTest,
70
+ Language: locale,
71
+ ...request,
72
+ ...Object.entries((0, groupBy_1.default)(attributeValues, 'attributeKey.name')).reduce((acc, [name, values]) => Object.assign(acc, {
73
+ [name]: values.map(({ name }) => name).join(','),
74
+ }), {}),
75
+ ...Object.entries((0, groupBy_1.default)(requestIdentifiers, 'name')).reduce((acc, [name, values]) => Object.assign(acc, {
76
+ [name]: values.map(({ value }) => value).join(','),
77
+ }), {}),
78
+ }));
79
+ const headers = (0, uniq_1.default)(data.map((d) => Object.keys(d)).flat());
80
+ (0, writeCsv_1.writeCsv)(file, data, headers);
81
+ logger_1.logger.info(colors_1.default.green(`Successfully wrote ${requests.length} requests to file "${file}"`));
82
+ return requestsWithRequestIdentifiers;
83
+ }
84
+ exports.pullRequestsToCsv = pullRequestsToCsv;
85
+ //# sourceMappingURL=pullRequestsToCsv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pullRequestsToCsv.js","sourceRoot":"","sources":["../../src/requests/pullRequestsToCsv.ts"],"names":[],"mappings":";;;;;;AAAA,wCAMoB;AACpB,oDAA4B;AAC5B,uCAA+B;AAC/B,uDAA+B;AAC/B,6DAAqC;AAErC,+CAA4C;AAC5C,sCAAmC;AAOnC;;;;GAIG;AACI,KAAK,UAAU,iBAAiB,CAAC,EACtC,IAAI,EACJ,IAAI,EACJ,OAAO,GAAG,EAAE,EACZ,QAAQ,GAAG,EAAE,EACb,SAAS,GAAG,GAAG,EACf,YAAY,GAAG,0BAA0B,EACzC,eAAe,EACf,cAAc,EACd,SAAS,GAoBV;IACC,4EAA4E;IAC5E,MAAM,MAAM,GAAG,IAAA,qCAA2B,EAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAE/D,iBAAiB;IACjB,IAAI,SAAS,GAAG,EAAE,CAAC;IACnB,IAAI,eAAe,EAAE;QACnB,SAAS,IAAI,WAAW,eAAe,CAAC,WAAW,EAAE,EAAE,CAAC;KACzD;IACD,IAAI,cAAc,EAAE;QAClB,SAAS,IAAI,GACX,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EACxB,UAAU,cAAc,CAAC,WAAW,EAAE,EAAE,CAAC;KAC1C;IAED,UAAU;IACV,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,OAAO,CACZ,GACE,OAAO,CAAC,MAAM,GAAG,CAAC;QAChB,CAAC,CAAC,6BAA6B,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG;QACnD,CAAC,CAAC,sBACN,GAAG,SAAS,EAAE,CACf,CACF,CAAC;IAEF,qBAAqB;IACrB,MAAM,QAAQ,GAAG,MAAM,IAAA,0BAAgB,EAAC,MAAM,EAAE;QAC9C,OAAO;QACP,QAAQ;QACR,eAAe;QACf,cAAc;QACd,SAAS;KACV,CAAC,CAAC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