@juzi/wechaty-grpc 1.0.76 → 1.0.78
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/tag_pb.d.ts +48 -0
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +364 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +35 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +55 -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/tag.proto +10 -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/tag_pb.d.ts +48 -0
- package/dist/esm/out/wechaty/puppet/tag_pb.js +364 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +35 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +55 -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/tag.proto +10 -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/tag_pb.d.ts +48 -0
- package/out/wechaty/puppet/tag_pb.js +364 -0
- package/out/wechaty/puppet.openapi.yaml +35 -1
- package/out/wechaty/puppet.swagger.json +55 -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
|
@@ -772,6 +772,15 @@ Puppet.TagTagDelete = {
|
|
|
772
772
|
responseType: wechaty_puppet_tag_pb.TagTagDeleteResponse
|
|
773
773
|
};
|
|
774
774
|
|
|
775
|
+
Puppet.TagTagModify = {
|
|
776
|
+
methodName: "TagTagModify",
|
|
777
|
+
service: Puppet,
|
|
778
|
+
requestStream: false,
|
|
779
|
+
responseStream: false,
|
|
780
|
+
requestType: wechaty_puppet_tag_pb.TagTagModifyRequest,
|
|
781
|
+
responseType: wechaty_puppet_tag_pb.TagTagModifyResponse
|
|
782
|
+
};
|
|
783
|
+
|
|
775
784
|
Puppet.TagPayload = {
|
|
776
785
|
methodName: "TagPayload",
|
|
777
786
|
service: Puppet,
|
|
@@ -3540,6 +3549,37 @@ PuppetClient.prototype.tagTagDelete = function tagTagDelete(requestMessage, meta
|
|
|
3540
3549
|
};
|
|
3541
3550
|
};
|
|
3542
3551
|
|
|
3552
|
+
PuppetClient.prototype.tagTagModify = function tagTagModify(requestMessage, metadata, callback) {
|
|
3553
|
+
if (arguments.length === 2) {
|
|
3554
|
+
callback = arguments[1];
|
|
3555
|
+
}
|
|
3556
|
+
var client = grpc.unary(Puppet.TagTagModify, {
|
|
3557
|
+
request: requestMessage,
|
|
3558
|
+
host: this.serviceHost,
|
|
3559
|
+
metadata: metadata,
|
|
3560
|
+
transport: this.options.transport,
|
|
3561
|
+
debug: this.options.debug,
|
|
3562
|
+
onEnd: function (response) {
|
|
3563
|
+
if (callback) {
|
|
3564
|
+
if (response.status !== grpc.Code.OK) {
|
|
3565
|
+
var err = new Error(response.statusMessage);
|
|
3566
|
+
err.code = response.status;
|
|
3567
|
+
err.metadata = response.trailers;
|
|
3568
|
+
callback(err, null);
|
|
3569
|
+
} else {
|
|
3570
|
+
callback(null, response.message);
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
});
|
|
3575
|
+
return {
|
|
3576
|
+
cancel: function () {
|
|
3577
|
+
callback = null;
|
|
3578
|
+
client.close();
|
|
3579
|
+
}
|
|
3580
|
+
};
|
|
3581
|
+
};
|
|
3582
|
+
|
|
3543
3583
|
PuppetClient.prototype.tagPayload = function tagPayload(requestMessage, metadata, callback) {
|
|
3544
3584
|
if (arguments.length === 2) {
|
|
3545
3585
|
callback = arguments[1];
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED