@gofynd/fdk-client-javascript 1.0.3 → 1.0.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 (175) hide show
  1. package/README.md +31 -2
  2. package/index.d.ts +4 -4
  3. package/index.js +9 -10
  4. package/package.json +14 -14
  5. package/sdk/APIClient.d.ts +11 -0
  6. package/sdk/APIClient.js +35 -0
  7. package/sdk/Client.d.ts +6 -0
  8. package/sdk/Client.js +17 -0
  9. package/sdk/Config.d.ts +9 -0
  10. package/sdk/Config.js +17 -0
  11. package/sdk/application/Cart/CartApplicationClient.js +29 -28
  12. package/sdk/application/Cart/CartApplicationModel.js +3 -1
  13. package/sdk/application/Catalog/CatalogApplicationClient.js +43 -42
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +1 -1
  15. package/sdk/application/Common/CommonApplicationClient.js +5 -4
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -5
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +21 -20
  18. package/sdk/application/Content/ContentApplicationClient.js +26 -25
  19. package/sdk/application/Content/ContentApplicationModel.js +1 -0
  20. package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -5
  21. package/sdk/application/Lead/LeadApplicationClient.js +10 -9
  22. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -3
  23. package/sdk/application/Logistic/LogisticApplicationClient.js +11 -12
  24. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -1
  25. package/sdk/application/Order/OrderApplicationClient.js +15 -14
  26. package/sdk/application/Order/OrderApplicationModel.js +9 -0
  27. package/sdk/application/Payment/PaymentApplicationClient.js +42 -41
  28. package/sdk/application/PosCart/PosCartApplicationClient.js +30 -29
  29. package/sdk/application/PosCart/PosCartApplicationModel.js +3 -1
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +11 -10
  31. package/sdk/application/Share/ShareApplicationClient.js +10 -9
  32. package/sdk/application/Theme/ThemeApplicationClient.js +7 -6
  33. package/sdk/application/User/UserApplicationClient.js +38 -37
  34. package/sdk/common/AxiosHelper.js +17 -6
  35. package/sdk/constructUrl.d.ts +5 -0
  36. package/sdk/constructUrl.js +13 -0
  37. package/sdk/index.d.ts +3 -0
  38. package/sdk/index.js +5 -0
  39. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -1
  40. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  41. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  42. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  43. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -2
  44. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +1 -0
  45. package/sdk/platform/Billing/BillingPlatformClient.js +3 -2
  46. package/sdk/platform/Billing/BillingPlatformValidator.js +1 -0
  47. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +27 -0
  48. package/sdk/platform/Cart/CartPlatformApplicationClient.js +177 -1
  49. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
  50. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -1
  51. package/sdk/platform/Cart/CartPlatformModel.js +7 -3
  52. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +3 -1
  53. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -1
  54. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  55. package/sdk/platform/Catalog/CatalogPlatformClient.js +6 -9
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +7 -7
  57. package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -1
  58. package/sdk/platform/Common/CommonPlatformClient.js +7 -18
  59. package/sdk/platform/Common/CommonPlatformValidator.js +1 -0
  60. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3 -1
  61. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -1
  62. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  63. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  64. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +5 -4
  65. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +1 -0
  66. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -1
  67. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
  68. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +9 -8
  69. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +1 -0
  70. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3 -62
  72. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +0 -1
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +1 -7
  74. package/sdk/platform/Content/ContentPlatformModel.js +1 -0
  75. package/sdk/platform/Discount/DiscountPlatformClient.js +3 -2
  76. package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -0
  77. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -3
  78. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +27 -5
  79. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
  80. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -3
  81. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -6
  82. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +1 -0
  83. package/sdk/platform/Inventory/InventoryPlatformClient.js +3 -2
  84. package/sdk/platform/Inventory/InventoryPlatformValidator.js +1 -0
  85. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +3 -1
  86. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Lead/LeadPlatformClient.js +4 -3
  88. package/sdk/platform/Lead/LeadPlatformValidator.js +1 -0
  89. package/sdk/platform/Order/OrderPlatformApplicationClient.js +3 -1
  90. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -1
  91. package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
  92. package/sdk/platform/Order/OrderPlatformClient.js +16 -3
  93. package/sdk/platform/Order/OrderPlatformModel.js +1 -0
  94. package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
  95. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  96. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  97. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +1 -1
  98. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +14 -14
  99. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +1 -1
  100. package/sdk/platform/Payment/PaymentPlatformClient.js +3 -2
  101. package/sdk/platform/Payment/PaymentPlatformValidator.js +1 -0
  102. package/sdk/platform/PlatformClient.d.ts +13 -9
  103. package/sdk/platform/PlatformClient.js +13 -9
  104. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +4 -4
  105. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +36 -17
  106. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +1 -1
  107. package/sdk/platform/Share/SharePlatformApplicationClient.js +3 -1
  108. package/sdk/platform/Share/SharePlatformApplicationValidator.js +1 -1
  109. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +3 -1
  110. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +1 -1
  111. package/sdk/platform/User/UserPlatformApplicationClient.js +3 -1
  112. package/sdk/platform/User/UserPlatformApplicationValidator.js +1 -1
  113. package/sdk/platform/Webhook/WebhookPlatformClient.js +3 -2
  114. package/sdk/platform/Webhook/WebhookPlatformValidator.js +1 -0
  115. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -0
  116. package/sdk/public/Inventory/InventoryPublicClient.js +2 -0
  117. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  118. package/.github/workflows/on_create_release.yml +0 -23
  119. package/.github/workflows/on_merge_main.yml +0 -38
  120. package/.github/workflows/on_pull_request.yml +0 -35
  121. package/.prettierrc +0 -5
  122. package/documentation/application/CART.md +0 -8771
  123. package/documentation/application/CATALOG.md +0 -8690
  124. package/documentation/application/COMMON.md +0 -325
  125. package/documentation/application/COMMUNICATION.md +0 -387
  126. package/documentation/application/CONFIGURATION.md +0 -2212
  127. package/documentation/application/CONTENT.md +0 -2629
  128. package/documentation/application/FILESTORAGE.md +0 -442
  129. package/documentation/application/LEAD.md +0 -1549
  130. package/documentation/application/LOGISTIC.md +0 -689
  131. package/documentation/application/ORDER.md +0 -2937
  132. package/documentation/application/PAYMENT.md +0 -4475
  133. package/documentation/application/POSCART.md +0 -9375
  134. package/documentation/application/README.md +0 -21
  135. package/documentation/application/REWARDS.md +0 -554
  136. package/documentation/application/SHARE.md +0 -635
  137. package/documentation/application/THEME.md +0 -5517
  138. package/documentation/application/USER.md +0 -3798
  139. package/documentation/platform/ANALYTICS.md +0 -1012
  140. package/documentation/platform/AUDITTRAIL.md +0 -493
  141. package/documentation/platform/BILLING.md +0 -1889
  142. package/documentation/platform/CART.md +0 -4711
  143. package/documentation/platform/CATALOG.md +0 -20522
  144. package/documentation/platform/COMMON.md +0 -325
  145. package/documentation/platform/COMMUNICATION.md +0 -4970
  146. package/documentation/platform/COMPANYPROFILE.md +0 -1646
  147. package/documentation/platform/CONFIGURATION.md +0 -6316
  148. package/documentation/platform/CONTENT.md +0 -8364
  149. package/documentation/platform/DISCOUNT.md +0 -767
  150. package/documentation/platform/FILESTORAGE.md +0 -945
  151. package/documentation/platform/INVENTORY.md +0 -1136
  152. package/documentation/platform/LEAD.md +0 -4394
  153. package/documentation/platform/ORDER.md +0 -6525
  154. package/documentation/platform/PARTNER.md +0 -193
  155. package/documentation/platform/PAYMENT.md +0 -3138
  156. package/documentation/platform/README.md +0 -27
  157. package/documentation/platform/REWARDS.md +0 -919
  158. package/documentation/platform/SHARE.md +0 -513
  159. package/documentation/platform/THEME.md +0 -35446
  160. package/documentation/platform/USER.md +0 -2174
  161. package/documentation/platform/WEBHOOK.md +0 -485
  162. package/documentation/public/CONFIGURATION.md +0 -325
  163. package/documentation/public/INVENTORY.md +0 -508
  164. package/documentation/public/WEBHOOK.md +0 -246
  165. package/jest.config.d.ts +0 -4
  166. package/jest.config.js +0 -6
  167. package/tests/application/catalog.spec.js +0 -54
  168. package/tests/common/action-url.spec.js +0 -35
  169. package/tests/common/schema/action-url.json +0 -178
  170. package/tests/common/schema/url-action.json +0 -683
  171. package/tests/common/url-action.spec.js +0 -48
  172. package/tests/helpers/cookie.helper.js +0 -31
  173. package/tests/helpers/oauth.helper.js +0 -43
  174. package/tests/platform/catalog.spec.js +0 -49
  175. package/tests/public/location.spec.js +0 -39
