@juzi/wechaty-grpc 1.0.104 → 1.0.106
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/call_pb.d.ts +4 -0
- package/dist/cjs/out/wechaty/puppet/call_pb.js +31 -1
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +360 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +39 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +60 -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/call.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +8 -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/call_pb.d.ts +4 -0
- package/dist/esm/out/wechaty/puppet/call_pb.js +31 -1
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +360 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +39 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +60 -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/call.proto +1 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +8 -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/call_pb.d.ts +4 -0
- package/out/wechaty/puppet/call_pb.js +31 -1
- package/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/out/wechaty/puppet/room_pb.js +360 -0
- package/out/wechaty/puppet.openapi.yaml +39 -1
- package/out/wechaty/puppet.swagger.json +60 -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
|
@@ -746,6 +746,15 @@ Puppet.RoomPayload = {
|
|
|
746
746
|
responseType: wechaty_puppet_room_pb.RoomPayloadResponse
|
|
747
747
|
};
|
|
748
748
|
|
|
749
|
+
Puppet.BatchRoomPayload = {
|
|
750
|
+
methodName: "BatchRoomPayload",
|
|
751
|
+
service: Puppet,
|
|
752
|
+
requestStream: false,
|
|
753
|
+
responseStream: false,
|
|
754
|
+
requestType: wechaty_puppet_room_pb.BatchRoomPayloadRequest,
|
|
755
|
+
responseType: wechaty_puppet_room_pb.BatchRoomPayloadResponse
|
|
756
|
+
};
|
|
757
|
+
|
|
749
758
|
Puppet.RoomList = {
|
|
750
759
|
methodName: "RoomList",
|
|
751
760
|
service: Puppet,
|
|
@@ -3718,6 +3727,37 @@ PuppetClient.prototype.roomPayload = function roomPayload(requestMessage, metada
|
|
|
3718
3727
|
};
|
|
3719
3728
|
};
|
|
3720
3729
|
|
|
3730
|
+
PuppetClient.prototype.batchRoomPayload = function batchRoomPayload(requestMessage, metadata, callback) {
|
|
3731
|
+
if (arguments.length === 2) {
|
|
3732
|
+
callback = arguments[1];
|
|
3733
|
+
}
|
|
3734
|
+
var client = grpc.unary(Puppet.BatchRoomPayload, {
|
|
3735
|
+
request: requestMessage,
|
|
3736
|
+
host: this.serviceHost,
|
|
3737
|
+
metadata: metadata,
|
|
3738
|
+
transport: this.options.transport,
|
|
3739
|
+
debug: this.options.debug,
|
|
3740
|
+
onEnd: function (response) {
|
|
3741
|
+
if (callback) {
|
|
3742
|
+
if (response.status !== grpc.Code.OK) {
|
|
3743
|
+
var err = new Error(response.statusMessage);
|
|
3744
|
+
err.code = response.status;
|
|
3745
|
+
err.metadata = response.trailers;
|
|
3746
|
+
callback(err, null);
|
|
3747
|
+
} else {
|
|
3748
|
+
callback(null, response.message);
|
|
3749
|
+
}
|
|
3750
|
+
}
|
|
3751
|
+
}
|
|
3752
|
+
});
|
|
3753
|
+
return {
|
|
3754
|
+
cancel: function () {
|
|
3755
|
+
callback = null;
|
|
3756
|
+
client.close();
|
|
3757
|
+
}
|
|
3758
|
+
};
|
|
3759
|
+
};
|
|
3760
|
+
|
|
3721
3761
|
PuppetClient.prototype.roomList = function roomList(requestMessage, metadata, callback) {
|
|
3722
3762
|
if (arguments.length === 2) {
|
|
3723
3763
|
callback = arguments[1];
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED