@felloh-org/lambda-wrapper 1.11.15 → 1.11.17

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.
@@ -41,8 +41,10 @@ var _ecommerce = _interopRequireDefault(require("./ecommerce"));
41
41
 
42
42
  var _paymentLinkType = _interopRequireDefault(require("./payment-link-type"));
43
43
 
44
+ var _tokenisationProvider = _interopRequireDefault(require("./tokenisation-provider"));
45
+
44
46
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
45
47
 
46
- const ENTITIES = [_chargeback.default, _customer.default, _organisationPaymentProvider.default, _organisationPaymentProviderMethod.default, _paymentLink.default, _paymentProvider.default, _transaction.default, _transactionEvent.default, _transactionEventType.default, _transactionMethod.default, _transactionStatus.default, _transactionSource.default, _transactionType.default, _transactionMetadata.default, _transactionReason.default, _creditNote.default, _ecommerce.default, _paymentLinkType.default];
48
+ const ENTITIES = [_chargeback.default, _customer.default, _organisationPaymentProvider.default, _organisationPaymentProviderMethod.default, _paymentLink.default, _paymentProvider.default, _tokenisationProvider.default, _transaction.default, _transactionEvent.default, _transactionEventType.default, _transactionMethod.default, _transactionStatus.default, _transactionSource.default, _transactionType.default, _transactionMetadata.default, _transactionReason.default, _creditNote.default, _ecommerce.default, _paymentLinkType.default];
47
49
  var _default = ENTITIES;
48
50
  exports.default = _default;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _typeorm = require("typeorm");
9
+
10
+ var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
11
+
12
+ function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
13
+
14
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
15
+
16
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
17
+
18
+ let TokenisationProvider = (_dec = (0, _typeorm.Entity)({
19
+ name: 'tokenisation_provider',
20
+ schema: 'payment'
21
+ }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class TokenisationProvider {
22
+ constructor() {
23
+ _initializerDefineProperty(this, "id", _descriptor, this);
24
+
25
+ _initializerDefineProperty(this, "created_at", _descriptor2, this);
26
+ }
27
+
28
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
29
+ configurable: true,
30
+ enumerable: true,
31
+ writable: true,
32
+ initializer: null
33
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec3], {
34
+ configurable: true,
35
+ enumerable: true,
36
+ writable: true,
37
+ initializer: null
38
+ })), _class2)) || _class);
39
+ exports.default = TokenisationProvider;
@@ -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.DeleteDateColumn)(), _dec10 = (0, _typeorm.ManyToMany)(() => _user.default, users => users.organisations), _dec11 = (0, _typeorm.JoinTable)({
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
- }), _dec12 = (0, _typeorm.TreeParent)(), _dec13 = (0, _typeorm.TreeChildren)(), _dec14 = (0, _typeorm.OneToMany)(() => _organisationFeature.default, organisationFeature => organisationFeature.organisation), _dec15 = (0, _typeorm.ManyToOne)(() => _organisationType.default), _dec16 = (0, _typeorm.JoinColumn)({
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
- }), _dec17 = (0, _typeorm.Column)({
60
+ }), _dec18 = (0, _typeorm.Column)({
58
61
  type: "boolean",
59
62
  default: false
60
- }), _dec18 = (0, _typeorm.Column)({
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, "deleted_at", _descriptor7, this);
80
+ _initializerDefineProperty(this, "archived_at", _descriptor7, this);
81
+
82
+ _initializerDefineProperty(this, "deleted_at", _descriptor8, this);
78
83
 
79
- _initializerDefineProperty(this, "users", _descriptor8, this);
84
+ _initializerDefineProperty(this, "users", _descriptor9, this);
80
85
 
81
- _initializerDefineProperty(this, "parent", _descriptor9, this);
86
+ _initializerDefineProperty(this, "parent", _descriptor10, this);
82
87
 
83
- _initializerDefineProperty(this, "children", _descriptor10, this);
88
+ _initializerDefineProperty(this, "children", _descriptor11, this);
84
89
 
85
- _initializerDefineProperty(this, "organisation_feature", _descriptor11, this);
90
+ _initializerDefineProperty(this, "organisation_feature", _descriptor12, this);
86
91
 
87
- _initializerDefineProperty(this, "organisation_type", _descriptor12, this);
92
+ _initializerDefineProperty(this, "organisation_type", _descriptor13, this);
88
93
 
89
- _initializerDefineProperty(this, "unpaid_invoice", _descriptor13, this);
94
+ _initializerDefineProperty(this, "unpaid_invoice", _descriptor14, this);
90
95
 
91
- _initializerDefineProperty(this, "billing_enabled", _descriptor14, this);
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, "deleted_at", [_dec9], {
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
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "users", [_dec10, _dec11], {
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
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec12], {
193
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec13], {
184
194
  configurable: true,
185
195
  enumerable: true,
186
196
  writable: true,
187
197
  initializer: null
188
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec13], {
198
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec14], {
189
199
  configurable: true,
190
200
  enumerable: true,
191
201
  writable: true,
192
202
  initializer: null
193
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "organisation_feature", [_dec14], {
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
- }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "organisation_type", [_dec15, _dec16], {
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
- }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "unpaid_invoice", [_dec17], {
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
- }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "billing_enabled", [_dec18], {
222
+ }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "billing_enabled", [_dec19], {
213
223
  configurable: true,
214
224
  enumerable: true,
215
225
  writable: true,
package/dist/index.js CHANGED
@@ -495,6 +495,12 @@ Object.defineProperty(exports, "TokenEntity", {
495
495
  return _token.default;
496
496
  }
497
497
  });
498
+ Object.defineProperty(exports, "TokenisationProvider", {
499
+ enumerable: true,
500
+ get: function () {
501
+ return _tokenisationProvider.default;
502
+ }
503
+ });
498
504
  Object.defineProperty(exports, "TransactionBatchEntity", {
499
505
  enumerable: true,
500
506
  get: function () {
@@ -706,6 +712,8 @@ var _paymentLinkType = _interopRequireDefault(require("./entity/payment/payment-
706
712
 
707
713
  var _paymentProvider = _interopRequireDefault(require("./entity/payment/payment-provider"));
708
714
 
715
+ var _tokenisationProvider = _interopRequireDefault(require("./entity/payment/tokenisation-provider"));
716
+
709
717
  var _transaction2 = _interopRequireDefault(require("./entity/payment/transaction"));
710
718
 
711
719
  var _transactionEvent = _interopRequireDefault(require("./entity/payment/transaction-event"));
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class tokenisationProvider1692783372591 {
4
+ name = 'tokenisationProvider1692783372591'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`CREATE TABLE "payment"."tokenisation_provider" ("id" character varying NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_a457929a9d0ac1201dec84496ca" PRIMARY KEY ("id"))`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`DROP TABLE "payment"."tokenisation_provider"`);
12
+ }
13
+ }
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.15",
3
+ "version": "1.11.17",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {