@uniorganization/uni-lib 4.0.21 → 4.0.23

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.
@@ -5,8 +5,7 @@ export declare class ServiceCenterGeocodeCacheEntity {
5
5
  fullOriginalAddress: string;
6
6
  fullOriginalAddressNormalized: string;
7
7
  responseJson: Record<string, any>;
8
- serviceCenterInteraction?: ServiceCenterInteractionEntity | null;
9
- serviceCenterInteractionId?: number | null;
8
+ interactions?: ServiceCenterInteractionEntity[];
10
9
  createdBy?: Users | null;
11
10
  createdById: number | null;
12
11
  createdAt: Date;
@@ -33,14 +33,9 @@ __decorate([
33
33
  __metadata("design:type", Object)
34
34
  ], ServiceCenterGeocodeCacheEntity.prototype, "responseJson", void 0);
35
35
  __decorate([
36
- (0, typeorm_1.ManyToOne)(() => service_center_interaction_entity_1.ServiceCenterInteractionEntity, { nullable: true }),
37
- (0, typeorm_1.JoinColumn)({ name: 'service_center_interaction_id' }),
38
- __metadata("design:type", service_center_interaction_entity_1.ServiceCenterInteractionEntity)
39
- ], ServiceCenterGeocodeCacheEntity.prototype, "serviceCenterInteraction", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({ name: 'service_center_interaction_id', type: 'integer', nullable: true }),
42
- __metadata("design:type", Number)
43
- ], ServiceCenterGeocodeCacheEntity.prototype, "serviceCenterInteractionId", void 0);
36
+ (0, typeorm_1.OneToMany)(() => service_center_interaction_entity_1.ServiceCenterInteractionEntity, (interaction) => interaction.geocodeCache),
37
+ __metadata("design:type", Array)
38
+ ], ServiceCenterGeocodeCacheEntity.prototype, "interactions", void 0);
44
39
  __decorate([
45
40
  (0, typeorm_1.ManyToOne)(() => usr_entity_1.Users),
46
41
  (0, typeorm_1.JoinColumn)({ name: 'created_by_id' }),
@@ -1,6 +1,7 @@
1
1
  import { CallDriverData } from './call-driver-data.entity';
2
2
  import { ServiceCenterEntity } from './service-center.entity';
3
3
  import { Users } from './usr.entity';
4
+ import { ServiceCenterGeocodeCacheEntity } from './service-center-geocode-cache.entity';
4
5
  export declare class ServiceCenterInteractionEntity {
5
6
  id: number;
6
7
  callDriverData: CallDriverData;
@@ -14,5 +15,7 @@ export declare class ServiceCenterInteractionEntity {
14
15
  agentComment: string;
15
16
  outcome: string;
16
17
  extraMilesAmount: number;
18
+ geocodeCache?: ServiceCenterGeocodeCacheEntity | null;
19
+ geocodeCacheId?: number | null;
17
20
  dateCreated: Date;
18
21
  }
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
14
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
+ const service_center_geocode_cache_entity_1 = require("./service-center-geocode-cache.entity");
17
18
  let ServiceCenterInteractionEntity = class ServiceCenterInteractionEntity {
18
19
  };
19
20
  exports.ServiceCenterInteractionEntity = ServiceCenterInteractionEntity;
@@ -68,6 +69,15 @@ __decorate([
68
69
  (0, typeorm_1.Column)('numeric', { name: 'extra_miles_amount', precision: 12, scale: 2, nullable: true }),
69
70
  __metadata("design:type", Number)
70
71
  ], ServiceCenterInteractionEntity.prototype, "extraMilesAmount", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.ManyToOne)(() => service_center_geocode_cache_entity_1.ServiceCenterGeocodeCacheEntity, { nullable: true }),
74
+ (0, typeorm_1.JoinColumn)({ name: 'service_center_geocode_cache_id' }),
75
+ __metadata("design:type", service_center_geocode_cache_entity_1.ServiceCenterGeocodeCacheEntity)
76
+ ], ServiceCenterInteractionEntity.prototype, "geocodeCache", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ name: 'service_center_geocode_cache_id', type: 'integer', nullable: true }),
79
+ __metadata("design:type", Number)
80
+ ], ServiceCenterInteractionEntity.prototype, "geocodeCacheId", void 0);
71
81
  __decorate([
72
82
  (0, typeorm_1.CreateDateColumn)({ name: 'date_created', type: 'timestamp' }),
73
83
  __metadata("design:type", Date)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "4.0.21",
3
+ "version": "4.0.23",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",