@@ -1,1012 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
- ##### [Back to Platform docs](./README.md)
7
-
8
- ## Analytics Methods
9
- Perceptor analytics
10
-
11
- * [createExportJob](#createexportjob)
12
- * [getAbandonCartDetail](#getabandoncartdetail)
13
- * [getAbandonCartList](#getabandoncartlist)
14
- * [getAbandonCartsCSV](#getabandoncartscsv)
15
- * [getComponentStats](#getcomponentstats)
16
- * [getComponentStatsCSV](#getcomponentstatscsv)
17
- * [getComponentStatsPDF](#getcomponentstatspdf)
18
- * [getExportJobStatus](#getexportjobstatus)
19
- * [getLogsList](#getlogslist)
20
- * [getStatiscticsGroupComponents](#getstatiscticsgroupcomponents)
21
- * [getStatiscticsGroups](#getstatiscticsgroups)
22
- * [searchLogs](#searchlogs)
23
-
24
-
25
-
26
- ## Methods with example and description
27
-
28
-
29
-
30
-
31
- ### createExportJob
32
- Create data export job in required format
33
-
34
-
35
-
36
- ```javascript
37
- // Promise
38
- const promise = client.analytics.createExportJob({ exportType : value,
39
- body : value });
40
-
41
- // Async/Await
42
- const data = await client.analytics.createExportJob({ exportType : value,
43
- body : value });
44
- ```
45
-
46
-
47
-
48
-
49
-
50
- | Argument | Type | Required | Description |
51
- | --------- | ----- | -------- | ----------- |
52
- | exportType | string | yes | Export type / format |
53
- | body | [ExportJobReq](#ExportJobReq) | yes | Request body |
54
-
55
-
56
- Create data export job in required format
57
-
58
- *Returned Response:*
59
-
60
-
61
-
62
-
63
- [ExportJobRes](#ExportJobRes)
64
-
65
- Success
66
-
67
-
68
-
69
-
70
- <details>
71
- <summary><i>&nbsp; Example:</i></summary>
72
-
73
- ```json
74
- {
75
- "status": "queued",
76
- "job_id": "6047c67060ad8241a948ee42"
77
- }
78
- ```
79
- </details>
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
- ---
90
-
91
-
92
- ### getAbandonCartDetail
93
- Get abandon carts details
94
-
95
-
96
-
97
- ```javascript
98
- // Promise
99
- const promise = client.application("<APPLICATION_ID>").analytics.getAbandonCartDetail({ cartId : value });
100
-
101
- // Async/Await
102
- const data = await client.application("<APPLICATION_ID>").analytics.getAbandonCartDetail({ cartId : value });
103
- ```
104
-
105
-
106
-
107
-
108
-
109
- | Argument | Type | Required | Description |
110
- | --------- | ----- | -------- | ----------- |
111
- | cartId | string | yes | Cart Id |
112
-
113
-
114
-
115
- Get abandon cart details
116
-
117
- *Returned Response:*
118
-
119
-
120
-
121
-
122
- [AbandonCartDetail](#AbandonCartDetail)
123
-
124
- Success
125
-
126
-
127
-
128
-
129
- <details>
130
- <summary><i>&nbsp; Example:</i></summary>
131
-
132
- ```json
133
-
134
- ```
135
- </details>
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- ---
146
-
147
-
148
- ### getAbandonCartList
149
- Get abandon carts list
150
-
151
-
152
-
153
- ```javascript
154
- // Promise
155
- const promise = client.application("<APPLICATION_ID>").analytics.getAbandonCartList({ fromDate : value,
156
- toDate : value,
157
- pageNo : value,
158
- pageSize : value });
159
-
160
- // Async/Await
161
- const data = await client.application("<APPLICATION_ID>").analytics.getAbandonCartList({ fromDate : value,
162
- toDate : value,
163
- pageNo : value,
164
- pageSize : value });
165
- ```
166
-
167
-
168
-
169
-
170
-
171
- | Argument | Type | Required | Description |
172
- | --------- | ----- | -------- | ----------- |
173
- | fromDate | string | yes | From date |
174
- | toDate | string | yes | To date |
175
- | pageNo | number | no | Current page number |
176
- | pageSize | number | no | Current page size |
177
-
178
-
179
-
180
- Get abandon carts list
181
-
182
- *Returned Response:*
183
-
184
-
185
-
186
-
187
- [AbandonCartsList](#AbandonCartsList)
188
-
189
- Success
190
-
191
-
192
-
193
-
194
- <details>
195
- <summary><i>&nbsp; Example:</i></summary>
196
-
197
- ```json
198
- {
199
- "items": {
200
- "properties_cart_id": 11517,
201
- "context_traits_first_name": "Ahmed",
202
- "context_traits_last_name": "Sakri",
203
- "context_traits_phone_number": "8433859662",
204
- "context_traits_email": "ahmedsakri@gofynd.com",
205
- "context_app_application_id": "000000000000000000000001",
206
- "properties_breakup_values_raw_total": 4020,
207
- "received_at": {
208
- "value": "2021-03-09T05:09:06.840Z"
209
- }
210
- },
211
- "page": {
212
- "type": "number",
213
- "size": 10,
214
- "current": 1,
215
- "has_next": true,
216
- "item_total": 15
217
- }
218
- }
219
- ```
220
- </details>
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
- ---
231
-
232
-
233
- ### getAbandonCartsCSV
234
- Get abandon carts csv
235
-
236
-
237
-
238
- ```javascript
239
- // Promise
240
- const promise = client.application("<APPLICATION_ID>").analytics.getAbandonCartsCSV({ fromDate : value,
241
- toDate : value });
242
-
243
- // Async/Await
244
- const data = await client.application("<APPLICATION_ID>").analytics.getAbandonCartsCSV({ fromDate : value,
245
- toDate : value });
246
- ```
247
-
248
-
249
-
250
-
251
-
252
- | Argument | Type | Required | Description |
253
- | --------- | ----- | -------- | ----------- |
254
- | fromDate | string | yes | From date |
255
- | toDate | string | yes | To date |
256
-
257
-
258
-
259
- Get abandon carts csv
260
-
261
- *Returned Response:*
262
-
263
-
264
-
265
-
266
- [string](#string)
267
-
268
- Success
269
-
270
-
271
-
272
-
273
- <details>
274
- <summary><i>&nbsp; Example:</i></summary>
275
-
276
- ```json
277
-
278
- ```
279
- </details>
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
- ---
290
-
291
-
292
- ### getComponentStats
293
- Get component statistics
294
-
295
-
296
-
297
- ```javascript
298
- // Promise
299
- const promise = client.application("<APPLICATION_ID>").analytics.getComponentStats({ componentName : value });
300
-
301
- // Async/Await
302
- const data = await client.application("<APPLICATION_ID>").analytics.getComponentStats({ componentName : value });
303
- ```
304
-
305
-
306
-
307
-
308
-
309
- | Argument | Type | Required | Description |
310
- | --------- | ----- | -------- | ----------- |
311
- | componentName | string | yes | Component name |
312
-
313
-
314
-
315
- Get component statistics
316
-
317
- *Returned Response:*
318
-
319
-
320
-
321
-
322
- [StatsRes](#StatsRes)
323
-
324
- Success
325
-
326
-
327
-
328
-
329
- <details>
330
- <summary><i>&nbsp; Example:</i></summary>
331
-
332
- ```json
333
- {
334
- "key": "article-distribution",
335
- "title": "Inventory Distribution",
336
- "type": "chart.pie",
337
- "data": {
338
- "raw": [
339
- {
340
- "name": "Fatimah Logero",
341
- "available_articles": 8,
342
- "total_articles": 9,
343
- "available_sizes": 3,
344
- "total_sizes": 3,
345
- "article_freshness": 9,
346
- "count": 0,
347
- "percent": "NaN"
348
- }
349
- ],
350
- "type": "pie",
351
- "data": {
352
- "datasets": [
353
- {
354
- "label": "# of products",
355
- "backgroundColor": [
356
- "#7986CB",
357
- "#3F51B5"
358
- ],
359
- "data": [
360
- 8,
361
- 1
362
- ],
363
- "percent": [
364
- "88.89",
365
- "11.11"
366
- ]
367
- }
368
- ],
369
- "labels": [
370
- "Available Articles",
371
- "Articles Out Of Stock"
372
- ]
373
- },
374
- "options": {
375
- "responsive": true,
376
- "display": false
377
- },
378
- "cache_hit": false
379
- }
380
- }
381
- ```
382
- </details>
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
- ---
393
-
394
-
395
- ### getComponentStatsCSV
396
- Get component statistics csv
397
-
398
-
399
-
400
- ```javascript
401
- // Promise
402
- const promise = client.application("<APPLICATION_ID>").analytics.getComponentStatsCSV({ componentName : value });
403
-
404
- // Async/Await
405
- const data = await client.application("<APPLICATION_ID>").analytics.getComponentStatsCSV({ componentName : value });
406
- ```
407
-
408
-
409
-
410
-
411
-
412
- | Argument | Type | Required | Description |
413
- | --------- | ----- | -------- | ----------- |
414
- | componentName | string | yes | Component name |
415
-
416
-
417
-
418
- Get component statistics csv
419
-
420
- *Returned Response:*
421
-
422
-
423
-
424
-
425
- [string](#string)
426
-
427
- Success
428
-
429
-
430
-
431
-
432
- <details>
433
- <summary><i>&nbsp; Example:</i></summary>
434
-
435
- ```json
436
-
437
- ```
438
- </details>
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
- ---
449
-
450
-
451
- ### getComponentStatsPDF
452
- Get component statistics pdf
453
-
454
-
455
-
456
- ```javascript
457
- // Promise
458
- const promise = client.application("<APPLICATION_ID>").analytics.getComponentStatsPDF({ componentName : value });
459
-
460
- // Async/Await
461
- const data = await client.application("<APPLICATION_ID>").analytics.getComponentStatsPDF({ componentName : value });
462
- ```
463
-
464
-
465
-
466
-
467
-
468
- | Argument | Type | Required | Description |
469
- | --------- | ----- | -------- | ----------- |
470
- | componentName | string | yes | Component name |
471
-
472
-
473
-
474
- Get component statistics pdf
475
-
476
- *Returned Response:*
477
-
478
-
479
-
480
-
481
- [string](#string)
482
-
483
- Success
484
-
485
-
486
-
487
-
488
- <details>
489
- <summary><i>&nbsp; Example:</i></summary>
490
-
491
- ```json
492
-
493
- ```
494
- </details>
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
- ---
505
-
506
-
507
- ### getExportJobStatus
508
- Get data export job status
509
-
510
-
511
-
512
- ```javascript
513
- // Promise
514
- const promise = client.analytics.getExportJobStatus({ exportType : value,
515
- jobId : value });
516
-
517
- // Async/Await
518
- const data = await client.analytics.getExportJobStatus({ exportType : value,
519
- jobId : value });
520
- ```
521
-
522
-
523
-
524
-
525
-
526
- | Argument | Type | Required | Description |
527
- | --------- | ----- | -------- | ----------- |
528
- | exportType | string | yes | Export type / format |
529
- | jobId | string | yes | Export job id |
530
-
531
-
532
-
533
- Get data export job status
534
-
535
- *Returned Response:*
536
-
537
-
538
-
539
-
540
- [ExportJobStatusRes](#ExportJobStatusRes)
541
-
542
- Success
543
-
544
-
545
-
546
-
547
- <details>
548
- <summary><i>&nbsp; Example:</i></summary>
549
-
550
- ```json
551
- {
552
- "download_url": "https://marketplace-sync-logs-production.s3.ap-south-1.amazonaws.com/inv-log-37-flipkartAssured-Full_Inventory_Update.csv",
553
- "status": "success",
554
- "job_id": "6047c67060ad8241a948ee42"
555
- }
556
- ```
557
- </details>
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
- ---
568
-
569
-
570
- ### getLogsList
571
- Get logs list
572
-
573
-
574
-
575
- ```javascript
576
- // Promise
577
- const promise = client.analytics.getLogsList({ logType : value,
578
- body : value,
579
- pageNo : value,
580
- pageSize : value });
581
-
582
- // Async/Await
583
- const data = await client.analytics.getLogsList({ logType : value,
584
- body : value,
585
- pageNo : value,
586
- pageSize : value });
587
- ```
588
-
589
-
590
-
591
-
592
-
593
- | Argument | Type | Required | Description |
594
- | --------- | ----- | -------- | ----------- |
595
- | logType | string | yes | Log type |
596
- | pageNo | number | no | Current page number |
597
- | pageSize | number | no | Current page size |
598
- | body | [GetLogsListReq](#GetLogsListReq) | yes | Request body |
599
-
600
-
601
- Get logs list
602
-
603
- *Returned Response:*
604
-
605
-
606
-
607
-
608
- [GetLogsListRes](#GetLogsListRes)
609
-
610
- Success
611
-
612
-
613
-
614
-
615
- <details>
616
- <summary><i>&nbsp; Example:</i></summary>
617
-
618
- ```json
619
- {
620
- "items": [
621
- {
622
- "start_time_iso": "2021-04-06T19:00:17.013Z",
623
- "end_time_iso": "2021-04-06T19:00:17.015Z",
624
- "event_type": "FULL_PRICE_UPDATE",
625
- "trace_id": "marketplaces.aa18fa48-b3e8-4e1e-8396-69488e254ace",
626
- "count": 17,
627
- "status": "failed"
628
- }
629
- ],
630
- "page": {
631
- "type": "number",
632
- "size": 10,
633
- "current": 1,
634
- "has_next": true,
635
- "item_total": 88
636
- }
637
- }
638
- ```
639
- </details>
640
-
641
-
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
- ---
650
-
651
-
652
- ### getStatiscticsGroupComponents
653
- Get statistics group components
654
-
655
-
656
-
657
- ```javascript
658
- // Promise
659
- const promise = client.application("<APPLICATION_ID>").analytics.getStatiscticsGroupComponents({ groupName : value });
660
-
661
- // Async/Await
662
- const data = await client.application("<APPLICATION_ID>").analytics.getStatiscticsGroupComponents({ groupName : value });
663
- ```
664
-
665
-
666
-
667
-
668
-
669
- | Argument | Type | Required | Description |
670
- | --------- | ----- | -------- | ----------- |
671
- | groupName | string | yes | Group name |
672
-
673
-
674
-
675
- Get statistics group components
676
-
677
- *Returned Response:*
678
-
679
-
680
-
681
-
682
- [StatsGroupComponents](#StatsGroupComponents)
683
-
684
- Success
685
-
686
-
687
-
688
-
689
- <details>
690
- <summary><i>&nbsp; Example:</i></summary>
691
-
692
- ```json
693
- {
694
- "title": "Catalogue & Inventory",
695
- "components": [
696
- {
697
- "key": "catalogue-basic",
698
- "title": "Catalogue Basic",
699
- "type": "text-blocks",
700
- "url": "/stats/component/catalogue-basic",
701
- "filters": {}
702
- }
703
- ]
704
- }
705
- ```
706
- </details>
707
-
708
-
709
-
710
-
711
-
712
-
713
-
714
-
715
-
716
- ---
717
-
718
-
719
- ### getStatiscticsGroups
720
- Get statistics groups
721
-
722
-
723
-
724
- ```javascript
725
- // Promise
726
- const promise = client.application("<APPLICATION_ID>").analytics.getStatiscticsGroups();
727
-
728
- // Async/Await
729
- const data = await client.application("<APPLICATION_ID>").analytics.getStatiscticsGroups();
730
- ```
731
-
732
-
733
-
734
-
735
-
736
-
737
- Get statistics groups
738
-
739
- *Returned Response:*
740
-
741
-
742
-
743
-
744
- [StatsGroups](#StatsGroups)
745
-
746
- Success
747
-
748
-
749
-
750
-
751
- <details>
752
- <summary><i>&nbsp; Example:</i></summary>
753
-
754
- ```json
755
- {
756
- "groups": [
757
- {
758
- "key": "general",
759
- "url": "/v1/group/general",
760
- "title": "General"
761
- }
762
- ]
763
- }
764
- ```
765
- </details>
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
- ---
776
-
777
-
778
- ### searchLogs
779
- Search logs
780
-
781
-
782
-
783
- ```javascript
784
- // Promise
785
- const promise = client.analytics.searchLogs({ logType : value,
786
- body : value,
787
- pageNo : value,
788
- pageSize : value });
789
-
790
- // Async/Await
791
- const data = await client.analytics.searchLogs({ logType : value,
792
- body : value,
793
- pageNo : value,
794
- pageSize : value });
795
- ```
796
-
797
-
798
-
799
-
800
-
801
- | Argument | Type | Required | Description |
802
- | --------- | ----- | -------- | ----------- |
803
- | pageNo | number | no | Current page number |
804
- | pageSize | number | no | Current page size |
805
- | logType | string | yes | Log type |
806
- | body | [SearchLogReq](#SearchLogReq) | yes | Request body |
807
-
808
-
809
- Search logs
810
-
811
- *Returned Response:*
812
-
813
-
814
-
815
-
816
- [SearchLogRes](#SearchLogRes)
817
-
818
- Success
819
-
820
-
821
-
822
-
823
- <details>
824
- <summary><i>&nbsp; Example:</i></summary>
825
-
826
- ```json
827
- {
828
- "items": [
829
- {
830
- "_id": "606cafc19c2c466b24098437",
831
- "status": "failed",
832
- "event_type": "FULL_PRICE_UPDATE",
833
- "marketplace_name": "myntra",
834
- "event": "APPLICATION_FULL_INVENTORY",
835
- "trace_id": "marketplaces.aa18fa48-b3e8-4e1e-8396-69488e254ace",
836
- "company_id": 28,
837
- "brand_id": 44,
838
- "store_id": 57,
839
- "item_id": 882857,
840
- "article_id": "57_sku_102831159-TBUCKBEIGE_301066XL",
841
- "seller_identifier": "SKU_102831159-TBUCKBEIGE_392826XL"
842
- }
843
- ],
844
- "page": {
845
- "type": "number",
846
- "size": 10,
847
- "current": 1,
848
- "has_next": true,
849
- "item_total": 88
850
- }
851
- }
852
- ```
853
- </details>
854
-
855
-
856
-
857
-
858
-
859
-
860
-
861
-
862
-
863
- ---
864
-
865
-
866
-
867
- ### Schemas
868
-
869
-
870
- #### [AbandonCartDetail](#AbandonCartDetail)
871
-
872
- | Properties | Type | Nullable | Description |
873
- | ---------- | ---- | -------- | ----------- || _id | string | no | || address | string | no | || articles | [string] | no | || breakup | string | no | || cart_value | string | no | || user_id | string | no | |
874
-
875
- ---
876
-
877
- #### [AbandonCartsDetail](#AbandonCartsDetail)
878
-
879
- | Properties | Type | Nullable | Description |
880
- | ---------- | ---- | -------- | ----------- || context_app_application_id | string | no | || context_traits_email | string | no | || context_traits_first_name | string | no | || context_traits_last_name | string | no | || context_traits_phone_number | string | no | || properties_breakup_values_raw_total | string | no | || properties_cart_id | string | no | || received_at | [ReceivedAt](#ReceivedAt) | no | |
881
-
882
- ---
883
-
884
- #### [AbandonCartsList](#AbandonCartsList)
885
-
886
- | Properties | Type | Nullable | Description |
887
- | ---------- | ---- | -------- | ----------- || cart_total | string | no | || items | [[AbandonCartsDetail](#AbandonCartsDetail)] | no | || page | [Page](#Page) | no | |
888
-
889
- ---
890
-
891
- #### [ErrorRes](#ErrorRes)
892
-
893
- | Properties | Type | Nullable | Description |
894
- | ---------- | ---- | -------- | ----------- || message | string | no | |
895
-
896
- ---
897
-
898
- #### [ExportJobReq](#ExportJobReq)
899
-
900
- | Properties | Type | Nullable | Description |
901
- | ---------- | ---- | -------- | ----------- || end_time | string | no | || event_type | string | no | || marketplace_name | string | no | || start_time | string | no | || trace_id | string | no | |
902
-
903
- ---
904
-
905
- #### [ExportJobRes](#ExportJobRes)
906
-
907
- | Properties | Type | Nullable | Description |
908
- | ---------- | ---- | -------- | ----------- || job_id | string | no | || status | string | no | |
909
-
910
- ---
911
-
912
- #### [ExportJobStatusRes](#ExportJobStatusRes)
913
-
914
- | Properties | Type | Nullable | Description |
915
- | ---------- | ---- | -------- | ----------- || download_url | string | no | || job_id | string | no | || status | string | no | |
916
-
917
- ---
918
-
919
- #### [GetLogsListReq](#GetLogsListReq)
920
-
921
- | Properties | Type | Nullable | Description |
922
- | ---------- | ---- | -------- | ----------- || company_id | string | no | || end_date | string | no | || marketplace_name | string | no | || start_date | string | no | |
923
-
924
- ---
925
-
926
- #### [GetLogsListRes](#GetLogsListRes)
927
-
928
- | Properties | Type | Nullable | Description |
929
- | ---------- | ---- | -------- | ----------- || items | [[MkpLogsResp](#MkpLogsResp)] | no | || page | [Page](#Page) | no | |
930
-
931
- ---
932
-
933
- #### [LogInfo](#LogInfo)
934
-
935
- | Properties | Type | Nullable | Description |
936
- | ---------- | ---- | -------- | ----------- || _id | string | no | || article_id | string | no | || brand_id | number | no | || company_id | number | no | || event | string | no | || event_type | string | no | || item_id | number | no | || marketplace_name | string | no | || seller_identifier | string | no | || status | string | no | || store_code | string | no | || store_id | number | no | || trace_id | string | no | |
937
-
938
- ---
939
-
940
- #### [MkpLogsResp](#MkpLogsResp)
941
-
942
- | Properties | Type | Nullable | Description |
943
- | ---------- | ---- | -------- | ----------- || count | string | no | || end_time_iso | string | no | || event_type | string | no | || start_time_iso | string | no | || status | string | no | || trace_id | string | no | |
944
-
945
- ---
946
-
947
- #### [Page](#Page)
948
-
949
- | Properties | Type | Nullable | Description |
950
- | ---------- | ---- | -------- | ----------- || current | number | no | || has_next | boolean | no | || has_previous | boolean | no | || item_total | number | no | || next_id | string | no | || size | number | no | || type | string | yes | |
951
-
952
- ---
953
-
954
- #### [ReceivedAt](#ReceivedAt)
955
-
956
- | Properties | Type | Nullable | Description |
957
- | ---------- | ---- | -------- | ----------- || value | string | no | |
958
-
959
- ---
960
-
961
- #### [SearchLogReq](#SearchLogReq)
962
-
963
- | Properties | Type | Nullable | Description |
964
- | ---------- | ---- | -------- | ----------- || company_id | string | no | || end_date | string | no | || identifier | string | no | || identifier_value | string | no | || marketplace_name | string | no | || start_date | string | no | |
965
-
966
- ---
967
-
968
- #### [SearchLogRes](#SearchLogRes)
969
-
970
- | Properties | Type | Nullable | Description |
971
- | ---------- | ---- | -------- | ----------- || items | [[LogInfo](#LogInfo)] | no | || page | [Page](#Page) | no | |
972
-
973
- ---
974
-
975
- #### [StatGroup](#StatGroup)
976
-
977
- | Properties | Type | Nullable | Description |
978
- | ---------- | ---- | -------- | ----------- || key | string | no | || title | string | no | || url | string | no | |
979
-
980
- ---
981
-
982
- #### [StatsGroupComponent](#StatsGroupComponent)
983
-
984
- | Properties | Type | Nullable | Description |
985
- | ---------- | ---- | -------- | ----------- || filters | string | no | || key | string | no | || title | string | no | || type | string | no | || url | string | no | |
986
-
987
- ---
988
-
989
- #### [StatsGroupComponents](#StatsGroupComponents)
990
-
991
- | Properties | Type | Nullable | Description |
992
- | ---------- | ---- | -------- | ----------- || components | [[StatsGroupComponent](#StatsGroupComponent)] | no | || title | string | no | |
993
-
994
- ---
995
-
996
- #### [StatsGroups](#StatsGroups)
997
-
998
- | Properties | Type | Nullable | Description |
999
- | ---------- | ---- | -------- | ----------- || groups | [[StatGroup](#StatGroup)] | no | |
1000
-
1001
- ---
1002
-
1003
- #### [StatsRes](#StatsRes)
1004
-
1005
- | Properties | Type | Nullable | Description |
1006
- | ---------- | ---- | -------- | ----------- || data | string | no | || key | string | no | || title | string | no | || type | string | no | |
1007
-
1008
- ---
1009
-
1010
-
1011
-
1012
-