mezon-js-protobuf 1.8.6 → 1.8.7

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
@@ -2910,18 +2910,18 @@ export interface RoleListEventRequest {
2910
2910
  /** clan id */
2911
2911
  clan_id: string;
2912
2912
  /** limit */
2913
- limit: string;
2913
+ limit: number;
2914
2914
  /** state */
2915
- state: string;
2915
+ state: number;
2916
2916
  /** cursor */
2917
2917
  cursor: string;
2918
2918
  }
2919
2919
 
2920
2920
  export interface RoleListEventResponse {
2921
2921
  /** limit */
2922
- limit: string;
2922
+ limit: number;
2923
2923
  /** state */
2924
- state: string;
2924
+ state: number;
2925
2925
  /** cursor */
2926
2926
  cursor: string;
2927
2927
  /** clan_id */
@@ -27768,7 +27768,7 @@ export const AllUserClans = {
27768
27768
  };
27769
27769
 
27770
27770
  function createBaseRoleListEventRequest(): RoleListEventRequest {
27771
- return { clan_id: "", limit: "", state: "", cursor: "" };
27771
+ return { clan_id: "", limit: 0, state: 0, cursor: "" };
27772
27772
  }
27773
27773
 
27774
27774
  export const RoleListEventRequest = {
@@ -27776,11 +27776,11 @@ export const RoleListEventRequest = {
27776
27776
  if (message.clan_id !== "") {
27777
27777
  writer.uint32(10).string(message.clan_id);
27778
27778
  }
27779
- if (message.limit !== "") {
27780
- writer.uint32(18).string(message.limit);
27779
+ if (message.limit !== 0) {
27780
+ writer.uint32(16).int32(message.limit);
27781
27781
  }
27782
- if (message.state !== "") {
27783
- writer.uint32(26).string(message.state);
27782
+ if (message.state !== 0) {
27783
+ writer.uint32(24).int32(message.state);
27784
27784
  }
27785
27785
  if (message.cursor !== "") {
27786
27786
  writer.uint32(34).string(message.cursor);
@@ -27803,18 +27803,18 @@ export const RoleListEventRequest = {
27803
27803
  message.clan_id = reader.string();
27804
27804
  continue;
27805
27805
  case 2:
27806
- if (tag !== 18) {
27806
+ if (tag !== 16) {
27807
27807
  break;
27808
27808
  }
27809
27809
 
27810
- message.limit = reader.string();
27810
+ message.limit = reader.int32();
27811
27811
  continue;
27812
27812
  case 3:
27813
- if (tag !== 26) {
27813
+ if (tag !== 24) {
27814
27814
  break;
27815
27815
  }
27816
27816
 
27817
- message.state = reader.string();
27817
+ message.state = reader.int32();
27818
27818
  continue;
27819
27819
  case 4:
27820
27820
  if (tag !== 34) {
@@ -27835,8 +27835,8 @@ export const RoleListEventRequest = {
27835
27835
  fromJSON(object: any): RoleListEventRequest {
27836
27836
  return {
27837
27837
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
27838
- limit: isSet(object.limit) ? globalThis.String(object.limit) : "",
27839
- state: isSet(object.state) ? globalThis.String(object.state) : "",
27838
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
27839
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
27840
27840
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
27841
27841
  };
27842
27842
  },
@@ -27846,11 +27846,11 @@ export const RoleListEventRequest = {
27846
27846
  if (message.clan_id !== "") {
27847
27847
  obj.clan_id = message.clan_id;
27848
27848
  }
27849
- if (message.limit !== "") {
27850
- obj.limit = message.limit;
27849
+ if (message.limit !== 0) {
27850
+ obj.limit = Math.round(message.limit);
27851
27851
  }
27852
- if (message.state !== "") {
27853
- obj.state = message.state;
27852
+ if (message.state !== 0) {
27853
+ obj.state = Math.round(message.state);
27854
27854
  }
27855
27855
  if (message.cursor !== "") {
27856
27856
  obj.cursor = message.cursor;
@@ -27864,24 +27864,24 @@ export const RoleListEventRequest = {
27864
27864
  fromPartial<I extends Exact<DeepPartial<RoleListEventRequest>, I>>(object: I): RoleListEventRequest {
27865
27865
  const message = createBaseRoleListEventRequest();
27866
27866
  message.clan_id = object.clan_id ?? "";
27867
- message.limit = object.limit ?? "";
27868
- message.state = object.state ?? "";
27867
+ message.limit = object.limit ?? 0;
27868
+ message.state = object.state ?? 0;
27869
27869
  message.cursor = object.cursor ?? "";
27870
27870
  return message;
27871
27871
  },
27872
27872
  };
27873
27873
 
27874
27874
  function createBaseRoleListEventResponse(): RoleListEventResponse {
27875
- return { limit: "", state: "", cursor: "", clanId: "", roles: undefined };
27875
+ return { limit: 0, state: 0, cursor: "", clanId: "", roles: undefined };
27876
27876
  }
27877
27877
 
27878
27878
  export const RoleListEventResponse = {
27879
27879
  encode(message: RoleListEventResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
27880
- if (message.limit !== "") {
27881
- writer.uint32(10).string(message.limit);
27880
+ if (message.limit !== 0) {
27881
+ writer.uint32(8).int32(message.limit);
27882
27882
  }
27883
- if (message.state !== "") {
27884
- writer.uint32(18).string(message.state);
27883
+ if (message.state !== 0) {
27884
+ writer.uint32(16).int32(message.state);
27885
27885
  }
27886
27886
  if (message.cursor !== "") {
27887
27887
  writer.uint32(26).string(message.cursor);
@@ -27903,18 +27903,18 @@ export const RoleListEventResponse = {
27903
27903
  const tag = reader.uint32();
27904
27904
  switch (tag >>> 3) {
27905
27905
  case 1:
27906
- if (tag !== 10) {
27906
+ if (tag !== 8) {
27907
27907
  break;
27908
27908
  }
27909
27909
 
27910
- message.limit = reader.string();
27910
+ message.limit = reader.int32();
27911
27911
  continue;
27912
27912
  case 2:
27913
- if (tag !== 18) {
27913
+ if (tag !== 16) {
27914
27914
  break;
27915
27915
  }
27916
27916
 
27917
- message.state = reader.string();
27917
+ message.state = reader.int32();
27918
27918
  continue;
27919
27919
  case 3:
27920
27920
  if (tag !== 26) {
@@ -27948,8 +27948,8 @@ export const RoleListEventResponse = {
27948
27948
 
27949
27949
  fromJSON(object: any): RoleListEventResponse {
27950
27950
  return {
27951
- limit: isSet(object.limit) ? globalThis.String(object.limit) : "",
27952
- state: isSet(object.state) ? globalThis.String(object.state) : "",
27951
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
27952
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
27953
27953
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
27954
27954
  clanId: isSet(object.clanId) ? globalThis.String(object.clanId) : "",
27955
27955
  roles: isSet(object.roles) ? RoleList.fromJSON(object.roles) : undefined,
@@ -27958,11 +27958,11 @@ export const RoleListEventResponse = {
27958
27958
 
27959
27959
  toJSON(message: RoleListEventResponse): unknown {
27960
27960
  const obj: any = {};
27961
- if (message.limit !== "") {
27962
- obj.limit = message.limit;
27961
+ if (message.limit !== 0) {
27962
+ obj.limit = Math.round(message.limit);
27963
27963
  }
27964
- if (message.state !== "") {
27965
- obj.state = message.state;
27964
+ if (message.state !== 0) {
27965
+ obj.state = Math.round(message.state);
27966
27966
  }
27967
27967
  if (message.cursor !== "") {
27968
27968
  obj.cursor = message.cursor;
@@ -27981,8 +27981,8 @@ export const RoleListEventResponse = {
27981
27981
  },
27982
27982
  fromPartial<I extends Exact<DeepPartial<RoleListEventResponse>, I>>(object: I): RoleListEventResponse {
27983
27983
  const message = createBaseRoleListEventResponse();
27984
- message.limit = object.limit ?? "";
27985
- message.state = object.state ?? "";
27984
+ message.limit = object.limit ?? 0;
27985
+ message.state = object.state ?? 0;
27986
27986
  message.cursor = object.cursor ?? "";
27987
27987
  message.clanId = object.clanId ?? "";
27988
27988
  message.roles = (object.roles !== undefined && object.roles !== null)
@@ -2313,17 +2313,17 @@ export interface RoleListEventRequest {
2313
2313
  /** clan id */
2314
2314
  clan_id: string;
2315
2315
  /** limit */
2316
- limit: string;
2316
+ limit: number;
2317
2317
  /** state */
2318
- state: string;
2318
+ state: number;
2319
2319
  /** cursor */
2320
2320
  cursor: string;
2321
2321
  }
2322
2322
  export interface RoleListEventResponse {
2323
2323
  /** limit */
2324
- limit: string;
2324
+ limit: number;
2325
2325
  /** state */
2326
- state: string;
2326
+ state: number;
2327
2327
  /** cursor */
2328
2328
  cursor: string;
2329
2329
  /** clan_id */
@@ -17943,24 +17943,24 @@ export declare const RoleListEventRequest: {
17943
17943
  toJSON(message: RoleListEventRequest): unknown;
17944
17944
  create<I extends {
17945
17945
  clan_id?: string | undefined;
17946
- limit?: string | undefined;
17947
- state?: string | undefined;
17946
+ limit?: number | undefined;
17947
+ state?: number | undefined;
17948
17948
  cursor?: string | undefined;
17949
17949
  } & {
17950
17950
  clan_id?: string | undefined;
17951
- limit?: string | undefined;
17952
- state?: string | undefined;
17951
+ limit?: number | undefined;
17952
+ state?: number | undefined;
17953
17953
  cursor?: string | undefined;
17954
17954
  } & { [K in Exclude<keyof I, keyof RoleListEventRequest>]: never; }>(base?: I | undefined): RoleListEventRequest;
17955
17955
  fromPartial<I_1 extends {
17956
17956
  clan_id?: string | undefined;
17957
- limit?: string | undefined;
17958
- state?: string | undefined;
17957
+ limit?: number | undefined;
17958
+ state?: number | undefined;
17959
17959
  cursor?: string | undefined;
17960
17960
  } & {
17961
17961
  clan_id?: string | undefined;
17962
- limit?: string | undefined;
17963
- state?: string | undefined;
17962
+ limit?: number | undefined;
17963
+ state?: number | undefined;
17964
17964
  cursor?: string | undefined;
17965
17965
  } & { [K_1 in Exclude<keyof I_1, keyof RoleListEventRequest>]: never; }>(object: I_1): RoleListEventRequest;
17966
17966
  };
@@ -17970,8 +17970,8 @@ export declare const RoleListEventResponse: {
17970
17970
  fromJSON(object: any): RoleListEventResponse;
17971
17971
  toJSON(message: RoleListEventResponse): unknown;
17972
17972
  create<I extends {
17973
- limit?: string | undefined;
17974
- state?: string | undefined;
17973
+ limit?: number | undefined;
17974
+ state?: number | undefined;
17975
17975
  cursor?: string | undefined;
17976
17976
  clanId?: string | undefined;
17977
17977
  roles?: {
@@ -18021,8 +18021,8 @@ export declare const RoleListEventResponse: {
18021
18021
  cacheable_cursor?: string | undefined;
18022
18022
  } | undefined;
18023
18023
  } & {
18024
- limit?: string | undefined;
18025
- state?: string | undefined;
18024
+ limit?: number | undefined;
18025
+ state?: number | undefined;
18026
18026
  cursor?: string | undefined;
18027
18027
  clanId?: string | undefined;
18028
18028
  roles?: ({
@@ -18308,8 +18308,8 @@ export declare const RoleListEventResponse: {
18308
18308
  } & { [K_9 in Exclude<keyof I["roles"], keyof RoleList>]: never; }) | undefined;
18309
18309
  } & { [K_10 in Exclude<keyof I, keyof RoleListEventResponse>]: never; }>(base?: I | undefined): RoleListEventResponse;
18310
18310
  fromPartial<I_1 extends {
18311
- limit?: string | undefined;
18312
- state?: string | undefined;
18311
+ limit?: number | undefined;
18312
+ state?: number | undefined;
18313
18313
  cursor?: string | undefined;
18314
18314
  clanId?: string | undefined;
18315
18315
  roles?: {
@@ -18359,8 +18359,8 @@ export declare const RoleListEventResponse: {
18359
18359
  cacheable_cursor?: string | undefined;
18360
18360
  } | undefined;
18361
18361
  } & {
18362
- limit?: string | undefined;
18363
- state?: string | undefined;
18362
+ limit?: number | undefined;
18363
+ state?: number | undefined;
18364
18364
  cursor?: string | undefined;
18365
18365
  clanId?: string | undefined;
18366
18366
  roles?: ({