@verychat/channel-protos 1.0.6 → 1.0.12
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/channel-services.proto +12 -0
- package/channel-types.proto +14 -1
- package/dist/index.d.ts +3 -0
- package/dist/proto-libs/channel-services.d.ts +12 -2
- package/dist/proto-libs/channel-services.js +2 -1
- package/dist/proto-libs/channel-types.d.ts +12 -0
- package/dist/proto-libs/channel-types.js +1 -1
- package/package.json +1 -1
- package/proto-libs/channel-services.ts +18 -2
- package/proto-libs/channel-types.ts +14 -1
package/channel-services.proto
CHANGED
|
@@ -26,6 +26,16 @@ message CreateChannelResponse {
|
|
|
26
26
|
string channelId = 1;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
message EditChannelRequest {
|
|
30
|
+
string channelId = 1;
|
|
31
|
+
int32 userId = 2;
|
|
32
|
+
EditChannelDto dto = 3;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message EditChannelResponse {
|
|
36
|
+
string channelId = 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
29
39
|
message GetChannelInfoRequest {
|
|
30
40
|
string channelId = 1;
|
|
31
41
|
}
|
|
@@ -173,6 +183,8 @@ message GetMembersResponse {
|
|
|
173
183
|
|
|
174
184
|
service ChannelService {
|
|
175
185
|
rpc CreateChannel (CreateChannelRequest) returns (CreateChannelResponse);
|
|
186
|
+
rpc EditChannel (EditChannelRequest) returns (EditChannelResponse);
|
|
187
|
+
|
|
176
188
|
rpc GetMyChannels (GetChannelRequest) returns (GetMyChannelsResponse);
|
|
177
189
|
rpc GetMySubscribeChannels (GetChannelRequest) returns (GetMySubscribedChannelResponse);
|
|
178
190
|
|
package/channel-types.proto
CHANGED
|
@@ -22,6 +22,8 @@ message ChannelInfo {
|
|
|
22
22
|
optional int32 holdMessageSeq = 9;
|
|
23
23
|
optional int32 lastMessageSeq = 10;
|
|
24
24
|
optional int32 lastStreamId = 11;
|
|
25
|
+
optional int32 lastChannelChatMessageSeq = 12;
|
|
26
|
+
optional int32 lastChannelChatStreamId = 13;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
message Channel {
|
|
@@ -31,6 +33,9 @@ message Channel {
|
|
|
31
33
|
string thumbnailUrl = 4;
|
|
32
34
|
LastMessage lastMessage = 5;
|
|
33
35
|
string channelId = 6;
|
|
36
|
+
string userChannelId = 7;
|
|
37
|
+
int32 ownerId = 8;
|
|
38
|
+
string countryCode = 9;
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
message UserChannel {
|
|
@@ -48,6 +53,14 @@ message CreateChannelDto {
|
|
|
48
53
|
optional string thumbnailUrl = 6;
|
|
49
54
|
}
|
|
50
55
|
|
|
56
|
+
message EditChannelDto {
|
|
57
|
+
optional string title = 1;
|
|
58
|
+
optional string description = 2;
|
|
59
|
+
optional ChannelType type = 3;
|
|
60
|
+
optional string password = 4;
|
|
61
|
+
optional string thumbnailUrl = 5;
|
|
62
|
+
}
|
|
63
|
+
|
|
51
64
|
message CreateMessageDto {
|
|
52
65
|
MessageType type = 1;
|
|
53
66
|
string message = 2;
|
|
@@ -70,7 +83,7 @@ message ChannelMessage {
|
|
|
70
83
|
int32 seq = 5;
|
|
71
84
|
string message = 6;
|
|
72
85
|
repeated int32 mentions = 7;
|
|
73
|
-
|
|
86
|
+
int32 reply = 8;
|
|
74
87
|
repeated Reaction reactions = 9;
|
|
75
88
|
}
|
|
76
89
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { GetMyChannelsResponse } from './proto-libs/channel-services';
|
|
|
4
4
|
export { GetMySubscribedChannelResponse } from './proto-libs/channel-services';
|
|
5
5
|
export { CreateChannelRequest } from './proto-libs/channel-services';
|
|
6
6
|
export { CreateChannelResponse } from './proto-libs/channel-services';
|
|
7
|
+
export { EditChannelRequest } from './proto-libs/channel-services';
|
|
8
|
+
export { EditChannelResponse } from './proto-libs/channel-services';
|
|
7
9
|
export { GetChannelInfoRequest } from './proto-libs/channel-services';
|
|
8
10
|
export { GetChannelInfoResponse } from './proto-libs/channel-services';
|
|
9
11
|
export { ReadMessageRequest } from './proto-libs/channel-services';
|
|
@@ -43,6 +45,7 @@ export { ChannelInfo } from './proto-libs/channel-types';
|
|
|
43
45
|
export { Channel } from './proto-libs/channel-types';
|
|
44
46
|
export { UserChannel } from './proto-libs/channel-types';
|
|
45
47
|
export { CreateChannelDto } from './proto-libs/channel-types';
|
|
48
|
+
export { EditChannelDto } from './proto-libs/channel-types';
|
|
46
49
|
export { CreateMessageDto } from './proto-libs/channel-types';
|
|
47
50
|
export { ReactionMessageDto } from './proto-libs/channel-types';
|
|
48
51
|
export { ChannelMessage } from './proto-libs/channel-types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Metadata } from "@grpc/grpc-js";
|
|
1
|
+
import type { Metadata } from "@grpc/grpc-js";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import { Channel, ChannelInfo, ChannelMessage, CreateChannelDto, CreateMessageDto, MessageReaction, Operator, ReactionMessageDto, UserChannel } from "./channel-types";
|
|
3
|
+
import { Channel, ChannelInfo, ChannelMessage, CreateChannelDto, CreateMessageDto, EditChannelDto, MessageReaction, Operator, ReactionMessageDto, UserChannel } from "./channel-types";
|
|
4
4
|
export declare const protobufPackage = "channel";
|
|
5
5
|
export interface Empty {
|
|
6
6
|
}
|
|
@@ -20,6 +20,14 @@ export interface CreateChannelRequest {
|
|
|
20
20
|
export interface CreateChannelResponse {
|
|
21
21
|
channelId: string;
|
|
22
22
|
}
|
|
23
|
+
export interface EditChannelRequest {
|
|
24
|
+
channelId: string;
|
|
25
|
+
userId: number;
|
|
26
|
+
dto: EditChannelDto | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface EditChannelResponse {
|
|
29
|
+
channelId: string;
|
|
30
|
+
}
|
|
23
31
|
export interface GetChannelInfoRequest {
|
|
24
32
|
channelId: string;
|
|
25
33
|
}
|
|
@@ -146,6 +154,7 @@ export interface GetMembersResponse {
|
|
|
146
154
|
export declare const CHANNEL_PACKAGE_NAME = "channel";
|
|
147
155
|
export interface ChannelServiceClient {
|
|
148
156
|
createChannel(request: CreateChannelRequest, metadata?: Metadata): Observable<CreateChannelResponse>;
|
|
157
|
+
editChannel(request: EditChannelRequest, metadata?: Metadata): Observable<EditChannelResponse>;
|
|
149
158
|
getMyChannels(request: GetChannelRequest, metadata?: Metadata): Observable<GetMyChannelsResponse>;
|
|
150
159
|
getMySubscribeChannels(request: GetChannelRequest, metadata?: Metadata): Observable<GetMySubscribedChannelResponse>;
|
|
151
160
|
getChannelInfo(request: GetChannelInfoRequest, metadata?: Metadata): Observable<GetChannelInfoResponse>;
|
|
@@ -177,6 +186,7 @@ export interface ChannelServiceClient {
|
|
|
177
186
|
}
|
|
178
187
|
export interface ChannelServiceController {
|
|
179
188
|
createChannel(request: CreateChannelRequest, metadata?: Metadata): Observable<CreateChannelResponse>;
|
|
189
|
+
editChannel(request: EditChannelRequest, metadata?: Metadata): Observable<EditChannelResponse>;
|
|
180
190
|
getMyChannels(request: GetChannelRequest, metadata?: Metadata): Observable<GetMyChannelsResponse>;
|
|
181
191
|
getMySubscribeChannels(request: GetChannelRequest, metadata?: Metadata): Observable<GetMySubscribedChannelResponse>;
|
|
182
192
|
getChannelInfo(request: GetChannelInfoRequest, metadata?: Metadata): Observable<GetChannelInfoResponse>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: channel-services.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -14,6 +14,7 @@ function ChannelServiceControllerMethods() {
|
|
|
14
14
|
return function (constructor) {
|
|
15
15
|
const grpcMethods = [
|
|
16
16
|
"createChannel",
|
|
17
|
+
"editChannel",
|
|
17
18
|
"getMyChannels",
|
|
18
19
|
"getMySubscribeChannels",
|
|
19
20
|
"getChannelInfo",
|
|
@@ -30,6 +30,8 @@ export interface ChannelInfo {
|
|
|
30
30
|
holdMessageSeq?: number | undefined;
|
|
31
31
|
lastMessageSeq?: number | undefined;
|
|
32
32
|
lastStreamId?: number | undefined;
|
|
33
|
+
lastChannelChatMessageSeq?: number | undefined;
|
|
34
|
+
lastChannelChatStreamId?: number | undefined;
|
|
33
35
|
}
|
|
34
36
|
export interface Channel {
|
|
35
37
|
title: string;
|
|
@@ -38,6 +40,9 @@ export interface Channel {
|
|
|
38
40
|
thumbnailUrl: string;
|
|
39
41
|
lastMessage: LastMessage | undefined;
|
|
40
42
|
channelId: string;
|
|
43
|
+
userChannelId: string;
|
|
44
|
+
ownerId: number;
|
|
45
|
+
countryCode: string;
|
|
41
46
|
}
|
|
42
47
|
export interface UserChannel {
|
|
43
48
|
channelId: string;
|
|
@@ -52,6 +57,13 @@ export interface CreateChannelDto {
|
|
|
52
57
|
password?: string | undefined;
|
|
53
58
|
thumbnailUrl?: string | undefined;
|
|
54
59
|
}
|
|
60
|
+
export interface EditChannelDto {
|
|
61
|
+
title?: string | undefined;
|
|
62
|
+
description?: string | undefined;
|
|
63
|
+
type?: ChannelType | undefined;
|
|
64
|
+
password?: string | undefined;
|
|
65
|
+
thumbnailUrl?: string | undefined;
|
|
66
|
+
}
|
|
55
67
|
export interface CreateMessageDto {
|
|
56
68
|
type: MessageType;
|
|
57
69
|
message: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: channel-types.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.5
|
|
4
4
|
// protoc v3.20.3
|
|
5
5
|
// source: channel-services.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
8
|
-
import { Metadata } from "@grpc/grpc-js";
|
|
8
|
+
import type { Metadata } from "@grpc/grpc-js";
|
|
9
9
|
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
10
10
|
import { Observable } from "rxjs";
|
|
11
11
|
import {
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
ChannelMessage,
|
|
15
15
|
CreateChannelDto,
|
|
16
16
|
CreateMessageDto,
|
|
17
|
+
EditChannelDto,
|
|
17
18
|
MessageReaction,
|
|
18
19
|
Operator,
|
|
19
20
|
ReactionMessageDto,
|
|
@@ -46,6 +47,16 @@ export interface CreateChannelResponse {
|
|
|
46
47
|
channelId: string;
|
|
47
48
|
}
|
|
48
49
|
|
|
50
|
+
export interface EditChannelRequest {
|
|
51
|
+
channelId: string;
|
|
52
|
+
userId: number;
|
|
53
|
+
dto: EditChannelDto | undefined;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface EditChannelResponse {
|
|
57
|
+
channelId: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
49
60
|
export interface GetChannelInfoRequest {
|
|
50
61
|
channelId: string;
|
|
51
62
|
}
|
|
@@ -201,6 +212,8 @@ export const CHANNEL_PACKAGE_NAME = "channel";
|
|
|
201
212
|
export interface ChannelServiceClient {
|
|
202
213
|
createChannel(request: CreateChannelRequest, metadata?: Metadata): Observable<CreateChannelResponse>;
|
|
203
214
|
|
|
215
|
+
editChannel(request: EditChannelRequest, metadata?: Metadata): Observable<EditChannelResponse>;
|
|
216
|
+
|
|
204
217
|
getMyChannels(request: GetChannelRequest, metadata?: Metadata): Observable<GetMyChannelsResponse>;
|
|
205
218
|
|
|
206
219
|
getMySubscribeChannels(request: GetChannelRequest, metadata?: Metadata): Observable<GetMySubscribedChannelResponse>;
|
|
@@ -267,6 +280,8 @@ export interface ChannelServiceClient {
|
|
|
267
280
|
export interface ChannelServiceController {
|
|
268
281
|
createChannel(request: CreateChannelRequest, metadata?: Metadata): Observable<CreateChannelResponse>;
|
|
269
282
|
|
|
283
|
+
editChannel(request: EditChannelRequest, metadata?: Metadata): Observable<EditChannelResponse>;
|
|
284
|
+
|
|
270
285
|
getMyChannels(request: GetChannelRequest, metadata?: Metadata): Observable<GetMyChannelsResponse>;
|
|
271
286
|
|
|
272
287
|
getMySubscribeChannels(request: GetChannelRequest, metadata?: Metadata): Observable<GetMySubscribedChannelResponse>;
|
|
@@ -334,6 +349,7 @@ export function ChannelServiceControllerMethods() {
|
|
|
334
349
|
return function (constructor: Function) {
|
|
335
350
|
const grpcMethods: string[] = [
|
|
336
351
|
"createChannel",
|
|
352
|
+
"editChannel",
|
|
337
353
|
"getMyChannels",
|
|
338
354
|
"getMySubscribeChannels",
|
|
339
355
|
"getChannelInfo",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.5
|
|
4
4
|
// protoc v3.20.3
|
|
5
5
|
// source: channel-types.proto
|
|
6
6
|
|
|
@@ -42,6 +42,8 @@ export interface ChannelInfo {
|
|
|
42
42
|
holdMessageSeq?: number | undefined;
|
|
43
43
|
lastMessageSeq?: number | undefined;
|
|
44
44
|
lastStreamId?: number | undefined;
|
|
45
|
+
lastChannelChatMessageSeq?: number | undefined;
|
|
46
|
+
lastChannelChatStreamId?: number | undefined;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
export interface Channel {
|
|
@@ -51,6 +53,9 @@ export interface Channel {
|
|
|
51
53
|
thumbnailUrl: string;
|
|
52
54
|
lastMessage: LastMessage | undefined;
|
|
53
55
|
channelId: string;
|
|
56
|
+
userChannelId: string;
|
|
57
|
+
ownerId: number;
|
|
58
|
+
countryCode: string;
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
export interface UserChannel {
|
|
@@ -68,6 +73,14 @@ export interface CreateChannelDto {
|
|
|
68
73
|
thumbnailUrl?: string | undefined;
|
|
69
74
|
}
|
|
70
75
|
|
|
76
|
+
export interface EditChannelDto {
|
|
77
|
+
title?: string | undefined;
|
|
78
|
+
description?: string | undefined;
|
|
79
|
+
type?: ChannelType | undefined;
|
|
80
|
+
password?: string | undefined;
|
|
81
|
+
thumbnailUrl?: string | undefined;
|
|
82
|
+
}
|
|
83
|
+
|
|
71
84
|
export interface CreateMessageDto {
|
|
72
85
|
type: MessageType;
|
|
73
86
|
message: string;
|