egame-shared-lib 1.0.15 → 1.0.18
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/constants/message-patterns.d.ts +45 -0
- package/dist/constants/message-patterns.js +46 -1
- package/dist/constants/message-patterns.js.map +1 -1
- package/dist/dto/community.dto.d.ts +94 -0
- package/dist/dto/community.dto.js +399 -0
- package/dist/dto/community.dto.js.map +1 -0
- package/dist/dto/index.d.ts +1 -0
- package/dist/dto/index.js +1 -0
- package/dist/dto/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ export declare const USER_SERVICE = "USER_SERVICE";
|
|
|
2
2
|
export declare const GAME_SERVICE = "GAME_SERVICE";
|
|
3
3
|
export declare const PAYMENT_SERVICE = "PAYMENT_SERVICE";
|
|
4
4
|
export declare const AUTH_SERVICE = "AUTH_SERVICE";
|
|
5
|
+
export declare const COMMUNITY_SERVICE = "COMMUNITY_SERVICE";
|
|
5
6
|
export declare const AUTH_PATTERNS: {
|
|
6
7
|
USER_SIGNUP: string;
|
|
7
8
|
USER_LOGIN: string;
|
|
@@ -155,4 +156,48 @@ export declare const QUEUES: {
|
|
|
155
156
|
GAME_QUEUE: string;
|
|
156
157
|
PAYMENT_QUEUE: string;
|
|
157
158
|
AUTH_QUEUE: string;
|
|
159
|
+
COMMUNITY_QUEUE: string;
|
|
160
|
+
};
|
|
161
|
+
export declare const COMMUNITY_PATTERNS: {
|
|
162
|
+
CREATE_COMMUNITY: string;
|
|
163
|
+
GET_COMMUNITY: string;
|
|
164
|
+
GET_ALL_COMMUNITIES: string;
|
|
165
|
+
GET_MY_COMMUNITIES: string;
|
|
166
|
+
UPDATE_COMMUNITY: string;
|
|
167
|
+
DELETE_COMMUNITY: string;
|
|
168
|
+
SEARCH_COMMUNITIES: string;
|
|
169
|
+
JOIN_COMMUNITY: string;
|
|
170
|
+
LEAVE_COMMUNITY: string;
|
|
171
|
+
GET_MEMBERS: string;
|
|
172
|
+
KICK_MEMBER: string;
|
|
173
|
+
PROMOTE_MEMBER: string;
|
|
174
|
+
DEMOTE_MEMBER: string;
|
|
175
|
+
SEND_INVITATION: string;
|
|
176
|
+
ACCEPT_INVITATION: string;
|
|
177
|
+
DECLINE_INVITATION: string;
|
|
178
|
+
CANCEL_INVITATION: string;
|
|
179
|
+
GET_MY_INVITATIONS: string;
|
|
180
|
+
GET_COMMUNITY_INVITATIONS: string;
|
|
181
|
+
GET_PENDING_INVITATION_COUNT: string;
|
|
182
|
+
SEND_MESSAGE: string;
|
|
183
|
+
GET_MESSAGES: string;
|
|
184
|
+
DELETE_MESSAGE: string;
|
|
185
|
+
EDIT_MESSAGE: string;
|
|
186
|
+
SEND_DIRECT_MESSAGE: string;
|
|
187
|
+
GET_DIRECT_MESSAGES: string;
|
|
188
|
+
GET_CONVERSATIONS: string;
|
|
189
|
+
DELETE_DIRECT_MESSAGE: string;
|
|
190
|
+
SEARCH_USERS: string;
|
|
191
|
+
SET_ONLINE_STATUS: string;
|
|
192
|
+
GET_ONLINE_STATUS: string;
|
|
193
|
+
GET_ONLINE_MEMBERS: string;
|
|
194
|
+
SET_TYPING: string;
|
|
195
|
+
BLOCK_USER: string;
|
|
196
|
+
UNBLOCK_USER: string;
|
|
197
|
+
GET_BLOCKED_USERS: string;
|
|
198
|
+
REPORT_USER: string;
|
|
199
|
+
ADMIN_GET_ALL_COMMUNITIES: string;
|
|
200
|
+
ADMIN_GET_COMMUNITY_STATS: string;
|
|
201
|
+
ADMIN_DELETE_COMMUNITY: string;
|
|
202
|
+
ADMIN_GET_REPORTS: string;
|
|
158
203
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QUEUES = exports.BATTLE_TYPE_PATTERNS = exports.BATTLE_PATTERNS = exports.ADMIN_PATTERNS = exports.PAYMENT_PATTERNS = exports.GAMING_DEVICE_PATTERNS = exports.GAME_CATALOG_PATTERNS = exports.GAME_PATTERNS = exports.USER_PATTERNS = exports.AUTH_PATTERNS = exports.AUTH_SERVICE = exports.PAYMENT_SERVICE = exports.GAME_SERVICE = exports.USER_SERVICE = void 0;
|
|
3
|
+
exports.COMMUNITY_PATTERNS = exports.QUEUES = exports.BATTLE_TYPE_PATTERNS = exports.BATTLE_PATTERNS = exports.ADMIN_PATTERNS = exports.PAYMENT_PATTERNS = exports.GAMING_DEVICE_PATTERNS = exports.GAME_CATALOG_PATTERNS = exports.GAME_PATTERNS = exports.USER_PATTERNS = exports.AUTH_PATTERNS = exports.COMMUNITY_SERVICE = exports.AUTH_SERVICE = exports.PAYMENT_SERVICE = exports.GAME_SERVICE = exports.USER_SERVICE = void 0;
|
|
4
4
|
exports.USER_SERVICE = 'USER_SERVICE';
|
|
5
5
|
exports.GAME_SERVICE = 'GAME_SERVICE';
|
|
6
6
|
exports.PAYMENT_SERVICE = 'PAYMENT_SERVICE';
|
|
7
7
|
exports.AUTH_SERVICE = 'AUTH_SERVICE';
|
|
8
|
+
exports.COMMUNITY_SERVICE = 'COMMUNITY_SERVICE';
|
|
8
9
|
exports.AUTH_PATTERNS = {
|
|
9
10
|
USER_SIGNUP: 'auth.user.signup',
|
|
10
11
|
USER_LOGIN: 'auth.user.login',
|
|
@@ -158,5 +159,49 @@ exports.QUEUES = {
|
|
|
158
159
|
GAME_QUEUE: 'game_queue',
|
|
159
160
|
PAYMENT_QUEUE: 'payment_queue',
|
|
160
161
|
AUTH_QUEUE: 'auth_queue',
|
|
162
|
+
COMMUNITY_QUEUE: 'community_queue',
|
|
163
|
+
};
|
|
164
|
+
exports.COMMUNITY_PATTERNS = {
|
|
165
|
+
CREATE_COMMUNITY: 'community.create',
|
|
166
|
+
GET_COMMUNITY: 'community.get',
|
|
167
|
+
GET_ALL_COMMUNITIES: 'community.list',
|
|
168
|
+
GET_MY_COMMUNITIES: 'community.my_list',
|
|
169
|
+
UPDATE_COMMUNITY: 'community.update',
|
|
170
|
+
DELETE_COMMUNITY: 'community.delete',
|
|
171
|
+
SEARCH_COMMUNITIES: 'community.search',
|
|
172
|
+
JOIN_COMMUNITY: 'community.join',
|
|
173
|
+
LEAVE_COMMUNITY: 'community.leave',
|
|
174
|
+
GET_MEMBERS: 'community.members',
|
|
175
|
+
KICK_MEMBER: 'community.kick_member',
|
|
176
|
+
PROMOTE_MEMBER: 'community.promote_member',
|
|
177
|
+
DEMOTE_MEMBER: 'community.demote_member',
|
|
178
|
+
SEND_INVITATION: 'community.invitation.send',
|
|
179
|
+
ACCEPT_INVITATION: 'community.invitation.accept',
|
|
180
|
+
DECLINE_INVITATION: 'community.invitation.decline',
|
|
181
|
+
CANCEL_INVITATION: 'community.invitation.cancel',
|
|
182
|
+
GET_MY_INVITATIONS: 'community.invitation.my_list',
|
|
183
|
+
GET_COMMUNITY_INVITATIONS: 'community.invitation.community_list',
|
|
184
|
+
GET_PENDING_INVITATION_COUNT: 'community.invitation.pending_count',
|
|
185
|
+
SEND_MESSAGE: 'community.message.send',
|
|
186
|
+
GET_MESSAGES: 'community.message.list',
|
|
187
|
+
DELETE_MESSAGE: 'community.message.delete',
|
|
188
|
+
EDIT_MESSAGE: 'community.message.edit',
|
|
189
|
+
SEND_DIRECT_MESSAGE: 'community.dm.send',
|
|
190
|
+
GET_DIRECT_MESSAGES: 'community.dm.list',
|
|
191
|
+
GET_CONVERSATIONS: 'community.dm.conversations',
|
|
192
|
+
DELETE_DIRECT_MESSAGE: 'community.dm.delete',
|
|
193
|
+
SEARCH_USERS: 'community.users.search',
|
|
194
|
+
SET_ONLINE_STATUS: 'community.status.set',
|
|
195
|
+
GET_ONLINE_STATUS: 'community.status.get',
|
|
196
|
+
GET_ONLINE_MEMBERS: 'community.status.online_members',
|
|
197
|
+
SET_TYPING: 'community.typing.set',
|
|
198
|
+
BLOCK_USER: 'community.block.user',
|
|
199
|
+
UNBLOCK_USER: 'community.unblock.user',
|
|
200
|
+
GET_BLOCKED_USERS: 'community.block.list',
|
|
201
|
+
REPORT_USER: 'community.report.user',
|
|
202
|
+
ADMIN_GET_ALL_COMMUNITIES: 'admin.communities.list',
|
|
203
|
+
ADMIN_GET_COMMUNITY_STATS: 'admin.communities.stats',
|
|
204
|
+
ADMIN_DELETE_COMMUNITY: 'admin.communities.delete',
|
|
205
|
+
ADMIN_GET_REPORTS: 'admin.communities.reports',
|
|
161
206
|
};
|
|
162
207
|
//# sourceMappingURL=message-patterns.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-patterns.js","sourceRoot":"","sources":["../../src/constants/message-patterns.ts"],"names":[],"mappings":";;;AACa,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,YAAY,GAAG,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"message-patterns.js","sourceRoot":"","sources":["../../src/constants/message-patterns.ts"],"names":[],"mappings":";;;AACa,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAGxC,QAAA,aAAa,GAAG;IAC3B,WAAW,EAAE,kBAAkB;IAC/B,UAAU,EAAE,iBAAiB;IAC7B,YAAY,EAAE,mBAAmB;IACjC,WAAW,EAAE,kBAAkB;IAC/B,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,iBAAiB;IAC7B,aAAa,EAAE,oBAAoB;IACnC,YAAY,EAAE,mBAAmB;IACjC,MAAM,EAAE,aAAa;IACrB,eAAe,EAAE,sBAAsB;IACvC,eAAe,EAAE,sBAAsB;IACvC,kBAAkB,EAAE,yBAAyB;IAC7C,cAAc,EAAE,qBAAqB;CACtC,CAAC;A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|
+
PUBLIC = "public",
|
|
3
|
+
PRIVATE = "private"
|
|
4
|
+
}
|
|
5
|
+
export declare class CreateCommunityDto {
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
type?: CommunityType;
|
|
9
|
+
avatar?: string;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare class UpdateCommunityDto {
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
type?: CommunityType;
|
|
16
|
+
avatar?: string;
|
|
17
|
+
tags?: string[];
|
|
18
|
+
}
|
|
19
|
+
export declare class SearchCommunityDto {
|
|
20
|
+
query?: string;
|
|
21
|
+
page?: number;
|
|
22
|
+
limit?: number;
|
|
23
|
+
type?: CommunityType;
|
|
24
|
+
}
|
|
25
|
+
export declare class SendMessageDto {
|
|
26
|
+
communityId: string;
|
|
27
|
+
content: string;
|
|
28
|
+
replyTo?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare class EditMessageDto {
|
|
31
|
+
messageId: string;
|
|
32
|
+
content: string;
|
|
33
|
+
}
|
|
34
|
+
export declare class GetMessagesDto {
|
|
35
|
+
communityId: string;
|
|
36
|
+
page?: number;
|
|
37
|
+
limit?: number;
|
|
38
|
+
before?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare class SendDirectMessageDto {
|
|
41
|
+
recipientId: string;
|
|
42
|
+
content: string;
|
|
43
|
+
}
|
|
44
|
+
export declare class GetDirectMessagesDto {
|
|
45
|
+
otherUserId: string;
|
|
46
|
+
page?: number;
|
|
47
|
+
limit?: number;
|
|
48
|
+
before?: string;
|
|
49
|
+
}
|
|
50
|
+
export declare class GetConversationsDto {
|
|
51
|
+
page?: number;
|
|
52
|
+
limit?: number;
|
|
53
|
+
}
|
|
54
|
+
export declare class SearchUsersDto {
|
|
55
|
+
query: string;
|
|
56
|
+
page?: number;
|
|
57
|
+
limit?: number;
|
|
58
|
+
}
|
|
59
|
+
export declare class JoinCommunityDto {
|
|
60
|
+
communityId: string;
|
|
61
|
+
}
|
|
62
|
+
export declare class KickMemberDto {
|
|
63
|
+
communityId: string;
|
|
64
|
+
userId: string;
|
|
65
|
+
reason?: string;
|
|
66
|
+
}
|
|
67
|
+
export declare class PromoteMemberDto {
|
|
68
|
+
communityId: string;
|
|
69
|
+
userId: string;
|
|
70
|
+
}
|
|
71
|
+
export declare class SetTypingDto {
|
|
72
|
+
channelId: string;
|
|
73
|
+
isTyping: boolean;
|
|
74
|
+
}
|
|
75
|
+
export declare class SetOnlineStatusDto {
|
|
76
|
+
status: 'online' | 'away' | 'offline';
|
|
77
|
+
}
|
|
78
|
+
export declare class BlockUserDto {
|
|
79
|
+
userId: string;
|
|
80
|
+
}
|
|
81
|
+
export declare class ReportUserDto {
|
|
82
|
+
userId: string;
|
|
83
|
+
reason: string;
|
|
84
|
+
messageId?: string;
|
|
85
|
+
communityId?: string;
|
|
86
|
+
}
|
|
87
|
+
export declare class SendInvitationDto {
|
|
88
|
+
inviteeId: string;
|
|
89
|
+
inviteeUsername: string;
|
|
90
|
+
message?: string;
|
|
91
|
+
}
|
|
92
|
+
export declare class RespondInvitationDto {
|
|
93
|
+
invitationId: string;
|
|
94
|
+
}
|
|
@@ -0,0 +1,399 @@
|
|
|
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.RespondInvitationDto = exports.SendInvitationDto = exports.ReportUserDto = exports.BlockUserDto = exports.SetOnlineStatusDto = exports.SetTypingDto = exports.PromoteMemberDto = exports.KickMemberDto = exports.JoinCommunityDto = exports.SearchUsersDto = exports.GetConversationsDto = exports.GetDirectMessagesDto = exports.SendDirectMessageDto = exports.GetMessagesDto = exports.EditMessageDto = exports.SendMessageDto = exports.SearchCommunityDto = exports.UpdateCommunityDto = exports.CreateCommunityDto = exports.CommunityType = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
var CommunityType;
|
|
16
|
+
(function (CommunityType) {
|
|
17
|
+
CommunityType["PUBLIC"] = "public";
|
|
18
|
+
CommunityType["PRIVATE"] = "private";
|
|
19
|
+
})(CommunityType || (exports.CommunityType = CommunityType = {}));
|
|
20
|
+
class CreateCommunityDto {
|
|
21
|
+
}
|
|
22
|
+
exports.CreateCommunityDto = CreateCommunityDto;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ description: 'Community name', example: 'Pro Gamers Hub' }),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.MinLength)(3),
|
|
27
|
+
(0, class_validator_1.MaxLength)(50),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateCommunityDto.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Community description', example: 'A community for pro gamers' }),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.MaxLength)(500),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateCommunityDto.prototype, "description", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: CommunityType, default: CommunityType.PUBLIC }),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsEnum)(CommunityType),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateCommunityDto.prototype, "type", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Community avatar URL' }),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateCommunityDto.prototype, "avatar", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Community tags', example: ['gaming', 'fps'] }),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsArray)(),
|
|
53
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], CreateCommunityDto.prototype, "tags", void 0);
|
|
56
|
+
class UpdateCommunityDto {
|
|
57
|
+
}
|
|
58
|
+
exports.UpdateCommunityDto = UpdateCommunityDto;
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Community name' }),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
(0, class_validator_1.MinLength)(3),
|
|
64
|
+
(0, class_validator_1.MaxLength)(50),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UpdateCommunityDto.prototype, "name", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Community description' }),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
(0, class_validator_1.MaxLength)(500),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], UpdateCommunityDto.prototype, "description", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: CommunityType }),
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.IsEnum)(CommunityType),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], UpdateCommunityDto.prototype, "type", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Community avatar URL' }),
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsString)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], UpdateCommunityDto.prototype, "avatar", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Community tags' }),
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.IsArray)(),
|
|
90
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
91
|
+
__metadata("design:type", Array)
|
|
92
|
+
], UpdateCommunityDto.prototype, "tags", void 0);
|
|
93
|
+
class SearchCommunityDto {
|
|
94
|
+
}
|
|
95
|
+
exports.SearchCommunityDto = SearchCommunityDto;
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Search query' }),
|
|
98
|
+
(0, class_validator_1.IsOptional)(),
|
|
99
|
+
(0, class_validator_1.IsString)(),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], SearchCommunityDto.prototype, "query", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Page number', default: 1 }),
|
|
104
|
+
(0, class_validator_1.IsOptional)(),
|
|
105
|
+
(0, class_validator_1.IsNumber)(),
|
|
106
|
+
(0, class_validator_1.Min)(1),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], SearchCommunityDto.prototype, "page", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Items per page', default: 20 }),
|
|
111
|
+
(0, class_validator_1.IsOptional)(),
|
|
112
|
+
(0, class_validator_1.IsNumber)(),
|
|
113
|
+
(0, class_validator_1.Min)(1),
|
|
114
|
+
(0, class_validator_1.Max)(100),
|
|
115
|
+
__metadata("design:type", Number)
|
|
116
|
+
], SearchCommunityDto.prototype, "limit", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: CommunityType }),
|
|
119
|
+
(0, class_validator_1.IsOptional)(),
|
|
120
|
+
(0, class_validator_1.IsEnum)(CommunityType),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], SearchCommunityDto.prototype, "type", void 0);
|
|
123
|
+
class SendMessageDto {
|
|
124
|
+
}
|
|
125
|
+
exports.SendMessageDto = SendMessageDto;
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, swagger_1.ApiProperty)({ description: 'Community ID' }),
|
|
128
|
+
(0, class_validator_1.IsString)(),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], SendMessageDto.prototype, "communityId", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, swagger_1.ApiProperty)({ description: 'Message content', example: 'Hello everyone!' }),
|
|
133
|
+
(0, class_validator_1.IsString)(),
|
|
134
|
+
(0, class_validator_1.MinLength)(1),
|
|
135
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], SendMessageDto.prototype, "content", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Reply to message ID' }),
|
|
140
|
+
(0, class_validator_1.IsOptional)(),
|
|
141
|
+
(0, class_validator_1.IsString)(),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], SendMessageDto.prototype, "replyTo", void 0);
|
|
144
|
+
class EditMessageDto {
|
|
145
|
+
}
|
|
146
|
+
exports.EditMessageDto = EditMessageDto;
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, swagger_1.ApiProperty)({ description: 'Message ID' }),
|
|
149
|
+
(0, class_validator_1.IsString)(),
|
|
150
|
+
__metadata("design:type", String)
|
|
151
|
+
], EditMessageDto.prototype, "messageId", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, swagger_1.ApiProperty)({ description: 'Updated message content' }),
|
|
154
|
+
(0, class_validator_1.IsString)(),
|
|
155
|
+
(0, class_validator_1.MinLength)(1),
|
|
156
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], EditMessageDto.prototype, "content", void 0);
|
|
159
|
+
class GetMessagesDto {
|
|
160
|
+
}
|
|
161
|
+
exports.GetMessagesDto = GetMessagesDto;
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, swagger_1.ApiProperty)({ description: 'Community ID' }),
|
|
164
|
+
(0, class_validator_1.IsString)(),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], GetMessagesDto.prototype, "communityId", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Page number', default: 1 }),
|
|
169
|
+
(0, class_validator_1.IsOptional)(),
|
|
170
|
+
(0, class_validator_1.IsNumber)(),
|
|
171
|
+
(0, class_validator_1.Min)(1),
|
|
172
|
+
__metadata("design:type", Number)
|
|
173
|
+
], GetMessagesDto.prototype, "page", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Items per page', default: 50 }),
|
|
176
|
+
(0, class_validator_1.IsOptional)(),
|
|
177
|
+
(0, class_validator_1.IsNumber)(),
|
|
178
|
+
(0, class_validator_1.Min)(1),
|
|
179
|
+
(0, class_validator_1.Max)(100),
|
|
180
|
+
__metadata("design:type", Number)
|
|
181
|
+
], GetMessagesDto.prototype, "limit", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Load messages before this timestamp' }),
|
|
184
|
+
(0, class_validator_1.IsOptional)(),
|
|
185
|
+
(0, class_validator_1.IsString)(),
|
|
186
|
+
__metadata("design:type", String)
|
|
187
|
+
], GetMessagesDto.prototype, "before", void 0);
|
|
188
|
+
class SendDirectMessageDto {
|
|
189
|
+
}
|
|
190
|
+
exports.SendDirectMessageDto = SendDirectMessageDto;
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, swagger_1.ApiProperty)({ description: 'Recipient user ID' }),
|
|
193
|
+
(0, class_validator_1.IsString)(),
|
|
194
|
+
__metadata("design:type", String)
|
|
195
|
+
], SendDirectMessageDto.prototype, "recipientId", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, swagger_1.ApiProperty)({ description: 'Message content', example: 'Hey, want to play?' }),
|
|
198
|
+
(0, class_validator_1.IsString)(),
|
|
199
|
+
(0, class_validator_1.MinLength)(1),
|
|
200
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
201
|
+
__metadata("design:type", String)
|
|
202
|
+
], SendDirectMessageDto.prototype, "content", void 0);
|
|
203
|
+
class GetDirectMessagesDto {
|
|
204
|
+
}
|
|
205
|
+
exports.GetDirectMessagesDto = GetDirectMessagesDto;
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, swagger_1.ApiProperty)({ description: 'Other user ID in the conversation' }),
|
|
208
|
+
(0, class_validator_1.IsString)(),
|
|
209
|
+
__metadata("design:type", String)
|
|
210
|
+
], GetDirectMessagesDto.prototype, "otherUserId", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Page number', default: 1 }),
|
|
213
|
+
(0, class_validator_1.IsOptional)(),
|
|
214
|
+
(0, class_validator_1.IsNumber)(),
|
|
215
|
+
(0, class_validator_1.Min)(1),
|
|
216
|
+
__metadata("design:type", Number)
|
|
217
|
+
], GetDirectMessagesDto.prototype, "page", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Items per page', default: 50 }),
|
|
220
|
+
(0, class_validator_1.IsOptional)(),
|
|
221
|
+
(0, class_validator_1.IsNumber)(),
|
|
222
|
+
(0, class_validator_1.Min)(1),
|
|
223
|
+
(0, class_validator_1.Max)(100),
|
|
224
|
+
__metadata("design:type", Number)
|
|
225
|
+
], GetDirectMessagesDto.prototype, "limit", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Load messages before this timestamp' }),
|
|
228
|
+
(0, class_validator_1.IsOptional)(),
|
|
229
|
+
(0, class_validator_1.IsString)(),
|
|
230
|
+
__metadata("design:type", String)
|
|
231
|
+
], GetDirectMessagesDto.prototype, "before", void 0);
|
|
232
|
+
class GetConversationsDto {
|
|
233
|
+
}
|
|
234
|
+
exports.GetConversationsDto = GetConversationsDto;
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Page number', default: 1 }),
|
|
237
|
+
(0, class_validator_1.IsOptional)(),
|
|
238
|
+
(0, class_validator_1.IsNumber)(),
|
|
239
|
+
(0, class_validator_1.Min)(1),
|
|
240
|
+
__metadata("design:type", Number)
|
|
241
|
+
], GetConversationsDto.prototype, "page", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Items per page', default: 20 }),
|
|
244
|
+
(0, class_validator_1.IsOptional)(),
|
|
245
|
+
(0, class_validator_1.IsNumber)(),
|
|
246
|
+
(0, class_validator_1.Min)(1),
|
|
247
|
+
(0, class_validator_1.Max)(50),
|
|
248
|
+
__metadata("design:type", Number)
|
|
249
|
+
], GetConversationsDto.prototype, "limit", void 0);
|
|
250
|
+
class SearchUsersDto {
|
|
251
|
+
}
|
|
252
|
+
exports.SearchUsersDto = SearchUsersDto;
|
|
253
|
+
__decorate([
|
|
254
|
+
(0, swagger_1.ApiProperty)({ description: 'Search query (username, email, or nickname)' }),
|
|
255
|
+
(0, class_validator_1.IsString)(),
|
|
256
|
+
(0, class_validator_1.MinLength)(2),
|
|
257
|
+
__metadata("design:type", String)
|
|
258
|
+
], SearchUsersDto.prototype, "query", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Page number', default: 1 }),
|
|
261
|
+
(0, class_validator_1.IsOptional)(),
|
|
262
|
+
(0, class_validator_1.IsNumber)(),
|
|
263
|
+
(0, class_validator_1.Min)(1),
|
|
264
|
+
__metadata("design:type", Number)
|
|
265
|
+
], SearchUsersDto.prototype, "page", void 0);
|
|
266
|
+
__decorate([
|
|
267
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Items per page', default: 20 }),
|
|
268
|
+
(0, class_validator_1.IsOptional)(),
|
|
269
|
+
(0, class_validator_1.IsNumber)(),
|
|
270
|
+
(0, class_validator_1.Min)(1),
|
|
271
|
+
(0, class_validator_1.Max)(50),
|
|
272
|
+
__metadata("design:type", Number)
|
|
273
|
+
], SearchUsersDto.prototype, "limit", void 0);
|
|
274
|
+
class JoinCommunityDto {
|
|
275
|
+
}
|
|
276
|
+
exports.JoinCommunityDto = JoinCommunityDto;
|
|
277
|
+
__decorate([
|
|
278
|
+
(0, swagger_1.ApiProperty)({ description: 'Community ID' }),
|
|
279
|
+
(0, class_validator_1.IsString)(),
|
|
280
|
+
__metadata("design:type", String)
|
|
281
|
+
], JoinCommunityDto.prototype, "communityId", void 0);
|
|
282
|
+
class KickMemberDto {
|
|
283
|
+
}
|
|
284
|
+
exports.KickMemberDto = KickMemberDto;
|
|
285
|
+
__decorate([
|
|
286
|
+
(0, swagger_1.ApiProperty)({ description: 'Community ID' }),
|
|
287
|
+
(0, class_validator_1.IsString)(),
|
|
288
|
+
__metadata("design:type", String)
|
|
289
|
+
], KickMemberDto.prototype, "communityId", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
(0, swagger_1.ApiProperty)({ description: 'User ID to kick' }),
|
|
292
|
+
(0, class_validator_1.IsString)(),
|
|
293
|
+
__metadata("design:type", String)
|
|
294
|
+
], KickMemberDto.prototype, "userId", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Reason for kick' }),
|
|
297
|
+
(0, class_validator_1.IsOptional)(),
|
|
298
|
+
(0, class_validator_1.IsString)(),
|
|
299
|
+
__metadata("design:type", String)
|
|
300
|
+
], KickMemberDto.prototype, "reason", void 0);
|
|
301
|
+
class PromoteMemberDto {
|
|
302
|
+
}
|
|
303
|
+
exports.PromoteMemberDto = PromoteMemberDto;
|
|
304
|
+
__decorate([
|
|
305
|
+
(0, swagger_1.ApiProperty)({ description: 'Community ID' }),
|
|
306
|
+
(0, class_validator_1.IsString)(),
|
|
307
|
+
__metadata("design:type", String)
|
|
308
|
+
], PromoteMemberDto.prototype, "communityId", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
(0, swagger_1.ApiProperty)({ description: 'User ID to promote' }),
|
|
311
|
+
(0, class_validator_1.IsString)(),
|
|
312
|
+
__metadata("design:type", String)
|
|
313
|
+
], PromoteMemberDto.prototype, "userId", void 0);
|
|
314
|
+
class SetTypingDto {
|
|
315
|
+
}
|
|
316
|
+
exports.SetTypingDto = SetTypingDto;
|
|
317
|
+
__decorate([
|
|
318
|
+
(0, swagger_1.ApiProperty)({ description: 'Channel ID (community ID or DM conversation ID)' }),
|
|
319
|
+
(0, class_validator_1.IsString)(),
|
|
320
|
+
__metadata("design:type", String)
|
|
321
|
+
], SetTypingDto.prototype, "channelId", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
(0, swagger_1.ApiProperty)({ description: 'Is user currently typing' }),
|
|
324
|
+
(0, class_validator_1.IsBoolean)(),
|
|
325
|
+
__metadata("design:type", Boolean)
|
|
326
|
+
], SetTypingDto.prototype, "isTyping", void 0);
|
|
327
|
+
class SetOnlineStatusDto {
|
|
328
|
+
}
|
|
329
|
+
exports.SetOnlineStatusDto = SetOnlineStatusDto;
|
|
330
|
+
__decorate([
|
|
331
|
+
(0, swagger_1.ApiProperty)({ description: 'Online status', enum: ['online', 'away', 'offline'] }),
|
|
332
|
+
(0, class_validator_1.IsString)(),
|
|
333
|
+
(0, class_validator_1.IsEnum)(['online', 'away', 'offline']),
|
|
334
|
+
__metadata("design:type", String)
|
|
335
|
+
], SetOnlineStatusDto.prototype, "status", void 0);
|
|
336
|
+
class BlockUserDto {
|
|
337
|
+
}
|
|
338
|
+
exports.BlockUserDto = BlockUserDto;
|
|
339
|
+
__decorate([
|
|
340
|
+
(0, swagger_1.ApiProperty)({ description: 'User ID to block' }),
|
|
341
|
+
(0, class_validator_1.IsString)(),
|
|
342
|
+
__metadata("design:type", String)
|
|
343
|
+
], BlockUserDto.prototype, "userId", void 0);
|
|
344
|
+
class ReportUserDto {
|
|
345
|
+
}
|
|
346
|
+
exports.ReportUserDto = ReportUserDto;
|
|
347
|
+
__decorate([
|
|
348
|
+
(0, swagger_1.ApiProperty)({ description: 'User ID to report' }),
|
|
349
|
+
(0, class_validator_1.IsString)(),
|
|
350
|
+
__metadata("design:type", String)
|
|
351
|
+
], ReportUserDto.prototype, "userId", void 0);
|
|
352
|
+
__decorate([
|
|
353
|
+
(0, swagger_1.ApiProperty)({ description: 'Reason for report', example: 'Abusive language' }),
|
|
354
|
+
(0, class_validator_1.IsString)(),
|
|
355
|
+
(0, class_validator_1.MinLength)(10),
|
|
356
|
+
(0, class_validator_1.MaxLength)(500),
|
|
357
|
+
__metadata("design:type", String)
|
|
358
|
+
], ReportUserDto.prototype, "reason", void 0);
|
|
359
|
+
__decorate([
|
|
360
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Message ID as evidence' }),
|
|
361
|
+
(0, class_validator_1.IsOptional)(),
|
|
362
|
+
(0, class_validator_1.IsString)(),
|
|
363
|
+
__metadata("design:type", String)
|
|
364
|
+
], ReportUserDto.prototype, "messageId", void 0);
|
|
365
|
+
__decorate([
|
|
366
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Community ID where the incident occurred' }),
|
|
367
|
+
(0, class_validator_1.IsOptional)(),
|
|
368
|
+
(0, class_validator_1.IsString)(),
|
|
369
|
+
__metadata("design:type", String)
|
|
370
|
+
], ReportUserDto.prototype, "communityId", void 0);
|
|
371
|
+
class SendInvitationDto {
|
|
372
|
+
}
|
|
373
|
+
exports.SendInvitationDto = SendInvitationDto;
|
|
374
|
+
__decorate([
|
|
375
|
+
(0, swagger_1.ApiProperty)({ description: 'User ID to invite' }),
|
|
376
|
+
(0, class_validator_1.IsString)(),
|
|
377
|
+
__metadata("design:type", String)
|
|
378
|
+
], SendInvitationDto.prototype, "inviteeId", void 0);
|
|
379
|
+
__decorate([
|
|
380
|
+
(0, swagger_1.ApiProperty)({ description: 'Username of the invitee' }),
|
|
381
|
+
(0, class_validator_1.IsString)(),
|
|
382
|
+
__metadata("design:type", String)
|
|
383
|
+
], SendInvitationDto.prototype, "inviteeUsername", void 0);
|
|
384
|
+
__decorate([
|
|
385
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Optional invitation message', example: 'Hey, join our gaming community!' }),
|
|
386
|
+
(0, class_validator_1.IsOptional)(),
|
|
387
|
+
(0, class_validator_1.IsString)(),
|
|
388
|
+
(0, class_validator_1.MaxLength)(200),
|
|
389
|
+
__metadata("design:type", String)
|
|
390
|
+
], SendInvitationDto.prototype, "message", void 0);
|
|
391
|
+
class RespondInvitationDto {
|
|
392
|
+
}
|
|
393
|
+
exports.RespondInvitationDto = RespondInvitationDto;
|
|
394
|
+
__decorate([
|
|
395
|
+
(0, swagger_1.ApiProperty)({ description: 'Invitation ID' }),
|
|
396
|
+
(0, class_validator_1.IsString)(),
|
|
397
|
+
__metadata("design:type", String)
|
|
398
|
+
], RespondInvitationDto.prototype, "invitationId", void 0);
|
|
399
|
+
//# sourceMappingURL=community.dto.js.map
|
|
@@ -0,0 +1 @@
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oDACO;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACvD,IAAA,0BAAQ,GAAE;;0DACa;AAMxB;IAJC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IAC/G,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;kDACE;AAGnB,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AADC;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IAC7C,IAAA,0BAAQ,GAAE;;0DACU"}
|
package/dist/dto/index.d.ts
CHANGED
package/dist/dto/index.js
CHANGED
|
@@ -21,4 +21,5 @@ __exportStar(require("./payment.dto"), exports);
|
|
|
21
21
|
__exportStar(require("./auth.dto"), exports);
|
|
22
22
|
__exportStar(require("./user-sync.dto"), exports);
|
|
23
23
|
__exportStar(require("./battle.dto"), exports);
|
|
24
|
+
__exportStar(require("./community.dto"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
package/dist/dto/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,qDAAmC;AACnC,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,kDAAgC;AAChC,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,qDAAmC;AACnC,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,kDAAgC;AAChC,+CAA6B;AAC7B,kDAAgC"}
|