echadospalante-core 14.0.0 → 14.2.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.data.d.ts +2 -2
 - package/dist/app/modules/infrastructure/database/entities/user.data.js +8 -4
 - package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +2 -1
 - package/package.json +1 -1
 - package/src/app/modules/infrastructure/database/entities/user.data.ts +10 -6
 - package/src/app/modules/infrastructure/database/entities/venture-subscription.data.ts +3 -1
 
| 
         @@ -23,8 +23,8 @@ export declare class UserData { 
     | 
|
| 
       23 
23 
     | 
    
         
             
                contact?: UserContactData;
         
     | 
| 
       24 
24 
     | 
    
         
             
                preferences: VentureCategoryData[];
         
     | 
| 
       25 
25 
     | 
    
         
             
                roles: RoleData[];
         
     | 
| 
       26 
     | 
    
         
            -
                gender 
     | 
| 
       27 
     | 
    
         
            -
                birthDate 
     | 
| 
      
 26 
     | 
    
         
            +
                gender?: "M" | "F" | "O";
         
     | 
| 
      
 27 
     | 
    
         
            +
                birthDate?: Date;
         
     | 
| 
       28 
28 
     | 
    
         
             
                municipality?: MunicipalityData;
         
     | 
| 
       29 
29 
     | 
    
         
             
                comments: PublicationCommentData[];
         
     | 
| 
       30 
30 
     | 
    
         
             
                donations: EventDonationData[];
         
     | 
| 
         @@ -89,7 +89,9 @@ __decorate([ 
     | 
|
| 
       89 
89 
     | 
    
         
             
                __metadata("design:type", Boolean)
         
     | 
| 
       90 
90 
     | 
    
         
             
            ], UserData.prototype, "verified", void 0);
         
     | 
| 
       91 
91 
     | 
    
         
             
            __decorate([
         
     | 
| 
       92 
     | 
    
         
            -
                (0, typeorm_1.OneToOne)(() => user_contact_data_1.UserContactData, (contact) => contact.user 
     | 
| 
      
 92 
     | 
    
         
            +
                (0, typeorm_1.OneToOne)(() => user_contact_data_1.UserContactData, (contact) => contact.user, {
         
     | 
| 
      
 93 
     | 
    
         
            +
                    nullable: true,
         
     | 
| 
      
 94 
     | 
    
         
            +
                }),
         
     | 
| 
       93 
95 
     | 
    
         
             
                (0, typeorm_1.JoinColumn)({ name: "contactId" }),
         
     | 
| 
       94 
96 
     | 
    
         
             
                __metadata("design:type", user_contact_data_1.UserContactData)
         
     | 
| 
       95 
97 
     | 
    
         
             
            ], UserData.prototype, "contact", void 0);
         
     | 
| 
         @@ -104,15 +106,17 @@ __decorate([ 
     | 
|
| 
       104 
106 
     | 
    
         
             
                __metadata("design:type", Array)
         
     | 
| 
       105 
107 
     | 
    
         
             
            ], UserData.prototype, "roles", void 0);
         
     | 
| 
       106 
108 
     | 
    
         
             
            __decorate([
         
     | 
| 
       107 
     | 
    
         
            -
                (0, typeorm_1.Column)({ type: "enum", enum: ["M", "F", "O"] }),
         
     | 
| 
      
 109 
     | 
    
         
            +
                (0, typeorm_1.Column)({ type: "enum", enum: ["M", "F", "O"], nullable: true }),
         
     | 
| 
       108 
110 
     | 
    
         
             
                __metadata("design:type", String)
         
     | 
| 
       109 
111 
     | 
    
         
             
            ], UserData.prototype, "gender", void 0);
         
     | 
| 
       110 
112 
     | 
    
         
             
            __decorate([
         
     | 
| 
       111 
     | 
    
         
            -
                (0, typeorm_1.Column)(),
         
     | 
| 
      
 113 
     | 
    
         
            +
                (0, typeorm_1.Column)({ nullable: true }),
         
     | 
| 
       112 
114 
     | 
    
         
             
                __metadata("design:type", Date)
         
     | 
| 
       113 
115 
     | 
    
         
             
            ], UserData.prototype, "birthDate", void 0);
         
     | 
| 
       114 
116 
     | 
    
         
             
            __decorate([
         
     | 
| 
       115 
     | 
    
         
            -
                (0, typeorm_1.ManyToOne)(() => municipality_data_1.MunicipalityData, (municipality) => municipality.users 
     | 
| 
      
 117 
     | 
    
         
            +
                (0, typeorm_1.ManyToOne)(() => municipality_data_1.MunicipalityData, (municipality) => municipality.users, {
         
     | 
| 
      
 118 
     | 
    
         
            +
                    nullable: true,
         
     | 
| 
      
 119 
     | 
    
         
            +
                }),
         
     | 
| 
       116 
120 
     | 
    
         
             
                (0, typeorm_1.JoinColumn)({ name: "municipalityId" }),
         
     | 
| 
       117 
121 
     | 
    
         
             
                __metadata("design:type", municipality_data_1.MunicipalityData)
         
     | 
| 
       118 
122 
     | 
    
         
             
            ], UserData.prototype, "municipality", void 0);
         
     | 
| 
         @@ -39,5 +39,6 @@ __decorate([ 
     | 
|
| 
       39 
39 
     | 
    
         
             
                __metadata("design:type", venture_data_1.VentureData)
         
     | 
| 
       40 
40 
     | 
    
         
             
            ], VentureSubscriptionData.prototype, "venture", void 0);
         
     | 
| 
       41 
41 
     | 
    
         
             
            exports.VentureSubscriptionData = VentureSubscriptionData = __decorate([
         
     | 
| 
       42 
     | 
    
         
            -
                (0, typeorm_1.Entity)({ name: "venture_subscription" })
         
     | 
| 
      
 42 
     | 
    
         
            +
                (0, typeorm_1.Entity)({ name: "venture_subscription" }),
         
     | 
| 
      
 43 
     | 
    
         
            +
                (0, typeorm_1.Unique)(["subscriberId", "ventureId"])
         
     | 
| 
       43 
44 
     | 
    
         
             
            ], VentureSubscriptionData);
         
     | 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "name": "echadospalante-core",
         
     | 
| 
       3 
     | 
    
         
            -
              "version": "14. 
     | 
| 
      
 3 
     | 
    
         
            +
              "version": "14.2.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",
         
     | 
| 
         @@ -56,7 +56,9 @@ export class UserData { 
     | 
|
| 
       56 
56 
     | 
    
         
             
              @Column({ default: false })
         
     | 
| 
       57 
57 
     | 
    
         
             
              verified: boolean;
         
     | 
| 
       58 
58 
     | 
    
         | 
| 
       59 
     | 
    
         
            -
              @OneToOne(() => UserContactData, (contact) => contact.user 
     | 
| 
      
 59 
     | 
    
         
            +
              @OneToOne(() => UserContactData, (contact) => contact.user, {
         
     | 
| 
      
 60 
     | 
    
         
            +
                nullable: true,
         
     | 
| 
      
 61 
     | 
    
         
            +
              })
         
     | 
| 
       60 
62 
     | 
    
         
             
              @JoinColumn({ name: "contactId" })
         
     | 
| 
       61 
63 
     | 
    
         
             
              contact?: UserContactData;
         
     | 
| 
       62 
64 
     | 
    
         | 
| 
         @@ -68,13 +70,15 @@ export class UserData { 
     | 
|
| 
       68 
70 
     | 
    
         
             
              @JoinTable({ name: "x_user_role" })
         
     | 
| 
       69 
71 
     | 
    
         
             
              roles: RoleData[];
         
     | 
| 
       70 
72 
     | 
    
         | 
| 
       71 
     | 
    
         
            -
              @Column({ type: "enum", enum: ["M", "F", "O"] })
         
     | 
| 
       72 
     | 
    
         
            -
              gender 
     | 
| 
      
 73 
     | 
    
         
            +
              @Column({ type: "enum", enum: ["M", "F", "O"], nullable: true })
         
     | 
| 
      
 74 
     | 
    
         
            +
              gender?: "M" | "F" | "O";
         
     | 
| 
       73 
75 
     | 
    
         | 
| 
       74 
     | 
    
         
            -
              @Column()
         
     | 
| 
       75 
     | 
    
         
            -
              birthDate 
     | 
| 
      
 76 
     | 
    
         
            +
              @Column({ nullable: true })
         
     | 
| 
      
 77 
     | 
    
         
            +
              birthDate?: Date;
         
     | 
| 
       76 
78 
     | 
    
         | 
| 
       77 
     | 
    
         
            -
              @ManyToOne(() => MunicipalityData, (municipality) => municipality.users 
     | 
| 
      
 79 
     | 
    
         
            +
              @ManyToOne(() => MunicipalityData, (municipality) => municipality.users, {
         
     | 
| 
      
 80 
     | 
    
         
            +
                nullable: true,
         
     | 
| 
      
 81 
     | 
    
         
            +
              })
         
     | 
| 
       78 
82 
     | 
    
         
             
              @JoinColumn({ name: "municipalityId" })
         
     | 
| 
       79 
83 
     | 
    
         
             
              municipality?: MunicipalityData;
         
     | 
| 
       80 
84 
     | 
    
         | 
| 
         @@ -1,15 +1,17 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import {
         
     | 
| 
       2 
     | 
    
         
            -
              Column,
         
     | 
| 
       3 
2 
     | 
    
         
             
              CreateDateColumn,
         
     | 
| 
       4 
3 
     | 
    
         
             
              Entity,
         
     | 
| 
       5 
4 
     | 
    
         
             
              JoinColumn,
         
     | 
| 
       6 
5 
     | 
    
         
             
              ManyToOne,
         
     | 
| 
       7 
6 
     | 
    
         
             
              PrimaryGeneratedColumn,
         
     | 
| 
      
 7 
     | 
    
         
            +
              Unique,
         
     | 
| 
       8 
8 
     | 
    
         
             
            } from "typeorm";
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
       9 
10 
     | 
    
         
             
            import { UserData } from "./user.data";
         
     | 
| 
       10 
11 
     | 
    
         
             
            import { VentureData } from "./venture.data";
         
     | 
| 
       11 
12 
     | 
    
         | 
| 
       12 
13 
     | 
    
         
             
            @Entity({ name: "venture_subscription" })
         
     | 
| 
      
 14 
     | 
    
         
            +
            @Unique(["subscriberId", "ventureId"])
         
     | 
| 
       13 
15 
     | 
    
         
             
            export class VentureSubscriptionData {
         
     | 
| 
       14 
16 
     | 
    
         
             
              @PrimaryGeneratedColumn("uuid")
         
     | 
| 
       15 
17 
     | 
    
         
             
              id: string;
         
     |