@uniorganization/uni-lib 1.1.31 → 1.1.33

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.
@@ -1,3 +1,4 @@
1
+ import { Transactions } from './transactions.entity';
1
2
  export declare class ActiveLoad {
2
3
  id: number;
3
4
  targetDeliveryRange: string;
@@ -13,4 +14,5 @@ export declare class ActiveLoad {
13
14
  destinationZip: string;
14
15
  createDate: Date;
15
16
  updateDate: Date;
17
+ transaction: Transactions;
16
18
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ActiveLoad = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
+ const transactions_entity_1 = require("./transactions.entity");
14
15
  let ActiveLoad = class ActiveLoad {
15
16
  };
16
17
  __decorate([
@@ -69,6 +70,11 @@ __decorate([
69
70
  (0, typeorm_1.Column)({ name: 'update_date' }),
70
71
  __metadata("design:type", Date)
71
72
  ], ActiveLoad.prototype, "updateDate", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.ManyToOne)(() => transactions_entity_1.Transactions),
75
+ (0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
76
+ __metadata("design:type", transactions_entity_1.Transactions)
77
+ ], ActiveLoad.prototype, "transaction", void 0);
72
78
  ActiveLoad = __decorate([
73
79
  (0, typeorm_1.Entity)('active_loads', { schema: 'enr' })
74
80
  ], ActiveLoad);
@@ -1,3 +1,4 @@
1
+ import { Transactions } from './transactions.entity';
1
2
  export declare class DailyPaymentStatus {
2
3
  id: number;
3
4
  paymentReference: string;
@@ -22,4 +23,5 @@ export declare class DailyPaymentStatus {
22
23
  rejectionCorrectionSystem: string;
23
24
  rejectionCorrectionReasonCode: string;
24
25
  rejectionCorrectionReasonDescription: string;
26
+ transaction: Transactions;
25
27
  }
@@ -11,6 +11,7 @@ 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
  };
16
17
  __decorate([
@@ -105,6 +106,11 @@ __decorate([
105
106
  (0, typeorm_1.Column)({ name: 'rejection_correction_reason_description' }),
106
107
  __metadata("design:type", String)
107
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);
108
114
  DailyPaymentStatus = __decorate([
109
115
  (0, typeorm_1.Entity)('daily_payment_status', { schema: 'enr' })
110
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
+ activeLoads: ActiveLoad[];
31
+ dailyPaymentStatus: DailyPaymentStatus[];
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,23 @@ __decorate([
107
109
  __metadata("design:type", String)
108
110
  ], Transactions.prototype, "callbackstatus", void 0);
109
111
  __decorate([
110
- (0, typeorm_1.OneToMany)((type) => call_driver_data_entity_1.CallDriverData, (cdd) => cdd.transaction, {
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)(() => active_loads_entity_1.ActiveLoad, (activeLoad) => activeLoad.orderNumber, {
119
+ cascade: ['insert', 'update', 'remove'],
120
+ }),
121
+ __metadata("design:type", Array)
122
+ ], Transactions.prototype, "activeLoads", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.OneToMany)(() => daily_payment_status_entity_1.DailyPaymentStatus, (dailyPaymentStatus) => dailyPaymentStatus.paymentReference, {
125
+ cascade: ['insert', 'update', 'remove'],
126
+ }),
127
+ __metadata("design:type", Array)
128
+ ], Transactions.prototype, "dailyPaymentStatus", void 0);
115
129
  Transactions = __decorate([
116
130
  (0, typeorm_1.Entity)('transactions', { schema: 'tracking' })
117
131
  ], Transactions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "1.1.31",
3
+ "version": "1.1.33",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",