@aurispec/core-backend 1.0.55 → 1.0.56
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.
|
@@ -22,6 +22,14 @@ export declare enum SYS_SETTINGS_KEY {
|
|
|
22
22
|
REPORT_THRESH_HOLD = "REPORT_THRESH_HOLD",
|
|
23
23
|
GRACE_PERIOD = "GRACE_PERIOD"
|
|
24
24
|
}
|
|
25
|
+
export declare enum REPORT_REASONS {
|
|
26
|
+
MIS_INFORMATION = "MIS_INFORMATION",
|
|
27
|
+
HARMFUL_SPEECH = "HARMFUL_SPEECH",
|
|
28
|
+
HATE_SPEECH = "HATE_SPEECH",
|
|
29
|
+
SPAM_OR_PROMOTIONAL = "SPAM_OR_PROMOTIONAL",
|
|
30
|
+
PRIVACY_CONVERN = "PRIVACY_CONVERN",
|
|
31
|
+
OTHERS = "OTHERS"
|
|
32
|
+
}
|
|
25
33
|
export declare enum SYS_MODELS {
|
|
26
34
|
POST_MODEL = "PostModel",
|
|
27
35
|
ARTICLE_MODEL = "ArticleModel",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":"AAAC,oBAAY,MAAM;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;CACxB;AAED,oBAAY,mBAAmB;IAC3B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;CAClB;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,aAAa,kBAAkB;CAClC;AAED,oBAAY,gBAAgB;IACxB,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IAEjC,0BAA0B,+BAA+B;IACzD,kBAAkB,uBAAuB;IACzC,YAAY,iBAAiB;CAChC;AAED,oBAAY,UAAU;IAClB,UAAU,cAAc;IACxB,aAAa,i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AAc,SAAS;IACvB,iBAAiB,UAAU;IAC3B,mBAAmB,UAAU;IAC7B,UAAU,YAAY;CACvB;AAED,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.AttendeeRange = exports.CHAT_MESSAGE_TYPE = exports.CHAT_MESSAGE_SENDER_TYPE = exports.PAYMENT_PROVIDER = exports.CARD_BRAND = exports.SESSION_TYPE = exports.SYS_MODELS = exports.SYS_SETTINGS_KEY = exports.SYS_DATA_TYPES = exports.CHAT_SESSION_STATUS = exports.STATUS = void 0;
|
|
17
|
+
exports.AttendeeRange = exports.CHAT_MESSAGE_TYPE = exports.CHAT_MESSAGE_SENDER_TYPE = exports.PAYMENT_PROVIDER = exports.CARD_BRAND = exports.SESSION_TYPE = exports.SYS_MODELS = exports.REPORT_REASONS = exports.SYS_SETTINGS_KEY = exports.SYS_DATA_TYPES = exports.CHAT_SESSION_STATUS = exports.STATUS = void 0;
|
|
18
18
|
var STATUS;
|
|
19
19
|
(function (STATUS) {
|
|
20
20
|
STATUS["ACTIVE"] = "ACTIVE";
|
|
@@ -44,6 +44,15 @@ var SYS_SETTINGS_KEY;
|
|
|
44
44
|
SYS_SETTINGS_KEY["REPORT_THRESH_HOLD"] = "REPORT_THRESH_HOLD";
|
|
45
45
|
SYS_SETTINGS_KEY["GRACE_PERIOD"] = "GRACE_PERIOD";
|
|
46
46
|
})(SYS_SETTINGS_KEY || (exports.SYS_SETTINGS_KEY = SYS_SETTINGS_KEY = {}));
|
|
47
|
+
var REPORT_REASONS;
|
|
48
|
+
(function (REPORT_REASONS) {
|
|
49
|
+
REPORT_REASONS["MIS_INFORMATION"] = "MIS_INFORMATION";
|
|
50
|
+
REPORT_REASONS["HARMFUL_SPEECH"] = "HARMFUL_SPEECH";
|
|
51
|
+
REPORT_REASONS["HATE_SPEECH"] = "HATE_SPEECH";
|
|
52
|
+
REPORT_REASONS["SPAM_OR_PROMOTIONAL"] = "SPAM_OR_PROMOTIONAL";
|
|
53
|
+
REPORT_REASONS["PRIVACY_CONVERN"] = "PRIVACY_CONVERN";
|
|
54
|
+
REPORT_REASONS["OTHERS"] = "OTHERS";
|
|
55
|
+
})(REPORT_REASONS || (exports.REPORT_REASONS = REPORT_REASONS = {}));
|
|
47
56
|
var SYS_MODELS;
|
|
48
57
|
(function (SYS_MODELS) {
|
|
49
58
|
SYS_MODELS["POST_MODEL"] = "PostModel";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
import { PostModel } from "./PostModel";
|
|
3
|
+
import { UserModel } from "./UserModel";
|
|
4
|
+
import { REPORT_REASONS } from "@/common/enums";
|
|
5
|
+
export declare class ReportPostModel extends BaseModel {
|
|
6
|
+
post_id: number;
|
|
7
|
+
user_id: number;
|
|
8
|
+
comment: string;
|
|
9
|
+
reportable_id: number;
|
|
10
|
+
reason: REPORT_REASONS;
|
|
11
|
+
reportable_type: string;
|
|
12
|
+
post: PostModel;
|
|
13
|
+
user: UserModel;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ReportModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportModel.d.ts","sourceRoot":"","sources":["../../src/models/ReportModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,qBAEa,eAAgB,SAAQ,SAAS;IAE1C,OAAO,EAAG,MAAM,CAAC;IAGjB,OAAO,EAAG,MAAM,CAAC;IAGjB,OAAO,EAAG,MAAM,CAAC;IAGjB,aAAa,EAAG,MAAM,CAAC;IAMvB,MAAM,EAAG,cAAc,CAAC;IAGxB,eAAe,EAAG,MAAM,CAAC;IAIzB,IAAI,EAAG,SAAS,CAAC;IAIjB,IAAI,EAAG,SAAS,CAAC;CACpB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.ReportPostModel = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const PostModel_1 = require("./PostModel");
|
|
16
|
+
const UserModel_1 = require("./UserModel");
|
|
17
|
+
const enums_1 = require("@/common/enums");
|
|
18
|
+
let ReportPostModel = class ReportPostModel extends BaseModel_1.BaseModel {
|
|
19
|
+
post_id;
|
|
20
|
+
user_id;
|
|
21
|
+
comment;
|
|
22
|
+
reportable_id;
|
|
23
|
+
reason;
|
|
24
|
+
reportable_type;
|
|
25
|
+
post;
|
|
26
|
+
user;
|
|
27
|
+
};
|
|
28
|
+
exports.ReportPostModel = ReportPostModel;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], ReportPostModel.prototype, "post_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], ReportPostModel.prototype, "user_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ReportPostModel.prototype, "comment", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ReportPostModel.prototype, "reportable_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({
|
|
47
|
+
type: "enum",
|
|
48
|
+
enum: enums_1.REPORT_REASONS,
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ReportPostModel.prototype, "reason", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], ReportPostModel.prototype, "reportable_type", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.ManyToOne)(() => PostModel_1.PostModel, (post) => post.comments),
|
|
58
|
+
(0, typeorm_1.JoinColumn)({ name: "post_id", referencedColumnName: "id" }),
|
|
59
|
+
__metadata("design:type", PostModel_1.PostModel)
|
|
60
|
+
], ReportPostModel.prototype, "post", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ManyToOne)(() => UserModel_1.UserModel, (user) => user.events),
|
|
63
|
+
(0, typeorm_1.JoinColumn)({ name: "user_id", referencedColumnName: "id" }),
|
|
64
|
+
__metadata("design:type", UserModel_1.UserModel)
|
|
65
|
+
], ReportPostModel.prototype, "user", void 0);
|
|
66
|
+
exports.ReportPostModel = ReportPostModel = __decorate([
|
|
67
|
+
(0, typeorm_1.Entity)({ name: "reports" }),
|
|
68
|
+
(0, typeorm_1.Index)(['post_id', 'user_id', 'reportable_id', 'reportable_type'])
|
|
69
|
+
], ReportPostModel);
|