@uniorganization/uni-lib 1.1.33 → 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.
@@ -1,4 +1,3 @@
1
- import { Transactions } from './transactions.entity';
2
1
  export declare class ActiveLoad {
3
2
  id: number;
4
3
  targetDeliveryRange: string;
@@ -14,5 +13,4 @@ export declare class ActiveLoad {
14
13
  destinationZip: string;
15
14
  createDate: Date;
16
15
  updateDate: Date;
17
- transaction: Transactions;
18
16
  }
@@ -11,11 +11,10 @@ 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");
15
14
  let ActiveLoad = class ActiveLoad {
16
15
  };
17
16
  __decorate([
18
- (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
17
+ (0, typeorm_1.Column)({ name: 'id' }),
19
18
  __metadata("design:type", Number)
20
19
  ], ActiveLoad.prototype, "id", void 0);
21
20
  __decorate([
@@ -39,7 +38,7 @@ __decorate([
39
38
  __metadata("design:type", String)
40
39
  ], ActiveLoad.prototype, "status", void 0);
41
40
  __decorate([
42
- (0, typeorm_1.Column)({ name: 'order_number' }),
41
+ (0, typeorm_1.PrimaryColumn)({ name: 'order_number' }),
43
42
  __metadata("design:type", String)
44
43
  ], ActiveLoad.prototype, "orderNumber", void 0);
45
44
  __decorate([
@@ -70,11 +69,6 @@ __decorate([
70
69
  (0, typeorm_1.Column)({ name: 'update_date' }),
71
70
  __metadata("design:type", Date)
72
71
  ], 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);
78
72
  ActiveLoad = __decorate([
79
73
  (0, typeorm_1.Entity)('active_loads', { schema: 'enr' })
80
74
  ], ActiveLoad);
@@ -27,6 +27,6 @@ export declare class Transactions {
27
27
  callbackSchedule: Timestamp;
28
28
  callbackstatus: string;
29
29
  callDrivers: CallDriverData[];
30
- activeLoads: ActiveLoad[];
31
30
  dailyPaymentStatus: DailyPaymentStatus[];
31
+ activeLoads: ActiveLoad;
32
32
  }
@@ -115,17 +115,19 @@ __decorate([
115
115
  __metadata("design:type", Array)
116
116
  ], Transactions.prototype, "callDrivers", void 0);
117
117
  __decorate([
118
- (0, typeorm_1.OneToMany)(() => active_loads_entity_1.ActiveLoad, (activeLoad) => activeLoad.orderNumber, {
118
+ (0, typeorm_1.OneToMany)(() => daily_payment_status_entity_1.DailyPaymentStatus, (dailyPaymentStatus) => dailyPaymentStatus.paymentReference, {
119
119
  cascade: ['insert', 'update', 'remove'],
120
120
  }),
121
121
  __metadata("design:type", Array)
122
- ], Transactions.prototype, "activeLoads", void 0);
122
+ ], Transactions.prototype, "dailyPaymentStatus", void 0);
123
123
  __decorate([
124
- (0, typeorm_1.OneToMany)(() => daily_payment_status_entity_1.DailyPaymentStatus, (dailyPaymentStatus) => dailyPaymentStatus.paymentReference, {
124
+ (0, typeorm_1.OneToOne)((type) => active_loads_entity_1.ActiveLoad, {
125
+ eager: true,
125
126
  cascade: ['insert', 'update', 'remove'],
126
127
  }),
127
- __metadata("design:type", Array)
128
- ], Transactions.prototype, "dailyPaymentStatus", void 0);
128
+ (0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
129
+ __metadata("design:type", active_loads_entity_1.ActiveLoad)
130
+ ], Transactions.prototype, "activeLoads", void 0);
129
131
  Transactions = __decorate([
130
132
  (0, typeorm_1.Entity)('transactions', { schema: 'tracking' })
131
133
  ], Transactions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "1.1.33",
3
+ "version": "1.1.34",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",