@felloh-org/lambda-wrapper 1.0.5 → 1.0.6

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.
@@ -11,7 +11,9 @@ var _user = _interopRequireDefault(require("../../user/user"));
11
11
 
12
12
  var _organisation = _interopRequireDefault(require("../../user/organisation"));
13
13
 
14
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
14
+ var _transaction = _interopRequireDefault(require("../../payment/transaction"));
15
+
16
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
15
17
 
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
@@ -30,22 +32,22 @@ let Booking = (_dec = (0, _typeorm.Entity)({
30
32
  }), _dec4 = (0, _typeorm.ManyToOne)(() => _user.default), _dec5 = (0, _typeorm.JoinColumn)({
31
33
  name: 'user_id',
32
34
  referencedColumnName: 'id'
33
- }), _dec6 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec7 = (0, _typeorm.JoinColumn)({
35
+ }), _dec6 = (0, _typeorm.OneToMany)(() => _transaction.default, transaction => transaction.booking), _dec7 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec8 = (0, _typeorm.JoinColumn)({
34
36
  name: 'organisation_id',
35
37
  referencedColumnName: 'id'
36
- }), _dec8 = (0, _typeorm.Column)({
37
- type: "varchar",
38
- length: "150"
39
38
  }), _dec9 = (0, _typeorm.Column)({
40
39
  type: "varchar",
41
40
  length: "150"
42
41
  }), _dec10 = (0, _typeorm.Column)({
42
+ type: "varchar",
43
+ length: "150"
44
+ }), _dec11 = (0, _typeorm.Column)({
43
45
  type: "date",
44
46
  nullable: true
45
- }), _dec11 = (0, _typeorm.Column)({
47
+ }), _dec12 = (0, _typeorm.Column)({
46
48
  type: "date",
47
49
  nullable: true
48
- }), _dec12 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Booking {
50
+ }), _dec13 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Booking {
49
51
  constructor() {
50
52
  _initializerDefineProperty(this, "id", _descriptor, this);
51
53
 
@@ -53,17 +55,19 @@ let Booking = (_dec = (0, _typeorm.Entity)({
53
55
 
54
56
  _initializerDefineProperty(this, "user", _descriptor3, this);
55
57
 
56
- _initializerDefineProperty(this, "organisation", _descriptor4, this);
58
+ _initializerDefineProperty(this, "transactions", _descriptor4, this);
59
+
60
+ _initializerDefineProperty(this, "organisation", _descriptor5, this);
57
61
 
58
- _initializerDefineProperty(this, "customer_name", _descriptor5, this);
62
+ _initializerDefineProperty(this, "customer_name", _descriptor6, this);
59
63
 
60
- _initializerDefineProperty(this, "booking_reference", _descriptor6, this);
64
+ _initializerDefineProperty(this, "booking_reference", _descriptor7, this);
61
65
 
62
- _initializerDefineProperty(this, "departure_date", _descriptor7, this);
66
+ _initializerDefineProperty(this, "departure_date", _descriptor8, this);
63
67
 
64
- _initializerDefineProperty(this, "return_date", _descriptor8, this);
68
+ _initializerDefineProperty(this, "return_date", _descriptor9, this);
65
69
 
66
- _initializerDefineProperty(this, "created_at", _descriptor9, this);
70
+ _initializerDefineProperty(this, "created_at", _descriptor10, this);
67
71
  }
68
72
 
69
73
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -87,38 +91,43 @@ let Booking = (_dec = (0, _typeorm.Entity)({
87
91
  initializer: function () {
88
92
  return _user.default;
89
93
  }
90
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec6, _dec7], {
94
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "transactions", [_dec6], {
95
+ configurable: true,
96
+ enumerable: true,
97
+ writable: true,
98
+ initializer: null
99
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec7, _dec8], {
91
100
  configurable: true,
92
101
  enumerable: true,
93
102
  writable: true,
94
103
  initializer: function () {
95
104
  return _organisation.default;
96
105
  }
97
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "customer_name", [_dec8], {
106
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "customer_name", [_dec9], {
98
107
  configurable: true,
99
108
  enumerable: true,
100
109
  writable: true,
101
110
  initializer: function () {
102
111
  return "";
103
112
  }
104
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "booking_reference", [_dec9], {
113
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "booking_reference", [_dec10], {
105
114
  configurable: true,
106
115
  enumerable: true,
107
116
  writable: true,
108
117
  initializer: function () {
109
118
  return "";
110
119
  }
111
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "departure_date", [_dec10], {
120
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "departure_date", [_dec11], {
112
121
  configurable: true,
113
122
  enumerable: true,
114
123
  writable: true,
115
124
  initializer: null
116
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "return_date", [_dec11], {
125
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "return_date", [_dec12], {
117
126
  configurable: true,
118
127
  enumerable: true,
119
128
  writable: true,
120
129
  initializer: null
121
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec12], {
130
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec13], {
122
131
  configurable: true,
123
132
  enumerable: true,
124
133
  writable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {