mezon-js-protobuf 1.6.87 → 1.6.88

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
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v1.181.2
4
- // protoc v3.21.12
3
+ // protoc-gen-ts_proto v1.181.1
4
+ // protoc v5.27.2
5
5
  // source: api/api.proto
6
6
 
7
7
  /* eslint-disable */
@@ -3320,7 +3320,11 @@ export interface ChannelCanvasListRequest {
3320
3320
  | number
3321
3321
  | undefined;
3322
3322
  /** page */
3323
- page: number | undefined;
3323
+ page:
3324
+ | number
3325
+ | undefined;
3326
+ /** */
3327
+ cursor: string;
3324
3328
  }
3325
3329
 
3326
3330
  export interface ChannelCanvasItem {
@@ -3345,6 +3349,8 @@ export interface ChannelCanvasListResponse {
3345
3349
  channel_id: string;
3346
3350
  /** channel doc item */
3347
3351
  channel_canvases: ChannelCanvasItem[];
3352
+ /** */
3353
+ count: number;
3348
3354
  }
3349
3355
 
3350
3356
  export interface ChannelCanvasDetailRequest {
@@ -31495,7 +31501,7 @@ export const DeleteChannelCanvasRequest = {
31495
31501
  };
31496
31502
 
31497
31503
  function createBaseChannelCanvasListRequest(): ChannelCanvasListRequest {
31498
- return { clan_id: "", channel_id: "", limit: undefined, page: undefined };
31504
+ return { clan_id: "", channel_id: "", limit: undefined, page: undefined, cursor: "" };
31499
31505
  }
31500
31506
 
31501
31507
  export const ChannelCanvasListRequest = {
@@ -31512,6 +31518,9 @@ export const ChannelCanvasListRequest = {
31512
31518
  if (message.page !== undefined) {
31513
31519
  Int32Value.encode({ value: message.page! }, writer.uint32(34).fork()).ldelim();
31514
31520
  }
31521
+ if (message.cursor !== "") {
31522
+ writer.uint32(42).string(message.cursor);
31523
+ }
31515
31524
  return writer;
31516
31525
  },
31517
31526
 
@@ -31550,6 +31559,13 @@ export const ChannelCanvasListRequest = {
31550
31559
 
31551
31560
  message.page = Int32Value.decode(reader, reader.uint32()).value;
31552
31561
  continue;
31562
+ case 5:
31563
+ if (tag !== 42) {
31564
+ break;
31565
+ }
31566
+
31567
+ message.cursor = reader.string();
31568
+ continue;
31553
31569
  }
31554
31570
  if ((tag & 7) === 4 || tag === 0) {
31555
31571
  break;
@@ -31565,6 +31581,7 @@ export const ChannelCanvasListRequest = {
31565
31581
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
31566
31582
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
31567
31583
  page: isSet(object.page) ? Number(object.page) : undefined,
31584
+ cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
31568
31585
  };
31569
31586
  },
31570
31587
 
@@ -31582,6 +31599,9 @@ export const ChannelCanvasListRequest = {
31582
31599
  if (message.page !== undefined) {
31583
31600
  obj.page = message.page;
31584
31601
  }
31602
+ if (message.cursor !== "") {
31603
+ obj.cursor = message.cursor;
31604
+ }
31585
31605
  return obj;
31586
31606
  },
31587
31607
 
@@ -31594,6 +31614,7 @@ export const ChannelCanvasListRequest = {
31594
31614
  message.channel_id = object.channel_id ?? "";
31595
31615
  message.limit = object.limit ?? undefined;
31596
31616
  message.page = object.page ?? undefined;
31617
+ message.cursor = object.cursor ?? "";
31597
31618
  return message;
31598
31619
  },
31599
31620
  };
@@ -31733,7 +31754,7 @@ export const ChannelCanvasItem = {
31733
31754
  };
31734
31755
 
31735
31756
  function createBaseChannelCanvasListResponse(): ChannelCanvasListResponse {
31736
- return { clan_id: "", channel_id: "", channel_canvases: [] };
31757
+ return { clan_id: "", channel_id: "", channel_canvases: [], count: 0 };
31737
31758
  }
31738
31759
 
31739
31760
  export const ChannelCanvasListResponse = {
@@ -31747,6 +31768,9 @@ export const ChannelCanvasListResponse = {
31747
31768
  for (const v of message.channel_canvases) {
31748
31769
  ChannelCanvasItem.encode(v!, writer.uint32(26).fork()).ldelim();
31749
31770
  }
31771
+ if (message.count !== 0) {
31772
+ writer.uint32(32).int64(message.count);
31773
+ }
31750
31774
  return writer;
31751
31775
  },
31752
31776
 
@@ -31778,6 +31802,13 @@ export const ChannelCanvasListResponse = {
31778
31802
 
31779
31803
  message.channel_canvases.push(ChannelCanvasItem.decode(reader, reader.uint32()));
31780
31804
  continue;
31805
+ case 4:
31806
+ if (tag !== 32) {
31807
+ break;
31808
+ }
31809
+
31810
+ message.count = longToNumber(reader.int64() as Long);
31811
+ continue;
31781
31812
  }
31782
31813
  if ((tag & 7) === 4 || tag === 0) {
31783
31814
  break;
@@ -31794,6 +31825,7 @@ export const ChannelCanvasListResponse = {
31794
31825
  channel_canvases: globalThis.Array.isArray(object?.channel_canvases)
31795
31826
  ? object.channel_canvases.map((e: any) => ChannelCanvasItem.fromJSON(e))
31796
31827
  : [],
31828
+ count: isSet(object.count) ? globalThis.Number(object.count) : 0,
31797
31829
  };
31798
31830
  },
31799
31831
 
@@ -31808,6 +31840,9 @@ export const ChannelCanvasListResponse = {
31808
31840
  if (message.channel_canvases?.length) {
31809
31841
  obj.channel_canvases = message.channel_canvases.map((e) => ChannelCanvasItem.toJSON(e));
31810
31842
  }
31843
+ if (message.count !== 0) {
31844
+ obj.count = Math.round(message.count);
31845
+ }
31811
31846
  return obj;
31812
31847
  },
31813
31848
 
@@ -31819,6 +31854,7 @@ export const ChannelCanvasListResponse = {
31819
31854
  message.clan_id = object.clan_id ?? "";
31820
31855
  message.channel_id = object.channel_id ?? "";
31821
31856
  message.channel_canvases = object.channel_canvases?.map((e) => ChannelCanvasItem.fromPartial(e)) || [];
31857
+ message.count = object.count ?? 0;
31822
31858
  return message;
31823
31859
  },
31824
31860
  };
@@ -2647,6 +2647,8 @@ export interface ChannelCanvasListRequest {
2647
2647
  limit: number | undefined;
2648
2648
  /** page */
2649
2649
  page: number | undefined;
2650
+ /** */
2651
+ cursor: string;
2650
2652
  }
2651
2653
  export interface ChannelCanvasItem {
2652
2654
  /** id */
@@ -2669,6 +2671,8 @@ export interface ChannelCanvasListResponse {
2669
2671
  channel_id: string;
2670
2672
  /** channel doc item */
2671
2673
  channel_canvases: ChannelCanvasItem[];
2674
+ /** */
2675
+ count: number;
2672
2676
  }
2673
2677
  export interface ChannelCanvasDetailRequest {
2674
2678
  /** id */
@@ -18556,22 +18560,26 @@ export declare const ChannelCanvasListRequest: {
18556
18560
  channel_id?: string | undefined;
18557
18561
  limit?: number | undefined;
18558
18562
  page?: number | undefined;
18563
+ cursor?: string | undefined;
18559
18564
  } & {
18560
18565
  clan_id?: string | undefined;
18561
18566
  channel_id?: string | undefined;
18562
18567
  limit?: number | undefined;
18563
18568
  page?: number | undefined;
18569
+ cursor?: string | undefined;
18564
18570
  } & { [K in Exclude<keyof I, keyof ChannelCanvasListRequest>]: never; }>(base?: I | undefined): ChannelCanvasListRequest;
18565
18571
  fromPartial<I_1 extends {
18566
18572
  clan_id?: string | undefined;
18567
18573
  channel_id?: string | undefined;
18568
18574
  limit?: number | undefined;
18569
18575
  page?: number | undefined;
18576
+ cursor?: string | undefined;
18570
18577
  } & {
18571
18578
  clan_id?: string | undefined;
18572
18579
  channel_id?: string | undefined;
18573
18580
  limit?: number | undefined;
18574
18581
  page?: number | undefined;
18582
+ cursor?: string | undefined;
18575
18583
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelCanvasListRequest>]: never; }>(object: I_1): ChannelCanvasListRequest;
18576
18584
  };
18577
18585
  export declare const ChannelCanvasItem: {
@@ -18626,6 +18634,7 @@ export declare const ChannelCanvasListResponse: {
18626
18634
  creator_id?: string | undefined;
18627
18635
  update_time?: Date | undefined;
18628
18636
  }[] | undefined;
18637
+ count?: number | undefined;
18629
18638
  } & {
18630
18639
  clan_id?: string | undefined;
18631
18640
  channel_id?: string | undefined;
@@ -18658,6 +18667,7 @@ export declare const ChannelCanvasListResponse: {
18658
18667
  creator_id?: string | undefined;
18659
18668
  update_time?: Date | undefined;
18660
18669
  }[]>]: never; }) | undefined;
