echadospalante-core 12.1.0 → 12.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/domain/publications/content.js +12 -0
- package/dist/app/modules/domain/publications/publication.js +11 -0
- package/dist/app/modules/domain/shared/index.d.ts +3 -0
- package/dist/app/modules/domain/shared/index.js +5 -0
- package/dist/app/modules/infrastructure/database/entities/publication-content.data.js +52 -0
- package/dist/index.js +27 -0
- package/package.json +1 -1
- package/src/app/modules/domain/shared/index.ts +1 -0
| @@ -0,0 +1,12 @@ | |
| 1 | 
            +
            "use strict";
         | 
| 2 | 
            +
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 3 | 
            +
            exports.PublicationContent = void 0;
         | 
| 4 | 
            +
            class PublicationContent {
         | 
| 5 | 
            +
                id;
         | 
| 6 | 
            +
                type;
         | 
| 7 | 
            +
                content;
         | 
| 8 | 
            +
                createdAt;
         | 
| 9 | 
            +
                updatedAt;
         | 
| 10 | 
            +
                publication;
         | 
| 11 | 
            +
            }
         | 
| 12 | 
            +
            exports.PublicationContent = PublicationContent;
         | 
| @@ -0,0 +1,11 @@ | |
| 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 = {}));
         | 
| @@ -0,0 +1,5 @@ | |
| 1 | 
            +
            "use strict";
         | 
| 2 | 
            +
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 3 | 
            +
            exports.ContentType = void 0;
         | 
| 4 | 
            +
            var content_type_1 = require("./content-type");
         | 
| 5 | 
            +
            Object.defineProperty(exports, "ContentType", { enumerable: true, get: function () { return content_type_1.ContentType; } });
         | 
| @@ -0,0 +1,52 @@ | |
| 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.PublicationContentData = void 0;
         | 
| 13 | 
            +
            const typeorm_1 = require("typeorm");
         | 
| 14 | 
            +
            const shared_1 = require("../../../domain/shared");
         | 
| 15 | 
            +
            const venture_publication_data_1 = require("./venture-publication.data");
         | 
| 16 | 
            +
            let PublicationContentData = class PublicationContentData {
         | 
| 17 | 
            +
                id;
         | 
| 18 | 
            +
                type;
         | 
| 19 | 
            +
                content;
         | 
| 20 | 
            +
                createdAt;
         | 
| 21 | 
            +
                updatedAt;
         | 
| 22 | 
            +
                publication;
         | 
| 23 | 
            +
            };
         | 
| 24 | 
            +
            exports.PublicationContentData = PublicationContentData;
         | 
| 25 | 
            +
            __decorate([
         | 
| 26 | 
            +
                (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
         | 
| 27 | 
            +
                __metadata("design:type", String)
         | 
| 28 | 
            +
            ], PublicationContentData.prototype, "id", void 0);
         | 
| 29 | 
            +
            __decorate([
         | 
| 30 | 
            +
                (0, typeorm_1.Column)({ type: "enum", enum: shared_1.ContentType }),
         | 
| 31 | 
            +
                __metadata("design:type", String)
         | 
| 32 | 
            +
            ], PublicationContentData.prototype, "type", void 0);
         | 
| 33 | 
            +
            __decorate([
         | 
| 34 | 
            +
                (0, typeorm_1.Column)(),
         | 
| 35 | 
            +
                __metadata("design:type", String)
         | 
| 36 | 
            +
            ], PublicationContentData.prototype, "content", void 0);
         | 
| 37 | 
            +
            __decorate([
         | 
| 38 | 
            +
                (0, typeorm_1.CreateDateColumn)(),
         | 
| 39 | 
            +
                __metadata("design:type", Date)
         | 
| 40 | 
            +
            ], PublicationContentData.prototype, "createdAt", void 0);
         | 
| 41 | 
            +
            __decorate([
         | 
| 42 | 
            +
                (0, typeorm_1.UpdateDateColumn)(),
         | 
| 43 | 
            +
                __metadata("design:type", Date)
         | 
| 44 | 
            +
            ], PublicationContentData.prototype, "updatedAt", void 0);
         | 
| 45 | 
            +
            __decorate([
         | 
| 46 | 
            +
                (0, typeorm_1.ManyToOne)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.contents),
         | 
| 47 | 
            +
                (0, typeorm_1.JoinColumn)({ name: "publicationId" }),
         | 
| 48 | 
            +
                __metadata("design:type", venture_publication_data_1.VenturePublicationData)
         | 
| 49 | 
            +
            ], PublicationContentData.prototype, "publication", void 0);
         | 
| 50 | 
            +
            exports.PublicationContentData = PublicationContentData = __decorate([
         | 
| 51 | 
            +
                (0, typeorm_1.Entity)({ name: "publication_content" })
         | 
| 52 | 
            +
            ], PublicationContentData);
         | 
    
        package/dist/index.js
    ADDED
    
    | @@ -0,0 +1,27 @@ | |
| 1 | 
            +
            "use strict";
         | 
| 2 | 
            +
            var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
         | 
| 3 | 
            +
                if (k2 === undefined) k2 = k;
         | 
| 4 | 
            +
                var desc = Object.getOwnPropertyDescriptor(m, k);
         | 
| 5 | 
            +
                if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
         | 
| 6 | 
            +
                  desc = { enumerable: true, get: function() { return m[k]; } };
         | 
| 7 | 
            +
                }
         | 
| 8 | 
            +
                Object.defineProperty(o, k2, desc);
         | 
| 9 | 
            +
            }) : (function(o, m, k, k2) {
         | 
| 10 | 
            +
                if (k2 === undefined) k2 = k;
         | 
| 11 | 
            +
                o[k2] = m[k];
         | 
| 12 | 
            +
            }));
         | 
| 13 | 
            +
            var __exportStar = (this && this.__exportStar) || function(m, exports) {
         | 
| 14 | 
            +
                for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
         | 
| 15 | 
            +
            };
         | 
| 16 | 
            +
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 17 | 
            +
            require("reflect-metadata");
         | 
| 18 | 
            +
            __exportStar(require("./app/modules/domain/auth"), exports);
         | 
| 19 | 
            +
            __exportStar(require("./app/modules/domain/contributions"), exports);
         | 
| 20 | 
            +
            __exportStar(require("./app/modules/domain/publications"), exports);
         | 
| 21 | 
            +
            __exportStar(require("./app/modules/domain/notifications"), exports);
         | 
| 22 | 
            +
            __exportStar(require("./app/modules/domain/shared"), exports);
         | 
| 23 | 
            +
            __exportStar(require("./app/modules/domain/user"), exports);
         | 
| 24 | 
            +
            __exportStar(require("./app/modules/domain/events"), exports);
         | 
| 25 | 
            +
            __exportStar(require("./app/modules/domain/ventures"), exports);
         | 
| 26 | 
            +
            __exportStar(require("./app/modules/infrastructure/database/entities"), exports);
         | 
| 27 | 
            +
            __exportStar(require("./app/modules/utilities"), exports);
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "echadospalante-core",
         | 
| 3 | 
            -
              "version": "12. | 
| 3 | 
            +
              "version": "12.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",
         |