@uniorganization/uni-lib 1.1.33 → 1.1.35

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);
@@ -1,4 +1,3 @@
1
- import { Transactions } from './transactions.entity';
2
1
  export declare class DailyPaymentStatus {
3
2
  id: number;
4
3
  paymentReference: string;
@@ -23,5 +22,4 @@ export declare class DailyPaymentStatus {
23
22
  rejectionCorrectionSystem: string;
24
23
  rejectionCorrectionReasonCode: string;
25
24
  rejectionCorrectionReasonDescription: string;
26
- transaction: Transactions;
27
25
  }
@@ -11,15 +11,14 @@ 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");
15
14
  let DailyPaymentStatus = class DailyPaymentStatus {
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
  ], DailyPaymentStatus.prototype, "id", void 0);
21
20
  __decorate([
22
- (0, typeorm_1.Column)({ name: 'payment_reference' }),
21
+ (0, typeorm_1.PrimaryColumn)({ name: 'payment_reference' }),
23
22
  __metadata("design:type", String)
24
23
  ], DailyPaymentStatus.prototype, "paymentReference", void 0);
25
24
  __decorate([
@@ -106,11 +105,6 @@ __decorate([
106
105
  (0, typeorm_1.Column)({ name: 'rejection_correction_reason_description' }),
107
106
  __metadata("design:type", String)
108
107
  ], 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);
114
108
  DailyPaymentStatus = __decorate([
115
109
  (0, typeorm_1.Entity)('daily_payment_status', { schema: 'enr' })
116
110
  ], DailyPaymentStatus);
@@ -27,6 +27,6 @@ export declare class Transactions {
27
27
  callbackSchedule: Timestamp;
28
28
  callbackstatus: string;
29
29
  callDrivers: CallDriverData[];
30
- activeLoads: ActiveLoad[];
31
- dailyPaymentStatus: DailyPaymentStatus[];
30
+ dailyPaymentStatus: DailyPaymentStatus;
31
+ activeLoad: 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.OneToOne)(() => daily_payment_status_entity_1.DailyPaymentStatus, {
119
119
  cascade: ['insert', 'update', 'remove'],
120
120
  }),
121
- __metadata("design:type", Array)
122
- ], Transactions.prototype, "activeLoads", void 0);
121
+ (0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
122
+ __metadata("design:type", daily_payment_status_entity_1.DailyPaymentStatus)
123
+ ], Transactions.prototype, "dailyPaymentStatus", void 0);
123
124
  __decorate([
124
- (0, typeorm_1.OneToMany)(() => daily_payment_status_entity_1.DailyPaymentStatus, (dailyPaymentStatus) => dailyPaymentStatus.paymentReference, {
125
+ (0, typeorm_1.OneToOne)(() => active_loads_entity_1.ActiveLoad, {
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, "activeLoad", 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.35",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",