Files
maps-saas/apps/api/dist/geocoding/entities/map-candidate.entity.js
T

85 lines
3.3 KiB
JavaScript

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapCandidate = exports.CountryCode = exports.CandidateStatus = void 0;
const typeorm_1 = require("typeorm");
const base_place_entity_1 = require("./base-place.entity");
var CandidateStatus;
(function (CandidateStatus) {
CandidateStatus["PENDING"] = "PENDING";
CandidateStatus["APPROVED"] = "APPROVED";
CandidateStatus["REJECTED"] = "REJECTED";
})(CandidateStatus || (exports.CandidateStatus = CandidateStatus = {}));
var CountryCode;
(function (CountryCode) {
CountryCode["JORDAN"] = "JORDAN";
CountryCode["SYRIA"] = "SYRIA";
CountryCode["EGYPT"] = "EGYPT";
CountryCode["IRAQ"] = "IRAQ";
})(CountryCode || (exports.CountryCode = CountryCode = {}));
let MapCandidate = class MapCandidate extends base_place_entity_1.BasePlace {
status;
submittedBy;
rejectionReason;
country;
metadata;
verified_name;
confidence_score;
verification_metadata;
};
exports.MapCandidate = MapCandidate;
__decorate([
(0, typeorm_1.Column)({
type: 'enum',
enum: CandidateStatus,
default: CandidateStatus.PENDING
}),
(0, typeorm_1.Index)(),
__metadata("design:type", String)
], MapCandidate.prototype, "status", void 0);
__decorate([
(0, typeorm_1.Column)({ nullable: true }),
(0, typeorm_1.Index)(),
__metadata("design:type", String)
], MapCandidate.prototype, "submittedBy", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
__metadata("design:type", String)
], MapCandidate.prototype, "rejectionReason", void 0);
__decorate([
(0, typeorm_1.Column)({
type: 'enum',
enum: CountryCode,
default: CountryCode.JORDAN
}),
(0, typeorm_1.Index)(),
__metadata("design:type", String)
], MapCandidate.prototype, "country", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
__metadata("design:type", Object)
], MapCandidate.prototype, "metadata", void 0);
__decorate([
(0, typeorm_1.Column)({ nullable: true }),
__metadata("design:type", String)
], MapCandidate.prototype, "verified_name", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
__metadata("design:type", Number)
], MapCandidate.prototype, "confidence_score", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
__metadata("design:type", Object)
], MapCandidate.prototype, "verification_metadata", void 0);
exports.MapCandidate = MapCandidate = __decorate([
(0, typeorm_1.Entity)('map_candidates')
], MapCandidate);
//# sourceMappingURL=map-candidate.entity.js.map