@gofynd/fdk-client-javascript 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +12 -0
  2. package/index.js +0 -3
  3. package/package.json +1 -1
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +8 -1
  6. package/sdk/application/ApplicationClient.d.ts +37 -6
  7. package/sdk/application/ApplicationClient.js +31 -0
  8. package/sdk/application/ApplicationConfig.d.ts +52 -12
  9. package/sdk/application/ApplicationConfig.js +37 -2
  10. package/sdk/application/ApplicationModels.d.ts +46 -1
  11. package/sdk/application/ApplicationModels.js +18 -0
  12. package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
  13. package/sdk/application/Cart/CartApplicationClient.js +620 -483
  14. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  15. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  16. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  17. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  18. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
  19. package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
  20. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
  21. package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
  22. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  23. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  24. package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
  25. package/sdk/application/Common/CommonApplicationClient.js +50 -33
  26. package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
  27. package/sdk/application/Common/CommonApplicationModel.js +224 -16
  28. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  29. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  30. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
  31. package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
  32. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
  33. package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
  34. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  35. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
  37. package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
  39. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  41. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  42. package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
  43. package/sdk/application/Content/ContentApplicationClient.js +409 -277
  44. package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
  45. package/sdk/application/Content/ContentApplicationModel.js +1202 -109
  46. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  47. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
  49. package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
  51. package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  53. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  54. package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
  55. package/sdk/application/Lead/LeadApplicationClient.js +169 -103
  56. package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
  57. package/sdk/application/Lead/LeadApplicationModel.js +619 -73
  58. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  59. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  60. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
  61. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
  62. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  63. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  64. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  65. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  66. package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
  67. package/sdk/application/Order/OrderApplicationClient.js +297 -217
  68. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  69. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  70. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  71. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  72. package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
  73. package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
  74. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  75. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  76. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  77. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  78. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
  79. package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
  80. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  81. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  82. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  83. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  84. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
  85. package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
  86. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  87. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  88. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  89. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  90. package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
  91. package/sdk/application/Share/ShareApplicationClient.js +165 -97
  92. package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
  93. package/sdk/application/Share/ShareApplicationModel.js +154 -16
  94. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  95. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  96. package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
  97. package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
  98. package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
  99. package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
  100. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  101. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  102. package/sdk/application/User/UserApplicationClient.d.ts +219 -303
  103. package/sdk/application/User/UserApplicationClient.js +819 -522
  104. package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
  105. package/sdk/application/User/UserApplicationModel.js +983 -44
  106. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  107. package/sdk/application/User/UserApplicationValidator.js +265 -31
  108. package/sdk/common/AxiosHelper.js +8 -2
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/partner/PartnerAPIClient.d.ts +15 -1
  113. package/sdk/partner/PartnerAPIClient.js +8 -1
  114. package/sdk/partner/PartnerClient.d.ts +20 -3
  115. package/sdk/partner/PartnerClient.js +17 -0
  116. package/sdk/partner/PartnerConfig.d.ts +40 -14
  117. package/sdk/partner/PartnerConfig.js +31 -6
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
  124. package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
  125. package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
  126. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
  127. package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
  128. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
  129. package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
  131. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  133. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  134. package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
  135. package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  140. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
  141. package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
  142. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
  143. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
  145. package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
  146. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
  147. package/sdk/platform/Common/CommonPlatformClient.js +48 -33
  148. package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
  149. package/sdk/platform/Common/CommonPlatformModel.js +224 -16
  150. package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
  151. package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
  153. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
  156. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
  157. package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
  158. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
  159. package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
  160. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
  183. package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
  200. package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
  201. package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
  202. package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
  203. package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
  204. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
  205. package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
  206. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
  207. package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
  208. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  209. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  210. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  211. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  212. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
  213. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
  214. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  215. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  216. package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
  217. package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
  218. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
  219. package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
  220. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  221. package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
  222. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
  223. package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
  224. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  225. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  226. package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
  227. package/sdk/platform/Order/OrderPlatformClient.js +969 -762
  228. package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
  229. package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
  230. package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
  231. package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
  232. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
  233. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
  234. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
  235. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
  236. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
  237. package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
  238. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
  239. package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
  240. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
  241. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
  242. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
  243. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
  244. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
  245. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
  246. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
  247. package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
  248. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
  249. package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
  250. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  251. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  252. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  253. package/sdk/platform/PlatformAPIClient.js +9 -1
  254. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  255. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  256. package/sdk/platform/PlatformClient.d.ts +29 -12579
  257. package/sdk/platform/PlatformClient.js +26 -15085
  258. package/sdk/platform/PlatformConfig.d.ts +37 -11
  259. package/sdk/platform/PlatformConfig.js +32 -6
  260. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
  261. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
  262. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  263. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  264. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
  265. package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
  266. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
  267. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
  268. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
  269. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
  270. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
  271. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
  272. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  276. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
  277. package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
  278. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  279. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  280. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  281. package/sdk/platform/Share/SharePlatformModel.js +165 -17
  282. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
  283. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
  284. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
  285. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
  286. package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
  287. package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
  288. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
  289. package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
  290. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
  291. package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
  292. package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
  293. package/sdk/platform/User/UserPlatformModel.js +983 -44
  294. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
  295. package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
  296. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
  297. package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
  298. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
  299. package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
  300. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
  301. package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
  302. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
  303. package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
  304. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  305. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  306. package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
  307. package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
  308. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  309. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  310. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  311. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  312. package/sdk/public/PublicClient.d.ts +19 -3
  313. package/sdk/public/PublicClient.js +16 -0
  314. package/sdk/public/PublicConfig.d.ts +27 -6
  315. package/sdk/public/PublicConfig.js +17 -1
  316. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
  317. package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
  318. package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
  319. package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
  320. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  321. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
