@juzi/wechaty-grpc 1.0.41 → 1.0.42

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.
Files changed (38) hide show
  1. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +44 -0
  2. package/dist/cjs/out/wechaty/puppet/room_pb.js +336 -1
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +28 -1
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +43 -1
  5. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  7. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  8. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  9. package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
  10. package/dist/cjs/proto/wechaty/puppet.proto +7 -0
  11. package/dist/cjs/src/package-json.js +1 -1
  12. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  13. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  14. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  15. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +44 -0
  16. package/dist/esm/out/wechaty/puppet/room_pb.js +336 -1
  17. package/dist/esm/out/wechaty/puppet.openapi.yaml +28 -1
  18. package/dist/esm/out/wechaty/puppet.swagger.json +43 -1
  19. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  20. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  21. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  22. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  23. package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
  24. package/dist/esm/proto/wechaty/puppet.proto +7 -0
  25. package/dist/esm/src/package-json.js +1 -1
  26. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  27. package/dist/esm/tests/puppet-server-impl.js +5 -0
  28. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  29. package/out/wechaty/puppet/room_pb.d.ts +44 -0
  30. package/out/wechaty/puppet/room_pb.js +336 -1
  31. package/out/wechaty/puppet.openapi.yaml +28 -1
  32. package/out/wechaty/puppet.swagger.json +43 -1
  33. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  34. package/out/wechaty/puppet_grpc_pb.js +33 -0
  35. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  36. package/out/wechaty/puppet_pb_service.js +40 -0
  37. package/package.json +1 -1
  38. package/src/package-json.ts +1 -1
@@ -528,6 +528,15 @@ Puppet.RoomTopic = {
528
528
  responseType: wechaty_puppet_room_pb.RoomTopicResponse
529
529
  };
530
530
 
531
+ Puppet.RoomRemark = {
532
+ methodName: "RoomRemark",
533
+ service: Puppet,
534
+ requestStream: false,
535
+ responseStream: false,
536
+ requestType: wechaty_puppet_room_pb.RoomRemarkRequest,
537
+ responseType: wechaty_puppet_room_pb.RoomRemarkResponse
538
+ };
539
+
531
540
  Puppet.RoomQRCode = {
532
541
  methodName: "RoomQRCode",
533
542
  service: Puppet,
@@ -2557,6 +2566,37 @@ PuppetClient.prototype.roomTopic = function roomTopic(requestMessage, metadata,
2557
2566
  };
2558
2567
  };
2559
2568
 
2569
+ PuppetClient.prototype.roomRemark = function roomRemark(requestMessage, metadata, callback) {
2570
+ if (arguments.length === 2) {
2571
+ callback = arguments[1];
2572
+ }
2573
+ var client = grpc.unary(Puppet.RoomRemark, {
2574
+ request: requestMessage,
2575
+ host: this.serviceHost,
2576
+ metadata: metadata,
2577
+ transport: this.options.transport,
2578
+ debug: this.options.debug,
2579
+ onEnd: function (response) {
2580
+ if (callback) {
2581
+ if (response.status !== grpc.Code.OK) {
2582
+ var err = new Error(response.statusMessage);
2583
+ err.code = response.status;
2584
+ err.metadata = response.trailers;
2585
+ callback(err, null);
2586
+ } else {
2587
+ callback(null, response.message);
2588
+ }
2589
+ }
2590
+ }
2591
+ });
2592
+ return {
2593
+ cancel: function () {
2594
+ callback = null;
2595
+ client.close();
2596
+ }
2597
+ };
2598
+ };
2599
+
2560
2600
  PuppetClient.prototype.roomQRCode = function roomQRCode(requestMessage, metadata, callback) {
2561
2601
  if (arguments.length === 2) {
2562
2602
  callback = arguments[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,7 +4,7 @@
4
4
  import type { PackageJson } from 'type-fest'
5
5
  export const packageJson: PackageJson = {
6
6
  "name": "@juzi/wechaty-grpc",
7
- "version": "1.0.41",
7
+ "version": "1.0.42",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {