@felloh-org/lambda-wrapper 1.11.5 → 1.11.7
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/dist/entity/trust-payments/merchant/index.js +44 -6
- package/dist/migration/trust-payments/1688382475027-trust_always_scrape.js +13 -0
- package/dist/migration/trust-payments/1688382817741-trust_import_transactions.js +13 -0
- package/dist/migration/trust-payments/1688461589610-trust_organisation_mapping.js +15 -0
- package/package.json +1 -1
|
@@ -7,7 +7,11 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _typeorm = require("typeorm");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
11
|
+
|
|
12
|
+
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;
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
15
|
|
|
12
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 }); }
|
|
13
17
|
|
|
@@ -34,9 +38,20 @@ let Merchant = (_dec = (0, _typeorm.Entity)({
|
|
|
34
38
|
type: "boolean",
|
|
35
39
|
default: false
|
|
36
40
|
}), _dec7 = (0, _typeorm.Column)({
|
|
41
|
+
type: "boolean",
|
|
42
|
+
default: false
|
|
43
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
44
|
+
type: "boolean",
|
|
45
|
+
default: false
|
|
46
|
+
}), _dec9 = (0, _typeorm.ManyToOne)(() => _organisation.default, {
|
|
47
|
+
nullable: true
|
|
48
|
+
}), _dec10 = (0, _typeorm.JoinColumn)({
|
|
49
|
+
name: 'organisation_id',
|
|
50
|
+
referencedColumnName: 'id'
|
|
51
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
37
52
|
type: "int",
|
|
38
53
|
nullable: true
|
|
39
|
-
}),
|
|
54
|
+
}), _dec12 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Merchant {
|
|
40
55
|
constructor() {
|
|
41
56
|
_initializerDefineProperty(this, "merchant_number", _descriptor, this);
|
|
42
57
|
|
|
@@ -48,9 +63,15 @@ let Merchant = (_dec = (0, _typeorm.Entity)({
|
|
|
48
63
|
|
|
49
64
|
_initializerDefineProperty(this, "in_omnipay", _descriptor5, this);
|
|
50
65
|
|
|
51
|
-
_initializerDefineProperty(this, "
|
|
66
|
+
_initializerDefineProperty(this, "always_scrape", _descriptor6, this);
|
|
67
|
+
|
|
68
|
+
_initializerDefineProperty(this, "import_transactions", _descriptor7, this);
|
|
69
|
+
|
|
70
|
+
_initializerDefineProperty(this, "organisation", _descriptor8, this);
|
|
52
71
|
|
|
53
|
-
_initializerDefineProperty(this, "
|
|
72
|
+
_initializerDefineProperty(this, "rolling_reserve", _descriptor9, this);
|
|
73
|
+
|
|
74
|
+
_initializerDefineProperty(this, "created_at", _descriptor10, this);
|
|
54
75
|
}
|
|
55
76
|
|
|
56
77
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "merchant_number", [_dec2], {
|
|
@@ -86,14 +107,31 @@ let Merchant = (_dec = (0, _typeorm.Entity)({
|
|
|
86
107
|
enumerable: true,
|
|
87
108
|
writable: true,
|
|
88
109
|
initializer: null
|
|
89
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
110
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "always_scrape", [_dec7], {
|
|
111
|
+
configurable: true,
|
|
112
|
+
enumerable: true,
|
|
113
|
+
writable: true,
|
|
114
|
+
initializer: null
|
|
115
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "import_transactions", [_dec8], {
|
|
116
|
+
configurable: true,
|
|
117
|
+
enumerable: true,
|
|
118
|
+
writable: true,
|
|
119
|
+
initializer: null
|
|
120
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec9, _dec10], {
|
|
121
|
+
configurable: true,
|
|
122
|
+
enumerable: true,
|
|
123
|
+
writable: true,
|
|
124
|
+
initializer: function () {
|
|
125
|
+
return _organisation.default;
|
|
126
|
+
}
|
|
127
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "rolling_reserve", [_dec11], {
|
|
90
128
|
configurable: true,
|
|
91
129
|
enumerable: true,
|
|
92
130
|
writable: true,
|
|
93
131
|
initializer: function () {
|
|
94
132
|
return "";
|
|
95
133
|
}
|
|
96
|
-
}),
|
|
134
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec12], {
|
|
97
135
|
configurable: true,
|
|
98
136
|
enumerable: true,
|
|
99
137
|
writable: true,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class trustAlwaysScrape1688382475027 {
|
|
4
|
+
name = 'trustAlwaysScrape1688382475027'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {;
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" ADD "always_scrape" boolean NOT NULL DEFAULT false`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" DROP COLUMN "always_scrape"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class trustImportTransactions1688382817741 {
|
|
4
|
+
name = 'trustImportTransactions1688382817741'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" ADD "import_transactions" boolean NOT NULL DEFAULT false`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" DROP COLUMN "import_transactions"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class trustOrganisationMapping1688461589610 {
|
|
4
|
+
name = 'trustOrganisationMapping1688461589610'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" ADD "organisation_id" character varying(150)`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" ADD CONSTRAINT "FK_e8f73e8ce4d9ba3866f270ba3c9" 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 "trust_payments"."merchant" DROP CONSTRAINT "FK_e8f73e8ce4d9ba3866f270ba3c9"`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" DROP COLUMN "organisation_id"`);
|
|
14
|
+
}
|
|
15
|
+
}
|