@felloh-org/lambda-wrapper 1.1.51 → 1.1.52

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.
@@ -9,7 +9,7 @@ var _typeorm = require("typeorm");
9
9
 
10
10
  var _user = _interopRequireDefault(require("../user"));
11
11
 
12
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
12
+ 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;
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
@@ -32,7 +32,11 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
32
32
  type: "varchar",
33
33
  length: "250",
34
34
  nullable: true
35
- }), _dec6 = (0, _typeorm.CreateDateColumn)(), _dec7 = (0, _typeorm.UpdateDateColumn)(), _dec8 = (0, _typeorm.DeleteDateColumn)(), _dec9 = (0, _typeorm.ManyToMany)(() => _user.default, users => users.organisations), _dec10 = (0, _typeorm.JoinTable)({
35
+ }), _dec6 = (0, _typeorm.Column)({
36
+ type: "varchar",
37
+ length: "150",
38
+ nullable: true
39
+ }), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec8 = (0, _typeorm.UpdateDateColumn)(), _dec9 = (0, _typeorm.DeleteDateColumn)(), _dec10 = (0, _typeorm.ManyToMany)(() => _user.default, users => users.organisations), _dec11 = (0, _typeorm.JoinTable)({
36
40
  name: "user_organisation",
37
41
  schema: "user",
38
42
  joinColumn: {
@@ -43,7 +47,7 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
43
47
  name: "user_id",
44
48
  referencedColumnName: "id"
45
49
  }
46
- }), _dec11 = (0, _typeorm.TreeParent)(), _dec12 = (0, _typeorm.TreeChildren)(), _dec(_class = _dec2(_class = (_class2 = class Organisation {
50
+ }), _dec12 = (0, _typeorm.TreeParent)(), _dec13 = (0, _typeorm.TreeChildren)(), _dec(_class = _dec2(_class = (_class2 = class Organisation {
47
51
  constructor() {
48
52
  _initializerDefineProperty(this, "id", _descriptor, this);
49
53
 
@@ -51,17 +55,19 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
51
55
 
52
56
  _initializerDefineProperty(this, "image", _descriptor3, this);
53
57
 
54
- _initializerDefineProperty(this, "created_at", _descriptor4, this);
58
+ _initializerDefineProperty(this, "legacy_id", _descriptor4, this);
55
59
 
56
- _initializerDefineProperty(this, "updated_at", _descriptor5, this);
60
+ _initializerDefineProperty(this, "created_at", _descriptor5, this);
57
61
 
58
- _initializerDefineProperty(this, "deleted_at", _descriptor6, this);
62
+ _initializerDefineProperty(this, "updated_at", _descriptor6, this);
59
63
 
60
- _initializerDefineProperty(this, "users", _descriptor7, this);
64
+ _initializerDefineProperty(this, "deleted_at", _descriptor7, this);
61
65
 
62
- _initializerDefineProperty(this, "parent", _descriptor8, this);
66
+ _initializerDefineProperty(this, "users", _descriptor8, this);
63
67
 
64
- _initializerDefineProperty(this, "children", _descriptor9, this);
68
+ _initializerDefineProperty(this, "parent", _descriptor9, this);
69
+
70
+ _initializerDefineProperty(this, "children", _descriptor10, this);
65
71
  }
66
72
 
67
73
  propgate(id, name) {
@@ -92,32 +98,37 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
92
98
  enumerable: true,
93
99
  writable: true,
94
100
  initializer: null
95
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec6], {
101
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "legacy_id", [_dec6], {
102
+ configurable: true,
103
+ enumerable: true,
104
+ writable: true,
105
+ initializer: null
106
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
96
107
  configurable: true,
97
108
  enumerable: true,
98
109
  writable: true,
99
110
  initializer: null
100
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec7], {
111
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec8], {
101
112
  configurable: true,
102
113
  enumerable: true,
103
114
  writable: true,
104
115
  initializer: null
105
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec8], {
116
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec9], {
106
117
  configurable: true,
107
118
  enumerable: true,
108
119
  writable: true,
109
120
  initializer: null
110
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "users", [_dec9, _dec10], {
121
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "users", [_dec10, _dec11], {
111
122
  configurable: true,
112
123
  enumerable: true,
113
124
  writable: true,
114
125
  initializer: null
115
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec11], {
126
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec12], {
116
127
  configurable: true,
117
128
  enumerable: true,
118
129
  writable: true,
119
130
  initializer: null
120
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec12], {
131
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec13], {
121
132
  configurable: true,
122
133
  enumerable: true,
123
134
  writable: true,
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class orgLegacyId1658920205370 {
4
+ name = 'orgLegacyId1658920205370'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "legacy_id" character varying(150)`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "legacy_id"`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "start": "yarn build -w",
18
18
  "test": "jest --coverage"
19
19
  },
20
- "author": "Felloh",
20
+ "author": "Felloh.com",
21
21
  "license": "MIT",
22
22
  "devDependencies": {
23
23
  "@babel/cli": "^7.17.6",