feat: add signal repository + tests

This commit is contained in:
Adhiraj Singh
2023-03-18 12:25:47 +05:30
parent 2eea17fe9f
commit fe1d0649b5
21 changed files with 500 additions and 206 deletions

View File

@@ -54,7 +54,7 @@ export const makeBusinessSocket = (config: SocketConfig) => {
tag: 'product_catalog',
attrs: {
jid,
allow_shop_source: 'true'
'allow_shop_source': 'true'
},
content: queryParamNodes
}
@@ -72,13 +72,13 @@ export const makeBusinessSocket = (config: SocketConfig) => {
to: S_WHATSAPP_NET,
type: 'get',
xmlns: 'w:biz:catalog',
smax_id: '35'
'smax_id': '35'
},
content: [
{
tag: 'collections',
attrs: {
biz_jid: jid,
'biz_jid': jid,
},
content: [
{
@@ -116,7 +116,7 @@ export const makeBusinessSocket = (config: SocketConfig) => {
to: S_WHATSAPP_NET,
type: 'get',
xmlns: 'fb:thrift_iq',
smax_id: '5'
'smax_id': '5'
},
content: [
{