@gofynd/fdk-client-javascript 0.1.35

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