@uniorganization/uni-lib 1.1.38 → 1.1.40

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,5 @@
1
1
  export declare class ActiveLoad {
2
+ id: number;
2
3
  orderNumber: string;
3
4
  targetDeliveryRange: string;
4
5
  customerRepresentative: string;
@@ -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', generated: 'increment' }),
18
+ __metadata("design:type", Number)
19
+ ], ActiveLoad.prototype, "id", void 0);
16
20
  __decorate([
17
21
  (0, typeorm_1.PrimaryColumn)({ name: 'order_number' }),
18
22
  __metadata("design:type", String)
@@ -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.Column)({ name: 'id', generated: 'increment' }),
19
+ __metadata("design:type", Number)
20
+ ], DailyPaymentStatus.prototype, "id", void 0);
16
21
  __decorate([
17
22
  (0, typeorm_1.PrimaryColumn)({ 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)((type) => transactions_entity_1.Transactions),
111
+ (0, typeorm_1.JoinColumn)({ name: 'payment_reference' }),
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);
@@ -115,10 +115,9 @@ __decorate([
115
115
  __metadata("design:type", Array)
116
116
  ], Transactions.prototype, "callDrivers", void 0);
117
117
  __decorate([
118
- (0, typeorm_1.OneToOne)(() => daily_payment_status_entity_1.DailyPaymentStatus, {
118
+ (0, typeorm_1.OneToMany)(() => daily_payment_status_entity_1.DailyPaymentStatus, (cdd) => cdd.transaction, {
119
119
  cascade: ['insert', 'update', 'remove'],
120
120
  }),
121
- (0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
122
121
  __metadata("design:type", daily_payment_status_entity_1.DailyPaymentStatus)
123
122
  ], Transactions.prototype, "dailyPaymentStatus", void 0);
124
123
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "1.1.38",
3
+ "version": "1.1.40",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",