@juzi/wechaty-grpc 1.0.10 → 1.0.13
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/commonjs/generated/puppet.cjs.d.ts +0 -1
- package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +536 -76
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +3909 -328
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +413 -362
- package/dist/cjs/out/wechaty/puppet.swagger.json +652 -556
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +182 -183
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +343 -351
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +130 -131
- package/dist/cjs/out/wechaty/puppet_pb_service.js +78 -79
- package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +14 -13
- package/dist/cjs/proto/wechaty/puppet/tag.proto +115 -29
- package/dist/cjs/proto/wechaty/puppet.proto +36 -37
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +13 -13
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -1
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +536 -76
- package/dist/esm/out/wechaty/puppet/tag_pb.js +3909 -328
- package/dist/esm/out/wechaty/puppet.openapi.yaml +413 -362
- package/dist/esm/out/wechaty/puppet.swagger.json +652 -556
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +182 -183
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +343 -351
- package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/esm/out/wechaty/puppet_pb.js +0 -2
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +130 -131
- package/dist/esm/out/wechaty/puppet_pb_service.js +78 -79
- package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +14 -13
- package/dist/esm/proto/wechaty/puppet/tag.proto +115 -29
- package/dist/esm/proto/wechaty/puppet.proto +36 -37
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.js +13 -13
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/out/wechaty/puppet/event_pb.js +2 -1
- package/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/out/wechaty/puppet/room_pb.js +58 -2
- package/out/wechaty/puppet/tag_pb.d.ts +536 -76
- package/out/wechaty/puppet/tag_pb.js +3909 -328
- package/out/wechaty/puppet.openapi.yaml +413 -362
- package/out/wechaty/puppet.swagger.json +652 -556
- package/out/wechaty/puppet_grpc_pb.d.ts +182 -183
- package/out/wechaty/puppet_grpc_pb.js +343 -351
- package/out/wechaty/puppet_pb.d.ts +0 -1
- package/out/wechaty/puppet_pb.js +0 -2
- package/out/wechaty/puppet_pb_service.d.ts +130 -131
- package/out/wechaty/puppet_pb_service.js +78 -79
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
- package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +0 -3315
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
- package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +0 -90
- package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
- package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
- package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +0 -3315
- package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
- package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
- package/dist/esm/proto/wechaty/puppet/corp-tag.proto +0 -90
- package/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
- package/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
- package/out/wechaty/puppet/corp-tag_pb.js +0 -3315
- package/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
- package/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
|
@@ -38,7 +38,6 @@ export * from '../../out/wechaty/puppet/room-member_pb.js'
|
|
|
38
38
|
export * from '../../out/wechaty/puppet/tag_pb.js'
|
|
39
39
|
export * from '../../out/wechaty/puppet/url-link_pb.js'
|
|
40
40
|
export * from '../../out/wechaty/puppet/channel_pb.js'
|
|
41
|
-
export * from '../../out/wechaty/puppet/corp-tag_pb.js'
|
|
42
41
|
|
|
43
42
|
export * from '../../out/wechaty/puppet_grpc_pb.js'
|
|
44
43
|
export * from '../../out/wechaty/puppet_pb.js'
|
|
@@ -341,7 +341,8 @@ proto.wechaty.puppet.EventType = {
|
|
|
341
341
|
EVENT_TYPE_RESET: 24,
|
|
342
342
|
EVENT_TYPE_LOGIN: 25,
|
|
343
343
|
EVENT_TYPE_LOGOUT: 26,
|
|
344
|
-
EVENT_TYPE_DIRTY: 27
|
|
344
|
+
EVENT_TYPE_DIRTY: 27,
|
|
345
|
+
EVENT_TYPE_TAG: 28
|
|
345
346
|
};
|
|
346
347
|
|
|
347
348
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -251,6 +251,11 @@ export class RoomDelRequest extends jspb.Message {
|
|
|
251
251
|
getContactId(): string;
|
|
252
252
|
setContactId(value: string): void;
|
|
253
253
|
|
|
254
|
+
clearContactIdsList(): void;
|
|
255
|
+
getContactIdsList(): Array<string>;
|
|
256
|
+
setContactIdsList(value: Array<string>): void;
|
|
257
|
+
addContactIds(value: string, index?: number): string;
|
|
258
|
+
|
|
254
259
|
serializeBinary(): Uint8Array;
|
|
255
260
|
toObject(includeInstance?: boolean): RoomDelRequest.AsObject;
|
|
256
261
|
static toObject(includeInstance: boolean, msg: RoomDelRequest): RoomDelRequest.AsObject;
|
|
@@ -265,6 +270,7 @@ export namespace RoomDelRequest {
|
|
|
265
270
|
export type AsObject = {
|
|
266
271
|
id: string,
|
|
267
272
|
contactId: string,
|
|
273
|
+
contactIdsList: Array<string>,
|
|
268
274
|
}
|
|
269
275
|
}
|
|
270
276
|
|
|
@@ -258,7 +258,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
258
258
|
* @constructor
|
|
259
259
|
*/
|
|
260
260
|
proto.wechaty.puppet.RoomDelRequest = function(opt_data) {
|
|
261
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
261
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomDelRequest.repeatedFields_, null);
|
|
262
262
|
};
|
|
263
263
|
goog.inherits(proto.wechaty.puppet.RoomDelRequest, jspb.Message);
|
|
264
264
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -2097,6 +2097,13 @@ proto.wechaty.puppet.RoomCreateResponse.prototype.setId = function(value) {
|
|
|
2097
2097
|
|
|
2098
2098
|
|
|
2099
2099
|
|
|
2100
|
+
/**
|
|
2101
|
+
* List of repeated fields within this message type.
|
|
2102
|
+
* @private {!Array<number>}
|
|
2103
|
+
* @const
|
|
2104
|
+
*/
|
|
2105
|
+
proto.wechaty.puppet.RoomDelRequest.repeatedFields_ = [3];
|
|
2106
|
+
|
|
2100
2107
|
|
|
2101
2108
|
|
|
2102
2109
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2129,7 +2136,8 @@ proto.wechaty.puppet.RoomDelRequest.prototype.toObject = function(opt_includeIns
|
|
|
2129
2136
|
proto.wechaty.puppet.RoomDelRequest.toObject = function(includeInstance, msg) {
|
|
2130
2137
|
var f, obj = {
|
|
2131
2138
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2132
|
-
contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
2139
|
+
contactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2140
|
+
contactIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
2133
2141
|
};
|
|
2134
2142
|
|
|
2135
2143
|
if (includeInstance) {
|
|
@@ -2174,6 +2182,10 @@ proto.wechaty.puppet.RoomDelRequest.deserializeBinaryFromReader = function(msg,
|
|
|
2174
2182
|
var value = /** @type {string} */ (reader.readString());
|
|
2175
2183
|
msg.setContactId(value);
|
|
2176
2184
|
break;
|
|
2185
|
+
case 3:
|
|
2186
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2187
|
+
msg.addContactIds(value);
|
|
2188
|
+
break;
|
|
2177
2189
|
default:
|
|
2178
2190
|
reader.skipField();
|
|
2179
2191
|
break;
|
|
@@ -2217,6 +2229,13 @@ proto.wechaty.puppet.RoomDelRequest.serializeBinaryToWriter = function(message,
|
|
|
2217
2229
|
f
|
|
2218
2230
|
);
|
|
2219
2231
|
}
|
|
2232
|
+
f = message.getContactIdsList();
|
|
2233
|
+
if (f.length > 0) {
|
|
2234
|
+
writer.writeRepeatedString(
|
|
2235
|
+
3,
|
|
2236
|
+
f
|
|
2237
|
+
);
|
|
2238
|
+
}
|
|
2220
2239
|
};
|
|
2221
2240
|
|
|
2222
2241
|
|
|
@@ -2256,6 +2275,43 @@ proto.wechaty.puppet.RoomDelRequest.prototype.setContactId = function(value) {
|
|
|
2256
2275
|
};
|
|
2257
2276
|
|
|
2258
2277
|
|
|
2278
|
+
/**
|
|
2279
|
+
* repeated string contact_ids = 3;
|
|
2280
|
+
* @return {!Array<string>}
|
|
2281
|
+
*/
|
|
2282
|
+
proto.wechaty.puppet.RoomDelRequest.prototype.getContactIdsList = function() {
|
|
2283
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
2284
|
+
};
|
|
2285
|
+
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* @param {!Array<string>} value
|
|
2289
|
+
* @return {!proto.wechaty.puppet.RoomDelRequest} returns this
|
|
2290
|
+
*/
|
|
2291
|
+
proto.wechaty.puppet.RoomDelRequest.prototype.setContactIdsList = function(value) {
|
|
2292
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
2293
|
+
};
|
|
2294
|
+
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
* @param {string} value
|
|
2298
|
+
* @param {number=} opt_index
|
|
2299
|
+
* @return {!proto.wechaty.puppet.RoomDelRequest} returns this
|
|
2300
|
+
*/
|
|
2301
|
+
proto.wechaty.puppet.RoomDelRequest.prototype.addContactIds = function(value, opt_index) {
|
|
2302
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
2303
|
+
};
|
|
2304
|
+
|
|
2305
|
+
|
|
2306
|
+
/**
|
|
2307
|
+
* Clears the list making it empty but non-null.
|
|
2308
|
+
* @return {!proto.wechaty.puppet.RoomDelRequest} returns this
|
|
2309
|
+
*/
|
|
2310
|
+
proto.wechaty.puppet.RoomDelRequest.prototype.clearContactIdsList = function() {
|
|
2311
|
+
return this.setContactIdsList([]);
|
|
2312
|
+
};
|
|
2313
|
+
|
|
2314
|
+
|
|
2259
2315
|
|
|
2260
2316
|
|
|
2261
2317
|
|