@intelact/bright 0.9.77 → 0.9.78
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/lib/helpers/index.d.ts +2 -0
- package/lib/helpers/index.js +19 -0
- package/lib/helpers/index.js.map +1 -0
- package/lib/helpers/popularity.helper.d.ts +2 -0
- package/lib/helpers/popularity.helper.js +58 -0
- package/lib/helpers/popularity.helper.js.map +1 -0
- package/lib/helpers/post.helper.d.ts +2 -0
- package/lib/helpers/post.helper.js +22 -0
- package/lib/helpers/post.helper.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/models/author.d.ts +3 -3
- package/lib/models/author.js +7 -7
- package/lib/models/author.js.map +1 -1
- package/lib/models/boost.d.ts +3 -3
- package/lib/models/boost.js +10 -11
- package/lib/models/boost.js.map +1 -1
- package/lib/models/brand.d.ts +4 -4
- package/lib/models/brand.js +17 -17
- package/lib/models/brand.js.map +1 -1
- package/lib/models/category.js +0 -1
- package/lib/models/category.js.map +1 -1
- package/lib/models/collection.d.ts +3 -3
- package/lib/models/collection.js +10 -11
- package/lib/models/collection.js.map +1 -1
- package/lib/models/feedback.d.ts +3 -5
- package/lib/models/feedback.js +12 -36
- package/lib/models/feedback.js.map +1 -1
- package/lib/models/log.d.ts +4 -4
- package/lib/models/log.js +3 -3
- package/lib/models/log.js.map +1 -1
- package/lib/models/post.d.ts +15 -17
- package/lib/models/post.js +69 -160
- package/lib/models/post.js.map +1 -1
- package/lib/models/promotion.d.ts +5 -4
- package/lib/models/promotion.js +18 -14
- package/lib/models/promotion.js.map +1 -1
- package/lib/models/publisher.d.ts +4 -3
- package/lib/models/publisher.js +12 -8
- package/lib/models/publisher.js.map +1 -1
- package/lib/models/question.d.ts +20 -17
- package/lib/models/question.js +80 -61
- package/lib/models/question.js.map +1 -1
- package/lib/models/survey.d.ts +9 -11
- package/lib/models/survey.js +37 -47
- package/lib/models/survey.js.map +1 -1
- package/lib/models/topic.d.ts +2 -2
- package/lib/models/topic.js +6 -56
- package/lib/models/topic.js.map +1 -1
- package/lib/models/user.d.ts +4 -4
- package/lib/models/user.js +100 -22
- package/lib/models/user.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
    
        package/lib/models/promotion.js
    CHANGED
    
    | @@ -21,15 +21,16 @@ class Promotion { | |
| 21 21 | 
             
                imageUrl;
         | 
| 22 22 | 
             
                feedUrl;
         | 
| 23 23 | 
             
                url;
         | 
| 24 | 
            +
                status;
         | 
| 24 25 | 
             
                startDate;
         | 
| 25 26 | 
             
                endDate;
         | 
| 26 | 
            -
                status;
         | 
| 27 27 | 
             
                label;
         | 
| 28 28 | 
             
                metricSeen;
         | 
| 29 29 | 
             
                metricOpens;
         | 
| 30 | 
            -
                 | 
| 31 | 
            -
                 | 
| 32 | 
            -
                 | 
| 30 | 
            +
                statusChanged;
         | 
| 31 | 
            +
                published;
         | 
| 32 | 
            +
                created;
         | 
| 33 | 
            +
                updated;
         | 
| 33 34 | 
             
                constructor(props) {
         | 
| 34 35 | 
             
                    Object.assign(this, props);
         | 
| 35 36 | 
             
                }
         | 
| @@ -56,6 +57,10 @@ __decorate([ | |
| 56 57 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 57 58 | 
             
                __metadata("design:type", String)
         | 
| 58 59 | 
             
            ], Promotion.prototype, "url", void 0);
         | 
| 60 | 
            +
            __decorate([
         | 
| 61 | 
            +
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 62 | 
            +
                __metadata("design:type", String)
         | 
| 63 | 
            +
            ], Promotion.prototype, "status", void 0);
         | 
| 59 64 | 
             
            __decorate([
         | 
| 60 65 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 61 66 | 
             
                (0, class_transformer_1.Type)(() => Date),
         | 
| @@ -66,10 +71,6 @@ __decorate([ | |
| 66 71 | 
             
                (0, class_transformer_1.Type)(() => Date),
         | 
| 67 72 | 
             
                __metadata("design:type", Date)
         | 
| 68 73 | 
             
            ], Promotion.prototype, "endDate", void 0);
         | 
| 69 | 
            -
            __decorate([
         | 
| 70 | 
            -
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 71 | 
            -
                __metadata("design:type", String)
         | 
| 72 | 
            -
            ], Promotion.prototype, "status", void 0);
         | 
| 73 74 | 
             
            __decorate([
         | 
| 74 75 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 75 76 | 
             
                __metadata("design:type", String)
         | 
| @@ -77,28 +78,31 @@ __decorate([ | |
| 77 78 | 
             
            __decorate([
         | 
| 78 79 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 79 80 | 
             
                (0, class_transformer_1.Type)(() => metric_1.Metric),
         | 
| 80 | 
            -
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalSeen, obj?.hasSeen)),
         | 
| 81 81 | 
             
                __metadata("design:type", metric_1.Metric)
         | 
| 82 82 | 
             
            ], Promotion.prototype, "metricSeen", void 0);
         | 
| 83 83 | 
             
            __decorate([
         | 
| 84 84 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 85 85 | 
             
                (0, class_transformer_1.Type)(() => item_1.Item),
         | 
| 86 | 
            -
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalClicks', obj?.totalClicks, ['fas', 'computer-mouse'])),
         | 
| 87 86 | 
             
                __metadata("design:type", metric_1.Metric)
         | 
| 88 87 | 
             
            ], Promotion.prototype, "metricOpens", void 0);
         | 
| 89 88 | 
             
            __decorate([
         | 
| 90 89 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 91 90 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 92 91 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 93 | 
            -
            ], Promotion.prototype, " | 
| 92 | 
            +
            ], Promotion.prototype, "statusChanged", void 0);
         | 
| 93 | 
            +
            __decorate([
         | 
| 94 | 
            +
                (0, class_transformer_1.Expose)(),
         | 
| 95 | 
            +
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 96 | 
            +
                __metadata("design:type", log_1.Log)
         | 
| 97 | 
            +
            ], Promotion.prototype, "published", void 0);
         | 
| 94 98 | 
             
            __decorate([
         | 
| 95 99 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 96 100 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 97 101 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 98 | 
            -
            ], Promotion.prototype, " | 
| 102 | 
            +
            ], Promotion.prototype, "created", void 0);
         | 
| 99 103 | 
             
            __decorate([
         | 
| 100 | 
            -
                (0, class_transformer_1.Expose)(),
         | 
| 104 | 
            +
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 101 105 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 102 106 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 103 | 
            -
            ], Promotion.prototype, " | 
| 107 | 
            +
            ], Promotion.prototype, "updated", void 0);
         | 
| 104 108 | 
             
            //# sourceMappingURL=promotion.js.map
         | 
| @@ -1 +1 @@ | |
| 1 | 
            -
            {"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../src/models/promotion.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA, | 
| 1 | 
            +
            {"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../src/models/promotion.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAmD;AACnD,iCAA8B;AAC9B,qCAAkC;AAClC,+BAA4B;AAM5B,MAAa,SAAS;IAIrB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,GAAG,CAAS;IAKZ,MAAM,CAAa;IAInB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAGd,KAAK,CAAc;IAMnB,UAAU,CA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AC;8BACD,SAAG;gDAAC;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACL,SAAG;4CAAC;AAIf;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;0CAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;0CAAC"}
         | 
| @@ -13,9 +13,10 @@ export declare class Publisher { | |
| 13 13 | 
             
                publicVisibility: boolean;
         | 
| 14 14 | 
             
                metricPosts: Metric;
         | 
| 15 15 | 
             
                metricUsers: Metric;
         | 
| 16 | 
            -
                 | 
| 17 | 
            -
                 | 
| 18 | 
            -
                 | 
| 16 | 
            +
                invited: Log;
         | 
| 17 | 
            +
                statusChanged: Log;
         | 
| 18 | 
            +
                created: Log;
         | 
| 19 | 
            +
                updated: Log;
         | 
| 19 20 | 
             
                constructor(props?: Partial<Publisher>);
         | 
| 20 21 | 
             
                isActive(): boolean;
         | 
| 21 22 | 
             
                isDisabled(): boolean;
         | 
    
        package/lib/models/publisher.js
    CHANGED
    
    | @@ -26,9 +26,10 @@ class Publisher { | |
| 26 26 | 
             
                publicVisibility;
         | 
| 27 27 | 
             
                metricPosts;
         | 
| 28 28 | 
             
                metricUsers;
         | 
| 29 | 
            -
                 | 
| 30 | 
            -
                 | 
| 31 | 
            -
                 | 
| 29 | 
            +
                invited;
         | 
| 30 | 
            +
                statusChanged;
         | 
| 31 | 
            +
                created;
         | 
| 32 | 
            +
                updated;
         | 
| 32 33 | 
             
                constructor(props) {
         | 
| 33 34 | 
             
                    Object.assign(this, props);
         | 
| 34 35 | 
             
                }
         | 
| @@ -87,28 +88,31 @@ __decorate([ | |
| 87 88 | 
             
            __decorate([
         | 
| 88 89 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 89 90 | 
             
                (0, class_transformer_1.Type)(() => metric_1.Metric),
         | 
| 90 | 
            -
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalPosts', obj?.totalPosts, ['fas', 'book-open'])),
         | 
| 91 91 | 
             
                __metadata("design:type", metric_1.Metric)
         | 
| 92 92 | 
             
            ], Publisher.prototype, "metricPosts", void 0);
         | 
| 93 93 | 
             
            __decorate([
         | 
| 94 94 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 95 95 | 
             
                (0, class_transformer_1.Type)(() => metric_1.Metric),
         | 
| 96 | 
            -
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalUsers', obj?.totalUsers, ['fas', 'users'])),
         | 
| 97 96 | 
             
                __metadata("design:type", metric_1.Metric)
         | 
| 98 97 | 
             
            ], Publisher.prototype, "metricUsers", void 0);
         | 
| 99 98 | 
             
            __decorate([
         | 
| 100 99 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 101 100 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 102 101 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 103 | 
            -
            ], Publisher.prototype, " | 
| 102 | 
            +
            ], Publisher.prototype, "invited", void 0);
         | 
| 104 103 | 
             
            __decorate([
         | 
| 105 104 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 106 105 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 107 106 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 108 | 
            -
            ], Publisher.prototype, " | 
| 107 | 
            +
            ], Publisher.prototype, "statusChanged", void 0);
         | 
| 109 108 | 
             
            __decorate([
         | 
| 110 109 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 111 110 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 112 111 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 113 | 
            -
            ], Publisher.prototype, " | 
| 112 | 
            +
            ], Publisher.prototype, "created", void 0);
         | 
| 113 | 
            +
            __decorate([
         | 
| 114 | 
            +
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 115 | 
            +
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 116 | 
            +
                __metadata("design:type", log_1.Log)
         | 
| 117 | 
            +
            ], Publisher.prototype, "updated", void 0);
         | 
| 114 118 | 
             
            //# sourceMappingURL=publisher.js.map
         | 
| @@ -1 +1 @@ | |
| 1 | 
            -
            {"version":3,"file":"publisher.js","sourceRoot":"","sources":["../../src/models/publisher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA, | 
| 1 | 
            +
            {"version":3,"file":"publisher.js","sourceRoot":"","sources":["../../src/models/publisher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAuD;AACvD,qCAAkC;AAClC,+BAA4B;AAG5B,MAAa,SAAS;IAIrB,EAAE,CAAS;IAKX,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,WAAW,CAAS;IAGpB,GAAG,CAAS;IAGZ,IAAI,CAAS;IAKb,MAAM,CAAoB;IAG1B,gBAAgB,CAAa;IAI7B,gBAAgB,CAAU;IAM1B,WAAW,CAAS;IAIpB,WAAW,CAAS;IAMpB,OAAO,CAAM;IAIb,aAAa,CAAM;IAInB,OAAO,CAAM;IAIb,OAAO,CAAM;IAEb,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,QAAQ;QACP,OAAO,IAAI,CAAC,MAAM,KAAK,yBAAiB,CAAC,MAAM,CAAC;IACjD,CAAC;IAED,UAAU;QACT,OAAO,IAAI,CAAC,MAAM,KAAK,yBAAiB,CAAC,QAAQ,CAAC;I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,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;0CAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACD,SAAG;gDAAC;AAInB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;0CAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;0CAAC"}
         | 
    
        package/lib/models/question.d.ts
    CHANGED
    
    | @@ -7,38 +7,41 @@ import { Log } from './log'; | |
| 7 7 | 
             
            export declare class Question {
         | 
| 8 8 | 
             
                id: number;
         | 
| 9 9 | 
             
                slug: string;
         | 
| 10 | 
            -
                 | 
| 11 | 
            -
                 | 
| 12 | 
            -
                categories: Category[];
         | 
| 10 | 
            +
                title: string;
         | 
| 11 | 
            +
                question: string;
         | 
| 13 12 | 
             
                name: string;
         | 
| 14 13 | 
             
                email: string;
         | 
| 15 14 | 
             
                phone: string;
         | 
| 16 | 
            -
                title: string;
         | 
| 17 | 
            -
                question: string;
         | 
| 18 | 
            -
                tags: string[];
         | 
| 19 15 | 
             
                status: StatusType;
         | 
| 20 16 | 
             
                private: boolean;
         | 
| 21 17 | 
             
                closed: boolean;
         | 
| 22 18 | 
             
                myQuestion: boolean;
         | 
| 23 | 
            -
                 | 
| 24 | 
            -
                 | 
| 19 | 
            +
                metricSeen: Metric;
         | 
| 20 | 
            +
                metricOpens: Metric;
         | 
| 25 21 | 
             
                metricLikes: Metric;
         | 
| 26 22 | 
             
                metricShares: Metric;
         | 
| 27 | 
            -
                 | 
| 28 | 
            -
                 | 
| 29 | 
            -
                 | 
| 30 | 
            -
                 | 
| 31 | 
            -
                 | 
| 32 | 
            -
                 | 
| 23 | 
            +
                metricBookmarks: Metric;
         | 
| 24 | 
            +
                metricComments: Metric;
         | 
| 25 | 
            +
                attention: Log;
         | 
| 26 | 
            +
                statusChanged: Log;
         | 
| 27 | 
            +
                published: Log;
         | 
| 28 | 
            +
                created: Log;
         | 
| 29 | 
            +
                updated: Log;
         | 
| 30 | 
            +
                deleted: Log;
         | 
| 31 | 
            +
                user: User;
         | 
| 32 | 
            +
                comments: QuestionComment[];
         | 
| 33 | 
            +
                categories: Category[];
         | 
| 33 34 | 
             
                constructor(props?: Partial<Question>);
         | 
| 34 35 | 
             
            }
         | 
| 35 36 | 
             
            export declare class QuestionComment {
         | 
| 36 37 | 
             
                id: number;
         | 
| 37 | 
            -
                question: Question;
         | 
| 38 38 | 
             
                author: Author;
         | 
| 39 | 
            +
                question: Question;
         | 
| 39 40 | 
             
                comment: string;
         | 
| 40 41 | 
             
                status: StatusType;
         | 
| 41 | 
            -
                 | 
| 42 | 
            -
                 | 
| 42 | 
            +
                published: Log;
         | 
| 43 | 
            +
                statusChanged: Log;
         | 
| 44 | 
            +
                created: Log;
         | 
| 45 | 
            +
                updated: Log;
         | 
| 43 46 | 
             
                constructor(props?: Partial<QuestionComment>);
         | 
| 44 47 | 
             
            }
         | 
    
        package/lib/models/question.js
    CHANGED
    
    | @@ -20,29 +20,30 @@ const log_1 = require("./log"); | |
| 20 20 | 
             
            class Question {
         | 
| 21 21 | 
             
                id;
         | 
| 22 22 | 
             
                slug;
         | 
| 23 | 
            -
                 | 
| 24 | 
            -
                 | 
| 25 | 
            -
                categories;
         | 
| 23 | 
            +
                title;
         | 
| 24 | 
            +
                question;
         | 
| 26 25 | 
             
                name;
         | 
| 27 26 | 
             
                email;
         | 
| 28 27 | 
             
                phone;
         | 
| 29 | 
            -
                title;
         | 
| 30 | 
            -
                question;
         | 
| 31 | 
            -
                tags;
         | 
| 32 28 | 
             
                status;
         | 
| 33 29 | 
             
                private;
         | 
| 34 30 | 
             
                closed;
         | 
| 35 31 | 
             
                myQuestion;
         | 
| 36 | 
            -
                 | 
| 37 | 
            -
                 | 
| 32 | 
            +
                metricSeen;
         | 
| 33 | 
            +
                metricOpens;
         | 
| 38 34 | 
             
                metricLikes;
         | 
| 39 35 | 
             
                metricShares;
         | 
| 40 | 
            -
                 | 
| 41 | 
            -
                 | 
| 42 | 
            -
                 | 
| 43 | 
            -
                 | 
| 44 | 
            -
                 | 
| 45 | 
            -
                 | 
| 36 | 
            +
                metricBookmarks;
         | 
| 37 | 
            +
                metricComments;
         | 
| 38 | 
            +
                attention;
         | 
| 39 | 
            +
                statusChanged;
         | 
| 40 | 
            +
                published;
         | 
| 41 | 
            +
                created;
         | 
| 42 | 
            +
                updated;
         | 
| 43 | 
            +
                deleted;
         | 
| 44 | 
            +
                user;
         | 
| 45 | 
            +
                comments;
         | 
| 46 | 
            +
                categories;
         | 
| 46 47 | 
             
                constructor(props) {
         | 
| 47 48 | 
             
                    Object.assign(this, props);
         | 
| 48 49 | 
             
                }
         | 
| @@ -59,19 +60,12 @@ __decorate([ | |
| 59 60 | 
             
            ], Question.prototype, "slug", void 0);
         | 
| 60 61 | 
             
            __decorate([
         | 
| 61 62 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 62 | 
            -
                ( | 
| 63 | 
            -
             | 
| 64 | 
            -
            ], Question.prototype, "user", void 0);
         | 
| 65 | 
            -
            __decorate([
         | 
| 66 | 
            -
                (0, class_transformer_1.Expose)(),
         | 
| 67 | 
            -
                (0, class_transformer_1.Type)(() => QuestionComment),
         | 
| 68 | 
            -
                __metadata("design:type", Array)
         | 
| 69 | 
            -
            ], Question.prototype, "comments", void 0);
         | 
| 63 | 
            +
                __metadata("design:type", String)
         | 
| 64 | 
            +
            ], Question.prototype, "title", void 0);
         | 
| 70 65 | 
             
            __decorate([
         | 
| 71 66 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 72 | 
            -
                ( | 
| 73 | 
            -
             | 
| 74 | 
            -
            ], Question.prototype, "categories", void 0);
         | 
| 67 | 
            +
                __metadata("design:type", String)
         | 
| 68 | 
            +
            ], Question.prototype, "question", void 0);
         | 
| 75 69 | 
             
            __decorate([
         | 
| 76 70 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 77 71 | 
             
                __metadata("design:type", String)
         | 
| @@ -84,19 +78,6 @@ __decorate([ | |
| 84 78 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 85 79 | 
             
                __metadata("design:type", String)
         | 
| 86 80 | 
             
            ], Question.prototype, "phone", void 0);
         | 
| 87 | 
            -
            __decorate([
         | 
| 88 | 
            -
                (0, class_transformer_1.Expose)(),
         | 
| 89 | 
            -
                __metadata("design:type", String)
         | 
| 90 | 
            -
            ], Question.prototype, "title", void 0);
         | 
| 91 | 
            -
            __decorate([
         | 
| 92 | 
            -
                (0, class_transformer_1.Expose)(),
         | 
| 93 | 
            -
                __metadata("design:type", String)
         | 
| 94 | 
            -
            ], Question.prototype, "question", void 0);
         | 
| 95 | 
            -
            __decorate([
         | 
| 96 | 
            -
                (0, class_transformer_1.Expose)(),
         | 
| 97 | 
            -
                (0, class_transformer_1.Transform)(({ obj }) => (obj?.categories?.map((i) => i.hash) || [])),
         | 
| 98 | 
            -
                __metadata("design:type", Array)
         | 
| 99 | 
            -
            ], Question.prototype, "tags", void 0);
         | 
| 100 81 | 
             
            __decorate([
         | 
| 101 82 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 102 83 | 
             
                __metadata("design:type", String)
         | 
| @@ -119,15 +100,15 @@ __decorate([ | |
| 119 100 | 
             
            __decorate([
         | 
| 120 101 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 121 102 | 
             
                (0, class_transformer_1.Type)(() => metric_1.Metric),
         | 
| 122 | 
            -
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?. | 
| 103 | 
            +
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalSeen, obj?.hasSeen)),
         | 
| 123 104 | 
             
                __metadata("design:type", metric_1.Metric)
         | 
| 124 | 
            -
            ], Question.prototype, " | 
| 105 | 
            +
            ], Question.prototype, "metricSeen", void 0);
         | 
| 125 106 | 
             
            __decorate([
         | 
| 126 107 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 127 108 | 
             
                (0, class_transformer_1.Type)(() => metric_1.Metric),
         | 
| 128 | 
            -
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric. | 
| 109 | 
            +
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalOpens, obj?.hasOpen)),
         | 
| 129 110 | 
             
                __metadata("design:type", metric_1.Metric)
         | 
| 130 | 
            -
            ], Question.prototype, " | 
| 111 | 
            +
            ], Question.prototype, "metricOpens", void 0);
         | 
| 131 112 | 
             
            __decorate([
         | 
| 132 113 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 133 114 | 
             
                (0, class_transformer_1.Type)(() => metric_1.Metric),
         | 
| @@ -140,45 +121,73 @@ __decorate([ | |
| 140 121 | 
             
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalShares, obj?.hasShare)),
         | 
| 141 122 | 
             
                __metadata("design:type", metric_1.Metric)
         | 
| 142 123 | 
             
            ], Question.prototype, "metricShares", void 0);
         | 
| 124 | 
            +
            __decorate([
         | 
| 125 | 
            +
                (0, class_transformer_1.Expose)(),
         | 
| 126 | 
            +
                (0, class_transformer_1.Type)(() => metric_1.Metric),
         | 
| 127 | 
            +
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalBookmarks, obj?.hasBookmark)),
         | 
| 128 | 
            +
                __metadata("design:type", metric_1.Metric)
         | 
| 129 | 
            +
            ], Question.prototype, "metricBookmarks", void 0);
         | 
| 143 130 | 
             
            __decorate([
         | 
| 144 131 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 145 132 | 
             
                (0, class_transformer_1.Type)(() => metric_1.Metric),
         | 
| 146 133 | 
             
                (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.feedback(obj?.totalComments, obj?.hasComment)),
         | 
| 147 134 | 
             
                __metadata("design:type", metric_1.Metric)
         | 
| 148 | 
            -
            ], Question.prototype, " | 
| 135 | 
            +
            ], Question.prototype, "metricComments", void 0);
         | 
| 136 | 
            +
            __decorate([
         | 
| 137 | 
            +
                (0, class_transformer_1.Expose)(),
         | 
| 138 | 
            +
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 139 | 
            +
                __metadata("design:type", log_1.Log)
         | 
| 140 | 
            +
            ], Question.prototype, "attention", void 0);
         | 
| 141 | 
            +
            __decorate([
         | 
| 142 | 
            +
                (0, class_transformer_1.Expose)(),
         | 
| 143 | 
            +
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 144 | 
            +
                __metadata("design:type", log_1.Log)
         | 
| 145 | 
            +
            ], Question.prototype, "statusChanged", void 0);
         | 
| 146 | 
            +
            __decorate([
         | 
| 147 | 
            +
                (0, class_transformer_1.Expose)(),
         | 
| 148 | 
            +
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 149 | 
            +
                __metadata("design:type", log_1.Log)
         | 
| 150 | 
            +
            ], Question.prototype, "published", void 0);
         | 
| 149 151 | 
             
            __decorate([
         | 
| 150 152 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 151 153 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 152 154 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 153 | 
            -
            ], Question.prototype, " | 
| 155 | 
            +
            ], Question.prototype, "created", void 0);
         | 
| 154 156 | 
             
            __decorate([
         | 
| 155 157 | 
             
                (0, class_transformer_1.Expose)({ groups: ['admin'] }),
         | 
| 156 158 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 157 159 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 158 | 
            -
            ], Question.prototype, " | 
| 160 | 
            +
            ], Question.prototype, "updated", void 0);
         | 
| 159 161 | 
             
            __decorate([
         | 
| 160 162 | 
             
                (0, class_transformer_1.Expose)({ groups: ['console'] }),
         | 
| 161 163 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 162 164 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 163 | 
            -
            ], Question.prototype, " | 
| 165 | 
            +
            ], Question.prototype, "deleted", void 0);
         | 
| 164 166 | 
             
            __decorate([
         | 
| 165 167 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 166 | 
            -
                (0, class_transformer_1.Type)(() =>  | 
| 167 | 
            -
                __metadata("design:type",  | 
| 168 | 
            -
            ], Question.prototype, " | 
| 168 | 
            +
                (0, class_transformer_1.Type)(() => user_1.User),
         | 
| 169 | 
            +
                __metadata("design:type", user_1.User)
         | 
| 170 | 
            +
            ], Question.prototype, "user", void 0);
         | 
| 169 171 | 
             
            __decorate([
         | 
| 170 172 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 171 | 
            -
                (0, class_transformer_1.Type)(() =>  | 
| 172 | 
            -
                __metadata("design:type",  | 
| 173 | 
            -
            ], Question.prototype, " | 
| 173 | 
            +
                (0, class_transformer_1.Type)(() => QuestionComment),
         | 
| 174 | 
            +
                __metadata("design:type", Array)
         | 
| 175 | 
            +
            ], Question.prototype, "comments", void 0);
         | 
| 176 | 
            +
            __decorate([
         | 
| 177 | 
            +
                (0, class_transformer_1.Expose)(),
         | 
| 178 | 
            +
                (0, class_transformer_1.Type)(() => category_1.Category),
         | 
| 179 | 
            +
                __metadata("design:type", Array)
         | 
| 180 | 
            +
            ], Question.prototype, "categories", void 0);
         | 
| 174 181 | 
             
            class QuestionComment {
         | 
| 175 182 | 
             
                id;
         | 
| 176 | 
            -
                question;
         | 
| 177 183 | 
             
                author;
         | 
| 184 | 
            +
                question;
         | 
| 178 185 | 
             
                comment;
         | 
| 179 186 | 
             
                status;
         | 
| 180 | 
            -
                 | 
| 181 | 
            -
                 | 
| 187 | 
            +
                published;
         | 
| 188 | 
            +
                statusChanged;
         | 
| 189 | 
            +
                created;
         | 
| 190 | 
            +
                updated;
         | 
| 182 191 | 
             
                constructor(props) {
         | 
| 183 192 | 
             
                    Object.assign(this, props);
         | 
| 184 193 | 
             
                }
         | 
| @@ -189,15 +198,15 @@ __decorate([ | |
| 189 198 | 
             
                (0, class_transformer_1.Type)(() => Number),
         | 
| 190 199 | 
             
                __metadata("design:type", Number)
         | 
| 191 200 | 
             
            ], QuestionComment.prototype, "id", void 0);
         | 
| 192 | 
            -
            __decorate([
         | 
| 193 | 
            -
                (0, class_transformer_1.Expose)(),
         | 
| 194 | 
            -
                __metadata("design:type", Question)
         | 
| 195 | 
            -
            ], QuestionComment.prototype, "question", void 0);
         | 
| 196 201 | 
             
            __decorate([
         | 
| 197 202 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 198 203 | 
             
                (0, class_transformer_1.Type)(() => author_1.Author),
         | 
| 199 204 | 
             
                __metadata("design:type", author_1.Author)
         | 
| 200 205 | 
             
            ], QuestionComment.prototype, "author", void 0);
         | 
| 206 | 
            +
            __decorate([
         | 
| 207 | 
            +
                (0, class_transformer_1.Expose)(),
         | 
| 208 | 
            +
                __metadata("design:type", Question)
         | 
| 209 | 
            +
            ], QuestionComment.prototype, "question", void 0);
         | 
| 201 210 | 
             
            __decorate([
         | 
| 202 211 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 203 212 | 
             
                __metadata("design:type", String)
         | 
| @@ -210,10 +219,20 @@ __decorate([ | |
| 210 219 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 211 220 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 212 221 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 213 | 
            -
            ], QuestionComment.prototype, " | 
| 222 | 
            +
            ], QuestionComment.prototype, "published", void 0);
         | 
| 223 | 
            +
            __decorate([
         | 
| 224 | 
            +
                (0, class_transformer_1.Expose)(),
         | 
| 225 | 
            +
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 226 | 
            +
                __metadata("design:type", log_1.Log)
         | 
| 227 | 
            +
            ], QuestionComment.prototype, "statusChanged", void 0);
         | 
| 228 | 
            +
            __decorate([
         | 
| 229 | 
            +
                (0, class_transformer_1.Expose)(),
         | 
| 230 | 
            +
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 231 | 
            +
                __metadata("design:type", log_1.Log)
         | 
| 232 | 
            +
            ], QuestionComment.prototype, "created", void 0);
         | 
| 214 233 | 
             
            __decorate([
         | 
| 215 234 | 
             
                (0, class_transformer_1.Expose)(),
         | 
| 216 235 | 
             
                (0, class_transformer_1.Type)(() => log_1.Log),
         | 
| 217 236 | 
             
                __metadata("design:type", log_1.Log)
         | 
| 218 | 
            -
            ], QuestionComment.prototype, " | 
| 237 | 
            +
            ], QuestionComment.prototype, "updated", void 0);
         | 
| 219 238 | 
             
            //# sourceMappingURL=question.js.map
         | 
| @@ -1 +1 @@ | |
| 1 | 
            -
            {"version":3,"file":"question.js","sourceRoot":"","sources":["../../src/models/question.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,qCAAkC;AAClC,iCAA8B;AAC9B,yCAAsC;AACtC,oCAAsC;AACtC,qCAAkC;AAClC,+BAA4B; | 
| 1 | 
            +
            {"version":3,"file":"question.js","sourceRoot":"","sources":["../../src/models/question.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,qCAAkC;AAClC,iCAA8B;AAC9B,yCAAsC;AACtC,oCAAsC;AACtC,qCAAkC;AAClC,+BAA4B;AAG5B,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,KAAK,CAAS;IAGd,QAAQ,CAAS;IAKjB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,KAAK,CAAS;IAKd,MAAM,CAAa;IAInB,O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ts
    CHANGED
    
    | @@ -1,27 +1,26 @@ | |
| 1 1 | 
             
            import { StatusType, StatusLabel } from '../enums';
         | 
| 2 | 
            -
            import { Item } from './item';
         | 
| 3 2 | 
             
            import { Metric } from './metric';
         | 
| 4 3 | 
             
            import { Log } from './log';
         | 
| 5 4 | 
             
            export declare class Survey {
         | 
| 6 5 | 
             
                id: number;
         | 
| 6 | 
            +
                slug: string;
         | 
| 7 7 | 
             
                name: string;
         | 
| 8 8 | 
             
                description: string;
         | 
| 9 9 | 
             
                imageUrl: string;
         | 
| 10 | 
            -
                startDate: Date;
         | 
| 11 | 
            -
                endDate: Date;
         | 
| 12 | 
            -
                slug: string;
         | 
| 13 10 | 
             
                items: SurveyItem[];
         | 
| 14 | 
            -
                isStarted: boolean;
         | 
| 15 11 | 
             
                status: StatusType;
         | 
| 16 12 | 
             
                label: StatusLabel;
         | 
| 13 | 
            +
                startDate: Date;
         | 
| 14 | 
            +
                endDate: Date;
         | 
| 15 | 
            +
                isStarted: boolean;
         | 
| 17 16 | 
             
                metricSeen: Metric;
         | 
| 18 17 | 
             
                metricOpens: Metric;
         | 
| 19 18 | 
             
                metricQuestions: Metric;
         | 
| 20 19 | 
             
                metricUsers: Metric;
         | 
| 21 | 
            -
                 | 
| 22 | 
            -
                 | 
| 23 | 
            -
                 | 
| 24 | 
            -
                 | 
| 20 | 
            +
                statusChanged: Log;
         | 
| 21 | 
            +
                published: Log;
         | 
| 22 | 
            +
                created: Log;
         | 
| 23 | 
            +
                updated: Log;
         | 
| 25 24 | 
             
                constructor(props?: Partial<Survey>);
         | 
| 26 25 | 
             
            }
         | 
| 27 26 | 
             
            export declare class SurveyItem {
         | 
| @@ -32,14 +31,13 @@ export declare class SurveyItem { | |
| 32 31 | 
             
                sort: number;
         | 
| 33 32 | 
             
                survey: Survey;
         | 
| 34 33 | 
             
                options: SurveyOption[];
         | 
| 35 | 
            -
                metrics: Item[];
         | 
| 36 34 | 
             
                constructor(props?: Partial<SurveyItem>);
         | 
| 37 35 | 
             
            }
         | 
| 38 36 | 
             
            export declare class SurveyOption {
         | 
| 39 37 | 
             
                id: number;
         | 
| 40 38 | 
             
                content: string;
         | 
| 41 39 | 
             
                sort: number;
         | 
| 42 | 
            -
                item: SurveyItem;
         | 
| 43 40 | 
             
                isSelected: boolean;
         | 
| 41 | 
            +
                item: SurveyItem;
         | 
| 44 42 | 
             
                constructor(props?: Partial<SurveyOption>);
         | 
| 45 43 | 
             
            }
         |