@felloh-org/lambda-wrapper 1.11.22 → 1.11.23

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.
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _typeorm = require("typeorm");
9
9
 
10
- var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
10
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
11
11
 
12
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
13
 
@@ -24,7 +24,11 @@ let Feature = (_dec = (0, _typeorm.Entity)({
24
24
  }), _dec4 = (0, _typeorm.Column)({
25
25
  type: "varchar",
26
26
  length: "150"
27
- }), _dec5 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Feature {
27
+ }), _dec5 = (0, _typeorm.Column)({
28
+ type: "varchar",
29
+ length: "1024",
30
+ nullable: true
31
+ }), _dec6 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Feature {
28
32
  constructor() {
29
33
  _initializerDefineProperty(this, "id", _descriptor, this);
30
34
 
@@ -32,7 +36,9 @@ let Feature = (_dec = (0, _typeorm.Entity)({
32
36
 
33
37
  _initializerDefineProperty(this, "name", _descriptor3, this);
34
38
 
35
- _initializerDefineProperty(this, "created_at", _descriptor4, this);
39
+ _initializerDefineProperty(this, "description", _descriptor4, this);
40
+
41
+ _initializerDefineProperty(this, "created_at", _descriptor5, this);
36
42
  }
37
43
 
38
44
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -54,7 +60,14 @@ let Feature = (_dec = (0, _typeorm.Entity)({
54
60
  initializer: function () {
55
61
  return "";
56
62
  }
57
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec5], {
63
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec5], {
64
+ configurable: true,
65
+ enumerable: true,
66
+ writable: true,
67
+ initializer: function () {
68
+ return "";
69
+ }
70
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec6], {
58
71
  configurable: true,
59
72
  enumerable: true,
60
73
  writable: true,
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class featureDescriptions1694768586499 {
4
+ name = 'featureDescriptions1694768586499'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."feature" ADD "description" character varying(1024)`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "user"."feature" DROP COLUMN "description"`);
12
+ }
13
+ }
@@ -0,0 +1,105 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class initial1641774481300 {
4
+ name = 'plecom1693832604329'
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
+ cast(coalesce(metadata, '{}') as jsonb) as metadata
30
+ from "payment"."payment_Link"
31
+ union
32
+ select
33
+ amount,
34
+ '' as description,
35
+ expires_at,
36
+ user_id,
37
+ organisation_id,
38
+ id,
39
+ booking_id,
40
+ customer_name,
41
+ open_banking_enabled,
42
+ card_enabled,
43
+ moto,
44
+ status,
45
+ created_at,
46
+ updated_at,
47
+ email,
48
+ currency,
49
+ deleted_at,
50
+ pre_authorized,
51
+ customer_id,
52
+ cast('{}' as jsonb) as metadata
53
+ from "payment".ecommerce
54
+ `);
55
+ }
56
+
57
+ async down(queryRunner) {
58
+ await queryRunner.query(`
59
+ CREATE OR REPLACE VIEW plecom_union AS
60
+ select
61
+ amount,
62
+ description,
63
+ expires_at,
64
+ user_id,
65
+ organisation_id,
66
+ id,
67
+ booking_id,
68
+ customer_name,
69
+ open_banking_enabled,
70
+ card_enabled,
71
+ moto,
72
+ status,
73
+ created_at,
74
+ updated_at,
75
+ email,
76
+ currency,
77
+ deleted_at,
78
+ pre_authorized,
79
+ customer_id
80
+ from "payment"."payment_Link"
81
+ union
82
+ select
83
+ amount,
84
+ '' as description,
85
+ expires_at,
86
+ user_id,
87
+ organisation_id,
88
+ id,
89
+ booking_id,
90
+ customer_name,
91
+ open_banking_enabled,
92
+ card_enabled,
93
+ moto,
94
+ status,
95
+ created_at,
96
+ updated_at,
97
+ email,
98
+ currency,
99
+ deleted_at,
100
+ pre_authorized,
101
+ customer_id
102
+ from "payment".ecommerce
103
+ `);
104
+ }
105
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.22",
3
+ "version": "1.11.23",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {