@gofynd/fdk-client-javascript 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/README.md +31 -2
  2. package/index.d.ts +4 -4
  3. package/index.js +9 -10
  4. package/package.json +14 -14
  5. package/sdk/APIClient.d.ts +11 -0
  6. package/sdk/APIClient.js +35 -0
  7. package/sdk/Client.d.ts +6 -0
  8. package/sdk/Client.js +17 -0
  9. package/sdk/Config.d.ts +9 -0
  10. package/sdk/Config.js +17 -0
  11. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  12. package/sdk/application/Cart/CartApplicationClient.js +595 -594
  13. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  14. package/sdk/application/Cart/CartApplicationModel.js +490 -885
  15. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  16. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  17. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  18. package/sdk/application/Catalog/CatalogApplicationClient.js +1079 -1078
  19. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  20. package/sdk/application/Catalog/CatalogApplicationModel.js +683 -1249
  21. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  22. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  23. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  24. package/sdk/application/Common/CommonApplicationClient.js +43 -42
  25. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  26. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  27. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  28. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  29. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  30. package/sdk/application/Communication/CommunicationApplicationClient.js +32 -31
  31. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  32. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  33. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  34. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.js +350 -349
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  41. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  42. package/sdk/application/Content/ContentApplicationClient.js +216 -215
  43. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
  44. package/sdk/application/Content/ContentApplicationModel.js +468 -884
  45. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  46. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.js +65 -64
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  53. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  54. package/sdk/application/Lead/LeadApplicationClient.js +109 -108
  55. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  56. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  57. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  58. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  59. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +31 -22
  60. package/sdk/application/Logistic/LogisticApplicationClient.js +115 -49
  61. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  62. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  63. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  64. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -9
  65. package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
  66. package/sdk/application/Order/OrderApplicationClient.js +247 -246
  67. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  68. package/sdk/application/Order/OrderApplicationModel.js +361 -656
  69. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  70. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  71. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  72. package/sdk/application/Payment/PaymentApplicationClient.js +781 -780
  73. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  74. package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
  75. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  76. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  77. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  78. package/sdk/application/PosCart/PosCartApplicationClient.js +646 -645
  79. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
  80. package/sdk/application/PosCart/PosCartApplicationModel.js +476 -870
  81. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  82. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  83. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  84. package/sdk/application/Rewards/RewardsApplicationClient.js +122 -121
  85. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  86. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  87. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  88. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  89. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  90. package/sdk/application/Share/ShareApplicationClient.js +94 -93
  91. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  92. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  93. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  94. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  95. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  96. package/sdk/application/Theme/ThemeApplicationClient.js +38 -37
  97. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  98. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  99. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  100. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  101. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  102. package/sdk/application/User/UserApplicationClient.js +619 -618
  103. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  104. package/sdk/application/User/UserApplicationModel.js +440 -689
  105. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  106. package/sdk/application/User/UserApplicationValidator.js +89 -89
  107. package/sdk/common/AxiosHelper.js +18 -7
  108. package/sdk/constructUrl.d.ts +5 -0
  109. package/sdk/constructUrl.js +13 -0
  110. package/sdk/index.d.ts +3 -0
  111. package/sdk/index.js +5 -0
  112. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +182 -180
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  115. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +21 -21
  116. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  117. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  118. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  119. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +44 -43
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +7 -6
  126. package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
  127. package/sdk/platform/Billing/BillingPlatformClient.js +184 -183
  128. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  129. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  130. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  131. package/sdk/platform/Billing/BillingPlatformValidator.js +26 -25
  132. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +192 -165
  133. package/sdk/platform/Cart/CartPlatformApplicationClient.js +686 -510
  134. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +14 -11
  135. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +77 -61
  136. package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
  137. package/sdk/platform/Cart/CartPlatformModel.js +676 -1206
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1558 -1556
  140. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  142. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +688 -688
  143. package/sdk/platform/Catalog/CatalogPlatformClient.js +1556 -1559
  144. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
  145. package/sdk/platform/Catalog/CatalogPlatformModel.js +2133 -3910
  146. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
  147. package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -228
  148. package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
  149. package/sdk/platform/Common/CommonPlatformClient.js +40 -51
  150. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  151. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  152. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  153. package/sdk/platform/Common/CommonPlatformValidator.js +7 -6
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +945 -943
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +88 -88
  158. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +217 -216
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -24
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +617 -552
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +70 -64
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +348 -347
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +39 -38
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +524 -534
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1287 -1346
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +49 -50
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +153 -159
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
  183. package/sdk/platform/Content/ContentPlatformModel.js +485 -907
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +219 -218
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +30 -29
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +25 -25
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +83 -61
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +9 -9
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +53 -53
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +147 -125
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +12 -11
  200. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
  201. package/sdk/platform/Inventory/InventoryPlatformClient.js +231 -230
  202. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  203. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  204. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  205. package/sdk/platform/Inventory/InventoryPlatformValidator.js +29 -28
  206. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
  207. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +203 -201
  208. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  209. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +29 -29
  210. package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
  211. package/sdk/platform/Lead/LeadPlatformClient.js +215 -214
  212. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  213. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  214. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  215. package/sdk/platform/Lead/LeadPlatformValidator.js +25 -24
  216. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
  217. package/sdk/platform/Order/OrderPlatformApplicationClient.js +68 -66
  218. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  219. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +7 -7
  220. package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
  221. package/sdk/platform/Order/OrderPlatformClient.js +1046 -1033
  222. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
  223. package/sdk/platform/Order/OrderPlatformModel.js +1575 -2861
  224. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  225. package/sdk/platform/Order/OrderPlatformValidator.js +161 -160
  226. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  227. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  228. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  229. package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
  230. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +58 -58
  231. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +178 -178
  232. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  233. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +24 -24
  234. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
  235. package/sdk/platform/Payment/PaymentPlatformClient.js +156 -155
  236. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  237. package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
  238. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  239. package/sdk/platform/Payment/PaymentPlatformValidator.js +22 -21
  240. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
  241. package/sdk/platform/PlatformApplicationClient.js +1584 -13899
  242. package/sdk/platform/PlatformClient.d.ts +7972 -7888
  243. package/sdk/platform/PlatformClient.js +8678 -10107
  244. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +85 -85
  245. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +299 -280
  246. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  247. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +35 -35
  248. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  249. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  250. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
  251. package/sdk/platform/Share/SharePlatformApplicationClient.js +62 -60
  252. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  253. package/sdk/platform/Share/SharePlatformApplicationValidator.js +7 -7
  254. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  255. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  256. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
  257. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +314 -312
  258. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  259. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +45 -45
  260. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  261. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  262. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
  263. package/sdk/platform/User/UserPlatformApplicationClient.js +507 -166
  264. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  265. package/sdk/platform/User/UserPlatformApplicationValidator.js +62 -24
  266. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  267. package/sdk/platform/User/UserPlatformModel.js +440 -689
  268. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
  269. package/sdk/platform/Webhook/WebhookPlatformClient.js +91 -90
  270. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  271. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  272. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  273. package/sdk/platform/Webhook/WebhookPlatformValidator.js +15 -14
  274. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  275. package/sdk/public/Configuration/ConfigurationPublicClient.js +40 -38
  276. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  277. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  278. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  279. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  280. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  281. package/sdk/public/Inventory/InventoryPublicClient.js +115 -113
  282. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  283. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  284. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  285. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  286. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  287. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  288. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  289. package/.github/workflows/on_create_release.yml +0 -23
  290. package/.github/workflows/on_merge_main.yml +0 -38
  291. package/.github/workflows/on_pull_request.yml +0 -35
  292. package/.prettierrc +0 -5
  293. package/documentation/application/CART.md +0 -7339
  294. package/documentation/application/CATALOG.md +0 -9597
  295. package/documentation/application/COMMON.md +0 -452
  296. package/documentation/application/COMMUNICATION.md +0 -467
  297. package/documentation/application/CONFIGURATION.md +0 -2906
  298. package/documentation/application/CONTENT.md +0 -3351
  299. package/documentation/application/FILESTORAGE.md +0 -578
  300. package/documentation/application/LEAD.md +0 -1895
  301. package/documentation/application/LOGISTIC.md +0 -765
  302. package/documentation/application/ORDER.md +0 -3432
  303. package/documentation/application/PAYMENT.md +0 -5221
  304. package/documentation/application/POSCART.md +0 -7938
  305. package/documentation/application/README.md +0 -21
  306. package/documentation/application/REWARDS.md +0 -708
  307. package/documentation/application/SHARE.md +0 -733
  308. package/documentation/application/THEME.md +0 -5800
  309. package/documentation/application/USER.md +0 -4335
  310. package/documentation/platform/ANALYTICS.md +0 -1154
  311. package/documentation/platform/AUDITTRAIL.md +0 -576
  312. package/documentation/platform/BILLING.md +0 -2400
  313. package/documentation/platform/CART.md +0 -5559
  314. package/documentation/platform/CATALOG.md +0 -23261
  315. package/documentation/platform/COMMON.md +0 -452
  316. package/documentation/platform/COMMUNICATION.md +0 -5718
  317. package/documentation/platform/COMPANYPROFILE.md +0 -2031
  318. package/documentation/platform/CONFIGURATION.md +0 -7339
  319. package/documentation/platform/CONTENT.md +0 -9098
  320. package/documentation/platform/DISCOUNT.md +0 -863
  321. package/documentation/platform/FILESTORAGE.md +0 -1081
  322. package/documentation/platform/INVENTORY.md +0 -1779
  323. package/documentation/platform/LEAD.md +0 -4740
  324. package/documentation/platform/ORDER.md +0 -8486
  325. package/documentation/platform/PARTNER.md +0 -220
  326. package/documentation/platform/PAYMENT.md +0 -3448
  327. package/documentation/platform/README.md +0 -27
  328. package/documentation/platform/REWARDS.md +0 -1083
  329. package/documentation/platform/SHARE.md +0 -606
  330. package/documentation/platform/THEME.md +0 -35729
  331. package/documentation/platform/USER.md +0 -2319
  332. package/documentation/platform/WEBHOOK.md +0 -591
  333. package/documentation/public/CONFIGURATION.md +0 -452
  334. package/documentation/public/INVENTORY.md +0 -690
  335. package/documentation/public/WEBHOOK.md +0 -352
  336. package/jest.config.d.ts +0 -4
  337. package/jest.config.js +0 -6
  338. package/tests/application/catalog.spec.js +0 -47
  339. package/tests/common/action-url.spec.js +0 -35
  340. package/tests/common/schema/action-url.json +0 -178
  341. package/tests/common/schema/url-action.json +0 -683
  342. package/tests/common/url-action.spec.js +0 -48
  343. package/tests/helpers/cookie.helper.js +0 -31
  344. package/tests/helpers/oauth.helper.js +0 -43
  345. package/tests/platform/catalog.spec.js +0 -49
  346. package/tests/public/location.spec.js +0 -39
