@uniorganization/uni-lib 4.0.26 → 4.0.27

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,13 +1,45 @@
1
+ import { Point } from 'geojson';
1
2
  import { CallDriverData } from './call-driver-data.entity';
2
- import { ServiceCenterEntity } from './service-center.entity';
3
3
  import { Users } from './usr.entity';
4
4
  import { ServiceCenterGeocodeCacheEntity } from './service-center-geocode-cache.entity';
5
5
  export declare class ServiceCenterInteractionEntity {
6
6
  id: number;
7
7
  callDriverData: CallDriverData;
8
8
  callDriverDataId: number;
9
- serviceCenter: ServiceCenterEntity;
10
- serviceCenterId: number;
9
+ serviceCenterServicerAccount: string;
10
+ serviceCenterSystem: string;
11
+ serviceCenterUseFlag: string;
12
+ serviceCenterServicerName: string;
13
+ serviceCenterContact: string;
14
+ serviceCenterAddress: string;
15
+ serviceCenterCity: string;
16
+ serviceCenterCounty: string;
17
+ serviceCenterState: string;
18
+ serviceCenterZipCode: string;
19
+ serviceCenterCountry: string;
20
+ serviceCenterServicerType: string;
21
+ serviceCenterFax: string;
22
+ serviceCenterEmail: string;
23
+ serviceCenterLgScore: number;
24
+ serviceCenterProfileIndicator: string;
25
+ serviceCenterStatus: string;
26
+ serviceCenterEligible: boolean;
27
+ serviceCenterLocatingFlag: boolean;
28
+ serviceCenterAutoAcceptanceFlag: boolean;
29
+ serviceCenterPartsManagementProgramFlag: boolean;
30
+ serviceCenterZipcodeCoverage: boolean;
31
+ serviceCenterBrandCoverage: boolean;
32
+ serviceCenterProductCoverage: boolean;
33
+ serviceCenterOverwriteCutOffTime: string;
34
+ serviceCenterExcludeServicerFromEmail: boolean;
35
+ serviceCenterNotesNotificationEmail: string;
36
+ serviceCenterClassification: string;
37
+ serviceCenterIsAuthorized: boolean;
38
+ serviceCenterOverallReviewScore: number;
39
+ serviceCenterTotalReviews: number;
40
+ serviceCenterPhonesCsv: string;
41
+ clientAddress: string;
42
+ serviceCenterGeolocation: Point;
11
43
  agent: Users;
12
44
  agentId: number;
13
45
  distance: number;
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ServiceCenterInteractionEntity = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const call_driver_data_entity_1 = require("./call-driver-data.entity");
15
- const service_center_entity_1 = require("./service-center.entity");
16
15
  const usr_entity_1 = require("./usr.entity");
17
16
  const service_center_geocode_cache_entity_1 = require("./service-center-geocode-cache.entity");
18
17
  let ServiceCenterInteractionEntity = class ServiceCenterInteractionEntity {
@@ -32,14 +31,148 @@ __decorate([
32
31
  __metadata("design:type", Number)
33
32
  ], ServiceCenterInteractionEntity.prototype, "callDriverDataId", void 0);
34
33
  __decorate([
35
- (0, typeorm_1.ManyToOne)(() => service_center_entity_1.ServiceCenterEntity),
36
- (0, typeorm_1.JoinColumn)({ name: 'service_center_id' }),
37
- __metadata("design:type", service_center_entity_1.ServiceCenterEntity)
38
- ], ServiceCenterInteractionEntity.prototype, "serviceCenter", void 0);
34
+ (0, typeorm_1.Column)({ name: 'service_center_servicer_account', type: 'varchar', nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterServicerAccount", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ name: 'service_center_system', type: 'varchar', nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterSystem", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ name: 'service_center_use_flag', type: 'varchar', nullable: true }),
43
+ __metadata("design:type", String)
44
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterUseFlag", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ name: 'service_center_servicer_name', type: 'varchar', nullable: true }),
47
+ __metadata("design:type", String)
48
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterServicerName", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ name: 'service_center_contact', type: 'varchar', nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterContact", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ name: 'service_center_address', type: 'varchar', nullable: true }),
55
+ __metadata("design:type", String)
56
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterAddress", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ name: 'service_center_city', type: 'varchar', nullable: true }),
59
+ __metadata("design:type", String)
60
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterCity", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ name: 'service_center_county', type: 'varchar', nullable: true }),
63
+ __metadata("design:type", String)
64
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterCounty", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ name: 'service_center_state', type: 'varchar', nullable: true }),
67
+ __metadata("design:type", String)
68
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterState", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ name: 'service_center_zip_code', type: 'varchar', nullable: true }),
71
+ __metadata("design:type", String)
72
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterZipCode", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ name: 'service_center_country', type: 'varchar', nullable: true }),
75
+ __metadata("design:type", String)
76
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterCountry", void 0);
39
77
  __decorate([
40
- (0, typeorm_1.Column)({ name: 'service_center_id' }),
78
+ (0, typeorm_1.Column)({ name: 'service_center_servicer_type', type: 'varchar', nullable: true }),
79
+ __metadata("design:type", String)
80
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterServicerType", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ name: 'service_center_fax', type: 'varchar', nullable: true }),
83
+ __metadata("design:type", String)
84
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterFax", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.Column)({ name: 'service_center_email', type: 'varchar', nullable: true }),
87
+ __metadata("design:type", String)
88
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterEmail", void 0);
89
+ __decorate([
90
+ (0, typeorm_1.Column)({ name: 'service_center_lg_score', type: 'integer', nullable: true }),
41
91
  __metadata("design:type", Number)
42
- ], ServiceCenterInteractionEntity.prototype, "serviceCenterId", void 0);
92
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterLgScore", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.Column)({ name: 'service_center_profile_indicator', type: 'varchar', nullable: true }),
95
+ __metadata("design:type", String)
96
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterProfileIndicator", void 0);
97
+ __decorate([
98
+ (0, typeorm_1.Column)({ name: 'service_center_status', type: 'varchar', nullable: true }),
99
+ __metadata("design:type", String)
100
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterStatus", void 0);
101
+ __decorate([
102
+ (0, typeorm_1.Column)({ name: 'service_center_eligible', type: 'boolean', nullable: true }),
103
+ __metadata("design:type", Boolean)
104
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterEligible", void 0);
105
+ __decorate([
106
+ (0, typeorm_1.Column)({ name: 'service_center_locating_flag', type: 'boolean', nullable: true }),
107
+ __metadata("design:type", Boolean)
108
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterLocatingFlag", void 0);
109
+ __decorate([
110
+ (0, typeorm_1.Column)({ name: 'service_center_auto_acceptance_flag', type: 'boolean', nullable: true }),
111
+ __metadata("design:type", Boolean)
112
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterAutoAcceptanceFlag", void 0);
113
+ __decorate([
114
+ (0, typeorm_1.Column)({ name: 'service_center_parts_management_program_flag', type: 'boolean', nullable: true }),
115
+ __metadata("design:type", Boolean)
116
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterPartsManagementProgramFlag", void 0);
117
+ __decorate([
118
+ (0, typeorm_1.Column)({ name: 'service_center_zipcode_coverage', type: 'boolean', nullable: true }),
119
+ __metadata("design:type", Boolean)
120
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterZipcodeCoverage", void 0);
121
+ __decorate([
122
+ (0, typeorm_1.Column)({ name: 'service_center_brand_coverage', type: 'boolean', nullable: true }),
123
+ __metadata("design:type", Boolean)
124
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterBrandCoverage", void 0);
125
+ __decorate([
126
+ (0, typeorm_1.Column)({ name: 'service_center_product_coverage', type: 'boolean', nullable: true }),
127
+ __metadata("design:type", Boolean)
128
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterProductCoverage", void 0);
129
+ __decorate([
130
+ (0, typeorm_1.Column)({ name: 'service_center_overwrite_cut_off_time', type: 'varchar', nullable: true }),
131
+ __metadata("design:type", String)
132
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterOverwriteCutOffTime", void 0);
133
+ __decorate([
134
+ (0, typeorm_1.Column)({ name: 'service_center_exclude_servicer_from_email', type: 'boolean', nullable: true }),
135
+ __metadata("design:type", Boolean)
136
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterExcludeServicerFromEmail", void 0);
137
+ __decorate([
138
+ (0, typeorm_1.Column)({ name: 'service_center_notes_notification_email', type: 'varchar', nullable: true }),
139
+ __metadata("design:type", String)
140
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterNotesNotificationEmail", void 0);
141
+ __decorate([
142
+ (0, typeorm_1.Column)({ name: 'service_center_classification', type: 'varchar', nullable: true }),
143
+ __metadata("design:type", String)
144
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterClassification", void 0);
145
+ __decorate([
146
+ (0, typeorm_1.Column)({ name: 'service_center_is_authorized', type: 'boolean', nullable: true }),
147
+ __metadata("design:type", Boolean)
148
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterIsAuthorized", void 0);
149
+ __decorate([
150
+ (0, typeorm_1.Column)('numeric', { name: 'service_center_overall_review_score', precision: 3, scale: 2, nullable: true }),
151
+ __metadata("design:type", Number)
152
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterOverallReviewScore", void 0);
153
+ __decorate([
154
+ (0, typeorm_1.Column)({ name: 'service_center_total_reviews', type: 'integer', nullable: true }),
155
+ __metadata("design:type", Number)
156
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterTotalReviews", void 0);
157
+ __decorate([
158
+ (0, typeorm_1.Column)({ name: 'service_center_phones_csv', type: 'text', nullable: true }),
159
+ __metadata("design:type", String)
160
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterPhonesCsv", void 0);
161
+ __decorate([
162
+ (0, typeorm_1.Column)({ name: 'client_address', type: 'text', nullable: true }),
163
+ __metadata("design:type", String)
164
+ ], ServiceCenterInteractionEntity.prototype, "clientAddress", void 0);
165
+ __decorate([
166
+ (0, typeorm_1.Index)({ spatial: true }),
167
+ (0, typeorm_1.Column)({
168
+ name: 'service_center_geolocation',
169
+ type: 'geometry',
170
+ spatialFeatureType: 'Point',
171
+ srid: 4326,
172
+ nullable: true,
173
+ }),
174
+ __metadata("design:type", Object)
175
+ ], ServiceCenterInteractionEntity.prototype, "serviceCenterGeolocation", void 0);
43
176
  __decorate([
44
177
  (0, typeorm_1.ManyToOne)(() => usr_entity_1.Users),
45
178
  (0, typeorm_1.JoinColumn)({ name: 'agent_id' }),
@@ -38,6 +38,7 @@ export declare class ServiceCenterEntity {
38
38
  phones: ServiceCenterPhoneEntity[];
39
39
  agent: Users;
40
40
  agentId: number;
41
+ dateCreated: Date;
41
42
  dateUpdated: Date;
42
43
  geolocation: Point;
43
44
  }
@@ -161,6 +161,10 @@ __decorate([
161
161
  (0, typeorm_1.Column)({ name: 'agent_id', nullable: true }),
162
162
  __metadata("design:type", Number)
163
163
  ], ServiceCenterEntity.prototype, "agentId", void 0);
164
+ __decorate([
165
+ (0, typeorm_1.CreateDateColumn)({ name: 'date_created', type: 'timestamp' }),
166
+ __metadata("design:type", Date)
167
+ ], ServiceCenterEntity.prototype, "dateCreated", void 0);
164
168
  __decorate([
165
169
  (0, typeorm_1.UpdateDateColumn)({ name: 'date_updated', type: 'timestamp' }),
166
170
  __metadata("design:type", Date)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "4.0.26",
3
+ "version": "4.0.27",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",