@gofynd/fdk-client-javascript 1.0.1 → 1.0.3

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 (318) hide show
  1. package/documentation/application/CART.md +5934 -4502
  2. package/documentation/application/CATALOG.md +6338 -7245
  3. package/documentation/application/COMMON.md +95 -222
  4. package/documentation/application/COMMUNICATION.md +106 -186
  5. package/documentation/application/CONFIGURATION.md +903 -1597
  6. package/documentation/application/CONTENT.md +562 -1270
  7. package/documentation/application/FILESTORAGE.md +84 -220
  8. package/documentation/application/LEAD.md +314 -660
  9. package/documentation/application/LOGISTIC.md +229 -305
  10. package/documentation/application/ORDER.md +642 -1137
  11. package/documentation/application/PAYMENT.md +2285 -3031
  12. package/documentation/application/POSCART.md +6079 -4642
  13. package/documentation/application/REWARDS.md +94 -248
  14. package/documentation/application/SHARE.md +152 -250
  15. package/documentation/application/THEME.md +952 -1235
  16. package/documentation/application/USER.md +1228 -1765
  17. package/documentation/platform/ANALYTICS.md +207 -349
  18. package/documentation/platform/AUDITTRAIL.md +121 -204
  19. package/documentation/platform/BILLING.md +865 -1376
  20. package/documentation/platform/CART.md +2814 -3662
  21. package/documentation/platform/CATALOG.md +15266 -17619
  22. package/documentation/platform/COMMON.md +95 -222
  23. package/documentation/platform/COMMUNICATION.md +1632 -2380
  24. package/documentation/platform/COMPANYPROFILE.md +572 -957
  25. package/documentation/platform/CONFIGURATION.md +3050 -4073
  26. package/documentation/platform/CONTENT.md +3509 -4121
  27. package/documentation/platform/DISCOUNT.md +140 -236
  28. package/documentation/platform/FILESTORAGE.md +187 -323
  29. package/documentation/platform/INVENTORY.md +268 -911
  30. package/documentation/platform/LEAD.md +2195 -2541
  31. package/documentation/platform/ORDER.md +3750 -5636
  32. package/documentation/platform/PARTNER.md +9 -36
  33. package/documentation/platform/PAYMENT.md +903 -1213
  34. package/documentation/platform/REWARDS.md +183 -347
  35. package/documentation/platform/SHARE.md +120 -213
  36. package/documentation/platform/THEME.md +12956 -13239
  37. package/documentation/platform/USER.md +975 -1120
  38. package/documentation/platform/WEBHOOK.md +78 -184
  39. package/documentation/public/CONFIGURATION.md +95 -222
  40. package/documentation/public/INVENTORY.md +100 -282
  41. package/documentation/public/WEBHOOK.md +27 -133
  42. package/package.json +1 -1
  43. package/sdk/application/ApplicationConfig.js +1 -1
  44. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  45. package/sdk/application/Cart/CartApplicationClient.js +1058 -547
  46. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  47. package/sdk/application/Cart/CartApplicationModel.js +489 -886
  48. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  49. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  50. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  51. package/sdk/application/Catalog/CatalogApplicationClient.js +1545 -949
  52. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  53. package/sdk/application/Catalog/CatalogApplicationModel.js +692 -1258
  54. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  55. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  56. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  57. package/sdk/application/Common/CommonApplicationClient.js +76 -36
  58. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  59. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  60. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  61. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  62. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  63. package/sdk/application/Communication/CommunicationApplicationClient.js +92 -31
  64. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  65. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  66. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  67. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  68. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  69. package/sdk/application/Configuration/ConfigurationApplicationClient.js +638 -312
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  71. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  73. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  74. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  75. package/sdk/application/Content/ContentApplicationClient.js +581 -213
  76. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -75
  77. package/sdk/application/Content/ContentApplicationModel.js +468 -875
  78. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  79. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  80. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  81. package/sdk/application/FileStorage/FileStorageApplicationClient.js +121 -59
  82. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  83. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  84. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  85. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  86. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  87. package/sdk/application/Lead/LeadApplicationClient.js +230 -96
  88. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  89. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  90. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  91. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  92. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
  93. package/sdk/application/Logistic/LogisticApplicationClient.js +196 -47
  94. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  95. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  96. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  97. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
  98. package/sdk/application/Order/OrderApplicationClient.d.ts +86 -86
  99. package/sdk/application/Order/OrderApplicationClient.js +448 -215
  100. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  101. package/sdk/application/Order/OrderApplicationModel.js +357 -661
  102. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  103. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  104. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  105. package/sdk/application/Payment/PaymentApplicationClient.js +1525 -750
  106. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  107. package/sdk/application/Payment/PaymentApplicationModel.js +565 -1033
  108. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  109. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  110. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  111. package/sdk/application/PosCart/PosCartApplicationClient.js +1137 -606
  112. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +61 -60
  113. package/sdk/application/PosCart/PosCartApplicationModel.js +477 -873
  114. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  115. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  116. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  117. package/sdk/application/Rewards/RewardsApplicationClient.js +253 -113
  118. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  119. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  120. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  121. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  122. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  123. package/sdk/application/Share/ShareApplicationClient.js +221 -96
  124. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  125. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  126. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  127. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  128. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  129. package/sdk/application/Theme/ThemeApplicationClient.js +115 -37
  130. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  131. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  132. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  133. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  134. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  135. package/sdk/application/User/UserApplicationClient.js +1201 -543
  136. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  137. package/sdk/application/User/UserApplicationModel.js +440 -689
  138. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  139. package/sdk/application/User/UserApplicationValidator.js +89 -89
  140. package/sdk/common/AxiosHelper.js +1 -1
  141. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +55 -47
  142. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +308 -151
  143. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  144. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
  145. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
  146. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
  147. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  148. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  149. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +16 -12
  150. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +131 -44
  151. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  152. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  153. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  154. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
  155. package/sdk/platform/Billing/BillingPlatformClient.d.ts +68 -56
  156. package/sdk/platform/Billing/BillingPlatformClient.js +416 -171
  157. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  158. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  159. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  160. package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
  161. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +176 -159
  162. package/sdk/platform/Cart/CartPlatformApplicationClient.js +837 -500
  163. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
  164. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
  165. package/sdk/platform/Cart/CartPlatformModel.d.ts +86 -85
  166. package/sdk/platform/Cart/CartPlatformModel.js +677 -1211
  167. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +582 -529
  168. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2642 -1533
  169. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  170. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  171. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +708 -590
  172. package/sdk/platform/Catalog/CatalogPlatformClient.js +3103 -1362
  173. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +293 -284
  174. package/sdk/platform/Catalog/CatalogPlatformModel.js +2149 -3660
  175. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -64
  176. package/sdk/platform/Catalog/CatalogPlatformValidator.js +235 -216
  177. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -12
  178. package/sdk/platform/Common/CommonPlatformClient.js +80 -37
  179. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  180. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  181. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  182. package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
  183. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +333 -293
  184. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1687 -855
  185. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  186. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
  187. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  188. package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
  189. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  190. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  191. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +70 -57
  192. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +463 -182
  193. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -28
  194. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +294 -557
  195. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  196. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
  197. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +175 -137
  198. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1168 -521
  199. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  200. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
  201. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +137 -119
  202. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +691 -316
  203. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  204. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  205. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  206. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
  207. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +542 -461
  208. package/sdk/platform/Content/ContentPlatformApplicationClient.js +2600 -1160
  209. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -49
  210. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +159 -152
  211. package/sdk/platform/Content/ContentPlatformModel.d.ts +79 -75
  212. package/sdk/platform/Content/ContentPlatformModel.js +486 -867
  213. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +72 -61
  214. package/sdk/platform/Discount/DiscountPlatformClient.js +424 -198
  215. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  216. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  217. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  218. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
  219. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +26 -22
  220. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -59
  221. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  222. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
  223. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +58 -52
  224. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +240 -114
  225. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  226. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  227. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  228. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
  229. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +76 -63
  230. package/sdk/platform/Inventory/InventoryPlatformClient.js +461 -197
  231. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  232. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  233. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  234. package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
  235. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +84 -71
  236. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +441 -182
  237. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  238. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
  239. package/sdk/platform/Lead/LeadPlatformClient.d.ts +86 -75
  240. package/sdk/platform/Lead/LeadPlatformClient.js +434 -212
  241. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  242. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  243. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  244. package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
  245. package/sdk/platform/OAuthClient.js +8 -8
  246. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +14 -11
  247. package/sdk/platform/Order/OrderPlatformApplicationClient.js +113 -49
  248. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  249. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
  250. package/sdk/platform/Order/OrderPlatformClient.d.ts +367 -315
  251. package/sdk/platform/Order/OrderPlatformClient.js +1775 -893
  252. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -192
  253. package/sdk/platform/Order/OrderPlatformModel.js +1591 -2822
  254. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  255. package/sdk/platform/Order/OrderPlatformValidator.js +160 -155
  256. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
  257. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
  258. package/sdk/platform/Partner/PartnerPlatformModel.js +6 -22
  259. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +65 -54
  260. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +395 -164
  261. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  262. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
  263. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +55 -45
  264. package/sdk/platform/Payment/PaymentPlatformClient.js +362 -147
  265. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  266. package/sdk/platform/Payment/PaymentPlatformModel.js +220 -408
  267. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  268. package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
  269. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10153
  270. package/sdk/platform/PlatformApplicationClient.js +1584 -13691
  271. package/sdk/platform/PlatformClient.d.ts +7918 -7666
  272. package/sdk/platform/PlatformClient.js +8701 -9926
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +91 -78
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +507 -253
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  279. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -12
  280. package/sdk/platform/Share/SharePlatformApplicationClient.js +130 -52
  281. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  282. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
  283. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  284. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  285. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +148 -124
  286. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +770 -295
  287. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  288. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
  289. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  290. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  291. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +146 -67
  292. package/sdk/platform/User/UserPlatformApplicationClient.js +742 -155
  293. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  294. package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
  295. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  296. package/sdk/platform/User/UserPlatformModel.js +440 -689
  297. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +35 -29
  298. package/sdk/platform/Webhook/WebhookPlatformClient.js +218 -91
  299. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  300. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  301. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  302. package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
  303. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  304. package/sdk/public/Configuration/ConfigurationPublicClient.js +81 -38
  305. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  306. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  307. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  308. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  309. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  310. package/sdk/public/Inventory/InventoryPublicClient.js +228 -105
  311. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  312. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  313. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  314. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  315. package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
  316. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  317. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  318. package/tests/application/catalog.spec.js +7 -0
