airbyte-faros-destination 0.15.0 → 0.15.2
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.
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AirbyteRecord } from 'faros-airbyte-cdk';
|
|
2
|
+
import { Converter, DestinationModel, DestinationRecord, StreamContext } from '../converter';
|
|
3
|
+
/**
|
|
4
|
+
* This converter is identical to FarosFeed converter.
|
|
5
|
+
* It is just a wrapper to use the appropriate source/stream name.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MockData extends Converter {
|
|
8
|
+
source: string;
|
|
9
|
+
private alias;
|
|
10
|
+
readonly destinationModels: ReadonlyArray<DestinationModel>;
|
|
11
|
+
id(): any;
|
|
12
|
+
convert(record: AirbyteRecord, ctx: StreamContext): Promise<ReadonlyArray<DestinationRecord>>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockData = void 0;
|
|
4
|
+
const converter_1 = require("../converter");
|
|
5
|
+
const faros_feed_1 = require("../faros-feeds/faros_feed");
|
|
6
|
+
/**
|
|
7
|
+
* This converter is identical to FarosFeed converter.
|
|
8
|
+
* It is just a wrapper to use the appropriate source/stream name.
|
|
9
|
+
*/
|
|
10
|
+
class MockData extends converter_1.Converter {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.source = 'Mock-Data';
|
|
14
|
+
this.alias = new faros_feed_1.FarosFeed();
|
|
15
|
+
this.destinationModels = this.alias.destinationModels;
|
|
16
|
+
}
|
|
17
|
+
id() {
|
|
18
|
+
return this.alias.id();
|
|
19
|
+
}
|
|
20
|
+
async convert(record, ctx) {
|
|
21
|
+
return this.alias.convert(record, ctx);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.MockData = MockData;
|
|
25
|
+
//# sourceMappingURL=mock_data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock_data.js","sourceRoot":"","sources":["../../../src/converters/mock-data/mock_data.ts"],"names":[],"mappings":";;;AAEA,4CAKsB;AACtB,0DAAyE;AAEzE;;;GAGG;AACH,MAAa,QAAS,SAAQ,qBAAS;IAAvC;;QACE,WAAM,GAAG,WAAW,CAAC;QACb,UAAK,GAAG,IAAI,sBAAiB,EAAE,CAAC;QAE/B,sBAAiB,GACxB,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC;IAYjC,CAAC;IAVC,EAAE;QACA,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,OAAO,CACX,MAAqB,EACrB,GAAkB;QAElB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,CAAC;CACF;AAjBD,4BAiBC"}
|