18670
+ count?: number | undefined;
18661
18671
  } & { [K_2 in Exclude<keyof I, keyof ChannelCanvasListResponse>]: never; }>(base?: I | undefined): ChannelCanvasListResponse;
18662
18672
  fromPartial<I_1 extends {
18663
18673
  clan_id?: string | undefined;
@@ -18670,6 +18680,7 @@ export declare const ChannelCanvasListResponse: {
18670
18680
  creator_id?: string | undefined;
18671
18681
  update_time?: Date | undefined;
18672
18682
  }[] | undefined;
18683
+ count?: number | undefined;
18673
18684
  } & {
18674
18685
  clan_id?: string | undefined;
18675
18686
  channel_id?: string | undefined;
@@ -18702,6 +18713,7 @@ export declare const ChannelCanvasListResponse: {
18702
18713
  creator_id?: string | undefined;
18703
18714
  update_time?: Date | undefined;
18704
18715
  }[]>]: never; }) | undefined;
18716
+ count?: number | undefined;
18705
18717
  } & { [K_5 in Exclude<keyof I_1, keyof ChannelCanvasListResponse>]: never; }>(object: I_1): ChannelCanvasListResponse;
18706
18718
  };
18707
18719
  export declare const ChannelCanvasDetailRequest: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.87",
3
+ "version": "1.6.88",
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",