echadospalante-core 12.2.0 → 12.3.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/auth/index.js +2 -0
- package/dist/app/modules/domain/auth/token-payload.d.ts +5 -0
- package/dist/app/modules/domain/auth/token-payload.js +2 -0
- package/dist/app/modules/domain/contributions/donation.js +2 -0
- package/dist/app/modules/domain/contributions/index.js +2 -0
- package/dist/app/modules/domain/contributions/sponsor.js +2 -0
- package/dist/app/modules/domain/events/event-category.js +2 -0
- package/dist/app/modules/domain/events/event-contact.js +2 -0
- package/dist/app/modules/domain/notifications/index.js +5 -0
- package/dist/app/modules/domain/notifications/notification.js +19 -0
- package/dist/app/modules/domain/publications/clap.js +2 -0
- package/dist/app/modules/domain/publications/comment.js +2 -0
- package/dist/app/modules/domain/shared/content-type.d.ts +7 -0
- package/dist/app/modules/domain/shared/content-type.js +11 -0
- package/dist/app/modules/domain/shared/geo.js +2 -0
- package/dist/app/modules/domain/shared/pagination.d.ts +4 -0
- package/dist/app/modules/domain/shared/pagination.js +2 -0
- package/dist/app/modules/domain/user/contact.js +2 -0
- package/dist/app/modules/domain/user/detail.js +2 -0
- package/dist/app/modules/domain/user/index.js +5 -0
- package/dist/app/modules/domain/user/role.js +10 -0
- package/dist/app/modules/domain/user/user.js +2 -0
- package/dist/app/modules/domain/ventures/category.js +2 -0
- package/dist/app/modules/domain/ventures/contact.js +2 -0
- package/dist/app/modules/domain/ventures/detail.js +2 -0
- package/dist/app/modules/domain/ventures/index.js +2 -0
- package/dist/app/modules/domain/ventures/location.js +2 -0
- package/dist/app/modules/domain/ventures/subscription.js +2 -0
- package/dist/app/modules/domain/ventures/venture.js +2 -0
- package/dist/app/modules/infrastructure/database/entities/department.data.js +47 -0
- package/dist/app/modules/infrastructure/database/entities/event-category.data.js +62 -0
- package/dist/app/modules/infrastructure/database/entities/event-contact.data.js +40 -0
- package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +53 -0
- package/dist/app/modules/infrastructure/database/entities/municipality.data.js +52 -0
- package/dist/app/modules/infrastructure/database/entities/notification.data.js +68 -0
- package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +43 -0
- package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +48 -0
- package/dist/app/modules/infrastructure/database/entities/role.data.js +51 -0
- package/dist/app/modules/infrastructure/database/entities/user-contact.data.js +70 -0
- package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +89 -0
- package/dist/app/modules/infrastructure/database/entities/user.data.js +97 -0
- package/dist/app/modules/infrastructure/database/entities/venture-category.data.js +61 -0
- package/dist/app/modules/infrastructure/database/entities/venture-contact.data.js +50 -0
- package/dist/app/modules/infrastructure/database/entities/venture-detail.data.js +64 -0
- package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +51 -0
- package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +80 -0
- package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +53 -0
- package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +43 -0
- package/dist/app/modules/infrastructure/database/entities/venture.data.js +105 -0
- package/dist/app/modules/utilities/index.d.ts +3 -0
- package/dist/app/modules/utilities/index.js +2 -0
- package/dist/app/modules/utilities/object-utilities.d.ts +16 -0
- package/dist/app/modules/utilities/object-utilities.js +2 -0
- package/package.json +1 -1
@@ -0,0 +1,105 @@
|
|
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.VentureData = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const venture_detail_data_1 = require("./venture-detail.data");
|
15
|
+
const venture_location_data_1 = require("./venture-location.data");
|
16
|
+
const user_detail_data_1 = require("./user-detail.data");
|
17
|
+
const venture_contact_data_1 = require("./venture-contact.data");
|
18
|
+
const venture_category_data_1 = require("./venture-category.data");
|
19
|
+
let VentureData = class VentureData {
|
20
|
+
id;
|
21
|
+
name;
|
22
|
+
slug;
|
23
|
+
coverPhoto;
|
24
|
+
description;
|
25
|
+
active;
|
26
|
+
verified;
|
27
|
+
createdAt;
|
28
|
+
updatedAt;
|
29
|
+
detail;
|
30
|
+
location;
|
31
|
+
ownerDetail;
|
32
|
+
contact;
|
33
|
+
categories;
|
34
|
+
};
|
35
|
+
exports.VentureData = VentureData;
|
36
|
+
__decorate([
|
37
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
38
|
+
__metadata("design:type", String)
|
39
|
+
], VentureData.prototype, "id", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, typeorm_1.Column)(),
|
42
|
+
__metadata("design:type", String)
|
43
|
+
], VentureData.prototype, "name", void 0);
|
44
|
+
__decorate([
|
45
|
+
(0, typeorm_1.Column)({ unique: true }),
|
46
|
+
__metadata("design:type", String)
|
47
|
+
], VentureData.prototype, "slug", void 0);
|
48
|
+
__decorate([
|
49
|
+
(0, typeorm_1.Column)(),
|
50
|
+
__metadata("design:type", String)
|
51
|
+
], VentureData.prototype, "coverPhoto", void 0);
|
52
|
+
__decorate([
|
53
|
+
(0, typeorm_1.Column)(),
|
54
|
+
__metadata("design:type", String)
|
55
|
+
], VentureData.prototype, "description", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, typeorm_1.Column)({ default: true }),
|
58
|
+
__metadata("design:type", Boolean)
|
59
|
+
], VentureData.prototype, "active", void 0);
|
60
|
+
__decorate([
|
61
|
+
(0, typeorm_1.Column)({ default: false }),
|
62
|
+
__metadata("design:type", Boolean)
|
63
|
+
], VentureData.prototype, "verified", void 0);
|
64
|
+
__decorate([
|
65
|
+
(0, typeorm_1.CreateDateColumn)(),
|
66
|
+
__metadata("design:type", Date)
|
67
|
+
], VentureData.prototype, "createdAt", void 0);
|
68
|
+
__decorate([
|
69
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
70
|
+
__metadata("design:type", Date)
|
71
|
+
], VentureData.prototype, "updatedAt", void 0);
|
72
|
+
__decorate([
|
73
|
+
(0, typeorm_1.OneToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.venture, {
|
74
|
+
cascade: true,
|
75
|
+
}),
|
76
|
+
(0, typeorm_1.JoinColumn)({ name: "detailId" }),
|
77
|
+
__metadata("design:type", venture_detail_data_1.VentureDetailData)
|
78
|
+
], VentureData.prototype, "detail", void 0);
|
79
|
+
__decorate([
|
80
|
+
(0, typeorm_1.OneToOne)(() => venture_location_data_1.VentureLocationData, (ventureLocation) => ventureLocation.Venture, { cascade: true }),
|
81
|
+
(0, typeorm_1.JoinColumn)({ name: "locationId" }),
|
82
|
+
__metadata("design:type", venture_location_data_1.VentureLocationData)
|
83
|
+
], VentureData.prototype, "location", void 0);
|
84
|
+
__decorate([
|
85
|
+
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.ventures),
|
86
|
+
(0, typeorm_1.JoinColumn)({ name: "ownerDetailId" }),
|
87
|
+
__metadata("design:type", user_detail_data_1.UserDetailData)
|
88
|
+
], VentureData.prototype, "ownerDetail", void 0);
|
89
|
+
__decorate([
|
90
|
+
(0, typeorm_1.OneToOne)(() => venture_contact_data_1.VentureContactData, (ventureContact) => ventureContact.Venture, { cascade: true }),
|
91
|
+
(0, typeorm_1.JoinColumn)({ name: "ventureContactId" }),
|
92
|
+
__metadata("design:type", venture_contact_data_1.VentureContactData)
|
93
|
+
], VentureData.prototype, "contact", void 0);
|
94
|
+
__decorate([
|
95
|
+
(0, typeorm_1.ManyToMany)(() => venture_category_data_1.VentureCategoryData, (ventureCategory) => ventureCategory.ventures),
|
96
|
+
(0, typeorm_1.JoinTable)({
|
97
|
+
name: "x_venture_venture_category",
|
98
|
+
joinColumn: { name: "ventureId", referencedColumnName: "id" },
|
99
|
+
inverseJoinColumn: { name: "categoryId", referencedColumnName: "id" },
|
100
|
+
}),
|
101
|
+
__metadata("design:type", Array)
|
102
|
+
], VentureData.prototype, "categories", void 0);
|
103
|
+
exports.VentureData = VentureData = __decorate([
|
104
|
+
(0, typeorm_1.Entity)({ name: "venture" })
|
105
|
+
], VentureData);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
type BasicProperties<T> = {
|
2
|
+
[K in keyof T]: T[K] extends boolean | number | string | Date ? T[K] : never;
|
3
|
+
};
|
4
|
+
type ComplexProperties<T> = {
|
5
|
+
[K in keyof T]: T[K] extends object | any[] ? T[K] extends Date ? never : T[K] : never;
|
6
|
+
};
|
7
|
+
type NonNever<T> = {
|
8
|
+
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
9
|
+
};
|
10
|
+
export type BasicType<T> = NonNever<BasicProperties<T>>;
|
11
|
+
export type ComplexType<T> = NonNever<ComplexProperties<T>>;
|
12
|
+
type Booleanized<T> = {
|
13
|
+
[K in keyof T]: boolean;
|
14
|
+
};
|
15
|
+
export type ComplexInclude<T> = Booleanized<ComplexType<T>>;
|
16
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "echadospalante-core",
|
3
|
-
"version": "12.
|
3
|
+
"version": "12.3.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",
|