sanka-baileyss 2.3.2 → 2.3.4

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.
Files changed (159) hide show
  1. package/WAProto/BotMetadata/BotMetadata.d.ts +594 -1
  2. package/WAProto/BotMetadata/BotMetadata.js +1910 -148
  3. package/WAProto/BotMetadata/BotMetadata.proto +36 -0
  4. package/WAProto/E2E/E2E.d.ts +570 -6
  5. package/WAProto/E2E/E2E.js +1591 -26
  6. package/WAProto/E2E/E2E.proto +10 -1
  7. package/WAProto/HistorySync/HistorySync.d.ts +806 -6
  8. package/WAProto/HistorySync/HistorySync.js +2193 -29
  9. package/WAProto/HistorySync/HistorySync.proto +2 -1
  10. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +570 -6
  11. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +1591 -26
  12. package/WAProto/StatusAttributions/StatusAttributions.d.ts +2 -1
  13. package/WAProto/StatusAttributions/StatusAttributions.js +7 -0
  14. package/WAProto/StatusAttributions/StatusAttributions.proto +1 -0
  15. package/WAProto/SyncAction/SyncAction.d.ts +230 -0
  16. package/WAProto/SyncAction/SyncAction.js +578 -2
  17. package/WAProto/SyncAction/SyncAction.proto +13 -1
  18. package/WAProto/Web/Web.d.ts +570 -6
  19. package/WAProto/Web/Web.js +1591 -26
  20. package/lib/Defaults/baileys-version.json +2 -2
  21. package/lib/Defaults/index.d.ts +42 -25
  22. package/lib/Defaults/index.js +6 -2
  23. package/lib/Signal/Group/sender-key-record.js +23 -28
  24. package/lib/Signal/libsignal.d.ts +1 -0
  25. package/lib/Socket/Client/index.js +13 -9
  26. package/lib/Socket/Client/types.d.ts +11 -10
  27. package/lib/Socket/Client/types.js +11 -7
  28. package/lib/Socket/Client/websocket.d.ts +9 -8
  29. package/lib/Socket/Client/websocket.js +52 -47
  30. package/lib/Socket/business.d.ts +185 -182
  31. package/lib/Socket/business.js +258 -249
  32. package/lib/Socket/chats.d.ts +90 -87
  33. package/lib/Socket/chats.js +1095 -888
  34. package/lib/Socket/community.d.ts +131 -0
  35. package/lib/Socket/community.js +369 -0
  36. package/lib/Socket/groups.d.ts +50 -41
  37. package/lib/Socket/groups.js +10 -3
  38. package/lib/Socket/index.d.ts +5 -1
  39. package/lib/Socket/index.js +19 -5
  40. package/lib/Socket/messages-recv.d.ts +6 -2
  41. package/lib/Socket/messages-recv.js +31 -8
  42. package/lib/Socket/messages-send.d.ts +5 -1
  43. package/lib/Socket/messages-send.js +1293 -1351
  44. package/lib/Socket/newsletter.d.ts +142 -135
  45. package/lib/Socket/newsletter.js +274 -230
  46. package/lib/Socket/socket.d.ts +37 -35
  47. package/lib/Socket/usync.d.ts +31 -30
  48. package/lib/Socket/usync.js +74 -62
  49. package/lib/Types/Auth.d.ts +89 -72
  50. package/lib/Types/Auth.js +1 -0
  51. package/lib/Types/Call.d.ts +11 -10
  52. package/lib/Types/Call.js +1 -0
  53. package/lib/Types/Chat.d.ts +85 -62
  54. package/lib/Types/Chat.js +4 -1
  55. package/lib/Types/Contact.js +1 -0
  56. package/lib/Types/Events.d.ts +209 -191
  57. package/lib/Types/Events.js +1 -0
  58. package/lib/Types/GroupMetadata.d.ts +12 -27
  59. package/lib/Types/GroupMetadata.js +1 -0
  60. package/lib/Types/Label.d.ts +41 -39
  61. package/lib/Types/Label.js +24 -21
  62. package/lib/Types/LabelAssociation.d.ts +18 -12
  63. package/lib/Types/LabelAssociation.js +6 -3
  64. package/lib/Types/Message.d.ts +3 -2
  65. package/lib/Types/Message.js +7 -3
  66. package/lib/Types/MexUpdates.d.ts +9 -0
  67. package/lib/Types/MexUpdates.js +18 -0
  68. package/lib/Types/Newsletter.d.ts +84 -67
  69. package/lib/Types/Newsletter.js +30 -23
  70. package/lib/Types/Product.d.ts +70 -56
  71. package/lib/Types/Product.js +1 -0
  72. package/lib/Types/Signal.d.ts +46 -35
  73. package/lib/Types/Signal.js +1 -0
  74. package/lib/Types/Socket.d.ts +105 -101
  75. package/lib/Types/Socket.js +1 -0
  76. package/lib/Types/State.d.ts +37 -23
  77. package/lib/Types/State.js +13 -1
  78. package/lib/Types/USync.d.ts +21 -20
  79. package/lib/Types/USync.js +1 -0
  80. package/lib/Types/index.d.ts +51 -42
  81. package/lib/Types/index.js +25 -19
  82. package/lib/Utils/auth-utils.d.ts +14 -11
  83. package/lib/Utils/auth-utils.js +189 -182
  84. package/lib/Utils/baileys-event-stream.d.ts +12 -10
  85. package/lib/Utils/baileys-event-stream.js +52 -46
  86. package/lib/Utils/business.d.ts +15 -8
  87. package/lib/Utils/business.js +229 -217
  88. package/lib/Utils/chat-utils.d.ts +22 -12
  89. package/lib/Utils/chat-utils.js +57 -27
  90. package/lib/Utils/crypto.d.ts +31 -15
  91. package/lib/Utils/crypto.js +136 -107
  92. package/lib/Utils/decode-wa-message.d.ts +34 -245
  93. package/lib/Utils/decode-wa-message.js +205 -217
  94. package/lib/Utils/event-buffer.d.ts +30 -26
  95. package/lib/Utils/event-buffer.js +519 -515
  96. package/lib/Utils/history.d.ts +2 -8
  97. package/lib/Utils/index.js +13 -9
  98. package/lib/Utils/link-preview.d.ts +16 -14
  99. package/lib/Utils/link-preview.js +100 -92
  100. package/lib/Utils/logger.d.ts +9 -7
  101. package/lib/Utils/logger.js +1 -1
  102. package/lib/Utils/lt-hash.d.ts +10 -8
  103. package/lib/Utils/lt-hash.js +49 -44
  104. package/lib/Utils/make-mutex.d.ts +4 -2
  105. package/lib/Utils/make-mutex.js +43 -39
  106. package/lib/Utils/messages-media.d.ts +75 -50
  107. package/lib/Utils/messages.d.ts +60 -35
  108. package/lib/Utils/messages.js +87 -8
  109. package/lib/Utils/noise-handler.d.ts +13 -12
  110. package/lib/Utils/noise-handler.js +143 -138
  111. package/lib/Utils/process-message.d.ts +32 -24
  112. package/lib/Utils/process-message.js +387 -367
  113. package/lib/Utils/signal.d.ts +24 -15
  114. package/lib/Utils/signal.js +143 -131
  115. package/lib/Utils/use-mongo-file-auth-state.d.ts +3 -2
  116. package/lib/Utils/use-mongo-file-auth-state.js +72 -63
  117. package/lib/Utils/use-multi-file-auth-state.d.ts +9 -8
  118. package/lib/Utils/use-multi-file-auth-state.js +110 -102
  119. package/lib/Utils/use-single-file-auth-state.d.ts +8 -7
  120. package/lib/Utils/use-single-file-auth-state.js +66 -61
  121. package/lib/Utils/validate-connection.d.ts +5 -2
  122. package/lib/Utils/validate-connection.js +7 -6
  123. package/lib/WABinary/constants.d.ts +24 -21
  124. package/lib/WABinary/constants.js +1302 -31
  125. package/lib/WABinary/decode.d.ts +4 -1
  126. package/lib/WABinary/decode.js +267 -234
  127. package/lib/WABinary/encode.d.ts +1 -0
  128. package/lib/WABinary/encode.js +248 -226
  129. package/lib/WABinary/generic-utils.d.ts +13 -1
  130. package/lib/WABinary/generic-utils.js +113 -96
  131. package/lib/WABinary/index.js +13 -9
  132. package/lib/WABinary/jid-utils.d.ts +23 -4
  133. package/lib/WABinary/jid-utils.js +58 -39
  134. package/lib/WABinary/types.d.ts +15 -11
  135. package/lib/WABinary/types.js +1 -0
  136. package/lib/WAM/BinaryInfo.d.ts +14 -14
  137. package/lib/WAM/BinaryInfo.js +11 -8
  138. package/lib/WAM/constants.d.ts +34 -26
  139. package/lib/WAM/constants.js +15358 -15349
  140. package/lib/WAM/encode.d.ts +1 -0
  141. package/lib/WAM/encode.js +153 -144
  142. package/lib/WAM/index.js +13 -9
  143. package/lib/index.js +11 -11
  144. package/package.json +1 -66
  145. package/WASignalGroup/GroupProtocol.js +0 -1771
  146. package/WASignalGroup/ciphertext_message.js +0 -10
  147. package/WASignalGroup/group_cipher.js +0 -103
  148. package/WASignalGroup/group_session_builder.js +0 -39
  149. package/WASignalGroup/index.js +0 -5
  150. package/WASignalGroup/keyhelper.js +0 -17
  151. package/WASignalGroup/protobufs.js +0 -2
  152. package/WASignalGroup/queue_job.js +0 -64
  153. package/WASignalGroup/sender_chain_key.js +0 -38
  154. package/WASignalGroup/sender_key_distribution_message.js +0 -68
  155. package/WASignalGroup/sender_key_message.js +0 -79
  156. package/WASignalGroup/sender_key_name.js +0 -59
  157. package/WASignalGroup/sender_key_record.js +0 -47
  158. package/WASignalGroup/sender_key_state.js +0 -110
  159. package/WASignalGroup/sender_message_key.js +0 -30
@@ -1,259 +1,268 @@
1
1
  "use strict"
2
+
2
3
  Object.defineProperty(exports, "__esModule", { value: true })
4
+
3
5
  const business_1 = require("../Utils/business")
4
6
  const WABinary_1 = require("../WABinary")
5
7
  const generic_utils_1 = require("../WABinary/generic-utils")
6
8
  const messages_recv_1 = require("./messages-recv")
9
+
7
10
  const makeBusinessSocket = (config) => {
8
- const sock = messages_recv_1.makeMessagesRecvSocket(config)
9
- const { authState, query, waUploadToServer } = sock
10
- const getCatalog = async ({ jid, limit, cursor }) => {
11
- jid = jid || authState.creds.me?.id
12
- jid = WABinary_1.jidNormalizedUser(jid)
13
- const queryParamNodes = [
14
- {
15
- tag: 'limit',
16
- attrs: {},
17
- content: Buffer.from((limit || 10).toString())
18
- },
19
- {
20
- tag: 'width',
21
- attrs: {},
22
- content: Buffer.from('100')
23
- },
24
- {
25
- tag: 'height',
26
- attrs: {},
27
- content: Buffer.from('100')
28
- },
29
- ]
30
- if (cursor) {
31
- queryParamNodes.push({
32
- tag: 'after',
33
- attrs: {},
34
- content: cursor
35
- })
36
- }
37
- const result = await query({
38
- tag: 'iq',
39
- attrs: {
40
- to: WABinary_1.S_WHATSAPP_NET,
41
- type: 'get',
42
- xmlns: 'w:biz:catalog'
43
- },
44
- content: [
45
- {
46
- tag: 'product_catalog',
47
- attrs: {
48
- jid,
49
- 'allow_shop_source': 'true'
50
- },
51
- content: queryParamNodes
52
- }
53
- ]
54
- })
55
- return business_1.parseCatalogNode(result)
56
- }
57
- const getCollections = async (jid, limit = 51) => {
58
- jid = jid || authState.creds.me?.id
59
- jid = WABinary_1.jidNormalizedUser(jid)
60
- const result = await query({
61
- tag: 'iq',
62
- attrs: {
63
- to: WABinary_1.S_WHATSAPP_NET,
64
- type: 'get',
65
- xmlns: 'w:biz:catalog',
66
- 'smax_id': '35'
67
- },
68
- content: [
69
- {
70
- tag: 'collections',
71
- attrs: {
72
- 'biz_jid': jid,
73
- },
74
- content: [
75
- {
76
- tag: 'collection_limit',
77
- attrs: {},
78
- content: Buffer.from(limit.toString())
79
- },
80
- {
81
- tag: 'item_limit',
82
- attrs: {},
83
- content: Buffer.from(limit.toString())
84
- },
85
- {
86
- tag: 'width',
87
- attrs: {},
88
- content: Buffer.from('100')
89
- },
90
- {
91
- tag: 'height',
92
- attrs: {},
93
- content: Buffer.from('100')
94
- }
95
- ]
96
- }
97
- ]
98
- })
99
- return business_1.parseCollectionsNode(result)
100
- }
101
- const getOrderDetails = async (orderId, tokenBase64) => {
102
- const result = await query({
103
- tag: 'iq',
104
- attrs: {
105
- to: WABinary_1.S_WHATSAPP_NET,
106
- type: 'get',
107
- xmlns: 'fb:thrift_iq',
108
- 'smax_id': '5'
109
- },
110
- content: [
111
- {
112
- tag: 'order',
113
- attrs: {
114
- op: 'get',
115
- id: orderId
116
- },
117
- content: [
118
- {
119
- tag: 'image_dimensions',
120
- attrs: {},
121
- content: [
122
- {
123
- tag: 'width',
124
- attrs: {},
125
- content: Buffer.from('100')
126
- },
127
- {
128
- tag: 'height',
129
- attrs: {},
130
- content: Buffer.from('100')
131
- }
132
- ]
133
- },
134
- {
135
- tag: 'token',
136
- attrs: {},
137
- content: Buffer.from(tokenBase64)
138
- }
139
- ]
140
- }
141
- ]
142
- })
143
- return business_1.parseOrderDetailsNode(result)
144
- }
145
- const productUpdate = async (productId, update) => {
146
- update = await business_1.uploadingNecessaryImagesOfProduct(update, waUploadToServer)
147
- const editNode = business_1.toProductNode(productId, update)
148
- const result = await query({
149
- tag: 'iq',
150
- attrs: {
151
- to: WABinary_1.S_WHATSAPP_NET,
152
- type: 'set',
153
- xmlns: 'w:biz:catalog'
154
- },
155
- content: [
156
- {
157
- tag: 'product_catalog_edit',
158
- attrs: { v: '1' },
159
- content: [
160
- editNode,
161
- {
162
- tag: 'width',
163
- attrs: {},
164
- content: '100'
165
- },
166
- {
167
- tag: 'height',
168
- attrs: {},
169
- content: '100'
170
- }
171
- ]
172
- }
173
- ]
174
- })
175
- const productCatalogEditNode = generic_utils_1.getBinaryNodeChild(result, 'product_catalog_edit')
176
- const productNode = generic_utils_1.getBinaryNodeChild(productCatalogEditNode, 'product')
177
- return business_1.parseProductNode(productNode)
178
- }
179
- const productCreate = async (create) => {
180
- // ensure isHidden is defined
181
- create.isHidden = !!create.isHidden
182
- create = await business_1.uploadingNecessaryImagesOfProduct(create, waUploadToServer)
183
- const createNode = business_1.toProductNode(undefined, create)
184
- const result = await query({
185
- tag: 'iq',
186
- attrs: {
187
- to: WABinary_1.S_WHATSAPP_NET,
188
- type: 'set',
189
- xmlns: 'w:biz:catalog'
190
- },
191
- content: [
192
- {
193
- tag: 'product_catalog_add',
194
- attrs: { v: '1' },
195
- content: [
196
- createNode,
197
- {
198
- tag: 'width',
199
- attrs: {},
200
- content: '100'
201
- },
202
- {
203
- tag: 'height',
204
- attrs: {},
205
- content: '100'
206
- }
207
- ]
208
- }
209
- ]
210
- })
211
- const productCatalogAddNode = generic_utils_1.getBinaryNodeChild(result, 'product_catalog_add')
212
- const productNode = generic_utils_1.getBinaryNodeChild(productCatalogAddNode, 'product')
213
- return business_1.parseProductNode(productNode)
214
- }
215
- const productDelete = async (productIds) => {
216
- const result = await query({
217
- tag: 'iq',
218
- attrs: {
219
- to: WABinary_1.S_WHATSAPP_NET,
220
- type: 'set',
221
- xmlns: 'w:biz:catalog'
222
- },
223
- content: [
224
- {
225
- tag: 'product_catalog_delete',
226
- attrs: { v: '1' },
227
- content: productIds.map(id => ({
228
- tag: 'product',
229
- attrs: {},
230
- content: [
231
- {
232
- tag: 'id',
233
- attrs: {},
234
- content: Buffer.from(id)
235
- }
236
- ]
237
- }))
238
- }
239
- ]
240
- })
241
- const productCatalogDelNode = generic_utils_1.getBinaryNodeChild(result, 'product_catalog_delete')
242
- return {
243
- deleted: +(productCatalogDelNode?.attrs?.deleted_count || 0)
244
- }
245
- }
246
- return {
247
- ...sock,
248
- logger: config.logger,
249
- getOrderDetails,
250
- getCatalog,
251
- getCollections,
252
- productCreate,
253
- productDelete,
254
- productUpdate
255
- }
11
+ const suki = messages_recv_1.makeMessagesRecvSocket(config)
12
+ const { authState, query, waUploadToServer } = suki
13
+ const getCatalog = async ({ jid, limit, cursor }) => {
14
+ jid = jid || authState.creds.me?.id
15
+ jid = WABinary_1.jidNormalizedUser(jid)
16
+ const queryParamNodes = [
17
+ {
18
+ tag: 'limit',
19
+ attrs: {},
20
+ content: Buffer.from((limit || 10).toString())
21
+ },
22
+ {
23
+ tag: 'width',
24
+ attrs: {},
25
+ content: Buffer.from('100')
26
+ },
27
+ {
28
+ tag: 'height',
29
+ attrs: {},
30
+ content: Buffer.from('100')
31
+ },
32
+ ]
33
+ if (cursor) {
34
+ queryParamNodes.push({
35
+ tag: 'after',
36
+ attrs: {},
37
+ content: cursor
38
+ })
39
+ }
40
+ const result = await query({
41
+ tag: 'iq',
42
+ attrs: {
43
+ to: WABinary_1.S_WHATSAPP_NET,
44
+ type: 'get',
45
+ xmlns: 'w:biz:catalog'
46
+ },
47
+ content: [
48
+ {
49
+ tag: 'product_catalog',
50
+ attrs: {
51
+ jid,
52
+ 'allow_shop_source': 'true'
53
+ },
54
+ content: queryParamNodes
55
+ }
56
+ ]
57
+ })
58
+ return business_1.parseCatalogNode(result)
59
+ }
60
+
61
+ const getCollections = async (jid, limit = 51) => {
62
+ jid = jid || authState.creds.me?.id
63
+ jid = WABinary_1.jidNormalizedUser(jid)
64
+ const result = await query({
65
+ tag: 'iq',
66
+ attrs: {
67
+ to: WABinary_1.S_WHATSAPP_NET,
68
+ type: 'get',
69
+ xmlns: 'w:biz:catalog',
70
+ 'smax_id': '35'
71
+ },
72
+ content: [
73
+ {
74
+ tag: 'collections',
75
+ attrs: {
76
+ 'biz_jid': jid,
77
+ },
78
+ content: [
79
+ {
80
+ tag: 'collection_limit',
81
+ attrs: {},
82
+ content: Buffer.from(limit.toString())
83
+ },
84
+ {
85
+ tag: 'item_limit',
86
+ attrs: {},
87
+ content: Buffer.from(limit.toString())
88
+ },
89
+ {
90
+ tag: 'width',
91
+ attrs: {},
92
+ content: Buffer.from('100')
93
+ },
94
+ {
95
+ tag: 'height',
96
+ attrs: {},
97
+ content: Buffer.from('100')
98
+ }
99
+ ]
100
+ }
101
+ ]
102
+ })
103
+ return business_1.parseCollectionsNode(result)
104
+ }
105
+
106
+ const getOrderDetails = async (orderId, tokenBase64) => {
107
+ const result = await query({
108
+ tag: 'iq',
109
+ attrs: {
110
+ to: WABinary_1.S_WHATSAPP_NET,
111
+ type: 'get',
112
+ xmlns: 'fb:thrift_iq',
113
+ 'smax_id': '5'
114
+ },
115
+ content: [
116
+ {
117
+ tag: 'order',
118
+ attrs: {
119
+ op: 'get',
120
+ id: orderId
121
+ },
122
+ content: [
123
+ {
124
+ tag: 'image_dimensions',
125
+ attrs: {},
126
+ content: [
127
+ {
128
+ tag: 'width',
129
+ attrs: {},
130
+ content: Buffer.from('100')
131
+ },
132
+ {
133
+ tag: 'height',
134
+ attrs: {},
135
+ content: Buffer.from('100')
136
+ }
137
+ ]
138
+ },
139
+ {
140
+ tag: 'token',
141
+ attrs: {},
142
+ content: Buffer.from(tokenBase64)
143
+ }
144
+ ]
145
+ }
146
+ ]
147
+ })
148
+ return business_1.parseOrderDetailsNode(result)
149
+ }
150
+
151
+ const productUpdate = async (productId, update) => {
152
+ update = await business_1.uploadingNecessaryImagesOfProduct(update, waUploadToServer)
153
+ const editNode = business_1.toProductNode(productId, update)
154
+ const result = await query({
155
+ tag: 'iq',
156
+ attrs: {
157
+ to: WABinary_1.S_WHATSAPP_NET,
158
+ type: 'set',
159
+ xmlns: 'w:biz:catalog'
160
+ },
161
+ content: [
162
+ {
163
+ tag: 'product_catalog_edit',
164
+ attrs: { v: '1' },
165
+ content: [
166
+ editNode,
167
+ {
168
+ tag: 'width',
169
+ attrs: {},
170
+ content: '100'
171
+ },
172
+ {
173
+ tag: 'height',
174
+ attrs: {},
175
+ content: '100'
176
+ }
177
+ ]
178
+ }
179
+ ]
180
+ })
181
+ const productCatalogEditNode = generic_utils_1.getBinaryNodeChild(result, 'product_catalog_edit')
182
+ const productNode = generic_utils_1.getBinaryNodeChild(productCatalogEditNode, 'product')
183
+ return business_1.parseProductNode(productNode)
184
+ }
185
+
186
+ const productCreate = async (create) => {
187
+ // ensure isHidden is defined
188
+ create.isHidden = !!create.isHidden
189
+ create = await business_1.uploadingNecessaryImagesOfProduct(create, waUploadToServer)
190
+ const createNode = business_1.toProductNode(undefined, create)
191
+ const result = await query({
192
+ tag: 'iq',
193
+ attrs: {
194
+ to: WABinary_1.S_WHATSAPP_NET,
195
+ type: 'set',
196
+ xmlns: 'w:biz:catalog'
197
+ },
198
+ content: [
199
+ {
200
+ tag: 'product_catalog_add',
201
+ attrs: { v: '1' },
202
+ content: [
203
+ createNode,
204
+ {
205
+ tag: 'width',
206
+ attrs: {},
207
+ content: '100'
208
+ },
209
+ {
210
+ tag: 'height',
211
+ attrs: {},
212
+ content: '100'
213
+ }
214
+ ]
215
+ }
216
+ ]
217
+ })
218
+ const productCatalogAddNode = generic_utils_1.getBinaryNodeChild(result, 'product_catalog_add')
219
+ const productNode = generic_utils_1.getBinaryNodeChild(productCatalogAddNode, 'product')
220
+ return business_1.parseProductNode(productNode)
221
+ }
222
+
223
+ const productDelete = async (productIds) => {
224
+ const result = await query({
225
+ tag: 'iq',
226
+ attrs: {
227
+ to: WABinary_1.S_WHATSAPP_NET,
228
+ type: 'set',
229
+ xmlns: 'w:biz:catalog'
230
+ },
231
+ content: [
232
+ {
233
+ tag: 'product_catalog_delete',
234
+ attrs: { v: '1' },
235
+ content: productIds.map(id => ({
236
+ tag: 'product',
237
+ attrs: {},
238
+ content: [
239
+ {
240
+ tag: 'id',
241
+ attrs: {},
242
+ content: Buffer.from(id)
243
+ }
244
+ ]
245
+ }))
246
+ }
247
+ ]
248
+ })
249
+ const productCatalogDelNode = generic_utils_1.getBinaryNodeChild(result, 'product_catalog_delete')
250
+ return {
251
+ deleted: +(productCatalogDelNode?.attrs?.deleted_count || 0)
252
+ }
253
+ }
254
+ return {
255
+ ...suki,
256
+ logger: config.logger,
257
+ getOrderDetails,
258
+ getCatalog,
259
+ getCollections,
260
+ productCreate,
261
+ productDelete,
262
+ productUpdate
263
+ }
256
264
  }
265
+
257
266
  module.exports = {
258
- makeBusinessSocket
267
+ makeBusinessSocket
259
268
  }