@@ -1,15 +1,15 @@
1
1
  export = BillingValidator;
2
2
  declare class BillingValidator {
3
+ static activateSubscriptionPlan(): any;
4
+ static cancelSubscriptionCharge(): any;
5
+ static cancelSubscriptionPlan(): any;
3
6
  static checkCouponValidity(): any;
4
7
  static createSubscriptionCharge(): any;
5
- static getSubscriptionCharge(): any;
6
- static cancelSubscriptionCharge(): any;
7
- static getInvoices(): any;
8
- static getInvoiceById(): any;
9
8
  static getCustomerDetail(): any;
10
- static upsertCustomerDetail(): any;
11
- static getSubscription(): any;
12
9
  static getFeatureLimitConfig(): any;
13
- static activateSubscriptionPlan(): any;
14
- static cancelSubscriptionPlan(): any;
10
+ static getInvoiceById(): any;
11
+ static getInvoices(): any;
12
+ static getSubscription(): any;
13
+ static getSubscriptionCharge(): any;
14
+ static upsertCustomerDetail(): any;
15
15
  }
@@ -2,41 +2,36 @@ const Joi = require("joi");
2
2
 
3
3
  const BillingModel = require("./BillingPlatformModel");
4
4
  class BillingValidator {
5
- static checkCouponValidity() {
5
+ static activateSubscriptionPlan() {
6
6
  return Joi.object({
7
- plan: Joi.string().allow("").required(),
8
- couponCode: Joi.string().allow("").required(),
7
+ body: BillingModel.SubscriptionActivateReq().required(),
9
8
  }).required();
10
9
  }
11
10
 
12
- static createSubscriptionCharge() {
11
+ static cancelSubscriptionCharge() {
13
12
  return Joi.object({
14
13
  extensionId: Joi.string().allow("").required(),
15
- body: BillingModel.CreateSubscriptionCharge().required(),
14
+ subscriptionId: Joi.string().allow("").required(),
16
15
  }).required();
17
16
  }
18
17
 
19
- static getSubscriptionCharge() {
18
+ static cancelSubscriptionPlan() {
20
19
  return Joi.object({
21
- extensionId: Joi.string().allow("").required(),
22
- subscriptionId: Joi.string().allow("").required(),
20
+ body: BillingModel.CancelSubscriptionReq().required(),
23
21
  }).required();
24
22
  }
25
23
 
26
- static cancelSubscriptionCharge() {
24
+ static checkCouponValidity() {
27
25
  return Joi.object({
28
- extensionId: Joi.string().allow("").required(),
29
- subscriptionId: Joi.string().allow("").required(),
26
+ plan: Joi.string().allow("").required(),
27
+ couponCode: Joi.string().allow("").required(),
30
28
  }).required();
31
29
  }
32
30
 
33
- static getInvoices() {
34
- return Joi.object({}).required();
35
- }
36
-
37
- static getInvoiceById() {
31
+ static createSubscriptionCharge() {
38
32
  return Joi.object({
39
- invoiceId: Joi.string().allow("").required(),
33
+ extensionId: Joi.string().allow("").required(),
34
+ body: BillingModel.CreateSubscriptionCharge().required(),
40
35
  }).required();
41
36
  }
42
37
 
@@ -44,30 +39,36 @@ class BillingValidator {
44
39
  return Joi.object({}).required();
45
40
  }
46
41
 
47
- static upsertCustomerDetail() {
42
+ static getFeatureLimitConfig() {
43
+ return Joi.object({}).required();
44
+ }
45
+
46
+ static getInvoiceById() {
48
47
  return Joi.object({
49
- body: BillingModel.SubscriptionCustomerCreate().required(),
48
+ invoiceId: Joi.string().allow("").required(),
50
49
  }).required();
51
50
  }
52
51
 
53
- static getSubscription() {
52
+ static getInvoices() {
54
53
  return Joi.object({}).required();
55
54
  }
56
55
 
57
- static getFeatureLimitConfig() {
56
+ static getSubscription() {
58
57
  return Joi.object({}).required();
59
58
  }
60
59
 
61
- static activateSubscriptionPlan() {
60
+ static getSubscriptionCharge() {
62
61
  return Joi.object({
63
- body: BillingModel.SubscriptionActivateReq().required(),
62
+ extensionId: Joi.string().allow("").required(),
63
+ subscriptionId: Joi.string().allow("").required(),
64
64
  }).required();
65
65
  }
66
66
 
67
- static cancelSubscriptionPlan() {
67
+ static upsertCustomerDetail() {
68
68
  return Joi.object({
69
- body: BillingModel.CancelSubscriptionReq().required(),
69
+ body: BillingModel.SubscriptionCustomerCreate().required(),
70
70
  }).required();
71
71
  }
72
72
  }
73
+
73
74
  module.exports = BillingValidator;
@@ -3,6 +3,156 @@ declare class Cart {
3
3
  constructor(config: any, applicationId: any);
4
4
  config: any;
5
5
  applicationId: any;
6
+ /**
7
+ * @param {Object} arg - Arg object.
8
+ * @param {string} arg.cartId - Current Cart _id
9
+ * @param {boolean} [arg.b] -
10
+ * @param {AddCartRequest} arg.body
11
+ * @returns {Promise<AddCartDetailResponse>} - Success response
12
+ * @summary: Add items to abandoned cart
13
+ * @description: Use this API to add items to the abandoned cart.
14
+ */
15
+ addItems({ cartId, body, b }?: {
16
+ cartId: string;
17
+ b?: boolean;
18
+ body: AddCartRequest;
19
+ }): Promise<AddCartDetailResponse>;
20
+ /**
21
+ * @param {Object} arg - Arg object.
22
+ * @param {OpenApiCartServiceabilityRequest} arg.body
23
+ * @returns {Promise<OpenApiCartServiceabilityResponse>} - Success response
24
+ * @summary: Check Pincode Serviceability
25
+ * @description: Check Pincode serviceability for cart items provided in `cart_items` and address pincode in `shipping_address`
26
+ */
27
+ checkCartServiceability({ body }?: {
28
+ body: OpenApiCartServiceabilityRequest;
29
+ }): Promise<OpenApiCartServiceabilityResponse>;
30
+ /**
31
+ * @param {Object} arg - Arg object.
32
+ * @param {OpenApiPlatformCheckoutReq} arg.body
33
+ * @returns {Promise<OpenApiCheckoutResponse>} - Success response
34
+ * @summary: Create Fynd order with cart details
35
+ * @description: Generate Fynd order for cart details send with provided `cart_items`
36
+ */
37
+ checkoutCart({ body }?: {
38
+ body: OpenApiPlatformCheckoutReq;
39
+ }): Promise<OpenApiCheckoutResponse>;
40
+ /**
41
+ * @param {Object} arg - Arg object.
42
+ * @param {CouponAdd} arg.body
43
+ * @returns {Promise<SuccessMessage>} - Success response
44
+ * @summary: Create new coupon
45
+ * @description: Create new coupon
46
+ */
47
+ createCoupon({ body }?: {
48
+ body: CouponAdd;
49
+ }): Promise<SuccessMessage>;
50
+ /**
51
+ * @param {Object} arg - Arg object.
52
+ * @param {PromotionAdd} arg.body
53
+ * @returns {Promise<PromotionAdd>} - Success response
54
+ * @summary: Create new promotion
55
+ * @description: Create new promotion
56
+ */
57
+ createPromotion({ body }?: {
58
+ body: PromotionAdd;
59
+ }): Promise<PromotionAdd>;
60
+ /**
61
+ * @param {Object} arg - Arg object.
62
+ * @param {OpenapiCartDetailsRequest} arg.body
63
+ * @returns {Promise<OpenapiCartDetailsResponse>} - Success response
64
+ * @summary: Fetch Cart Details
65
+ * @description: Get all the details of cart for a list of provided `cart_items`
66
+ */
67
+ fetchAndvalidateCartItems({ body }?: {
68
+ body: OpenapiCartDetailsRequest;
69
+ }): Promise<OpenapiCartDetailsResponse>;
70
+ /**
71
+ * @param {Object} arg - Arg object.
72
+ * @param {number} [arg.pageNo] -
73
+ * @param {number} [arg.pageSize] -
74
+ * @param {string} [arg.fromDate] -
75
+ * @param {string} [arg.toDate] -
76
+ * @param {boolean} [arg.anonymousCart] -
77
+ * @param {string} [arg.lastId] -
78
+ * @param {string} [arg.sortOn] -
79
+ * @returns {Promise<AbandonedCartResponse>} - Success response
80
+ * @summary: Get with abandoned cart list
81
+ * @description: Get abandoned cart list with pagination
82
+ */
83
+ getAbandonedCart({ pageNo, pageSize, fromDate, toDate, anonymousCart, lastId, sortOn, }?: {
84
+ pageNo?: number;
85
+ pageSize?: number;
86
+ fromDate?: string;
87
+ toDate?: string;
88
+ anonymousCart?: boolean;
89
+ lastId?: string;
90
+ sortOn?: string;
91
+ }): Promise<AbandonedCartResponse>;
92
+ /**
93
+ * @param {Object} arg - Arg object.
94
+ * @param {string} arg.companyId - Current company id
95
+ * @param {string} arg.applicationId - Current Application _id
96
+ * @param {number} [arg.pageSize] -
97
+ * @param {string} [arg.fromDate] -
98
+ * @param {string} [arg.toDate] -
99
+ * @param {boolean} [arg.anonymousCart] -
100
+ * @param {string} [arg.lastId] -
101
+ * @param {string} [arg.sortOn] -
102
+ * @summary: Get with abandoned cart list
103
+ * @description: Get abandoned cart list with pagination
104
+ */
105
+ getAbandonedCartPaginator({ companyId, applicationId, pageSize, fromDate, toDate, anonymousCart, lastId, sortOn, }?: {
106
+ companyId: string;
107
+ applicationId: string;
108
+ pageSize?: number;
109
+ fromDate?: string;
110
+ toDate?: string;
111
+ anonymousCart?: boolean;
112
+ lastId?: string;
113
+ sortOn?: string;
114
+ }): Paginator;
115
+ /**
116
+ * @param {Object} arg - Arg object.
117
+ * @param {string} [arg.id] -
118
+ * @param {boolean} [arg.i] -
119
+ * @param {boolean} [arg.b] -
120
+ * @returns {Promise<CartDetailResponse>} - Success response
121
+ * @summary: Fetch all items added to the cart
122
+ * @description: Use this API to get details of all the items added to a cart.
123
+ */
124
+ getAbandonedCartDetails({ id, i, b }?: {
125
+ id?: string;
126
+ i?: boolean;
127
+ b?: boolean;
128
+ }): Promise<CartDetailResponse>;
129
+ /**
130
+ * @param {Object} arg - Arg object.
131
+ * @param {string} arg.id -
132
+ * @returns {Promise<CouponUpdate>} - Success response
133
+ * @summary: Get with single coupon details or coupon list
134
+ * @description: Get single coupon details with `id` in path param
135
+ */
136
+ getCouponById({ id }?: {
137
+ id: string;
138
+ }): Promise<CouponUpdate>;
139
+ /**
140
+ * @param {Object} arg - Arg object.
141
+ * @param {string} [arg.code] -
142
+ * @returns {Promise<Object>} - Success response
143
+ * @summary: Check if coupon is already created with coupon code
144
+ * @description: Check if sent coupon code is already existing coupon code. As coupon code is to be unique.
145
+ */
146
+ getCouponCodeExists({ code }?: {
147
+ code?: string;
148
+ }): Promise<any>;
149
+ /**
150
+ * @param {Object} arg - Arg object.
151
+ * @returns {Promise<Object>} - Success response
152
+ * @summary: Get coupon options enums with display values
153
+ * @description: Get coupon enum values for fields in valid coupon object. Used for front end to create, update and filter coupon lists via fields
154
+ */
155
+ getCouponOptionValues({}?: any): Promise<any>;
6
156
  /**
7
157
  * @param {Object} arg - Arg object.
8
158
  * @param {number} [arg.pageNo] -
@@ -52,50 +202,26 @@ declare class Cart {
52
202
  typeSlug?: string;
53
203
  code?: string;
54
204
  }): Paginator;
55
- /**
56
- * @param {Object} arg - Arg object.
57
- * @param {CouponAdd} arg.body
58
- * @returns {Promise<SuccessMessage>} - Success response
59
- * @summary: Create new coupon
60
- * @description: Create new coupon
61
- */
62
- createCoupon({ body }?: {
63
- body: CouponAdd;
64
- }): Promise<SuccessMessage>;
65
205
  /**
66
206
  * @param {Object} arg - Arg object.
67
207
  * @param {string} arg.id -
68
- * @returns {Promise<CouponUpdate>} - Success response
69
- * @summary: Get with single coupon details or coupon list
70
- * @description: Get single coupon details with `id` in path param
71
- */
72
- getCouponById({ id }?: {
73
- id: string;
74
- }): Promise<CouponUpdate>;
75
- /**
76
- * @param {Object} arg - Arg object.
77
- * @param {string} arg.id -
78
- * @param {CouponUpdate} arg.body
79
- * @returns {Promise<SuccessMessage>} - Success response
80
- * @summary: Update existing coupon configuration
81
- * @description: Update coupon with id sent in `id`
208
+ * @returns {Promise<PromotionUpdate>} - Success response
209
+ * @summary: Get with single promotion details or promotion list
210
+ * @description: Get single promotion details with `id` in path param
82
211
  */
83
- updateCoupon({ id, body }?: {
212
+ getPromotionById({ id }?: {
84
213
  id: string;
85
- body: CouponUpdate;
86
- }): Promise<SuccessMessage>;
214
+ }): Promise<PromotionUpdate>;
87
215
  /**
88
216
  * @param {Object} arg - Arg object.
89
- * @param {string} arg.id -
90
- * @param {CouponPartialUpdate} arg.body
91
- * @returns {Promise<SuccessMessage>} - Success response
92
- * @summary: Update coupon archive state and schedule
93
- * @description: Update archive/unarchive and change schedule for coupon
217
+ * @param {string} [arg.code] -
218
+ * @returns {Promise<Object>} - Success response
219
+ * @summary: Check if promotion is already created with promotion code
220
+ * @description: Check if sent promotion code is already existing promotion code. As promotion code is to be unique.
94
221
  */
95
- updateCouponPartially({ id, body }?: {
96
- id: string;
97
- body: CouponPartialUpdate;
98
- }): Promise<SuccessMessage>;
222
+ getPromotionCodeExists({ code }?: {
223
+ code?: string;
224
+ }): Promise<any>;
99
225
  /**
100
226
  * @param {Object} arg - Arg object.
101
227
  * @param {number} [arg.pageNo] -
@@ -147,24 +273,42 @@ declare class Cart {
147
273
  }): Paginator;
148
274
  /**
149
275
  * @param {Object} arg - Arg object.
150
- * @param {PromotionAdd} arg.body
151
- * @returns {Promise<PromotionAdd>} - Success response
152
- * @summary: Create new promotion
153
- * @description: Create new promotion
276
+ * @param {string} arg.cartId - Current Cart _id
277
+ * @param {boolean} [arg.b] -
278
+ * @param {UpdateCartRequest} arg.body
279
+ * @returns {Promise<UpdateCartDetailResponse>} - Success response
280
+ * @summary: Update items in the abandoned cart
281
+ * @description: <p>Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs</p> <ul> <li><font color="monochrome">operation</font> Operation for current api call. <b>update_item</b> for update items. <b>remove_item</b> for removing items.</li> <li> <font color="monochrome">item_id</font> "/platform/content/v1/products/"</li> <li> <font color="monochrome">item_size</font> "/platform/content/v1/products/:slug/sizes/"</li> <li> <font color="monochrome">quantity</font> item quantity (must be greater than or equal to 1)</li> <li> <font color="monochrome">article_id</font> "/content​/v1​/products​/:identifier​/sizes​/price​/"</li> <li> <font color="monochrome">item_index</font> item position in the cart (must be greater than or equal to 0)</li> </ul>
154
282
  */
155
- createPromotion({ body }?: {
156
- body: PromotionAdd;
157
- }): Promise<PromotionAdd>;
283
+ updateCart({ cartId, body, b }?: {
284
+ cartId: string;
285
+ b?: boolean;
286
+ body: UpdateCartRequest;
287
+ }): Promise<UpdateCartDetailResponse>;
158
288
  /**
159
289
  * @param {Object} arg - Arg object.
160
290
  * @param {string} arg.id -
161
- * @returns {Promise<PromotionUpdate>} - Success response
162
- * @summary: Get with single promotion details or promotion list
163
- * @description: Get single promotion details with `id` in path param
291
+ * @param {CouponUpdate} arg.body
292
+ * @returns {Promise<SuccessMessage>} - Success response
293
+ * @summary: Update existing coupon configuration
294
+ * @description: Update coupon with id sent in `id`
164
295
  */
165
- getPromotionById({ id }?: {
296
+ updateCoupon({ id, body }?: {
166
297
  id: string;
167
- }): Promise<PromotionUpdate>;
298
+ body: CouponUpdate;
299
+ }): Promise<SuccessMessage>;
300
+ /**
301
+ * @param {Object} arg - Arg object.
302
+ * @param {string} arg.id -
303
+ * @param {CouponPartialUpdate} arg.body
304
+ * @returns {Promise<SuccessMessage>} - Success response
305
+ * @summary: Update coupon archive state and schedule
306
+ * @description: Update archive/unarchive and change schedule for coupon
307
+ */
308
+ updateCouponPartially({ id, body }?: {
309
+ id: string;
310
+ body: CouponPartialUpdate;
311
+ }): Promise<SuccessMessage>;
168
312
  /**
169
313
  * @param {Object} arg - Arg object.
170
314
  * @param {string} arg.id -
@@ -189,122 +333,5 @@ declare class Cart {
189
333
  id: string;
190
334
  body: PromotionPartialUpdate;
191
335
  }): Promise<SuccessMessage>;
192
- /**
193
- * @param {Object} arg - Arg object.
194
- * @param {OpenapiCartDetailsRequest} arg.body
195
- * @returns {Promise<OpenapiCartDetailsResponse>} - Success response
196
- * @summary: Fetch Cart Details
197
- * @description: Get all the details of cart for a list of provided `cart_items`
198
- */
199
- fetchAndvalidateCartItems({ body }?: {
200
- body: OpenapiCartDetailsRequest;
201
- }): Promise<OpenapiCartDetailsResponse>;
202
- /**
203
- * @param {Object} arg - Arg object.
204
- * @param {OpenApiCartServiceabilityRequest} arg.body
205
- * @returns {Promise<OpenApiCartServiceabilityResponse>} - Success response
206
- * @summary: Check Pincode Serviceability
207
- * @description: Check Pincode serviceability for cart items provided in `cart_items` and address pincode in `shipping_address`
208
- */
209
- checkCartServiceability({ body }?: {
210
- body: OpenApiCartServiceabilityRequest;
211
- }): Promise<OpenApiCartServiceabilityResponse>;
212
- /**
213
- * @param {Object} arg - Arg object.
214
- * @param {OpenApiPlatformCheckoutReq} arg.body
215
- * @returns {Promise<OpenApiCheckoutResponse>} - Success response
216
- * @summary: Create Fynd order with cart details
217
- * @description: Generate Fynd order for cart details send with provided `cart_items`
218
- */
219
- checkoutCart({ body }?: {
220
- body: OpenApiPlatformCheckoutReq;
221
- }): Promise<OpenApiCheckoutResponse>;
222
- /**
223
- * @param {Object} arg - Arg object.
224
- * @param {number} [arg.pageNo] -
225
- * @param {number} [arg.pageSize] -
226
- * @param {string} [arg.fromDate] -
227
- * @param {string} [arg.toDate] -
228
- * @param {boolean} [arg.anonymousCart] -
229
- * @param {string} [arg.lastId] -
230
- * @param {string} [arg.sortOn] -
231
- * @returns {Promise<AbandonedCartResponse>} - Success response
232
- * @summary: Get with abandoned cart list
233
- * @description: Get abandoned cart list with pagination
234
- */
235
- getAbandonedCart({ pageNo, pageSize, fromDate, toDate, anonymousCart, lastId, sortOn, }?: {
236
- pageNo?: number;
237
- pageSize?: number;
238
- fromDate?: string;
239
- toDate?: string;
240
- anonymousCart?: boolean;
241
- lastId?: string;
242
- sortOn?: string;
243
- }): Promise<AbandonedCartResponse>;
244
- /**
245
- * @param {Object} arg - Arg object.
246
- * @param {string} arg.companyId - Current company id
247
- * @param {string} arg.applicationId - Current Application _id
248
- * @param {number} [arg.pageSize] -
249
- * @param {string} [arg.fromDate] -
250
- * @param {string} [arg.toDate] -
251
- * @param {boolean} [arg.anonymousCart] -
252
- * @param {string} [arg.lastId] -
253
- * @param {string} [arg.sortOn] -
254
- * @summary: Get with abandoned cart list
255
- * @description: Get abandoned cart list with pagination
256
- */
257
- getAbandonedCartPaginator({ companyId, applicationId, pageSize, fromDate, toDate, anonymousCart, lastId, sortOn, }?: {
258
- companyId: string;
259
- applicationId: string;
260
- pageSize?: number;
261
- fromDate?: string;
262
- toDate?: string;
263
- anonymousCart?: boolean;
264
- lastId?: string;
265
- sortOn?: string;
266
- }): Paginator;
267
- /**
268
- * @param {Object} arg - Arg object.
269
- * @param {string} [arg.id] -
270
- * @param {boolean} [arg.i] -
271
- * @param {boolean} [arg.b] -
272
- * @returns {Promise<CartDetailResponse>} - Success response
273
- * @summary: Fetch all items added to the cart
274
- * @description: Use this API to get details of all the items added to a cart.
275
- */
276
- getAbandonedCartDetails({ id, i, b }?: {
277
- id?: string;
278
- i?: boolean;
279
- b?: boolean;
280
- }): Promise<CartDetailResponse>;
281
- /**
282
- * @param {Object} arg - Arg object.
283
- * @param {string} arg.cartId - Current Cart _id
284
- * @param {boolean} [arg.b] -
285
- * @param {AddCartRequest} arg.body
286
- * @returns {Promise<AddCartDetailResponse>} - Success response
287
- * @summary: Add items to abandoned cart
288
- * @description: Use this API to add items to the abandoned cart.
289
- */
290
- addItems({ cartId, body, b }?: {
291
- cartId: string;
292
- b?: boolean;
293
- body: AddCartRequest;
294
- }): Promise<AddCartDetailResponse>;
295
- /**
296
- * @param {Object} arg - Arg object.
297
- * @param {string} arg.cartId - Current Cart _id
298
- * @param {boolean} [arg.b] -
299
- * @param {UpdateCartRequest} arg.body
300
- * @returns {Promise<UpdateCartDetailResponse>} - Success response
301
- * @summary: Update items in the abandoned cart
302
- * @description: <p>Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs</p> <ul> <li><font color="monochrome">operation</font> Operation for current api call. <b>update_item</b> for update items. <b>remove_item</b> for removing items.</li> <li> <font color="monochrome">item_id</font> "/platform/content/v1/products/"</li> <li> <font color="monochrome">item_size</font> "/platform/content/v1/products/:slug/sizes/"</li> <li> <font color="monochrome">quantity</font> item quantity (must be greater than or equal to 1)</li> <li> <font color="monochrome">article_id</font> "/content​/v1​/products​/:identifier​/sizes​/price​/"</li> <li> <font color="monochrome">item_index</font> item position in the cart (must be greater than or equal to 0)</li> </ul>
303
- */
304
- updateCart({ cartId, body, b }?: {
305
- cartId: string;
306
- b?: boolean;
307
- body: UpdateCartRequest;
308
- }): Promise<UpdateCartDetailResponse>;
309
336
  }
310
337
  import Paginator = require("../../common/Paginator");