@felloh-org/lambda-wrapper 1.11.87 → 1.11.89

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, _dec17, _dec18, _dec19, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
16
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
@@ -63,6 +63,9 @@ let Organisation = exports.default = (_dec = (0, _typeorm.Entity)({
63
63
  }), _dec19 = (0, _typeorm.Column)({
64
64
  type: "boolean",
65
65
  default: false
66
+ }), _dec20 = (0, _typeorm.Column)({
67
+ type: "boolean",
68
+ default: false
66
69
  }), _dec(_class = _dec2(_class = (_class2 = class Organisation {
67
70
  constructor() {
68
71
  _initializerDefineProperty(this, "id", _descriptor, this);
@@ -94,6 +97,8 @@ let Organisation = exports.default = (_dec = (0, _typeorm.Entity)({
94
97
  _initializerDefineProperty(this, "unpaid_invoice", _descriptor14, this);
95
98
 
96
99
  _initializerDefineProperty(this, "billing_enabled", _descriptor15, this);
100
+
101
+ _initializerDefineProperty(this, "surcharging_enabled", _descriptor16, this);
97
102
  }
98
103
 
99
104
  propgate(id, name) {
@@ -113,7 +118,8 @@ let Organisation = exports.default = (_dec = (0, _typeorm.Entity)({
113
118
  currencies: this.currencies ? this.currencies : [],
114
119
  payment_methods: this.payment_methods ? this.payment_methods : [],
115
120
  parent: null,
116
- unpaid_invoice: this.unpaid_invoice
121
+ unpaid_invoice: this.unpaid_invoice,
122
+ surcharging_enabled: this.surcharging_enabled
117
123
  };
118
124
 
119
125
  if (this.parent !== null && typeof this.parent.getPublicCompactData === 'function') {
@@ -226,4 +232,11 @@ let Organisation = exports.default = (_dec = (0, _typeorm.Entity)({
226
232
  initializer: function () {
227
233
  return false;
228
234
  }
235
+ }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "surcharging_enabled", [_dec20], {
236
+ configurable: true,
237
+ enumerable: true,
238
+ writable: true,
239
+ initializer: function () {
240
+ return false;
241
+ }
229
242
  })), _class2)) || _class) || _class);
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class surchargingEnabled1712740853812 {
4
+ name = 'surchargingEnabled1712740853812'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "surcharging_enabled" boolean NOT NULL DEFAULT false`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "surcharging_enabled"`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.87",
3
+ "version": "1.11.89",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {