@uniorganization/uni-lib 4.0.19 → 4.0.20

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.
@@ -83,3 +83,4 @@ export * from './service-center-interaction.entity';
83
83
  export * from './service-center-review.entity';
84
84
  export * from './service-center-phone.entity';
85
85
  export * from './service-center-distance-cache.entity';
86
+ export * from './service-center-geocode-cache.entity';
@@ -99,3 +99,4 @@ __exportStar(require("./service-center-interaction.entity"), exports);
99
99
  __exportStar(require("./service-center-review.entity"), exports);
100
100
  __exportStar(require("./service-center-phone.entity"), exports);
101
101
  __exportStar(require("./service-center-distance-cache.entity"), exports);
102
+ __exportStar(require("./service-center-geocode-cache.entity"), exports);
@@ -0,0 +1,14 @@
1
+ import { Users } from './usr.entity';
2
+ import { ServiceCenterInteractionEntity } from './service-center-interaction.entity';
3
+ export declare class ServiceCenterGeocodeCacheEntity {
4
+ id: number;
5
+ fullOriginalAddress: string;
6
+ fullOriginalAddressNormalized: string;
7
+ responseJson: Record<string, any>;
8
+ serviceCenterInteraction?: ServiceCenterInteractionEntity | null;
9
+ serviceCenterInteractionId?: number | null;
10
+ createdBy?: Users | null;
11
+ createdById: number | null;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ServiceCenterGeocodeCacheEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const usr_entity_1 = require("./usr.entity");
15
+ const service_center_interaction_entity_1 = require("./service-center-interaction.entity");
16
+ let ServiceCenterGeocodeCacheEntity = class ServiceCenterGeocodeCacheEntity {
17
+ };
18
+ exports.ServiceCenterGeocodeCacheEntity = ServiceCenterGeocodeCacheEntity;
19
+ __decorate([
20
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
21
+ __metadata("design:type", Number)
22
+ ], ServiceCenterGeocodeCacheEntity.prototype, "id", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)({ name: 'full_original_address', type: 'text', nullable: false }),
25
+ __metadata("design:type", String)
26
+ ], ServiceCenterGeocodeCacheEntity.prototype, "fullOriginalAddress", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ name: 'full_original_address_normalized', type: 'text', nullable: false }),
29
+ __metadata("design:type", String)
30
+ ], ServiceCenterGeocodeCacheEntity.prototype, "fullOriginalAddressNormalized", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ name: 'response_json', type: 'jsonb', nullable: false }),
33
+ __metadata("design:type", Object)
34
+ ], ServiceCenterGeocodeCacheEntity.prototype, "responseJson", void 0);
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);
44
+ __decorate([
45
+ (0, typeorm_1.ManyToOne)(() => usr_entity_1.Users),
46
+ (0, typeorm_1.JoinColumn)({ name: 'created_by_id' }),
47
+ __metadata("design:type", usr_entity_1.Users)
48
+ ], ServiceCenterGeocodeCacheEntity.prototype, "createdBy", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ name: 'created_by_id', type: 'integer', nullable: true }),
51
+ __metadata("design:type", Number)
52
+ ], ServiceCenterGeocodeCacheEntity.prototype, "createdById", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'timestamptz' }),
55
+ __metadata("design:type", Date)
56
+ ], ServiceCenterGeocodeCacheEntity.prototype, "createdAt", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', type: 'timestamptz' }),
59
+ __metadata("design:type", Date)
60
+ ], ServiceCenterGeocodeCacheEntity.prototype, "updatedAt", void 0);
61
+ exports.ServiceCenterGeocodeCacheEntity = ServiceCenterGeocodeCacheEntity = __decorate([
62
+ (0, typeorm_1.Entity)('service_center_geocode_cache', { schema: 'enr' }),
63
+ (0, typeorm_1.Index)(['fullOriginalAddressNormalized'], { unique: true })
64
+ ], ServiceCenterGeocodeCacheEntity);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "4.0.19",
3
+ "version": "4.0.20",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",