echadospalante-core 12.0.0 → 12.1.0
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/app/modules/domain/events/event-location.d.ts +2 -2
- package/dist/app/modules/domain/publications/index.js +5 -0
- package/dist/app/modules/infrastructure/database/entities/event-location.data.d.ts +2 -2
- package/dist/app/modules/infrastructure/database/entities/{event-contact.data.js → event-location.data.js} +17 -16
- package/package.json +1 -1
- package/src/app/modules/domain/events/event-location.ts +3 -2
- package/src/app/modules/infrastructure/database/entities/event-location.data.ts +11 -6
- /package/dist/app/modules/domain/events/{event-contact.js → event-location.js} +0 -0
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PublicationType = void 0;
|
4
|
+
var publication_1 = require("./publication");
|
5
|
+
Object.defineProperty(exports, "PublicationType", { enumerable: true, get: function () { return publication_1.PublicationType; } });
|
@@ -9,32 +9,33 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.EventLocationData = void 0;
|
13
13
|
const typeorm_1 = require("typeorm");
|
14
14
|
const venture_event_data_1 = require("./venture-event.data");
|
15
|
-
let
|
15
|
+
let EventLocationData = class EventLocationData {
|
16
16
|
id;
|
17
|
-
|
18
|
-
|
17
|
+
location;
|
18
|
+
description;
|
19
19
|
event;
|
20
20
|
};
|
21
|
-
exports.
|
21
|
+
exports.EventLocationData = EventLocationData;
|
22
22
|
__decorate([
|
23
23
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
24
24
|
__metadata("design:type", String)
|
25
|
-
],
|
25
|
+
], EventLocationData.prototype, "id", void 0);
|
26
26
|
__decorate([
|
27
|
-
(0, typeorm_1.Column)("
|
28
|
-
|
29
|
-
|
27
|
+
(0, typeorm_1.Column)("geometry", { spatialFeatureType: "Point", srid: 4326 }),
|
28
|
+
(0, typeorm_1.Index)({ spatial: true }),
|
29
|
+
__metadata("design:type", Object)
|
30
|
+
], EventLocationData.prototype, "location", void 0);
|
30
31
|
__decorate([
|
31
|
-
(0, typeorm_1.Column)(
|
32
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
32
33
|
__metadata("design:type", String)
|
33
|
-
],
|
34
|
+
], EventLocationData.prototype, "description", void 0);
|
34
35
|
__decorate([
|
35
|
-
(0, typeorm_1.OneToOne)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.
|
36
|
+
(0, typeorm_1.OneToOne)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.location),
|
36
37
|
__metadata("design:type", venture_event_data_1.VentureEventData)
|
37
|
-
],
|
38
|
-
exports.
|
39
|
-
(0, typeorm_1.Entity)({ name: "
|
40
|
-
],
|
38
|
+
], EventLocationData.prototype, "event", void 0);
|
39
|
+
exports.EventLocationData = EventLocationData = __decorate([
|
40
|
+
(0, typeorm_1.Entity)({ name: "event_location" })
|
41
|
+
], EventLocationData);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "echadospalante-core",
|
3
|
-
"version": "12.
|
3
|
+
"version": "12.1.0",
|
4
4
|
"description": "This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -1,4 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
Entity,
|
3
|
+
PrimaryGeneratedColumn,
|
4
|
+
Column,
|
5
|
+
OneToOne,
|
6
|
+
Point,
|
7
|
+
Index,
|
8
|
+
} from "typeorm";
|
2
9
|
import { VentureEventData } from "./venture-event.data";
|
3
10
|
|
4
11
|
@Entity({ name: "event_location" })
|
@@ -6,11 +13,9 @@ export class EventLocationData {
|
|
6
13
|
@PrimaryGeneratedColumn("uuid")
|
7
14
|
id: string;
|
8
15
|
|
9
|
-
@Column("
|
10
|
-
|
11
|
-
|
12
|
-
@Column("float", { nullable: true })
|
13
|
-
lng?: number;
|
16
|
+
@Column("geometry", { spatialFeatureType: "Point", srid: 4326 })
|
17
|
+
@Index({ spatial: true })
|
18
|
+
public location: Point;
|
14
19
|
|
15
20
|
@Column({ nullable: true })
|
16
21
|
description?: string;
|
File without changes
|