@uniorganization/uni-lib 4.0.3 → 4.0.4
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.
|
@@ -22,7 +22,7 @@ __decorate([
|
|
|
22
22
|
__metadata("design:type", Number)
|
|
23
23
|
], ServiceCenterInteractionEntity.prototype, "id", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, typeorm_1.ManyToOne)(() => transactions_entity_1.Transactions),
|
|
25
|
+
(0, typeorm_1.ManyToOne)(() => transactions_entity_1.Transactions, (t) => t.serviceCenterInteractions),
|
|
26
26
|
(0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
|
|
27
27
|
__metadata("design:type", transactions_entity_1.Transactions)
|
|
28
28
|
], ServiceCenterInteractionEntity.prototype, "transaction", void 0);
|
|
@@ -2,6 +2,7 @@ import { Timestamp } from 'typeorm';
|
|
|
2
2
|
import { CallDriverData } from './call-driver-data.entity';
|
|
3
3
|
import { ActiveLoad } from './active-loads.entity';
|
|
4
4
|
import { DailyPaymentStatus } from './daily-payment-status.entity';
|
|
5
|
+
import { ServiceCenterInteractionEntity } from './service-center-interaction.entity';
|
|
5
6
|
export declare class Transactions {
|
|
6
7
|
id: number;
|
|
7
8
|
transactionId: string;
|
|
@@ -29,4 +30,5 @@ export declare class Transactions {
|
|
|
29
30
|
callDrivers: CallDriverData[];
|
|
30
31
|
dailyPaymentStatus: DailyPaymentStatus[];
|
|
31
32
|
activeLoads: ActiveLoad[];
|
|
33
|
+
serviceCenterInteractions: ServiceCenterInteractionEntity[];
|
|
32
34
|
}
|
|
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const call_driver_data_entity_1 = require("./call-driver-data.entity");
|
|
15
15
|
const active_loads_entity_1 = require("./active-loads.entity");
|
|
16
16
|
const daily_payment_status_entity_1 = require("./daily-payment-status.entity");
|
|
17
|
+
const service_center_interaction_entity_1 = require("./service-center-interaction.entity");
|
|
17
18
|
let Transactions = class Transactions {
|
|
18
19
|
};
|
|
19
20
|
exports.Transactions = Transactions;
|
|
@@ -127,6 +128,12 @@ __decorate([
|
|
|
127
128
|
}),
|
|
128
129
|
__metadata("design:type", Array)
|
|
129
130
|
], Transactions.prototype, "activeLoads", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.OneToMany)(() => service_center_interaction_entity_1.ServiceCenterInteractionEntity, (sci) => sci.transaction, {
|
|
133
|
+
cascade: ['insert', 'update', 'remove'],
|
|
134
|
+
}),
|
|
135
|
+
__metadata("design:type", Array)
|
|
136
|
+
], Transactions.prototype, "serviceCenterInteractions", void 0);
|
|
130
137
|
exports.Transactions = Transactions = __decorate([
|
|
131
138
|
(0, typeorm_1.Entity)('transactions', { schema: 'tracking' })
|
|
132
139
|
], Transactions);
|