@felloh-org/lambda-wrapper 1.11.83 → 1.11.85

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 _account = _interopRequireDefault(require("../../bank/account"));
11
11
 
12
12
  var _gocardlessRequisition = _interopRequireDefault(require("../gocardless-requisition"));
13
13
 
14
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
14
+ var _organisation = _interopRequireDefault(require("../../user/organisation"));
15
+
16
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _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,40 +32,51 @@ let GoCardlessAccount = exports.default = (_dec = (0, _typeorm.Entity)({
30
32
  }), _dec3 = (0, _typeorm.ManyToOne)(() => _account.default), _dec4 = (0, _typeorm.JoinColumn)({
31
33
  name: 'iban',
32
34
  referencedColumnName: 'iban'
33
- }), _dec5 = (0, _typeorm.ManyToOne)(() => _gocardlessRequisition.default), _dec6 = (0, _typeorm.JoinColumn)({
35
+ }), _dec5 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec6 = (0, _typeorm.JoinColumn)({
36
+ name: 'organisation_id',
37
+ referencedColumnName: 'id'
38
+ }), _dec7 = (0, _typeorm.ManyToOne)(() => _gocardlessRequisition.default), _dec8 = (0, _typeorm.JoinColumn)({
34
39
  name: 'requistion_id',
35
40
  referencedColumnName: 'id'
36
- }), _dec7 = (0, _typeorm.Column)({
41
+ }), _dec9 = (0, _typeorm.Column)({
37
42
  type: "varchar",
38
43
  nullable: true,
39
44
  length: 50
40
- }), _dec8 = (0, _typeorm.Column)({
45
+ }), _dec10 = (0, _typeorm.Column)({
41
46
  type: "timestamp with time zone",
42
47
  nullable: true
43
- }), _dec9 = (0, _typeorm.Column)({
48
+ }), _dec11 = (0, _typeorm.Column)({
44
49
  type: "int",
45
50
  nullable: true
46
- }), _dec10 = (0, _typeorm.Column)({
51
+ }), _dec12 = (0, _typeorm.Column)({
47
52
  type: "varchar",
48
53
  length: "5",
49
54
  nullable: true
50
- }), _dec11 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class GoCardlessAccount {
55
+ }), _dec13 = (0, _typeorm.Column)({
56
+ type: "varchar",
57
+ nullable: true,
58
+ length: 50
59
+ }), _dec14 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class GoCardlessAccount {
51
60
  constructor() {
52
61
  _initializerDefineProperty(this, "id", _descriptor, this);
53
62
 
54
63
  _initializerDefineProperty(this, "account", _descriptor2, this);
55
64
 
56
- _initializerDefineProperty(this, "requistion", _descriptor3, this);
65
+ _initializerDefineProperty(this, "organisation", _descriptor3, this);
66
+
67
+ _initializerDefineProperty(this, "requistion", _descriptor4, this);
57
68
 
58
- _initializerDefineProperty(this, "status", _descriptor4, this);
69
+ _initializerDefineProperty(this, "status", _descriptor5, this);
59
70
 
60
- _initializerDefineProperty(this, "last_sync", _descriptor5, this);
71
+ _initializerDefineProperty(this, "last_sync", _descriptor6, this);
61
72
 
62
- _initializerDefineProperty(this, "balance", _descriptor6, this);
73
+ _initializerDefineProperty(this, "balance", _descriptor7, this);
63
74
 
64
- _initializerDefineProperty(this, "currency", _descriptor7, this);
75
+ _initializerDefineProperty(this, "currency", _descriptor8, this);
65
76
 
66
- _initializerDefineProperty(this, "created_at", _descriptor8, this);
77
+ _initializerDefineProperty(this, "nickname", _descriptor9, this);
78
+
79
+ _initializerDefineProperty(this, "created_at", _descriptor10, this);
67
80
  }
68
81
 
69
82
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -80,36 +93,48 @@ let GoCardlessAccount = exports.default = (_dec = (0, _typeorm.Entity)({
80
93
  initializer: function () {
81
94
  return _account.default;
82
95
  }
83
- }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "requistion", [_dec5, _dec6], {
96
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec5, _dec6], {
97
+ configurable: true,
98
+ enumerable: true,
99
+ writable: true,
100
+ initializer: function () {
101
+ return _organisation.default;
102
+ }
103
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "requistion", [_dec7, _dec8], {
84
104
  configurable: true,
85
105
  enumerable: true,
86
106
  writable: true,
87
107
  initializer: function () {
88
108
  return _gocardlessRequisition.default;
89
109
  }
90
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec7], {
110
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec9], {
91
111
  configurable: true,
92
112
  enumerable: true,
93
113
  writable: true,
94
114
  initializer: null
95
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "last_sync", [_dec8], {
115
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "last_sync", [_dec10], {
96
116
  configurable: true,
97
117
  enumerable: true,
98
118
  writable: true,
99
119
  initializer: null
100
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "balance", [_dec9], {
120
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "balance", [_dec11], {
101
121
  configurable: true,
102
122
  enumerable: true,
103
123
  writable: true,
104
124
  initializer: null
105
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec10], {
125
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec12], {
106
126
  configurable: true,
107
127
  enumerable: true,
108
128
  writable: true,
109
129
  initializer: function () {
110
130
  return "";
111
131
  }
112
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec11], {
132
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "nickname", [_dec13], {
133
+ configurable: true,
134
+ enumerable: true,
135
+ writable: true,
136
+ initializer: null
137
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec14], {
113
138
  configurable: true,
114
139
  enumerable: true,
115
140
  writable: true,
@@ -0,0 +1,15 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class accountOrganisation1710370387188 {
4
+ name = 'accountOrganisation1710370387188'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "aisp"."gocardless_account" ADD "organisation_id" character varying(150)`);
8
+ await queryRunner.query(`ALTER TABLE "aisp"."gocardless_account" ADD CONSTRAINT "FK_f0dd9037f63aea76e72ddc38100" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
9
+ }
10
+
11
+ async down(queryRunner) {
12
+ await queryRunner.query(`ALTER TABLE "aisp"."gocardless_account" DROP CONSTRAINT "FK_f0dd9037f63aea76e72ddc38100"`);
13
+ await queryRunner.query(`ALTER TABLE "aisp"."gocardless_account" DROP COLUMN "organisation_id"`);
14
+ }
15
+ }
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class addNickname1710371316539 {
4
+ name = 'addNickname1710371316539'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "aisp"."gocardless_account" ADD "nickname" character varying(50)`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "aisp"."gocardless_account" DROP COLUMN "nickname"`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.83",
3
+ "version": "1.11.85",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {