mezon-js-protobuf 1.8.33 → 1.8.34
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 +0 -103
- package/dist/mezon-js-protobuf/api/api.d.ts +0 -33
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -612,16 +612,6 @@ export interface FriendList {
|
|
|
612
612
|
cursor: string;
|
|
613
613
|
}
|
|
614
614
|
|
|
615
|
-
/** Fetch a batch of zero or more users from the server. */
|
|
616
|
-
export interface GetUsersRequest {
|
|
617
|
-
/** The account id of a user. */
|
|
618
|
-
ids: string[];
|
|
619
|
-
/** The account username of a user. */
|
|
620
|
-
usernames: string[];
|
|
621
|
-
/** The Facebook ID of a user. */
|
|
622
|
-
facebook_ids: string[];
|
|
623
|
-
}
|
|
624
|
-
|
|
625
615
|
/** Fetch a batch of zero or more users from the server. */
|
|
626
616
|
export interface UpdateUsersRequest {
|
|
627
617
|
/** The account username of a user. */
|
|
@@ -7302,99 +7292,6 @@ export const FriendList = {
|
|
|
7302
7292
|
},
|
|
7303
7293
|
};
|
|
7304
7294
|
|
|
7305
|
-
function createBaseGetUsersRequest(): GetUsersRequest {
|
|
7306
|
-
return { ids: [], usernames: [], facebook_ids: [] };
|
|
7307
|
-
}
|
|
7308
|
-
|
|
7309
|
-
export const GetUsersRequest = {
|
|
7310
|
-
encode(message: GetUsersRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7311
|
-
for (const v of message.ids) {
|
|
7312
|
-
writer.uint32(10).string(v!);
|
|
7313
|
-
}
|
|
7314
|
-
for (const v of message.usernames) {
|
|
7315
|
-
writer.uint32(18).string(v!);
|
|
7316
|
-
}
|
|
7317
|
-
for (const v of message.facebook_ids) {
|
|
7318
|
-
writer.uint32(26).string(v!);
|
|
7319
|
-
}
|
|
7320
|
-
return writer;
|
|
7321
|
-
},
|
|
7322
|
-
|
|
7323
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GetUsersRequest {
|
|
7324
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7325
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7326
|
-
const message = createBaseGetUsersRequest();
|
|
7327
|
-
while (reader.pos < end) {
|
|
7328
|
-
const tag = reader.uint32();
|
|
7329
|
-
switch (tag >>> 3) {
|
|
7330
|
-
case 1:
|
|
7331
|
-
if (tag !== 10) {
|
|
7332
|
-
break;
|
|
7333
|
-
}
|
|
7334
|
-
|
|
7335
|
-
message.ids.push(reader.string());
|
|
7336
|
-
continue;
|
|
7337
|
-
case 2:
|
|
7338
|
-
if (tag !== 18) {
|
|
7339
|
-
break;
|
|
7340
|
-
}
|
|
7341
|
-
|
|
7342
|
-
message.usernames.push(reader.string());
|
|
7343
|
-
continue;
|
|
7344
|
-
case 3:
|
|
7345
|
-
if (tag !== 26) {
|
|
7346
|
-
break;
|
|
7347
|
-
}
|
|
7348
|
-
|
|
7349
|
-
message.facebook_ids.push(reader.string());
|
|
7350
|
-
continue;
|
|
7351
|
-
}
|
|
7352
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7353
|
-
break;
|
|
7354
|
-
}
|
|
7355
|
-
reader.skipType(tag & 7);
|
|
7356
|
-
}
|
|
7357
|
-
return message;
|
|
7358
|
-
},
|
|
7359
|
-
|
|
7360
|
-
fromJSON(object: any): GetUsersRequest {
|
|
7361
|
-
return {
|
|
7362
|
-
ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
|
|
7363
|
-
usernames: globalThis.Array.isArray(object?.usernames)
|
|
7364
|
-
? object.usernames.map((e: any) => globalThis.String(e))
|
|
7365
|
-
: [],
|
|
7366
|
-
facebook_ids: globalThis.Array.isArray(object?.facebook_ids)
|
|
7367
|
-
? object.facebook_ids.map((e: any) => globalThis.String(e))
|
|
7368
|
-
: [],
|
|
7369
|
-
};
|
|
7370
|
-
},
|
|
7371
|
-
|
|
7372
|
-
toJSON(message: GetUsersRequest): unknown {
|
|
7373
|
-
const obj: any = {};
|
|
7374
|
-
if (message.ids?.length) {
|
|
7375
|
-
obj.ids = message.ids;
|
|
7376
|
-
}
|
|
7377
|
-
if (message.usernames?.length) {
|
|
7378
|
-
obj.usernames = message.usernames;
|
|
7379
|
-
}
|
|
7380
|
-
if (message.facebook_ids?.length) {
|
|
7381
|
-
obj.facebook_ids = message.facebook_ids;
|
|
7382
|
-
}
|
|
7383
|
-
return obj;
|
|
7384
|
-
},
|
|
7385
|
-
|
|
7386
|
-
create<I extends Exact<DeepPartial<GetUsersRequest>, I>>(base?: I): GetUsersRequest {
|
|
7387
|
-
return GetUsersRequest.fromPartial(base ?? ({} as any));
|
|
7388
|
-
},
|
|
7389
|
-
fromPartial<I extends Exact<DeepPartial<GetUsersRequest>, I>>(object: I): GetUsersRequest {
|
|
7390
|
-
const message = createBaseGetUsersRequest();
|
|
7391
|
-
message.ids = object.ids?.map((e) => e) || [];
|
|
7392
|
-
message.usernames = object.usernames?.map((e) => e) || [];
|
|
7393
|
-
message.facebook_ids = object.facebook_ids?.map((e) => e) || [];
|
|
7394
|
-
return message;
|
|
7395
|
-
},
|
|
7396
|
-
};
|
|
7397
|
-
|
|
7398
7295
|
function createBaseUpdateUsersRequest(): UpdateUsersRequest {
|
|
7399
7296
|
return { display_name: "", avatar_url: "" };
|
|
7400
7297
|
}
|
|
@@ -411,15 +411,6 @@ export interface FriendList {
|
|
|
411
411
|
cursor: string;
|
|
412
412
|
}
|
|
413
413
|
/** Fetch a batch of zero or more users from the server. */
|
|
414
|
-
export interface GetUsersRequest {
|
|
415
|
-
/** The account id of a user. */
|
|
416
|
-
ids: string[];
|
|
417
|
-
/** The account username of a user. */
|
|
418
|
-
usernames: string[];
|
|
419
|
-
/** The Facebook ID of a user. */
|
|
420
|
-
facebook_ids: string[];
|
|
421
|
-
}
|
|
422
|
-
/** Fetch a batch of zero or more users from the server. */
|
|
423
414
|
export interface UpdateUsersRequest {
|
|
424
415
|
/** The account username of a user. */
|
|
425
416
|
display_name: string;
|
|
@@ -5356,30 +5347,6 @@ export declare const FriendList: {
|
|
|
5356
5347
|
cursor?: string | undefined;
|
|
5357
5348
|
} & { [K_9 in Exclude<keyof I_1, keyof FriendList>]: never; }>(object: I_1): FriendList;
|
|
5358
5349
|
};
|
|
5359
|
-
export declare const GetUsersRequest: {
|
|
5360
|
-
encode(message: GetUsersRequest, writer?: _m0.Writer): _m0.Writer;
|
|
5361
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GetUsersRequest;
|
|
5362
|
-
fromJSON(object: any): GetUsersRequest;
|
|
5363
|
-
toJSON(message: GetUsersRequest): unknown;
|
|
5364
|
-
create<I extends {
|
|
5365
|
-
ids?: string[] | undefined;
|
|
5366
|
-
usernames?: string[] | undefined;
|
|
5367
|
-
facebook_ids?: string[] | undefined;
|
|
5368
|
-
} & {
|
|
5369
|
-
ids?: (string[] & string[] & { [K in Exclude<keyof I["ids"], keyof string[]>]: never; }) | undefined;
|
|
5370
|
-
usernames?: (string[] & string[] & { [K_1 in Exclude<keyof I["usernames"], keyof string[]>]: never; }) | undefined;
|
|
5371
|
-
facebook_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I["facebook_ids"], keyof string[]>]: never; }) | undefined;
|
|
5372
|
-
} & { [K_3 in Exclude<keyof I, keyof GetUsersRequest>]: never; }>(base?: I | undefined): GetUsersRequest;
|
|
5373
|
-
fromPartial<I_1 extends {
|
|
5374
|
-
ids?: string[] | undefined;
|
|
5375
|
-
usernames?: string[] | undefined;
|
|
5376
|
-
facebook_ids?: string[] | undefined;
|
|
5377
|
-
} & {
|
|
5378
|
-
ids?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["ids"], keyof string[]>]: never; }) | undefined;
|
|
5379
|
-
usernames?: (string[] & string[] & { [K_5 in Exclude<keyof I_1["usernames"], keyof string[]>]: never; }) | undefined;
|
|
5380
|
-
facebook_ids?: (string[] & string[] & { [K_6 in Exclude<keyof I_1["facebook_ids"], keyof string[]>]: never; }) | undefined;
|
|
5381
|
-
} & { [K_7 in Exclude<keyof I_1, keyof GetUsersRequest>]: never; }>(object: I_1): GetUsersRequest;
|
|
5382
|
-
};
|
|
5383
5350
|
export declare const UpdateUsersRequest: {
|
|
5384
5351
|
encode(message: UpdateUsersRequest, writer?: _m0.Writer): _m0.Writer;
|
|
5385
5352
|
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateUsersRequest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.34",
|
|
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",
|