@juzi/wechaty-grpc 1.0.40 → 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.
- package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +51 -2
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +336 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +33 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +50 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/cjs/proto/wechaty/puppet/contact.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +7 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +51 -2
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +336 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +33 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +50 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/esm/proto/wechaty/puppet/contact.proto +1 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +7 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/contact_pb.d.ts +6 -0
- package/out/wechaty/puppet/contact_pb.js +51 -2
- package/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/out/wechaty/puppet/room_pb.js +336 -1
- package/out/wechaty/puppet.openapi.yaml +33 -1
- package/out/wechaty/puppet.swagger.json +50 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/out/wechaty/puppet_grpc_pb.js +33 -0
- package/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- package/package.json +1 -1
- 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
package/src/package-json.ts
CHANGED