@uniorganization/uni-lib 1.1.32 → 1.1.34
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/entities/active-loads.entity.d.ts +1 -0
- package/dist/entities/active-loads.entity.js +5 -1
- package/dist/entities/daily-payment-status.entity.d.ts +3 -0
- package/dist/entities/daily-payment-status.entity.js +10 -0
- package/dist/entities/transactions.entity.d.ts +4 -0
- package/dist/entities/transactions.entity.js +17 -1
- package/package.json +1 -1
|
@@ -13,6 +13,10 @@ exports.ActiveLoad = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
let ActiveLoad = class ActiveLoad {
|
|
15
15
|
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, typeorm_1.Column)({ name: 'id' }),
|
|
18
|
+
__metadata("design:type", Number)
|
|
19
|
+
], ActiveLoad.prototype, "id", void 0);
|
|
16
20
|
__decorate([
|
|
17
21
|
(0, typeorm_1.Column)({ name: 'target_delivery_range' }),
|
|
18
22
|
__metadata("design:type", String)
|
|
@@ -34,7 +38,7 @@ __decorate([
|
|
|
34
38
|
__metadata("design:type", String)
|
|
35
39
|
], ActiveLoad.prototype, "status", void 0);
|
|
36
40
|
__decorate([
|
|
37
|
-
(0, typeorm_1.
|
|
41
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'order_number' }),
|
|
38
42
|
__metadata("design:type", String)
|
|
39
43
|
], ActiveLoad.prototype, "orderNumber", void 0);
|
|
40
44
|
__decorate([
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { Transactions } from './transactions.entity';
|
|
1
2
|
export declare class DailyPaymentStatus {
|
|
3
|
+
id: number;
|
|
2
4
|
paymentReference: string;
|
|
3
5
|
paymentType: string;
|
|
4
6
|
amount: string;
|
|
@@ -21,4 +23,5 @@ export declare class DailyPaymentStatus {
|
|
|
21
23
|
rejectionCorrectionSystem: string;
|
|
22
24
|
rejectionCorrectionReasonCode: string;
|
|
23
25
|
rejectionCorrectionReasonDescription: string;
|
|
26
|
+
transaction: Transactions;
|
|
24
27
|
}
|
|
@@ -11,8 +11,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DailyPaymentStatus = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const transactions_entity_1 = require("./transactions.entity");
|
|
14
15
|
let DailyPaymentStatus = class DailyPaymentStatus {
|
|
15
16
|
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], DailyPaymentStatus.prototype, "id", void 0);
|
|
16
21
|
__decorate([
|
|
17
22
|
(0, typeorm_1.Column)({ name: 'payment_reference' }),
|
|
18
23
|
__metadata("design:type", String)
|
|
@@ -101,6 +106,11 @@ __decorate([
|
|
|
101
106
|
(0, typeorm_1.Column)({ name: 'rejection_correction_reason_description' }),
|
|
102
107
|
__metadata("design:type", String)
|
|
103
108
|
], DailyPaymentStatus.prototype, "rejectionCorrectionReasonDescription", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.ManyToOne)(() => transactions_entity_1.Transactions),
|
|
111
|
+
(0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
|
|
112
|
+
__metadata("design:type", transactions_entity_1.Transactions)
|
|
113
|
+
], DailyPaymentStatus.prototype, "transaction", void 0);
|
|
104
114
|
DailyPaymentStatus = __decorate([
|
|
105
115
|
(0, typeorm_1.Entity)('daily_payment_status', { schema: 'enr' })
|
|
106
116
|
], DailyPaymentStatus);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Timestamp } from 'typeorm';
|
|
2
2
|
import { CallDriverData } from './call-driver-data.entity';
|
|
3
|
+
import { ActiveLoad } from './active-loads.entity';
|
|
4
|
+
import { DailyPaymentStatus } from './daily-payment-status.entity';
|
|
3
5
|
export declare class Transactions {
|
|
4
6
|
id: number;
|
|
5
7
|
transactionId: string;
|
|
@@ -25,4 +27,6 @@ export declare class Transactions {
|
|
|
25
27
|
callbackSchedule: Timestamp;
|
|
26
28
|
callbackstatus: string;
|
|
27
29
|
callDrivers: CallDriverData[];
|
|
30
|
+
dailyPaymentStatus: DailyPaymentStatus[];
|
|
31
|
+
activeLoads: ActiveLoad;
|
|
28
32
|
}
|
|
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Transactions = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const call_driver_data_entity_1 = require("./call-driver-data.entity");
|
|
15
|
+
const active_loads_entity_1 = require("./active-loads.entity");
|
|
16
|
+
const daily_payment_status_entity_1 = require("./daily-payment-status.entity");
|
|
15
17
|
let Transactions = class Transactions {
|
|
16
18
|
};
|
|
17
19
|
__decorate([
|
|
@@ -107,11 +109,25 @@ __decorate([
|
|
|
107
109
|
__metadata("design:type", String)
|
|
108
110
|
], Transactions.prototype, "callbackstatus", void 0);
|
|
109
111
|
__decorate([
|
|
110
|
-
(0, typeorm_1.OneToMany)((
|
|
112
|
+
(0, typeorm_1.OneToMany)(() => call_driver_data_entity_1.CallDriverData, (cdd) => cdd.transaction, {
|
|
111
113
|
cascade: ['insert', 'update', 'remove'],
|
|
112
114
|
}),
|
|
113
115
|
__metadata("design:type", Array)
|
|
114
116
|
], Transactions.prototype, "callDrivers", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.OneToMany)(() => daily_payment_status_entity_1.DailyPaymentStatus, (dailyPaymentStatus) => dailyPaymentStatus.paymentReference, {
|
|
119
|
+
cascade: ['insert', 'update', 'remove'],
|
|
120
|
+
}),
|
|
121
|
+
__metadata("design:type", Array)
|
|
122
|
+
], Transactions.prototype, "dailyPaymentStatus", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.OneToOne)((type) => active_loads_entity_1.ActiveLoad, {
|
|
125
|
+
eager: true,
|
|
126
|
+
cascade: ['insert', 'update', 'remove'],
|
|
127
|
+
}),
|
|
128
|
+
(0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
|
|
129
|
+
__metadata("design:type", active_loads_entity_1.ActiveLoad)
|
|
130
|
+
], Transactions.prototype, "activeLoads", void 0);
|
|
115
131
|
Transactions = __decorate([
|
|
116
132
|
(0, typeorm_1.Entity)('transactions', { schema: 'tracking' })
|
|
117
133
|
], Transactions);
|