@juzi/wechaty-grpc 1.0.72 → 1.0.74
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/room_pb.d.ts +36 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +275 -0
- package/dist/cjs/out/wechaty/puppet/wecom_pb.d.ts +5 -5
- package/dist/cjs/out/wechaty/puppet/wecom_pb.js +9 -9
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +23 -2
- package/dist/cjs/out/wechaty/puppet.swagger.json +35 -2
- 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/room.proto +7 -1
- package/dist/cjs/proto/wechaty/puppet/wecom.proto +1 -1
- package/dist/cjs/proto/wechaty/puppet.proto +5 -0
- package/dist/cjs/src/package-json.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +2 -1
- package/dist/cjs/src/package-json.js.map +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/room_pb.d.ts +36 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +275 -0
- package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +5 -5
- package/dist/esm/out/wechaty/puppet/wecom_pb.js +9 -9
- package/dist/esm/out/wechaty/puppet.openapi.yaml +23 -2
- package/dist/esm/out/wechaty/puppet.swagger.json +35 -2
- 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/room.proto +7 -1
- package/dist/esm/proto/wechaty/puppet/wecom.proto +1 -1
- package/dist/esm/proto/wechaty/puppet.proto +5 -0
- package/dist/esm/src/package-json.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +2 -1
- package/dist/esm/src/package-json.js.map +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/room_pb.d.ts +36 -0
- package/out/wechaty/puppet/room_pb.js +275 -0
- package/out/wechaty/puppet/wecom_pb.d.ts +5 -5
- package/out/wechaty/puppet/wecom_pb.js +9 -9
- package/out/wechaty/puppet.openapi.yaml +23 -2
- package/out/wechaty/puppet.swagger.json +35 -2
- 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 +2 -1
- package/src/package-json.ts +2 -1
|
@@ -664,6 +664,15 @@ Puppet.RoomDelAdmins = {
|
|
|
664
664
|
responseType: wechaty_puppet_room_pb.RoomAdminsResponse
|
|
665
665
|
};
|
|
666
666
|
|
|
667
|
+
Puppet.RoomDismiss = {
|
|
668
|
+
methodName: "RoomDismiss",
|
|
669
|
+
service: Puppet,
|
|
670
|
+
requestStream: false,
|
|
671
|
+
responseStream: false,
|
|
672
|
+
requestType: wechaty_puppet_room_pb.RoomDismissRequest,
|
|
673
|
+
responseType: wechaty_puppet_room_pb.RoomDismissResponse
|
|
674
|
+
};
|
|
675
|
+
|
|
667
676
|
Puppet.RoomMemberPayload = {
|
|
668
677
|
methodName: "RoomMemberPayload",
|
|
669
678
|
service: Puppet,
|
|
@@ -3132,6 +3141,37 @@ PuppetClient.prototype.roomDelAdmins = function roomDelAdmins(requestMessage, me
|
|
|
3132
3141
|
};
|
|
3133
3142
|
};
|
|
3134
3143
|
|
|
3144
|
+
PuppetClient.prototype.roomDismiss = function roomDismiss(requestMessage, metadata, callback) {
|
|
3145
|
+
if (arguments.length === 2) {
|
|
3146
|
+
callback = arguments[1];
|
|
3147
|
+
}
|
|
3148
|
+
var client = grpc.unary(Puppet.RoomDismiss, {
|
|
3149
|
+
request: requestMessage,
|
|
3150
|
+
host: this.serviceHost,
|
|
3151
|
+
metadata: metadata,
|
|
3152
|
+
transport: this.options.transport,
|
|
3153
|
+
debug: this.options.debug,
|
|
3154
|
+
onEnd: function (response) {
|
|
3155
|
+
if (callback) {
|
|
3156
|
+
if (response.status !== grpc.Code.OK) {
|
|
3157
|
+
var err = new Error(response.statusMessage);
|
|
3158
|
+
err.code = response.status;
|
|
3159
|
+
err.metadata = response.trailers;
|
|
3160
|
+
callback(err, null);
|
|
3161
|
+
} else {
|
|
3162
|
+
callback(null, response.message);
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
});
|
|
3167
|
+
return {
|
|
3168
|
+
cancel: function () {
|
|
3169
|
+
callback = null;
|
|
3170
|
+
client.close();
|
|
3171
|
+
}
|
|
3172
|
+
};
|
|
3173
|
+
};
|
|
3174
|
+
|
|
3135
3175
|
PuppetClient.prototype.roomMemberPayload = function roomMemberPayload(requestMessage, metadata, callback) {
|
|
3136
3176
|
if (arguments.length === 2) {
|
|
3137
3177
|
callback = arguments[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juzi/wechaty-grpc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.74",
|
|
4
4
|
"description": "gRPC for Wechaty",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"npm-run-all": "^4.1.5",
|
|
77
77
|
"request": "^2.88.2",
|
|
78
78
|
"shx": "^0.3.3",
|
|
79
|
+
"ts-node": "10.9.1",
|
|
79
80
|
"ts-protoc-gen": "^0.15.0",
|
|
80
81
|
"tstest": "^0.7.3",
|
|
81
82
|
"typescript": "^4.7.3"
|
package/src/package-json.ts
CHANGED
|
@@ -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.
|
|
7
|
+
"version": "1.0.74",
|
|
8
8
|
"description": "gRPC for Wechaty",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"exports": {
|
|
@@ -80,6 +80,7 @@ export const packageJson: PackageJson = {
|
|
|
80
80
|
"npm-run-all": "^4.1.5",
|
|
81
81
|
"request": "^2.88.2",
|
|
82
82
|
"shx": "^0.3.3",
|
|
83
|
+
"ts-node": "10.9.1",
|
|
83
84
|
"ts-protoc-gen": "^0.15.0",
|
|
84
85
|
"tstest": "^0.7.3",
|
|
85
86
|
"typescript": "^4.7.3"
|