@juzi/wechaty-puppet-service 1.0.9 → 1.0.10

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.
@@ -689,7 +689,8 @@ class PuppetService extends PUPPET.Puppet {
689
689
  * `weixin` is deprecated, will be removed after Dec 31, 2022
690
690
  * use `handle` instead.
691
691
  */
692
- weixin : response.getWeixin(),
692
+ weixin : response.getWeixin(),
693
+ additionalInfo: response.getAdditionalInfo(),
693
694
  }
694
695
 
695
696
  await this._payloadStore.contact?.set(id, payload)
@@ -1380,13 +1381,14 @@ class PuppetService extends PUPPET.Puppet {
1380
1381
  )(request)
1381
1382
 
1382
1383
  const payload: PUPPET.payloads.Room = {
1383
- adminIdList : response.getAdminIdsList(),
1384
- avatar : response.getAvatar(),
1385
- handle : response.getHandle(),
1386
- id : response.getId(),
1387
- memberIdList : response.getMemberIdsList(),
1388
- ownerId : response.getOwnerId(),
1389
- topic : response.getTopic(),
1384
+ adminIdList : response.getAdminIdsList(),
1385
+ avatar : response.getAvatar(),
1386
+ handle : response.getHandle(),
1387
+ id : response.getId(),
1388
+ memberIdList : response.getMemberIdsList(),
1389
+ ownerId : response.getOwnerId(),
1390
+ topic : response.getTopic(),
1391
+ additionalInfo: response.getAdditionalInfo(),
1390
1392
  }
1391
1393
 
1392
1394
  await this._payloadStore.room?.set(id, payload)
@@ -1598,11 +1600,12 @@ class PuppetService extends PUPPET.Puppet {
1598
1600
  )(request)
1599
1601
 
1600
1602
  const payload: PUPPET.payloads.RoomMember = {
1601
- avatar : response.getAvatar(),
1602
- id : response.getId(),
1603
- inviterId : response.getInviterId(),
1604
- name : response.getName(),
1605
- roomAlias : response.getRoomAlias(),
1603
+ avatar : response.getAvatar(),
1604
+ id : response.getId(),
1605
+ inviterId : response.getInviterId(),
1606
+ name : response.getName(),
1607
+ roomAlias : response.getRoomAlias(),
1608
+ additionalInfo: response.getAdditionalInfo(),
1606
1609
  }
1607
1610
 
1608
1611
  await this._payloadStore.roomMember?.set(roomId, {
@@ -4,7 +4,7 @@
4
4
  import type { PackageJson } from 'type-fest'
5
5
  export const packageJson: PackageJson = {
6
6
  "name": "@juzi/wechaty-puppet-service",
7
- "version": "1.0.9",
7
+ "version": "1.0.10",
8
8
  "description": "Puppet Service for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {
@@ -69,10 +69,10 @@ export const packageJson: PackageJson = {
69
69
  "why-is-node-running": "^2.2.1"
70
70
  },
71
71
  "peerDependencies": {
72
- "@juzi/wechaty-puppet": "1.0.6"
72
+ "@juzi/wechaty-puppet": "1.0.7"
73
73
  },
74
74
  "dependencies": {
75
- "@juzi/wechaty-grpc": "1.0.6",
75
+ "@juzi/wechaty-grpc": "1.0.7",
76
76
  "clone-class": "^1.1.1",
77
77
  "ducks": "^1.0.2",
78
78
  "file-box": "^1.5.5",
@@ -255,6 +255,7 @@ function puppetImplementation (
255
255
  response.setCorporation(payload.corporation || '')
256
256
  response.setTitle(payload.title || '')
257
257
  response.setDescription(payload.description || '')
258
+ response.setAdditionalInfo(payload.additionalInfo || '')
258
259
 
259
260
  return callback(null, response)
260
261
  } catch (e) {
@@ -769,6 +770,7 @@ function puppetImplementation (
769
770
  */
770
771
  response.setListenerId(payload.listenerId || payload.toId || '')
771
772
  response.setType(payload.type as grpcPuppet.MessageTypeMap[keyof grpcPuppet.MessageTypeMap])
773
+ response.setQuoteId(payload.quoteId || '')
772
774
 
773
775
  return callback(null, response)
774
776
 
@@ -1349,6 +1351,7 @@ function puppetImplementation (
1349
1351
  response.setInviterId(payload.inviterId || '')
1350
1352
  response.setName(payload.name)
1351
1353
  response.setRoomAlias(payload.roomAlias || '')
1354
+ response.setAdditionalInfo(payload.additionalInfo || '')
1352
1355
 
1353
1356
  return callback(null, response)
1354
1357
 
@@ -1373,6 +1376,7 @@ function puppetImplementation (
1373
1376
  response.setMemberIdsList(payload.memberIdList)
1374
1377
  response.setOwnerId(payload.ownerId || '')
1375
1378
  response.setTopic(payload.topic)
1379
+ response.setAdditionalInfo(payload.additionalInfo || '')
1376
1380
 
1377
1381
  return callback(null, response)
1378
1382