@felloh-org/lambda-wrapper 1.0.31 → 1.0.34
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.
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _typeorm = require("typeorm");
|
|
9
9
|
|
|
10
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
11
11
|
|
|
12
12
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
13
|
|
|
@@ -38,11 +38,14 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
38
38
|
type: "varchar",
|
|
39
39
|
length: 50
|
|
40
40
|
}), _dec9 = (0, _typeorm.Column)({
|
|
41
|
+
type: "varchar",
|
|
42
|
+
length: 50
|
|
43
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
41
44
|
type: "int",
|
|
42
45
|
nullable: true
|
|
43
|
-
}), _dec10 = (0, _typeorm.Column)({
|
|
44
|
-
type: "timestamp without time zone"
|
|
45
46
|
}), _dec11 = (0, _typeorm.Column)({
|
|
47
|
+
type: "timestamp without time zone"
|
|
48
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
46
49
|
type: "varchar",
|
|
47
50
|
length: 1500
|
|
48
51
|
}), _dec(_class = (_class2 = class Transaction {
|
|
@@ -61,11 +64,13 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
61
64
|
|
|
62
65
|
_initializerDefineProperty(this, "merchant_account_id", _descriptor7, this);
|
|
63
66
|
|
|
64
|
-
_initializerDefineProperty(this, "
|
|
67
|
+
_initializerDefineProperty(this, "test", _descriptor8, this);
|
|
65
68
|
|
|
66
|
-
_initializerDefineProperty(this, "
|
|
69
|
+
_initializerDefineProperty(this, "status", _descriptor9, this);
|
|
67
70
|
|
|
68
|
-
_initializerDefineProperty(this, "
|
|
71
|
+
_initializerDefineProperty(this, "processing_time", _descriptor10, this);
|
|
72
|
+
|
|
73
|
+
_initializerDefineProperty(this, "merchant_name", _descriptor11, this);
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "ndc", [_dec2], {
|
|
@@ -105,19 +110,24 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
105
110
|
enumerable: true,
|
|
106
111
|
writable: true,
|
|
107
112
|
initializer: null
|
|
108
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
113
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "test", [_dec9], {
|
|
114
|
+
configurable: true,
|
|
115
|
+
enumerable: true,
|
|
116
|
+
writable: true,
|
|
117
|
+
initializer: null
|
|
118
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec10], {
|
|
109
119
|
configurable: true,
|
|
110
120
|
enumerable: true,
|
|
111
121
|
writable: true,
|
|
112
122
|
initializer: null
|
|
113
|
-
}),
|
|
123
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "processing_time", [_dec11], {
|
|
114
124
|
configurable: true,
|
|
115
125
|
enumerable: true,
|
|
116
126
|
writable: true,
|
|
117
127
|
initializer: function () {
|
|
118
128
|
return null;
|
|
119
129
|
}
|
|
120
|
-
}),
|
|
130
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "merchant_name", [_dec12], {
|
|
121
131
|
configurable: true,
|
|
122
132
|
enumerable: true,
|
|
123
133
|
writable: true,
|
|
@@ -55,6 +55,16 @@ class Warehouse extends _dependencyAware.default {
|
|
|
55
55
|
|
|
56
56
|
return this.connection;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Check that a connection can be made to the DB
|
|
60
|
+
* @returns {Promise<void>}
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
async status() {
|
|
65
|
+
await this.connect();
|
|
66
|
+
await this.connection.manager.query('SELECT schema_name FROM information_schema.schemata');
|
|
67
|
+
}
|
|
58
68
|
|
|
59
69
|
}
|
|
60
70
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@felloh-org/lambda-wrapper",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"description": "Lambda wrapper for all Felloh Serverless Projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,47 +21,48 @@
|
|
|
21
21
|
"author": "Felloh",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@babel/cli": "^7.
|
|
25
|
-
"@babel/core": "^7.
|
|
26
|
-
"@babel/eslint-parser": "^7.
|
|
27
|
-
"@babel/node": "^7.
|
|
28
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
24
|
+
"@babel/cli": "^7.17.6",
|
|
25
|
+
"@babel/core": "^7.17.9",
|
|
26
|
+
"@babel/eslint-parser": "^7.17.0",
|
|
27
|
+
"@babel/node": "^7.16.8",
|
|
28
|
+
"@babel/plugin-proposal-decorators": "^7.17.9",
|
|
29
29
|
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
30
|
-
"@babel/plugin-syntax-flow": "^7.
|
|
31
|
-
"@babel/plugin-transform-flow-strip-types": "^7.
|
|
32
|
-
"@babel/preset-env": "^7.
|
|
30
|
+
"@babel/plugin-syntax-flow": "^7.16.7",
|
|
31
|
+
"@babel/plugin-transform-flow-strip-types": "^7.16.7",
|
|
32
|
+
"@babel/preset-env": "^7.16.11",
|
|
33
33
|
"@felloh-org/eslint-config": "^1.0.2",
|
|
34
|
-
"@types/jest": "^
|
|
35
|
-
"aws-sdk": "
|
|
34
|
+
"@types/jest": "^27.4.1",
|
|
35
|
+
"aws-sdk": "^2.1111.0",
|
|
36
36
|
"babel-eslint": "^10.1.0",
|
|
37
|
-
"babel-jest": "^
|
|
37
|
+
"babel-jest": "^27.5.1",
|
|
38
38
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
39
39
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
40
|
-
"eslint": "^8.
|
|
40
|
+
"eslint": "^8.13.0",
|
|
41
41
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
42
|
-
"eslint-plugin-import": "^2.
|
|
43
|
-
"eslint-plugin-sonarjs": "^0.
|
|
44
|
-
"eslint-plugin-unicorn": "^
|
|
45
|
-
"jest": "^
|
|
42
|
+
"eslint-plugin-import": "^2.26.0",
|
|
43
|
+
"eslint-plugin-sonarjs": "^0.13.0",
|
|
44
|
+
"eslint-plugin-unicorn": "^42.0.0",
|
|
45
|
+
"jest": "^27.5.1",
|
|
46
46
|
"nyc": "^15.1.0",
|
|
47
|
-
"semantic-release": "^
|
|
48
|
-
"transform-class-properties": "^1.0.0-beta"
|
|
47
|
+
"semantic-release": "^19.0.2",
|
|
48
|
+
"transform-class-properties": "^1.0.0-beta",
|
|
49
|
+
"yarn-upgrade-all": "^0.7.1"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"aws-sdk": ">=2.831.0"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"alai": "1.0.3",
|
|
55
|
-
"async": "^3.2.
|
|
56
|
-
"axios": "^0.
|
|
57
|
-
"dotenv": "^
|
|
58
|
-
"epsagon": "^1.
|
|
59
|
-
"typeorm": "^0.
|
|
60
|
-
"typeorm-aurora-data-api-driver": "^2.
|
|
61
|
-
"useragent": "2.3.0",
|
|
62
|
-
"uuid": "^8.2
|
|
63
|
-
"validate.js": "0.13.1",
|
|
64
|
-
"winston": "^3.
|
|
55
|
+
"alai": "^1.0.3",
|
|
56
|
+
"async": "^3.2.3",
|
|
57
|
+
"axios": "^0.26.1",
|
|
58
|
+
"dotenv": "^16.0.0",
|
|
59
|
+
"epsagon": "^1.121.3",
|
|
60
|
+
"typeorm": "^0.3.5",
|
|
61
|
+
"typeorm-aurora-data-api-driver": "^2.4.1",
|
|
62
|
+
"useragent": "^2.3.0",
|
|
63
|
+
"uuid": "^8.3.2",
|
|
64
|
+
"validate.js": "^0.13.1",
|
|
65
|
+
"winston": "^3.7.2",
|
|
65
66
|
"xml2js": "^0.4.23"
|
|
66
67
|
},
|
|
67
68
|
"publishConfig": {
|