@felloh-org/lambda-wrapper 1.10.6 → 1.10.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.
@@ -13,7 +13,7 @@ var _organisationFeature = _interopRequireDefault(require("../organisation-featu
13
13
 
14
14
  var _organisationType = _interopRequireDefault(require("../organisation-type"));
15
15
 
16
- 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;
16
+ 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;
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
@@ -54,6 +54,9 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
54
54
  }), _dec12 = (0, _typeorm.TreeParent)(), _dec13 = (0, _typeorm.TreeChildren)(), _dec14 = (0, _typeorm.OneToMany)(() => _organisationFeature.default, organisationFeature => organisationFeature.organisation), _dec15 = (0, _typeorm.ManyToOne)(() => _organisationType.default), _dec16 = (0, _typeorm.JoinColumn)({
55
55
  name: 'type_id',
56
56
  referencedColumnName: 'id'
57
+ }), _dec17 = (0, _typeorm.Column)({
58
+ type: "boolean",
59
+ default: false
57
60
  }), _dec(_class = _dec2(_class = (_class2 = class Organisation {
58
61
  constructor() {
59
62
  _initializerDefineProperty(this, "id", _descriptor, this);
@@ -79,6 +82,8 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
79
82
  _initializerDefineProperty(this, "organisation_feature", _descriptor11, this);
80
83
 
81
84
  _initializerDefineProperty(this, "organisation_type", _descriptor12, this);
85
+
86
+ _initializerDefineProperty(this, "unpaid_invoice", _descriptor13, this);
82
87
  }
83
88
 
84
89
  propgate(id, name) {
@@ -97,7 +102,8 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
97
102
  features: [],
98
103
  currencies: this.currencies ? this.currencies : [],
99
104
  payment_methods: this.payment_methods ? this.payment_methods : [],
100
- parent: null
105
+ parent: null,
106
+ unpaid_invoice: this.unpaid_invoice
101
107
  };
102
108
 
103
109
  if (this.parent !== null && typeof this.parent.getPublicCompactData === 'function') {
@@ -191,5 +197,12 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
191
197
  initializer: function () {
192
198
  return _organisationType.default;
193
199
  }
200
+ }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "unpaid_invoice", [_dec17], {
201
+ configurable: true,
202
+ enumerable: true,
203
+ writable: true,
204
+ initializer: function () {
205
+ return false;
206
+ }
194
207
  })), _class2)) || _class) || _class);
195
208
  exports.default = Organisation;
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class orgUnpaidInvoice1684418112293 {
4
+ name = 'orgUnpaidInvoice1684418112293'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "unpaid_invoice" boolean NOT NULL DEFAULT false`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "unpaid_invoice"`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.10.6",
3
+ "version": "1.10.7",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {