@felloh-org/lambda-wrapper 1.11.19 → 1.11.20
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,204 @@
|
|
|
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 _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
11
|
+
|
|
12
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
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 }); }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
20
|
+
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.'); }
|
|
21
|
+
|
|
22
|
+
let BinRules = (_dec = (0, _typeorm.Entity)({
|
|
23
|
+
name: 'bin_rules',
|
|
24
|
+
schema: 'acquirer'
|
|
25
|
+
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
26
|
+
name: 'organisation_id',
|
|
27
|
+
referencedColumnName: 'id'
|
|
28
|
+
}), _dec5 = (0, _typeorm.Column)({
|
|
29
|
+
type: "varchar",
|
|
30
|
+
length: "128",
|
|
31
|
+
nullable: true
|
|
32
|
+
}), _dec6 = (0, _typeorm.Column)({
|
|
33
|
+
type: "varchar",
|
|
34
|
+
length: "128",
|
|
35
|
+
nullable: true
|
|
36
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
37
|
+
type: "varchar",
|
|
38
|
+
length: "128",
|
|
39
|
+
nullable: true
|
|
40
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
41
|
+
type: "varchar",
|
|
42
|
+
length: "128",
|
|
43
|
+
nullable: true
|
|
44
|
+
}), _dec9 = (0, _typeorm.Column)({
|
|
45
|
+
type: "varchar",
|
|
46
|
+
length: "128",
|
|
47
|
+
nullable: true
|
|
48
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
49
|
+
type: "varchar",
|
|
50
|
+
length: "128",
|
|
51
|
+
nullable: true
|
|
52
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
53
|
+
type: "varchar",
|
|
54
|
+
length: "5",
|
|
55
|
+
nullable: true
|
|
56
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
57
|
+
type: "varchar",
|
|
58
|
+
length: "5",
|
|
59
|
+
nullable: true
|
|
60
|
+
}), _dec13 = (0, _typeorm.Column)({
|
|
61
|
+
type: "varchar",
|
|
62
|
+
length: "512",
|
|
63
|
+
nullable: true
|
|
64
|
+
}), _dec14 = (0, _typeorm.Column)({
|
|
65
|
+
type: "varchar",
|
|
66
|
+
length: "10",
|
|
67
|
+
nullable: true
|
|
68
|
+
}), _dec15 = (0, _typeorm.Column)('decimal', {
|
|
69
|
+
precision: 6,
|
|
70
|
+
scale: 2
|
|
71
|
+
}), _dec16 = (0, _typeorm.Column)({
|
|
72
|
+
type: "int"
|
|
73
|
+
}), _dec17 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class BinRules {
|
|
74
|
+
constructor() {
|
|
75
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
76
|
+
|
|
77
|
+
_initializerDefineProperty(this, "organisation", _descriptor2, this);
|
|
78
|
+
|
|
79
|
+
_initializerDefineProperty(this, "schemeInclude", _descriptor3, this);
|
|
80
|
+
|
|
81
|
+
_initializerDefineProperty(this, "schemeExclude", _descriptor4, this);
|
|
82
|
+
|
|
83
|
+
_initializerDefineProperty(this, "typeInclude", _descriptor5, this);
|
|
84
|
+
|
|
85
|
+
_initializerDefineProperty(this, "typeExclude", _descriptor6, this);
|
|
86
|
+
|
|
87
|
+
_initializerDefineProperty(this, "levelInclude", _descriptor7, this);
|
|
88
|
+
|
|
89
|
+
_initializerDefineProperty(this, "levelExclude", _descriptor8, this);
|
|
90
|
+
|
|
91
|
+
_initializerDefineProperty(this, "currencyInclude", _descriptor9, this);
|
|
92
|
+
|
|
93
|
+
_initializerDefineProperty(this, "currencyExclude", _descriptor10, this);
|
|
94
|
+
|
|
95
|
+
_initializerDefineProperty(this, "message", _descriptor11, this);
|
|
96
|
+
|
|
97
|
+
_initializerDefineProperty(this, "modifierType", _descriptor12, this);
|
|
98
|
+
|
|
99
|
+
_initializerDefineProperty(this, "percentage", _descriptor13, this);
|
|
100
|
+
|
|
101
|
+
_initializerDefineProperty(this, "amount", _descriptor14, this);
|
|
102
|
+
|
|
103
|
+
_initializerDefineProperty(this, "created_at", _descriptor15, this);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
107
|
+
configurable: true,
|
|
108
|
+
enumerable: true,
|
|
109
|
+
writable: true,
|
|
110
|
+
initializer: null
|
|
111
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec3, _dec4], {
|
|
112
|
+
configurable: true,
|
|
113
|
+
enumerable: true,
|
|
114
|
+
writable: true,
|
|
115
|
+
initializer: function () {
|
|
116
|
+
return _organisation.default;
|
|
117
|
+
}
|
|
118
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "schemeInclude", [_dec5], {
|
|
119
|
+
configurable: true,
|
|
120
|
+
enumerable: true,
|
|
121
|
+
writable: true,
|
|
122
|
+
initializer: function () {
|
|
123
|
+
return "";
|
|
124
|
+
}
|
|
125
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "schemeExclude", [_dec6], {
|
|
126
|
+
configurable: true,
|
|
127
|
+
enumerable: true,
|
|
128
|
+
writable: true,
|
|
129
|
+
initializer: function () {
|
|
130
|
+
return "";
|
|
131
|
+
}
|
|
132
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "typeInclude", [_dec7], {
|
|
133
|
+
configurable: true,
|
|
134
|
+
enumerable: true,
|
|
135
|
+
writable: true,
|
|
136
|
+
initializer: function () {
|
|
137
|
+
return "";
|
|
138
|
+
}
|
|
139
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "typeExclude", [_dec8], {
|
|
140
|
+
configurable: true,
|
|
141
|
+
enumerable: true,
|
|
142
|
+
writable: true,
|
|
143
|
+
initializer: function () {
|
|
144
|
+
return "";
|
|
145
|
+
}
|
|
146
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "levelInclude", [_dec9], {
|
|
147
|
+
configurable: true,
|
|
148
|
+
enumerable: true,
|
|
149
|
+
writable: true,
|
|
150
|
+
initializer: function () {
|
|
151
|
+
return "";
|
|
152
|
+
}
|
|
153
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "levelExclude", [_dec10], {
|
|
154
|
+
configurable: true,
|
|
155
|
+
enumerable: true,
|
|
156
|
+
writable: true,
|
|
157
|
+
initializer: function () {
|
|
158
|
+
return "";
|
|
159
|
+
}
|
|
160
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "currencyInclude", [_dec11], {
|
|
161
|
+
configurable: true,
|
|
162
|
+
enumerable: true,
|
|
163
|
+
writable: true,
|
|
164
|
+
initializer: function () {
|
|
165
|
+
return "";
|
|
166
|
+
}
|
|
167
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "currencyExclude", [_dec12], {
|
|
168
|
+
configurable: true,
|
|
169
|
+
enumerable: true,
|
|
170
|
+
writable: true,
|
|
171
|
+
initializer: function () {
|
|
172
|
+
return "";
|
|
173
|
+
}
|
|
174
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec13], {
|
|
175
|
+
configurable: true,
|
|
176
|
+
enumerable: true,
|
|
177
|
+
writable: true,
|
|
178
|
+
initializer: function () {
|
|
179
|
+
return "";
|
|
180
|
+
}
|
|
181
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "modifierType", [_dec14], {
|
|
182
|
+
configurable: true,
|
|
183
|
+
enumerable: true,
|
|
184
|
+
writable: true,
|
|
185
|
+
initializer: function () {
|
|
186
|
+
return "";
|
|
187
|
+
}
|
|
188
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "percentage", [_dec15], {
|
|
189
|
+
configurable: true,
|
|
190
|
+
enumerable: true,
|
|
191
|
+
writable: true,
|
|
192
|
+
initializer: null
|
|
193
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec16], {
|
|
194
|
+
configurable: true,
|
|
195
|
+
enumerable: true,
|
|
196
|
+
writable: true,
|
|
197
|
+
initializer: null
|
|
198
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec17], {
|
|
199
|
+
configurable: true,
|
|
200
|
+
enumerable: true,
|
|
201
|
+
writable: true,
|
|
202
|
+
initializer: null
|
|
203
|
+
})), _class2)) || _class);
|
|
204
|
+
exports.default = BinRules;
|
|
@@ -13,8 +13,10 @@ var _adjustment = _interopRequireDefault(require("./adjustment"));
|
|
|
13
13
|
|
|
14
14
|
var _bin = _interopRequireDefault(require("./bin"));
|
|
15
15
|
|
|
16
|
+
var _binRules = _interopRequireDefault(require("./bin-rules"));
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
|
-
const ENTITIES = [_adjustment.default, _batch.default, _bin.default, _transactionSettlement.default];
|
|
20
|
+
const ENTITIES = [_adjustment.default, _batch.default, _bin.default, _binRules.default, _transactionSettlement.default];
|
|
19
21
|
var _default = ENTITIES;
|
|
20
22
|
exports.default = _default;
|
package/dist/index.js
CHANGED
|
@@ -63,6 +63,12 @@ Object.defineProperty(exports, "BinEntity", {
|
|
|
63
63
|
return _bin.default;
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
+
Object.defineProperty(exports, "BinRulesEntity", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _binRules.default;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
66
72
|
Object.defineProperty(exports, "BookingBankTransaction", {
|
|
67
73
|
enumerable: true,
|
|
68
74
|
get: function () {
|
|
@@ -666,6 +672,8 @@ var _transactionSettlement = _interopRequireDefault(require("./entity/acquirer/t
|
|
|
666
672
|
|
|
667
673
|
var _bin = _interopRequireDefault(require("./entity/acquirer/bin"));
|
|
668
674
|
|
|
675
|
+
var _binRules = _interopRequireDefault(require("./entity/acquirer/bin-rules"));
|
|
676
|
+
|
|
669
677
|
var _booking = _interopRequireDefault(require("./entity/agent-data/booking"));
|
|
670
678
|
|
|
671
679
|
var _bookingComponent = _interopRequireDefault(require("./entity/agent-data/booking-component"));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class acquirerBinRules1692877747460 {
|
|
4
|
+
name = 'acquirerBinRules1692877747460'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "acquirer"."bin_rules" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "schemeInclude" character varying(128), "schemeExclude" character varying(128), "typeInclude" character varying(128), "typeExclude" character varying(128), "levelInclude" character varying(128), "levelExclude" character varying(128), "currencyInclude" character varying(5), "currencyExclude" character varying(5), "message" character varying(512), "modifierType" character varying(10), "percentage" numeric(6,2) NOT NULL, "amount" integer NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "organisation_id" character varying(150), CONSTRAINT "PK_c084672b8785e39d8732b6a1618" PRIMARY KEY ("id"))`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ADD CONSTRAINT "FK_fe2347c8c30afe35319515a0a83" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" DROP CONSTRAINT "FK_fe2347c8c30afe35319515a0a83"`);
|
|
13
|
+
await queryRunner.query(`DROP TABLE "acquirer"."bin_rules"`);
|
|
14
|
+
}
|
|
15
|
+
}
|