mezon-js 2.13.93 → 2.13.95
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/client.ts +8 -3
- package/dist/mezon-js/proto/gen/api/api_pb.d.ts +4 -0
- package/dist/mezon-js/types/index.d.ts +2 -0
- package/dist/mezon-js.cjs.js +513 -79
- package/dist/mezon-js.esm.mjs +513 -79
- package/dist/mezon-js.esm.mjs.map +1 -1
- package/dist/proto/gen/api/api_pb.d.ts +4 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/proto/gen/api/api_pb.ts +6 -1
- package/types/index.ts +3 -1
package/client.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { create } from "@bufbuild/protobuf";
|
|
18
|
-
import { createGrpcWebTransport } from "@connectrpc/connect-web";
|
|
18
|
+
import { createConnectTransport, createGrpcWebTransport } from "@connectrpc/connect-web";
|
|
19
19
|
import {
|
|
20
20
|
CallOptions,
|
|
21
21
|
createClient,
|
|
@@ -405,7 +405,7 @@ export class Client {
|
|
|
405
405
|
basePath
|
|
406
406
|
);
|
|
407
407
|
|
|
408
|
-
this.grpcTransport =
|
|
408
|
+
this.grpcTransport = createConnectTransport({
|
|
409
409
|
baseUrl: basePath,
|
|
410
410
|
useBinaryFormat: true,
|
|
411
411
|
});
|
|
@@ -2276,7 +2276,7 @@ export class Client {
|
|
|
2276
2276
|
id: n.id,
|
|
2277
2277
|
clanId: n.clanId,
|
|
2278
2278
|
category: n.category,
|
|
2279
|
-
content:{
|
|
2279
|
+
content: {
|
|
2280
2280
|
title: content?.title,
|
|
2281
2281
|
link: content?.link,
|
|
2282
2282
|
content: content?.content,
|
|
@@ -2295,12 +2295,17 @@ export class Client {
|
|
|
2295
2295
|
isMentionRole: content?.is_mention_role,
|
|
2296
2296
|
attachmentType: content?.attachment_type,
|
|
2297
2297
|
hasMoreAttachment: content?.has_more_attachment,
|
|
2298
|
+
messageId: content?.message_id,
|
|
2298
2299
|
},
|
|
2299
2300
|
createTimeSeconds: n.createTimeSeconds,
|
|
2300
2301
|
channelId: n.channelId,
|
|
2301
2302
|
channelType: n.channelType,
|
|
2302
2303
|
avatarUrl: n.avatarUrl,
|
|
2303
2304
|
topicId: n.topicId,
|
|
2305
|
+
code: n.code,
|
|
2306
|
+
persistent: n.persistent,
|
|
2307
|
+
senderId: n.senderId,
|
|
2308
|
+
subject: n.subject,
|
|
2304
2309
|
});
|
|
2305
2310
|
});
|
|
2306
2311
|
|
|
@@ -10615,6 +10615,10 @@ export type DirectFcmProto = Message<"mezon.api.DirectFcmProto"> & {
|
|
|
10615
10615
|
* @generated from field: repeated bool is_mention_role = 18;
|
|
10616
10616
|
*/
|
|
10617
10617
|
isMentionRole: boolean[];
|
|
10618
|
+
/**
|
|
10619
|
+
* @generated from field: string message_id = 19;
|
|
10620
|
+
*/
|
|
10621
|
+
messageId: string;
|
|
10618
10622
|
};
|
|
10619
10623
|
/**
|
|
10620
10624
|
* Describes the message mezon.api.DirectFcmProto.
|
|
@@ -92,6 +92,8 @@ export interface NotificationFcmContent {
|
|
|
92
92
|
isMentionRole?: boolean[];
|
|
93
93
|
attachmentType?: string;
|
|
94
94
|
hasMoreAttachment?: boolean;
|
|
95
|
+
/** The unique ID of the message related to this notification, if any. */
|
|
96
|
+
messageId?: string;
|
|
95
97
|
}
|
|
96
98
|
/** A notification in the server. */
|
|
97
99
|
export interface Notification {
|