@felloh-org/lambda-wrapper 1.0.27 → 1.0.28

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,57 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _typeorm = require("typeorm");
9
+
10
+ var _batch = _interopRequireDefault(require("../batch"));
11
+
12
+ var _merchant = _interopRequireDefault(require("../merchant"));
13
+
14
+ var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ 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 }); }
19
+
20
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
21
+
22
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
23
+
24
+ let Transaction = (_dec = (0, _typeorm.Entity)({
25
+ name: 'ingested_data',
26
+ schema: 'trust_payments'
27
+ }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
28
+ type: "varchar",
29
+ length: 10
30
+ }), _dec4 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Transaction {
31
+ constructor() {
32
+ _initializerDefineProperty(this, "id", _descriptor, this);
33
+
34
+ _initializerDefineProperty(this, "type", _descriptor2, this);
35
+
36
+ _initializerDefineProperty(this, "created_at", _descriptor3, this);
37
+ }
38
+
39
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
40
+ configurable: true,
41
+ enumerable: true,
42
+ writable: true,
43
+ initializer: function () {
44
+ return undefined;
45
+ }
46
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "type", [_dec3], {
47
+ configurable: true,
48
+ enumerable: true,
49
+ writable: true,
50
+ initializer: null
51
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec4], {
52
+ configurable: true,
53
+ enumerable: true,
54
+ writable: true,
55
+ initializer: null
56
+ })), _class2)) || _class);
57
+ exports.default = Transaction;
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class trustFtpLog1648204597084 {
4
+ name = 'trustFtpLog1648204597084'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`CREATE TABLE "trust_payments"."ingested_data" ("id" character varying NOT NULL, "type" character varying(10) NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_95ecbf759d16d46c0d1b08fb7e0" PRIMARY KEY ("id"))`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`DROP TABLE "trust_payments"."ingested_data"`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {