@x4r1s3/baileys 0.0.0-stage → 1.0.0

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 (183) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1262 -2
  3. package/SECURITY.md +47 -0
  4. package/WAProto/V +1 -0
  5. package/WAProto/WAProto.proto +8892 -0
  6. package/WAProto/index.d.ts +104128 -0
  7. package/WAProto/index.js +334920 -0
  8. package/assets/rolling-circle.svg +133 -0
  9. package/assets/x4r1s3-banner.svg +32 -0
  10. package/engine-requirements.js +27 -0
  11. package/lib/Builders/A2UI.js +245 -0
  12. package/lib/Builders/AIRich.js +179 -0
  13. package/lib/Builders/Button.js +108 -0
  14. package/lib/Builders/CFC.js +284 -0
  15. package/lib/Builders/Carousel.js +81 -0
  16. package/lib/Call/THIRD_PARTY_LICENSE.txt +21 -0
  17. package/lib/Call/audio-feeder.mjs +179 -0
  18. package/lib/Call/audio-recorder.mjs +250 -0
  19. package/lib/Call/fetch-wasm-resources.mjs +104 -0
  20. package/lib/Call/index.mjs +680 -0
  21. package/lib/Call/relay-transport.mjs +563 -0
  22. package/lib/Call/signaling.mjs +641 -0
  23. package/lib/Call/types.mjs +17 -0
  24. package/lib/Call/video-feeder.mjs +94 -0
  25. package/lib/Call/wasm-engine.mjs +1372 -0
  26. package/lib/Call/worker-bootstrap.mjs +1042 -0
  27. package/lib/Defaults/ban-checker.js +56 -0
  28. package/lib/Defaults/index.js +170 -0
  29. package/lib/Signal/Group/ciphertext-message.js +23 -0
  30. package/lib/Signal/Group/group-session-builder.js +41 -0
  31. package/lib/Signal/Group/group_cipher.js +93 -0
  32. package/lib/Signal/Group/index.js +23 -0
  33. package/lib/Signal/Group/keyhelper.js +29 -0
  34. package/lib/Signal/Group/sender-chain-key.js +37 -0
  35. package/lib/Signal/Group/sender-key-distribution-message.js +74 -0
  36. package/lib/Signal/Group/sender-key-message.js +77 -0
  37. package/lib/Signal/Group/sender-key-name.js +59 -0
  38. package/lib/Signal/Group/sender-key-record.js +52 -0
  39. package/lib/Signal/Group/sender-key-state.js +95 -0
  40. package/lib/Signal/Group/sender-message-key.js +37 -0
  41. package/lib/Signal/libsignal.js +440 -0
  42. package/lib/Signal/lid-mapping.js +292 -0
  43. package/lib/Socket/Client/index.js +14 -0
  44. package/lib/Socket/Client/types.js +22 -0
  45. package/lib/Socket/Client/websocket.js +65 -0
  46. package/lib/Socket/aigroups.js +327 -0
  47. package/lib/Socket/ban-checker.js +165 -0
  48. package/lib/Socket/business.js +419 -0
  49. package/lib/Socket/chats.js +1921 -0
  50. package/lib/Socket/communities.js +443 -0
  51. package/lib/Socket/graphql.js +911 -0
  52. package/lib/Socket/groups.js +561 -0
  53. package/lib/Socket/index.js +49 -0
  54. package/lib/Socket/interactive-handler.js +612 -0
  55. package/lib/Socket/interop.js +575 -0
  56. package/lib/Socket/managed-account.js +220 -0
  57. package/lib/Socket/messages-recv.js +2191 -0
  58. package/lib/Socket/messages-send.js +4104 -0
  59. package/lib/Socket/mex.js +53 -0
  60. package/lib/Socket/newsletter.js +291 -0
  61. package/lib/Socket/privacy.js +458 -0
  62. package/lib/Socket/registration.js +440 -0
  63. package/lib/Socket/socket.js +1029 -0
  64. package/lib/Socket/status-actions.js +287 -0
  65. package/lib/Socket/username.js +241 -0
  66. package/lib/Store/index.js +16 -0
  67. package/lib/Store/make-cache-manager-store.js +101 -0
  68. package/lib/Store/make-in-memory-store.js +432 -0
  69. package/lib/Store/make-ordered-dictionary.js +90 -0
  70. package/lib/Store/object-repository.js +35 -0
  71. package/lib/Types/Auth.js +13 -0
  72. package/lib/Types/Bussines.js +13 -0
  73. package/lib/Types/Call.js +13 -0
  74. package/lib/Types/Chat.js +19 -0
  75. package/lib/Types/Contact.js +13 -0
  76. package/lib/Types/Events.js +13 -0
  77. package/lib/Types/GroupMetadata.js +13 -0
  78. package/lib/Types/Label.js +36 -0
  79. package/lib/Types/LabelAssociation.js +18 -0
  80. package/lib/Types/Message.js +30 -0
  81. package/lib/Types/Mex.js +53 -0
  82. package/lib/Types/Product.js +13 -0
  83. package/lib/Types/RichType.js +34 -0
  84. package/lib/Types/Signal.js +13 -0
  85. package/lib/Types/Socket.js +14 -0
  86. package/lib/Types/State.js +60 -0
  87. package/lib/Types/USync.js +13 -0
  88. package/lib/Types/index.js +37 -0
  89. package/lib/Utils/auth-utils.js +313 -0
  90. package/lib/Utils/ban-checker.js +48 -0
  91. package/lib/Utils/bot-capabilities.js +96 -0
  92. package/lib/Utils/bot-planning-replay.js +177 -0
  93. package/lib/Utils/browser-utils.js +40 -0
  94. package/lib/Utils/business.js +242 -0
  95. package/lib/Utils/c2582.js +147 -0
  96. package/lib/Utils/chat-utils.js +905 -0
  97. package/lib/Utils/companion-reg-client-utils.js +44 -0
  98. package/lib/Utils/consumer-application.js +114 -0
  99. package/lib/Utils/crypto.js +129 -0
  100. package/lib/Utils/decode-wa-message.js +496 -0
  101. package/lib/Utils/direct-chat-theme.js +164 -0
  102. package/lib/Utils/event-buffer.js +601 -0
  103. package/lib/Utils/experimental-proto.js +206 -0
  104. package/lib/Utils/games/miniapp.js +17 -0
  105. package/lib/Utils/games/slot-machine.js +270 -0
  106. package/lib/Utils/games/website-preview.js +306 -0
  107. package/lib/Utils/generics.js +402 -0
  108. package/lib/Utils/group-history.js +68 -0
  109. package/lib/Utils/group-wallpaper.js +168 -0
  110. package/lib/Utils/history.js +162 -0
  111. package/lib/Utils/identity-change-handler.js +60 -0
  112. package/lib/Utils/index.js +61 -0
  113. package/lib/Utils/jid-display-normalization.js +221 -0
  114. package/lib/Utils/link-preview.js +96 -0
  115. package/lib/Utils/logger.js +14 -0
  116. package/lib/Utils/lt-hash.js +19 -0
  117. package/lib/Utils/make-mutex.js +44 -0
  118. package/lib/Utils/message-composer.js +709 -0
  119. package/lib/Utils/message-inspect.js +79 -0
  120. package/lib/Utils/message-retry-manager.js +253 -0
  121. package/lib/Utils/message-security.js +167 -0
  122. package/lib/Utils/messages-media.js +1027 -0
  123. package/lib/Utils/messages.js +2467 -0
  124. package/lib/Utils/meta-ai-msmsg.js +215 -0
  125. package/lib/Utils/meta-compositing.js +239 -0
  126. package/lib/Utils/native-flow.js +158 -0
  127. package/lib/Utils/newsletter-live-update-utils.js +74 -0
  128. package/lib/Utils/newsletter-status-utils.js +152 -0
  129. package/lib/Utils/noise-handler.js +212 -0
  130. package/lib/Utils/offline-node-processor.js +51 -0
  131. package/lib/Utils/poll-manager.js +206 -0
  132. package/lib/Utils/portable-compat.js +12 -0
  133. package/lib/Utils/pre-key-manager.js +117 -0
  134. package/lib/Utils/process-message.js +610 -0
  135. package/lib/Utils/reporting-utils.js +269 -0
  136. package/lib/Utils/rich-message-utils.js +2841 -0
  137. package/lib/Utils/scheduled-message.js +107 -0
  138. package/lib/Utils/signal.js +212 -0
  139. package/lib/Utils/source-grep.js +57 -0
  140. package/lib/Utils/stanza-ack.js +49 -0
  141. package/lib/Utils/sticker-annotation.js +87 -0
  142. package/lib/Utils/sync-action-utils.js +59 -0
  143. package/lib/Utils/tc-token-utils.js +174 -0
  144. package/lib/Utils/use-multi-file-auth-state.js +132 -0
  145. package/lib/Utils/use-single-file-auth-state.js +108 -0
  146. package/lib/Utils/use-sqlite-auth-state.js +120 -0
  147. package/lib/Utils/validate-connection.js +220 -0
  148. package/lib/Utils/view-once-utils.js +218 -0
  149. package/lib/Utils/voip-rekey.js +32 -0
  150. package/lib/Utils/website-preview.js +27 -0
  151. package/lib/Utils/welcome-flow.js +228 -0
  152. package/lib/Utils/x4r1s3.js +144 -0
  153. package/lib/WABinary/constants.js +1475 -0
  154. package/lib/WABinary/decode.js +273 -0
  155. package/lib/WABinary/encode.js +231 -0
  156. package/lib/WABinary/generic-utils.js +242 -0
  157. package/lib/WABinary/index.js +17 -0
  158. package/lib/WABinary/jid-utils.js +107 -0
  159. package/lib/WABinary/types.js +13 -0
  160. package/lib/WAM/BinaryInfo.js +21 -0
  161. package/lib/WAM/constants.js +22864 -0
  162. package/lib/WAM/encode.js +161 -0
  163. package/lib/WAM/index.js +15 -0
  164. package/lib/WAUSync/Protocols/USyncBusinessProtocol.js +108 -0
  165. package/lib/WAUSync/Protocols/USyncContactProtocol.js +68 -0
  166. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +65 -0
  167. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +38 -0
  168. package/lib/WAUSync/Protocols/USyncFeatureProtocol.js +82 -0
  169. package/lib/WAUSync/Protocols/USyncPictureProtocol.js +40 -0
  170. package/lib/WAUSync/Protocols/USyncSidelistProtocol.js +37 -0
  171. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +49 -0
  172. package/lib/WAUSync/Protocols/USyncTextStatusProtocol.js +46 -0
  173. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +36 -0
  174. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +62 -0
  175. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +40 -0
  176. package/lib/WAUSync/Protocols/index.js +24 -0
  177. package/lib/WAUSync/USyncQuery.js +213 -0
  178. package/lib/WAUSync/USyncUser.js +66 -0
  179. package/lib/WAUSync/index.js +15 -0
  180. package/lib/antiban.cjs +4726 -0
  181. package/lib/index.d.ts +1285 -0
  182. package/lib/index.js +30 -0
  183. package/package.json +125 -4
@@ -0,0 +1,419 @@
1
+ /**
2
+ * @X4R1S3
3
+ *
4
+ * File: lib/Socket/business.js
5
+ * About: Business module for the X4R1S3 WhatsApp protocol client.
6
+ * Important exports: makeBusinessSocket
7
+ * Directions: Import the listed exports and preserve protocol, validation, and compatibility invariants when modifying.
8
+ *
9
+ * Copyright and attribution notice.
10
+ * Do not copy, reproduce, redistribute, modify, or create derivative works
11
+ * from this source without explicit written permission.
12
+ */
13
+ import { unlink } from 'node:fs/promises';
14
+ import { getRawMediaUploadData } from '../Utils/index.js';
15
+ import { parseCatalogNode, parseCollectionsNode, parseOrderDetailsNode, parseProductNode, toProductNode, uploadingNecessaryImagesOfProduct } from '../Utils/business.js';
16
+ import { jidNormalizedUser, S_WHATSAPP_NET } from '../WABinary/index.js';
17
+ import { getBinaryNodeChild } from '../WABinary/generic-utils.js';
18
+ import { makeMessagesRecvSocket } from './messages-recv.js';
19
+ export const makeBusinessSocket = (config) => {
20
+ const sock = makeMessagesRecvSocket(config);
21
+ const { authState, query, waUploadToServer } = sock;
22
+ const updateBusinessProfile = async (args = {}) => {
23
+ const node = [];
24
+ const simpleFields = ['address', 'email', 'description'];
25
+ node.push(...simpleFields
26
+ .filter(key => args[key] !== undefined)
27
+ .map(key => {
28
+ if (args[key] !== null && typeof args[key] !== 'string') {
29
+ throw new TypeError(`${key} must be a string or null`);
30
+ }
31
+ return {
32
+ tag: key,
33
+ attrs: {},
34
+ content: args[key] ?? ''
35
+ };
36
+ }));
37
+ if (args.websites !== undefined) {
38
+ if (!Array.isArray(args.websites) || args.websites.some(website => typeof website !== 'string')) {
39
+ throw new TypeError('websites must be an array of strings');
40
+ }
41
+ node.push(...(args.websites.length ? args.websites : ['']).map(website => ({
42
+ tag: 'website',
43
+ attrs: {},
44
+ content: website
45
+ })));
46
+ }
47
+ if (args.hours !== undefined) {
48
+ if (!args.hours || typeof args.hours.timezone !== 'string' || !Array.isArray(args.hours.days)) {
49
+ throw new TypeError('hours must contain a timezone string and days array');
50
+ }
51
+ node.push({
52
+ tag: 'business_hours',
53
+ attrs: { timezone: args.hours.timezone },
54
+ content: args.hours.days.map(dayConfig => {
55
+ if (!dayConfig || typeof dayConfig.day !== 'string' || typeof dayConfig.mode !== 'string') {
56
+ throw new TypeError('each business-hours day requires string day and mode values');
57
+ }
58
+ const base = {
59
+ tag: 'business_hours_config',
60
+ attrs: {
61
+ day_of_week: dayConfig.day,
62
+ mode: dayConfig.mode
63
+ }
64
+ };
65
+ if (dayConfig.mode === 'specific_hours') {
66
+ const { openTimeInMinutes, closeTimeInMinutes } = dayConfig;
67
+ if (!Number.isInteger(openTimeInMinutes) || !Number.isInteger(closeTimeInMinutes)) {
68
+ throw new TypeError('specific_hours requires integer openTimeInMinutes and closeTimeInMinutes');
69
+ }
70
+ return {
71
+ ...base,
72
+ attrs: {
73
+ ...base.attrs,
74
+ open_time: String(openTimeInMinutes),
75
+ close_time: String(closeTimeInMinutes)
76
+ }
77
+ };
78
+ }
79
+ return base;
80
+ })
81
+ });
82
+ }
83
+ const result = await query({
84
+ tag: 'iq',
85
+ attrs: {
86
+ to: S_WHATSAPP_NET,
87
+ type: 'set',
88
+ xmlns: 'w:biz'
89
+ },
90
+ content: [
91
+ {
92
+ tag: 'business_profile',
93
+ attrs: {
94
+ v: '3',
95
+ mutation_type: 'delta'
96
+ },
97
+ content: node
98
+ }
99
+ ]
100
+ });
101
+ return result;
102
+ };
103
+ const updateCoverPhoto = async (photo) => {
104
+ const { fileSha256, filePath } = await getRawMediaUploadData(photo, 'biz-cover-photo', config.logger);
105
+ try {
106
+ const fileSha256B64 = fileSha256.toString('base64');
107
+ const upload = await waUploadToServer(filePath, {
108
+ fileEncSha256B64: fileSha256B64,
109
+ mediaType: 'biz-cover-photo'
110
+ });
111
+ const { meta_hmac, fbid, ts } = upload || {};
112
+ if (fbid === undefined || fbid === null || !meta_hmac || ts === undefined || ts === null) {
113
+ throw new Error('Business cover photo upload returned incomplete metadata');
114
+ }
115
+ await query({
116
+ tag: 'iq',
117
+ attrs: {
118
+ to: S_WHATSAPP_NET,
119
+ type: 'set',
120
+ xmlns: 'w:biz'
121
+ },
122
+ content: [
123
+ {
124
+ tag: 'business_profile',
125
+ attrs: {
126
+ v: '3',
127
+ mutation_type: 'delta'
128
+ },
129
+ content: [
130
+ {
131
+ tag: 'cover_photo',
132
+ attrs: { id: String(fbid), op: 'update', token: String(meta_hmac), ts: String(ts) }
133
+ }
134
+ ]
135
+ }
136
+ ]
137
+ });
138
+ return fbid;
139
+ }
140
+ finally {
141
+ await unlink(filePath).catch(() => undefined);
142
+ }
143
+ };
144
+ const removeCoverPhoto = async (id) => {
145
+ return await query({
146
+ tag: 'iq',
147
+ attrs: {
148
+ to: S_WHATSAPP_NET,
149
+ type: 'set',
150
+ xmlns: 'w:biz'
151
+ },
152
+ content: [
153
+ {
154
+ tag: 'business_profile',
155
+ attrs: {
156
+ v: '3',
157
+ mutation_type: 'delta'
158
+ },
159
+ content: [
160
+ {
161
+ tag: 'cover_photo',
162
+ attrs: { op: 'delete', id }
163
+ }
164
+ ]
165
+ }
166
+ ]
167
+ });
168
+ };
169
+ const getCatalog = async ({ jid, limit, cursor }) => {
170
+ jid = jid || authState.creds.me?.id;
171
+ jid = jidNormalizedUser(jid);
172
+ const queryParamNodes = [
173
+ {
174
+ tag: 'limit',
175
+ attrs: {},
176
+ content: Buffer.from((limit || 10).toString())
177
+ },
178
+ {
179
+ tag: 'width',
180
+ attrs: {},
181
+ content: Buffer.from('100')
182
+ },
183
+ {
184
+ tag: 'height',
185
+ attrs: {},
186
+ content: Buffer.from('100')
187
+ }
188
+ ];
189
+ if (cursor) {
190
+ queryParamNodes.push({
191
+ tag: 'after',
192
+ attrs: {},
193
+ content: cursor
194
+ });
195
+ }
196
+ const result = await query({
197
+ tag: 'iq',
198
+ attrs: {
199
+ to: S_WHATSAPP_NET,
200
+ type: 'get',
201
+ xmlns: 'w:biz:catalog'
202
+ },
203
+ content: [
204
+ {
205
+ tag: 'product_catalog',
206
+ attrs: {
207
+ jid,
208
+ allow_shop_source: 'true'
209
+ },
210
+ content: queryParamNodes
211
+ }
212
+ ]
213
+ });
214
+ return parseCatalogNode(result);
215
+ };
216
+ const getCollections = async (jid, limit = 51) => {
217
+ jid = jid || authState.creds.me?.id;
218
+ jid = jidNormalizedUser(jid);
219
+ const result = await query({
220
+ tag: 'iq',
221
+ attrs: {
222
+ to: S_WHATSAPP_NET,
223
+ type: 'get',
224
+ xmlns: 'w:biz:catalog',
225
+ smax_id: '35'
226
+ },
227
+ content: [
228
+ {
229
+ tag: 'collections',
230
+ attrs: {
231
+ biz_jid: jid
232
+ },
233
+ content: [
234
+ {
235
+ tag: 'collection_limit',
236
+ attrs: {},
237
+ content: Buffer.from(limit.toString())
238
+ },
239
+ {
240
+ tag: 'item_limit',
241
+ attrs: {},
242
+ content: Buffer.from(limit.toString())
243
+ },
244
+ {
245
+ tag: 'width',
246
+ attrs: {},
247
+ content: Buffer.from('100')
248
+ },
249
+ {
250
+ tag: 'height',
251
+ attrs: {},
252
+ content: Buffer.from('100')
253
+ }
254
+ ]
255
+ }
256
+ ]
257
+ });
258
+ return parseCollectionsNode(result);
259
+ };
260
+ const getOrderDetails = async (orderId, tokenBase64) => {
261
+ const result = await query({
262
+ tag: 'iq',
263
+ attrs: {
264
+ to: S_WHATSAPP_NET,
265
+ type: 'get',
266
+ xmlns: 'fb:thrift_iq',
267
+ smax_id: '5'
268
+ },
269
+ content: [
270
+ {
271
+ tag: 'order',
272
+ attrs: {
273
+ op: 'get',
274
+ id: orderId
275
+ },
276
+ content: [
277
+ {
278
+ tag: 'image_dimensions',
279
+ attrs: {},
280
+ content: [
281
+ {
282
+ tag: 'width',
283
+ attrs: {},
284
+ content: Buffer.from('100')
285
+ },
286
+ {
287
+ tag: 'height',
288
+ attrs: {},
289
+ content: Buffer.from('100')
290
+ }
291
+ ]
292
+ },
293
+ {
294
+ tag: 'token',
295
+ attrs: {},
296
+ content: Buffer.from(tokenBase64)
297
+ }
298
+ ]
299
+ }
300
+ ]
301
+ });
302
+ return parseOrderDetailsNode(result);
303
+ };
304
+ const productUpdate = async (productId, update) => {
305
+ update = await uploadingNecessaryImagesOfProduct(update, waUploadToServer);
306
+ const editNode = toProductNode(productId, update);
307
+ const result = await query({
308
+ tag: 'iq',
309
+ attrs: {
310
+ to: S_WHATSAPP_NET,
311
+ type: 'set',
312
+ xmlns: 'w:biz:catalog'
313
+ },
314
+ content: [
315
+ {
316
+ tag: 'product_catalog_edit',
317
+ attrs: { v: '1' },
318
+ content: [
319
+ editNode,
320
+ {
321
+ tag: 'width',
322
+ attrs: {},
323
+ content: '100'
324
+ },
325
+ {
326
+ tag: 'height',
327
+ attrs: {},
328
+ content: '100'
329
+ }
330
+ ]
331
+ }
332
+ ]
333
+ });
334
+ const productCatalogEditNode = getBinaryNodeChild(result, 'product_catalog_edit');
335
+ const productNode = getBinaryNodeChild(productCatalogEditNode, 'product');
336
+ return parseProductNode(productNode);
337
+ };
338
+ const productCreate = async (create) => {
339
+ // ensure isHidden is defined
340
+ create.isHidden = !!create.isHidden;
341
+ create = await uploadingNecessaryImagesOfProduct(create, waUploadToServer);
342
+ const createNode = toProductNode(undefined, create);
343
+ const result = await query({
344
+ tag: 'iq',
345
+ attrs: {
346
+ to: S_WHATSAPP_NET,
347
+ type: 'set',
348
+ xmlns: 'w:biz:catalog'
349
+ },
350
+ content: [
351
+ {
352
+ tag: 'product_catalog_add',
353
+ attrs: { v: '1' },
354
+ content: [
355
+ createNode,
356
+ {
357
+ tag: 'width',
358
+ attrs: {},
359
+ content: '100'
360
+ },
361
+ {
362
+ tag: 'height',
363
+ attrs: {},
364
+ content: '100'
365
+ }
366
+ ]
367
+ }
368
+ ]
369
+ });
370
+ const productCatalogAddNode = getBinaryNodeChild(result, 'product_catalog_add');
371
+ const productNode = getBinaryNodeChild(productCatalogAddNode, 'product');
372
+ return parseProductNode(productNode);
373
+ };
374
+ const productDelete = async (productIds) => {
375
+ const result = await query({
376
+ tag: 'iq',
377
+ attrs: {
378
+ to: S_WHATSAPP_NET,
379
+ type: 'set',
380
+ xmlns: 'w:biz:catalog'
381
+ },
382
+ content: [
383
+ {
384
+ tag: 'product_catalog_delete',
385
+ attrs: { v: '1' },
386
+ content: productIds.map(id => ({
387
+ tag: 'product',
388
+ attrs: {},
389
+ content: [
390
+ {
391
+ tag: 'id',
392
+ attrs: {},
393
+ content: Buffer.from(id)
394
+ }
395
+ ]
396
+ }))
397
+ }
398
+ ]
399
+ });
400
+ const productCatalogDelNode = getBinaryNodeChild(result, 'product_catalog_delete');
401
+ return {
402
+ deleted: +(productCatalogDelNode?.attrs.deleted_count || 0)
403
+ };
404
+ };
405
+ return {
406
+ ...sock,
407
+ logger: config.logger,
408
+ getOrderDetails,
409
+ getCatalog,
410
+ getCollections,
411
+ productCreate,
412
+ productDelete,
413
+ productUpdate,
414
+ updateBussinesProfile: updateBusinessProfile,
415
+ updateBusinessProfile,
416
+ updateCoverPhoto,
417
+ removeCoverPhoto
418
+ };
419
+ };