@felloh-org/lambda-wrapper 1.11.15 → 1.11.16
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, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;
|
|
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;
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
@@ -40,7 +40,10 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
|
40
40
|
type: "varchar",
|
|
41
41
|
length: "150",
|
|
42
42
|
nullable: true
|
|
43
|
-
}), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec8 = (0, _typeorm.UpdateDateColumn)(), _dec9 = (0, _typeorm.
|
|
43
|
+
}), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec8 = (0, _typeorm.UpdateDateColumn)(), _dec9 = (0, _typeorm.Column)({
|
|
44
|
+
type: 'timestamptz',
|
|
45
|
+
nullable: true
|
|
46
|
+
}), _dec10 = (0, _typeorm.DeleteDateColumn)(), _dec11 = (0, _typeorm.ManyToMany)(() => _user.default, users => users.organisations), _dec12 = (0, _typeorm.JoinTable)({
|
|
44
47
|
name: "user_organisation",
|
|
45
48
|
schema: "user",
|
|
46
49
|
joinColumn: {
|
|
@@ -51,13 +54,13 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
|
51
54
|
name: "user_id",
|
|
52
55
|
referencedColumnName: "id"
|
|
53
56
|
}
|
|
54
|
-
}),
|
|
57
|
+
}), _dec13 = (0, _typeorm.TreeParent)(), _dec14 = (0, _typeorm.TreeChildren)(), _dec15 = (0, _typeorm.OneToMany)(() => _organisationFeature.default, organisationFeature => organisationFeature.organisation), _dec16 = (0, _typeorm.ManyToOne)(() => _organisationType.default), _dec17 = (0, _typeorm.JoinColumn)({
|
|
55
58
|
name: 'type_id',
|
|
56
59
|
referencedColumnName: 'id'
|
|
57
|
-
}),
|
|
60
|
+
}), _dec18 = (0, _typeorm.Column)({
|
|
58
61
|
type: "boolean",
|
|
59
62
|
default: false
|
|
60
|
-
}),
|
|
63
|
+
}), _dec19 = (0, _typeorm.Column)({
|
|
61
64
|
type: "boolean",
|
|
62
65
|
default: false
|
|
63
66
|
}), _dec(_class = _dec2(_class = (_class2 = class Organisation {
|
|
@@ -74,21 +77,23 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
|
74
77
|
|
|
75
78
|
_initializerDefineProperty(this, "updated_at", _descriptor6, this);
|
|
76
79
|
|
|
77
|
-
_initializerDefineProperty(this, "
|
|
80
|
+
_initializerDefineProperty(this, "archived_at", _descriptor7, this);
|
|
81
|
+
|
|
82
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor8, this);
|
|
78
83
|
|
|
79
|
-
_initializerDefineProperty(this, "users",
|
|
84
|
+
_initializerDefineProperty(this, "users", _descriptor9, this);
|
|
80
85
|
|
|
81
|
-
_initializerDefineProperty(this, "parent",
|
|
86
|
+
_initializerDefineProperty(this, "parent", _descriptor10, this);
|
|
82
87
|
|
|
83
|
-
_initializerDefineProperty(this, "children",
|
|
88
|
+
_initializerDefineProperty(this, "children", _descriptor11, this);
|
|
84
89
|
|
|
85
|
-
_initializerDefineProperty(this, "organisation_feature",
|
|
90
|
+
_initializerDefineProperty(this, "organisation_feature", _descriptor12, this);
|
|
86
91
|
|
|
87
|
-
_initializerDefineProperty(this, "organisation_type",
|
|
92
|
+
_initializerDefineProperty(this, "organisation_type", _descriptor13, this);
|
|
88
93
|
|
|
89
|
-
_initializerDefineProperty(this, "unpaid_invoice",
|
|
94
|
+
_initializerDefineProperty(this, "unpaid_invoice", _descriptor14, this);
|
|
90
95
|
|
|
91
|
-
_initializerDefineProperty(this, "billing_enabled",
|
|
96
|
+
_initializerDefineProperty(this, "billing_enabled", _descriptor15, this);
|
|
92
97
|
}
|
|
93
98
|
|
|
94
99
|
propgate(id, name) {
|
|
@@ -170,46 +175,51 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
|
170
175
|
enumerable: true,
|
|
171
176
|
writable: true,
|
|
172
177
|
initializer: null
|
|
173
|
-
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
178
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "archived_at", [_dec9], {
|
|
179
|
+
configurable: true,
|
|
180
|
+
enumerable: true,
|
|
181
|
+
writable: true,
|
|
182
|
+
initializer: null
|
|
183
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec10], {
|
|
174
184
|
configurable: true,
|
|
175
185
|
enumerable: true,
|
|
176
186
|
writable: true,
|
|
177
187
|
initializer: null
|
|
178
|
-
}),
|
|
188
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "users", [_dec11, _dec12], {
|
|
179
189
|
configurable: true,
|
|
180
190
|
enumerable: true,
|
|
181
191
|
writable: true,
|
|
182
192
|
initializer: null
|
|
183
|
-
}),
|
|
193
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec13], {
|
|
184
194
|
configurable: true,
|
|
185
195
|
enumerable: true,
|
|
186
196
|
writable: true,
|
|
187
197
|
initializer: null
|
|
188
|
-
}),
|
|
198
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec14], {
|
|
189
199
|
configurable: true,
|
|
190
200
|
enumerable: true,
|
|
191
201
|
writable: true,
|
|
192
202
|
initializer: null
|
|
193
|
-
}),
|
|
203
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "organisation_feature", [_dec15], {
|
|
194
204
|
configurable: true,
|
|
195
205
|
enumerable: true,
|
|
196
206
|
writable: true,
|
|
197
207
|
initializer: null
|
|
198
|
-
}),
|
|
208
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "organisation_type", [_dec16, _dec17], {
|
|
199
209
|
configurable: true,
|
|
200
210
|
enumerable: true,
|
|
201
211
|
writable: true,
|
|
202
212
|
initializer: function () {
|
|
203
213
|
return _organisationType.default;
|
|
204
214
|
}
|
|
205
|
-
}),
|
|
215
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "unpaid_invoice", [_dec18], {
|
|
206
216
|
configurable: true,
|
|
207
217
|
enumerable: true,
|
|
208
218
|
writable: true,
|
|
209
219
|
initializer: function () {
|
|
210
220
|
return false;
|
|
211
221
|
}
|
|
212
|
-
}),
|
|
222
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "billing_enabled", [_dec19], {
|
|
213
223
|
configurable: true,
|
|
214
224
|
enumerable: true,
|
|
215
225
|
writable: true,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class organisationArchive1692182636537 {
|
|
4
|
+
name = 'organisationArchive1692182636537'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "archived_at" TIMESTAMP WITH TIME ZONE`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "archived_at"`);
|
|
12
|
+
}
|
|
13
|
+
}
|