@felloh-org/lambda-wrapper 1.11.68 → 1.11.69
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.
|
@@ -7,7 +7,11 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _typeorm = require("typeorm");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _customer = _interopRequireDefault(require("../../payment/customer"));
|
|
11
|
+
|
|
12
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
15
|
|
|
12
16
|
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
17
|
|
|
@@ -25,29 +29,36 @@ let Token = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
25
29
|
type: "varchar",
|
|
26
30
|
length: "250",
|
|
27
31
|
nullable: true
|
|
28
|
-
}), _dec4 = (0, _typeorm.
|
|
32
|
+
}), _dec4 = (0, _typeorm.ManyToOne)(() => _customer.default, {
|
|
33
|
+
nullable: true
|
|
34
|
+
}), _dec5 = (0, _typeorm.JoinColumn)({
|
|
35
|
+
name: 'customer_id',
|
|
36
|
+
referencedColumnName: 'id'
|
|
37
|
+
}), _dec6 = (0, _typeorm.Column)({
|
|
29
38
|
type: "boolean",
|
|
30
39
|
default: false
|
|
31
|
-
}),
|
|
40
|
+
}), _dec7 = (0, _typeorm.CreateDateColumn)({
|
|
32
41
|
type: 'timestamp with time zone'
|
|
33
|
-
}),
|
|
42
|
+
}), _dec8 = (0, _typeorm.UpdateDateColumn)({
|
|
34
43
|
type: 'timestamp with time zone'
|
|
35
|
-
}),
|
|
44
|
+
}), _dec9 = (0, _typeorm.DeleteDateColumn)({
|
|
36
45
|
type: 'timestamp with time zone',
|
|
37
46
|
nullable: true
|
|
38
47
|
}), _dec(_class = (_class2 = class Token {
|
|
39
48
|
constructor() {
|
|
40
49
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
41
50
|
|
|
42
|
-
_initializerDefineProperty(this, "
|
|
51
|
+
_initializerDefineProperty(this, "cardholder_name", _descriptor2, this);
|
|
43
52
|
|
|
44
|
-
_initializerDefineProperty(this, "
|
|
53
|
+
_initializerDefineProperty(this, "customer", _descriptor3, this);
|
|
45
54
|
|
|
46
|
-
_initializerDefineProperty(this, "
|
|
55
|
+
_initializerDefineProperty(this, "store_token", _descriptor4, this);
|
|
47
56
|
|
|
48
|
-
_initializerDefineProperty(this, "
|
|
57
|
+
_initializerDefineProperty(this, "created_at", _descriptor5, this);
|
|
49
58
|
|
|
50
|
-
_initializerDefineProperty(this, "
|
|
59
|
+
_initializerDefineProperty(this, "updated_at", _descriptor6, this);
|
|
60
|
+
|
|
61
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor7, this);
|
|
51
62
|
}
|
|
52
63
|
|
|
53
64
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -57,31 +68,38 @@ let Token = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
57
68
|
initializer: function () {
|
|
58
69
|
return undefined;
|
|
59
70
|
}
|
|
60
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
71
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "cardholder_name", [_dec3], {
|
|
61
72
|
configurable: true,
|
|
62
73
|
enumerable: true,
|
|
63
74
|
writable: true,
|
|
64
75
|
initializer: function () {
|
|
65
76
|
return "";
|
|
66
77
|
}
|
|
67
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
78
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "customer", [_dec4, _dec5], {
|
|
79
|
+
configurable: true,
|
|
80
|
+
enumerable: true,
|
|
81
|
+
writable: true,
|
|
82
|
+
initializer: function () {
|
|
83
|
+
return _customer.default;
|
|
84
|
+
}
|
|
85
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "store_token", [_dec6], {
|
|
68
86
|
configurable: true,
|
|
69
87
|
enumerable: true,
|
|
70
88
|
writable: true,
|
|
71
89
|
initializer: function () {
|
|
72
90
|
return false;
|
|
73
91
|
}
|
|
74
|
-
}),
|
|
92
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
|
|
75
93
|
configurable: true,
|
|
76
94
|
enumerable: true,
|
|
77
95
|
writable: true,
|
|
78
96
|
initializer: null
|
|
79
|
-
}),
|
|
97
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec8], {
|
|
80
98
|
configurable: true,
|
|
81
99
|
enumerable: true,
|
|
82
100
|
writable: true,
|
|
83
101
|
initializer: null
|
|
84
|
-
}),
|
|
102
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec9], {
|
|
85
103
|
configurable: true,
|
|
86
104
|
enumerable: true,
|
|
87
105
|
writable: true,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class basisTheoryTokenCustomer1705327854669 {
|
|
4
|
+
name = 'basisTheoryTokenCustomer1705327854669'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" DROP COLUMN "customer_name"`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" ADD "cardholder_name" character varying(250)`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" ADD "customer_id" character varying`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" ADD CONSTRAINT "FK_c19a5f00c0589a7eccbf83de5ae" FOREIGN KEY ("customer_id") REFERENCES "payment"."customer"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async down(queryRunner) {
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" DROP CONSTRAINT "FK_c19a5f00c0589a7eccbf83de5ae"`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" DROP COLUMN "customer_id"`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" DROP COLUMN "cardholder_name"`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "basis_theory"."token" ADD "customer_name" character varying(250)`);
|
|
18
|
+
}
|
|
19
|
+
}
|