@felloh-org/lambda-wrapper 1.11.20 → 1.11.22

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.
@@ -67,9 +67,11 @@ let BinRules = (_dec = (0, _typeorm.Entity)({
67
67
  nullable: true
68
68
  }), _dec15 = (0, _typeorm.Column)('decimal', {
69
69
  precision: 6,
70
- scale: 2
70
+ scale: 2,
71
+ nullable: true
71
72
  }), _dec16 = (0, _typeorm.Column)({
72
- type: "int"
73
+ type: "int",
74
+ nullable: true
73
75
  }), _dec17 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class BinRules {
74
76
  constructor() {
75
77
  _initializerDefineProperty(this, "id", _descriptor, this);
@@ -0,0 +1,15 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class acquirerBinRulesNullable1692878000108 {
4
+ name = 'acquirerBinRulesNullable1692878000108'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ALTER COLUMN "percentage" DROP NOT NULL`);
8
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ALTER COLUMN "amount" DROP NOT NULL`);
9
+ }
10
+
11
+ async down(queryRunner) {
12
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ALTER COLUMN "amount" SET NOT NULL`);
13
+ await queryRunner.query(`ALTER TABLE "acquirer"."bin_rules" ALTER COLUMN "percentage" SET NOT NULL`);
14
+ }
15
+ }
@@ -0,0 +1,60 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class initial1641774481300 {
4
+ name = 'plecom1693832604328'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`
8
+ CREATE OR REPLACE VIEW plecom_union AS
9
+ select
10
+ amount,
11
+ description,
12
+ expires_at,
13
+ user_id,
14
+ organisation_id,
15
+ id,
16
+ booking_id,
17
+ customer_name,
18
+ open_banking_enabled,
19
+ card_enabled,
20
+ moto,
21
+ status,
22
+ created_at,
23
+ updated_at,
24
+ email,
25
+ currency,
26
+ deleted_at,
27
+ pre_authorized,
28
+ customer_id
29
+ from "payment"."payment_Link"
30
+ union
31
+ select
32
+ amount,
33
+ '' as description,
34
+ expires_at,
35
+ user_id,
36
+ organisation_id,
37
+ id,
38
+ booking_id,
39
+ customer_name,
40
+ open_banking_enabled,
41
+ card_enabled,
42
+ moto,
43
+ status,
44
+ created_at,
45
+ updated_at,
46
+ email,
47
+ currency,
48
+ deleted_at,
49
+ pre_authorized,
50
+ customer_id
51
+ from "payment".ecommerce
52
+ `);
53
+ }
54
+
55
+ async down(queryRunner) {
56
+ await queryRunner.query(`
57
+ DROP VIEW IF EXISTS plecom_union;
58
+ `);
59
+ }
60
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.20",
3
+ "version": "1.11.22",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {