mezon-js-protobuf 1.8.83 → 1.8.85
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/api/api.ts
CHANGED
|
@@ -3751,6 +3751,7 @@ export interface DirectFcmProto {
|
|
|
3751
3751
|
attachment_type: string;
|
|
3752
3752
|
has_more_attachment: boolean;
|
|
3753
3753
|
is_mention_role: boolean[];
|
|
3754
|
+
message_id: string;
|
|
3754
3755
|
}
|
|
3755
3756
|
|
|
3756
3757
|
export interface MessageMentionList {
|
|
@@ -39061,6 +39062,7 @@ function createBaseDirectFcmProto(): DirectFcmProto {
|
|
|
39061
39062
|
attachment_type: "",
|
|
39062
39063
|
has_more_attachment: false,
|
|
39063
39064
|
is_mention_role: [],
|
|
39065
|
+
message_id: "",
|
|
39064
39066
|
};
|
|
39065
39067
|
}
|
|
39066
39068
|
|
|
@@ -39126,6 +39128,9 @@ export const DirectFcmProto = {
|
|
|
39126
39128
|
writer.bool(v);
|
|
39127
39129
|
}
|
|
39128
39130
|
writer.ldelim();
|
|
39131
|
+
if (message.message_id !== "") {
|
|
39132
|
+
writer.uint32(154).string(message.message_id);
|
|
39133
|
+
}
|
|
39129
39134
|
return writer;
|
|
39130
39135
|
},
|
|
39131
39136
|
|
|
@@ -39292,6 +39297,13 @@ export const DirectFcmProto = {
|
|
|
39292
39297
|
}
|
|
39293
39298
|
|
|
39294
39299
|
break;
|
|
39300
|
+
case 19:
|
|
39301
|
+
if (tag !== 154) {
|
|
39302
|
+
break;
|
|
39303
|
+
}
|
|
39304
|
+
|
|
39305
|
+
message.message_id = reader.string();
|
|
39306
|
+
continue;
|
|
39295
39307
|
}
|
|
39296
39308
|
if ((tag & 7) === 4 || tag === 0) {
|
|
39297
39309
|
break;
|
|
@@ -39329,6 +39341,7 @@ export const DirectFcmProto = {
|
|
|
39329
39341
|
is_mention_role: globalThis.Array.isArray(object?.is_mention_role)
|
|
39330
39342
|
? object.is_mention_role.map((e: any) => globalThis.Boolean(e))
|
|
39331
39343
|
: [],
|
|
39344
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
39332
39345
|
};
|
|
39333
39346
|
},
|
|
39334
39347
|
|
|
@@ -39388,6 +39401,9 @@ export const DirectFcmProto = {
|
|
|
39388
39401
|
if (message.is_mention_role?.length) {
|
|
39389
39402
|
obj.is_mention_role = message.is_mention_role;
|
|
39390
39403
|
}
|
|
39404
|
+
if (message.message_id !== "") {
|
|
39405
|
+
obj.message_id = message.message_id;
|
|
39406
|
+
}
|
|
39391
39407
|
return obj;
|
|
39392
39408
|
},
|
|
39393
39409
|
|
|
@@ -39414,6 +39430,7 @@ export const DirectFcmProto = {
|
|
|
39414
39430
|
message.attachment_type = object.attachment_type ?? "";
|
|
39415
39431
|
message.has_more_attachment = object.has_more_attachment ?? false;
|
|
39416
39432
|
message.is_mention_role = object.is_mention_role?.map((e) => e) || [];
|
|
39433
|
+
message.message_id = object.message_id ?? "";
|
|
39417
39434
|
return message;
|
|
39418
39435
|
},
|
|
39419
39436
|
};
|
|
@@ -3137,6 +3137,7 @@ export interface DirectFcmProto {
|
|
|
3137
3137
|
attachment_type: string;
|
|
3138
3138
|
has_more_attachment: boolean;
|
|
3139
3139
|
is_mention_role: boolean[];
|
|
3140
|
+
message_id: string;
|
|
3140
3141
|
}
|
|
3141
3142
|
export interface MessageMentionList {
|
|
3142
3143
|
mentions: MessageMention[];
|
|
@@ -23264,6 +23265,7 @@ export declare const DirectFcmProto: {
|
|
|
23264
23265
|
attachment_type?: string | undefined;
|
|
23265
23266
|
has_more_attachment?: boolean | undefined;
|
|
23266
23267
|
is_mention_role?: boolean[] | undefined;
|
|
23268
|
+
message_id?: string | undefined;
|
|
23267
23269
|
} & {
|
|
23268
23270
|
title?: string | undefined;
|
|
23269
23271
|
link?: string | undefined;
|
|
@@ -23283,6 +23285,7 @@ export declare const DirectFcmProto: {
|
|
|
23283
23285
|
attachment_type?: string | undefined;
|
|
23284
23286
|
has_more_attachment?: boolean | undefined;
|
|
23285
23287
|
is_mention_role?: (boolean[] & boolean[] & { [K_3 in Exclude<keyof I["is_mention_role"], keyof boolean[]>]: never; }) | undefined;
|
|
23288
|
+
message_id?: string | undefined;
|
|
23286
23289
|
} & { [K_4 in Exclude<keyof I, keyof DirectFcmProto>]: never; }>(base?: I | undefined): DirectFcmProto;
|
|
23287
23290
|
fromPartial<I_1 extends {
|
|
23288
23291
|
title?: string | undefined;
|
|
@@ -23303,6 +23306,7 @@ export declare const DirectFcmProto: {
|
|
|
23303
23306
|
attachment_type?: string | undefined;
|
|
23304
23307
|
has_more_attachment?: boolean | undefined;
|
|
23305
23308
|
is_mention_role?: boolean[] | undefined;
|
|
23309
|
+
message_id?: string | undefined;
|
|
23306
23310
|
} & {
|
|
23307
23311
|
title?: string | undefined;
|
|
23308
23312
|
link?: string | undefined;
|
|
@@ -23322,6 +23326,7 @@ export declare const DirectFcmProto: {
|
|
|
23322
23326
|
attachment_type?: string | undefined;
|
|
23323
23327
|
has_more_attachment?: boolean | undefined;
|
|
23324
23328
|
is_mention_role?: (boolean[] & boolean[] & { [K_8 in Exclude<keyof I_1["is_mention_role"], keyof boolean[]>]: never; }) | undefined;
|
|
23329
|
+
message_id?: string | undefined;
|
|
23325
23330
|
} & { [K_9 in Exclude<keyof I_1, keyof DirectFcmProto>]: never; }>(object: I_1): DirectFcmProto;
|
|
23326
23331
|
};
|
|
23327
23332
|
export declare const MessageMentionList: {
|
|
@@ -14180,7 +14180,8 @@ function createBaseDirectFcmProto() {
|
|
|
14180
14180
|
position_e: [],
|
|
14181
14181
|
attachment_type: "",
|
|
14182
14182
|
has_more_attachment: false,
|
|
14183
|
-
is_mention_role: []
|
|
14183
|
+
is_mention_role: [],
|
|
14184
|
+
message_id: ""
|
|
14184
14185
|
};
|
|
14185
14186
|
}
|
|
14186
14187
|
var DirectFcmProto = {
|
|
@@ -14245,6 +14246,9 @@ var DirectFcmProto = {
|
|
|
14245
14246
|
writer.bool(v);
|
|
14246
14247
|
}
|
|
14247
14248
|
writer.ldelim();
|
|
14249
|
+
if (message.message_id !== "") {
|
|
14250
|
+
writer.uint32(154).string(message.message_id);
|
|
14251
|
+
}
|
|
14248
14252
|
return writer;
|
|
14249
14253
|
},
|
|
14250
14254
|
decode(input, length) {
|
|
@@ -14383,6 +14387,12 @@ var DirectFcmProto = {
|
|
|
14383
14387
|
continue;
|
|
14384
14388
|
}
|
|
14385
14389
|
break;
|
|
14390
|
+
case 19:
|
|
14391
|
+
if (tag !== 154) {
|
|
14392
|
+
break;
|
|
14393
|
+
}
|
|
14394
|
+
message.message_id = reader.string();
|
|
14395
|
+
continue;
|
|
14386
14396
|
}
|
|
14387
14397
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14388
14398
|
break;
|
|
@@ -14410,7 +14420,8 @@ var DirectFcmProto = {
|
|
|
14410
14420
|
position_e: globalThis.Array.isArray(object == null ? void 0 : object.position_e) ? object.position_e.map((e) => globalThis.Number(e)) : [],
|
|
14411
14421
|
attachment_type: isSet2(object.attachment_type) ? globalThis.String(object.attachment_type) : "",
|
|
14412
14422
|
has_more_attachment: isSet2(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false,
|
|
14413
|
-
is_mention_role: globalThis.Array.isArray(object == null ? void 0 : object.is_mention_role) ? object.is_mention_role.map((e) => globalThis.Boolean(e)) : []
|
|
14423
|
+
is_mention_role: globalThis.Array.isArray(object == null ? void 0 : object.is_mention_role) ? object.is_mention_role.map((e) => globalThis.Boolean(e)) : [],
|
|
14424
|
+
message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : ""
|
|
14414
14425
|
};
|
|
14415
14426
|
},
|
|
14416
14427
|
toJSON(message) {
|
|
@@ -14470,13 +14481,16 @@ var DirectFcmProto = {
|
|
|
14470
14481
|
if ((_d = message.is_mention_role) == null ? void 0 : _d.length) {
|
|
14471
14482
|
obj.is_mention_role = message.is_mention_role;
|
|
14472
14483
|
}
|
|
14484
|
+
if (message.message_id !== "") {
|
|
14485
|
+
obj.message_id = message.message_id;
|
|
14486
|
+
}
|
|
14473
14487
|
return obj;
|
|
14474
14488
|
},
|
|
14475
14489
|
create(base) {
|
|
14476
14490
|
return DirectFcmProto.fromPartial(base != null ? base : {});
|
|
14477
14491
|
},
|
|
14478
14492
|
fromPartial(object) {
|
|
14479
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
14493
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
14480
14494
|
const message = createBaseDirectFcmProto();
|
|
14481
14495
|
message.title = (_a = object.title) != null ? _a : "";
|
|
14482
14496
|
message.link = (_b = object.link) != null ? _b : "";
|
|
@@ -14496,6 +14510,7 @@ var DirectFcmProto = {
|
|
|
14496
14510
|
message.attachment_type = (_p = object.attachment_type) != null ? _p : "";
|
|
14497
14511
|
message.has_more_attachment = (_q = object.has_more_attachment) != null ? _q : false;
|
|
14498
14512
|
message.is_mention_role = ((_r = object.is_mention_role) == null ? void 0 : _r.map((e) => e)) || [];
|
|
14513
|
+
message.message_id = (_s = object.message_id) != null ? _s : "";
|
|
14499
14514
|
return message;
|
|
14500
14515
|
}
|
|
14501
14516
|
};
|
|
@@ -14162,7 +14162,8 @@ function createBaseDirectFcmProto() {
|
|
|
14162
14162
|
position_e: [],
|
|
14163
14163
|
attachment_type: "",
|
|
14164
14164
|
has_more_attachment: false,
|
|
14165
|
-
is_mention_role: []
|
|
14165
|
+
is_mention_role: [],
|
|
14166
|
+
message_id: ""
|
|
14166
14167
|
};
|
|
14167
14168
|
}
|
|
14168
14169
|
var DirectFcmProto = {
|
|
@@ -14227,6 +14228,9 @@ var DirectFcmProto = {
|
|
|
14227
14228
|
writer.bool(v);
|
|
14228
14229
|
}
|
|
14229
14230
|
writer.ldelim();
|
|
14231
|
+
if (message.message_id !== "") {
|
|
14232
|
+
writer.uint32(154).string(message.message_id);
|
|
14233
|
+
}
|
|
14230
14234
|
return writer;
|
|
14231
14235
|
},
|
|
14232
14236
|
decode(input, length) {
|
|
@@ -14365,6 +14369,12 @@ var DirectFcmProto = {
|
|
|
14365
14369
|
continue;
|
|
14366
14370
|
}
|
|
14367
14371
|
break;
|
|
14372
|
+
case 19:
|
|
14373
|
+
if (tag !== 154) {
|
|
14374
|
+
break;
|
|
14375
|
+
}
|
|
14376
|
+
message.message_id = reader.string();
|
|
14377
|
+
continue;
|
|
14368
14378
|
}
|
|
14369
14379
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14370
14380
|
break;
|
|
@@ -14392,7 +14402,8 @@ var DirectFcmProto = {
|
|
|
14392
14402
|
position_e: globalThis.Array.isArray(object == null ? void 0 : object.position_e) ? object.position_e.map((e) => globalThis.Number(e)) : [],
|
|
14393
14403
|
attachment_type: isSet2(object.attachment_type) ? globalThis.String(object.attachment_type) : "",
|
|
14394
14404
|
has_more_attachment: isSet2(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false,
|
|
14395
|
-
is_mention_role: globalThis.Array.isArray(object == null ? void 0 : object.is_mention_role) ? object.is_mention_role.map((e) => globalThis.Boolean(e)) : []
|
|
14405
|
+
is_mention_role: globalThis.Array.isArray(object == null ? void 0 : object.is_mention_role) ? object.is_mention_role.map((e) => globalThis.Boolean(e)) : [],
|
|
14406
|
+
message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : ""
|
|
14396
14407
|
};
|
|
14397
14408
|
},
|
|
14398
14409
|
toJSON(message) {
|
|
@@ -14452,13 +14463,16 @@ var DirectFcmProto = {
|
|
|
14452
14463
|
if ((_d = message.is_mention_role) == null ? void 0 : _d.length) {
|
|
14453
14464
|
obj.is_mention_role = message.is_mention_role;
|
|
14454
14465
|
}
|
|
14466
|
+
if (message.message_id !== "") {
|
|
14467
|
+
obj.message_id = message.message_id;
|
|
14468
|
+
}
|
|
14455
14469
|
return obj;
|
|
14456
14470
|
},
|
|
14457
14471
|
create(base) {
|
|
14458
14472
|
return DirectFcmProto.fromPartial(base != null ? base : {});
|
|
14459
14473
|
},
|
|
14460
14474
|
fromPartial(object) {
|
|
14461
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
14475
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
14462
14476
|
const message = createBaseDirectFcmProto();
|
|
14463
14477
|
message.title = (_a = object.title) != null ? _a : "";
|
|
14464
14478
|
message.link = (_b = object.link) != null ? _b : "";
|
|
@@ -14478,6 +14492,7 @@ var DirectFcmProto = {
|
|
|
14478
14492
|
message.attachment_type = (_p = object.attachment_type) != null ? _p : "";
|
|
14479
14493
|
message.has_more_attachment = (_q = object.has_more_attachment) != null ? _q : false;
|
|
14480
14494
|
message.is_mention_role = ((_r = object.is_mention_role) == null ? void 0 : _r.map((e) => e)) || [];
|
|
14495
|
+
message.message_id = (_s = object.message_id) != null ? _s : "";
|
|
14481
14496
|
return message;
|
|
14482
14497
|
}
|
|
14483
14498
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.85",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|