airbyte-faros-destination 0.6.45 → 0.6.46
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/lib/converters/github/commits.js +5 -3
- package/lib/converters/github/commits.js.map +1 -1
- package/lib/converters/github/pull_request_commits.js +6 -4
- package/lib/converters/github/pull_request_commits.js.map +1 -1
- package/lib/converters/github/releases.js +4 -1
- package/lib/converters/github/releases.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/resources/source-specific-configs/bitbucket.json +1 -1
- package/resources/source-specific-configs/datadog.json +1 -1
- package/resources/source-specific-configs/firehydrant.json +1 -1
- package/resources/source-specific-configs/notion.json +26 -26
- package/resources/source-specific-configs/opsgenie.json +1 -1
- package/resources/source-specific-configs/pagerduty.json +1 -1
- package/resources/source-specific-configs/servicenow.json +1 -1
- package/resources/source-specific-configs/squadcast.json +1 -1
- package/resources/source-specific-configs/statuspage.json +1 -1
- package/resources/source-specific-configs/victorops.json +1 -1
|
@@ -12,14 +12,16 @@ class Commits extends common_1.GitHubConverter {
|
|
|
12
12
|
];
|
|
13
13
|
}
|
|
14
14
|
async convert(record) {
|
|
15
|
-
var _a;
|
|
15
|
+
var _a, _b;
|
|
16
16
|
const source = this.streamName.source;
|
|
17
17
|
const commit = record.record.data;
|
|
18
18
|
const res = [];
|
|
19
19
|
const repository = common_1.GitHubCommon.parseRepositoryKey(commit.repository, source);
|
|
20
20
|
if (!repository)
|
|
21
21
|
return res;
|
|
22
|
-
const author = commit.author
|
|
22
|
+
const author = ((_a = commit.author) === null || _a === void 0 ? void 0 : _a.login)
|
|
23
|
+
? { uid: commit.author.login, source }
|
|
24
|
+
: null;
|
|
23
25
|
res.push({
|
|
24
26
|
model: 'vcs_Commit',
|
|
25
27
|
record: {
|
|
@@ -28,7 +30,7 @@ class Commits extends common_1.GitHubConverter {
|
|
|
28
30
|
message: commit.commit.message,
|
|
29
31
|
author,
|
|
30
32
|
htmlUrl: commit.html_url,
|
|
31
|
-
createdAt: faros_js_client_1.Utils.toDate((
|
|
33
|
+
createdAt: faros_js_client_1.Utils.toDate((_b = commit.commit.author) === null || _b === void 0 ? void 0 : _b.date),
|
|
32
34
|
repository,
|
|
33
35
|
source,
|
|
34
36
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commits.js","sourceRoot":"","sources":["../../../src/converters/github/commits.ts"],"names":[],"mappings":";;;AACA,qDAAsC;AAGtC,qCAAuD;AAEvD,MAAa,OAAQ,SAAQ,wBAAe;IAA5C;;QACW,sBAAiB,GAAoC;YAC5D,6BAA6B;YAC7B,YAAY;SACb,CAAC;
|
|
1
|
+
{"version":3,"file":"commits.js","sourceRoot":"","sources":["../../../src/converters/github/commits.ts"],"names":[],"mappings":";;;AACA,qDAAsC;AAGtC,qCAAuD;AAEvD,MAAa,OAAQ,SAAQ,wBAAe;IAA5C;;QACW,sBAAiB,GAAoC;YAC5D,6BAA6B;YAC7B,YAAY;SACb,CAAC;IA8CJ,CAAC;IA5CC,KAAK,CAAC,OAAO,CACX,MAAqB;;QAErB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QACtC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;QAClC,MAAM,GAAG,GAAwB,EAAE,CAAC;QAEpC,MAAM,UAAU,GAAG,qBAAY,CAAC,kBAAkB,CAChD,MAAM,CAAC,UAAU,EACjB,MAAM,CACP,CAAC;QAEF,IAAI,CAAC,UAAU;YAAE,OAAO,GAAG,CAAC;QAE5B,MAAM,MAAM,GAAG,CAAA,MAAA,MAAM,CAAC,MAAM,0CAAE,KAAK;YACjC,CAAC,CAAC,EAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAC;YACpC,CAAC,CAAC,IAAI,CAAC;QAET,GAAG,CAAC,IAAI,CAAC;YACP,KAAK,EAAE,YAAY;YACnB,MAAM,EAAE;gBACN,GAAG,EAAE,MAAM,CAAC,GAAG;gBACf,GAAG,EAAE,MAAM,CAAC,GAAG;gBACf,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO;gBAC9B,MAAM;gBACN,OAAO,EAAE,MAAM,CAAC,QAAQ;gBACxB,SAAS,EAAE,uBAAK,CAAC,MAAM,CAAC,MAAA,MAAM,CAAC,MAAM,CAAC,MAAM,0CAAE,IAAI,CAAC;gBACnD,UAAU;gBACV,MAAM;aACP;SACF,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,MAAM,EAAE;YACjB,GAAG,CAAC,IAAI,CAAC;gBACP,KAAK,EAAE,6BAA6B;gBACpC,MAAM,EAAE;oBACN,MAAM,EAAE,EAAC,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,UAAU,EAAC;oBACtD,MAAM,EAAE,EAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,EAAC;iBAC9D;aACF,CAAC,CAAC;SACJ;QAED,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAlDD,0BAkDC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PullRequestCommits = void 0;
|
|
4
|
+
const faros_js_client_1 = require("faros-js-client");
|
|
4
5
|
const common_1 = require("./common");
|
|
5
6
|
const common_2 = require("./common");
|
|
6
|
-
const faros_js_client_1 = require("faros-js-client");
|
|
7
7
|
class PullRequestCommits extends common_2.GitHubConverter {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
@@ -12,19 +12,21 @@ class PullRequestCommits extends common_2.GitHubConverter {
|
|
|
12
12
|
];
|
|
13
13
|
}
|
|
14
14
|
async convert(record) {
|
|
15
|
-
var _a;
|
|
15
|
+
var _a, _b;
|
|
16
16
|
const source = this.streamName.source;
|
|
17
17
|
const prCommit = record.record.data;
|
|
18
18
|
const res = [];
|
|
19
19
|
const repository = common_1.GitHubCommon.parseRepositoryKey(prCommit.repository, source);
|
|
20
20
|
if (!repository)
|
|
21
21
|
return [];
|
|
22
|
-
const author = prCommit.author
|
|
22
|
+
const author = ((_a = prCommit.author) === null || _a === void 0 ? void 0 : _a.login)
|
|
23
|
+
? { uid: prCommit.author.login, source }
|
|
24
|
+
: null;
|
|
23
25
|
const commit = {
|
|
24
26
|
uid: prCommit.sha,
|
|
25
27
|
sha: prCommit.sha,
|
|
26
28
|
author,
|
|
27
|
-
createdAt: faros_js_client_1.Utils.toDate((
|
|
29
|
+
createdAt: faros_js_client_1.Utils.toDate((_b = prCommit.commit.author) === null || _b === void 0 ? void 0 : _b.date),
|
|
28
30
|
repository,
|
|
29
31
|
};
|
|
30
32
|
const pullRequest = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pull_request_commits.js","sourceRoot":"","sources":["../../../src/converters/github/pull_request_commits.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"pull_request_commits.js","sourceRoot":"","sources":["../../../src/converters/github/pull_request_commits.ts"],"names":[],"mappings":";;;AACA,qDAAsC;AAItC,qCAAsC;AACtC,qCAAyC;AAEzC,MAAa,kBAAmB,SAAQ,wBAAe;IAAvD;;QACW,sBAAiB,GAAoC;YAC5D,uBAAuB;SACxB,CAAC;IA4CJ,CAAC;IA1CC,KAAK,CAAC,OAAO,CACX,MAAqB;;QAErB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QACtC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;QACpC,MAAM,GAAG,GAAwB,EAAE,CAAC;QAEpC,MAAM,UAAU,GAAY,qBAAY,CAAC,kBAAkB,CACzD,QAAQ,CAAC,UAAU,EACnB,MAAM,CACP,CAAC;QAEF,IAAI,CAAC,UAAU;YAAE,OAAO,EAAE,CAAC;QAE3B,MAAM,MAAM,GAAG,CAAA,MAAA,QAAQ,CAAC,MAAM,0CAAE,KAAK;YACnC,CAAC,CAAC,EAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAC;YACtC,CAAC,CAAC,IAAI,CAAC;QAET,MAAM,MAAM,GAAG;YACb,GAAG,EAAE,QAAQ,CAAC,GAAG;YACjB,GAAG,EAAE,QAAQ,CAAC,GAAG;YACjB,MAAM;YACN,SAAS,EAAE,uBAAK,CAAC,MAAM,CAAC,MAAA,QAAQ,CAAC,MAAM,CAAC,MAAM,0CAAE,IAAI,CAAC;YACrD,UAAU;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAClB,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,QAAQ,EAAE;YACpC,UAAU;YACV,MAAM,EAAE,QAAQ,CAAC,WAAW;SAC7B,CAAC;QAEF,GAAG,CAAC,IAAI,CAAC;YACP,KAAK,EAAE,uBAAuB;YAC9B,MAAM,EAAE;gBACN,WAAW;gBACX,MAAM;aACP;SACF,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AA/CD,gDA+CC"}
|
|
@@ -12,6 +12,7 @@ class Releases extends common_1.GitHubConverter {
|
|
|
12
12
|
];
|
|
13
13
|
}
|
|
14
14
|
async convert(record) {
|
|
15
|
+
var _a;
|
|
15
16
|
const source = this.streamName.source;
|
|
16
17
|
const release = record.record.data;
|
|
17
18
|
const res = [];
|
|
@@ -19,7 +20,9 @@ class Releases extends common_1.GitHubConverter {
|
|
|
19
20
|
const repository = common_1.GitHubCommon.parseRepositoryKey(release.repository, source);
|
|
20
21
|
if (!repository)
|
|
21
22
|
return res;
|
|
22
|
-
const author = release.author
|
|
23
|
+
const author = ((_a = release.author) === null || _a === void 0 ? void 0 : _a.login)
|
|
24
|
+
? { uid: release.author.login, source }
|
|
25
|
+
: null;
|
|
23
26
|
res.push({
|
|
24
27
|
model: 'cicd_Release',
|
|
25
28
|
record: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"releases.js","sourceRoot":"","sources":["../../../src/converters/github/releases.ts"],"names":[],"mappings":";;;AACA,qDAAsC;AAGtC,qCAAuD;AAEvD,MAAa,QAAS,SAAQ,wBAAe;IAA7C;;QACW,sBAAiB,GAAoC;YAC5D,cAAc;YACd,4BAA4B;SAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"releases.js","sourceRoot":"","sources":["../../../src/converters/github/releases.ts"],"names":[],"mappings":";;;AACA,qDAAsC;AAGtC,qCAAuD;AAEvD,MAAa,QAAS,SAAQ,wBAAe;IAA7C;;QACW,sBAAiB,GAAoC;YAC5D,cAAc;YACd,4BAA4B;SAC7B,CAAC;IAiDJ,CAAC;IA/CC,KAAK,CAAC,OAAO,CACX,MAAqB;;QAErB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QACtC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;QACnC,MAAM,GAAG,GAAwB,EAAE,CAAC;QACpC,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,EAAE,EAAE,CAAC;QAC5B,MAAM,UAAU,GAAG,qBAAY,CAAC,kBAAkB,CAChD,OAAO,CAAC,UAAU,EAClB,MAAM,CACP,CAAC;QAEF,IAAI,CAAC,UAAU;YAAE,OAAO,GAAG,CAAC;QAE5B,MAAM,MAAM,GAAG,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,KAAK;YAClC,CAAC,CAAC,EAAC,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAC;YACrC,CAAC,CAAC,IAAI,CAAC;QAET,GAAG,CAAC,IAAI,CAAC;YACP,KAAK,EAAE,cAAc;YACrB,MAAM,EAAE;gBACN,GAAG;gBACH,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,OAAO,EAAE,OAAO,CAAC,QAAQ;gBACzB,KAAK,EAAE,OAAO,CAAC,IAAI;gBACnB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,SAAS,EAAE,uBAAK,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;gBAC3C,WAAW,EAAE,uBAAK,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;gBAC/C,MAAM;gBACN,MAAM;aACP;SACF,CAAC,CAAC;QAEH,GAAG,CAAC,IAAI,CAAC;YACP,KAAK,EAAE,4BAA4B;YACnC,MAAM,EAAE;gBACN,OAAO,EAAE,EAAC,GAAG,EAAE,MAAM,EAAC;gBACtB,GAAG,EAAE;oBACH,UAAU;oBACV,IAAI,EAAE,OAAO,CAAC,QAAQ;iBACvB;aACF;SACF,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AArDD,4BAqDC"}
|