airbyte-faros-destination 0.9.58 → 0.9.60

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.
@@ -5,31 +5,19 @@ const lodash_1 = require("lodash");
5
5
  const common_1 = require("./common");
6
6
  class FarosSprintReports extends common_1.JiraConverter {
7
7
  get destinationModels() {
8
- return ['tms_Sprint', 'tms_SprintHistory'];
8
+ return ['tms_SprintHistory'];
9
9
  }
10
10
  async convert(record, ctx) {
11
11
  const sprintReport = record.record.data;
12
- const uid = (0, lodash_1.toString)(sprintReport.id);
13
- const results = [
14
- {
15
- model: 'tms_Sprint',
16
- record: {
17
- uid,
18
- completedPoints: sprintReport.completedPoints,
19
- completedOutsideSprintPoints: sprintReport.completedInAnotherSprintPoints,
20
- notCompletedPoints: sprintReport.notCompletedPoints,
21
- removedPoints: sprintReport.puntedPoints,
22
- plannedPoints: sprintReport.plannedPoints,
23
- source: this.streamName.source,
24
- },
25
- },
26
- ];
12
+ const uid = (0, lodash_1.toString)(sprintReport.sprintId);
13
+ const results = [];
14
+ const source = this.streamName.source;
27
15
  for (const issue of sprintReport.issues || []) {
28
16
  results.push({
29
17
  model: 'tms_SprintHistory',
30
18
  record: {
31
- sprint: { uid, source: this.streamName.source },
32
- issue: { uid: issue.key, source: this.streamName.source },
19
+ sprint: { uid, source },
20
+ task: { uid: issue.key, source },
33
21
  points: issue.points,
34
22
  status: { category: issue.status },
35
23
  addedDuringSprint: issue.addedDuringSprint,
@@ -1 +1 @@
1
- {"version":3,"file":"faros_sprint_reports.js","sourceRoot":"","sources":["../../../src/converters/jira/faros_sprint_reports.ts"],"names":[],"mappings":";;;AACA,mCAAgC;AAGhC,qCAAuC;AAEvC,MAAa,kBAAmB,SAAQ,sBAAa;IACnD,IAAI,iBAAiB;QACnB,OAAO,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC;IAC7C,CAAC;IACD,KAAK,CAAC,OAAO,CACX,MAAqB,EACrB,GAAkB;QAElB,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;QACxC,MAAM,GAAG,GAAG,IAAA,iBAAQ,EAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QACtC,MAAM,OAAO,GAAwB;YACnC;gBACE,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE;oBACN,GAAG;oBACH,eAAe,EAAE,YAAY,CAAC,eAAe;oBAC7C,4BAA4B,EAC1B,YAAY,CAAC,8BAA8B;oBAC7C,kBAAkB,EAAE,YAAY,CAAC,kBAAkB;oBACnD,aAAa,EAAE,YAAY,CAAC,YAAY;oBACxC,aAAa,EAAE,YAAY,CAAC,aAAa;oBACzC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM;iBAC/B;aACF;SACF,CAAC;QACF,KAAK,MAAM,KAAK,IAAI,YAAY,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC;YAC9C,OAAO,CAAC,IAAI,CAAC;gBACX,KAAK,EAAE,mBAAmB;gBAC1B,MAAM,EAAE;oBACN,MAAM,EAAE,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,EAAC;oBAC7C,KAAK,EAAE,EAAC,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,EAAC;oBACvD,MAAM,EAAE,KAAK,CAAC,MAAM;oBACpB,MAAM,EAAE,EAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAC;oBAChC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;iBAC3C;aACF,CAAC,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAvCD,gDAuCC"}
1
+ {"version":3,"file":"faros_sprint_reports.js","sourceRoot":"","sources":["../../../src/converters/jira/faros_sprint_reports.ts"],"names":[],"mappings":";;;AAEA,mCAAgC;AAGhC,qCAAuC;AAEvC,MAAa,kBAAmB,SAAQ,sBAAa;IACnD,IAAI,iBAAiB;QACnB,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK,CAAC,OAAO,CACX,MAAqB,EACrB,GAAkB;QAElB,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAoB,CAAC;QACxD,MAAM,GAAG,GAAG,IAAA,iBAAQ,EAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAwB,EAAE,CAAC;QACxC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QACtC,KAAK,MAAM,KAAK,IAAI,YAAY,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC;YAC9C,OAAO,CAAC,IAAI,CAAC;gBACX,KAAK,EAAE,mBAAmB;gBAC1B,MAAM,EAAE;oBACN,MAAM,EAAE,EAAC,GAAG,EAAE,MAAM,EAAC;oBACrB,IAAI,EAAE,EAAC,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,MAAM,EAAC;oBAC9B,MAAM,EAAE,KAAK,CAAC,MAAM;oBACpB,MAAM,EAAE,EAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAC;oBAChC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;iBAC3C;aACF,CAAC,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AA1BD,gDA0BC"}