@@ -50,6 +50,8 @@ import type {
5050} from '../schemas/consult-card.js'
5151import type { CallRecordPayload } from '../schemas/call.js'
5252import type { ChatHistoryPayload } from '../schemas/chat-history.js'
53+ import type { WxxdProductPayload } from '../schemas/wxxd-product.js'
54+ import type { WxxdOrderPayload } from '../schemas/wxxd-order.js'
5355
5456const filebox = ( filebox : string | FileBoxInterface ) => typeof filebox === 'string' ? FileBox . fromJSON ( filebox ) : filebox
5557
@@ -84,6 +86,8 @@ const messageMixin = <MinxinBase extends typeof PuppetSkeleton & CacheMixin>(bas
8486 abstract messageChannelCard ( messageId : string ) : Promise < ChannelCardPayload >
8587 abstract messageConsultCard ( messageId : string ) : Promise < ConsultCardPayload >
8688 abstract messagePremiumOnlineAppointmentCard ( messageId : string ) : Promise < PremiumOnlineAppointmentCardPayload >
89+ abstract messageWxxdProduct ( messageId : string ) : Promise < WxxdProductPayload >
90+ abstract messageWxxdOrder ( messageId : string ) : Promise < WxxdOrderPayload >
8791 abstract messageCallRecord ( messageId : string ) : Promise < CallRecordPayload >
8892 abstract messageChatHistory ( messageId : string ) : Promise < ChatHistoryPayload [ ] >
8993
@@ -102,6 +106,8 @@ const messageMixin = <MinxinBase extends typeof PuppetSkeleton & CacheMixin>(bas
102106 // im-specific
103107 abstract messageSendPremiumOnlineAppointmentCard ( conversationId : string , premiumOnlineAppointmentCardSendPayload : PremiumOnlineAppointmentCardSendPayload ) : Promise < void | string >
104108 abstract messageSendDouyinOneClickPhoneCollection ( conversationId : string , douyinOneClickPhoneCollectionSendPayload : { } ) : Promise < void | string >
109+ abstract messageSendWxxdProduct ( conversationId : string , productId : string ) : Promise < void | string >
110+ abstract messageSendWxxdOrder ( conversationId : string , orderId : string ) : Promise < void | string >
105111
106112 abstract messageRecall ( messageId : string ) : Promise < boolean >
107113
@@ -334,6 +340,10 @@ const messageMixin = <MinxinBase extends typeof PuppetSkeleton & CacheMixin>(bas
334340 return this . messageSendChannelCard ( conversationId , sayable . payload )
335341 case sayableTypes . PremiumOnlineAppointmentCard :
336342 return this . messageSendPremiumOnlineAppointmentCard ( conversationId , sayable . payload )
343+ case sayableTypes . WxxdProduct :
344+ return this . messageSendWxxdProduct ( conversationId , sayable . payload . productId )
345+ case sayableTypes . WxxdOrder :
346+ return this . messageSendWxxdOrder ( conversationId , sayable . payload . orderId )
337347 default :
338348 throw new Error ( 'unsupported sayable payload: ' + JSON . stringify ( sayable ) )
339349 }
0 commit comments