@lukiteam/luki-be-general 0.1.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/index.d.ts +9 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/models/enum/index.d.ts +221 -0
- package/dist/models/enum/index.js +289 -0
- package/dist/models/enum/index.js.map +1 -0
- package/dist/mongo/index.d.ts +90 -0
- package/dist/mongo/index.js +101 -0
- package/dist/mongo/index.js.map +1 -0
- package/dist/mongo/interfaces/repository.interface.d.ts +11 -0
- package/dist/mongo/interfaces/repository.interface.js +3 -0
- package/dist/mongo/interfaces/repository.interface.js.map +1 -0
- package/dist/mongo/repositories/base.repository.d.ts +50 -0
- package/dist/mongo/repositories/base.repository.js +161 -0
- package/dist/mongo/repositories/base.repository.js.map +1 -0
- package/dist/mongo/repositories/repository.factory.d.ts +5 -0
- package/dist/mongo/repositories/repository.factory.js +25 -0
- package/dist/mongo/repositories/repository.factory.js.map +1 -0
- package/dist/mongo/schema/agency-publishers.entity.d.ts +38 -0
- package/dist/mongo/schema/agency-publishers.entity.js +58 -0
- package/dist/mongo/schema/agency-publishers.entity.js.map +1 -0
- package/dist/mongo/schema/agency.entity.d.ts +34 -0
- package/dist/mongo/schema/agency.entity.js +41 -0
- package/dist/mongo/schema/agency.entity.js.map +1 -0
- package/dist/mongo/schema/contents.entity.d.ts +32 -0
- package/dist/mongo/schema/contents.entity.js +36 -0
- package/dist/mongo/schema/contents.entity.js.map +1 -0
- package/dist/mongo/schema/defined-texts.entity.d.ts +33 -0
- package/dist/mongo/schema/defined-texts.entity.js +37 -0
- package/dist/mongo/schema/defined-texts.entity.js.map +1 -0
- package/dist/mongo/schema/filter.dto.d.ts +6 -0
- package/dist/mongo/schema/filter.dto.js +7 -0
- package/dist/mongo/schema/filter.dto.js.map +1 -0
- package/dist/mongo/schema/highlights.entity.d.ts +35 -0
- package/dist/mongo/schema/highlights.entity.js +48 -0
- package/dist/mongo/schema/highlights.entity.js.map +1 -0
- package/dist/mongo/schema/language.entity.d.ts +31 -0
- package/dist/mongo/schema/language.entity.js +32 -0
- package/dist/mongo/schema/language.entity.js.map +1 -0
- package/dist/mongo/schema/member-config.entity.d.ts +42 -0
- package/dist/mongo/schema/member-config.entity.js +77 -0
- package/dist/mongo/schema/member-config.entity.js.map +1 -0
- package/dist/mongo/schema/member-roles.entity.d.ts +33 -0
- package/dist/mongo/schema/member-roles.entity.js +38 -0
- package/dist/mongo/schema/member-roles.entity.js.map +1 -0
- package/dist/mongo/schema/member.entity.d.ts +64 -0
- package/dist/mongo/schema/member.entity.js +163 -0
- package/dist/mongo/schema/member.entity.js.map +1 -0
- package/dist/mongo/schema/notification.entity.d.ts +44 -0
- package/dist/mongo/schema/notification.entity.js +73 -0
- package/dist/mongo/schema/notification.entity.js.map +1 -0
- package/dist/mongo/schema/post-comments.entity.d.ts +34 -0
- package/dist/mongo/schema/post-comments.entity.js +43 -0
- package/dist/mongo/schema/post-comments.entity.js.map +1 -0
- package/dist/mongo/schema/post-likes.entity.d.ts +32 -0
- package/dist/mongo/schema/post-likes.entity.js +35 -0
- package/dist/mongo/schema/post-likes.entity.js.map +1 -0
- package/dist/mongo/schema/posts.entity.d.ts +39 -0
- package/dist/mongo/schema/posts.entity.js +65 -0
- package/dist/mongo/schema/posts.entity.js.map +1 -0
- package/dist/mongo/schema/rights.entity.d.ts +33 -0
- package/dist/mongo/schema/rights.entity.js +37 -0
- package/dist/mongo/schema/rights.entity.js.map +1 -0
- package/dist/mongo/schema/roles-rights.entity.d.ts +33 -0
- package/dist/mongo/schema/roles-rights.entity.js +38 -0
- package/dist/mongo/schema/roles-rights.entity.js.map +1 -0
- package/dist/mongo/schema/roles.entity.d.ts +32 -0
- package/dist/mongo/schema/roles.entity.js +33 -0
- package/dist/mongo/schema/roles.entity.js.map +1 -0
- package/dist/mongo/schema/spend-log.entity.d.ts +35 -0
- package/dist/mongo/schema/spend-log.entity.js +45 -0
- package/dist/mongo/schema/spend-log.entity.js.map +1 -0
- package/dist/mongo/schema/story-priority-log.entity.d.ts +32 -0
- package/dist/mongo/schema/story-priority-log.entity.js +33 -0
- package/dist/mongo/schema/story-priority-log.entity.js.map +1 -0
- package/dist/mongo/schema/story-seen-by.entity.d.ts +32 -0
- package/dist/mongo/schema/story-seen-by.entity.js +36 -0
- package/dist/mongo/schema/story-seen-by.entity.js.map +1 -0
- package/dist/mongo/schema/story.entity.d.ts +41 -0
- package/dist/mongo/schema/story.entity.js +54 -0
- package/dist/mongo/schema/story.entity.js.map +1 -0
- package/dist/mongo/schema/system-log.entity.d.ts +37 -0
- package/dist/mongo/schema/system-log.entity.js +53 -0
- package/dist/mongo/schema/system-log.entity.js.map +1 -0
- package/dist/mongo/schema/system-logs.entity.d.ts +36 -0
- package/dist/mongo/schema/system-logs.entity.js +46 -0
- package/dist/mongo/schema/system-logs.entity.js.map +1 -0
- package/dist/mongo/unit-of-work/unit-of-work.interface.d.ts +7 -0
- package/dist/mongo/unit-of-work/unit-of-work.interface.js +3 -0
- package/dist/mongo/unit-of-work/unit-of-work.interface.js.map +1 -0
- package/dist/mongo/unit-of-work/unit-of-work.module.d.ts +2 -0
- package/dist/mongo/unit-of-work/unit-of-work.module.js +29 -0
- package/dist/mongo/unit-of-work/unit-of-work.module.js.map +1 -0
- package/dist/mongo/unit-of-work/unit-of-work.service.d.ts +19 -0
- package/dist/mongo/unit-of-work/unit-of-work.service.js +104 -0
- package/dist/mongo/unit-of-work/unit-of-work.service.js.map +1 -0
- package/dist/postgresql/entity/banners.entity.d.ts +18 -0
- package/dist/postgresql/entity/banners.entity.js +86 -0
- package/dist/postgresql/entity/banners.entity.js.map +1 -0
- package/dist/postgresql/entity/blocked-phone.entity.d.ts +9 -0
- package/dist/postgresql/entity/blocked-phone.entity.js +44 -0
- package/dist/postgresql/entity/blocked-phone.entity.js.map +1 -0
- package/dist/postgresql/entity/call-history-detail.entity.d.ts +9 -0
- package/dist/postgresql/entity/call-history-detail.entity.js +44 -0
- package/dist/postgresql/entity/call-history-detail.entity.js.map +1 -0
- package/dist/postgresql/entity/call-history.entity.d.ts +19 -0
- package/dist/postgresql/entity/call-history.entity.js +88 -0
- package/dist/postgresql/entity/call-history.entity.js.map +1 -0
- package/dist/postgresql/entity/coins-definition.entity.d.ts +14 -0
- package/dist/postgresql/entity/coins-definition.entity.js +60 -0
- package/dist/postgresql/entity/coins-definition.entity.js.map +1 -0
- package/dist/postgresql/entity/feedback-and-complaint.entity.d.ts +14 -0
- package/dist/postgresql/entity/feedback-and-complaint.entity.js +64 -0
- package/dist/postgresql/entity/feedback-and-complaint.entity.js.map +1 -0
- package/dist/postgresql/entity/member-bank-account.entity.d.ts +8 -0
- package/dist/postgresql/entity/member-bank-account.entity.js +43 -0
- package/dist/postgresql/entity/member-bank-account.entity.js.map +1 -0
- package/dist/postgresql/entity/member-blocked.entity.d.ts +11 -0
- package/dist/postgresql/entity/member-blocked.entity.js +58 -0
- package/dist/postgresql/entity/member-blocked.entity.js.map +1 -0
- package/dist/postgresql/entity/member-config.entity.d.ts +22 -0
- package/dist/postgresql/entity/member-config.entity.js +119 -0
- package/dist/postgresql/entity/member-config.entity.js.map +1 -0
- package/dist/postgresql/entity/member-connections.entity.d.ts +7 -0
- package/dist/postgresql/entity/member-connections.entity.js +39 -0
- package/dist/postgresql/entity/member-connections.entity.js.map +1 -0
- package/dist/postgresql/entity/member-friends.entity.d.ts +11 -0
- package/dist/postgresql/entity/member-friends.entity.js +58 -0
- package/dist/postgresql/entity/member-friends.entity.js.map +1 -0
- package/dist/postgresql/entity/member-liked.entity.d.ts +9 -0
- package/dist/postgresql/entity/member-liked.entity.js +50 -0
- package/dist/postgresql/entity/member-liked.entity.js.map +1 -0
- package/dist/postgresql/entity/member-mission.entity.d.ts +9 -0
- package/dist/postgresql/entity/member-mission.entity.js +48 -0
- package/dist/postgresql/entity/member-mission.entity.js.map +1 -0
- package/dist/postgresql/entity/member-reminder.entity.d.ts +11 -0
- package/dist/postgresql/entity/member-reminder.entity.js +65 -0
- package/dist/postgresql/entity/member-reminder.entity.js.map +1 -0
- package/dist/postgresql/entity/member-verification.entity.d.ts +8 -0
- package/dist/postgresql/entity/member-verification.entity.js +42 -0
- package/dist/postgresql/entity/member-verification.entity.js.map +1 -0
- package/dist/postgresql/entity/member.entity.d.ts +44 -0
- package/dist/postgresql/entity/member.entity.js +195 -0
- package/dist/postgresql/entity/member.entity.js.map +1 -0
- package/dist/postgresql/entity/message.entity.d.ts +13 -0
- package/dist/postgresql/entity/message.entity.js +73 -0
- package/dist/postgresql/entity/message.entity.js.map +1 -0
- package/dist/postgresql/entity/mission.entity.d.ts +12 -0
- package/dist/postgresql/entity/mission.entity.js +60 -0
- package/dist/postgresql/entity/mission.entity.js.map +1 -0
- package/dist/postgresql/entity/notification.entity.d.ts +8 -0
- package/dist/postgresql/entity/notification.entity.js +42 -0
- package/dist/postgresql/entity/notification.entity.js.map +1 -0
- package/dist/postgresql/entity/payment.entity.d.ts +14 -0
- package/dist/postgresql/entity/payment.entity.js +96 -0
- package/dist/postgresql/entity/payment.entity.js.map +1 -0
- package/dist/postgresql/entity/product-purchase.entity.d.ts +12 -0
- package/dist/postgresql/entity/product-purchase.entity.js +54 -0
- package/dist/postgresql/entity/product-purchase.entity.js.map +1 -0
- package/dist/postgresql/entity/purchase.entity.d.ts +15 -0
- package/dist/postgresql/entity/purchase.entity.js +73 -0
- package/dist/postgresql/entity/purchase.entity.js.map +1 -0
- package/dist/postgresql/entity/swipe-countries.entity.d.ts +8 -0
- package/dist/postgresql/entity/swipe-countries.entity.js +36 -0
- package/dist/postgresql/entity/swipe-countries.entity.js.map +1 -0
- package/dist/postgresql/entity/system-logs.entity.d.ts +12 -0
- package/dist/postgresql/entity/system-logs.entity.js +74 -0
- package/dist/postgresql/entity/system-logs.entity.js.map +1 -0
- package/dist/postgresql/entity/system-settings.entity.d.ts +8 -0
- package/dist/postgresql/entity/system-settings.entity.js +38 -0
- package/dist/postgresql/entity/system-settings.entity.js.map +1 -0
- package/dist/postgresql/entity/wallet-detail.entity.d.ts +10 -0
- package/dist/postgresql/entity/wallet-detail.entity.js +50 -0
- package/dist/postgresql/entity/wallet-detail.entity.js.map +1 -0
- package/dist/postgresql/entity/wallet.entity.d.ts +10 -0
- package/dist/postgresql/entity/wallet.entity.js +52 -0
- package/dist/postgresql/entity/wallet.entity.js.map +1 -0
- package/dist/postgresql/index.d.ts +28 -0
- package/dist/postgresql/index.js +63 -0
- package/dist/postgresql/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +27 -0
|
@@ -0,0 +1,163 @@
|
|
|
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.AgencyMembersSchema = exports.AgencyMembers = exports.MemberSchema = exports.Member = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const index_1 = require("../../models/enum/index");
|
|
15
|
+
let Member = class Member {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ required: true, default: 'ios_gsm' }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Member.prototype, "otp", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Member.prototype, "otp_key", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Member.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Member.prototype, "sur_name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Member.prototype, "nickname", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Member.prototype, "password", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Member.prototype, "gender", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], Member.prototype, "birth_date", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], Member.prototype, "lang_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)({ default: 0 }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], Member.prototype, "level", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Member.prototype, "signature", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, mongoose_1.Prop)({ index: true }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Member.prototype, "gsm", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, mongoose_1.Prop)({ type: String, unique: true, sparse: true }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], Member.prototype, "email", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, mongoose_1.Prop)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], Member.prototype, "address", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, mongoose_1.Prop)({ default: index_1.EnumMemberType.user }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], Member.prototype, "member_type", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, mongoose_1.Prop)({ default: 0 }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], Member.prototype, "like", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, mongoose_1.Prop)({ default: index_1.EnumVerify.notVerified }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], Member.prototype, "verify", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, mongoose_1.Prop)({ default: 'TR' }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], Member.prototype, "country", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, mongoose_1.Prop)({ default: index_1.EnumStatus.A }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], Member.prototype, "status", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, mongoose_1.Prop)(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], Member.prototype, "jwt_token", void 0);
|
|
97
|
+
Member = __decorate([
|
|
98
|
+
(0, mongoose_1.Schema)({
|
|
99
|
+
timestamps: true,
|
|
100
|
+
collection: 'Member'
|
|
101
|
+
})
|
|
102
|
+
], Member);
|
|
103
|
+
exports.Member = Member;
|
|
104
|
+
exports.MemberSchema = mongoose_1.SchemaFactory.createForClass(Member);
|
|
105
|
+
exports.MemberSchema.index({ email: 1 }, {
|
|
106
|
+
unique: true,
|
|
107
|
+
sparse: true
|
|
108
|
+
});
|
|
109
|
+
let AgencyMembers = class AgencyMembers {
|
|
110
|
+
};
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, mongoose_1.Prop)(),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], AgencyMembers.prototype, "name", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, mongoose_1.Prop)(),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], AgencyMembers.prototype, "sur_name", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], AgencyMembers.prototype, "nickname", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], AgencyMembers.prototype, "password", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], AgencyMembers.prototype, "gender", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
133
|
+
__metadata("design:type", Date)
|
|
134
|
+
], AgencyMembers.prototype, "birth_date", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, mongoose_1.Prop)({ index: true }),
|
|
137
|
+
__metadata("design:type", String)
|
|
138
|
+
], AgencyMembers.prototype, "gsm", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, mongoose_1.Prop)({ default: index_1.EnumStatus.A }),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], AgencyMembers.prototype, "status", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, mongoose_1.Prop)({ default: '' }),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], AgencyMembers.prototype, "api_token", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, mongoose_1.Prop)({ default: '' }),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], AgencyMembers.prototype, "agency_id", void 0);
|
|
151
|
+
AgencyMembers = __decorate([
|
|
152
|
+
(0, mongoose_1.Schema)({
|
|
153
|
+
timestamps: true,
|
|
154
|
+
collection: 'AgencyMembers'
|
|
155
|
+
})
|
|
156
|
+
], AgencyMembers);
|
|
157
|
+
exports.AgencyMembers = AgencyMembers;
|
|
158
|
+
exports.AgencyMembersSchema = mongoose_1.SchemaFactory.createForClass(AgencyMembers);
|
|
159
|
+
exports.AgencyMembersSchema.index({ email: 1 }, {
|
|
160
|
+
unique: true,
|
|
161
|
+
sparse: true
|
|
162
|
+
});
|
|
163
|
+
//# sourceMappingURL=member.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member.entity.js","sourceRoot":"","sources":["../../../src/mongo/schema/member.entity.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Document } from 'mongoose';
|
|
26
|
+
import { EnumDeliveryStatus, EnumNotificationTimeType, EnumRoutine, EnumStatus } from '../../models/enum/index';
|
|
27
|
+
import { Contents } from './contents.entity';
|
|
28
|
+
import { FilterDto } from './filter.dto';
|
|
29
|
+
export type NotificationDocument = Notification & Document;
|
|
30
|
+
export declare class Notification {
|
|
31
|
+
type: EnumNotificationTimeType;
|
|
32
|
+
filter: FilterDto[];
|
|
33
|
+
routine: EnumRoutine;
|
|
34
|
+
status: EnumStatus;
|
|
35
|
+
delivery_status: EnumDeliveryStatus;
|
|
36
|
+
successCount?: number;
|
|
37
|
+
failedCount?: number;
|
|
38
|
+
contents: Contents[];
|
|
39
|
+
hour: number;
|
|
40
|
+
minute: number;
|
|
41
|
+
createdAt?: Date;
|
|
42
|
+
updatedAt?: Date;
|
|
43
|
+
}
|
|
44
|
+
export declare const NotificationSchema: import("mongoose").Schema<Notification, import("mongoose").Model<Notification, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Notification>;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.NotificationSchema = exports.Notification = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const index_1 = require("../../models/enum/index");
|
|
15
|
+
let Notification = class Notification {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Notification.prototype, "type", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)(),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], Notification.prototype, "filter", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Notification.prototype, "routine", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Notification.prototype, "status", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Notification.prototype, "delivery_status", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], Notification.prototype, "successCount", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], Notification.prototype, "failedCount", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], Notification.prototype, "contents", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], Notification.prototype, "hour", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], Notification.prototype, "minute", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)(),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], Notification.prototype, "createdAt", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, mongoose_1.Prop)(),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], Notification.prototype, "updatedAt", void 0);
|
|
65
|
+
Notification = __decorate([
|
|
66
|
+
(0, mongoose_1.Schema)({
|
|
67
|
+
timestamps: true,
|
|
68
|
+
collection: 'Notification'
|
|
69
|
+
})
|
|
70
|
+
], Notification);
|
|
71
|
+
exports.Notification = Notification;
|
|
72
|
+
exports.NotificationSchema = mongoose_1.SchemaFactory.createForClass(Notification);
|
|
73
|
+
//# sourceMappingURL=notification.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.entity.js","sourceRoot":"","sources":["../../../src/mongo/schema/notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,mDAAgH;AASzG,IAAM,YAAY,GAAlB,MAAM,YAAY;CAqCxB,CAAA;AAnCG;IAAC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACM;AAE/B;IAAC,IAAA,eAAI,GAAE;;4CACa;AAEpB;IAAC,IAAA,eAAI,GAAE;;6CACc;AAErB;IAAC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACN;AAEnB;IAAC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACW;AAEpC;IAAC,IAAA,eAAI,GAAE;;kDACe;AAEtB;IAAC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACJ;AAErB;IAAC,IAAA,eAAI,GAAE;;8CACc;AAErB;IAAC,IAAA,eAAI,GAAE;;0CACM;AAEb;IAAC,IAAA,eAAI,GAAE;;4CACQ;AAEf;IAAC,IAAA,eAAI,GAAE;8BACK,IAAI;+CAAC;AAEjB;IAAC,IAAA,eAAI,GAAE;8BACK,IAAI;+CAAC;AApCR,YAAY;IAJxB,IAAA,iBAAM,EAAC;QACJ,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,cAAc;KAC7B,CAAC;GACW,YAAY,CAqCxB;AArCY,oCAAY;AAuCZ,QAAA,kBAAkB,GAAG,wBAAa,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Document, Types } from 'mongoose';
|
|
26
|
+
export type PostCommentsDocument = PostComments & Document;
|
|
27
|
+
export declare class PostComments {
|
|
28
|
+
post_id: Types.ObjectId;
|
|
29
|
+
member_id: number;
|
|
30
|
+
content: string;
|
|
31
|
+
status: string;
|
|
32
|
+
like: number;
|
|
33
|
+
}
|
|
34
|
+
export declare const PostCommentSchema: import("mongoose").Schema<PostComments, import("mongoose").Model<PostComments, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PostComments>;
|
|
@@ -0,0 +1,43 @@
|
|
|
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.PostCommentSchema = exports.PostComments = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
const index_1 = require("../../models/enum/index");
|
|
16
|
+
let PostComments = class PostComments {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Types.ObjectId, ref: 'Posts', required: true }),
|
|
20
|
+
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
21
|
+
], PostComments.prototype, "post_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], PostComments.prototype, "member_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PostComments.prototype, "content", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)({ default: index_1.EnumStatus.A }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], PostComments.prototype, "status", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)({ default: 0 }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], PostComments.prototype, "like", void 0);
|
|
38
|
+
PostComments = __decorate([
|
|
39
|
+
(0, mongoose_1.Schema)({ timestamps: true, collection: 'PostComments' })
|
|
40
|
+
], PostComments);
|
|
41
|
+
exports.PostComments = PostComments;
|
|
42
|
+
exports.PostCommentSchema = mongoose_1.SchemaFactory.createForClass(PostComments);
|
|
43
|
+
//# sourceMappingURL=post-comments.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-comments.entity.js","sourceRoot":"","sources":["../../../src/mongo/schema/post-comments.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAA2C;AAC3C,mDAAqD;AAK9C,IAAM,YAAY,GAAlB,MAAM,YAAY;CAexB,CAAA;AAdC;IAAC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,gBAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpD,gBAAK,CAAC,QAAQ;6CAAC;AAExB;IAAC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACrB;AAElB;IAAC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACvB;AAEhB;IAAC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,kBAAU,CAAC,CAAC,EAAE,CAAC;;4CACjB;AAEf;IAAC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0CACR;AAdF,YAAY;IADxB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;GAC5C,YAAY,CAexB;AAfY,oCAAY;AAgBZ,QAAA,iBAAiB,GAAG,wBAAa,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Document, Types } from 'mongoose';
|
|
26
|
+
export type PostLikesDocument = PostLikes & Document;
|
|
27
|
+
export declare class PostLikes {
|
|
28
|
+
post_id: Types.ObjectId;
|
|
29
|
+
member_id: number;
|
|
30
|
+
status: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const PostLikeSchema: import("mongoose").Schema<PostLikes, import("mongoose").Model<PostLikes, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PostLikes>;
|
|
@@ -0,0 +1,35 @@
|
|
|
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.PostLikeSchema = exports.PostLikes = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
const index_1 = require("../../models/enum/index");
|
|
16
|
+
let PostLikes = class PostLikes {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Types.ObjectId, ref: 'Posts', required: true }),
|
|
20
|
+
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
21
|
+
], PostLikes.prototype, "post_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], PostLikes.prototype, "member_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ default: index_1.EnumStatus.A }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PostLikes.prototype, "status", void 0);
|
|
30
|
+
PostLikes = __decorate([
|
|
31
|
+
(0, mongoose_1.Schema)({ timestamps: true, collection: 'PostLikes' })
|
|
32
|
+
], PostLikes);
|
|
33
|
+
exports.PostLikes = PostLikes;
|
|
34
|
+
exports.PostLikeSchema = mongoose_1.SchemaFactory.createForClass(PostLikes);
|
|
35
|
+
//# sourceMappingURL=post-likes.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-likes.entity.js","sourceRoot":"","sources":["../../../src/mongo/schema/post-likes.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAA2C;AAC3C,mDAAqD;AAK9C,IAAM,SAAS,GAAf,MAAM,SAAS;CASrB,CAAA;AARC;IAAC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,gBAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpD,gBAAK,CAAC,QAAQ;0CAAC;AAExB;IAAC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACrB;AAElB;IAAC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,kBAAU,CAAC,CAAC,EAAE,CAAC;;yCACjB;AARJ,SAAS;IADrB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;GACzC,SAAS,CASrB;AATY,8BAAS;AAUT,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Document } from 'mongoose';
|
|
26
|
+
import { EnumPostType } from '../../models/enum/index';
|
|
27
|
+
export type PostsDocument = Posts & Document;
|
|
28
|
+
export declare class Posts {
|
|
29
|
+
source: string;
|
|
30
|
+
member_id: number;
|
|
31
|
+
status: string;
|
|
32
|
+
post_type: EnumPostType;
|
|
33
|
+
description: string;
|
|
34
|
+
like_quantity: number;
|
|
35
|
+
comment_quantity: number;
|
|
36
|
+
location: string;
|
|
37
|
+
comments_enabled: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const PostsSchema: import("mongoose").Schema<Posts, import("mongoose").Model<Posts, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Posts>;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.PostsSchema = exports.Posts = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const index_1 = require("../../models/enum/index");
|
|
15
|
+
let Posts = class Posts {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Posts.prototype, "source", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], Posts.prototype, "member_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({ default: index_1.EnumStatus.A }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Posts.prototype, "status", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)({ default: index_1.EnumPostType.PHOTO }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Posts.prototype, "post_type", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)({ type: String }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Posts.prototype, "description", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)({ default: 0 }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], Posts.prototype, "like_quantity", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)({ default: 0 }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], Posts.prototype, "comment_quantity", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)({ type: String }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Posts.prototype, "location", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
51
|
+
__metadata("design:type", Boolean)
|
|
52
|
+
], Posts.prototype, "comments_enabled", void 0);
|
|
53
|
+
Posts = __decorate([
|
|
54
|
+
(0, mongoose_1.Schema)({
|
|
55
|
+
timestamps: true,
|
|
56
|
+
collection: 'Posts'
|
|
57
|
+
})
|
|
58
|
+
], Posts);
|
|
59
|
+
exports.Posts = Posts;
|
|
60
|
+
exports.PostsSchema = mongoose_1.SchemaFactory.createForClass(Posts);
|
|
61
|
+
exports.PostsSchema.index({ email: 1 }, {
|
|
62
|
+
unique: true,
|
|
63
|
+
sparse: true
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=posts.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"posts.entity.js","sourceRoot":"","sources":["../../../src/mongo/schema/posts.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,mDAAoE;AAQ7D,IAAM,KAAK,GAAX,MAAM,KAAK;CA4BjB,CAAA;AA1BC;IAAC,IAAA,eAAI,GAAE;;qCACQ;AAEf;IAAC,IAAA,eAAI,GAAE;;wCACW;AAElB;IAAC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,kBAAU,CAAC,CAAC,EAAE,CAAC;;qCACjB;AAEf;IAAC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,oBAAY,CAAC,KAAK,EAAE,CAAC;;wCACd;AAExB;IAAC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACH;AAEpB;IAAC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4CACC;AAEtB;IAAC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+CACI;AAEzB;IAAC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uCACN;AAEjB;IAAC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACd;AA3Bf,KAAK;IAJjB,IAAA,iBAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,OAAO;KACpB,CAAC;GACW,KAAK,CA4BjB;AA5BY,sBAAK;AA6BL,QAAA,WAAW,GAAG,wBAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAE/D,mBAAW,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC9B,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Document } from 'mongoose';
|
|
26
|
+
import { EnumStatus } from '../../models/enum/index';
|
|
27
|
+
export type RightsDocument = Rights & Document;
|
|
28
|
+
export declare class Rights {
|
|
29
|
+
code: string[];
|
|
30
|
+
name: string;
|
|
31
|
+
status: EnumStatus;
|
|
32
|
+
}
|
|
33
|
+
export declare const RightsSchema: import("mongoose").Schema<Rights, import("mongoose").Model<Rights, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Rights>;
|
|
@@ -0,0 +1,37 @@
|
|
|
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.RightsSchema = exports.Rights = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const index_1 = require("../../models/enum/index");
|
|
15
|
+
let Rights = class Rights {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ type: [String], required: true }),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], Rights.prototype, "code", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Rights.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({ default: index_1.EnumStatus.A }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Rights.prototype, "status", void 0);
|
|
29
|
+
Rights = __decorate([
|
|
30
|
+
(0, mongoose_1.Schema)({
|
|
31
|
+
timestamps: true,
|
|
32
|
+
collection: 'Rights',
|
|
33
|
+
})
|
|
34
|
+
], Rights);
|
|
35
|
+
exports.Rights = Rights;
|
|
36
|
+
exports.RightsSchema = mongoose_1.SchemaFactory.createForClass(Rights);
|
|
37
|
+
//# sourceMappingURL=rights.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rights.entity.js","sourceRoot":"","sources":["../../../src/mongo/schema/rights.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,mDAAqD;AAQ9C,IAAM,MAAM,GAAZ,MAAM,MAAM;CAUlB,CAAA;AARG;IAAC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC1B;AAEf;IAAC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACZ;AAEb;IAAC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,kBAAU,CAAC,CAAC,EAAE,CAAC;;sCACb;AATV,MAAM;IAJlB,IAAA,iBAAM,EAAC;QACJ,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,QAAQ;KACvB,CAAC;GACW,MAAM,CAUlB;AAVY,wBAAM;AAYN,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|