ffc-pay-etl-framework 1.1.6 → 1.1.7-alpha.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.
- package/dist/cjs/database_connections/index.js +3 -1
- package/dist/cjs/database_connections/providedConnection.js +29 -0
- package/dist/cjs/types/database_connections/index.d.ts +2 -1
- package/dist/cjs/types/database_connections/providedConnection.d.ts +15 -0
- package/dist/cjs/types/database_connections/providedConnection.d.ts.map +1 -0
- package/dist/esm/database_connections/index.js +3 -1
- package/dist/esm/database_connections/providedConnection.js +20 -0
- package/dist/esm/types/database_connections/index.d.ts +2 -1
- package/dist/esm/types/database_connections/providedConnection.d.ts +15 -0
- package/dist/esm/types/database_connections/providedConnection.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param {Object} options
|
|
13
|
+
* @param {Object} options.connectionname
|
|
14
|
+
* @param {Object} options.sequelize
|
|
15
|
+
* @returns Connection
|
|
16
|
+
*/
|
|
17
|
+
function ProvidedConnection(options) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const connectionname = options.connectionname;
|
|
20
|
+
const sequelize = options.sequelize;
|
|
21
|
+
return {
|
|
22
|
+
name: connectionname,
|
|
23
|
+
db: sequelize
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
module.exports = {
|
|
28
|
+
ProvidedConnection
|
|
29
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { PostgresDatabaseConnection };
|
|
2
1
|
import { PostgresDatabaseConnection } from "./postgresDatabaseConnection";
|
|
2
|
+
import { ProvidedConnection } from "./providedConnection";
|
|
3
|
+
export { PostgresDatabaseConnection, ProvidedConnection };
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {Object} options
|
|
4
|
+
* @param {Object} options.connectionname
|
|
5
|
+
* @param {Object} options.sequelize
|
|
6
|
+
* @returns Connection
|
|
7
|
+
*/
|
|
8
|
+
export function ProvidedConnection(options: {
|
|
9
|
+
connectionname: any;
|
|
10
|
+
sequelize: any;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
name: any;
|
|
13
|
+
db: any;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=providedConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providedConnection.d.ts","sourceRoot":"","sources":["../../../../src/database_connections/providedConnection.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH;IAJ2B,cAAc;IACd,SAAS;;;;GAUnC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const { PostgresDatabaseConnection } = require("./postgresDatabaseConnection");
|
|
4
|
+
const { ProvidedConnection } = require("./providedConnection");
|
|
4
5
|
module.exports = {
|
|
5
|
-
PostgresDatabaseConnection
|
|
6
|
+
PostgresDatabaseConnection,
|
|
7
|
+
ProvidedConnection
|
|
6
8
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} options
|
|
6
|
+
* @param {Object} options.connectionname
|
|
7
|
+
* @param {Object} options.sequelize
|
|
8
|
+
* @returns Connection
|
|
9
|
+
*/
|
|
10
|
+
async function ProvidedConnection(options) {
|
|
11
|
+
const connectionname = options.connectionname;
|
|
12
|
+
const sequelize = options.sequelize;
|
|
13
|
+
return {
|
|
14
|
+
name: connectionname,
|
|
15
|
+
db: sequelize
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
module.exports = {
|
|
19
|
+
ProvidedConnection
|
|
20
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { PostgresDatabaseConnection };
|
|
2
1
|
import { PostgresDatabaseConnection } from "./postgresDatabaseConnection";
|
|
2
|
+
import { ProvidedConnection } from "./providedConnection";
|
|
3
|
+
export { PostgresDatabaseConnection, ProvidedConnection };
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {Object} options
|
|
4
|
+
* @param {Object} options.connectionname
|
|
5
|
+
* @param {Object} options.sequelize
|
|
6
|
+
* @returns Connection
|
|
7
|
+
*/
|
|
8
|
+
export function ProvidedConnection(options: {
|
|
9
|
+
connectionname: any;
|
|
10
|
+
sequelize: any;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
name: any;
|
|
13
|
+
db: any;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=providedConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providedConnection.d.ts","sourceRoot":"","sources":["../../../../src/database_connections/providedConnection.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH;IAJ2B,cAAc;IACd,SAAS;;;;GAUnC"}
|