@felloh-org/lambda-wrapper 1.0.9 → 1.0.10

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.
@@ -15,7 +15,7 @@ var _booking = _interopRequireDefault(require("../../agent-data/booking"));
15
15
 
16
16
  var _transaction = _interopRequireDefault(require("../transaction"));
17
17
 
18
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
18
+ 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;
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
@@ -43,19 +43,23 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
43
43
  type: "int"
44
44
  }), _dec10 = (0, _typeorm.Column)({
45
45
  type: "varchar",
46
- length: "250"
46
+ length: "150",
47
+ nullable: true
47
48
  }), _dec11 = (0, _typeorm.Column)({
48
49
  type: "varchar",
49
- length: "200"
50
+ length: "250"
50
51
  }), _dec12 = (0, _typeorm.Column)({
51
52
  type: "varchar",
52
53
  length: "200"
53
54
  }), _dec13 = (0, _typeorm.Column)({
54
55
  type: "varchar",
55
56
  length: "200"
56
- }), _dec14 = (0, _typeorm.OneToMany)(() => _transaction.default, transaction => transaction.payment_link), _dec15 = (0, _typeorm.Column)({
57
+ }), _dec14 = (0, _typeorm.Column)({
58
+ type: "varchar",
59
+ length: "200"
60
+ }), _dec15 = (0, _typeorm.OneToMany)(() => _transaction.default, transaction => transaction.payment_link), _dec16 = (0, _typeorm.Column)({
57
61
  type: "timestamp with time zone"
58
- }), _dec16 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class PaymentLink {
62
+ }), _dec17 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class PaymentLink {
59
63
  constructor() {
60
64
  _initializerDefineProperty(this, "id", _descriptor, this);
61
65
 
@@ -67,19 +71,21 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
67
71
 
68
72
  _initializerDefineProperty(this, "amount", _descriptor5, this);
69
73
 
70
- _initializerDefineProperty(this, "description", _descriptor6, this);
74
+ _initializerDefineProperty(this, "customer_name", _descriptor6, this);
75
+
76
+ _initializerDefineProperty(this, "description", _descriptor7, this);
71
77
 
72
- _initializerDefineProperty(this, "success_url", _descriptor7, this);
78
+ _initializerDefineProperty(this, "success_url", _descriptor8, this);
73
79
 
74
- _initializerDefineProperty(this, "failure_url", _descriptor8, this);
80
+ _initializerDefineProperty(this, "failure_url", _descriptor9, this);
75
81
 
76
- _initializerDefineProperty(this, "cancel_url", _descriptor9, this);
82
+ _initializerDefineProperty(this, "cancel_url", _descriptor10, this);
77
83
 
78
- _initializerDefineProperty(this, "transactions", _descriptor10, this);
84
+ _initializerDefineProperty(this, "transactions", _descriptor11, this);
79
85
 
80
- _initializerDefineProperty(this, "expires_at", _descriptor11, this);
86
+ _initializerDefineProperty(this, "expires_at", _descriptor12, this);
81
87
 
82
- _initializerDefineProperty(this, "created_at", _descriptor12, this);
88
+ _initializerDefineProperty(this, "created_at", _descriptor13, this);
83
89
  }
84
90
 
85
91
  generateExpiryDate() {
@@ -121,47 +127,54 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
121
127
  enumerable: true,
122
128
  writable: true,
123
129
  initializer: null
124
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec10], {
130
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "customer_name", [_dec10], {
131
+ configurable: true,
132
+ enumerable: true,
133
+ writable: true,
134
+ initializer: function () {
135
+ return "";
136
+ }
137
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec11], {
125
138
  configurable: true,
126
139
  enumerable: true,
127
140
  writable: true,
128
141
  initializer: function () {
129
142
  return "";
130
143
  }
131
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "success_url", [_dec11], {
144
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "success_url", [_dec12], {
132
145
  configurable: true,
133
146
  enumerable: true,
134
147
  writable: true,
135
148
  initializer: function () {
136
149
  return "";
137
150
  }
138
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "failure_url", [_dec12], {
151
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "failure_url", [_dec13], {
139
152
  configurable: true,
140
153
  enumerable: true,
141
154
  writable: true,
142
155
  initializer: function () {
143
156
  return "";
144
157
  }
145
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "cancel_url", [_dec13], {
158
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "cancel_url", [_dec14], {
146
159
  configurable: true,
147
160
  enumerable: true,
148
161
  writable: true,
149
162
  initializer: function () {
150
163
  return "";
151
164
  }
152
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "transactions", [_dec14], {
165
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "transactions", [_dec15], {
153
166
  configurable: true,
154
167
  enumerable: true,
155
168
  writable: true,
156
169
  initializer: null
157
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "expires_at", [_dec15], {
170
+ }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "expires_at", [_dec16], {
158
171
  configurable: true,
159
172
  enumerable: true,
160
173
  writable: true,
161
174
  initializer: function () {
162
175
  return this.generateExpiryDate();
163
176
  }
164
- }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec16], {
177
+ }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec17], {
165
178
  configurable: true,
166
179
  enumerable: true,
167
180
  writable: true,
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class paymentLinkCustomer1642805897210 {
4
+ name = 'paymentLinkCustomer1642805897210'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "customer_name" character varying(150)`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "customer_name"`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {