@felloh-org/lambda-wrapper 1.11.33 → 1.11.35
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/cli/seed/create-schema.js +1 -0
- package/dist/entity/operations/fingerprint-exclusion/index.js +39 -0
- package/dist/entity/operations/index.js +14 -0
- package/dist/entity/operations/ip-exclusion/index.js +39 -0
- package/dist/entity/payment/transaction/index.js +27 -15
- package/dist/migration/operations/1695811546501-ip_exclusion_list.js +13 -0
- package/dist/migration/operations/1695820446445-fingerprint.js +15 -0
- package/package.json +1 -1
|
@@ -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,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: 'fingerprint_exclusion',
|
|
20
|
+
schema: 'operations'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class IpExclusion {
|
|
22
|
+
constructor() {
|
|
23
|
+
_initializerDefineProperty(this, "fingerprint", _descriptor, this);
|
|
24
|
+
|
|
25
|
+
_initializerDefineProperty(this, "created_at", _descriptor2, this);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "fingerprint", [_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;
|
|
@@ -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, _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;
|
|
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, _dec40, _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, _descriptor28;
|
|
43
43
|
|
|
44
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
45
|
|
|
@@ -125,14 +125,17 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
125
125
|
type: "varchar",
|
|
126
126
|
length: "15",
|
|
127
127
|
nullable: true
|
|
128
|
-
}), _dec35 = (0, _typeorm.
|
|
128
|
+
}), _dec35 = (0, _typeorm.Column)({
|
|
129
|
+
type: "varchar",
|
|
130
|
+
nullable: true
|
|
131
|
+
}), _dec36 = (0, _typeorm.CreateDateColumn)({
|
|
129
132
|
type: 'timestamp with time zone'
|
|
130
|
-
}),
|
|
133
|
+
}), _dec37 = (0, _typeorm.UpdateDateColumn)({
|
|
131
134
|
type: 'timestamp with time zone'
|
|
132
|
-
}),
|
|
135
|
+
}), _dec38 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec39 = (0, _typeorm.Column)({
|
|
133
136
|
type: "timestamp with time zone",
|
|
134
137
|
nullable: true
|
|
135
|
-
}),
|
|
138
|
+
}), _dec40 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec(_class = (_class2 = class Transaction {
|
|
136
139
|
constructor() {
|
|
137
140
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
138
141
|
|
|
@@ -178,15 +181,17 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
178
181
|
|
|
179
182
|
_initializerDefineProperty(this, "ip_address", _descriptor22, this);
|
|
180
183
|
|
|
181
|
-
_initializerDefineProperty(this, "
|
|
184
|
+
_initializerDefineProperty(this, "fingerprint", _descriptor23, this);
|
|
185
|
+
|
|
186
|
+
_initializerDefineProperty(this, "created_at", _descriptor24, this);
|
|
182
187
|
|
|
183
|
-
_initializerDefineProperty(this, "updated_at",
|
|
188
|
+
_initializerDefineProperty(this, "updated_at", _descriptor25, this);
|
|
184
189
|
|
|
185
|
-
_initializerDefineProperty(this, "batch",
|
|
190
|
+
_initializerDefineProperty(this, "batch", _descriptor26, this);
|
|
186
191
|
|
|
187
|
-
_initializerDefineProperty(this, "assigned_at",
|
|
192
|
+
_initializerDefineProperty(this, "assigned_at", _descriptor27, this);
|
|
188
193
|
|
|
189
|
-
_initializerDefineProperty(this, "settlement",
|
|
194
|
+
_initializerDefineProperty(this, "settlement", _descriptor28, this);
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
getPublicData() {
|
|
@@ -449,27 +454,34 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
449
454
|
initializer: function () {
|
|
450
455
|
return "";
|
|
451
456
|
}
|
|
452
|
-
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
457
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "fingerprint", [_dec35], {
|
|
458
|
+
configurable: true,
|
|
459
|
+
enumerable: true,
|
|
460
|
+
writable: true,
|
|
461
|
+
initializer: function () {
|
|
462
|
+
return "";
|
|
463
|
+
}
|
|
464
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec36], {
|
|
453
465
|
configurable: true,
|
|
454
466
|
enumerable: true,
|
|
455
467
|
writable: true,
|
|
456
468
|
initializer: null
|
|
457
|
-
}),
|
|
469
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec37], {
|
|
458
470
|
configurable: true,
|
|
459
471
|
enumerable: true,
|
|
460
472
|
writable: true,
|
|
461
473
|
initializer: null
|
|
462
|
-
}),
|
|
474
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec38], {
|
|
463
475
|
configurable: true,
|
|
464
476
|
enumerable: true,
|
|
465
477
|
writable: true,
|
|
466
478
|
initializer: null
|
|
467
|
-
}),
|
|
479
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec39], {
|
|
468
480
|
configurable: true,
|
|
469
481
|
enumerable: true,
|
|
470
482
|
writable: true,
|
|
471
483
|
initializer: null
|
|
472
|
-
}),
|
|
484
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec40], {
|
|
473
485
|
configurable: true,
|
|
474
486
|
enumerable: true,
|
|
475
487
|
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 fingerprint1695820446445 {
|
|
4
|
+
name = 'fingerprint1695820446445'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "operations"."fingerprint_exclusion" ("fingerprint" character varying NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_0915dcafbf46800ad6b2c0fc017" PRIMARY KEY ("fingerprint"))`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "fingerprint" character varying`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "fingerprint"`);
|
|
13
|
+
await queryRunner.query(`DROP TABLE "operations"."fingerprint_exclusion"`);
|
|
14
|
+
}
|
|
15
|
+
}
|