@uniorganization/uni-lib 4.0.4 → 4.0.5

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,6 +1,7 @@
1
1
  import { Escalations } from './escalations.entity';
2
2
  import { Timestamp } from 'typeorm';
3
3
  import { Transactions } from './transactions.entity';
4
+ import { ServiceCenterInteractionEntity } from './service-center-interaction.entity';
4
5
  export declare class CallDriverData {
5
6
  id: number;
6
7
  transaction: Transactions;
@@ -22,4 +23,5 @@ export declare class CallDriverData {
22
23
  instructions: string;
23
24
  customerReply: String;
24
25
  customerReplyDate: Timestamp;
26
+ serviceCenterInteractions: ServiceCenterInteractionEntity[];
25
27
  }
@@ -13,6 +13,7 @@ exports.CallDriverData = void 0;
13
13
  const escalations_entity_1 = require("./escalations.entity");
14
14
  const typeorm_1 = require("typeorm");
15
15
  const transactions_entity_1 = require("./transactions.entity");
16
+ const service_center_interaction_entity_1 = require("./service-center-interaction.entity");
16
17
  let CallDriverData = class CallDriverData {
17
18
  };
18
19
  exports.CallDriverData = CallDriverData;
@@ -100,6 +101,12 @@ __decorate([
100
101
  (0, typeorm_1.Column)('timestamp', { name: 'customer_reply_date' }),
101
102
  __metadata("design:type", typeorm_1.Timestamp)
102
103
  ], CallDriverData.prototype, "customerReplyDate", void 0);
104
+ __decorate([
105
+ (0, typeorm_1.OneToMany)(() => service_center_interaction_entity_1.ServiceCenterInteractionEntity, (sci) => sci.callDriverData, {
106
+ cascade: ['insert', 'update', 'remove'],
107
+ }),
108
+ __metadata("design:type", Array)
109
+ ], CallDriverData.prototype, "serviceCenterInteractions", void 0);
103
110
  exports.CallDriverData = CallDriverData = __decorate([
104
111
  (0, typeorm_1.Entity)('call_drivers_data', { schema: 'tracking' })
105
112
  ], CallDriverData);
@@ -1,15 +1,14 @@
1
- import { Transactions } from './transactions.entity';
1
+ import { CallDriverData } from './call-driver-data.entity';
2
2
  import { ServiceCenterEntity } from './service-center.entity';
3
3
  import { Users } from './usr.entity';
4
4
  export declare class ServiceCenterInteractionEntity {
5
5
  id: number;
6
- transaction: Transactions;
7
- transactionId: number;
6
+ callDriverData: CallDriverData;
7
+ callDriverDataId: number;
8
8
  serviceCenter: ServiceCenterEntity;
9
9
  serviceCenterId: number;
10
10
  agent: Users;
11
11
  agentId: number;
12
- ntgid: string;
13
12
  distance: number;
14
13
  agreedPrice: number;
15
14
  agentComment: string;
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ServiceCenterInteractionEntity = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
- const transactions_entity_1 = require("./transactions.entity");
14
+ const call_driver_data_entity_1 = require("./call-driver-data.entity");
15
15
  const service_center_entity_1 = require("./service-center.entity");
16
16
  const usr_entity_1 = require("./usr.entity");
17
17
  let ServiceCenterInteractionEntity = class ServiceCenterInteractionEntity {
@@ -22,14 +22,14 @@ __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, (t) => t.serviceCenterInteractions),
26
- (0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
27
- __metadata("design:type", transactions_entity_1.Transactions)
28
- ], ServiceCenterInteractionEntity.prototype, "transaction", void 0);
25
+ (0, typeorm_1.ManyToOne)(() => call_driver_data_entity_1.CallDriverData, (cdd) => cdd.serviceCenterInteractions),
26
+ (0, typeorm_1.JoinColumn)({ name: 'call_driver_data_id' }),
27
+ __metadata("design:type", call_driver_data_entity_1.CallDriverData)
28
+ ], ServiceCenterInteractionEntity.prototype, "callDriverData", void 0);
29
29
  __decorate([
30
- (0, typeorm_1.Column)({ name: 'transaction_id' }),
30
+ (0, typeorm_1.Column)({ name: 'call_driver_data_id' }),
31
31
  __metadata("design:type", Number)
32
- ], ServiceCenterInteractionEntity.prototype, "transactionId", void 0);
32
+ ], ServiceCenterInteractionEntity.prototype, "callDriverDataId", void 0);
33
33
  __decorate([
34
34
  (0, typeorm_1.ManyToOne)(() => service_center_entity_1.ServiceCenterEntity),
35
35
  (0, typeorm_1.JoinColumn)({ name: 'service_center_id' }),
@@ -48,10 +48,6 @@ __decorate([
48
48
  (0, typeorm_1.Column)({ name: 'agent_id' }),
49
49
  __metadata("design:type", Number)
50
50
  ], ServiceCenterInteractionEntity.prototype, "agentId", void 0);
51
- __decorate([
52
- (0, typeorm_1.Column)({ name: 'ntgid', type: 'varchar', nullable: true }),
53
- __metadata("design:type", String)
54
- ], ServiceCenterInteractionEntity.prototype, "ntgid", void 0);
55
51
  __decorate([
56
52
  (0, typeorm_1.Column)('numeric', { name: 'distance', precision: 10, scale: 2, nullable: true }),
57
53
  __metadata("design:type", Number)
@@ -2,7 +2,6 @@ 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';
6
5
  export declare class Transactions {
7
6
  id: number;
8
7
  transactionId: string;
@@ -30,5 +29,4 @@ export declare class Transactions {
30
29
  callDrivers: CallDriverData[];
31
30
  dailyPaymentStatus: DailyPaymentStatus[];
32
31
  activeLoads: ActiveLoad[];
33
- serviceCenterInteractions: ServiceCenterInteractionEntity[];
34
32
  }
@@ -14,7 +14,6 @@ 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");
18
17
  let Transactions = class Transactions {
19
18
  };
20
19
  exports.Transactions = Transactions;
@@ -128,12 +127,6 @@ __decorate([
128
127
  }),
129
128
  __metadata("design:type", Array)
130
129
  ], 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);
137
130
  exports.Transactions = Transactions = __decorate([
138
131
  (0, typeorm_1.Entity)('transactions', { schema: 'tracking' })
139
132
  ], Transactions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",