@felloh-org/lambda-wrapper 1.1.63 → 1.1.66

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.
@@ -17,7 +17,7 @@ var _uuid = require("uuid");
17
17
 
18
18
  var _bookingComponent = _interopRequireDefault(require("../booking-component"));
19
19
 
20
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;
20
+ 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;
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
@@ -51,17 +51,17 @@ let Booking = (_dec = (0, _typeorm.Entity)({
51
51
  }), _dec12 = (0, _typeorm.Column)({
52
52
  type: "varchar",
53
53
  length: "150"
54
- }), _dec13 = (0, _typeorm.Column)({
54
+ }), _dec13 = (0, _typeorm.Index)(), _dec14 = (0, _typeorm.Column)({
55
55
  type: "date",
56
56
  nullable: true
57
- }), _dec14 = (0, _typeorm.Column)({
57
+ }), _dec15 = (0, _typeorm.Column)({
58
58
  type: "date",
59
59
  nullable: true
60
- }), _dec15 = (0, _typeorm.CreateDateColumn)({
60
+ }), _dec16 = (0, _typeorm.CreateDateColumn)({
61
61
  type: 'timestamp with time zone'
62
- }), _dec16 = (0, _typeorm.UpdateDateColumn)({
62
+ }), _dec17 = (0, _typeorm.UpdateDateColumn)({
63
63
  type: 'timestamp with time zone'
64
- }), _dec17 = (0, _typeorm.DeleteDateColumn)({
64
+ }), _dec18 = (0, _typeorm.DeleteDateColumn)({
65
65
  type: 'timestamp with time zone',
66
66
  nullable: true
67
67
  }), _dec(_class = (_class2 = class Booking {
@@ -180,34 +180,34 @@ let Booking = (_dec = (0, _typeorm.Entity)({
180
180
  initializer: function () {
181
181
  return "";
182
182
  }
183
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "booking_reference", [_dec12], {
183
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "booking_reference", [_dec12, _dec13], {
184
184
  configurable: true,
185
185
  enumerable: true,
186
186
  writable: true,
187
187
  initializer: function () {
188
188
  return "";
189
189
  }
190
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "departure_date", [_dec13], {
190
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "departure_date", [_dec14], {
191
191
  configurable: true,
192
192
  enumerable: true,
193
193
  writable: true,
194
194
  initializer: null
195
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "return_date", [_dec14], {
195
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "return_date", [_dec15], {
196
196
  configurable: true,
197
197
  enumerable: true,
198
198
  writable: true,
199
199
  initializer: null
200
- }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec15], {
200
+ }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec16], {
201
201
  configurable: true,
202
202
  enumerable: true,
203
203
  writable: true,
204
204
  initializer: null
205
- }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec16], {
205
+ }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec17], {
206
206
  configurable: true,
207
207
  enumerable: true,
208
208
  writable: true,
209
209
  initializer: null
210
- }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec17], {
210
+ }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec18], {
211
211
  configurable: true,
212
212
  enumerable: true,
213
213
  writable: true,
@@ -21,8 +21,12 @@ var _organisationFeature = _interopRequireDefault(require("./organisation-featur
21
21
 
22
22
  var _loginLink = _interopRequireDefault(require("./login-link"));
23
23
 
24
+ var _webhookTypes = _interopRequireDefault(require("./webhook-types"));
25
+
26
+ var _organisationWebhook = _interopRequireDefault(require("./organisation-webhook"));
27
+
24
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
29
 
26
- const ENTITIES = [_organisation.default, _role.default, _userRole.default, _user.default, _userActivity.default, _feature.default, _organisationFeature.default, _loginLink.default];
30
+ const ENTITIES = [_organisation.default, _role.default, _userRole.default, _user.default, _userActivity.default, _feature.default, _organisationFeature.default, _loginLink.default, _webhookTypes.default, _organisationWebhook.default];
27
31
  var _default = ENTITIES;
28
32
  exports.default = _default;
@@ -11,7 +11,7 @@ var _organisation = _interopRequireDefault(require("../organisation"));
11
11
 
12
12
  var _webhookTypes = _interopRequireDefault(require("../webhook-types"));
13
13
 
14
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
14
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
@@ -41,13 +41,16 @@ let OrganisationWebhook = (_dec = (0, _typeorm.Entity)({
41
41
  name: "webhook_type_id",
42
42
  referencedColumnName: "id"
43
43
  }
44
- }), _dec8 = (0, _typeorm.CreateDateColumn)({
44
+ }), _dec8 = (0, _typeorm.Column)({
45
+ type: "boolean",
46
+ default: false
47
+ }), _dec9 = (0, _typeorm.CreateDateColumn)({
45
48
  type: 'timestamp with time zone',
46
49
  default: () => 'NOW()'
47
- }), _dec9 = (0, _typeorm.UpdateDateColumn)({
50
+ }), _dec10 = (0, _typeorm.UpdateDateColumn)({
48
51
  type: 'timestamp with time zone',
49
52
  default: () => 'NOW()'
50
- }), _dec10 = (0, _typeorm.DeleteDateColumn)({
53
+ }), _dec11 = (0, _typeorm.DeleteDateColumn)({
51
54
  type: 'timestamp with time zone',
52
55
  nullable: true
53
56
  }), _dec(_class = (_class2 = class OrganisationWebhook {
@@ -60,11 +63,13 @@ let OrganisationWebhook = (_dec = (0, _typeorm.Entity)({
60
63
 
61
64
  _initializerDefineProperty(this, "webhook_types", _descriptor4, this);
62
65
 
63
- _initializerDefineProperty(this, "created_at", _descriptor5, this);
66
+ _initializerDefineProperty(this, "child_organisations", _descriptor5, this);
64
67
 
65
- _initializerDefineProperty(this, "updated_at", _descriptor6, this);
68
+ _initializerDefineProperty(this, "created_at", _descriptor6, this);
66
69
 
67
- _initializerDefineProperty(this, "deleted_at", _descriptor7, this);
70
+ _initializerDefineProperty(this, "updated_at", _descriptor7, this);
71
+
72
+ _initializerDefineProperty(this, "deleted_at", _descriptor8, this);
68
73
  }
69
74
 
70
75
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -91,17 +96,22 @@ let OrganisationWebhook = (_dec = (0, _typeorm.Entity)({
91
96
  enumerable: true,
92
97
  writable: true,
93
98
  initializer: null
94
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec8], {
99
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "child_organisations", [_dec8], {
100
+ configurable: true,
101
+ enumerable: true,
102
+ writable: true,
103
+ initializer: null
104
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec9], {
95
105
  configurable: true,
96
106
  enumerable: true,
97
107
  writable: true,
98
108
  initializer: null
99
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec9], {
109
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec10], {
100
110
  configurable: true,
101
111
  enumerable: true,
102
112
  writable: true,
103
113
  initializer: null
104
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec10], {
114
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec11], {
105
115
  configurable: true,
106
116
  enumerable: true,
107
117
  writable: true,
package/dist/index.js CHANGED
@@ -183,6 +183,12 @@ Object.defineProperty(exports, "OrganisationPaymentProviderEntity", {
183
183
  return _organisationPaymentProvider.default;
184
184
  }
185
185
  });
186
+ Object.defineProperty(exports, "OrganisationWebhookEntity", {
187
+ enumerable: true,
188
+ get: function () {
189
+ return _organisationWebhook.default;
190
+ }
191
+ });
186
192
  Object.defineProperty(exports, "PaymentLinkEntity", {
187
193
  enumerable: true,
188
194
  get: function () {
@@ -423,6 +429,12 @@ Object.defineProperty(exports, "WarehouseService", {
423
429
  return _warehouse.default;
424
430
  }
425
431
  });
432
+ Object.defineProperty(exports, "WebhookTypesEntity", {
433
+ enumerable: true,
434
+ get: function () {
435
+ return _webhookTypes.default;
436
+ }
437
+ });
426
438
 
427
439
  var _organisationPaymentProvider = _interopRequireDefault(require("./entity/payment/organisation-payment-provider"));
428
440
 
@@ -532,6 +544,10 @@ var _organisationFeature = _interopRequireDefault(require("./entity/user/organis
532
544
 
533
545
  var _loginLink = _interopRequireDefault(require("./entity/user/login-link"));
534
546
 
547
+ var _webhookTypes = _interopRequireDefault(require("./entity/user/webhook-types"));
548
+
549
+ var _organisationWebhook = _interopRequireDefault(require("./entity/user/organisation-webhook"));
550
+
535
551
  var _transaction5 = _interopRequireDefault(require("./entity/nuvei/transaction"));
536
552
 
537
553
  var _registration = _interopRequireDefault(require("./event/user/registration"));
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class bookingIndex1660137703368 {
4
+ name = 'bookingIndex1660137703368'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`CREATE INDEX "IDX_1b26cef9409d01141c96c86cfa" ON "agent_data"."booking" ("booking_reference") `);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`DROP INDEX "agent_data"."IDX_1b26cef9409d01141c96c86cfa"`);
12
+ }
13
+ }
@@ -0,0 +1,21 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class webhookChildOrgs1660170110686 {
4
+ name = 'webhookChildOrgs1660170110686'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" DROP CONSTRAINT "FK_4ef74efa24be992cd0a1e4b535b"`);
8
+ await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" DROP CONSTRAINT "FK_5e4373e5d6dc38fc8fa54a0a919"`);
9
+ await queryRunner.query(`ALTER TABLE "user"."organisation_webhook" ADD "child_organisations" boolean NOT NULL DEFAULT false`);
10
+ await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" ADD CONSTRAINT "FK_4ef74efa24be992cd0a1e4b535b" FOREIGN KEY ("organisation_webhook_id") REFERENCES "user"."organisation_webhook"("id") ON DELETE CASCADE ON UPDATE CASCADE`);
11
+ await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" ADD CONSTRAINT "FK_5e4373e5d6dc38fc8fa54a0a919" FOREIGN KEY ("webhook_type_id") REFERENCES "user"."webhook_types"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
12
+ }
13
+
14
+ async down(queryRunner) {
15
+ await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" DROP CONSTRAINT "FK_5e4373e5d6dc38fc8fa54a0a919"`);
16
+ await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" DROP CONSTRAINT "FK_4ef74efa24be992cd0a1e4b535b"`);
17
+ await queryRunner.query(`ALTER TABLE "user"."organisation_webhook" DROP COLUMN "child_organisations"`);
18
+ await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" ADD CONSTRAINT "FK_5e4373e5d6dc38fc8fa54a0a919" FOREIGN KEY ("webhook_type_id") REFERENCES "user"."webhook_types"("id") ON DELETE CASCADE ON UPDATE CASCADE`);
19
+ await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" ADD CONSTRAINT "FK_4ef74efa24be992cd0a1e4b535b" FOREIGN KEY ("organisation_webhook_id") REFERENCES "user"."organisation_webhook"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
20
+ }
21
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.1.63",
3
+ "version": "1.1.66",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {