grm-shared-library 1.1.157 → 1.1.159
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-ws-send-message.dto.js +44 -0
- package/dist/cjs/modules/chat/dtos/chat-ws-send-message.dto.js.map +1 -0
- package/dist/cjs/modules/chat/index.js +2 -0
- package/dist/cjs/modules/chat/index.js.map +1 -1
- package/dist/cjs/modules/chat/interfaces/chat-presence-info.js +3 -0
- package/dist/cjs/modules/chat/interfaces/chat-presence-info.js.map +1 -0
- package/dist/esm/modules/chat/dtos/chat-ws-send-message.dto.js +40 -0
- package/dist/esm/modules/chat/dtos/chat-ws-send-message.dto.js.map +1 -0
- package/dist/esm/modules/chat/index.js +2 -0
- package/dist/esm/modules/chat/index.js.map +1 -1
- package/dist/esm/modules/chat/interfaces/chat-presence-info.js +2 -0
- package/dist/esm/modules/chat/interfaces/chat-presence-info.js.map +1 -0
- package/dist/types/modules/chat/dtos/chat-ws-send-message.dto.d.ts +8 -0
- package/dist/types/modules/chat/index.d.ts +2 -0
- package/dist/types/modules/chat/interfaces/chat-presence-info.d.ts +5 -0
- package/package.json +1 -1
|
@@ -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.ChatWsSendMessageDto = 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 ChatWsSendMessageDto {
|
|
16
|
+
}
|
|
17
|
+
exports.ChatWsSendMessageDto = ChatWsSendMessageDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ChatWsSendMessageDto.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
|
+
], ChatWsSendMessageDto.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
|
+
], ChatWsSendMessageDto.prototype, "type", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsObject)(),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], ChatWsSendMessageDto.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
|
+
], ChatWsSendMessageDto.prototype, "clientMessageId", void 0);
|
|
44
|
+
//# sourceMappingURL=chat-ws-send-message.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-ws-send-message.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/dtos/chat-ws-send-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"}
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
__exportStar(require("./dtos/chat-query.dto"), exports);
|
|
19
19
|
__exportStar(require("./dtos/create-chat-conversation.dto"), exports);
|
|
20
20
|
__exportStar(require("./dtos/create-chat-message.dto"), exports);
|
|
21
|
+
__exportStar(require("./dtos/chat-ws-send-message.dto"), exports);
|
|
21
22
|
// enums
|
|
22
23
|
__exportStar(require("./enums/chat-conversation-status.enum"), exports);
|
|
23
24
|
__exportStar(require("./enums/chat-conversation-type.enum"), exports);
|
|
@@ -28,4 +29,5 @@ __exportStar(require("./interfaces/chat-conversation"), exports);
|
|
|
28
29
|
__exportStar(require("./interfaces/chat-conversation-with-participants"), exports);
|
|
29
30
|
__exportStar(require("./interfaces/chat-message"), exports);
|
|
30
31
|
__exportStar(require("./interfaces/chat-participant"), exports);
|
|
32
|
+
__exportStar(require("./interfaces/chat-presence-info"), exports);
|
|
31
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chat/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,wDAAsC;AACtC,sEAAoD;AACpD,iEAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chat/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,wDAAsC;AACtC,sEAAoD;AACpD,iEAA+C;AAC/C,kEAAgD;AAEhD,QAAQ;AACR,wEAAsD;AACtD,sEAAoD;AACpD,iEAA+C;AAC/C,qEAAmD;AAEnD,aAAa;AACb,iEAA+C;AAC/C,mFAAiE;AACjE,4DAA0C;AAC1C,gEAA8C;AAC9C,kEAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-presence-info.js","sourceRoot":"","sources":["../../../../../src/modules/chat/interfaces/chat-presence-info.ts"],"names":[],"mappings":""}
|
|
@@ -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 ChatWsSendMessageDto {
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
IsString(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], ChatWsSendMessageDto.prototype, "conversationId", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsString(),
|
|
20
|
+
MinLength(1),
|
|
21
|
+
MaxLength(5000),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ChatWsSendMessageDto.prototype, "content", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
IsOptional(),
|
|
26
|
+
IsEnum(ChatMessageType),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ChatWsSendMessageDto.prototype, "type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
IsOptional(),
|
|
31
|
+
IsObject(),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], ChatWsSendMessageDto.prototype, "metadata", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
IsOptional(),
|
|
36
|
+
IsString(),
|
|
37
|
+
MaxLength(255),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ChatWsSendMessageDto.prototype, "clientMessageId", void 0);
|
|
40
|
+
//# sourceMappingURL=chat-ws-send-message.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-ws-send-message.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chat/dtos/chat-ws-send-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"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export * from './dtos/chat-query.dto';
|
|
3
3
|
export * from './dtos/create-chat-conversation.dto';
|
|
4
4
|
export * from './dtos/create-chat-message.dto';
|
|
5
|
+
export * from './dtos/chat-ws-send-message.dto';
|
|
5
6
|
// enums
|
|
6
7
|
export * from './enums/chat-conversation-status.enum';
|
|
7
8
|
export * from './enums/chat-conversation-type.enum';
|
|
@@ -12,4 +13,5 @@ export * from './interfaces/chat-conversation';
|
|
|
12
13
|
export * from './interfaces/chat-conversation-with-participants';
|
|
13
14
|
export * from './interfaces/chat-message';
|
|
14
15
|
export * from './interfaces/chat-participant';
|
|
16
|
+
export * from './interfaces/chat-presence-info';
|
|
15
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAC/C,cAAc,iCAAiC,CAAC;AAEhD,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;AAC9C,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-presence-info.js","sourceRoot":"","sources":["../../../../../src/modules/chat/interfaces/chat-presence-info.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './dtos/chat-query.dto';
|
|
2
2
|
export * from './dtos/create-chat-conversation.dto';
|
|
3
3
|
export * from './dtos/create-chat-message.dto';
|
|
4
|
+
export * from './dtos/chat-ws-send-message.dto';
|
|
4
5
|
export * from './enums/chat-conversation-status.enum';
|
|
5
6
|
export * from './enums/chat-conversation-type.enum';
|
|
6
7
|
export * from './enums/chat-message-type.enum';
|
|
@@ -9,3 +10,4 @@ export * from './interfaces/chat-conversation';
|
|
|
9
10
|
export * from './interfaces/chat-conversation-with-participants';
|
|
10
11
|
export * from './interfaces/chat-message';
|
|
11
12
|
export * from './interfaces/chat-participant';
|
|
13
|
+
export * from './interfaces/chat-presence-info';
|