@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.
- package/dist/entity/user/organisation/index.js +26 -15
- package/dist/migration/{1657625543494-amendment.js → bank/1657625543494-amendment.js} +0 -0
- package/dist/migration/{1657630420519-amendment_undertaken_at.js → bank/1657630420519-amendment_undertaken_at.js} +0 -0
- package/dist/migration/{1657630681583-vendor.js → bank/1657630681583-vendor.js} +0 -0
- package/dist/migration/{1657631323026-ammed_supplier_ref.js → bank/1657631323026-ammed_supplier_ref.js} +0 -0
- package/dist/migration/{1657637492675-transaction-provider-metadata.js → bank/1657637492675-transaction-provider-metadata.js} +0 -0
- package/dist/migration/{1657711121280-adjustment.js → bank/1657711121280-adjustment.js} +0 -0
- package/dist/migration/{1657713850640-ledger_adjustment.js → bank/1657713850640-ledger_adjustment.js} +0 -0
- package/dist/migration/user/1658920205370-org_legacy_id.js +13 -0
- package/package.json +2 -2
|
@@ -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.
|
|
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
|
-
}),
|
|
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, "
|
|
58
|
+
_initializerDefineProperty(this, "legacy_id", _descriptor4, this);
|
|
55
59
|
|
|
56
|
-
_initializerDefineProperty(this, "
|
|
60
|
+
_initializerDefineProperty(this, "created_at", _descriptor5, this);
|
|
57
61
|
|
|
58
|
-
_initializerDefineProperty(this, "
|
|
62
|
+
_initializerDefineProperty(this, "updated_at", _descriptor6, this);
|
|
59
63
|
|
|
60
|
-
_initializerDefineProperty(this, "
|
|
64
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor7, this);
|
|
61
65
|
|
|
62
|
-
_initializerDefineProperty(this, "
|
|
66
|
+
_initializerDefineProperty(this, "users", _descriptor8, this);
|
|
63
67
|
|
|
64
|
-
_initializerDefineProperty(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, "
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
126
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec12], {
|
|
116
127
|
configurable: true,
|
|
117
128
|
enumerable: true,
|
|
118
129
|
writable: true,
|
|
119
130
|
initializer: null
|
|
120
|
-
}),
|
|
131
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec13], {
|
|
121
132
|
configurable: true,
|
|
122
133
|
enumerable: true,
|
|
123
134
|
writable: true,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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.
|
|
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",
|