grm-shared-library 1.1.127 → 1.1.129
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.
- package/dist/cjs/modules/gis/dtos/batch-route-incidents.dto.js +22 -0
- package/dist/cjs/modules/gis/dtos/batch-route-incidents.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/batch-route-point.dto.js +5 -0
- package/dist/cjs/modules/gis/dtos/batch-route-point.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/batch-routing-result.dto.js +26 -0
- package/dist/cjs/modules/gis/dtos/batch-routing-result.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/bounding-box.dto.js +46 -0
- package/dist/cjs/modules/gis/dtos/bounding-box.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/bulk-point-query-result.dto.js +27 -0
- package/dist/cjs/modules/gis/dtos/bulk-point-query-result.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/bulk-point-query.dto.js +18 -0
- package/dist/cjs/modules/gis/dtos/bulk-point-query.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/control-centre-routing-result.dto.js +53 -0
- package/dist/cjs/modules/gis/dtos/control-centre-routing-result.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/coordinate.dto.js +13 -0
- package/dist/cjs/modules/gis/dtos/coordinate.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/create-buffer.dto.js +14 -0
- package/dist/cjs/modules/gis/dtos/create-buffer.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/create-zone.dto.js +56 -0
- package/dist/cjs/modules/gis/dtos/create-zone.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/find-zone-for-point.dto.js +15 -0
- package/dist/cjs/modules/gis/dtos/find-zone-for-point.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/find-zones-near-point.dto.js +7 -0
- package/dist/cjs/modules/gis/dtos/find-zones-near-point.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/geo-json-polygon.dto.js +11 -0
- package/dist/cjs/modules/gis/dtos/geo-json-polygon.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/incident-routing-result.dto.js +68 -0
- package/dist/cjs/modules/gis/dtos/incident-routing-result.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/point-containment-result.dto.js +17 -0
- package/dist/cjs/modules/gis/dtos/point-containment-result.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/point-location.dto.js +13 -0
- package/dist/cjs/modules/gis/dtos/point-location.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/post-gis-geometry.dto.js +14 -0
- package/dist/cjs/modules/gis/dtos/post-gis-geometry.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/route-incident.dto.js +17 -0
- package/dist/cjs/modules/gis/dtos/route-incident.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/routing-coverage-result.dto.js +31 -0
- package/dist/cjs/modules/gis/dtos/routing-coverage-result.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/simplify-polygon.dto.js +20 -0
- package/dist/cjs/modules/gis/dtos/simplify-polygon.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/zone-list-response.dto.js +52 -0
- package/dist/cjs/modules/gis/dtos/zone-list-response.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/zone-match-result.dto.js +59 -0
- package/dist/cjs/modules/gis/dtos/zone-match-result.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/zone-response.dto.js +146 -0
- package/dist/cjs/modules/gis/dtos/zone-response.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/zone-statistics-result.dto.js +38 -0
- package/dist/cjs/modules/gis/dtos/zone-statistics-result.dto.js.map +1 -1
- package/dist/cjs/modules/gis/dtos/zone-with-distance-result.dto.js +59 -0
- package/dist/cjs/modules/gis/dtos/zone-with-distance-result.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/batch-route-incidents.dto.js +22 -0
- package/dist/esm/modules/gis/dtos/batch-route-incidents.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/batch-route-point.dto.js +5 -0
- package/dist/esm/modules/gis/dtos/batch-route-point.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/batch-routing-result.dto.js +26 -0
- package/dist/esm/modules/gis/dtos/batch-routing-result.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/bounding-box.dto.js +46 -0
- package/dist/esm/modules/gis/dtos/bounding-box.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/bulk-point-query-result.dto.js +27 -0
- package/dist/esm/modules/gis/dtos/bulk-point-query-result.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/bulk-point-query.dto.js +18 -0
- package/dist/esm/modules/gis/dtos/bulk-point-query.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/control-centre-routing-result.dto.js +53 -0
- package/dist/esm/modules/gis/dtos/control-centre-routing-result.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/coordinate.dto.js +13 -0
- package/dist/esm/modules/gis/dtos/coordinate.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/create-buffer.dto.js +14 -0
- package/dist/esm/modules/gis/dtos/create-buffer.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/create-zone.dto.js +56 -0
- package/dist/esm/modules/gis/dtos/create-zone.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/find-zone-for-point.dto.js +15 -0
- package/dist/esm/modules/gis/dtos/find-zone-for-point.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/find-zones-near-point.dto.js +7 -0
- package/dist/esm/modules/gis/dtos/find-zones-near-point.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/geo-json-polygon.dto.js +11 -0
- package/dist/esm/modules/gis/dtos/geo-json-polygon.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/incident-routing-result.dto.js +68 -0
- package/dist/esm/modules/gis/dtos/incident-routing-result.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/point-containment-result.dto.js +17 -0
- package/dist/esm/modules/gis/dtos/point-containment-result.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/point-location.dto.js +13 -0
- package/dist/esm/modules/gis/dtos/point-location.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/post-gis-geometry.dto.js +14 -0
- package/dist/esm/modules/gis/dtos/post-gis-geometry.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/route-incident.dto.js +17 -0
- package/dist/esm/modules/gis/dtos/route-incident.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/routing-coverage-result.dto.js +31 -0
- package/dist/esm/modules/gis/dtos/routing-coverage-result.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/simplify-polygon.dto.js +20 -0
- package/dist/esm/modules/gis/dtos/simplify-polygon.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/zone-list-response.dto.js +52 -0
- package/dist/esm/modules/gis/dtos/zone-list-response.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/zone-match-result.dto.js +59 -0
- package/dist/esm/modules/gis/dtos/zone-match-result.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/zone-response.dto.js +146 -0
- package/dist/esm/modules/gis/dtos/zone-response.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/zone-statistics-result.dto.js +38 -0
- package/dist/esm/modules/gis/dtos/zone-statistics-result.dto.js.map +1 -1
- package/dist/esm/modules/gis/dtos/zone-with-distance-result.dto.js +59 -0
- package/dist/esm/modules/gis/dtos/zone-with-distance-result.dto.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BatchRouteIncidentsDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const batch_route_point_dto_1 = require("./batch-route-point.dto");
|
|
15
|
+
const route_incident_dto_1 = require("./route-incident.dto");
|
|
15
16
|
const class_transformer_1 = require("class-transformer");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
18
|
class BatchRouteIncidentsDto {
|
|
17
19
|
constructor() {
|
|
18
20
|
this.concurrencyLimit = 10;
|
|
@@ -20,6 +22,14 @@ class BatchRouteIncidentsDto {
|
|
|
20
22
|
}
|
|
21
23
|
exports.BatchRouteIncidentsDto = BatchRouteIncidentsDto;
|
|
22
24
|
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({
|
|
26
|
+
description: 'Array of geographic points to route incidents for',
|
|
27
|
+
type: [batch_route_point_dto_1.BatchRoutePointDto],
|
|
28
|
+
example: [
|
|
29
|
+
{ lat: 40.7128, lng: -74.0060, id: 'point-1' },
|
|
30
|
+
{ lat: 34.0522, lng: -118.2437, id: 'point-2' }
|
|
31
|
+
]
|
|
32
|
+
}),
|
|
23
33
|
(0, class_validator_1.IsArray)(),
|
|
24
34
|
(0, class_validator_1.ArrayNotEmpty)(),
|
|
25
35
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
@@ -27,10 +37,22 @@ __decorate([
|
|
|
27
37
|
__metadata("design:type", Array)
|
|
28
38
|
], BatchRouteIncidentsDto.prototype, "points", void 0);
|
|
29
39
|
__decorate([
|
|
40
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
41
|
+
description: 'Optional routing configuration to apply to all points',
|
|
42
|
+
type: () => route_incident_dto_1.RouteIncidentDto,
|
|
43
|
+
example: { allowFallback: true, fallbackRadiusMeters: 5000 }
|
|
44
|
+
}),
|
|
30
45
|
(0, class_validator_1.IsOptional)(),
|
|
31
46
|
__metadata("design:type", Object)
|
|
32
47
|
], BatchRouteIncidentsDto.prototype, "routingOptions", void 0);
|
|
33
48
|
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
description: 'Maximum number of concurrent routing operations to execute simultaneously',
|
|
51
|
+
minimum: 1,
|
|
52
|
+
maximum: 100,
|
|
53
|
+
default: 10,
|
|
54
|
+
example: 10
|
|
55
|
+
}),
|
|
34
56
|
(0, class_validator_1.IsOptional)(),
|
|
35
57
|
(0, class_validator_1.IsNumber)(),
|
|
36
58
|
(0, class_validator_1.Min)(1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-route-incidents.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/batch-route-incidents.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyG;AACzG,mEAA6D;
|
|
1
|
+
{"version":3,"file":"batch-route-incidents.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/batch-route-incidents.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyG;AACzG,mEAA6D;AAC7D,6DAAwD;AACxD,yDAAyC;AACzC,6CAAmE;AAEnE,MAAa,sBAAsB;IAAnC;QAkCI,qBAAgB,GAAW,EAAE,CAAC;IAClC,CAAC;CAAA;AAnCD,wDAmCC;AAtBG;IAZC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,mDAAmD;QAChE,IAAI,EAAE,CAAC,0CAAkB,CAAC;QAC1B,OAAO,EAAE;YACL,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE;YAC9C,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE;SAClD;KACJ,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,0CAAkB,CAAC;;sDACD;AAQ9B;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,GAAG,EAAE,CAAC,qCAAgB;QAC5B,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE;KAC/D,CAAC;IACD,IAAA,4BAAU,GAAE;;8DAC8B;AAa3C;IAXC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,2EAA2E;QACxF,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,GAAG;QACZ,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;KACd,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;;gEACqB"}
|
|
@@ -12,10 +12,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BatchRoutePointDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const point_location_dto_1 = require("./point-location.dto");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
16
|
class BatchRoutePointDto extends point_location_dto_1.PointLocationDto {
|
|
16
17
|
}
|
|
17
18
|
exports.BatchRoutePointDto = BatchRoutePointDto;
|
|
18
19
|
__decorate([
|
|
20
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
21
|
+
description: 'Optional identifier for the point to track results',
|
|
22
|
+
example: 'incident-123'
|
|
23
|
+
}),
|
|
19
24
|
(0, class_validator_1.IsOptional)(),
|
|
20
25
|
(0, class_validator_1.IsString)(),
|
|
21
26
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-route-point.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/batch-route-point.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,6DAAwD;
|
|
1
|
+
{"version":3,"file":"batch-route-point.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/batch-route-point.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,6DAAwD;AACxD,6CAAsD;AAEtD,MAAa,kBAAmB,SAAQ,qCAAgB;CAQvD;AARD,gDAQC;AADG;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE,cAAc;KAC1B,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACC"}
|
|
@@ -1,7 +1,33 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.BatchRoutingResultDto = void 0;
|
|
13
|
+
const batch_route_point_dto_1 = require("./batch-route-point.dto");
|
|
14
|
+
const incident_routing_result_dto_1 = require("./incident-routing-result.dto");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
4
16
|
class BatchRoutingResultDto {
|
|
5
17
|
}
|
|
6
18
|
exports.BatchRoutingResultDto = BatchRoutingResultDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
description: 'The geographic point that was routed',
|
|
22
|
+
type: () => batch_route_point_dto_1.BatchRoutePointDto
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", batch_route_point_dto_1.BatchRoutePointDto)
|
|
25
|
+
], BatchRoutingResultDto.prototype, "point", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: 'The routing result for this point',
|
|
29
|
+
type: () => incident_routing_result_dto_1.IncidentRoutingResultDto
|
|
30
|
+
}),
|
|
31
|
+
__metadata("design:type", incident_routing_result_dto_1.IncidentRoutingResultDto)
|
|
32
|
+
], BatchRoutingResultDto.prototype, "result", void 0);
|
|
7
33
|
//# sourceMappingURL=batch-routing-result.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-routing-result.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/batch-routing-result.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"batch-routing-result.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/batch-routing-result.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA6D;AAC7D,+EAAyE;AACzE,6CAA8C;AAE9C,MAAa,qBAAqB;CAYjC;AAZD,sDAYC;AAPG;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,GAAG,EAAE,CAAC,0CAAkB;KACjC,CAAC;8BACM,0CAAkB;oDAAC;AAM3B;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,mCAAmC;QAChD,IAAI,EAAE,GAAG,EAAE,CAAC,sDAAwB;KACvC,CAAC;8BACO,sDAAwB;qDAAC"}
|
|
@@ -1,7 +1,53 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.BoundingBoxDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
4
14
|
class BoundingBoxDto {
|
|
5
15
|
}
|
|
6
16
|
exports.BoundingBoxDto = BoundingBoxDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)({
|
|
19
|
+
description: 'Minimum longitude (westernmost point)',
|
|
20
|
+
minimum: -180,
|
|
21
|
+
maximum: 180,
|
|
22
|
+
example: -74.0060
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], BoundingBoxDto.prototype, "minLng", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: 'Minimum latitude (southernmost point)',
|
|
29
|
+
minimum: -90,
|
|
30
|
+
maximum: 90,
|
|
31
|
+
example: 40.7128
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], BoundingBoxDto.prototype, "minLat", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
description: 'Maximum longitude (easternmost point)',
|
|
38
|
+
minimum: -180,
|
|
39
|
+
maximum: 180,
|
|
40
|
+
example: -73.9352
|
|
41
|
+
}),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], BoundingBoxDto.prototype, "maxLng", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({
|
|
46
|
+
description: 'Maximum latitude (northernmost point)',
|
|
47
|
+
minimum: -90,
|
|
48
|
+
maximum: 90,
|
|
49
|
+
example: 40.8848
|
|
50
|
+
}),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], BoundingBoxDto.prototype, "maxLat", void 0);
|
|
7
53
|
//# sourceMappingURL=bounding-box.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounding-box.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/bounding-box.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bounding-box.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/bounding-box.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAE9C,MAAa,cAAc;CAgC1B;AAhCD,wCAgCC;AAzBG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,CAAC,GAAG;QACb,OAAO,EAAE,GAAG;QACZ,OAAO,EAAE,CAAC,OAAO;KACpB,CAAC;;8CACc;AAQhB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,CAAC,EAAE;QACZ,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,OAAO;KACnB,CAAC;;8CACc;AAQhB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,CAAC,GAAG;QACb,OAAO,EAAE,GAAG;QACZ,OAAO,EAAE,CAAC,OAAO;KACpB,CAAC;;8CACc;AAQhB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,CAAC,EAAE;QACZ,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,OAAO;KACnB,CAAC;;8CACc"}
|
|
@@ -1,7 +1,34 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.BulkPointQueryResultDto = void 0;
|
|
13
|
+
const point_location_dto_1 = require("./point-location.dto");
|
|
14
|
+
const zone_match_result_dto_1 = require("./zone-match-result.dto");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
4
16
|
class BulkPointQueryResultDto {
|
|
5
17
|
}
|
|
6
18
|
exports.BulkPointQueryResultDto = BulkPointQueryResultDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
description: 'The geographic point that was queried',
|
|
22
|
+
type: () => point_location_dto_1.PointLocationDto
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", point_location_dto_1.PointLocationDto)
|
|
25
|
+
], BulkPointQueryResultDto.prototype, "point", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: 'Array of zones that contain this point',
|
|
29
|
+
type: [zone_match_result_dto_1.ZoneMatchResultDto],
|
|
30
|
+
isArray: true
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], BulkPointQueryResultDto.prototype, "zones", void 0);
|
|
7
34
|
//# sourceMappingURL=bulk-point-query-result.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-point-query-result.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/bulk-point-query-result.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulk-point-query-result.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/bulk-point-query-result.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAwD;AACxD,mEAA6D;AAC7D,6CAA8C;AAE9C,MAAa,uBAAuB;CAanC;AAbD,0DAaC;AARG;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,GAAG,EAAE,CAAC,qCAAgB;KAC/B,CAAC;8BACM,qCAAgB;sDAAC;AAOzB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,CAAC,0CAAkB,CAAC;QAC1B,OAAO,EAAE,IAAI;KAChB,CAAC;;sDAC2B"}
|
|
@@ -13,6 +13,7 @@ exports.BulkPointQueryDto = void 0;
|
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const point_location_dto_1 = require("./point-location.dto");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
17
|
class BulkPointQueryDto {
|
|
17
18
|
constructor() {
|
|
18
19
|
this.activeOnly = true;
|
|
@@ -20,6 +21,14 @@ class BulkPointQueryDto {
|
|
|
20
21
|
}
|
|
21
22
|
exports.BulkPointQueryDto = BulkPointQueryDto;
|
|
22
23
|
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({
|
|
25
|
+
description: 'Array of geographic points to query for zone containment',
|
|
26
|
+
type: [point_location_dto_1.PointLocationDto],
|
|
27
|
+
example: [
|
|
28
|
+
{ lat: 40.7128, lng: -74.0060 },
|
|
29
|
+
{ lat: 34.0522, lng: -118.2437 }
|
|
30
|
+
]
|
|
31
|
+
}),
|
|
23
32
|
(0, class_validator_1.IsArray)(),
|
|
24
33
|
(0, class_validator_1.ArrayNotEmpty)(),
|
|
25
34
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
@@ -27,11 +36,20 @@ __decorate([
|
|
|
27
36
|
__metadata("design:type", Array)
|
|
28
37
|
], BulkPointQueryDto.prototype, "points", void 0);
|
|
29
38
|
__decorate([
|
|
39
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
40
|
+
description: 'Filter zones by organization ID',
|
|
41
|
+
example: 1
|
|
42
|
+
}),
|
|
30
43
|
(0, class_validator_1.IsOptional)(),
|
|
31
44
|
(0, class_validator_1.IsNumber)(),
|
|
32
45
|
__metadata("design:type", Number)
|
|
33
46
|
], BulkPointQueryDto.prototype, "organizationId", void 0);
|
|
34
47
|
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({
|
|
49
|
+
description: 'Only return active zones',
|
|
50
|
+
default: true,
|
|
51
|
+
example: true
|
|
52
|
+
}),
|
|
35
53
|
(0, class_validator_1.IsOptional)(),
|
|
36
54
|
(0, class_validator_1.IsBoolean)(),
|
|
37
55
|
__metadata("design:type", Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-point-query.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/bulk-point-query.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0G;AAC1G,6DAAwD;AACxD,yDAAyC;
|
|
1
|
+
{"version":3,"file":"bulk-point-query.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/bulk-point-query.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0G;AAC1G,6DAAwD;AACxD,yDAAyC;AACzC,6CAAmE;AAEnE,MAAa,iBAAiB;IAA9B;QA8BI,eAAU,GAAY,IAAI,CAAC;IAC/B,CAAC;CAAA;AA/BD,8CA+BC;AAlBG;IAZC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0DAA0D;QACvE,IAAI,EAAE,CAAC,qCAAgB,CAAC;QACxB,OAAO,EAAE;YACL,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE;YAC/B,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE;SACnC;KACJ,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAgB,CAAC;;iDACD;AAQ5B;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,CAAC;KACb,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACa;AASxB;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;qDACe"}
|
|
@@ -1,7 +1,60 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.ControlCentreRoutingResultDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
4
14
|
class ControlCentreRoutingResultDto {
|
|
5
15
|
}
|
|
6
16
|
exports.ControlCentreRoutingResultDto = ControlCentreRoutingResultDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)({
|
|
19
|
+
description: 'ID of the control centre that owns the matched zone',
|
|
20
|
+
example: 1
|
|
21
|
+
}),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ControlCentreRoutingResultDto.prototype, "controlCentreId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({
|
|
26
|
+
description: 'ID of the organization that owns the control centre',
|
|
27
|
+
example: 1
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], ControlCentreRoutingResultDto.prototype, "organizationId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({
|
|
33
|
+
description: 'Name of the matched zone',
|
|
34
|
+
example: 'Downtown District'
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ControlCentreRoutingResultDto.prototype, "zoneName", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
description: 'ID of the matched zone',
|
|
41
|
+
example: 42
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ControlCentreRoutingResultDto.prototype, "zoneId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({
|
|
47
|
+
description: 'Priority level of the matched zone',
|
|
48
|
+
example: 1
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ControlCentreRoutingResultDto.prototype, "priority", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({
|
|
54
|
+
description: 'Timestamp when the match was made',
|
|
55
|
+
type: Date,
|
|
56
|
+
example: '2026-01-08T10:30:00Z'
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], ControlCentreRoutingResultDto.prototype, "matchedAt", void 0);
|
|
7
60
|
//# sourceMappingURL=control-centre-routing-result.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-centre-routing-result.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/control-centre-routing-result.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control-centre-routing-result.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/control-centre-routing-result.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAE9C,MAAa,6BAA6B;CAqCzC;AArCD,sEAqCC;AAhCG;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,qDAAqD;QAClE,OAAO,EAAE,CAAC;KACb,CAAC;;sEACuB;AAMzB;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,qDAAqD;QAClE,OAAO,EAAE,CAAC;KACb,CAAC;;qEACsB;AAMxB;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,mBAAmB;KAC/B,CAAC;;+DACgB;AAMlB;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,EAAE;KACd,CAAC;;6DACc;AAMhB;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,CAAC;KACb,CAAC;;+DACgB;AAOlB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,mCAAmC;QAChD,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,sBAAsB;KAClC,CAAC;8BACU,IAAI;gEAAC"}
|
|
@@ -11,16 +11,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CoordinateDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
class CoordinateDto {
|
|
15
16
|
}
|
|
16
17
|
exports.CoordinateDto = CoordinateDto;
|
|
17
18
|
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'Longitude coordinate in decimal degrees',
|
|
21
|
+
minimum: -180,
|
|
22
|
+
maximum: 180,
|
|
23
|
+
example: -74.0060
|
|
24
|
+
}),
|
|
18
25
|
(0, class_validator_1.IsNumber)(),
|
|
19
26
|
(0, class_validator_1.Min)(-180),
|
|
20
27
|
(0, class_validator_1.Max)(180),
|
|
21
28
|
__metadata("design:type", Number)
|
|
22
29
|
], CoordinateDto.prototype, "lng", void 0);
|
|
23
30
|
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({
|
|
32
|
+
description: 'Latitude coordinate in decimal degrees',
|
|
33
|
+
minimum: -90,
|
|
34
|
+
maximum: 90,
|
|
35
|
+
example: 40.7128
|
|
36
|
+
}),
|
|
24
37
|
(0, class_validator_1.IsNumber)(),
|
|
25
38
|
(0, class_validator_1.Min)(-90),
|
|
26
39
|
(0, class_validator_1.Max)(90),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinate.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/coordinate.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;
|
|
1
|
+
{"version":3,"file":"coordinate.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/coordinate.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,6CAA8C;AAE9C,MAAa,aAAa;CAsBzB;AAtBD,sCAsBC;AAZG;IATC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE,CAAC,GAAG;QACb,OAAO,EAAE,GAAG;QACZ,OAAO,EAAE,CAAC,OAAO;KACpB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,GAAG,CAAC;IACT,IAAA,qBAAG,EAAC,GAAG,CAAC;;0CACI;AAWb;IATC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,CAAC,EAAE;QACZ,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,OAAO;KACnB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,EAAE,CAAC;IACR,IAAA,qBAAG,EAAC,EAAE,CAAC;;0CACK"}
|
|
@@ -12,15 +12,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateBufferDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const is_polygon_validator_1 = require("../validators/is-polygon.validator");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
16
|
class CreateBufferDto {
|
|
16
17
|
}
|
|
17
18
|
exports.CreateBufferDto = CreateBufferDto;
|
|
18
19
|
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
description: 'GeoJSON polygon to create a buffer around',
|
|
22
|
+
example: {
|
|
23
|
+
type: 'Polygon',
|
|
24
|
+
coordinates: [[[-74.0060, 40.7128], [-74.0050, 40.7128], [-74.0050, 40.7138], [-74.0060, 40.7138], [-74.0060, 40.7128]]]
|
|
25
|
+
}
|
|
26
|
+
}),
|
|
19
27
|
(0, class_validator_1.IsDefined)(),
|
|
20
28
|
(0, is_polygon_validator_1.IsPolygon)(),
|
|
21
29
|
__metadata("design:type", Object)
|
|
22
30
|
], CreateBufferDto.prototype, "polygon", void 0);
|
|
23
31
|
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({
|
|
33
|
+
description: 'Buffer radius in meters',
|
|
34
|
+
minimum: 0,
|
|
35
|
+
maximum: 100000,
|
|
36
|
+
example: 1000
|
|
37
|
+
}),
|
|
24
38
|
(0, class_validator_1.IsNumber)(),
|
|
25
39
|
(0, class_validator_1.Min)(0),
|
|
26
40
|
(0, class_validator_1.Max)(100000),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-buffer.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/create-buffer.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAEhE,6EAA+D;
|
|
1
|
+
{"version":3,"file":"create-buffer.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/create-buffer.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAEhE,6EAA+D;AAC/D,6CAA8C;AAE9C,MAAa,eAAe;CAsB3B;AAtBD,0CAsBC;AAZG;IATC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,2CAA2C;QACxD,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;SAC3H;KACJ,CAAC;IACD,IAAA,2BAAS,GAAE;IACX,IAAA,gCAAS,GAAE;;gDACM;AAWlB;IATC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,IAAI;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,MAAM,CAAC;;qDACU"}
|
|
@@ -14,6 +14,7 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const zone_enums_1 = require("../enums/zone.enums");
|
|
16
16
|
const geo_json_polygon_dto_1 = require("./geo-json-polygon.dto");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
18
|
class CreateZoneDto {
|
|
18
19
|
constructor() {
|
|
19
20
|
this.type = zone_enums_1.ZoneType.PRIMARY;
|
|
@@ -23,25 +24,54 @@ class CreateZoneDto {
|
|
|
23
24
|
}
|
|
24
25
|
exports.CreateZoneDto = CreateZoneDto;
|
|
25
26
|
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: 'Name of the zone',
|
|
29
|
+
maxLength: 100,
|
|
30
|
+
example: 'Downtown District'
|
|
31
|
+
}),
|
|
26
32
|
(0, class_validator_1.IsString)(),
|
|
27
33
|
(0, class_validator_1.MaxLength)(100),
|
|
28
34
|
__metadata("design:type", String)
|
|
29
35
|
], CreateZoneDto.prototype, "name", void 0);
|
|
30
36
|
__decorate([
|
|
37
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
38
|
+
description: 'Detailed description of the zone',
|
|
39
|
+
maxLength: 500,
|
|
40
|
+
example: 'Primary response zone for downtown emergency services'
|
|
41
|
+
}),
|
|
31
42
|
(0, class_validator_1.IsOptional)(),
|
|
32
43
|
(0, class_validator_1.IsString)(),
|
|
33
44
|
(0, class_validator_1.MaxLength)(500),
|
|
34
45
|
__metadata("design:type", String)
|
|
35
46
|
], CreateZoneDto.prototype, "description", void 0);
|
|
36
47
|
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({
|
|
49
|
+
description: 'Type of zone (PRIMARY, SECONDARY, BACKUP)',
|
|
50
|
+
enum: zone_enums_1.ZoneType,
|
|
51
|
+
default: zone_enums_1.ZoneType.PRIMARY,
|
|
52
|
+
example: zone_enums_1.ZoneType.PRIMARY
|
|
53
|
+
}),
|
|
37
54
|
(0, class_validator_1.IsEnum)(zone_enums_1.ZoneType),
|
|
38
55
|
__metadata("design:type", String)
|
|
39
56
|
], CreateZoneDto.prototype, "type", void 0);
|
|
40
57
|
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({
|
|
59
|
+
description: 'Current status of the zone (ACTIVE, INACTIVE, ARCHIVED)',
|
|
60
|
+
enum: zone_enums_1.ZoneStatus,
|
|
61
|
+
default: zone_enums_1.ZoneStatus.ACTIVE,
|
|
62
|
+
example: zone_enums_1.ZoneStatus.ACTIVE
|
|
63
|
+
}),
|
|
41
64
|
(0, class_validator_1.IsEnum)(zone_enums_1.ZoneStatus),
|
|
42
65
|
__metadata("design:type", String)
|
|
43
66
|
], CreateZoneDto.prototype, "status", void 0);
|
|
44
67
|
__decorate([
|
|
68
|
+
(0, swagger_1.ApiProperty)({
|
|
69
|
+
description: 'Priority level for zone routing (0-999, lower is higher priority)',
|
|
70
|
+
minimum: 0,
|
|
71
|
+
maximum: 999,
|
|
72
|
+
default: 0,
|
|
73
|
+
example: 1
|
|
74
|
+
}),
|
|
45
75
|
(0, class_validator_1.IsOptional)(),
|
|
46
76
|
(0, class_validator_1.IsNumber)(),
|
|
47
77
|
(0, class_validator_1.Min)(0),
|
|
@@ -49,31 +79,57 @@ __decorate([
|
|
|
49
79
|
__metadata("design:type", Number)
|
|
50
80
|
], CreateZoneDto.prototype, "priority", void 0);
|
|
51
81
|
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)({
|
|
83
|
+
description: 'ID of the control centre that owns this zone',
|
|
84
|
+
example: 1
|
|
85
|
+
}),
|
|
52
86
|
(0, class_validator_1.IsNumber)(),
|
|
53
87
|
__metadata("design:type", Number)
|
|
54
88
|
], CreateZoneDto.prototype, "controlCentreId", void 0);
|
|
55
89
|
__decorate([
|
|
90
|
+
(0, swagger_1.ApiProperty)({
|
|
91
|
+
description: 'ID of the organization that owns this zone',
|
|
92
|
+
example: 1
|
|
93
|
+
}),
|
|
56
94
|
(0, class_validator_1.IsNumber)(),
|
|
57
95
|
__metadata("design:type", Number)
|
|
58
96
|
], CreateZoneDto.prototype, "organizationId", void 0);
|
|
59
97
|
__decorate([
|
|
98
|
+
(0, swagger_1.ApiProperty)({
|
|
99
|
+
description: 'GeoJSON polygon defining the zone boundary',
|
|
100
|
+
type: () => geo_json_polygon_dto_1.GeoJsonPolygonDto
|
|
101
|
+
}),
|
|
60
102
|
(0, class_validator_1.IsDefined)(),
|
|
61
103
|
(0, class_validator_1.ValidateNested)(),
|
|
62
104
|
(0, class_transformer_1.Type)(() => geo_json_polygon_dto_1.GeoJsonPolygonDto),
|
|
63
105
|
__metadata("design:type", geo_json_polygon_dto_1.GeoJsonPolygonDto)
|
|
64
106
|
], CreateZoneDto.prototype, "geoJson", void 0);
|
|
65
107
|
__decorate([
|
|
108
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
109
|
+
description: 'Custom attributes for the zone',
|
|
110
|
+
example: { color: '#FF0000', population: 50000 }
|
|
111
|
+
}),
|
|
66
112
|
(0, class_validator_1.IsOptional)(),
|
|
67
113
|
(0, class_validator_1.IsObject)(),
|
|
68
114
|
__metadata("design:type", Object)
|
|
69
115
|
], CreateZoneDto.prototype, "attributes", void 0);
|
|
70
116
|
__decorate([
|
|
117
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
118
|
+
description: 'Date when the zone becomes effective',
|
|
119
|
+
type: Date,
|
|
120
|
+
example: '2026-01-01T00:00:00Z'
|
|
121
|
+
}),
|
|
71
122
|
(0, class_validator_1.IsOptional)(),
|
|
72
123
|
(0, class_validator_1.IsDate)(),
|
|
73
124
|
(0, class_transformer_1.Type)(() => Date),
|
|
74
125
|
__metadata("design:type", Date)
|
|
75
126
|
], CreateZoneDto.prototype, "effectiveFrom", void 0);
|
|
76
127
|
__decorate([
|
|
128
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
129
|
+
description: 'Date when the zone expires',
|
|
130
|
+
type: Date,
|
|
131
|
+
example: '2026-12-31T23:59:59Z'
|
|
132
|
+
}),
|
|
77
133
|
(0, class_validator_1.IsOptional)(),
|
|
78
134
|
(0, class_validator_1.IsDate)(),
|
|
79
135
|
(0, class_transformer_1.Type)(() => Date),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-zone.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/create-zone.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2I;AAC3I,yDAAyC;AACzC,oDAA2D;AAC3D,iEAA2D;
|
|
1
|
+
{"version":3,"file":"create-zone.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/create-zone.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2I;AAC3I,yDAAyC;AACzC,oDAA2D;AAC3D,iEAA2D;AAC3D,6CAAmE;AAEnE,MAAa,aAAa;IAA1B;QA2BI,SAAI,GAAa,qBAAQ,CAAC,OAAO,CAAC;QASlC,WAAM,GAAe,uBAAU,CAAC,MAAM,CAAC;QAavC,aAAQ,GAAY,CAAC,CAAC;IAoD1B,CAAC;CAAA;AArGD,sCAqGC;AA7FG;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,kBAAkB;QAC/B,SAAS,EAAE,GAAG;QACd,OAAO,EAAE,mBAAmB;KAC/B,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;2CACD;AAUd;IARC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,kCAAkC;QAC/C,SAAS,EAAE,GAAG;QACd,OAAO,EAAE,uDAAuD;KACnE,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;kDACM;AASrB;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,2CAA2C;QACxD,IAAI,EAAE,qBAAQ;QACd,OAAO,EAAE,qBAAQ,CAAC,OAAO;QACzB,OAAO,EAAE,qBAAQ,CAAC,OAAO;KAC5B,CAAC;IACD,IAAA,wBAAM,EAAC,qBAAQ,CAAC;;2CACiB;AASlC;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,uBAAU;QAChB,OAAO,EAAE,uBAAU,CAAC,MAAM;QAC1B,OAAO,EAAE,uBAAU,CAAC,MAAM;KAC7B,CAAC;IACD,IAAA,wBAAM,EAAC,uBAAU,CAAC;;6CACoB;AAavC;IAXC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,mEAAmE;QAChF,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,GAAG;QACZ,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,CAAC;KACb,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;;+CACa;AAOtB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,8CAA8C;QAC3D,OAAO,EAAE,CAAC;KACb,CAAC;IACD,IAAA,0BAAQ,GAAE;;sDACc;AAOzB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE,CAAC;KACb,CAAC;IACD,IAAA,0BAAQ,GAAE;;qDACa;AASxB;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,4CAA4C;QACzD,IAAI,EAAE,GAAG,EAAE,CAAC,wCAAiB;KAChC,CAAC;IACD,IAAA,2BAAS,GAAE;IACX,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wCAAiB,CAAC;8BACpB,wCAAiB;8CAAC;AAQ5B;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,gCAAgC;QAC7C,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE;KACnD,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACsB;AAUjC;IARC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACD,IAAI;oDAAC;AAUrB;IARC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,4BAA4B;QACzC,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACA,IAAI;qDAAC"}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.FindZoneForPointDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const point_location_dto_1 = require("./point-location.dto");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
16
|
class FindZoneForPointDto extends point_location_dto_1.PointLocationDto {
|
|
16
17
|
constructor() {
|
|
17
18
|
super(...arguments);
|
|
@@ -21,15 +22,29 @@ class FindZoneForPointDto extends point_location_dto_1.PointLocationDto {
|
|
|
21
22
|
}
|
|
22
23
|
exports.FindZoneForPointDto = FindZoneForPointDto;
|
|
23
24
|
__decorate([
|
|
25
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
26
|
+
description: 'Filter zones by organization ID',
|
|
27
|
+
example: 1
|
|
28
|
+
}),
|
|
24
29
|
(0, class_validator_1.IsOptional)(),
|
|
25
30
|
(0, class_validator_1.IsNumber)(),
|
|
26
31
|
__metadata("design:type", Number)
|
|
27
32
|
], FindZoneForPointDto.prototype, "organizationId", void 0);
|
|
28
33
|
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({
|
|
35
|
+
description: 'Only return active zones',
|
|
36
|
+
default: true,
|
|
37
|
+
example: true
|
|
38
|
+
}),
|
|
29
39
|
(0, class_validator_1.IsBoolean)(),
|
|
30
40
|
__metadata("design:type", Boolean)
|
|
31
41
|
], FindZoneForPointDto.prototype, "activeOnly", void 0);
|
|
32
42
|
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({
|
|
44
|
+
description: 'Maximum number of zones to return',
|
|
45
|
+
default: 10,
|
|
46
|
+
example: 10
|
|
47
|
+
}),
|
|
33
48
|
(0, class_validator_1.IsNumber)(),
|
|
34
49
|
__metadata("design:type", Number)
|
|
35
50
|
], FindZoneForPointDto.prototype, "limit", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-zone-for-point.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/find-zone-for-point.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAClE,6DAAwD;
|
|
1
|
+
{"version":3,"file":"find-zone-for-point.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/find-zone-for-point.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAClE,6DAAwD;AACxD,6CAAmE;AAEnE,MAAa,mBAAoB,SAAQ,qCAAgB;IAAzD;;QAeI,eAAU,GAAY,IAAI,CAAC;QAQ3B,UAAK,GAAW,EAAE,CAAC;IACvB,CAAC;CAAA;AAxBD,kDAwBC;AAjBG;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,CAAC;KACb,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACa;AAQxB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;KAChB,CAAC;IACD,IAAA,2BAAS,GAAE;;uDACe;AAQ3B;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;KACd,CAAC;IACD,IAAA,0BAAQ,GAAE;;kDACQ"}
|
|
@@ -12,10 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.FindZonesNearPointDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const find_zone_for_point_dto_1 = require("./find-zone-for-point.dto");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
16
|
class FindZonesNearPointDto extends find_zone_for_point_dto_1.FindZoneForPointDto {
|
|
16
17
|
}
|
|
17
18
|
exports.FindZonesNearPointDto = FindZonesNearPointDto;
|
|
18
19
|
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
description: 'Search radius in meters from the point',
|
|
22
|
+
minimum: 0,
|
|
23
|
+
maximum: 100000,
|
|
24
|
+
example: 5000
|
|
25
|
+
}),
|
|
19
26
|
(0, class_validator_1.IsNumber)(),
|
|
20
27
|
(0, class_validator_1.Min)(0),
|
|
21
28
|
(0, class_validator_1.Max)(100000),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-zones-near-point.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/find-zones-near-point.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,uEAAgE;
|
|
1
|
+
{"version":3,"file":"find-zones-near-point.dto.js","sourceRoot":"","sources":["../../../../../src/modules/gis/dtos/find-zones-near-point.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,uEAAgE;AAChE,6CAA8C;AAE9C,MAAa,qBAAsB,SAAQ,6CAAmB;CAW7D;AAXD,sDAWC;AADG;IATC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,IAAI;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,MAAM,CAAC;;2DACU"}
|