echadospalante-core 9.5.0 → 9.7.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/infrastructure/database/entities/user-detail.data.d.ts +1 -1
- package/dist/app/modules/infrastructure/database/entities/user.data.js +1 -1
- package/package.json +1 -1
- package/src/app/modules/infrastructure/database/entities/user-detail.data.ts +1 -1
- package/src/app/modules/infrastructure/database/entities/user.data.ts +1 -1
- package/dist/app/modules/domain/donations/donation.d.ts +0 -8
- package/dist/app/modules/domain/donations/donation.js +0 -2
- package/dist/app/modules/domain/donations/index.d.ts +0 -2
- package/dist/app/modules/domain/donations/index.js +0 -2
- package/dist/app/modules/domain/donations/sponsor.d.ts +0 -9
- package/dist/app/modules/domain/donations/sponsor.js +0 -2
- package/dist/app/modules/domain/feeds/category.d.ts +0 -8
- package/dist/app/modules/domain/feeds/category.js +0 -2
- package/dist/app/modules/domain/feeds/clap.d.ts +0 -8
- package/dist/app/modules/domain/feeds/clap.js +0 -2
- package/dist/app/modules/domain/feeds/comment.d.ts +0 -8
- package/dist/app/modules/domain/feeds/comment.js +0 -2
- package/dist/app/modules/domain/feeds/event.d.ts +0 -17
- package/dist/app/modules/domain/feeds/event.js +0 -2
- package/dist/app/modules/domain/feeds/index.d.ts +0 -6
- package/dist/app/modules/domain/feeds/index.js +0 -5
- package/dist/app/modules/domain/feeds/location.d.ts +0 -8
- package/dist/app/modules/domain/feeds/location.js +0 -2
- package/dist/app/modules/domain/feeds/publication.d.ts +0 -27
- package/dist/app/modules/domain/feeds/publication.js +0 -11
- package/dist/app/modules/domain/news/category.d.ts +0 -8
- package/dist/app/modules/domain/news/category.js +0 -2
- package/dist/app/modules/domain/news/clap.d.ts +0 -8
- package/dist/app/modules/domain/news/clap.js +0 -2
- package/dist/app/modules/domain/news/index.d.ts +0 -4
- package/dist/app/modules/domain/news/index.js +0 -2
- package/dist/app/modules/domain/news/news.d.ts +0 -18
- package/dist/app/modules/domain/news/news.js +0 -2
- package/dist/app/modules/infrastructure/database/entities/venture-suscription.data.d.ts +0 -10
- package/dist/app/modules/infrastructure/database/entities/venture-suscription.data.js +0 -53
@@ -9,7 +9,7 @@ import { VentureSubscriptionData } from "./venture-subscription.data";
|
|
9
9
|
import { VentureData } from "./venture.data";
|
10
10
|
export declare class UserDetailData {
|
11
11
|
id: string;
|
12
|
-
gender:
|
12
|
+
gender: string;
|
13
13
|
birthDate: Date;
|
14
14
|
user?: UserData;
|
15
15
|
municipality?: MunicipalityData;
|
@@ -88,7 +88,7 @@ __decorate([
|
|
88
88
|
__metadata("design:type", Array)
|
89
89
|
], UserData.prototype, "preferences", void 0);
|
90
90
|
__decorate([
|
91
|
-
(0, typeorm_1.ManyToMany)(() => role_data_1.RoleData, (role) => role.users),
|
91
|
+
(0, typeorm_1.ManyToMany)(() => role_data_1.RoleData, (role) => role.users, { eager: true }),
|
92
92
|
(0, typeorm_1.JoinTable)({ name: "XUserRoles" }),
|
93
93
|
__metadata("design:type", Array)
|
94
94
|
], UserData.prototype, "roles", void 0);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "echadospalante-core",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.7.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",
|
@@ -59,7 +59,7 @@ export class UserData {
|
|
59
59
|
@JoinTable({ name: "XUserPreferences" })
|
60
60
|
preferences: VentureCategoryData[];
|
61
61
|
|
62
|
-
@ManyToMany(() => RoleData, (role) => role.users)
|
62
|
+
@ManyToMany(() => RoleData, (role) => role.users, { eager: true })
|
63
63
|
@JoinTable({ name: "XUserRoles" })
|
64
64
|
roles: RoleData[];
|
65
65
|
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { EventDonation } from "../donations";
|
2
|
-
import { VentureDetail } from "../ventures";
|
3
|
-
import { EventCategory } from "./category";
|
4
|
-
import { EventLocation } from "./location";
|
5
|
-
export interface VentureEvent {
|
6
|
-
id: string;
|
7
|
-
title: string;
|
8
|
-
description: string;
|
9
|
-
coverPhoto: string;
|
10
|
-
ventureDetail?: VentureDetail;
|
11
|
-
location: EventLocation;
|
12
|
-
categories: EventCategory[];
|
13
|
-
donations: EventDonation[];
|
14
|
-
startDate: Date;
|
15
|
-
endDate: Date;
|
16
|
-
createdAt: Date;
|
17
|
-
}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export { EventCategory } from "./category";
|
2
|
-
export { PublicationClap } from "./clap";
|
3
|
-
export { PublicationComment } from "./comment";
|
4
|
-
export { VentureEvent } from "./event";
|
5
|
-
export { EventLocation } from "./location";
|
6
|
-
export { PublicationContent, PublicationType, VenturePublication, } from "./publication";
|
@@ -1,5 +0,0 @@
|
|
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; } });
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { ContentType } from "../shared";
|
2
|
-
import { Venture } from "../ventures/venture";
|
3
|
-
import { PublicationClap } from "./clap";
|
4
|
-
import { PublicationComment } from "./comment";
|
5
|
-
export interface VenturePublication {
|
6
|
-
id: string;
|
7
|
-
description: string;
|
8
|
-
active: boolean;
|
9
|
-
venture?: Venture;
|
10
|
-
type: PublicationType;
|
11
|
-
claps: PublicationClap[];
|
12
|
-
comments: PublicationComment[];
|
13
|
-
body: PublicationContent[];
|
14
|
-
createdAt: Date;
|
15
|
-
}
|
16
|
-
export declare enum PublicationType {
|
17
|
-
STANDARD = "STANDARD",
|
18
|
-
ANNOUNCEMENT = "ANNOUNCEMENT",
|
19
|
-
ACHIEVEMENT = "ACHIEVEMENT",
|
20
|
-
PROMOTION = "PROMOTION",
|
21
|
-
BEHIND_THE_SCENES = "BEHIND_THE_SCENES"
|
22
|
-
}
|
23
|
-
export interface PublicationContent {
|
24
|
-
id: string;
|
25
|
-
type: ContentType;
|
26
|
-
content: string;
|
27
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PublicationType = void 0;
|
4
|
-
var PublicationType;
|
5
|
-
(function (PublicationType) {
|
6
|
-
PublicationType["STANDARD"] = "STANDARD";
|
7
|
-
PublicationType["ANNOUNCEMENT"] = "ANNOUNCEMENT";
|
8
|
-
PublicationType["ACHIEVEMENT"] = "ACHIEVEMENT";
|
9
|
-
PublicationType["PROMOTION"] = "PROMOTION";
|
10
|
-
PublicationType["BEHIND_THE_SCENES"] = "BEHIND_THE_SCENES";
|
11
|
-
})(PublicationType || (exports.PublicationType = PublicationType = {}));
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { ContentType } from "../shared";
|
2
|
-
import { NewsCategory } from "./category";
|
3
|
-
import { NewsClap } from "./clap";
|
4
|
-
export interface News {
|
5
|
-
id: string;
|
6
|
-
title: string;
|
7
|
-
slug: string;
|
8
|
-
claps: NewsClap[];
|
9
|
-
comments: Comment[];
|
10
|
-
body: NewsContent[];
|
11
|
-
categories: NewsCategory[];
|
12
|
-
createdAt: Date;
|
13
|
-
}
|
14
|
-
export interface NewsContent {
|
15
|
-
id: string;
|
16
|
-
type: ContentType;
|
17
|
-
content: string;
|
18
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { UserDetail } from './user-detail.data';
|
2
|
-
import { VentureDetail } from './venture-detail.data';
|
3
|
-
export declare class VentureSubscription {
|
4
|
-
id: string;
|
5
|
-
ventureId: string;
|
6
|
-
createdAt: Date;
|
7
|
-
subscriberDetailId: string;
|
8
|
-
user: UserDetail;
|
9
|
-
detail: VentureDetail;
|
10
|
-
}
|
@@ -1,53 +0,0 @@
|
|
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.VentureSubscription = void 0;
|
13
|
-
const typeorm_1 = require("typeorm");
|
14
|
-
const user_detail_data_1 = require("./user-detail.data");
|
15
|
-
const venture_detail_data_1 = require("./venture-detail.data");
|
16
|
-
let VentureSubscription = class VentureSubscription {
|
17
|
-
id;
|
18
|
-
ventureId;
|
19
|
-
createdAt;
|
20
|
-
subscriberDetailId;
|
21
|
-
user;
|
22
|
-
detail;
|
23
|
-
};
|
24
|
-
exports.VentureSubscription = VentureSubscription;
|
25
|
-
__decorate([
|
26
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
27
|
-
__metadata("design:type", String)
|
28
|
-
], VentureSubscription.prototype, "id", void 0);
|
29
|
-
__decorate([
|
30
|
-
(0, typeorm_1.Column)(),
|
31
|
-
__metadata("design:type", String)
|
32
|
-
], VentureSubscription.prototype, "ventureId", void 0);
|
33
|
-
__decorate([
|
34
|
-
(0, typeorm_1.CreateDateColumn)(),
|
35
|
-
__metadata("design:type", Date)
|
36
|
-
], VentureSubscription.prototype, "createdAt", void 0);
|
37
|
-
__decorate([
|
38
|
-
(0, typeorm_1.Column)(),
|
39
|
-
__metadata("design:type", String)
|
40
|
-
], VentureSubscription.prototype, "subscriberDetailId", void 0);
|
41
|
-
__decorate([
|
42
|
-
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetail, (userDetail) => userDetail.subscriptions),
|
43
|
-
(0, typeorm_1.JoinColumn)({ name: 'subscriberDetailId' }),
|
44
|
-
__metadata("design:type", user_detail_data_1.UserDetail)
|
45
|
-
], VentureSubscription.prototype, "user", void 0);
|
46
|
-
__decorate([
|
47
|
-
(0, typeorm_1.ManyToOne)(() => venture_detail_data_1.VentureDetail, (ventureDetail) => ventureDetail.subscriptions),
|
48
|
-
(0, typeorm_1.JoinColumn)({ name: 'ventureId' }),
|
49
|
-
__metadata("design:type", venture_detail_data_1.VentureDetail)
|
50
|
-
], VentureSubscription.prototype, "detail", void 0);
|
51
|
-
exports.VentureSubscription = VentureSubscription = __decorate([
|
52
|
-
(0, typeorm_1.Entity)()
|
53
|
-
], VentureSubscription);
|