@felloh-org/lambda-wrapper 1.0.7 → 1.0.8
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.
|
@@ -10,13 +10,13 @@ const run = async () => {
|
|
|
10
10
|
const connection = await warehouse.connect();
|
|
11
11
|
|
|
12
12
|
const queryRunner = await connection.createQueryRunner();
|
|
13
|
-
await queryRunner.createDatabase(
|
|
13
|
+
await queryRunner.createDatabase('felloh', true);
|
|
14
14
|
|
|
15
|
-
await queryRunner.createSchema(
|
|
16
|
-
await queryRunner.createSchema(
|
|
17
|
-
await queryRunner.createSchema(
|
|
18
|
-
await queryRunner.createSchema(
|
|
19
|
-
await queryRunner.createSchema(
|
|
15
|
+
await queryRunner.createSchema('nuapay', true);
|
|
16
|
+
await queryRunner.createSchema('agent_data', true);
|
|
17
|
+
await queryRunner.createSchema('payment', true);
|
|
18
|
+
await queryRunner.createSchema('bank', true);
|
|
19
|
+
await queryRunner.createSchema('user', true);
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
run();
|
|
@@ -13,7 +13,9 @@ var _user = _interopRequireDefault(require("../../user/user"));
|
|
|
13
13
|
|
|
14
14
|
var _booking = _interopRequireDefault(require("../../agent-data/booking"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _transaction = _interopRequireDefault(require("../transaction"));
|
|
17
|
+
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
@@ -51,9 +53,9 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
51
53
|
}), _dec13 = (0, _typeorm.Column)({
|
|
52
54
|
type: "varchar",
|
|
53
55
|
length: "200"
|
|
54
|
-
}), _dec14 = (0, _typeorm.Column)({
|
|
56
|
+
}), _dec14 = (0, _typeorm.OneToMany)(() => _transaction.default, transaction => transaction.payment_link), _dec15 = (0, _typeorm.Column)({
|
|
55
57
|
type: "timestamp with time zone"
|
|
56
|
-
}),
|
|
58
|
+
}), _dec16 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class PaymentLink {
|
|
57
59
|
constructor() {
|
|
58
60
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
59
61
|
|
|
@@ -73,9 +75,11 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
73
75
|
|
|
74
76
|
_initializerDefineProperty(this, "cancel_url", _descriptor9, this);
|
|
75
77
|
|
|
76
|
-
_initializerDefineProperty(this, "
|
|
78
|
+
_initializerDefineProperty(this, "transactions", _descriptor10, this);
|
|
79
|
+
|
|
80
|
+
_initializerDefineProperty(this, "expires_at", _descriptor11, this);
|
|
77
81
|
|
|
78
|
-
_initializerDefineProperty(this, "created_at",
|
|
82
|
+
_initializerDefineProperty(this, "created_at", _descriptor12, this);
|
|
79
83
|
}
|
|
80
84
|
|
|
81
85
|
generateExpiryDate() {
|
|
@@ -145,14 +149,19 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
145
149
|
initializer: function () {
|
|
146
150
|
return "";
|
|
147
151
|
}
|
|
148
|
-
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
152
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "transactions", [_dec14], {
|
|
153
|
+
configurable: true,
|
|
154
|
+
enumerable: true,
|
|
155
|
+
writable: true,
|
|
156
|
+
initializer: null
|
|
157
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "expires_at", [_dec15], {
|
|
149
158
|
configurable: true,
|
|
150
159
|
enumerable: true,
|
|
151
160
|
writable: true,
|
|
152
161
|
initializer: function () {
|
|
153
162
|
return this.generateExpiryDate();
|
|
154
163
|
}
|
|
155
|
-
}),
|
|
164
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec16], {
|
|
156
165
|
configurable: true,
|
|
157
166
|
enumerable: true,
|
|
158
167
|
writable: true,
|