@felloh-org/lambda-wrapper 1.11.63 → 1.11.65
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/dist/entity/payment/transaction-status/index.js +12 -2
- package/dist/entity/user/index.js +3 -1
- package/dist/entity/user/mailer-log/index.js +75 -0
- package/dist/entity/user/webhook-log/index.js +17 -7
- package/dist/index.js +8 -0
- package/dist/migration/payment/1702583802282-status_grouping.js +13 -0
- package/dist/migration/user/1704271899435-webhook_response.js +15 -0
- package/package.json +1 -1
- /package/dist/migration/{1698312655310-swap_pk_refunds.js → payment/1698312655310-swap_pk_refunds.js} +0 -0
- /package/dist/migration/{1701960843276-customer_fields.js → payment/1701960843276-customer_fields.js} +0 -0
- /package/dist/migration/{1699281692894-ai_fields.js → saltedge/1699281692894-ai_fields.js} +0 -0
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _typeorm = require("typeorm");
|
|
9
9
|
|
|
10
|
-
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
11
11
|
|
|
12
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
13
|
|
|
@@ -18,11 +18,16 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
18
18
|
let TransactionStatus = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
19
19
|
name: 'transaction_status',
|
|
20
20
|
schema: 'payment'
|
|
21
|
-
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(),
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(), _dec4 = (0, _typeorm.Column)({
|
|
22
|
+
type: "text",
|
|
23
|
+
nullable: true
|
|
24
|
+
}), _dec(_class = (_class2 = class TransactionStatus {
|
|
22
25
|
constructor() {
|
|
23
26
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
24
27
|
|
|
25
28
|
_initializerDefineProperty(this, "created_at", _descriptor2, this);
|
|
29
|
+
|
|
30
|
+
_initializerDefineProperty(this, "grouping", _descriptor3, this);
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -35,4 +40,9 @@ let TransactionStatus = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
35
40
|
enumerable: true,
|
|
36
41
|
writable: true,
|
|
37
42
|
initializer: null
|
|
43
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "grouping", [_dec4], {
|
|
44
|
+
configurable: true,
|
|
45
|
+
enumerable: true,
|
|
46
|
+
writable: true,
|
|
47
|
+
initializer: null
|
|
38
48
|
})), _class2)) || _class);
|
|
@@ -33,8 +33,10 @@ var _organisationPartner = _interopRequireDefault(require("./organisation-partne
|
|
|
33
33
|
|
|
34
34
|
var _webhookLog = _interopRequireDefault(require("./webhook-log"));
|
|
35
35
|
|
|
36
|
+
var _mailerLog = _interopRequireDefault(require("./mailer-log"));
|
|
37
|
+
|
|
36
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
39
|
|
|
38
|
-
const ENTITIES = [_feature.default, _loginLink.default, _organisation.default, _organisationFeature.default, _organisationPartner.default, _organisationPayoutConfig.default, _organisationType.default, _organisationWebhook.default, _role.default, _user.default, _userActivity.default, _userRole.default, _webhookLog.default, _webhookTypes.default];
|
|
40
|
+
const ENTITIES = [_feature.default, _loginLink.default, _organisation.default, _organisationFeature.default, _organisationPartner.default, _organisationPayoutConfig.default, _organisationType.default, _organisationWebhook.default, _role.default, _user.default, _userActivity.default, _userRole.default, _webhookLog.default, _webhookTypes.default, _mailerLog.default];
|
|
39
41
|
|
|
40
42
|
var _default = exports.default = ENTITIES;
|
|
@@ -0,0 +1,75 @@
|
|
|
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, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
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 MailerLog = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
19
|
+
name: 'mailer_log',
|
|
20
|
+
schema: 'user'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
|
|
22
|
+
type: "varchar",
|
|
23
|
+
length: "150"
|
|
24
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
25
|
+
type: "varchar",
|
|
26
|
+
length: "100"
|
|
27
|
+
}), _dec5 = (0, _typeorm.CreateDateColumn)({
|
|
28
|
+
type: 'timestamp with time zone',
|
|
29
|
+
default: () => 'NOW()'
|
|
30
|
+
}), _dec6 = (0, _typeorm.UpdateDateColumn)({
|
|
31
|
+
type: 'timestamp with time zone',
|
|
32
|
+
default: () => 'NOW()'
|
|
33
|
+
}), _dec(_class = (_class2 = class MailerLog {
|
|
34
|
+
constructor() {
|
|
35
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
36
|
+
|
|
37
|
+
_initializerDefineProperty(this, "email", _descriptor2, this);
|
|
38
|
+
|
|
39
|
+
_initializerDefineProperty(this, "template", _descriptor3, this);
|
|
40
|
+
|
|
41
|
+
_initializerDefineProperty(this, "created_at", _descriptor4, this);
|
|
42
|
+
|
|
43
|
+
_initializerDefineProperty(this, "updated_at", _descriptor5, this);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
47
|
+
configurable: true,
|
|
48
|
+
enumerable: true,
|
|
49
|
+
writable: true,
|
|
50
|
+
initializer: null
|
|
51
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "email", [_dec3], {
|
|
52
|
+
configurable: true,
|
|
53
|
+
enumerable: true,
|
|
54
|
+
writable: true,
|
|
55
|
+
initializer: function () {
|
|
56
|
+
return "";
|
|
57
|
+
}
|
|
58
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "template", [_dec4], {
|
|
59
|
+
configurable: true,
|
|
60
|
+
enumerable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
initializer: function () {
|
|
63
|
+
return "";
|
|
64
|
+
}
|
|
65
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec5], {
|
|
66
|
+
configurable: true,
|
|
67
|
+
enumerable: true,
|
|
68
|
+
writable: true,
|
|
69
|
+
initializer: null
|
|
70
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec6], {
|
|
71
|
+
configurable: true,
|
|
72
|
+
enumerable: true,
|
|
73
|
+
writable: true,
|
|
74
|
+
initializer: null
|
|
75
|
+
})), _class2)) || _class);
|
|
@@ -9,7 +9,7 @@ var _typeorm = require("typeorm");
|
|
|
9
9
|
|
|
10
10
|
var _organisationWebhook = _interopRequireDefault(require("../organisation-webhook"));
|
|
11
11
|
|
|
12
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
12
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
@@ -28,10 +28,13 @@ let WebhookLog = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
28
28
|
}), _dec5 = (0, _typeorm.Column)({
|
|
29
29
|
type: "boolean",
|
|
30
30
|
default: false
|
|
31
|
-
}), _dec6 = (0, _typeorm.
|
|
31
|
+
}), _dec6 = (0, _typeorm.Column)({
|
|
32
|
+
type: "text",
|
|
33
|
+
nullable: true
|
|
34
|
+
}), _dec7 = (0, _typeorm.CreateDateColumn)({
|
|
32
35
|
type: 'timestamp with time zone',
|
|
33
36
|
default: () => 'NOW()'
|
|
34
|
-
}),
|
|
37
|
+
}), _dec8 = (0, _typeorm.UpdateDateColumn)({
|
|
35
38
|
type: 'timestamp with time zone',
|
|
36
39
|
default: () => 'NOW()'
|
|
37
40
|
}), _dec(_class = (_class2 = class WebhookLog {
|
|
@@ -42,9 +45,11 @@ let WebhookLog = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
42
45
|
|
|
43
46
|
_initializerDefineProperty(this, "is_success", _descriptor3, this);
|
|
44
47
|
|
|
45
|
-
_initializerDefineProperty(this, "
|
|
48
|
+
_initializerDefineProperty(this, "response", _descriptor4, this);
|
|
46
49
|
|
|
47
|
-
_initializerDefineProperty(this, "
|
|
50
|
+
_initializerDefineProperty(this, "created_at", _descriptor5, this);
|
|
51
|
+
|
|
52
|
+
_initializerDefineProperty(this, "updated_at", _descriptor6, this);
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -66,12 +71,17 @@ let WebhookLog = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
66
71
|
initializer: function () {
|
|
67
72
|
return false;
|
|
68
73
|
}
|
|
69
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
74
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "response", [_dec6], {
|
|
75
|
+
configurable: true,
|
|
76
|
+
enumerable: true,
|
|
77
|
+
writable: true,
|
|
78
|
+
initializer: null
|
|
79
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
|
|
70
80
|
configurable: true,
|
|
71
81
|
enumerable: true,
|
|
72
82
|
writable: true,
|
|
73
83
|
initializer: null
|
|
74
|
-
}),
|
|
84
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec8], {
|
|
75
85
|
configurable: true,
|
|
76
86
|
enumerable: true,
|
|
77
87
|
writable: true,
|
package/dist/index.js
CHANGED
|
@@ -219,6 +219,12 @@ Object.defineProperty(exports, "LoginLinkEntity", {
|
|
|
219
219
|
return _loginLink.default;
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
|
+
Object.defineProperty(exports, "MailerLog", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () {
|
|
225
|
+
return _mailerLog.default;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
222
228
|
Object.defineProperty(exports, "Model", {
|
|
223
229
|
enumerable: true,
|
|
224
230
|
get: function () {
|
|
@@ -836,6 +842,8 @@ var _organisationPartner = _interopRequireDefault(require("./entity/user/organis
|
|
|
836
842
|
|
|
837
843
|
var _webhookLog = _interopRequireDefault(require("./entity/user/webhook-log"));
|
|
838
844
|
|
|
845
|
+
var _mailerLog = _interopRequireDefault(require("./entity/user/mailer-log"));
|
|
846
|
+
|
|
839
847
|
var _batch3 = _interopRequireDefault(require("./entity/nuvei/batch"));
|
|
840
848
|
|
|
841
849
|
var _merchant2 = _interopRequireDefault(require("./entity/nuvei/merchant"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class statusGrouping1702583802282 {
|
|
4
|
+
name = 'statusGrouping1702583802282'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_status" ADD "grouping" text`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_status" DROP COLUMN "grouping"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class webhookResponse1704271899435 {
|
|
4
|
+
name = 'webhookResponse1704271899435'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "user"."mailer_log" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "email" character varying(150) NOT NULL, "template" character varying(100) NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), CONSTRAINT "PK_8f2f1bf1151bf572199fb251081" PRIMARY KEY ("id"))`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "user"."webhook_log" ADD "response" text`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "user"."webhook_log" DROP COLUMN "response"`);
|
|
13
|
+
await queryRunner.query(`DROP TABLE "user"."mailer_log"`);
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|