@@ -8,19 +8,19 @@
8
8
  ## Rewards Methods
9
9
  Earn and redeem reward points
10
10
 
11
- * [showGiveaways](#showgiveaways)
12
- * [saveGiveAway](#savegiveaway)
13
- * [getGiveawayById](#getgiveawaybyid)
14
- * [updateGiveAway](#updategiveaway)
15
11
  * [getGiveawayAudienceStatus](#getgiveawayaudiencestatus)
16
- * [showOffers](#showoffers)
12
+ * [getGiveawayById](#getgiveawaybyid)
17
13
  * [getOfferByName](#getofferbyname)
14
+ * [getRewardsConfiguration](#getrewardsconfiguration)
15
+ * [getUserPointsHistory](#getuserpointshistory)
16
+ * [saveGiveAway](#savegiveaway)
17
+ * [setRewardsConfiguration](#setrewardsconfiguration)
18
+ * [showGiveaways](#showgiveaways)
19
+ * [showOffers](#showoffers)
20
+ * [updateGiveAway](#updategiveaway)
18
21
  * [updateOfferByName](#updateofferbyname)
19
22
  * [updateUserStatus](#updateuserstatus)
20
23
  * [user](#user)
21
- * [getUserPointsHistory](#getuserpointshistory)
22
- * [getRewardsConfiguration](#getrewardsconfiguration)
23
- * [setRewardsConfiguration](#setrewardsconfiguration)
24
24
 
25
25
 
26
26
 
@@ -29,19 +29,17 @@ Earn and redeem reward points
29
29
 
30
30
 
31
31
 
32
- ### showGiveaways
33
- List of giveaways of the current application.
32
+ ### getGiveawayAudienceStatus
33
+ Get the Giveaway audience status
34
34
 
35
35
 
36
36
 
37
37
  ```javascript
38
38
  // Promise
39
- const promise = client.application("<APPLICATION_ID>").rewards.showGiveaways({ pageId : value,
40
- pageSize : value });
39
+ const promise = client.application("<APPLICATION_ID>").rewards.getGiveawayAudienceStatus({ audienceId : value });
41
40
 
42
41
  // Async/Await
43
- const data = await client.application("<APPLICATION_ID>").rewards.showGiveaways({ pageId : value,
44
- pageSize : value });
42
+ const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayAudienceStatus({ audienceId : value });
45
43
  ```
46
44
 
47
45
 
@@ -50,21 +48,20 @@ const data = await client.application("<APPLICATION_ID>").rewards.showGiveaways(
50
48
 
51
49
  | Argument | Type | Required | Description |
52
50
  | --------- | ----- | -------- | ----------- |
53
- | pageId | string | yes | pagination page id |
54
- | pageSize | number | yes | pagination page size |
51
+ | audienceId | string | yes | audience id |
55
52
 
56
53
 
57
54
 
58
- List of giveaways of the current application.
55
+ Get giveaway audience status
59
56
 
60
57
  *Returned Response:*
61
58
 
62
59
 
63
60
 
64
61
 
65
- [GiveawayResponse](#GiveawayResponse)
62
+ [GiveawayAudience](#GiveawayAudience)
66
63
 
67
- ok
64
+ Success
68
65
 
69
66
 
70
67
 
@@ -88,17 +85,17 @@ ok
88
85
  ---
89
86
 
90
87
 
91
- ### saveGiveAway
92
- List of giveaways of the current application.
88
+ ### getGiveawayById
89
+ Get giveaway by ID.
93
90
 
94
91
 
95
92
 
96
93
  ```javascript
97
94
  // Promise
98
- const promise = client.application("<APPLICATION_ID>").rewards.saveGiveAway({ body : value });
95
+ const promise = client.application("<APPLICATION_ID>").rewards.getGiveawayById({ id : value });
99
96
 
100
97
  // Async/Await
101
- const data = await client.application("<APPLICATION_ID>").rewards.saveGiveAway({ body : value });
98
+ const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayById({ id : value });
102
99
  ```
103
100
 
104
101
 
@@ -106,11 +103,12 @@ const data = await client.application("<APPLICATION_ID>").rewards.saveGiveAway({
106
103
 
107
104
 
108
105
  | Argument | Type | Required | Description |
109
- | --------- | ----- | -------- | ----------- |
110
- | body | [Giveaway](#Giveaway) | yes | Request body |
106
+ | --------- | ----- | -------- | ----------- |
107
+ | id | string | yes | Giveaway ID |
111
108
 
112
109
 
113
- Adds a new giveaway.
110
+
111
+ Get giveaway by ID.
114
112
 
115
113
  *Returned Response:*
116
114
 
@@ -143,17 +141,19 @@ ok
143
141
  ---
144
142
 
145
143
 
146
- ### getGiveawayById
147
- Get giveaway by ID.
144
+ ### getOfferByName
145
+ Get offer by name
148
146
 
149
147
 
150
148
 
151
149
  ```javascript
152
150
  // Promise
153
- const promise = client.application("<APPLICATION_ID>").rewards.getGiveawayById({ id : value });
151
+ const promise = client.application("<APPLICATION_ID>").rewards.getOfferByName({ name : value,
152
+ cookie : value });
154
153
 
155
154
  // Async/Await
156
- const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayById({ id : value });
155
+ const data = await client.application("<APPLICATION_ID>").rewards.getOfferByName({ name : value,
156
+ cookie : value });
157
157
  ```
158
158
 
159
159
 
@@ -162,20 +162,21 @@ const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayByI
162
162
 
163
163
  | Argument | Type | Required | Description |
164
164
  | --------- | ----- | -------- | ----------- |
165
- | id | string | yes | Giveaway ID |
165
+ | name | string | yes | The name given to the offer. |
166
+ | cookie | string | yes | User's session cookie. This cookie is set in browser cookie when logged-in to fynd's authentication system i.e. `Grimlock` or by using grimlock-backend SDK for backend implementation. |
166
167
 
167
168
 
168
169
 
169
- Get giveaway by ID.
170
+ Use this API to get the offer details and configuration by entering the name of the offer.
170
171
 
171
172
  *Returned Response:*
172
173
 
173
174
 
174
175
 
175
176
 
176
- [Giveaway](#Giveaway)
177
+ [Offer](#Offer)
177
178
 
178
- ok
179
+ Success. Check example below or refer `Offer` for more details.
179
180
 
180
181
 
181
182
 
@@ -199,41 +200,34 @@ ok
199
200
  ---
200
201
 
201
202
 
202
- ### updateGiveAway
203
- Updates the giveaway by it's ID.
203
+ ### getRewardsConfiguration
204
+ Get all valid android paths
204
205
 
205
206
 
206
207
 
207
208
  ```javascript
208
209
  // Promise
209
- const promise = client.application("<APPLICATION_ID>").rewards.updateGiveAway({ id : value,
210
- body : value });
210
+ const promise = client.application("<APPLICATION_ID>").rewards.getRewardsConfiguration();
211
211
 
212
212
  // Async/Await
213
- const data = await client.application("<APPLICATION_ID>").rewards.updateGiveAway({ id : value,
214
- body : value });
213
+ const data = await client.application("<APPLICATION_ID>").rewards.getRewardsConfiguration();
215
214
  ```
216
215
 
217
216
 
218
217
 
219
218
 
220
219
 
221
- | Argument | Type | Required | Description |
222
- | --------- | ----- | -------- | ----------- |
223
- | id | string | yes | Giveaway ID |
224
- | body | [Giveaway](#Giveaway) | yes | Request body |
225
-
226
220
 
227
- Updates the giveaway by it's ID.
221
+ Use this API to get a list of valid android paths required by the Rewards INIT API to validate a fradualent device.
228
222
 
229
223
  *Returned Response:*
230
224
 
231
225
 
232
226
 
233
227
 
234
- [Giveaway](#Giveaway)
228
+ [ConfigurationRes](#ConfigurationRes)
235
229
 
236
- ok
230
+ Success. Refer `ConfigurationRes` for more details.
237
231
 
238
232
 
239
233
 
@@ -257,17 +251,21 @@ ok
257
251
  ---
258
252
 
259
253
 
260
- ### getGiveawayAudienceStatus
261
- Get the Giveaway audience status
254
+ ### getUserPointsHistory
255
+ Get all transactions of reward points
262
256
 
263
257
 
264
258
 
265
259
  ```javascript
266
260
  // Promise
267
- const promise = client.application("<APPLICATION_ID>").rewards.getGiveawayAudienceStatus({ audienceId : value });
261
+ const promise = client.application("<APPLICATION_ID>").rewards.getUserPointsHistory({ userId : value,
262
+ pageId : value,
263
+ pageSize : value });
268
264
 
269
265
  // Async/Await
270
- const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayAudienceStatus({ audienceId : value });
266
+ const data = await client.application("<APPLICATION_ID>").rewards.getUserPointsHistory({ userId : value,
267
+ pageId : value,
268
+ pageSize : value });
271
269
  ```
272
270
 
273
271
 
@@ -276,20 +274,22 @@ const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayAud
276
274
 
277
275
  | Argument | Type | Required | Description |
278
276
  | --------- | ----- | -------- | ----------- |
279
- | audienceId | string | yes | audience id |
277
+ | userId | string | yes | user id |
278
+ | pageId | string | no | PageID is the ID of the requested page. For first request it should be kept empty. |
279
+ | pageSize | number | no | The number of items to retrieve in each page. |
280
280
 
281
281
 
282
282
 
283
- Get giveaway audience status
283
+ Use this API to get a list of points transactions.
284
284
 
285
285
  *Returned Response:*
286
286
 
287
287
 
288
288
 
289
289
 
290
- [GiveawayAudience](#GiveawayAudience)
290
+ [HistoryRes](#HistoryRes)
291
291
 
292
- Success
292
+ Success. Check example below or refer `HistoryRes` for more details.
293
293
 
294
294
 
295
295
 
@@ -313,32 +313,36 @@ Success
313
313
  ---
314
314
 
315
315
 
316
- ### showOffers
317
- List of offers of the current application.
316
+ ### saveGiveAway
317
+ List of giveaways of the current application.
318
318
 
319
319
 
320
320
 
321
321
  ```javascript
322
322
  // Promise
323
- const promise = client.application("<APPLICATION_ID>").rewards.showOffers();
323
+ const promise = client.application("<APPLICATION_ID>").rewards.saveGiveAway({ body : value });
324
324
 
325
325
  // Async/Await
326
- const data = await client.application("<APPLICATION_ID>").rewards.showOffers();
326
+ const data = await client.application("<APPLICATION_ID>").rewards.saveGiveAway({ body : value });
327
327
  ```
328
328
 
329
329
 
330
330
 
331
331
 
332
332
 
333
+ | Argument | Type | Required | Description |
334
+ | --------- | ----- | -------- | ----------- |
335
+ | body | [Giveaway](#Giveaway) | yes | Request body |
333
336
 
334
- List of offers of the current application.
337
+
338
+ Adds a new giveaway.
335
339
 
336
340
  *Returned Response:*
337
341
 
338
342
 
339
343
 
340
344
 
341
- [Array<Offer>](#Array<Offer>)
345
+ [Giveaway](#Giveaway)
342
346
 
343
347
  ok
344
348
 
@@ -364,19 +368,17 @@ ok
364
368
  ---
365
369
 
366
370
 
367
- ### getOfferByName
368
- Get offer by name
371
+ ### setRewardsConfiguration
372
+ Updates the collection with given android paths.
369
373
 
370
374
 
371
375
 
372
376
  ```javascript
373
377
  // Promise
374
- const promise = client.application("<APPLICATION_ID>").rewards.getOfferByName({ name : value,
375
- cookie : value });
378
+ const promise = client.application("<APPLICATION_ID>").rewards.setRewardsConfiguration({ body : value });
376
379
 
377
380
  // Async/Await
378
- const data = await client.application("<APPLICATION_ID>").rewards.getOfferByName({ name : value,
379
- cookie : value });
381
+ const data = await client.application("<APPLICATION_ID>").rewards.setRewardsConfiguration({ body : value });
380
382
  ```
381
383
 
382
384
 
@@ -384,22 +386,20 @@ const data = await client.application("<APPLICATION_ID>").rewards.getOfferByName
384
386
 
385
387
 
386
388
  | Argument | Type | Required | Description |
387
- | --------- | ----- | -------- | ----------- |
388
- | name | string | yes | The name given to the offer. |
389
- | cookie | string | yes | User's session cookie. This cookie is set in browser cookie when logged-in to fynd's authentication system i.e. `Grimlock` or by using grimlock-backend SDK for backend implementation. |
390
-
389
+ | --------- | ----- | -------- | ----------- |
390
+ | body | [ConfigurationRequest](#ConfigurationRequest) | yes | Request body |
391
391
 
392
392
 
393
- Use this API to get the offer details and configuration by entering the name of the offer.
393
+ Updates the configuration or inserts new records.
394
394
 
395
395
  *Returned Response:*
396
396
 
397
397
 
398
398
 
399
399
 
400
- [Offer](#Offer)
400
+ [SetConfigurationRes](#SetConfigurationRes)
401
401
 
402
- Success. Check example below or refer `Offer` for more details.
402
+ ok
403
403
 
404
404
 
405
405
 
@@ -423,19 +423,19 @@ Success. Check example below or refer `Offer` for more details.
423
423
  ---
424
424
 
425
425
 
426
- ### updateOfferByName
427
- Update offer by name
426
+ ### showGiveaways
427
+ List of giveaways of the current application.
428
428
 
429
429
 
430
430
 
431
431
  ```javascript
432
432
  // Promise
433
- const promise = client.application("<APPLICATION_ID>").rewards.updateOfferByName({ name : value,
434
- body : value });
433
+ const promise = client.application("<APPLICATION_ID>").rewards.showGiveaways({ pageId : value,
434
+ pageSize : value });
435
435
 
436
436
  // Async/Await
437
- const data = await client.application("<APPLICATION_ID>").rewards.updateOfferByName({ name : value,
438
- body : value });
437
+ const data = await client.application("<APPLICATION_ID>").rewards.showGiveaways({ pageId : value,
438
+ pageSize : value });
439
439
  ```
440
440
 
441
441
 
@@ -444,20 +444,21 @@ const data = await client.application("<APPLICATION_ID>").rewards.updateOfferByN
444
444
 
445
445
  | Argument | Type | Required | Description |
446
446
  | --------- | ----- | -------- | ----------- |
447
- | name | string | yes | The name given to the offer. |
448
- | body | [Offer](#Offer) | yes | Request body |
447
+ | pageId | string | yes | pagination page id |
448
+ | pageSize | number | yes | pagination page size |
449
449
 
450
450
 
451
- Use this API to update the offer details
451
+
452
+ List of giveaways of the current application.
452
453
 
453
454
  *Returned Response:*
454
455
 
455
456
 
456
457
 
457
458
 
458
- [Offer](#Offer)
459
+ [GiveawayResponse](#GiveawayResponse)
459
460
 
460
- Success. Check example below or refer `Offer` for more details.
461
+ ok
461
462
 
462
463
 
463
464
 
@@ -481,41 +482,34 @@ Success. Check example below or refer `Offer` for more details.
481
482
  ---
482
483
 
483
484
 
484
- ### updateUserStatus
485
- Update user status
485
+ ### showOffers
486
+ List of offers of the current application.
486
487
 
487
488
 
488
489
 
489
490
  ```javascript
490
491
  // Promise
491
- const promise = client.application("<APPLICATION_ID>").rewards.updateUserStatus({ userId : value,
492
- body : value });
492
+ const promise = client.application("<APPLICATION_ID>").rewards.showOffers();
493
493
 
494
494
  // Async/Await
495
- const data = await client.application("<APPLICATION_ID>").rewards.updateUserStatus({ userId : value,
496
- body : value });
495
+ const data = await client.application("<APPLICATION_ID>").rewards.showOffers();
497
496
  ```
498
497
 
499
498
 
500
499
 
501
500
 
502
501
 
503
- | Argument | Type | Required | Description |
504
- | --------- | ----- | -------- | ----------- |
505
- | userId | string | yes | user id |
506
- | body | [AppUser](#AppUser) | yes | Request body |
507
502
 
508
-
509
- Use this API to update the user status active/archive
503
+ List of offers of the current application.
510
504
 
511
505
  *Returned Response:*
512
506
 
513
507
 
514
508
 
515
509
 
516
- [AppUser](#AppUser)
510
+ [Array<Offer>](#Array<Offer>)
517
511
 
518
- Success
512
+ ok
519
513
 
520
514
 
521
515
 
@@ -539,17 +533,19 @@ Success
539
533
  ---
540
534
 
541
535
 
542
- ### user
543
- Get user reward details
536
+ ### updateGiveAway
537
+ Updates the giveaway by it's ID.
544
538
 
545
539
 
546
540
 
547
541
  ```javascript
548
542
  // Promise
549
- const promise = client.application("<APPLICATION_ID>").rewards.user({ userId : value });
543
+ const promise = client.application("<APPLICATION_ID>").rewards.updateGiveAway({ id : value,
544
+ body : value });
550
545
 
551
546
  // Async/Await
552
- const data = await client.application("<APPLICATION_ID>").rewards.user({ userId : value });
547
+ const data = await client.application("<APPLICATION_ID>").rewards.updateGiveAway({ id : value,
548
+ body : value });
553
549
  ```
554
550
 
555
551
 
@@ -558,20 +554,20 @@ const data = await client.application("<APPLICATION_ID>").rewards.user({ userId
558
554
 
559
555
  | Argument | Type | Required | Description |
560
556
  | --------- | ----- | -------- | ----------- |
561
- | userId | string | yes | user id |
562
-
557
+ | id | string | yes | Giveaway ID |
558
+ | body | [Giveaway](#Giveaway) | yes | Request body |
563
559
 
564
560
 
565
- Use this API to get the user reward details
561
+ Updates the giveaway by it's ID.
566
562
 
567
563
  *Returned Response:*
568
564
 
569
565
 
570
566
 
571
567
 
572
- [UserRes](#UserRes)
568
+ [Giveaway](#Giveaway)
573
569
 
574
- Success. Check example below or refer `UserRes` for more details.
570
+ ok
575
571
 
576
572
 
577
573
 
@@ -595,21 +591,19 @@ Success. Check example below or refer `UserRes` for more details.
595
591
  ---
596
592
 
597
593
 
598
- ### getUserPointsHistory
599
- Get all transactions of reward points
594
+ ### updateOfferByName
595
+ Update offer by name
600
596
 
601
597
 
602
598
 
603
599
  ```javascript
604
600
  // Promise
605
- const promise = client.application("<APPLICATION_ID>").rewards.getUserPointsHistory({ userId : value,
606
- pageId : value,
607
- pageSize : value });
601
+ const promise = client.application("<APPLICATION_ID>").rewards.updateOfferByName({ name : value,
602
+ body : value });
608
603
 
609
604
  // Async/Await
610
- const data = await client.application("<APPLICATION_ID>").rewards.getUserPointsHistory({ userId : value,
611
- pageId : value,
612
- pageSize : value });
605
+ const data = await client.application("<APPLICATION_ID>").rewards.updateOfferByName({ name : value,
606
+ body : value });
613
607
  ```
614
608
 
615
609
 
@@ -618,22 +612,20 @@ const data = await client.application("<APPLICATION_ID>").rewards.getUserPointsH
618
612
 
619
613
  | Argument | Type | Required | Description |
620
614
  | --------- | ----- | -------- | ----------- |
621
- | userId | string | yes | user id |
622
- | pageId | string | no | PageID is the ID of the requested page. For first request it should be kept empty. |
623
- | pageSize | number | no | The number of items to retrieve in each page. |
624
-
615
+ | name | string | yes | The name given to the offer. |
616
+ | body | [Offer](#Offer) | yes | Request body |
625
617
 
626
618
 
627
- Use this API to get a list of points transactions.
619
+ Use this API to update the offer details
628
620
 
629
621
  *Returned Response:*
630
622
 
631
623
 
632
624
 
633
625
 
634
- [HistoryRes](#HistoryRes)
626
+ [Offer](#Offer)
635
627
 
636
- Success. Check example below or refer `HistoryRes` for more details.
628
+ Success. Check example below or refer `Offer` for more details.
637
629
 
638
630
 
639
631
 
@@ -657,34 +649,41 @@ Success. Check example below or refer `HistoryRes` for more details.
657
649
  ---
658
650
 
659
651
 
660
- ### getRewardsConfiguration
661
- Get all valid android paths
652
+ ### updateUserStatus
653
+ Update user status
662
654
 
663
655
 
664
656
 
665
657
  ```javascript
666
658
  // Promise
667
- const promise = client.application("<APPLICATION_ID>").rewards.getRewardsConfiguration();
659
+ const promise = client.application("<APPLICATION_ID>").rewards.updateUserStatus({ userId : value,
660
+ body : value });
668
661
 
669
662
  // Async/Await
670
- const data = await client.application("<APPLICATION_ID>").rewards.getRewardsConfiguration();
663
+ const data = await client.application("<APPLICATION_ID>").rewards.updateUserStatus({ userId : value,
664
+ body : value });
671
665
  ```
672
666
 
673
667
 
674
668
 
675
669
 
676
670
 
671
+ | Argument | Type | Required | Description |
672
+ | --------- | ----- | -------- | ----------- |
673
+ | userId | string | yes | user id |
674
+ | body | [AppUser](#AppUser) | yes | Request body |
677
675
 
678
- Use this API to get a list of valid android paths required by the Rewards INIT API to validate a fradualent device.
676
+
677
+ Use this API to update the user status active/archive
679
678
 
680
679
  *Returned Response:*
681
680
 
682
681
 
683
682
 
684
683
 
685
- [ConfigurationRes](#ConfigurationRes)
684
+ [AppUser](#AppUser)
686
685
 
687
- Success. Refer `ConfigurationRes` for more details.
686
+ Success
688
687
 
689
688
 
690
689
 
@@ -708,17 +707,17 @@ Success. Refer `ConfigurationRes` for more details.
708
707
  ---
709
708
 
710
709
 
711
- ### setRewardsConfiguration
712
- Updates the collection with given android paths.
710
+ ### user
711
+ Get user reward details
713
712
 
714
713
 
715
714
 
716
715
  ```javascript
717
716
  // Promise
718
- const promise = client.application("<APPLICATION_ID>").rewards.setRewardsConfiguration({ body : value });
717
+ const promise = client.application("<APPLICATION_ID>").rewards.user({ userId : value });
719
718
 
720
719
  // Async/Await
721
- const data = await client.application("<APPLICATION_ID>").rewards.setRewardsConfiguration({ body : value });
720
+ const data = await client.application("<APPLICATION_ID>").rewards.user({ userId : value });
722
721
  ```
723
722
 
724
723
 
@@ -726,20 +725,21 @@ const data = await client.application("<APPLICATION_ID>").rewards.setRewardsConf
726
725
 
727
726
 
728
727
  | Argument | Type | Required | Description |
729
- | --------- | ----- | -------- | ----------- |
730
- | body | [ConfigurationRequest](#ConfigurationRequest) | yes | Request body |
728
+ | --------- | ----- | -------- | ----------- |
729
+ | userId | string | yes | user id |
731
730
 
732
731
 
733
- Updates the configuration or inserts new records.
732
+
733
+ Use this API to get the user reward details
734
734
 
735
735
  *Returned Response:*
736
736
 
737
737
 
738
738
 
739
739
 
740
- [SetConfigurationRes](#SetConfigurationRes)
740
+ [UserRes](#UserRes)
741
741
 
742
- ok
742
+ Success. Check example below or refer `UserRes` for more details.
743
743
 
744
744
 
745
745
 
@@ -766,315 +766,151 @@ ok
766
766
 
767
767
  ### Schemas
768
768
 
769
-
770
-
771
- #### [E](#E)
769
+
770
+ #### [AppUser](#AppUser)
772
771
 
773
772
  | Properties | Type | Nullable | Description |
774
- | ---------- | ---- | -------- | ----------- |
775
- | code | number | no | |
776
- | exception | string | no | |
777
- | info | string | no | |
778
- | message | string | no | |
773
+ | ---------- | ---- | -------- | ----------- || _id | string | no | || active | boolean | no | || application_id | string | no | || block_reason | string | no | || updated_at | string | no | || updated_by | string | no | || user_id | string | no | |
779
774
 
780
775
  ---
781
776
 
782
-
783
-
784
-
785
- #### [GiveawayResponse](#GiveawayResponse)
777
+ #### [Asset](#Asset)
786
778
 
787
779
  | Properties | Type | Nullable | Description |
788
- | ---------- | ---- | -------- | ----------- |
789
- | items | [[Giveaway](#Giveaway)] | no | |
790
- | page | [Page](#Page) | no | |
780
+ | ---------- | ---- | -------- | ----------- || aspect_ratio | string | no | || id | string | no | || secure_url | string | no | |
791
781
 
792
782
  ---
793
783
 
794
-
795
-
796
-
797
- #### [Giveaway](#Giveaway)
784
+ #### [ConfigurationRequest](#ConfigurationRequest)
798
785
 
799
786
  | Properties | Type | Nullable | Description |
800
- | ---------- | ---- | -------- | ----------- |
801
- | _id | string | no | |
802
- | _schedule | [Schedule](#Schedule) | no | |
803
- | active | boolean | no | |
804
- | application_id | string | no | |
805
- | audience | [RewardsAudience](#RewardsAudience) | no | |
806
- | banner_image | [Asset](#Asset) | no | |
807
- | created_at | string | no | |
808
- | description | string | no | |
809
- | name | string | no | |
810
- | rule | [RewardsRule](#RewardsRule) | no | |
811
- | title | string | no | |
812
- | updated_at | string | no | |
787
+ | ---------- | ---- | -------- | ----------- || terms_conditions_link | string | no | || valid_android_packages | [string] | no | |
813
788
 
814
789
  ---
815
790
 
816
-
817
-
818
-
819
- #### [Schedule](#Schedule)
791
+ #### [ConfigurationRes](#ConfigurationRes)
820
792
 
821
793
  | Properties | Type | Nullable | Description |
822
- | ---------- | ---- | -------- | ----------- |
823
- | duration | number | no | |
824
- | end | string | no | |
825
- | start | string | no | |
826
- | cron | string | no | |
794
+ | ---------- | ---- | -------- | ----------- || application_id | string | no | || success | boolean | no | || terms_conditions_link | string | no | || valid_android_packages | [string] | no | |
827
795
 
828
796
  ---
829
797
 
830
-
831
-
832
-
833
- #### [RewardsAudience](#RewardsAudience)
798
+ #### [E](#E)
834
799
 
835
800
  | Properties | Type | Nullable | Description |
836
- | ---------- | ---- | -------- | ----------- |
837
- | header_user_id | string | no | |
838
- | id | string | no | |
801
+ | ---------- | ---- | -------- | ----------- || code | number | no | || exception | string | no | || info | string | no | || message | string | no | |
839
802
 
840
803
  ---
841
804
 
842
-
843
-
844
-
845
- #### [Asset](#Asset)
805
+ #### [Giveaway](#Giveaway)
846
806
 
847
807
  | Properties | Type | Nullable | Description |
848
- | ---------- | ---- | -------- | ----------- |
849
- | aspect_ratio | string | no | |
850
- | id | string | no | |
851
- | secure_url | string | no | |
808
+ | ---------- | ---- | -------- | ----------- || _id | string | no | || _schedule | [Schedule](#Schedule) | no | || active | boolean | no | || application_id | string | no | || audience | [RewardsAudience](#RewardsAudience) | no | || banner_image | [Asset](#Asset) | no | || created_at | string | no | || description | string | no | || name | string | no | || rule | [RewardsRule](#RewardsRule) | no | || title | string | no | || updated_at | string | no | |
852
809
 
853
810
  ---
854
811
 
855
-
856
-
857
-
858
- #### [RewardsRule](#RewardsRule)
812
+ #### [GiveawayAudience](#GiveawayAudience)
859
813
 
860
814
  | Properties | Type | Nullable | Description |
861
- | ---------- | ---- | -------- | ----------- |
862
- | amount | number | no | |
815
+ | ---------- | ---- | -------- | ----------- || audience_id | string | no | || current_count | number | no | |
863
816
 
864
817
  ---
865
818
 
866
-
867
-
868
-
869
- #### [Page](#Page)
819
+ #### [GiveawayResponse](#GiveawayResponse)
870
820
 
871
821
  | Properties | Type | Nullable | Description |
872
- | ---------- | ---- | -------- | ----------- |
873
- | current | number | no | |
874
- | has_next | boolean | no | |
875
- | has_previous | boolean | no | |
876
- | item_total | number | no | |
877
- | next_id | string | no | |
878
- | size | number | no | |
879
- | type | string | yes | |
822
+ | ---------- | ---- | -------- | ----------- || items | [[Giveaway](#Giveaway)] | no | || page | [Page](#Page) | no | |
880
823
 
881
824
  ---
882
825
 
883
-
884
-
885
-
886
- #### [Offer](#Offer)
826
+ #### [HistoryRes](#HistoryRes)
887
827
 
888
828
  | Properties | Type | Nullable | Description |
889
- | ---------- | ---- | -------- | ----------- |
890
- | _schedule | [Schedule](#Schedule) | no | |
891
- | active | boolean | no | |
892
- | application_id | string | no | |
893
- | banner_image | [Asset](#Asset) | no | |
894
- | created_at | string | no | |
895
- | name | string | no | |
896
- | rule | string | no | |
897
- | share | [ShareMessages](#ShareMessages) | no | |
898
- | sub_text | string | no | |
899
- | text | string | no | |
900
- | type | string | no | |
901
- | updated_at | string | no | |
902
- | updated_by | string | no | |
903
- | url | string | no | |
829
+ | ---------- | ---- | -------- | ----------- || items | [[PointsHistory](#PointsHistory)] | no | || page | [Page](#Page) | no | || points | number | no | |
904
830
 
905
831
  ---
906
832
 
907
-
908
-
909
-
910
- #### [ShareMessages](#ShareMessages)
833
+ #### [Offer](#Offer)
911
834
 
912
835
  | Properties | Type | Nullable | Description |
913
- | ---------- | ---- | -------- | ----------- |
914
- | email | number | no | |
915
- | facebook | string | no | |
916
- | fallback | string | no | |
917
- | message | string | no | |
918
- | messenger | string | no | |
919
- | sms | string | no | |
920
- | text | string | no | |
921
- | twitter | string | no | |
922
- | whatsapp | string | no | |
836
+ | ---------- | ---- | -------- | ----------- || _schedule | [Schedule](#Schedule) | no | || active | boolean | no | || application_id | string | no | || banner_image | [Asset](#Asset) | no | || created_at | string | no | || name | string | no | || rule | string | no | || share | [ShareMessages](#ShareMessages) | no | || sub_text | string | no | || text | string | no | || type | string | no | || updated_at | string | no | || updated_by | string | no | || url | string | no | |
923
837
 
924
838
  ---
925
839
 
926
-
927
-
928
-
929
- #### [UserRes](#UserRes)
840
+ #### [Page](#Page)
930
841
 
931
842
  | Properties | Type | Nullable | Description |
932
- | ---------- | ---- | -------- | ----------- |
933
- | points | [Points](#Points) | no | |
934
- | user | [RewardUser](#RewardUser) | no | |
843
+ | ---------- | ---- | -------- | ----------- || 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 | |
935
844
 
936
845
  ---
937
846
 
938
-
939
-
940
-
941
- #### [Points](#Points)
847
+ #### [Points](#Points)
942
848
 
943
849
  | Properties | Type | Nullable | Description |
944
- | ---------- | ---- | -------- | ----------- |
945
- | available | number | no | |
850
+ | ---------- | ---- | -------- | ----------- || available | number | no | |
946
851
 
947
852
  ---
948
853
 
949
-
950
-
951
-
952
- #### [RewardUser](#RewardUser)
854
+ #### [PointsHistory](#PointsHistory)
953
855
 
954
856
  | Properties | Type | Nullable | Description |
955
- | ---------- | ---- | -------- | ----------- |
956
- | _id | string | no | |
957
- | active | boolean | no | |
958
- | created_at | string | no | |
959
- | referral | [Referral](#Referral) | no | |
960
- | uid | number | no | |
961
- | updated_at | string | no | |
962
- | user_block_reason | string | no | |
963
- | user_id | string | no | |
857
+ | ---------- | ---- | -------- | ----------- || _id | string | no | || application_id | string | no | || claimed | boolean | no | || created_at | string | no | || expires_on | string | no | || meta | string | no | || points | number | no | || remaining_points | number | no | || text_1 | string | no | || text_2 | string | no | || text_3 | string | no | || txn_name | string | no | || updated_at | string | no | || user_id | string | no | |
964
858
 
965
859
  ---
966
860
 
967
-
968
-
969
-
970
- #### [Referral](#Referral)
861
+ #### [Referral](#Referral)
971
862
 
972
863
  | Properties | Type | Nullable | Description |
973
- | ---------- | ---- | -------- | ----------- |
974
- | code | string | no | |
864
+ | ---------- | ---- | -------- | ----------- || code | string | no | |
975
865
 
976
866
  ---
977
867
 
978
-
979
-
980
-
981
- #### [AppUser](#AppUser)
868
+ #### [RewardsAudience](#RewardsAudience)
982
869
 
983
870
  | Properties | Type | Nullable | Description |
984
- | ---------- | ---- | -------- | ----------- |
985
- | _id | string | no | |
986
- | active | boolean | no | |
987
- | application_id | string | no | |
988
- | block_reason | string | no | |
989
- | updated_at | string | no | |
990
- | updated_by | string | no | |
991
- | user_id | string | no | |
871
+ | ---------- | ---- | -------- | ----------- || header_user_id | string | no | || id | string | no | |
992
872
 
993
873
  ---
994
874
 
995
-
996
-
997
-
998
- #### [GiveawayAudience](#GiveawayAudience)
875
+ #### [RewardsRule](#RewardsRule)
999
876
 
1000
877
  | Properties | Type | Nullable | Description |
1001
- | ---------- | ---- | -------- | ----------- |
1002
- | audience_id | string | no | |
1003
- | current_count | number | no | |
878
+ | ---------- | ---- | -------- | ----------- || amount | number | no | |
1004
879
 
1005
880
  ---
1006
881
 
1007
-
1008
-
1009
-
1010
- #### [HistoryRes](#HistoryRes)
882
+ #### [RewardUser](#RewardUser)
1011
883
 
1012
884
  | Properties | Type | Nullable | Description |
1013
- | ---------- | ---- | -------- | ----------- |
1014
- | items | [[PointsHistory](#PointsHistory)] | no | History is the list of points transaction. |
1015
- | page | [Page](#Page) | no | |
1016
- | points | number | no | |
885
+ | ---------- | ---- | -------- | ----------- || _id | string | no | || active | boolean | no | || created_at | string | no | || referral | [Referral](#Referral) | no | || uid | number | no | || updated_at | string | no | || user_block_reason | string | no | || user_id | string | no | |
1017
886
 
1018
887
  ---
1019
888
 
1020
-
1021
-
1022
-
1023
- #### [PointsHistory](#PointsHistory)
889
+ #### [Schedule](#Schedule)
1024
890
 
1025
891
  | Properties | Type | Nullable | Description |
1026
- | ---------- | ---- | -------- | ----------- |
1027
- | _id | string | no | |
1028
- | application_id | string | no | |
1029
- | claimed | boolean | no | |
1030
- | created_at | string | no | |
1031
- | expires_on | string | no | |
1032
- | meta | string | no | |
1033
- | points | number | no | |
1034
- | remaining_points | number | no | |
1035
- | text_1 | string | no | |
1036
- | text_2 | string | no | |
1037
- | text_3 | string | no | |
1038
- | txn_name | string | no | |
1039
- | updated_at | string | no | |
1040
- | user_id | string | no | |
892
+ | ---------- | ---- | -------- | ----------- || cron | string | no | || duration | number | no | || end | string | no | || start | string | no | |
1041
893
 
1042
894
  ---
1043
895
 
1044
-
1045
-
1046
-
1047
- #### [ConfigurationRes](#ConfigurationRes)
896
+ #### [SetConfigurationRes](#SetConfigurationRes)
1048
897
 
1049
898
  | Properties | Type | Nullable | Description |
1050
- | ---------- | ---- | -------- | ----------- |
1051
- | valid_android_packages | [string] | no | Contains array of string items, Valid android package names. |
1052
- | terms_conditions_link | string | no | A URL that redirects to the referral information suport page link |
1053
- | application_id | string | no | |
1054
- | success | boolean | no | |
899
+ | ---------- | ---- | -------- | ----------- || success | boolean | no | |
1055
900
 
1056
901
  ---
1057
902
 
1058
-
1059
-
1060
-
1061
- #### [SetConfigurationRes](#SetConfigurationRes)
903
+ #### [ShareMessages](#ShareMessages)
1062
904
 
1063
905
  | Properties | Type | Nullable | Description |
1064
- | ---------- | ---- | -------- | ----------- |
1065
- | success | boolean | no | |
906
+ | ---------- | ---- | -------- | ----------- || email | number | no | || facebook | string | no | || fallback | string | no | || message | string | no | || messenger | string | no | || sms | string | no | || text | string | no | || twitter | string | no | || whatsapp | string | no | |
1066
907
 
1067
908
  ---
1068
909
 
1069
-
1070
-
1071
-
1072
- #### [ConfigurationRequest](#ConfigurationRequest)
910
+ #### [UserRes](#UserRes)
1073
911
 
1074
912
  | Properties | Type | Nullable | Description |
1075
- | ---------- | ---- | -------- | ----------- |
1076
- | valid_android_packages | [string] | no | |
1077
- | terms_conditions_link | string | no | |
913
+ | ---------- | ---- | -------- | ----------- || points | [Points](#Points) | no | || user | [RewardUser](#RewardUser) | no | |
1078
914
 
1079
915
  ---
1080
916