@xoxno/types 1.0.107 → 1.0.109
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/cosmos-db/documents/chat/chat-message-content.dto.d.ts +2 -1
- package/dist/cosmos-db/documents/chat/chat-message.doc.d.ts +3 -22
- package/dist/cosmos-db/documents/chat/chat-message.doc.js +4 -46
- package/dist/cosmos-db/documents/chat/chat-read.dto.d.ts +7 -0
- package/dist/cosmos-db/documents/chat/chat-read.dto.js +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ChatMessageContentType } from '../../../enums/chat-message-content-type.enum';
|
|
1
2
|
import { ChatMessageReplyDto } from './chat-message-reply.dto';
|
|
2
3
|
export declare class ChatMessageContentDto {
|
|
3
|
-
readonly type:
|
|
4
|
+
readonly type: ChatMessageContentType;
|
|
4
5
|
readonly value: string;
|
|
5
6
|
readonly replyTo?: ChatMessageReplyDto;
|
|
6
7
|
}
|
|
@@ -1,32 +1,13 @@
|
|
|
1
|
-
import { ChatDataType } from '../../../enums/chat-data-type.enum';
|
|
2
|
-
import { ChatMessageContentType } from '../../../enums/chat-message-content-type.enum';
|
|
3
1
|
import { OwnerDto } from '../../../common/owner.dto';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: string;
|
|
7
|
-
}
|
|
8
|
-
declare class ReplyToDto {
|
|
9
|
-
sender: OwnerDto;
|
|
10
|
-
content: MessageContentReplyToDto;
|
|
11
|
-
timestamp: number;
|
|
12
|
-
id: string;
|
|
13
|
-
}
|
|
14
|
-
declare class MessageContentDto {
|
|
15
|
-
type: string;
|
|
16
|
-
value: string;
|
|
17
|
-
replyTo?: ReplyToDto;
|
|
18
|
-
}
|
|
2
|
+
import { ChatDataType } from '../../../enums/chat-data-type.enum';
|
|
3
|
+
import { ChatMessageContentDto } from './chat-message-content.dto';
|
|
19
4
|
export declare class MessageDto {
|
|
20
|
-
content:
|
|
5
|
+
content: ChatMessageContentDto;
|
|
21
6
|
isRead: boolean;
|
|
22
7
|
timestamp: number;
|
|
23
8
|
sender?: string;
|
|
24
9
|
isDeletedFor?: string[];
|
|
25
10
|
}
|
|
26
|
-
export interface ChatMessageContent {
|
|
27
|
-
type: ChatMessageContentType;
|
|
28
|
-
value: string;
|
|
29
|
-
}
|
|
30
11
|
declare class ChatMessageDocBase {
|
|
31
12
|
dataType: ChatDataType;
|
|
32
13
|
chatId: string;
|
|
@@ -11,57 +11,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ChatMessageDocHydrated = exports.ChatMessageDoc = exports.MessageDto = void 0;
|
|
13
13
|
const uuid_1 = require("uuid");
|
|
14
|
-
const chat_data_type_enum_1 = require("../../../enums/chat-data-type.enum");
|
|
15
|
-
const owner_dto_1 = require("../../../common/owner.dto");
|
|
16
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, swagger_1.ApiProperty)({ example: 'message' }),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], MessageContentReplyToDto.prototype, "type", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, swagger_1.ApiProperty)({ example: 'Hello world' }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], MessageContentReplyToDto.prototype, "value", void 0);
|
|
27
|
-
class ReplyToDto {
|
|
28
|
-
}
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, swagger_1.ApiProperty)({ type: owner_dto_1.OwnerDto }),
|
|
31
|
-
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
32
|
-
], ReplyToDto.prototype, "sender", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, swagger_1.ApiProperty)({ type: MessageContentReplyToDto }),
|
|
35
|
-
__metadata("design:type", MessageContentReplyToDto)
|
|
36
|
-
], ReplyToDto.prototype, "content", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, swagger_1.ApiProperty)({ example: 1720468991 }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], ReplyToDto.prototype, "timestamp", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, swagger_1.ApiProperty)({ example: 'b02f639a-abcf-4db8-9397-bdb3b60cef6a' }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], ReplyToDto.prototype, "id", void 0);
|
|
45
|
-
class MessageContentDto {
|
|
46
|
-
}
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, swagger_1.ApiProperty)({ example: 'message' }),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], MessageContentDto.prototype, "type", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, swagger_1.ApiProperty)({ example: 'Vv' }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], MessageContentDto.prototype, "value", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, swagger_1.ApiProperty)({ required: false, type: ReplyToDto }),
|
|
57
|
-
__metadata("design:type", ReplyToDto)
|
|
58
|
-
], MessageContentDto.prototype, "replyTo", void 0);
|
|
15
|
+
const chat_data_type_enum_1 = require("../../../enums/chat-data-type.enum");
|
|
16
|
+
const chat_message_content_dto_1 = require("./chat-message-content.dto");
|
|
59
17
|
class MessageDto {
|
|
60
18
|
}
|
|
61
19
|
exports.MessageDto = MessageDto;
|
|
62
20
|
__decorate([
|
|
63
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
64
|
-
__metadata("design:type",
|
|
21
|
+
(0, swagger_1.ApiProperty)({ type: chat_message_content_dto_1.ChatMessageContentDto }),
|
|
22
|
+
__metadata("design:type", chat_message_content_dto_1.ChatMessageContentDto)
|
|
65
23
|
], MessageDto.prototype, "content", void 0);
|
|
66
24
|
__decorate([
|
|
67
25
|
(0, swagger_1.ApiProperty)({ example: true }),
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './cosmos-db/documents/chat/chat-message-content.dto';
|
|
|
18
18
|
export * from './cosmos-db/documents/chat/chat-message-reply.dto';
|
|
19
19
|
export * from './cosmos-db/documents/chat/chat-message.doc';
|
|
20
20
|
export * from './cosmos-db/documents/chat/chat-message.dto';
|
|
21
|
+
export * from './cosmos-db/documents/chat/chat-read.dto';
|
|
21
22
|
export * from './cosmos-db/documents/chat/global-conversation-summary.dto';
|
|
22
23
|
export * from './cosmos-db/documents/chat/group-chat-profile.doc';
|
|
23
24
|
export * from './cosmos-db/documents/chat/user-block.doc';
|
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./cosmos-db/documents/chat/chat-message-content.dto"), exp
|
|
|
34
34
|
__exportStar(require("./cosmos-db/documents/chat/chat-message-reply.dto"), exports);
|
|
35
35
|
__exportStar(require("./cosmos-db/documents/chat/chat-message.doc"), exports);
|
|
36
36
|
__exportStar(require("./cosmos-db/documents/chat/chat-message.dto"), exports);
|
|
37
|
+
__exportStar(require("./cosmos-db/documents/chat/chat-read.dto"), exports);
|
|
37
38
|
__exportStar(require("./cosmos-db/documents/chat/global-conversation-summary.dto"), exports);
|
|
38
39
|
__exportStar(require("./cosmos-db/documents/chat/group-chat-profile.doc"), exports);
|
|
39
40
|
__exportStar(require("./cosmos-db/documents/chat/user-block.doc"), exports);
|