grm-shared-library 1.1.155 → 1.1.157
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/cjs/modules/chat/dtos/chat-query.dto.js +27 -0
- package/dist/cjs/modules/chat/dtos/chat-query.dto.js.map +1 -0
- package/dist/cjs/modules/chat/dtos/{conversation.dto.js → create-chat-conversation.dto.js} +10 -23
- package/dist/cjs/modules/chat/dtos/create-chat-conversation.dto.js.map +1 -0
- package/dist/cjs/modules/chat/dtos/create-chat-message.dto.js +44 -0
- package/dist/cjs/modules/chat/dtos/create-chat-message.dto.js.map +1 -0
- package/dist/cjs/modules/chat/enums/chat-conversation-status.enum.js +9 -0
- package/dist/cjs/modules/chat/enums/chat-conversation-status.enum.js.map +1 -0
- package/dist/cjs/modules/chat/enums/chat-conversation-type.enum.js +9 -0
- package/dist/cjs/modules/chat/enums/chat-conversation-type.enum.js.map +1 -0
- package/dist/cjs/modules/chat/enums/chat-message-type.enum.js +9 -0
- package/dist/cjs/modules/chat/enums/chat-message-type.enum.js.map +1 -0
- package/dist/cjs/modules/chat/enums/chat-participant-role.enum.js +10 -0
- package/dist/cjs/modules/chat/enums/chat-participant-role.enum.js.map +1 -0
- package/dist/cjs/modules/chat/index.js +14 -2
- package/dist/cjs/modules/chat/index.js.map +1 -1
- package/dist/cjs/modules/chat/interfaces/chat-conversation-with-participants.js +3 -0
- package/dist/cjs/modules/chat/interfaces/chat-conversation-with-participants.js.map +1 -0
- package/dist/cjs/modules/chat/interfaces/chat-conversation.js +3 -0
- package/dist/cjs/modules/chat/interfaces/chat-conversation.js.map +1 -0
- package/dist/cjs/modules/chat/interfaces/chat-message.js +3 -0
- package/dist/cjs/modules/chat/interfaces/chat-message.js.map +1 -0
- package/dist/cjs/modules/chat/interfaces/chat-participant.js +3 -0
- package/dist/cjs/modules/chat/interfaces/chat-participant.js.map +1 -0
- package/dist/esm/modules/chat/dtos/chat-query.dto.js +23 -0
- package/dist/esm/modules/chat/dtos/chat-query.dto.js.map +1 -0
- package/dist/esm/modules/chat/dtos/{conversation.dto.js → create-chat-conversation.dto.js} +8 -20
- package/dist/esm/modules/chat/dtos/create-chat-conversation.dto.js.map +1 -0
- package/dist/esm/modules/chat/dtos/create-chat-message.dto.js +40 -0
- package/dist/esm/modules/chat/dtos/create-chat-message.dto.js.map +1 -0
- package/dist/esm/modules/chat/enums/chat-conversation-status.enum.js +6 -0
- package/dist/esm/modules/chat/enums/chat-conversation-status.enum.js.map +1 -0
- package/dist/esm/modules/chat/enums/chat-conversation-type.enum.js +6 -0
- package/dist/esm/modules/chat/enums/chat-conversation-type.enum.js.map +1 -0
- package/dist/esm/modules/chat/enums/chat-message-type.enum.js +6 -0
- package/dist/esm/modules/chat/enums/chat-message-type.enum.js.map +1 -0
- package/dist/esm/modules/chat/enums/chat-participant-role.enum.js +7 -0
- package/dist/esm/modules/chat/enums/chat-participant-role.enum.js.map +1 -0
- package/dist/esm/modules/chat/index.js +14 -2
- package/dist/esm/modules/chat/index.js.map +1 -1
- package/dist/esm/modules/chat/interfaces/chat-conversation-with-participants.js +2 -0
- package/dist/esm/modules/chat/interfaces/chat-conversation-with-participants.js.map +1 -0
- package/dist/esm/modules/chat/interfaces/chat-conversation.js +2 -0
- package/dist/esm/modules/chat/interfaces/chat-conversation.js.map +1 -0
- package/dist/esm/modules/chat/interfaces/chat-message.js +2 -0
- package/dist/esm/modules/chat/interfaces/chat-message.js.map +1 -0
- package/dist/esm/modules/chat/interfaces/chat-participant.js +2 -0
- package/dist/esm/modules/chat/interfaces/chat-participant.js.map +1 -0
- package/dist/types/interfaces/pagination.d.ts +5 -0
- package/dist/types/modules/chat/dtos/chat-query.dto.d.ts +4 -0
- package/dist/types/modules/chat/dtos/create-chat-conversation.dto.d.ts +7 -0
- package/dist/types/modules/chat/dtos/create-chat-message.dto.d.ts +8 -0
- package/dist/types/modules/chat/enums/chat-conversation-status.enum.d.ts +4 -0
- package/dist/types/modules/chat/enums/{conversation-type.dto.d.ts → chat-conversation-type.enum.d.ts} +1 -1
- package/dist/types/modules/chat/enums/chat-message-type.enum.d.ts +4 -0
- package/dist/types/modules/chat/enums/chat-participant-role.enum.d.ts +5 -0
- package/dist/types/modules/chat/index.d.ts +11 -2
- package/dist/types/modules/chat/interfaces/chat-conversation-with-participants.d.ts +5 -0
- package/dist/types/modules/chat/interfaces/chat-conversation.d.ts +18 -0
- package/dist/types/modules/chat/interfaces/chat-message.d.ts +16 -0
- package/dist/types/modules/chat/interfaces/chat-participant.d.ts +16 -0
- package/package.json +1 -1
- package/dist/cjs/modules/chat/dtos/conversation.dto.js.map +0 -1
- package/dist/cjs/modules/chat/enums/conversation-type.dto.js +0 -9
- package/dist/cjs/modules/chat/enums/conversation-type.dto.js.map +0 -1
- package/dist/esm/modules/chat/dtos/conversation.dto.js.map +0 -1
- package/dist/esm/modules/chat/enums/conversation-type.dto.js +0 -6
- package/dist/esm/modules/chat/enums/conversation-type.dto.js.map +0 -1
- package/dist/types/modules/chat/dtos/conversation.dto.d.ts +0 -11
|
@@ -0,0 +1,27 @@
|
|
|
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.ChatQueryDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ChatQueryDto {
|
|
15
|
+
}
|
|
16
|
+
exports.ChatQueryDto = ChatQueryDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ChatQueryDto.prototype, "cursor", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], ChatQueryDto.prototype, "limit", void 0);
|
|
27
|
+
//# sourceMappingURL=chat-query.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-query.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/dtos/chat-query.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,YAAY;CAQxB;AARD,oCAQC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACI"}
|
|
@@ -9,45 +9,32 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.CreateChatConversationDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const
|
|
15
|
-
class
|
|
14
|
+
const chat_conversation_type_enum_1 = require("../enums/chat-conversation-type.enum");
|
|
15
|
+
class CreateChatConversationDto {
|
|
16
16
|
}
|
|
17
|
-
exports.
|
|
17
|
+
exports.CreateChatConversationDto = CreateChatConversationDto;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, class_validator_1.IsEnum)(
|
|
19
|
+
(0, class_validator_1.IsEnum)(chat_conversation_type_enum_1.ChatConversationType),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
21
|
+
], CreateChatConversationDto.prototype, "type", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, class_validator_1.IsOptional)(),
|
|
24
24
|
(0, class_validator_1.IsString)(),
|
|
25
25
|
(0, class_validator_1.MaxLength)(255),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
27
|
+
], CreateChatConversationDto.prototype, "name", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_validator_1.IsArray)(),
|
|
30
30
|
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
31
31
|
(0, class_validator_1.ArrayMinSize)(1, { message: 'At least one participant is required' }),
|
|
32
32
|
(0, class_validator_1.ArrayMaxSize)(256, { message: 'Maximum 256 participants allowed' }),
|
|
33
33
|
__metadata("design:type", Array)
|
|
34
|
-
],
|
|
34
|
+
], CreateChatConversationDto.prototype, "participantUserIds", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, class_validator_1.IsOptional)(),
|
|
37
37
|
(0, class_validator_1.IsObject)(),
|
|
38
38
|
__metadata("design:type", Object)
|
|
39
|
-
],
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
exports.ConversationQueryDto = ConversationQueryDto;
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsOptional)(),
|
|
45
|
-
(0, class_validator_1.IsString)(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], ConversationQueryDto.prototype, "cursor", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
(0, class_validator_1.IsNumber)(),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], ConversationQueryDto.prototype, "limit", void 0);
|
|
53
|
-
//# sourceMappingURL=conversation.dto.js.map
|
|
39
|
+
], CreateChatConversationDto.prototype, "metadata", void 0);
|
|
40
|
+
//# sourceMappingURL=create-chat-conversation.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-conversation.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/dtos/create-chat-conversation.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmI;AACnI,sFAA4E;AAE5E,MAAa,yBAAyB;CAkBrC;AAlBD,8DAkBC;AAhBG;IADC,IAAA,wBAAM,EAAC,kDAAoB,CAAC;;uDACD;AAK5B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;uDACD;AAMd;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,8BAAY,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;IACpE,IAAA,8BAAY,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;;qEACrC;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACoB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.CreateChatMessageDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const chat_message_type_enum_1 = require("../enums/chat-message-type.enum");
|
|
15
|
+
class CreateChatMessageDto {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateChatMessageDto = CreateChatMessageDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateChatMessageDto.prototype, "conversationId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MinLength)(1),
|
|
25
|
+
(0, class_validator_1.MaxLength)(5000),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateChatMessageDto.prototype, "content", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsEnum)(chat_message_type_enum_1.ChatMessageType),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateChatMessageDto.prototype, "type", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsObject)(),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], CreateChatMessageDto.prototype, "metadata", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, class_validator_1.MaxLength)(255),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreateChatMessageDto.prototype, "clientMessageId", void 0);
|
|
44
|
+
//# sourceMappingURL=create-chat-message.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-message.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/dtos/create-chat-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+F;AAC/F,4EAAkE;AAElE,MAAa,oBAAoB;CAqBhC;AArBD,oDAqBC;AAnBG;IADC,IAAA,0BAAQ,GAAE;;4DACa;AAKxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,IAAI,CAAC;;qDACC;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wCAAe,CAAC;;kDACD;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACoB;AAK/B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;6DACU"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatConversationStatus = void 0;
|
|
4
|
+
var ChatConversationStatus;
|
|
5
|
+
(function (ChatConversationStatus) {
|
|
6
|
+
ChatConversationStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
+
ChatConversationStatus["ARCHIVED"] = "ARCHIVED";
|
|
8
|
+
})(ChatConversationStatus || (exports.ChatConversationStatus = ChatConversationStatus = {}));
|
|
9
|
+
//# sourceMappingURL=chat-conversation-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-conversation-status.enum.js","sourceRoot":"","sources":["../../../../../src/modules/chat/enums/chat-conversation-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;AACzB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatConversationType = void 0;
|
|
4
|
+
var ChatConversationType;
|
|
5
|
+
(function (ChatConversationType) {
|
|
6
|
+
ChatConversationType["DIRECT"] = "DIRECT";
|
|
7
|
+
ChatConversationType["GROUP"] = "GROUP";
|
|
8
|
+
})(ChatConversationType || (exports.ChatConversationType = ChatConversationType = {}));
|
|
9
|
+
//# sourceMappingURL=chat-conversation-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-conversation-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/chat/enums/chat-conversation-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,uCAAe,CAAA;AACnB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatMessageType = void 0;
|
|
4
|
+
var ChatMessageType;
|
|
5
|
+
(function (ChatMessageType) {
|
|
6
|
+
ChatMessageType["TEXT"] = "TEXT";
|
|
7
|
+
ChatMessageType["SYSTEM"] = "SYSTEM";
|
|
8
|
+
})(ChatMessageType || (exports.ChatMessageType = ChatMessageType = {}));
|
|
9
|
+
//# sourceMappingURL=chat-message-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-message-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/chat/enums/chat-message-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,oCAAiB,CAAA;AACrB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatParticipantRole = void 0;
|
|
4
|
+
var ChatParticipantRole;
|
|
5
|
+
(function (ChatParticipantRole) {
|
|
6
|
+
ChatParticipantRole["OWNER"] = "OWNER";
|
|
7
|
+
ChatParticipantRole["ADMIN"] = "ADMIN";
|
|
8
|
+
ChatParticipantRole["MEMBER"] = "MEMBER";
|
|
9
|
+
})(ChatParticipantRole || (exports.ChatParticipantRole = ChatParticipantRole = {}));
|
|
10
|
+
//# sourceMappingURL=chat-participant-role.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-participant-role.enum.js","sourceRoot":"","sources":["../../../../../src/modules/chat/enums/chat-participant-role.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,sCAAe,CAAA;IACf,wCAAiB,CAAA;AACrB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
|
|
@@ -14,6 +14,18 @@ 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
|
-
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
// dtos
|
|
18
|
+
__exportStar(require("./dtos/chat-query.dto"), exports);
|
|
19
|
+
__exportStar(require("./dtos/create-chat-conversation.dto"), exports);
|
|
20
|
+
__exportStar(require("./dtos/create-chat-message.dto"), exports);
|
|
21
|
+
// enums
|
|
22
|
+
__exportStar(require("./enums/chat-conversation-status.enum"), exports);
|
|
23
|
+
__exportStar(require("./enums/chat-conversation-type.enum"), exports);
|
|
24
|
+
__exportStar(require("./enums/chat-message-type.enum"), exports);
|
|
25
|
+
__exportStar(require("./enums/chat-participant-role.enum"), exports);
|
|
26
|
+
// interfaces
|
|
27
|
+
__exportStar(require("./interfaces/chat-conversation"), exports);
|
|
28
|
+
__exportStar(require("./interfaces/chat-conversation-with-participants"), exports);
|
|
29
|
+
__exportStar(require("./interfaces/chat-message"), exports);
|
|
30
|
+
__exportStar(require("./interfaces/chat-participant"), exports);
|
|
19
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chat/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chat/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,wDAAsC;AACtC,sEAAoD;AACpD,iEAA+C;AAE/C,QAAQ;AACR,wEAAsD;AACtD,sEAAoD;AACpD,iEAA+C;AAC/C,qEAAmD;AAEnD,aAAa;AACb,iEAA+C;AAC/C,mFAAiE;AACjE,4DAA0C;AAC1C,gEAA8C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-conversation-with-participants.js","sourceRoot":"","sources":["../../../../../src/modules/chat/interfaces/chat-conversation-with-participants.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-conversation.js","sourceRoot":"","sources":["../../../../../src/modules/chat/interfaces/chat-conversation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-message.js","sourceRoot":"","sources":["../../../../../src/modules/chat/interfaces/chat-message.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-participant.js","sourceRoot":"","sources":["../../../../../src/modules/chat/interfaces/chat-participant.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { IsNumber, IsOptional, IsString } from "class-validator";
|
|
11
|
+
export class ChatQueryDto {
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
IsOptional(),
|
|
15
|
+
IsString(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], ChatQueryDto.prototype, "cursor", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsOptional(),
|
|
20
|
+
IsNumber(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], ChatQueryDto.prototype, "limit", void 0);
|
|
23
|
+
//# sourceMappingURL=chat-query.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-query.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/dtos/chat-query.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEjE,MAAM,OAAO,YAAY;CAQxB;AALG;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;4CACK;AAIhB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;2CACI"}
|
|
@@ -8,41 +8,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsArray, IsEnum, IsNumber, IsObject, IsOptional, IsString, MaxLength, ArrayMinSize, ArrayMaxSize } from 'class-validator';
|
|
11
|
-
import {
|
|
12
|
-
export class
|
|
11
|
+
import { ChatConversationType } from '../enums/chat-conversation-type.enum';
|
|
12
|
+
export class CreateChatConversationDto {
|
|
13
13
|
}
|
|
14
14
|
__decorate([
|
|
15
|
-
IsEnum(
|
|
15
|
+
IsEnum(ChatConversationType),
|
|
16
16
|
__metadata("design:type", String)
|
|
17
|
-
],
|
|
17
|
+
], CreateChatConversationDto.prototype, "type", void 0);
|
|
18
18
|
__decorate([
|
|
19
19
|
IsOptional(),
|
|
20
20
|
IsString(),
|
|
21
21
|
MaxLength(255),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
23
|
+
], CreateChatConversationDto.prototype, "name", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
IsArray(),
|
|
26
26
|
IsNumber({}, { each: true }),
|
|
27
27
|
ArrayMinSize(1, { message: 'At least one participant is required' }),
|
|
28
28
|
ArrayMaxSize(256, { message: 'Maximum 256 participants allowed' }),
|
|
29
29
|
__metadata("design:type", Array)
|
|
30
|
-
],
|
|
30
|
+
], CreateChatConversationDto.prototype, "participantUserIds", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
IsOptional(),
|
|
33
33
|
IsObject(),
|
|
34
34
|
__metadata("design:type", Object)
|
|
35
|
-
],
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
__decorate([
|
|
39
|
-
IsOptional(),
|
|
40
|
-
IsString(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], ConversationQueryDto.prototype, "cursor", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
IsOptional(),
|
|
45
|
-
IsNumber(),
|
|
46
|
-
__metadata("design:type", Number)
|
|
47
|
-
], ConversationQueryDto.prototype, "limit", void 0);
|
|
48
|
-
//# sourceMappingURL=conversation.dto.js.map
|
|
35
|
+
], CreateChatConversationDto.prototype, "metadata", void 0);
|
|
36
|
+
//# sourceMappingURL=create-chat-conversation.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-conversation.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/dtos/create-chat-conversation.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACnI,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,MAAM,OAAO,yBAAyB;CAkBrC;AAhBG;IADC,MAAM,CAAC,oBAAoB,CAAC;;uDACD;AAK5B;IAHC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,SAAS,CAAC,GAAG,CAAC;;uDACD;AAMd;IAJC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,YAAY,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;IACpE,YAAY,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;;qEACrC;AAI9B;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACoB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { IsEnum, IsObject, IsOptional, IsString, MaxLength, MinLength } from "class-validator";
|
|
11
|
+
import { ChatMessageType } from "../enums/chat-message-type.enum";
|
|
12
|
+
export class CreateChatMessageDto {
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
IsString(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], CreateChatMessageDto.prototype, "conversationId", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsString(),
|
|
20
|
+
MinLength(1),
|
|
21
|
+
MaxLength(5000),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateChatMessageDto.prototype, "content", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
IsOptional(),
|
|
26
|
+
IsEnum(ChatMessageType),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateChatMessageDto.prototype, "type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
IsOptional(),
|
|
31
|
+
IsObject(),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], CreateChatMessageDto.prototype, "metadata", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
IsOptional(),
|
|
36
|
+
IsString(),
|
|
37
|
+
MaxLength(255),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateChatMessageDto.prototype, "clientMessageId", void 0);
|
|
40
|
+
//# sourceMappingURL=create-chat-message.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-message.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/dtos/create-chat-message.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,MAAM,OAAO,oBAAoB;CAqBhC;AAnBG;IADC,QAAQ,EAAE;;4DACa;AAKxB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,CAAC,CAAC;IACZ,SAAS,CAAC,IAAI,CAAC;;qDACC;AAIjB;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,eAAe,CAAC;;kDACD;AAIvB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;sDACoB;AAK/B;IAHC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,SAAS,CAAC,GAAG,CAAC;;6DACU"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var ChatConversationStatus;
|
|
2
|
+
(function (ChatConversationStatus) {
|
|
3
|
+
ChatConversationStatus["ACTIVE"] = "ACTIVE";
|
|
4
|
+
ChatConversationStatus["ARCHIVED"] = "ARCHIVED";
|
|
5
|
+
})(ChatConversationStatus || (ChatConversationStatus = {}));
|
|
6
|
+
//# sourceMappingURL=chat-conversation-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-conversation-status.enum.js","sourceRoot":"","sources":["../../../../../src/modules/chat/enums/chat-conversation-status.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;AACzB,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var ChatConversationType;
|
|
2
|
+
(function (ChatConversationType) {
|
|
3
|
+
ChatConversationType["DIRECT"] = "DIRECT";
|
|
4
|
+
ChatConversationType["GROUP"] = "GROUP";
|
|
5
|
+
})(ChatConversationType || (ChatConversationType = {}));
|
|
6
|
+
//# sourceMappingURL=chat-conversation-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-conversation-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/chat/enums/chat-conversation-type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,uCAAe,CAAA;AACnB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-message-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/chat/enums/chat-message-type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,oCAAiB,CAAA;AACrB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var ChatParticipantRole;
|
|
2
|
+
(function (ChatParticipantRole) {
|
|
3
|
+
ChatParticipantRole["OWNER"] = "OWNER";
|
|
4
|
+
ChatParticipantRole["ADMIN"] = "ADMIN";
|
|
5
|
+
ChatParticipantRole["MEMBER"] = "MEMBER";
|
|
6
|
+
})(ChatParticipantRole || (ChatParticipantRole = {}));
|
|
7
|
+
//# sourceMappingURL=chat-participant-role.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-participant-role.enum.js","sourceRoot":"","sources":["../../../../../src/modules/chat/enums/chat-participant-role.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,sCAAe,CAAA;IACf,wCAAiB,CAAA;AACrB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B"}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './
|
|
1
|
+
// dtos
|
|
2
|
+
export * from './dtos/chat-query.dto';
|
|
3
|
+
export * from './dtos/create-chat-conversation.dto';
|
|
4
|
+
export * from './dtos/create-chat-message.dto';
|
|
5
|
+
// enums
|
|
6
|
+
export * from './enums/chat-conversation-status.enum';
|
|
7
|
+
export * from './enums/chat-conversation-type.enum';
|
|
8
|
+
export * from './enums/chat-message-type.enum';
|
|
9
|
+
export * from './enums/chat-participant-role.enum';
|
|
10
|
+
// interfaces
|
|
11
|
+
export * from './interfaces/chat-conversation';
|
|
12
|
+
export * from './interfaces/chat-conversation-with-participants';
|
|
13
|
+
export * from './interfaces/chat-message';
|
|
14
|
+
export * from './interfaces/chat-participant';
|
|
3
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAE/C,QAAQ;AACR,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AAEnD,aAAa;AACb,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kDAAkD,CAAC;AACjE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-conversation-with-participants.js","sourceRoot":"","sources":["../../../../../src/modules/chat/interfaces/chat-conversation-with-participants.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-conversation.js","sourceRoot":"","sources":["../../../../../src/modules/chat/interfaces/chat-conversation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-message.js","sourceRoot":"","sources":["../../../../../src/modules/chat/interfaces/chat-message.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-participant.js","sourceRoot":"","sources":["../../../../../src/modules/chat/interfaces/chat-participant.ts"],"names":[],"mappings":""}
|
|
@@ -5,6 +5,11 @@ import { Organization } from "../modules/organization";
|
|
|
5
5
|
import { ResponseUnit } from "../modules/response-unit";
|
|
6
6
|
import { User } from "../modules/user";
|
|
7
7
|
import { WebNotification } from "../modules/web-notification";
|
|
8
|
+
export interface CursorPaginatedResponse<T> {
|
|
9
|
+
data: T[];
|
|
10
|
+
nextCursor: string | null;
|
|
11
|
+
hasMore: boolean;
|
|
12
|
+
}
|
|
8
13
|
export interface PaginationParams {
|
|
9
14
|
page?: number;
|
|
10
15
|
limit?: number;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
export * from './dtos/
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './dtos/chat-query.dto';
|
|
2
|
+
export * from './dtos/create-chat-conversation.dto';
|
|
3
|
+
export * from './dtos/create-chat-message.dto';
|
|
4
|
+
export * from './enums/chat-conversation-status.enum';
|
|
5
|
+
export * from './enums/chat-conversation-type.enum';
|
|
6
|
+
export * from './enums/chat-message-type.enum';
|
|
7
|
+
export * from './enums/chat-participant-role.enum';
|
|
8
|
+
export * from './interfaces/chat-conversation';
|
|
9
|
+
export * from './interfaces/chat-conversation-with-participants';
|
|
10
|
+
export * from './interfaces/chat-message';
|
|
11
|
+
export * from './interfaces/chat-participant';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChatConversationStatus } from "../enums/chat-conversation-status.enum";
|
|
2
|
+
import { ChatConversationType } from "../enums/chat-conversation-type.enum";
|
|
3
|
+
import { ChatMessage } from "./chat-message";
|
|
4
|
+
import { ChatParticipant } from "./chat-participant";
|
|
5
|
+
export interface ChatConversation {
|
|
6
|
+
id?: string;
|
|
7
|
+
type: ChatConversationType;
|
|
8
|
+
name?: string;
|
|
9
|
+
status?: ChatConversationStatus;
|
|
10
|
+
participantUserIds: number[];
|
|
11
|
+
createdBy?: number;
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
updatedAt?: string;
|
|
14
|
+
deletedAt?: string;
|
|
15
|
+
participants?: ChatParticipant[];
|
|
16
|
+
messages?: ChatMessage[];
|
|
17
|
+
metadata?: Record<string, any>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChatMessageType } from "../enums/chat-message-type.enum";
|
|
2
|
+
import { ChatConversation } from "./chat-conversation";
|
|
3
|
+
import { ChatParticipant } from "./chat-participant";
|
|
4
|
+
export interface ChatMessage {
|
|
5
|
+
id: string;
|
|
6
|
+
conversationId: string;
|
|
7
|
+
senderId: number;
|
|
8
|
+
type: ChatMessageType;
|
|
9
|
+
content: string;
|
|
10
|
+
metadata?: Record<string, any>;
|
|
11
|
+
clientMessageId?: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
deletedAt?: string;
|
|
14
|
+
conversation: ChatConversation;
|
|
15
|
+
readByParticipants: ChatParticipant[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChatParticipantRole } from "../enums/chat-participant-role.enum";
|
|
2
|
+
import { ChatConversation } from "./chat-conversation";
|
|
3
|
+
import { ChatMessage } from "./chat-message";
|
|
4
|
+
export interface ChatParticipant {
|
|
5
|
+
id: string;
|
|
6
|
+
conversationId: string;
|
|
7
|
+
userId: number;
|
|
8
|
+
role: ChatParticipantRole;
|
|
9
|
+
joinedAt: string;
|
|
10
|
+
leftAt?: string;
|
|
11
|
+
deletedAt?: string;
|
|
12
|
+
lastReadMessageId?: string;
|
|
13
|
+
lastReadAt?: string;
|
|
14
|
+
conversation: ChatConversation;
|
|
15
|
+
lastReadMessage?: ChatMessage;
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/dtos/conversation.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmI;AACnI,0EAAqE;AAErE,MAAa,qBAAqB;CAkBjC;AAlBD,sDAkBC;AAhBG;IADC,IAAA,wBAAM,EAAC,2CAAmB,CAAC;;mDACD;AAK3B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;mDACD;AAMd;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,8BAAY,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;IACpE,IAAA,8BAAY,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;;iEACrC;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACoB;AAGnC,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACI"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConversationTypeDto = void 0;
|
|
4
|
-
var ConversationTypeDto;
|
|
5
|
-
(function (ConversationTypeDto) {
|
|
6
|
-
ConversationTypeDto["DIRECT"] = "DIRECT";
|
|
7
|
-
ConversationTypeDto["GROUP"] = "GROUP";
|
|
8
|
-
})(ConversationTypeDto || (exports.ConversationTypeDto = ConversationTypeDto = {}));
|
|
9
|
-
//# sourceMappingURL=conversation-type.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-type.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/enums/conversation-type.dto.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,wCAAiB,CAAA;IACjB,sCAAe,CAAA;AACnB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/dtos/conversation.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACnI,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,OAAO,qBAAqB;CAkBjC;AAhBG;IADC,MAAM,CAAC,mBAAmB,CAAC;;mDACD;AAK3B;IAHC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,SAAS,CAAC,GAAG,CAAC;;mDACD;AAMd;IAJC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,YAAY,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;IACpE,YAAY,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;;iEACrC;AAI9B;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;uDACoB;AAGnC,MAAM,OAAO,oBAAoB;CAQhC;AALG;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;oDACK;AAIhB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-type.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/enums/conversation-type.dto.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,wCAAiB,CAAA;IACjB,sCAAe,CAAA;AACnB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ConversationTypeDto } from '../enums/conversation-type.dto';
|
|
2
|
-
export declare class CreateConversationDto {
|
|
3
|
-
type: ConversationTypeDto;
|
|
4
|
-
name?: string;
|
|
5
|
-
participantUserIds: number[];
|
|
6
|
-
metadata?: Record<string, any>;
|
|
7
|
-
}
|
|
8
|
-
export declare class ConversationQueryDto {
|
|
9
|
-
cursor?: string;
|
|
10
|
-
limit?: number;
|
|
11
|
-
}
|