@felloh-org/lambda-wrapper 1.11.71 → 1.11.72
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.
|
@@ -49,8 +49,10 @@ var _refundStatus = _interopRequireDefault(require("./refund-status"));
|
|
|
49
49
|
|
|
50
50
|
var _transactionSurcharge = _interopRequireDefault(require("./transaction-surcharge"));
|
|
51
51
|
|
|
52
|
+
var _organisationTokenisationProvider = _interopRequireDefault(require("./organisation-tokenisation-provider"));
|
|
53
|
+
|
|
52
54
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
53
55
|
|
|
54
|
-
const ENTITIES = [_chargeback.default, _creditNote.default, _customer.default, _ecommerce.default, _organisationPaymentProvider.default, _organisationPaymentProviderMethod.default, _paymentLink.default, _paymentLinkType.default, _paymentProvider.default, _refund.default, _refundStatus.default, _tokenisationProvider.default, _transaction.default, _transactionEvent.default, _transactionEventType.default, _transactionMethod.default, _transactionStatus.default, _transactionSource.default, _transactionType.default, _transactionMetadata.default, _transactionReason.default, _transactionSurcharge.default];
|
|
56
|
+
const ENTITIES = [_chargeback.default, _creditNote.default, _customer.default, _ecommerce.default, _organisationPaymentProvider.default, _organisationPaymentProviderMethod.default, _organisationTokenisationProvider.default, _paymentLink.default, _paymentLinkType.default, _paymentProvider.default, _refund.default, _refundStatus.default, _tokenisationProvider.default, _transaction.default, _transactionEvent.default, _transactionEventType.default, _transactionMethod.default, _transactionStatus.default, _transactionSource.default, _transactionType.default, _transactionMetadata.default, _transactionReason.default, _transactionSurcharge.default];
|
|
55
57
|
|
|
56
58
|
var _default = exports.default = ENTITIES;
|
|
@@ -0,0 +1,79 @@
|
|
|
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 _uuid = require("uuid");
|
|
11
|
+
|
|
12
|
+
var _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
13
|
+
|
|
14
|
+
var _tokenisationProvider = _interopRequireDefault(require("../tokenisation-provider"));
|
|
15
|
+
|
|
16
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
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 }); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
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
|
+
|
|
26
|
+
let OrganisationTokenisationProvider = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
27
|
+
name: 'organisation_tokenisation_provider',
|
|
28
|
+
schema: 'payment'
|
|
29
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
30
|
+
name: 'organisation_id',
|
|
31
|
+
referencedColumnName: 'id'
|
|
32
|
+
}), _dec5 = (0, _typeorm.ManyToOne)(() => _tokenisationProvider.default), _dec6 = (0, _typeorm.JoinColumn)({
|
|
33
|
+
name: 'tokenisation_provider_id',
|
|
34
|
+
referencedColumnName: 'id'
|
|
35
|
+
}), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec8 = (0, _typeorm.UpdateDateColumn)(), _dec(_class = (_class2 = class OrganisationTokenisationProvider {
|
|
36
|
+
constructor() {
|
|
37
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
38
|
+
|
|
39
|
+
_initializerDefineProperty(this, "organisation", _descriptor2, this);
|
|
40
|
+
|
|
41
|
+
_initializerDefineProperty(this, "tokenisation_provider", _descriptor3, this);
|
|
42
|
+
|
|
43
|
+
_initializerDefineProperty(this, "created_at", _descriptor4, this);
|
|
44
|
+
|
|
45
|
+
_initializerDefineProperty(this, "updated_at", _descriptor5, this);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
49
|
+
configurable: true,
|
|
50
|
+
enumerable: true,
|
|
51
|
+
writable: true,
|
|
52
|
+
initializer: function () {
|
|
53
|
+
return (0, _uuid.v4)();
|
|
54
|
+
}
|
|
55
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec3, _dec4], {
|
|
56
|
+
configurable: true,
|
|
57
|
+
enumerable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
initializer: function () {
|
|
60
|
+
return _organisation.default;
|
|
61
|
+
}
|
|
62
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "tokenisation_provider", [_dec5, _dec6], {
|
|
63
|
+
configurable: true,
|
|
64
|
+
enumerable: true,
|
|
65
|
+
writable: true,
|
|
66
|
+
initializer: function () {
|
|
67
|
+
return _tokenisationProvider.default;
|
|
68
|
+
}
|
|
69
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
|
|
70
|
+
configurable: true,
|
|
71
|
+
enumerable: true,
|
|
72
|
+
writable: true,
|
|
73
|
+
initializer: null
|
|
74
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec8], {
|
|
75
|
+
configurable: true,
|
|
76
|
+
enumerable: true,
|
|
77
|
+
writable: true,
|
|
78
|
+
initializer: null
|
|
79
|
+
})), _class2)) || _class);
|
package/dist/index.js
CHANGED
|
@@ -321,6 +321,12 @@ Object.defineProperty(exports, "OrganisationPayoutConfigEntity", {
|
|
|
321
321
|
return _organisationPayoutConfig.default;
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
|
+
Object.defineProperty(exports, "OrganisationTokenisationProviderEntity", {
|
|
325
|
+
enumerable: true,
|
|
326
|
+
get: function () {
|
|
327
|
+
return _organisationTokenisationProvider.default;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
324
330
|
Object.defineProperty(exports, "OrganisationWebhookEntity", {
|
|
325
331
|
enumerable: true,
|
|
326
332
|
get: function () {
|
|
@@ -772,6 +778,8 @@ var _customer = _interopRequireDefault(require("./entity/payment/customer"));
|
|
|
772
778
|
|
|
773
779
|
var _organisationPaymentProviderMethod = _interopRequireDefault(require("./entity/payment/organisation-payment-provider-method"));
|
|
774
780
|
|
|
781
|
+
var _organisationTokenisationProvider = _interopRequireDefault(require("./entity/payment/organisation-tokenisation-provider"));
|
|
782
|
+
|
|
775
783
|
var _paymentLink = _interopRequireDefault(require("./entity/payment/payment-link"));
|
|
776
784
|
|
|
777
785
|
var _paymentLinkType = _interopRequireDefault(require("./entity/payment/payment-link-type"));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class orgTokenisationProvider1705495053739 {
|
|
4
|
+
name = 'orgTokenisationProvider1705495053739'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "payment"."organisation_tokenisation_provider" ("id" character varying NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "updated_at" TIMESTAMP NOT NULL DEFAULT now(), "organisation_id" character varying(150), "tokenisation_provider_id" character varying, CONSTRAINT "PK_7c6436cfe326d95b333b8bb92ea" PRIMARY KEY ("id"))`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_tokenisation_provider" ADD CONSTRAINT "FK_b714375ff13ab6152fe2522a617" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_tokenisation_provider" ADD CONSTRAINT "FK_691b2217274cfcdc296fb976ab4" FOREIGN KEY ("tokenisation_provider_id") REFERENCES "payment"."tokenisation_provider"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async down(queryRunner) {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_tokenisation_provider" DROP CONSTRAINT "FK_691b2217274cfcdc296fb976ab4"`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_tokenisation_provider" DROP CONSTRAINT "FK_b714375ff13ab6152fe2522a617"`);
|
|
15
|
+
await queryRunner.query(`DROP TABLE "payment"."organisation_tokenisation_provider"`);
|
|
16
|
+
}
|
|
17
|
+
}
|