@@ -1,71 +1,488 @@
1
1
  const Joi = require("joi");
2
2
 
3
- const CatalogModel = require("./CatalogPlatformModel");
4
- class CatalogValidator {
3
+ const CatalogPlatformModel = require("./CatalogPlatformModel");
4
+
5
+ /**
6
+ * @typedef AddCollectionItemsParam
7
+ * @property {string} id - A `id` is a unique identifier of a collection.
8
+ * @property {CatalogPlatformModel.CollectionItemUpdate} body
9
+ */
10
+
11
+ /**
12
+ * @typedef CreateCollectionParam
13
+ * @property {CatalogPlatformModel.CreateCollection} body
14
+ */
15
+
16
+ /**
17
+ * @typedef CreateConfigurationByTypeParam
18
+ * @property {string} type - Type can be brands, categories etc.
19
+ * @property {CatalogPlatformModel.AppConfiguration} body
20
+ */
21
+
22
+ /**
23
+ * @typedef CreateConfigurationProductListingParam
24
+ * @property {CatalogPlatformModel.AppConfiguration} body
25
+ */
26
+
27
+ /**
28
+ * @typedef CreateCustomAutocompleteRuleParam
29
+ * @property {CatalogPlatformModel.CreateAutocompleteKeyword} body
30
+ */
31
+
32
+ /**
33
+ * @typedef CreateCustomKeywordParam
34
+ * @property {CatalogPlatformModel.CreateSearchKeyword} body
35
+ */
36
+
37
+ /**
38
+ * @typedef CreateGroupConfigurationParam
39
+ * @property {string} configType - A `config_type` is a unique identifier for a
40
+ * particular group configuration type.
41
+ * @property {CatalogPlatformModel.AppConfigurationDetail} body
42
+ */
43
+
44
+ /**
45
+ * @typedef CreateListingConfigurationParam
46
+ * @property {string} configType - A `config_type` is a unique identifier for a
47
+ * particular listing configuration type.
48
+ * @property {CatalogPlatformModel.AppConfigurationsSort} body
49
+ */
50
+
51
+ /**
52
+ * @typedef DeleteAutocompleteKeywordParam
53
+ * @property {string} id - A `id` is a unique identifier for a particular
54
+ * detail. Pass the `id` of the keywords which you want to delete.
55
+ */
56
+
57
+ /**
58
+ * @typedef DeleteCollectionParam
59
+ * @property {string} id - A `id` is a unique identifier of a collection.
60
+ */
61
+
62
+ /**
63
+ * @typedef DeleteGroupConfigurationParam
64
+ * @property {string} configType - A `config_type` is a unique identifier for a
65
+ * particular group configuration type.
66
+ * @property {string} groupSlug - A `group_slug` is a unique identifier of a
67
+ * particular configuration.
68
+ */
69
+
70
+ /**
71
+ * @typedef DeleteListingConfigurationParam
72
+ * @property {string} configType - A `config_type` is a unique identifier for a
73
+ * particular listing configuration type.
74
+ * @property {string} configId - A `config_id` is a unique identifier of a
75
+ * particular configuration.
76
+ */
77
+
78
+ /**
79
+ * @typedef DeleteSearchKeywordsParam
80
+ * @property {string} id - A `id` is a unique identifier for a particular
81
+ * detail. Pass the `id` of the keywords which you want to delete.
82
+ */
83
+
84
+ /**
85
+ * @typedef GetAllCollectionsParam
86
+ * @property {string} [q] - Get collection list filtered by q string,
87
+ * @property {string} [scheduleStatus] - Get collection list filtered by scheduled status,
88
+ * @property {string} [type] - Type of the collections
89
+ * @property {string[]} [tags] - Each response will contain next_id param, which
90
+ * should be sent back to make pagination work.
91
+ * @property {boolean} [isActive] - Get collections filtered by active status.
92
+ * @property {number} [pageNo] - The page number to navigate through the given
93
+ * set of results.
94
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
95
+ * Default is 12.
96
+ */
97
+
98
+ /** @typedef GetAllSearchKeywordParam */
99
+
100
+ /**
101
+ * @typedef GetAppInventoryParam
102
+ * @property {number[]} [itemIds] - The Item Id of the product.
103
+ * @property {number[]} [storeIds] - The Store Id of products to fetch inventory.
104
+ * @property {number[]} [brandIds] - The Brand Id of products to fetch inventory.
105
+ * @property {string[]} [sellerIdentifiers] - Unique seller_identifier of the product.
106
+ * @property {string} [timestamp] - Timestamp in UTC format (2020-07-23T10:27:50Z)
107
+ * @property {number} [pageSize] - The number of items to retrieve in each page.
108
+ * @property {string} [pageId] - Page ID to retrieve next set of results.
109
+ */
110
+
111
+ /**
112
+ * @typedef GetAppLocationsParam
113
+ * @property {string} [storeType] - Helps to sort the location list on the basis
114
+ * of location type.
115
+ * @property {number[]} [uid] - Helps to sort the location list on the basis of uid list.
116
+ * @property {string} [q] - Query that is to be searched.
117
+ * @property {string} [stage] - To filter companies on basis of verified or
118
+ * unverified companies.
119
+ * @property {number} [pageNo] - The page number to navigate through the given
120
+ * set of results
121
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
122
+ * Default is 20.
123
+ */
124
+
125
+ /**
126
+ * @typedef GetAppProductParam
127
+ * @property {string} itemId - Product id for a particular product.
128
+ */
129
+
130
+ /**
131
+ * @typedef GetAppProductsParam
132
+ * @property {number[]} [brandIds] - Get multiple products filtered by Brand Ids
133
+ * @property {number[]} [categoryIds] - Get multiple products filtered by Category Ids
134
+ * @property {number[]} [departmentIds] - Get multiple products filtered by Department Ids
135
+ * @property {string[]} [tags] - Get multiple products filtered by tags
136
+ * @property {number[]} [itemIds] - Get multiple products filtered by Item Ids
137
+ * @property {number} [pageNo] - The page number to navigate through the given
138
+ * set of results
139
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
140
+ * Default is 10.
141
+ * @property {string} [q] - Search with Item Code, Name, Slug or Identifier.
142
+ */
143
+
144
+ /**
145
+ * @typedef GetAppicationProductsParam
146
+ * @property {string} [q] - The search query. This can be a partial or complete
147
+ * name of a either a product, brand or category
148
+ * @property {string} [f] - The search filter parameters. All the parameter
149
+ * filtered from filter parameters will be passed in **f** parameter in this
150
+ * format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts**
151
+ * @property {string} [c] - The search filter parameters for collection items.
152
+ * All the parameter filtered from filter parameters will be passed in **c**
153
+ * parameter in this format.
154
+ * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
155
+ * @property {boolean} [filters] - Pass `filters` parameter to fetch the filter
156
+ * details. This flag is used to fetch all filters
157
+ * @property {boolean} [isDependent] - This query parameter is used to get the
158
+ * dependent products in the listing.
159
+ * @property {string} [sortOn] - The order to sort the list of products on. The
160
+ * supported sort parameters are popularity, price, redemption and discount in
161
+ * either ascending or descending order. See the supported values below.
162
+ * @property {string} [pageId] - Each response will contain **page_id** param,
163
+ * which should be sent back to make pagination work.
164
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
165
+ * Default is 12.
166
+ * @property {number} [pageNo] - If page_type is number then pass it to fetch
167
+ * page items. Default is 1.
168
+ * @property {string} [pageType] - For pagination type should be cursor or
169
+ * number. Default is cursor.
170
+ * @property {number[]} [itemIds] - Item Ids of product
171
+ */
172
+
173
+ /**
174
+ * @typedef GetApplicationBrandListingParam
175
+ * @property {number} [pageNo] - The page number to navigate through the given
176
+ * set of results
177
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
178
+ * Default is 12.
179
+ * @property {string} [q] - Search query with brand name.Use this parameter to
180
+ * search brands by brand name.
181
+ */
182
+
183
+ /**
184
+ * @typedef GetApplicationBrandsParam
185
+ * @property {string} [department] - The name of the department. Use this
186
+ * parameter to filter products by a particular department. See below the list
187
+ * of available departments. You can retrieve available departments from the
188
+ * **v1.0/departments/** API
189
+ * @property {number} [pageNo] - The page number to navigate through the given
190
+ * set of results
191
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
192
+ * Default is 12.
193
+ * @property {string} [q] - Search query with brand name.Use this parameter to
194
+ * search brands by brand name.
195
+ * @property {number[]} [brandId] - Helps to sort the brands list on the basis
196
+ * of uid list.
197
+ */
198
+
199
+ /**
200
+ * @typedef GetApplicationCategoryListingParam
201
+ * @property {number} [departmentId] - A `department_id` is a unique identifier
202
+ * for a particular department.
203
+ * @property {number} [pageNo] - The page number to navigate through the given
204
+ * set of results
205
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
206
+ * Default is 12.
207
+ * @property {string} [q] - Search query with brand name.Use this parameter to
208
+ * search brands by brand name.
209
+ */
210
+
211
+ /**
212
+ * @typedef GetApplicationDepartmentListingParam
213
+ * @property {number} [pageNo] - The page number to navigate through the given
214
+ * set of results
215
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
216
+ * Default is 12.
217
+ * @property {string} [q] - Search query with brand name.Use this parameter to
218
+ * search department by name.
219
+ */
220
+
221
+ /** @typedef GetAutocompleteConfigParam */
222
+
223
+ /**
224
+ * @typedef GetAutocompleteKeywordDetailParam
225
+ * @property {string} id - A `id` is a unique identifier for a particular
226
+ * detail. Pass the `id` of the keywords which you want to retrieve.
227
+ */
228
+
229
+ /** @typedef GetCatalogConfigurationParam */
230
+
231
+ /**
232
+ * @typedef GetCatalogInsightsParam
233
+ * @property {string} [brand] - Brand slug
234
+ */
235
+
236
+ /**
237
+ * @typedef GetCategoriesParam
238
+ * @property {string} [department] - The name of the department. Use this
239
+ * parameter to filter products by a particular department. See below the list
240
+ * of available departments. You can retrieve available departments from the
241
+ * **v1.0/departments/** API
242
+ */
243
+
244
+ /**
245
+ * @typedef GetCollectionDetailParam
246
+ * @property {string} slug - A `slug` is a human readable, URL friendly unique
247
+ * identifier of an object. Pass the `slug` of the collection which you want
248
+ * to retrieve.
249
+ */
250
+
251
+ /**
252
+ * @typedef GetCollectionItemsParam
253
+ * @property {string} id - A `id` is a unique identifier of a collection.
254
+ * @property {string} [sortOn] - Each response will contain sort_on param, which
255
+ * should be sent back to make pagination work.
256
+ * @property {string} [pageId] - Each response will contain next_id param, which
257
+ * should be sent back to make pagination work.
258
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
259
+ * Default is 12.
260
+ */
261
+
262
+ /**
263
+ * @typedef GetConfigurationByTypeParam
264
+ * @property {string} type - Type can be brands, categories etc.
265
+ */
266
+
267
+ /**
268
+ * @typedef GetConfigurationMetadataParam
269
+ * @property {string} configType - A `config_type` is an identifier that defines
270
+ * a specific type of configuration.
271
+ * @property {string} [templateSlug] - Get configuration list filtered by
272
+ * `template_slug` string. This is for the details and comparision groups.
273
+ */
274
+
275
+ /** @typedef GetConfigurationsParam */
276
+
277
+ /** @typedef GetDepartmentsParam */
278
+
279
+ /**
280
+ * @typedef GetDiscountedInventoryBySizeIdentifierParam
281
+ * @property {number} itemId - Item code of the product of which size is to be get.
282
+ * @property {string} sizeIdentifier - Size Identifier (Seller Identifier or
283
+ * Primary Identifier) of which inventory is to get.
284
+ * @property {number} [pageNo] - The page number to navigate through the given
285
+ * set of results
286
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
287
+ * Default is 12.
288
+ * @property {string} [q] - Search with help of store code.
289
+ * @property {number[]} [locationIds] - Search by store ids.
290
+ */
291
+
292
+ /**
293
+ * @typedef GetGroupConfigurationsParam
294
+ * @property {string} configType - A `config_type` is an identifier that defines
295
+ * a specific type of configuration.
296
+ * @property {number} [pageNo] - The page number to navigate through the given
297
+ * set of results.
298
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
299
+ * Default is 12.
300
+ * @property {string} [search] - Get configuration list filtered by `search` string.
301
+ * @property {string} [templateSlug] - Get configuration list filtered by
302
+ * `template_slug` string. This is for the details and comparision groups.
303
+ */
304
+
305
+ /**
306
+ * @typedef GetListingConfigurationsParam
307
+ * @property {string} configType - A `config_type` is an identifier that defines
308
+ * a specific type of configuration.
309
+ * @property {number} [pageNo] - The page number to navigate through the given
310
+ * set of results.
311
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
312
+ * Default is 12.
313
+ * @property {string} [search] - Get configuration list filtered by `search` string.
314
+ */
315
+
316
+ /**
317
+ * @typedef GetProductDetailBySlugParam
318
+ * @property {string} slug - The unique identifier of a product. i.e; `slug` of
319
+ * a product. You can retrieve these from the APIs that list products like
320
+ * **v1.0/products/**
321
+ */
322
+
323
+ /** @typedef GetQueryFiltersParam */
324
+
325
+ /**
326
+ * @typedef GetSearchKeywordsParam
327
+ * @property {string} id - A `id` is a unique identifier for a particular
328
+ * detail. Pass the `id` of the keywords which you want to retrieve.
329
+ */
330
+
331
+ /**
332
+ * @typedef UpdateAllowSingleParam
333
+ * @property {CatalogPlatformModel.AllowSingleRequest} body
334
+ */
335
+
336
+ /**
337
+ * @typedef UpdateAppBrandParam
338
+ * @property {string} brandUid - Brand id for which the custom_json is associated.
339
+ * @property {CatalogPlatformModel.ApplicationBrandJson} body
340
+ */
341
+
342
+ /**
343
+ * @typedef UpdateAppCategoryParam
344
+ * @property {string} categoryUid - Category id for which the custom_json is associated.
345
+ * @property {CatalogPlatformModel.ApplicationCategoryJson} body
346
+ */
347
+
348
+ /**
349
+ * @typedef UpdateAppDepartmentParam
350
+ * @property {string} departmentUid - Department id for which the custom_json is
351
+ * associated.
352
+ * @property {CatalogPlatformModel.ApplicationDepartmentJson} body
353
+ */
354
+
355
+ /**
356
+ * @typedef UpdateAppLocationParam
357
+ * @property {string} storeUid - Store id for which the custom_json is associated.
358
+ * @property {CatalogPlatformModel.ApplicationStoreJson} body
359
+ */
360
+
361
+ /**
362
+ * @typedef UpdateAppProductParam
363
+ * @property {string} itemId - Product id for which the custom_meta is associated.
364
+ * @property {CatalogPlatformModel.ApplicationItemMeta} body
365
+ */
366
+
367
+ /**
368
+ * @typedef UpdateAutocompleteKeywordParam
369
+ * @property {string} id - A `id` is a unique identifier for a particular
370
+ * detail. Pass the `id` of the keywords which you want to delete.
371
+ * @property {CatalogPlatformModel.CreateAutocompleteKeyword} body
372
+ */
373
+
374
+ /**
375
+ * @typedef UpdateCollectionParam
376
+ * @property {string} id - A `id` is a unique identifier of a collection.
377
+ * @property {CatalogPlatformModel.UpdateCollection} body
378
+ */
379
+
380
+ /**
381
+ * @typedef UpdateDefaultSortParam
382
+ * @property {CatalogPlatformModel.DefaultKeyRequest} body
383
+ */
384
+
385
+ /**
386
+ * @typedef UpdateGroupConfigurationParam
387
+ * @property {string} configType - A `config_type` is a unique identifier for a
388
+ * particular group configuration type.
389
+ * @property {string} groupSlug - A `group_slug` is a unique identifier of a
390
+ * particular configuration.
391
+ * @property {CatalogPlatformModel.AppConfigurationDetail} body
392
+ */
393
+
394
+ /**
395
+ * @typedef UpdateListingConfigurationParam
396
+ * @property {string} configType - A `config_type` is a unique identifier for a
397
+ * particular listing configuration type.
398
+ * @property {string} configId - A `config_id` is a unique identifier of a
399
+ * particular configuration.
400
+ * @property {CatalogPlatformModel.AppConfigurationsSort} body
401
+ */
402
+
403
+ /**
404
+ * @typedef UpdateSearchKeywordsParam
405
+ * @property {string} id - A `id` is a unique identifier for a particular
406
+ * detail. Pass the `id` of the keywords which you want to delete.
407
+ * @property {CatalogPlatformModel.CreateSearchKeyword} body
408
+ */
409
+
410
+ class CatalogPlatformApplicationValidator {
411
+ /** @returns {AddCollectionItemsParam} */
5
412
  static addCollectionItems() {
6
413
  return Joi.object({
7
414
  id: Joi.string().allow("").required(),
8
- body: CatalogModel.CollectionItemUpdate().required(),
415
+ body: CatalogPlatformModel.CollectionItemUpdate().required(),
9
416
  }).required();
10
417
  }
11
418
 
419
+ /** @returns {CreateCollectionParam} */
12
420
  static createCollection() {
13
421
  return Joi.object({
14
- body: CatalogModel.CreateCollection().required(),
422
+ body: CatalogPlatformModel.CreateCollection().required(),
15
423
  }).required();
16
424
  }
17
425
 
426
+ /** @returns {CreateConfigurationByTypeParam} */
18
427
  static createConfigurationByType() {
19
428
  return Joi.object({
20
429
  type: Joi.string().allow("").required(),
21
- body: CatalogModel.AppConfiguration().required(),
430
+ body: CatalogPlatformModel.AppConfiguration().required(),
22
431
  }).required();
23
432
  }
24
433
 
434
+ /** @returns {CreateConfigurationProductListingParam} */
25
435
  static createConfigurationProductListing() {
26
436
  return Joi.object({
27
- body: CatalogModel.AppConfiguration().required(),
437
+ body: CatalogPlatformModel.AppConfiguration().required(),
28
438
  }).required();
29
439
  }
30
440
 
441
+ /** @returns {CreateCustomAutocompleteRuleParam} */
31
442
  static createCustomAutocompleteRule() {
32
443
  return Joi.object({
33
- body: CatalogModel.CreateAutocompleteKeyword().required(),
444
+ body: CatalogPlatformModel.CreateAutocompleteKeyword().required(),
34
445
  }).required();
35
446
  }
36
447
 
448
+ /** @returns {CreateCustomKeywordParam} */
37
449
  static createCustomKeyword() {
38
450
  return Joi.object({
39
- body: CatalogModel.CreateSearchKeyword().required(),
451
+ body: CatalogPlatformModel.CreateSearchKeyword().required(),
40
452
  }).required();
41
453
  }
42
454
 
455
+ /** @returns {CreateGroupConfigurationParam} */
43
456
  static createGroupConfiguration() {
44
457
  return Joi.object({
45
458
  configType: Joi.string().allow("").required(),
46
- body: CatalogModel.AppConfigurationDetail().required(),
459
+ body: CatalogPlatformModel.AppConfigurationDetail().required(),
47
460
  }).required();
48
461
  }
49
462
 
463
+ /** @returns {CreateListingConfigurationParam} */
50
464
  static createListingConfiguration() {
51
465
  return Joi.object({
52
466
  configType: Joi.string().allow("").required(),
53
- body: CatalogModel.AppConfigurationsSort().required(),
467
+ body: CatalogPlatformModel.AppConfigurationsSort().required(),
54
468
  }).required();
55
469
  }
56
470
 
471
+ /** @returns {DeleteAutocompleteKeywordParam} */
57
472
  static deleteAutocompleteKeyword() {
58
473
  return Joi.object({
59
474
  id: Joi.string().allow("").required(),
60
475
  }).required();
61
476
  }
62
477
 
478
+ /** @returns {DeleteCollectionParam} */
63
479
  static deleteCollection() {
64
480
  return Joi.object({
65
481
  id: Joi.string().allow("").required(),
66
482
  }).required();
67
483
  }
68
484
 
485
+ /** @returns {DeleteGroupConfigurationParam} */
69
486
  static deleteGroupConfiguration() {
70
487
  return Joi.object({
71
488
  configType: Joi.string().allow("").required(),
@@ -73,6 +490,7 @@ class CatalogValidator {
73
490
  }).required();
74
491
  }
75
492
 
493
+ /** @returns {DeleteListingConfigurationParam} */
76
494
  static deleteListingConfiguration() {
77
495
  return Joi.object({
78
496
  configType: Joi.string().allow("").required(),
@@ -80,12 +498,14 @@ class CatalogValidator {
80
498
  }).required();
81
499
  }
82
500
 
501
+ /** @returns {DeleteSearchKeywordsParam} */
83
502
  static deleteSearchKeywords() {
84
503
  return Joi.object({
85
504
  id: Joi.string().allow("").required(),
86
505
  }).required();
87
506
  }
88
507
 
508
+ /** @returns {GetAllCollectionsParam} */
89
509
  static getAllCollections() {
90
510
  return Joi.object({
91
511
  q: Joi.string().allow(""),
@@ -98,10 +518,12 @@ class CatalogValidator {
98
518
  }).required();
99
519
  }
100
520
 
521
+ /** @returns {GetAllSearchKeywordParam} */
101
522
  static getAllSearchKeyword() {
102
523
  return Joi.object({}).required();
103
524
  }
104
525
 
526
+ /** @returns {GetAppInventoryParam} */
105
527
  static getAppInventory() {
106
528
  return Joi.object({
107
529
  itemIds: Joi.array().items(Joi.number()),
@@ -114,6 +536,7 @@ class CatalogValidator {
114
536
  }).required();
115
537
  }
116
538
 
539
+ /** @returns {GetAppLocationsParam} */
117
540
  static getAppLocations() {
118
541
  return Joi.object({
119
542
  storeType: Joi.string().allow(""),
@@ -125,12 +548,14 @@ class CatalogValidator {
125
548
  }).required();
126
549
  }
127
550
 
551
+ /** @returns {GetAppProductParam} */
128
552
  static getAppProduct() {
129
553
  return Joi.object({
130
554
  itemId: Joi.string().allow("").required(),
131
555
  }).required();
132
556
  }
133
557
 
558
+ /** @returns {GetAppProductsParam} */
134
559
  static getAppProducts() {
135
560
  return Joi.object({
136
561
  brandIds: Joi.array().items(Joi.number()),
@@ -144,6 +569,7 @@ class CatalogValidator {
144
569
  }).required();
145
570
  }
146
571
 
572
+ /** @returns {GetAppicationProductsParam} */
147
573
  static getAppicationProducts() {
148
574
  return Joi.object({
149
575
  q: Joi.string().allow(""),
@@ -160,6 +586,7 @@ class CatalogValidator {
160
586
  }).required();
161
587
  }
162
588
 
589
+ /** @returns {GetApplicationBrandListingParam} */
163
590
  static getApplicationBrandListing() {
164
591
  return Joi.object({
165
592
  pageNo: Joi.number(),
@@ -168,6 +595,7 @@ class CatalogValidator {
168
595
  }).required();
169
596
  }
170
597
 
598
+ /** @returns {GetApplicationBrandsParam} */
171
599
  static getApplicationBrands() {
172
600
  return Joi.object({
173
601
  department: Joi.string().allow(""),
@@ -178,6 +606,7 @@ class CatalogValidator {
178
606
  }).required();
179
607
  }
180
608
 
609
+ /** @returns {GetApplicationCategoryListingParam} */
181
610
  static getApplicationCategoryListing() {
182
611
  return Joi.object({
183
612
  departmentId: Joi.number(),
@@ -187,6 +616,7 @@ class CatalogValidator {
187
616
  }).required();
188
617
  }
189
618
 
619
+ /** @returns {GetApplicationDepartmentListingParam} */
190
620
  static getApplicationDepartmentListing() {
191
621
  return Joi.object({
192
622
  pageNo: Joi.number(),
@@ -195,38 +625,45 @@ class CatalogValidator {
195
625
  }).required();
196
626
  }
197
627
 
628
+ /** @returns {GetAutocompleteConfigParam} */
198
629
  static getAutocompleteConfig() {
199
630
  return Joi.object({}).required();
200
631
  }
201
632
 
633
+ /** @returns {GetAutocompleteKeywordDetailParam} */
202
634
  static getAutocompleteKeywordDetail() {
203
635
  return Joi.object({
204
636
  id: Joi.string().allow("").required(),
205
637
  }).required();
206
638
  }
207
639
 
640
+ /** @returns {GetCatalogConfigurationParam} */
208
641
  static getCatalogConfiguration() {
209
642
  return Joi.object({}).required();
210
643
  }
211
644
 
645
+ /** @returns {GetCatalogInsightsParam} */
212
646
  static getCatalogInsights() {
213
647
  return Joi.object({
214
648
  brand: Joi.string().allow(""),
215
649
  }).required();
216
650
  }
217
651
 
652
+ /** @returns {GetCategoriesParam} */
218
653
  static getCategories() {
219
654
  return Joi.object({
220
655
  department: Joi.string().allow(""),
221
656
  }).required();
222
657
  }
223
658
 
659
+ /** @returns {GetCollectionDetailParam} */
224
660
  static getCollectionDetail() {
225
661
  return Joi.object({
226
662
  slug: Joi.string().allow("").required(),
227
663
  }).required();
228
664
  }
229
665
 
666
+ /** @returns {GetCollectionItemsParam} */
230
667
  static getCollectionItems() {
231
668
  return Joi.object({
232
669
  id: Joi.string().allow("").required(),
@@ -236,12 +673,14 @@ class CatalogValidator {
236
673
  }).required();
237
674
  }
238
675
 
676
+ /** @returns {GetConfigurationByTypeParam} */
239
677
  static getConfigurationByType() {
240
678
  return Joi.object({
241
679
  type: Joi.string().allow("").required(),
242
680
  }).required();
243
681
  }
244
682
 
683
+ /** @returns {GetConfigurationMetadataParam} */
245
684
  static getConfigurationMetadata() {
246
685
  return Joi.object({
247
686
  configType: Joi.string().allow("").required(),
@@ -249,14 +688,17 @@ class CatalogValidator {
249
688
  }).required();
250
689
  }
251
690
 
691
+ /** @returns {GetConfigurationsParam} */
252
692
  static getConfigurations() {
253
693
  return Joi.object({}).required();
254
694
  }
255
695
 
696
+ /** @returns {GetDepartmentsParam} */
256
697
  static getDepartments() {
257
698
  return Joi.object({}).required();
258
699
  }
259
700
 
701
+ /** @returns {GetDiscountedInventoryBySizeIdentifierParam} */
260
702
  static getDiscountedInventoryBySizeIdentifier() {
261
703
  return Joi.object({
262
704
  itemId: Joi.number().required(),
@@ -268,6 +710,7 @@ class CatalogValidator {
268
710
  }).required();
269
711
  }
270
712
 
713
+ /** @returns {GetGroupConfigurationsParam} */
271
714
  static getGroupConfigurations() {
272
715
  return Joi.object({
273
716
  configType: Joi.string().allow("").required(),
@@ -278,6 +721,7 @@ class CatalogValidator {
278
721
  }).required();
279
722
  }
280
723
 
724
+ /** @returns {GetListingConfigurationsParam} */
281
725
  static getListingConfigurations() {
282
726
  return Joi.object({
283
727
  configType: Joi.string().allow("").required(),
@@ -287,105 +731,120 @@ class CatalogValidator {
287
731
  }).required();
288
732
  }
289
733
 
734
+ /** @returns {GetProductDetailBySlugParam} */
290
735
  static getProductDetailBySlug() {
291
736
  return Joi.object({
292
737
  slug: Joi.string().allow("").required(),
293
738
  }).required();
294
739
  }
295
740
 
741
+ /** @returns {GetQueryFiltersParam} */
296
742
  static getQueryFilters() {
297
743
  return Joi.object({}).required();
298
744
  }
299
745
 
746
+ /** @returns {GetSearchKeywordsParam} */
300
747
  static getSearchKeywords() {
301
748
  return Joi.object({
302
749
  id: Joi.string().allow("").required(),
303
750
  }).required();
304
751
  }
305
752
 
753
+ /** @returns {UpdateAllowSingleParam} */
306
754
  static updateAllowSingle() {
307
755
  return Joi.object({
308
- body: CatalogModel.AllowSingleRequest().required(),
756
+ body: CatalogPlatformModel.AllowSingleRequest().required(),
309
757
  }).required();
310
758
  }
311
759
 
760
+ /** @returns {UpdateAppBrandParam} */
312
761
  static updateAppBrand() {
313
762
  return Joi.object({
314
763
  brandUid: Joi.string().allow("").required(),
315
- body: CatalogModel.ApplicationBrandJson().required(),
764
+ body: CatalogPlatformModel.ApplicationBrandJson().required(),
316
765
  }).required();
317
766
  }
318
767
 
768
+ /** @returns {UpdateAppCategoryParam} */
319
769
  static updateAppCategory() {
320
770
  return Joi.object({
321
771
  categoryUid: Joi.string().allow("").required(),
322
- body: CatalogModel.ApplicationCategoryJson().required(),
772
+ body: CatalogPlatformModel.ApplicationCategoryJson().required(),
323
773
  }).required();
324
774
  }
325
775
 
776
+ /** @returns {UpdateAppDepartmentParam} */
326
777
  static updateAppDepartment() {
327
778
  return Joi.object({
328
779
  departmentUid: Joi.string().allow("").required(),
329
- body: CatalogModel.ApplicationDepartmentJson().required(),
780
+ body: CatalogPlatformModel.ApplicationDepartmentJson().required(),
330
781
  }).required();
331
782
  }
332
783
 
784
+ /** @returns {UpdateAppLocationParam} */
333
785
  static updateAppLocation() {
334
786
  return Joi.object({
335
787
  storeUid: Joi.string().allow("").required(),
336
- body: CatalogModel.ApplicationStoreJson().required(),
788
+ body: CatalogPlatformModel.ApplicationStoreJson().required(),
337
789
  }).required();
338
790
  }
339
791
 
792
+ /** @returns {UpdateAppProductParam} */
340
793
  static updateAppProduct() {
341
794
  return Joi.object({
342
795
  itemId: Joi.string().allow("").required(),
343
- body: CatalogModel.ApplicationItemMeta().required(),
796
+ body: CatalogPlatformModel.ApplicationItemMeta().required(),
344
797
  }).required();
345
798
  }
346
799
 
800
+ /** @returns {UpdateAutocompleteKeywordParam} */
347
801
  static updateAutocompleteKeyword() {
348
802
  return Joi.object({
349
803
  id: Joi.string().allow("").required(),
350
- body: CatalogModel.CreateAutocompleteKeyword().required(),
804
+ body: CatalogPlatformModel.CreateAutocompleteKeyword().required(),
351
805
  }).required();
352
806
  }
353
807
 
808
+ /** @returns {UpdateCollectionParam} */
354
809
  static updateCollection() {
355
810
  return Joi.object({
356
811
  id: Joi.string().allow("").required(),
357
- body: CatalogModel.UpdateCollection().required(),
812
+ body: CatalogPlatformModel.UpdateCollection().required(),
358
813
  }).required();
359
814
  }
360
815
 
816
+ /** @returns {UpdateDefaultSortParam} */
361
817
  static updateDefaultSort() {
362
818
  return Joi.object({
363
- body: CatalogModel.DefaultKeyRequest().required(),
819
+ body: CatalogPlatformModel.DefaultKeyRequest().required(),
364
820
  }).required();
365
821
  }
366
822
 
823
+ /** @returns {UpdateGroupConfigurationParam} */
367
824
  static updateGroupConfiguration() {
368
825
  return Joi.object({
369
826
  configType: Joi.string().allow("").required(),
370
827
  groupSlug: Joi.string().allow("").required(),
371
- body: CatalogModel.AppConfigurationDetail().required(),
828
+ body: CatalogPlatformModel.AppConfigurationDetail().required(),
372
829
  }).required();
373
830
  }
374
831
 
832
+ /** @returns {UpdateListingConfigurationParam} */
375
833
  static updateListingConfiguration() {
376
834
  return Joi.object({
377
835
  configType: Joi.string().allow("").required(),
378
836
  configId: Joi.string().allow("").required(),
379
- body: CatalogModel.AppConfigurationsSort().required(),
837
+ body: CatalogPlatformModel.AppConfigurationsSort().required(),
380
838
  }).required();
381
839
  }
382
840
 
841
+ /** @returns {UpdateSearchKeywordsParam} */
383
842
  static updateSearchKeywords() {
384
843
  return Joi.object({
385
844
  id: Joi.string().allow("").required(),
386
- body: CatalogModel.CreateSearchKeyword().required(),
845
+ body: CatalogPlatformModel.CreateSearchKeyword().required(),
387
846
  }).required();
388
847
  }
389
848
  }
390
849
 
391
- module.exports = CatalogValidator;
850
+ module.exports = CatalogPlatformApplicationValidator;