@felloh-org/lambda-wrapper 1.11.32 → 1.11.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.
@@ -26,6 +26,7 @@ const run = async () => {
26
26
  await queryRunner.createSchema('reference', true);
27
27
  await queryRunner.createSchema('saltedge', true);
28
28
  await queryRunner.createSchema('acquirer', true);
29
+ await queryRunner.createSchema('operations', true);
29
30
  } catch (error) {
30
31
  console.log(error);
31
32
 
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _ipExclusion = _interopRequireDefault(require("./ip-exclusion"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ const ENTITIES = [_ipExclusion.default];
13
+ var _default = ENTITIES;
14
+ exports.default = _default;
@@ -0,0 +1,39 @@
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 _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
11
+
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
+
14
+ 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; }
15
+
16
+ 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.'); }
17
+
18
+ let IpExclusion = (_dec = (0, _typeorm.Entity)({
19
+ name: 'ip_exclusion',
20
+ schema: 'operations'
21
+ }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class IpExclusion {
22
+ constructor() {
23
+ _initializerDefineProperty(this, "ip_address", _descriptor, this);
24
+
25
+ _initializerDefineProperty(this, "created_at", _descriptor2, this);
26
+ }
27
+
28
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "ip_address", [_dec2], {
29
+ configurable: true,
30
+ enumerable: true,
31
+ writable: true,
32
+ initializer: null
33
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec3], {
34
+ configurable: true,
35
+ enumerable: true,
36
+ writable: true,
37
+ initializer: null
38
+ })), _class2)) || _class);
39
+ exports.default = IpExclusion;
@@ -39,7 +39,7 @@ var _tokenisationProvider = _interopRequireDefault(require("../tokenisation-prov
39
39
 
40
40
  var _refund = _interopRequireDefault(require("../refund"));
41
41
 
42
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25;
42
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27;
43
43
 
44
44
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
45
45
 
@@ -118,14 +118,21 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
118
118
  }), _dec32 = (0, _typeorm.Column)({
119
119
  type: "text",
120
120
  nullable: true
121
- }), _dec33 = (0, _typeorm.CreateDateColumn)({
121
+ }), _dec33 = (0, _typeorm.Column)({
122
+ type: "text",
123
+ nullable: true
124
+ }), _dec34 = (0, _typeorm.Column)({
125
+ type: "varchar",
126
+ length: "15",
127
+ nullable: true
128
+ }), _dec35 = (0, _typeorm.CreateDateColumn)({
122
129
  type: 'timestamp with time zone'
123
- }), _dec34 = (0, _typeorm.UpdateDateColumn)({
130
+ }), _dec36 = (0, _typeorm.UpdateDateColumn)({
124
131
  type: 'timestamp with time zone'
125
- }), _dec35 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec36 = (0, _typeorm.Column)({
132
+ }), _dec37 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec38 = (0, _typeorm.Column)({
126
133
  type: "timestamp with time zone",
127
134
  nullable: true
128
- }), _dec37 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec(_class = (_class2 = class Transaction {
135
+ }), _dec39 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec(_class = (_class2 = class Transaction {
129
136
  constructor() {
130
137
  _initializerDefineProperty(this, "id", _descriptor, this);
131
138
 
@@ -167,15 +174,19 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
167
174
 
168
175
  _initializerDefineProperty(this, "message", _descriptor20, this);
169
176
 
170
- _initializerDefineProperty(this, "created_at", _descriptor21, this);
177
+ _initializerDefineProperty(this, "user_agent", _descriptor21, this);
171
178
 
172
- _initializerDefineProperty(this, "updated_at", _descriptor22, this);
179
+ _initializerDefineProperty(this, "ip_address", _descriptor22, this);
173
180
 
174
- _initializerDefineProperty(this, "batch", _descriptor23, this);
181
+ _initializerDefineProperty(this, "created_at", _descriptor23, this);
175
182
 
176
- _initializerDefineProperty(this, "assigned_at", _descriptor24, this);
183
+ _initializerDefineProperty(this, "updated_at", _descriptor24, this);
177
184
 
178
- _initializerDefineProperty(this, "settlement", _descriptor25, this);
185
+ _initializerDefineProperty(this, "batch", _descriptor25, this);
186
+
187
+ _initializerDefineProperty(this, "assigned_at", _descriptor26, this);
188
+
189
+ _initializerDefineProperty(this, "settlement", _descriptor27, this);
179
190
  }
180
191
 
181
192
  getPublicData() {
@@ -426,27 +437,39 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
426
437
  enumerable: true,
427
438
  writable: true,
428
439
  initializer: null
429
- }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec33], {
440
+ }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "user_agent", [_dec33], {
441
+ configurable: true,
442
+ enumerable: true,
443
+ writable: true,
444
+ initializer: null
445
+ }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "ip_address", [_dec34], {
446
+ configurable: true,
447
+ enumerable: true,
448
+ writable: true,
449
+ initializer: function () {
450
+ return "";
451
+ }
452
+ }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec35], {
430
453
  configurable: true,
431
454
  enumerable: true,
432
455
  writable: true,
433
456
  initializer: null
434
- }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec34], {
457
+ }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec36], {
435
458
  configurable: true,
436
459
  enumerable: true,
437
460
  writable: true,
438
461
  initializer: null
439
- }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec35], {
462
+ }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec37], {
440
463
  configurable: true,
441
464
  enumerable: true,
442
465
  writable: true,
443
466
  initializer: null
444
- }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec36], {
467
+ }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec38], {
445
468
  configurable: true,
446
469
  enumerable: true,
447
470
  writable: true,
448
471
  initializer: null
449
- }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec37], {
472
+ }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec39], {
450
473
  configurable: true,
451
474
  enumerable: true,
452
475
  writable: true,
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class ipExclusionList1695811546501 {
4
+ name = 'ipExclusionList1695811546501'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`CREATE TABLE "operations"."ip_exclusion" ("ip_address" character varying NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_c09a4dbae002f60c61914637937" PRIMARY KEY ("ip_address"))`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`DROP TABLE "operations"."ip_exclusion"`);
12
+ }
13
+ }
@@ -0,0 +1,15 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class transactionTracing1695734492122 {
4
+ name = 'transactionTracing1695734492122'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "user_agent" text`);
8
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "ip_address" character varying(15)`);
9
+ }
10
+
11
+ async down(queryRunner) {
12
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "ip_address"`);
13
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "user_agent"`);
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.32",
3
+ "version": "1.11.34",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {