@felloh-org/lambda-wrapper 1.11.41 → 1.11.42
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/babel.config.js +2 -1
- package/dist/config/dependencies.js +5 -7
- package/dist/entity/acquirer/adjustment/index.js +2 -3
- package/dist/entity/acquirer/batch/index.js +2 -3
- package/dist/entity/acquirer/bin/index.js +2 -3
- package/dist/entity/acquirer/bin-rules/index.js +2 -3
- package/dist/entity/acquirer/index.js +2 -2
- package/dist/entity/acquirer/transaction-settlement/index.js +2 -3
- package/dist/entity/agent-data/booking/index.js +2 -3
- package/dist/entity/agent-data/booking-bank-transaction/index.js +2 -3
- package/dist/entity/agent-data/booking-component/index.js +2 -3
- package/dist/entity/agent-data/booking-component-type/index.js +2 -3
- package/dist/entity/agent-data/booking-package-type/index.js +2 -3
- package/dist/entity/agent-data/index.js +2 -2
- package/dist/entity/agent-data/supplier/index.js +2 -3
- package/dist/entity/agent-data/supplier-type/index.js +2 -3
- package/dist/entity/bank/account/index.js +2 -3
- package/dist/entity/bank/adjustment/index.js +2 -3
- package/dist/entity/bank/amendment/index.js +2 -3
- package/dist/entity/bank/beneficiary/index.js +2 -3
- package/dist/entity/bank/currency/index.js +3 -5
- package/dist/entity/bank/disbursal/index.js +2 -3
- package/dist/entity/bank/index.js +2 -2
- package/dist/entity/bank/ledger/index.js +2 -3
- package/dist/entity/bank/settled-transaction/index.js +2 -3
- package/dist/entity/bank/transaction-batch/index.js +2 -3
- package/dist/entity/bank/vendor/index.js +2 -3
- package/dist/entity/index.js +2 -2
- package/dist/entity/nuapay/account/index.js +2 -3
- package/dist/entity/nuapay/balance/index.js +2 -3
- package/dist/entity/nuapay/beneficiary/index.js +2 -3
- package/dist/entity/nuapay/index.js +2 -2
- package/dist/entity/nuapay/transaction/index.js +2 -3
- package/dist/entity/nuvei/batch/index.js +2 -3
- package/dist/entity/nuvei/index.js +2 -2
- package/dist/entity/nuvei/merchant/index.js +2 -3
- package/dist/entity/nuvei/transaction/index.js +2 -3
- package/dist/entity/nuvei/transaction-metadata/index.js +2 -3
- package/dist/entity/operations/fingerprint-exclusion/index.js +2 -3
- package/dist/entity/operations/index.js +2 -2
- package/dist/entity/operations/ip-exclusion/index.js +2 -3
- package/dist/entity/payment/chargeback/index.js +2 -3
- package/dist/entity/payment/credit-note/index.js +2 -3
- package/dist/entity/payment/customer/index.js +2 -3
- package/dist/entity/payment/ecommerce/index.js +2 -3
- package/dist/entity/payment/index.js +2 -2
- package/dist/entity/payment/organisation-payment-provider/index.js +2 -3
- package/dist/entity/payment/organisation-payment-provider-method/index.js +2 -3
- package/dist/entity/payment/payment-link/index.js +2 -3
- package/dist/entity/payment/payment-link-type/index.js +2 -3
- package/dist/entity/payment/payment-provider/index.js +3 -5
- package/dist/entity/payment/refund/index.js +2 -3
- package/dist/entity/payment/refund-status/index.js +2 -3
- package/dist/entity/payment/tokenisation-provider/index.js +2 -3
- package/dist/entity/payment/transaction/index.js +2 -3
- package/dist/entity/payment/transaction-event/index.js +2 -3
- package/dist/entity/payment/transaction-event-type/index.js +2 -3
- package/dist/entity/payment/transaction-metadata/index.js +2 -3
- package/dist/entity/payment/transaction-method/index.js +2 -3
- package/dist/entity/payment/transaction-reason/index.js +2 -3
- package/dist/entity/payment/transaction-source/index.js +2 -3
- package/dist/entity/payment/transaction-status/index.js +2 -3
- package/dist/entity/payment/transaction-type/index.js +2 -3
- package/dist/entity/reference/country/index.js +2 -3
- package/dist/entity/reference/index.js +2 -2
- package/dist/entity/saltedge/account/index.js +2 -3
- package/dist/entity/saltedge/connection/index.js +2 -3
- package/dist/entity/saltedge/customer/index.js +2 -3
- package/dist/entity/saltedge/index.js +2 -2
- package/dist/entity/saltedge/lead/index.js +2 -3
- package/dist/entity/saltedge/transaction/index.js +2 -3
- package/dist/entity/scratch/abta-members/index.js +2 -3
- package/dist/entity/scratch/index.js +2 -2
- package/dist/entity/token/index.js +2 -2
- package/dist/entity/token/token/index.js +2 -3
- package/dist/entity/total-processing/index.js +2 -2
- package/dist/entity/total-processing/transaction/index.js +2 -3
- package/dist/entity/total-processing/transaction-metadata/index.js +2 -3
- package/dist/entity/trust-payments/account-fees/index.js +2 -3
- package/dist/entity/trust-payments/adjustment/index.js +2 -3
- package/dist/entity/trust-payments/batch/index.js +2 -3
- package/dist/entity/trust-payments/chargeback/index.js +2 -3
- package/dist/entity/trust-payments/index.js +2 -2
- package/dist/entity/trust-payments/ingested-data/index.js +2 -3
- package/dist/entity/trust-payments/merchant/index.js +2 -3
- package/dist/entity/trust-payments/transaction/index.js +2 -3
- package/dist/entity/trust-payments/transaction-charges/index.js +2 -3
- package/dist/entity/user/feature/index.js +2 -3
- package/dist/entity/user/index.js +2 -2
- package/dist/entity/user/login-link/index.js +3 -5
- package/dist/entity/user/organisation/index.js +2 -3
- package/dist/entity/user/organisation-feature/index.js +2 -3
- package/dist/entity/user/organisation-partner/index.js +2 -3
- package/dist/entity/user/organisation-payout-config/index.js +2 -3
- package/dist/entity/user/organisation-type/index.js +2 -3
- package/dist/entity/user/organisation-webhook/index.js +2 -3
- package/dist/entity/user/role/index.js +2 -3
- package/dist/entity/user/user/index.js +3 -5
- package/dist/entity/user/user-activity/index.js +2 -3
- package/dist/entity/user/user-role/index.js +2 -3
- package/dist/entity/user/webhook-types/index.js +2 -3
- package/dist/enums/payment-initation-types/index.js +3 -3
- package/dist/event/base-event/index.js +1 -2
- package/dist/event/csv/email/index.js +1 -2
- package/dist/event/posc/request/index.js +1 -2
- package/dist/event/transaction/complete/email/index.js +1 -2
- package/dist/event/transaction/complete/index.js +1 -2
- package/dist/event/transaction/refund-request/index.js +1 -2
- package/dist/event/user/password/changed/index.js +1 -2
- package/dist/event/user/password/reset/index.js +1 -2
- package/dist/event/user/registration/index.js +1 -2
- package/dist/event/user/sandbox-registration/index.js +1 -2
- package/dist/model/response/index.js +1 -3
- package/dist/model/response/status-codes.js +2 -2
- package/dist/model/status/index.js +1 -3
- package/dist/service/http.js +1 -3
- package/dist/service/request.js +3 -7
- package/dist/wrapper/index.js +2 -9
- package/package.json +2 -1
|
@@ -19,7 +19,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
19
19
|
|
|
20
20
|
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.'); }
|
|
21
21
|
|
|
22
|
-
let Batch = (_dec = (0, _typeorm.Entity)({
|
|
22
|
+
let Batch = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
23
23
|
name: 'batch',
|
|
24
24
|
schema: 'trust_payments'
|
|
25
25
|
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _merchant.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
@@ -81,5 +81,4 @@ let Batch = (_dec = (0, _typeorm.Entity)({
|
|
|
81
81
|
enumerable: true,
|
|
82
82
|
writable: true,
|
|
83
83
|
initializer: null
|
|
84
|
-
})), _class2)) || _class);
|
|
85
|
-
exports.default = Batch;
|
|
84
|
+
})), _class2)) || _class);
|
|
@@ -21,7 +21,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
21
21
|
|
|
22
22
|
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.'); }
|
|
23
23
|
|
|
24
|
-
let Chargeback = (_dec = (0, _typeorm.Entity)({
|
|
24
|
+
let Chargeback = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
25
25
|
name: 'chargeback',
|
|
26
26
|
schema: 'trust_payments'
|
|
27
27
|
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
|
|
@@ -125,5 +125,4 @@ let Chargeback = (_dec = (0, _typeorm.Entity)({
|
|
|
125
125
|
enumerable: true,
|
|
126
126
|
writable: true,
|
|
127
127
|
initializer: null
|
|
128
|
-
})), _class2)) || _class);
|
|
129
|
-
exports.default = Chargeback;
|
|
128
|
+
})), _class2)) || _class);
|
|
@@ -24,5 +24,5 @@ var _adjustment = _interopRequireDefault(require("./adjustment"));
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
26
26
|
const ENTITIES = [_batch.default, _merchant.default, _transaction.default, _chargeback.default, _ingestedData.default, _transactionCharges.default, _accountFees.default, _adjustment.default];
|
|
27
|
-
|
|
28
|
-
exports.default =
|
|
27
|
+
|
|
28
|
+
var _default = exports.default = ENTITIES;
|
|
@@ -21,7 +21,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
21
21
|
|
|
22
22
|
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.'); }
|
|
23
23
|
|
|
24
|
-
let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
24
|
+
let Transaction = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
25
25
|
name: 'ingested_data',
|
|
26
26
|
schema: 'trust_payments'
|
|
27
27
|
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
|
|
@@ -53,5 +53,4 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
53
53
|
enumerable: true,
|
|
54
54
|
writable: true,
|
|
55
55
|
initializer: null
|
|
56
|
-
})), _class2)) || _class);
|
|
57
|
-
exports.default = Transaction;
|
|
56
|
+
})), _class2)) || _class);
|
|
@@ -19,7 +19,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
19
19
|
|
|
20
20
|
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.'); }
|
|
21
21
|
|
|
22
|
-
let Merchant = (_dec = (0, _typeorm.Entity)({
|
|
22
|
+
let Merchant = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
23
23
|
name: 'merchant',
|
|
24
24
|
schema: 'trust_payments'
|
|
25
25
|
}), _dec2 = (0, _typeorm.PrimaryColumn)({
|
|
@@ -136,5 +136,4 @@ let Merchant = (_dec = (0, _typeorm.Entity)({
|
|
|
136
136
|
enumerable: true,
|
|
137
137
|
writable: true,
|
|
138
138
|
initializer: null
|
|
139
|
-
})), _class2)) || _class);
|
|
140
|
-
exports.default = Merchant;
|
|
139
|
+
})), _class2)) || _class);
|
|
@@ -21,7 +21,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
21
21
|
|
|
22
22
|
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.'); }
|
|
23
23
|
|
|
24
|
-
let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
24
|
+
let Transaction = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
25
25
|
name: 'transaction',
|
|
26
26
|
schema: 'trust_payments'
|
|
27
27
|
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _batch.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
@@ -180,5 +180,4 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
180
180
|
enumerable: true,
|
|
181
181
|
writable: true,
|
|
182
182
|
initializer: null
|
|
183
|
-
})), _class2)) || _class);
|
|
184
|
-
exports.default = Transaction;
|
|
183
|
+
})), _class2)) || _class);
|
|
@@ -19,7 +19,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
19
19
|
|
|
20
20
|
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.'); }
|
|
21
21
|
|
|
22
|
-
let TransactionCharges = (_dec = (0, _typeorm.Entity)({
|
|
22
|
+
let TransactionCharges = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
23
23
|
name: 'transaction_charges',
|
|
24
24
|
schema: 'trust_payments'
|
|
25
25
|
}), _dec2 = (0, _typeorm.ManyToOne)(() => _transaction.default, {
|
|
@@ -78,5 +78,4 @@ let TransactionCharges = (_dec = (0, _typeorm.Entity)({
|
|
|
78
78
|
enumerable: true,
|
|
79
79
|
writable: true,
|
|
80
80
|
initializer: null
|
|
81
|
-
})), _class2)) || _class);
|
|
82
|
-
exports.default = TransactionCharges;
|
|
81
|
+
})), _class2)) || _class);
|
|
@@ -15,7 +15,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
15
15
|
|
|
16
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
17
|
|
|
18
|
-
let Feature = (_dec = (0, _typeorm.Entity)({
|
|
18
|
+
let Feature = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
19
19
|
name: 'feature',
|
|
20
20
|
schema: 'user'
|
|
21
21
|
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
|
|
@@ -84,5 +84,4 @@ let Feature = (_dec = (0, _typeorm.Entity)({
|
|
|
84
84
|
enumerable: true,
|
|
85
85
|
writable: true,
|
|
86
86
|
initializer: null
|
|
87
|
-
})), _class2)) || _class);
|
|
88
|
-
exports.default = Feature;
|
|
87
|
+
})), _class2)) || _class);
|
|
@@ -34,5 +34,5 @@ var _organisationPartner = _interopRequireDefault(require("./organisation-partne
|
|
|
34
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
35
|
|
|
36
36
|
const ENTITIES = [_organisation.default, _role.default, _userRole.default, _user.default, _userActivity.default, _feature.default, _organisationFeature.default, _loginLink.default, _webhookTypes.default, _organisationWebhook.default, _organisationPayoutConfig.default, _organisationType.default, _organisationPartner.default];
|
|
37
|
-
|
|
38
|
-
exports.default =
|
|
37
|
+
|
|
38
|
+
var _default = exports.default = ENTITIES;
|
|
@@ -21,9 +21,8 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
21
21
|
|
|
22
22
|
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.'); }
|
|
23
23
|
|
|
24
|
-
const EXPIRATION_DAYS = 3;
|
|
25
|
-
exports.
|
|
26
|
-
let LoginLink = (_dec = (0, _typeorm.Entity)({
|
|
24
|
+
const EXPIRATION_DAYS = exports.EXPIRATION_DAYS = 3;
|
|
25
|
+
let LoginLink = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
27
26
|
name: 'login_link',
|
|
28
27
|
schema: 'user'
|
|
29
28
|
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _user.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
@@ -80,5 +79,4 @@ let LoginLink = (_dec = (0, _typeorm.Entity)({
|
|
|
80
79
|
initializer: function () {
|
|
81
80
|
return false;
|
|
82
81
|
}
|
|
83
|
-
})), _class2)) || _class);
|
|
84
|
-
exports.default = LoginLink;
|
|
82
|
+
})), _class2)) || _class);
|
|
@@ -23,7 +23,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
23
23
|
|
|
24
24
|
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.'); }
|
|
25
25
|
|
|
26
|
-
let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
26
|
+
let Organisation = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
27
27
|
name: 'organisation',
|
|
28
28
|
schema: 'user'
|
|
29
29
|
}), _dec2 = (0, _typeorm.Tree)("closure-table"), _dec3 = (0, _typeorm.PrimaryColumn)({
|
|
@@ -226,5 +226,4 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
|
226
226
|
initializer: function () {
|
|
227
227
|
return false;
|
|
228
228
|
}
|
|
229
|
-
})), _class2)) || _class) || _class);
|
|
230
|
-
exports.default = Organisation;
|
|
229
|
+
})), _class2)) || _class) || _class);
|
|
@@ -21,7 +21,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
21
21
|
|
|
22
22
|
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.'); }
|
|
23
23
|
|
|
24
|
-
let OrganisationFeature = (_dec = (0, _typeorm.Entity)({
|
|
24
|
+
let OrganisationFeature = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
25
25
|
name: 'organisation_feature',
|
|
26
26
|
schema: 'user'
|
|
27
27
|
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
@@ -65,5 +65,4 @@ let OrganisationFeature = (_dec = (0, _typeorm.Entity)({
|
|
|
65
65
|
enumerable: true,
|
|
66
66
|
writable: true,
|
|
67
67
|
initializer: null
|
|
68
|
-
})), _class2)) || _class);
|
|
69
|
-
exports.default = OrganisationFeature;
|
|
68
|
+
})), _class2)) || _class);
|
|
@@ -19,7 +19,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
19
19
|
|
|
20
20
|
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.'); }
|
|
21
21
|
|
|
22
|
-
let OrganisationPartner = (_dec = (0, _typeorm.Entity)({
|
|
22
|
+
let OrganisationPartner = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
23
23
|
name: 'organisation_partner',
|
|
24
24
|
schema: 'user'
|
|
25
25
|
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
@@ -63,5 +63,4 @@ let OrganisationPartner = (_dec = (0, _typeorm.Entity)({
|
|
|
63
63
|
enumerable: true,
|
|
64
64
|
writable: true,
|
|
65
65
|
initializer: null
|
|
66
|
-
})), _class2)) || _class);
|
|
67
|
-
exports.default = OrganisationPartner;
|
|
66
|
+
})), _class2)) || _class);
|
|
@@ -19,7 +19,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
19
19
|
|
|
20
20
|
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.'); }
|
|
21
21
|
|
|
22
|
-
let OrganisationPayoutConfig = (_dec = (0, _typeorm.Entity)({
|
|
22
|
+
let OrganisationPayoutConfig = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
23
23
|
name: 'organisation_payout_config',
|
|
24
24
|
schema: 'user'
|
|
25
25
|
}), _dec2 = (0, _typeorm.ManyToOne)(() => _organisation.default, {
|
|
@@ -81,5 +81,4 @@ let OrganisationPayoutConfig = (_dec = (0, _typeorm.Entity)({
|
|
|
81
81
|
enumerable: true,
|
|
82
82
|
writable: true,
|
|
83
83
|
initializer: null
|
|
84
|
-
})), _class2)) || _class);
|
|
85
|
-
exports.default = OrganisationPayoutConfig;
|
|
84
|
+
})), _class2)) || _class);
|
|
@@ -15,7 +15,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
15
15
|
|
|
16
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
17
|
|
|
18
|
-
let OrganisationType = (_dec = (0, _typeorm.Entity)({
|
|
18
|
+
let OrganisationType = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
19
19
|
name: 'organisation_type',
|
|
20
20
|
schema: 'user'
|
|
21
21
|
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
|
|
@@ -40,5 +40,4 @@ let OrganisationType = (_dec = (0, _typeorm.Entity)({
|
|
|
40
40
|
initializer: function () {
|
|
41
41
|
return "";
|
|
42
42
|
}
|
|
43
|
-
})), _class2)) || _class);
|
|
44
|
-
exports.default = OrganisationType;
|
|
43
|
+
})), _class2)) || _class);
|
|
@@ -21,7 +21,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
21
21
|
|
|
22
22
|
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.'); }
|
|
23
23
|
|
|
24
|
-
let OrganisationWebhook = (_dec = (0, _typeorm.Entity)({
|
|
24
|
+
let OrganisationWebhook = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
25
25
|
name: 'organisation_webhook',
|
|
26
26
|
schema: 'user'
|
|
27
27
|
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
@@ -116,5 +116,4 @@ let OrganisationWebhook = (_dec = (0, _typeorm.Entity)({
|
|
|
116
116
|
enumerable: true,
|
|
117
117
|
writable: true,
|
|
118
118
|
initializer: null
|
|
119
|
-
})), _class2)) || _class);
|
|
120
|
-
exports.default = OrganisationWebhook;
|
|
119
|
+
})), _class2)) || _class);
|
|
@@ -19,7 +19,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
19
19
|
|
|
20
20
|
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.'); }
|
|
21
21
|
|
|
22
|
-
let Role = (_dec = (0, _typeorm.Entity)({
|
|
22
|
+
let Role = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
23
23
|
name: 'role',
|
|
24
24
|
schema: 'user'
|
|
25
25
|
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
|
|
@@ -121,5 +121,4 @@ let Role = (_dec = (0, _typeorm.Entity)({
|
|
|
121
121
|
enumerable: true,
|
|
122
122
|
writable: true,
|
|
123
123
|
initializer: null
|
|
124
|
-
})), _class2)) || _class);
|
|
125
|
-
exports.default = Role;
|
|
124
|
+
})), _class2)) || _class);
|
|
@@ -19,14 +19,13 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
19
19
|
|
|
20
20
|
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.'); }
|
|
21
21
|
|
|
22
|
-
const USER_STATUS = {
|
|
22
|
+
const USER_STATUS = exports.USER_STATUS = {
|
|
23
23
|
ACTIVE: 'ACTIVE',
|
|
24
24
|
PENDING: 'PENDING',
|
|
25
25
|
SUSPENDED: 'SUSPENDED',
|
|
26
26
|
DELETED: 'DELETED'
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
let User = (_dec = (0, _typeorm.Entity)({
|
|
28
|
+
let User = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
30
29
|
name: 'user',
|
|
31
30
|
schema: 'user'
|
|
32
31
|
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Index)(), _dec4 = (0, _typeorm.Column)({
|
|
@@ -216,5 +215,4 @@ let User = (_dec = (0, _typeorm.Entity)({
|
|
|
216
215
|
initializer: function () {
|
|
217
216
|
return false;
|
|
218
217
|
}
|
|
219
|
-
})), _class2)) || _class);
|
|
220
|
-
exports.default = User;
|
|
218
|
+
})), _class2)) || _class);
|
|
@@ -21,7 +21,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
21
21
|
|
|
22
22
|
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.'); }
|
|
23
23
|
|
|
24
|
-
let UserActivity = (_dec = (0, _typeorm.Entity)({
|
|
24
|
+
let UserActivity = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
25
25
|
name: 'user_activity',
|
|
26
26
|
schema: 'user'
|
|
27
27
|
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _user.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
@@ -113,5 +113,4 @@ let UserActivity = (_dec = (0, _typeorm.Entity)({
|
|
|
113
113
|
enumerable: true,
|
|
114
114
|
writable: true,
|
|
115
115
|
initializer: null
|
|
116
|
-
})), _class2)) || _class);
|
|
117
|
-
exports.default = UserActivity;
|
|
116
|
+
})), _class2)) || _class);
|
|
@@ -23,7 +23,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
23
23
|
|
|
24
24
|
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.'); }
|
|
25
25
|
|
|
26
|
-
let UserRole = (_dec = (0, _typeorm.Entity)({
|
|
26
|
+
let UserRole = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
27
27
|
name: 'user_role',
|
|
28
28
|
schema: 'user'
|
|
29
29
|
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.ManyToOne)(() => _user.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
@@ -79,5 +79,4 @@ let UserRole = (_dec = (0, _typeorm.Entity)({
|
|
|
79
79
|
enumerable: true,
|
|
80
80
|
writable: true,
|
|
81
81
|
initializer: null
|
|
82
|
-
})), _class2)) || _class);
|
|
83
|
-
exports.default = UserRole;
|
|
82
|
+
})), _class2)) || _class);
|
|
@@ -19,7 +19,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
19
19
|
|
|
20
20
|
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.'); }
|
|
21
21
|
|
|
22
|
-
let WebhookTypes = (_dec = (0, _typeorm.Entity)({
|
|
22
|
+
let WebhookTypes = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
23
23
|
name: 'webhook_types',
|
|
24
24
|
schema: 'user'
|
|
25
25
|
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
|
|
@@ -116,5 +116,4 @@ let WebhookTypes = (_dec = (0, _typeorm.Entity)({
|
|
|
116
116
|
enumerable: true,
|
|
117
117
|
writable: true,
|
|
118
118
|
initializer: null
|
|
119
|
-
})), _class2)) || _class);
|
|
120
|
-
exports.default = WebhookTypes;
|
|
119
|
+
})), _class2)) || _class);
|
|
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
*
|
|
18
18
|
* @type {object}
|
|
19
19
|
*/
|
|
20
|
-
const RESPONSE_HEADERS = {
|
|
20
|
+
const RESPONSE_HEADERS = exports.RESPONSE_HEADERS = {
|
|
21
21
|
'Content-Type': 'application/json',
|
|
22
22
|
'Access-Control-Allow-Origin': '*',
|
|
23
23
|
// Required for CORS support to work
|
|
@@ -28,8 +28,6 @@ const RESPONSE_HEADERS = {
|
|
|
28
28
|
* class ResponseModel
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
exports.RESPONSE_HEADERS = RESPONSE_HEADERS;
|
|
32
|
-
|
|
33
31
|
class Index extends _.default {
|
|
34
32
|
/**
|
|
35
33
|
* ResponseModel Constructor
|
|
@@ -70,5 +70,5 @@ const ERRORS = {
|
|
|
70
70
|
message: 'The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request. Try again later.'
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
|
|
74
|
-
exports.default =
|
|
73
|
+
|
|
74
|
+
var _default = exports.default = ERRORS;
|
|
@@ -9,7 +9,7 @@ var _index = _interopRequireDefault(require("../index"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
const STATUS_TYPES = {
|
|
12
|
+
const STATUS_TYPES = exports.STATUS_TYPES = {
|
|
13
13
|
OK: 'OK',
|
|
14
14
|
ACCEPTABLE_FAILURE: 'ACCEPTABLE_FAILURE',
|
|
15
15
|
APPLICATION_FAILURE: 'APPLICATION_FAILURE'
|
|
@@ -18,8 +18,6 @@ const STATUS_TYPES = {
|
|
|
18
18
|
* StatusModel Class
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
exports.STATUS_TYPES = STATUS_TYPES;
|
|
22
|
-
|
|
23
21
|
class Index extends _index.default {
|
|
24
22
|
/**
|
|
25
23
|
* StatusModel constructor
|
package/dist/service/http.js
CHANGED
|
@@ -11,13 +11,11 @@ var _dependencyAware = _interopRequireDefault(require("../dependency-injection/d
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
const DEFAULT_HTTP_TIMEOUT = 10 * 1000;
|
|
14
|
+
const DEFAULT_HTTP_TIMEOUT = exports.DEFAULT_HTTP_TIMEOUT = 10 * 1000;
|
|
15
15
|
/**
|
|
16
16
|
* HTTPService class
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
exports.DEFAULT_HTTP_TIMEOUT = DEFAULT_HTTP_TIMEOUT;
|
|
20
|
-
|
|
21
19
|
class Http extends _dependencyAware.default {
|
|
22
20
|
constructor(di) {
|
|
23
21
|
super(di);
|
package/dist/service/request.js
CHANGED
|
@@ -31,7 +31,7 @@ _validate.default.extend(_validate.default.validators.datetime, {
|
|
|
31
31
|
format: (value, options) => _moment.default.utc(value).format(options.dateOnly ? 'YYYY-MM-DD' : 'YYYY-MM-DD hh:mm:ss')
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
const REQUEST_TYPES = {
|
|
34
|
+
const REQUEST_TYPES = exports.REQUEST_TYPES = {
|
|
35
35
|
DELETE: 'DELETE',
|
|
36
36
|
GET: 'GET',
|
|
37
37
|
HEAD: 'HEAD',
|
|
@@ -40,16 +40,12 @@ const REQUEST_TYPES = {
|
|
|
40
40
|
POST: 'POST',
|
|
41
41
|
PUT: 'PUT'
|
|
42
42
|
};
|
|
43
|
-
exports.
|
|
44
|
-
const
|
|
45
|
-
exports.HTTP_METHODS_WITHOUT_PAYLOADS = HTTP_METHODS_WITHOUT_PAYLOADS;
|
|
46
|
-
const HTTP_METHODS_WITH_PAYLOADS = [REQUEST_TYPES.PATCH, REQUEST_TYPES.POST, REQUEST_TYPES.PUT];
|
|
43
|
+
const HTTP_METHODS_WITHOUT_PAYLOADS = exports.HTTP_METHODS_WITHOUT_PAYLOADS = [REQUEST_TYPES.DELETE, REQUEST_TYPES.GET, REQUEST_TYPES.HEAD, REQUEST_TYPES.OPTIONS];
|
|
44
|
+
const HTTP_METHODS_WITH_PAYLOADS = exports.HTTP_METHODS_WITH_PAYLOADS = [REQUEST_TYPES.PATCH, REQUEST_TYPES.POST, REQUEST_TYPES.PUT];
|
|
47
45
|
/**
|
|
48
46
|
* RequestService class
|
|
49
47
|
*/
|
|
50
48
|
|
|
51
|
-
exports.HTTP_METHODS_WITH_PAYLOADS = HTTP_METHODS_WITH_PAYLOADS;
|
|
52
|
-
|
|
53
49
|
class Request extends _dependencyAware.default {
|
|
54
50
|
/**
|
|
55
51
|
* Get a parameter from the request.
|
package/dist/wrapper/index.js
CHANGED
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.handleSuccess = exports.handleError = exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _lambdaNodeOpentelemetry = _interopRequireDefault(require("@baselime/lambda-node-opentelemetry"));
|
|
9
|
-
|
|
10
8
|
var _dependencies = require("../config/dependencies");
|
|
11
9
|
|
|
12
10
|
var _dependencyInjection = _interopRequireDefault(require("../dependency-injection/dependency-injection"));
|
|
@@ -85,7 +83,7 @@ const handleError = (di, error) => {
|
|
|
85
83
|
exports.handleError = handleError;
|
|
86
84
|
|
|
87
85
|
const wrapper = (configuration, handler, throwError = false) => {
|
|
88
|
-
|
|
86
|
+
const instance = (event, context, callback) => {
|
|
89
87
|
const di = new _dependencyInjection.default(configuration, event, context);
|
|
90
88
|
const request = di.get(_dependencies.DEFINITIONS.REQUEST);
|
|
91
89
|
const logger = di.get(_dependencies.DEFINITIONS.LOGGER);
|
|
@@ -136,12 +134,7 @@ const wrapper = (configuration, handler, throwError = false) => {
|
|
|
136
134
|
return outcome;
|
|
137
135
|
};
|
|
138
136
|
|
|
139
|
-
if (typeof process.env.BASELIME_KEY !== 'undefined') {
|
|
140
|
-
instance = _lambdaNodeOpentelemetry.default.wrap(instance);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
137
|
return instance;
|
|
144
138
|
};
|
|
145
139
|
|
|
146
|
-
var _default = wrapper;
|
|
147
|
-
exports.default = _default;
|
|
140
|
+
var _default = exports.default = wrapper;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@felloh-org/lambda-wrapper",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.42",
|
|
4
4
|
"description": "Lambda wrapper for all Felloh Serverless Projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
32
32
|
"@babel/plugin-syntax-flow": "^7.16.7",
|
|
33
33
|
"@babel/plugin-transform-flow-strip-types": "^7.16.7",
|
|
34
|
+
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
|
|
34
35
|
"@babel/preset-env": "^7.16.11",
|
|
35
36
|
"@felloh-org/eslint-config": "^1.0.2",
|
|
36
37
|
"@types/jest": "^27.4.1",
|