feat: implement billing, usage tracking, and administrative geocoding features in API with infrastructure updates
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { BasePlace } from './base-place.entity';
|
||||
export declare enum CandidateStatus {
|
||||
PENDING = "PENDING",
|
||||
APPROVED = "APPROVED",
|
||||
REJECTED = "REJECTED"
|
||||
}
|
||||
export declare enum CountryCode {
|
||||
JORDAN = "JORDAN",
|
||||
SYRIA = "SYRIA",
|
||||
EGYPT = "EGYPT"
|
||||
}
|
||||
export declare class MapCandidate extends BasePlace {
|
||||
status: CandidateStatus;
|
||||
submittedBy: string;
|
||||
rejectionReason: string;
|
||||
country: CountryCode;
|
||||
metadata: any;
|
||||
verified_name: string;
|
||||
confidence_score: number;
|
||||
verification_metadata: any;
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
"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 || (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
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map-candidate.entity.js","sourceRoot":"","sources":["../../../src/geocoding/entities/map-candidate.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgD;AAChD,2DAAgD;AAEhD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;AACvB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;IACf,8BAAe,CAAA;AACjB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,6BAAS;IAOzC,MAAM,CAAkB;IAIxB,WAAW,CAAS;IAGpB,eAAe,CAAS;IAQxB,OAAO,CAAc;IAGrB,QAAQ,CAAM;IAGd,aAAa,CAAS;IAGtB,gBAAgB,CAAS;IAGzB,qBAAqB,CAAM;CAC5B,CAAA;AAnCY,oCAAY;AAOvB;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,eAAe,CAAC,OAAO;KACjC,CAAC;IACD,IAAA,eAAK,GAAE;;4CACgB;AAIxB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1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