@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.0.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 (310) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +93 -113
  6. package/sdk/application/Cart/CartApplicationClient.js +157 -530
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -19
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +65 -55
  16. package/sdk/application/Content/ContentApplicationClient.js +211 -341
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
  22. package/sdk/application/Lead/LeadApplicationClient.js +24 -55
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +32 -87
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
  26. package/sdk/application/Order/OrderApplicationClient.js +89 -293
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
  28. package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
  29. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
  31. package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
  32. package/sdk/application/Share/ShareApplicationClient.js +35 -89
  33. package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
  34. package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
  35. package/sdk/application/User/UserApplicationClient.d.ts +23 -13
  36. package/sdk/application/User/UserApplicationClient.js +49 -407
  37. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  38. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
  39. package/sdk/common/Utility.d.ts +1 -1
  40. package/sdk/common/Utility.js +10 -7
  41. package/sdk/common/Validator.d.ts +1 -0
  42. package/sdk/common/Validator.js +20 -0
  43. package/sdk/common/utils.d.ts +0 -1
  44. package/sdk/common/utils.js +0 -14
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +18 -62
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  52. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
  54. package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
  55. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
  57. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
  59. package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
  61. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
  62. package/sdk/partner/PartnerClient.d.ts +0 -6
  63. package/sdk/partner/PartnerClient.js +0 -9
  64. package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
  65. package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
  66. package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
  67. package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
  68. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
  69. package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
  70. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  71. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  72. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
  73. package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
  74. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  75. package/sdk/partner/index.d.ts +0 -3
  76. package/sdk/partner/index.js +0 -6
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -406
  88. package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
  90. package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
  98. package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
  110. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
  112. package/sdk/platform/Common/CommonPlatformModel.js +11 -14
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +236 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
  117. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
  118. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
  119. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +314 -422
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
  121. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
  122. package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -68
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
  132. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +565 -1282
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -246
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
  143. package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
  144. package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
  145. package/sdk/platform/Content/ContentPlatformModel.d.ts +2374 -877
  146. package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
  147. package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
  148. package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
  149. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
  150. package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
  151. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
  152. package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
  153. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  154. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  155. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
  156. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
  157. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
  158. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
  159. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  160. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  161. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
  162. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
  163. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  164. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  165. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  166. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  167. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  168. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  169. package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
  170. package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
  171. package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
  172. package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
  173. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
  174. package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
  175. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
  176. package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
  177. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
  178. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
  179. package/sdk/platform/Order/OrderPlatformClient.d.ts +421 -418
  180. package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
  182. package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
  185. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  186. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  187. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
  188. package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
  189. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
  190. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +934 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -305
  193. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
  194. package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
  195. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1327 -3529
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
  197. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
  198. package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
  199. package/sdk/platform/PlatformClient.d.ts +0 -2
  200. package/sdk/platform/PlatformClient.js +0 -4
  201. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  202. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  203. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  204. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  205. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
  206. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -513
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
  217. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
  218. package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
  219. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
  220. package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
  221. package/sdk/platform/Share/SharePlatformModel.d.ts +53 -4
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -3
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
  227. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
  228. package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
  229. package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
  230. package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
  231. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
  232. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
  233. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
  234. package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
  235. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
  236. package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
  237. package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
  238. package/sdk/platform/User/UserPlatformModel.js +253 -210
  239. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  240. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  241. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
  242. package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
  243. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  244. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  245. package/sdk/platform/index.d.ts +0 -1
  246. package/sdk/platform/index.js +0 -2
  247. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  248. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  249. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  250. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  251. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  252. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  253. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
  254. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
  255. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
  256. package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
  257. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
  258. package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
  259. package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
  260. package/sdk/public/Content/ContentPublicClient.js +254 -280
  261. package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
  262. package/sdk/public/Content/ContentPublicModel.js +98 -44
  263. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
  264. package/sdk/public/Content/ContentPublicValidator.js +26 -19
  265. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  266. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  267. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  268. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  269. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  270. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  271. package/sdk/public/PublicClient.d.ts +2 -2
  272. package/sdk/public/PublicClient.js +2 -2
  273. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  274. package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
  275. package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
  276. package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
  277. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  278. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  279. package/sdk/public/index.d.ts +1 -1
  280. package/sdk/public/index.js +1 -1
  281. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
  282. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
  283. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
  284. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
  285. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
  286. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
  287. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
  288. package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
  289. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
  290. package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
  291. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
  292. package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
  293. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
  294. package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
  295. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
  296. package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
  297. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
  298. package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
  299. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  300. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  301. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
  302. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
  303. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  304. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  305. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  306. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  307. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  308. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  309. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  310. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -8,39 +8,28 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
8
8
  * @property {CatalogPlatformModel.CollectionItemUpdateSchema} body
9
9
  */
10
10
 
11
- /**
12
- * @typedef AddProductsInPriceFactoryByZoneIdParam
13
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
14
- * @property {CatalogPlatformModel.CreatePriceFactoryProductRequest} body
15
- */
16
-
17
- /**
18
- * @typedef ClearCollectionItemsPriorityParam
19
- * @property {string} id - A `id` is a unique identifier of a collection.
20
- */
21
-
22
11
  /**
23
12
  * @typedef CreateAppCategoryReturnConfigurationParam
24
13
  * @property {CatalogPlatformModel.BaseAppCategoryReturnConfig} body
25
14
  */
26
15
 
27
- /**
28
- * @typedef CreateAppPriceFactoryParam
29
- * @property {CatalogPlatformModel.CreateAppPriceFactoryRequestSchema} body
30
- */
31
-
32
16
  /**
33
17
  * @typedef CreateAppReturnConfigurationParam
34
18
  * @property {CatalogPlatformModel.CreateUpdateAppReturnConfig} body
35
19
  */
36
20
 
37
- /**
38
- * @typedef CreateAutocompleteSettingsParam
39
- * @property {CatalogPlatformModel.AutocompleteRequestSchema} body
40
- */
41
-
42
21
  /**
43
22
  * @typedef CreateCollectionParam
23
+ * @property {string} [q] - Get collection list filtered by q string,
24
+ * @property {string} [scheduleStatus] - Get collection list filtered by scheduled status,
25
+ * @property {string} [type] - Type of the collections
26
+ * @property {string[]} [tags] - Each response will contain next_id param, which
27
+ * should be sent back to make pagination work.
28
+ * @property {boolean} [isActive] - Get collections filtered by active status.
29
+ * @property {number} [pageNo] - The page number to navigate through the given
30
+ * set of results.
31
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
32
+ * Default is 12.
44
33
  * @property {CatalogPlatformModel.CreateCollection} body
45
34
  */
46
35
 
@@ -69,68 +58,19 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
69
58
  * @typedef CreateGroupConfigurationParam
70
59
  * @property {string} configType - A `config_type` is a unique identifier for a
71
60
  * particular group configuration type.
72
- * @property {CatalogPlatformModel.AppConfigurationCreateDetail} body
61
+ * @property {CatalogPlatformModel.AppConfigurationDetail} body
73
62
  */
74
63
 
75
64
  /**
76
65
  * @typedef CreateListingConfigurationParam
77
66
  * @property {string} configType - A `config_type` is a unique identifier for a
78
67
  * particular listing configuration type.
79
- * @property {CatalogPlatformModel.AppConfigurationsFilter} body
80
- */
81
-
82
- /**
83
- * @typedef CreateMerchandisingRuleBoostActionParam
84
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
85
- * unique identifier for a particular merchandising rule.
86
- * @property {CatalogPlatformModel.PostMerchandisingRuleBoostAction} body
87
- */
88
-
89
- /**
90
- * @typedef CreateMerchandisingRuleBuryActionParam
91
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
92
- * unique identifier for a particular merchandising rule.
93
- * @property {CatalogPlatformModel.PostMerchandisingRuleBoostAction} body
94
- */
95
-
96
- /**
97
- * @typedef CreateMerchandisingRuleHideActionParam
98
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
99
- * unique identifier for a particular merchandising rule.
100
- * @property {CatalogPlatformModel.HideRequest} body
101
- */
102
-
103
- /**
104
- * @typedef CreateMerchandisingRulePinActionParam
105
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
106
- * unique identifier for a particular merchandising rule.
107
- * @property {CatalogPlatformModel.PinRequest} body
108
- */
109
-
110
- /**
111
- * @typedef CreateMerchandisingRuleQueryParam
112
- * @property {CatalogPlatformModel.MerchandisingRuleQueryPost} body
113
- */
114
-
115
- /**
116
- * @typedef CreateProductPriceFactoryBulkJobParam
117
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
118
- * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body
68
+ * @property {CatalogPlatformModel.AppConfigurationsSort} body
119
69
  */
120
70
 
121
71
  /**
122
72
  * @typedef CreateSearchConfigurationParam
123
- * @property {CatalogPlatformModel.CreateSearchConfigurationRequest} body
124
- */
125
-
126
- /**
127
- * @typedef CreateSearchRerankParam
128
- * @property {CatalogPlatformModel.CreateSearchRerankRequest} body
129
- */
130
-
131
- /**
132
- * @typedef CreateSynonymsParam
133
- * @property {CatalogPlatformModel.SynonymCreateRequestSchema} body
73
+ * @property {CatalogPlatformModel.CreateSearchConfigurationRequestSchema} body
134
74
  */
135
75
 
136
76
  /**
@@ -165,18 +105,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
165
105
  * particular configuration.
166
106
  */
167
107
 
168
- /**
169
- * @typedef DeleteMerchandisingRuleParam
170
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
171
- * unique identifier for a particular merchandising rule.
172
- */
173
-
174
- /**
175
- * @typedef DeleteMerchandisingRulesPreviewParam
176
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
177
- * unique identifier for a particular merchandising rule.
178
- */
179
-
180
108
  /** @typedef DeleteSearchConfigurationParam */
181
109
 
182
110
  /**
@@ -185,38 +113,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
185
113
  * detail. Pass the `id` of the keywords which you want to delete.
186
114
  */
187
115
 
188
- /**
189
- * @typedef DeleteSearchRerankConfigurationParam
190
- * @property {string} id - An `id` is the identifier for a particular search
191
- * rerank configuration. channel.
192
- */
193
-
194
- /**
195
- * @typedef DeleteSynonymParam
196
- * @property {string} id - A `id` is a unique identifier of a synonym that is to
197
- * be deleted.
198
- */
199
-
200
- /**
201
- * @typedef EditAppPriceFactoryParam
202
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
203
- * @property {CatalogPlatformModel.EditAppPriceFactoryRequestSchema} body
204
- */
205
-
206
- /**
207
- * @typedef ExportProductsInPriceFactoryParam
208
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
209
- * @property {CatalogPlatformModel.CreateAppPriceFactoryProductExportJobRequest} body
210
- */
211
-
212
- /** @typedef ExportSynonymsParam */
213
-
214
116
  /**
215
117
  * @typedef GetAllCollectionsParam
216
118
  * @property {string} [q] - Get collection list filtered by q string,
217
119
  * @property {string} [scheduleStatus] - Get collection list filtered by scheduled status,
218
120
  * @property {string} [type] - Type of the collections
219
- * @property {string[]} [tag] - Each response will contain next_id param, which
121
+ * @property {string[]} [tags] - Each response will contain next_id param, which
220
122
  * should be sent back to make pagination work.
221
123
  * @property {boolean} [isActive] - Get collections filtered by active status.
222
124
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -225,17 +127,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
225
127
  * Default is 12.
226
128
  */
227
129
 
228
- /**
229
- * @typedef GetAllSearchKeywordParam
230
- * @property {number} [pageNo] - The page number to navigate through the given
231
- * set of results
232
- * @property {number} [pageSize] - Number of items to retrieve in each page.
233
- * Default is 12.
234
- * @property {string} [q] - Search query with words name.Use this parameter to
235
- * search keywords by words.
236
- * @property {boolean} [isActive] - Can query for keywords based on whether they
237
- * are active or inactive.
238
- */
130
+ /** @typedef GetAllSearchKeywordParam */
239
131
 
240
132
  /**
241
133
  * @typedef GetAppCategoryReturnConfigParam
@@ -283,54 +175,11 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
283
175
  * Default is 20.
284
176
  * @property {string[]} [tags] - Get locations filtered by tags.
285
177
  * @property {string[]} [storeTypes] - Get locations filtered by store types.
286
- * @property {number[]} [companyUids] - Filter stores by company IDs available
287
- * in the application.
288
- */
289
-
290
- /**
291
- * @typedef GetAppPriceByIdParam
292
- * @property {number} itemId - Unique identifier of the product
293
- * @property {number[]} [storeIds] - An array of unique identifiers representing
294
- * the store locations from which the product pricing should be fetched. If
295
- * not provided, pricing for all applicable store locations will be returned.
296
- * @property {string[]} [factoryTypeIds] - An array of unique factory type
297
- * identifiers that specify that pricing from which factory type should be
298
- * retrieved. This parameter allows filtering the price based on factory types.
299
- * @property {number} [sellerId] - The company uid for which we want to fetch
300
- * discounted pricing for a product
301
- */
302
-
303
- /**
304
- * @typedef GetAppPriceFactoriesParam
305
- * @property {boolean} [isActive] - Gets price factory filtered by active status.
306
- * @property {string} [factoryTypeId] - Gets price factory filtered by factory_type_id.
307
- * @property {string} [code] - Gets price factory filtered by pricezone code.
308
- * @property {number} [pageNo] - The page number to navigate through the given
309
- * set of results.
310
- * @property {number} [pageSize] - Number of items to retrieve in each page.
311
- * Default is 12.
312
- */
313
-
314
- /**
315
- * @typedef GetAppPriceFactoryParam
316
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
317
178
  */
318
179
 
319
180
  /**
320
181
  * @typedef GetAppProductParam
321
- * @property {number} itemId - Product id for a particular product.
322
- */
323
-
324
- /**
325
- * @typedef GetAppProductPricesParam
326
- * @property {number[]} [itemIds] - List of item ids to get product prices
327
- * filtered by items.
328
- * @property {string[]} [factoryTypeIds] - List of factory type ids to get
329
- * product prices filtered by factory type id.
330
- * @property {number} [pageNo] - The page number to navigate through the given
331
- * set of results
332
- * @property {number} [pageSize] - Number of items to retrieve in each page.
333
- * Default is 10.
182
+ * @property {string} itemId - Product id for a particular product.
334
183
  */
335
184
 
336
185
  /**
@@ -349,42 +198,13 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
349
198
 
350
199
  /** @typedef GetAppReturnConfigurationParam */
351
200
 
352
- /**
353
- * @typedef GetAppicationProductsParam
354
- * @property {string} [q] - The search query. This can be a partial or complete
355
- * name of a either a product, brand or category
356
- * @property {string} [f] - The search filter parameters. All the parameter
357
- * filtered from filter parameters will be passed in **f** parameter in this
358
- * format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts**
359
- * @property {string} [c] - The search filter parameters for collection items.
360
- * All the parameter filtered from filter parameters will be passed in **c**
361
- * parameter in this format.
362
- * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
363
- * @property {boolean} [filters] - Pass `filters` parameter to fetch the filter
364
- * details. This flag is used to fetch all filters
365
- * @property {boolean} [isDependent] - This query parameter is used to get the
366
- * dependent products in the listing.
367
- * @property {string} [sortOn] - The order to sort the list of products on. The
368
- * supported sort parameters are popularity, price, redemption and discount in
369
- * either ascending or descending order. See the supported values below.
370
- * @property {string} [pageId] - Each response will contain **page_id** param,
371
- * which should be sent back to make pagination work.
372
- * @property {number} [pageSize] - Number of items to retrieve in each page.
373
- * Default is 12.
374
- * @property {number} [pageNo] - If page_type is number then pass it to fetch
375
- * page items. Default is 1.
376
- * @property {string} [pageType] - For pagination type should be cursor or
377
- * number. Default is cursor.
378
- * @property {string[]} [itemIds] - Item Ids of product
379
- */
380
-
381
201
  /**
382
202
  * @typedef GetApplicationBrandListingParam
383
203
  * @property {number} [pageNo] - The page number to navigate through the given
384
204
  * set of results
385
205
  * @property {number} [pageSize] - Number of items to retrieve in each page.
386
206
  * Default is 12.
387
- * @property {string} [q] - Search query with brand name.Use this parameter to
207
+ * @property {string} [q] - Search query with brand name. Use this parameter to
388
208
  * search brands by brand name.
389
209
  */
390
210
 
@@ -393,12 +213,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
393
213
  * @property {string} [department] - The name of the department. Use this
394
214
  * parameter to filter products by a particular department. See below the list
395
215
  * of available departments. You can retrieve available departments from the
396
- * **v1.0/departments/** API
216
+ * "v1.0/departments/" API
397
217
  * @property {number} [pageNo] - The page number to navigate through the given
398
218
  * set of results
399
219
  * @property {number} [pageSize] - Number of items to retrieve in each page.
400
220
  * Default is 12.
401
- * @property {string} [q] - Search query with brand name.Use this parameter to
221
+ * @property {string} [q] - Search query with brand name. Use this parameter to
402
222
  * search brands by brand name.
403
223
  * @property {number[]} [brandId] - Helps to sort the brands list on the basis
404
224
  * of uid list.
@@ -412,8 +232,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
412
232
  * set of results
413
233
  * @property {number} [pageSize] - Number of items to retrieve in each page.
414
234
  * Default is 12.
415
- * @property {string} [q] - Search query with brand name.Use this parameter to
416
- * search brands by brand name.
235
+ * @property {string} [q] - A search query string. Use this parameter to filter
236
+ * results based on a keyword or specific value.
417
237
  */
418
238
 
419
239
  /**
@@ -422,70 +242,78 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
422
242
  * set of results
423
243
  * @property {number} [pageSize] - Number of items to retrieve in each page.
424
244
  * Default is 12.
425
- * @property {string} [q] - Search query with brand name.Use this parameter to
426
- * search department by name.
245
+ * @property {string} [q] - A search query string. Use this parameter to filter
246
+ * results based on a keyword or specific value.
427
247
  */
428
248
 
429
249
  /**
430
250
  * @typedef GetApplicationFilterKeysParam
431
251
  * @property {string} [c] - The search filter parameters for collection items.
432
- * All the parameter filtered from filter parameters will be passed in **c**
433
- * parameter in this format.
434
- * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
252
+ * All the parameter filtered from filter parameters will be passed in "c"
253
+ * parameter in this format. "?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts"
435
254
  */
436
255
 
437
256
  /**
438
257
  * @typedef GetApplicationFilterValuesParam
439
- * @property {string} filterKey - A `filter_key` is a filter key for a for which
440
- * all the available filter values will returned. channel.
258
+ * @property {string} filterKey - A `filter_key` is a filter key which returns
259
+ * all the available filter values.
441
260
  * @property {string} [c] - The search filter parameters for collection items.
442
- * All the parameter filtered from filter parameters will be passed in **c**
443
- * parameter in this format.
444
- * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
261
+ * All the parameter filtered from filter parameters will be passed in "c"
262
+ * parameter in this format. "?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts"
445
263
  * @property {string} [collectionId] - A `collection_id` is a unique identifier
446
- * for a particular collection. channel.
264
+ * for a particular collection.
447
265
  * @property {number} [pageNo] - The page number to navigate through the given
448
266
  * set of results
449
267
  * @property {number} [pageSize] - Number of items to retrieve in each page.
450
268
  * Default is 10.
451
- * @property {string} [q] - Get Values filtered by q string
269
+ * @property {string} [q] - The `q` parameter allows you to search and filter
270
+ * specific data within the filter options. It acts as a query keyword that
271
+ * can refine the results by matching relevant filter values, such as a
272
+ * category name or any other applicable filter criteria.
452
273
  */
453
274
 
454
275
  /**
455
- * @typedef GetAutocompleteConfigParam
456
- * @property {number} [pageNo] - The page number to navigate through the given
457
- * set of results
276
+ * @typedef GetApplicationProductsParam
277
+ * @property {string} [q] - The search query. This can be a partial or complete
278
+ * name of a either a product, brand or category
279
+ * @property {string} [f] - The search filter parameters. All the parameter
280
+ * filtered from filter parameters will be passed in **f** parameter in this
281
+ * format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts**
282
+ * @property {string} [c] - The search filter parameters for collection items.
283
+ * All the parameter filtered from filter parameters will be passed in **c**
284
+ * parameter in this format.
285
+ * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
286
+ * @property {boolean} [filters] - Pass `filters` parameter to fetch the filter
287
+ * details. This flag is used to fetch all filters
288
+ * @property {boolean} [isDependent] - This query parameter is used to get the
289
+ * dependent products in the listing.
290
+ * @property {string} [sortOn] - The order to sort the list of products on. The
291
+ * supported sort parameters are popularity, price, redemption and discount in
292
+ * either ascending or descending order. See the supported values below.
293
+ * @property {string} [pageId] - Each response will contain **page_id** param,
294
+ * which should be sent back to make pagination work.
458
295
  * @property {number} [pageSize] - Number of items to retrieve in each page.
459
296
  * Default is 12.
460
- * @property {string} [q] - Search query with words name.Use this parameter to
461
- * search keywords by words.
462
- * @property {boolean} [isActive] - Can query for keywords based on whether they
463
- * are active or inactive.
297
+ * @property {number} [pageNo] - If page_type is number then pass it to fetch
298
+ * page items. Default is 1.
299
+ * @property {string} [pageType] - For pagination type should be cursor or
300
+ * number. Default is cursor.
301
+ * @property {string[]} [itemIds] - Item Ids of product
464
302
  */
465
303
 
304
+ /** @typedef GetAutocompleteConfigParam */
305
+
466
306
  /**
467
307
  * @typedef GetAutocompleteKeywordDetailParam
468
308
  * @property {string} id - A `id` is a unique identifier for a particular
469
309
  * detail. Pass the `id` of the keywords which you want to retrieve.
470
310
  */
471
311
 
472
- /**
473
- * @typedef GetAutocompletePreviewParam
474
- * @property {string} [q] - Get suggestions related to `q` string.
475
- * @property {number} [categorySuggestion] - For getting related category suggestions.
476
- * @property {number} [brandSuggestion] - For getting related brand suggestions.
477
- * @property {number} [collectionSuggestion] - For getting collection suggestions.
478
- * @property {number} [productSuggestion] - For getting product suggestions.
479
- * @property {number} [querySuggestion] - For getting query suggestions.
480
- */
481
-
482
- /** @typedef GetAutocompleteSettingsParam */
483
-
484
312
  /** @typedef GetCatalogConfigurationParam */
485
313
 
486
314
  /**
487
315
  * @typedef GetCatalogInsightsParam
488
- * @property {string} [brand] - Brand slug
316
+ * @property {string} [brand] - Brand slug that is to be searched.
489
317
  */
490
318
 
491
319
  /**
@@ -493,7 +321,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
493
321
  * @property {string} [department] - The name of the department. Use this
494
322
  * parameter to filter products by a particular department. See below the list
495
323
  * of available departments. You can retrieve available departments from the
496
- * **v1.0/departments/** API
324
+ * "v1.0/departments/" API
497
325
  */
498
326
 
499
327
  /**
@@ -508,14 +336,11 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
508
336
  * @property {string} id - A `id` is a unique identifier of a collection.
509
337
  * @property {string} [sortOn] - Each response will contain sort_on param, which
510
338
  * should be sent back to make pagination work.
339
+ * @property {string} [pageId] - Each response will contain next_id param, which
340
+ * should be sent back to make pagination work.
511
341
  * @property {number} [pageSize] - Number of items to retrieve in each page.
512
342
  * Default is 12.
513
343
  * @property {number} [pageNo] - Identifies the specific page of results being requested.
514
- * @property {boolean} [isPinned] - Number of items that are pinned and have
515
- * priority in each page. Default is 12.
516
- * @property {string} [q] - Get multiple products filtered by q string
517
- * @property {boolean} [isExcluded] - Number of items that are excluded from
518
- * collections in each page. Default is 12.
519
344
  */
520
345
 
521
346
  /**
@@ -529,22 +354,21 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
529
354
  * a specific type of configuration.
530
355
  * @property {string} [templateSlug] - Get configuration list filtered by
531
356
  * `template_slug` string. This is for the details and comparision groups.
357
+ * @property {number} [pageNo] - The page number to navigate through the given
358
+ * set of results.
359
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
360
+ * @property {string} [q] - Get configuration list filtered by `q` string.
532
361
  */
533
362
 
534
363
  /** @typedef GetConfigurationsParam */
535
364
 
536
- /**
537
- * @typedef GetConfigurationsFilterMetadataParam
538
- * @property {string} filter - Filter whose values needs to be fetched.
539
- */
540
-
541
365
  /** @typedef GetDepartmentsParam */
542
366
 
543
367
  /**
544
368
  * @typedef GetDiscountedInventoryBySizeIdentifierParam
545
- * @property {number} itemId - Item code of the product of which size is to be get.
369
+ * @property {number} itemId - A `item_id` is a unique identifier for a specific product.
546
370
  * @property {number} sizeIdentifier - Size Identifier (Seller Identifier or
547
- * Primary Identifier) of which inventory is to get.
371
+ * Primary Identifier).
548
372
  * @property {number} [pageNo] - The page number to navigate through the given
549
373
  * set of results
550
374
  * @property {number} [pageSize] - Number of items to retrieve in each page.
@@ -574,74 +398,13 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
574
398
  * @property {number} [pageSize] - Number of items to retrieve in each page.
575
399
  * Default is 12.
576
400
  * @property {string} [search] - Get configuration list filtered by `search` string.
577
- * @property {number[]} [uids] - Only for categories config type, Get
578
- * configuration list filtered by `uids`.
579
- */
580
-
581
- /**
582
- * @typedef GetLivePreviewParam
583
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
584
- * unique identifier for a particular merchandising rule.
585
- * @property {string} [searchKeyword] - A sample query that can be used to get a
586
- * live preview of the merchandising rule.
587
- */
588
-
589
- /**
590
- * @typedef GetMerchandisingQueryParam
591
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
592
- * unique identifier for a particular merchandising rule.
593
- */
594
-
595
- /**
596
- * @typedef GetMerchandisingRuleBoostActionParam
597
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
598
- * unique identifier for a particular merchandising rule.
599
- */
600
-
601
- /**
602
- * @typedef GetMerchandisingRuleBuryActionParam
603
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
604
- * unique identifier for a particular merchandising rule.
605
- */
606
-
607
- /**
608
- * @typedef GetMerchandisingRuleHideActionParam
609
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
610
- * unique identifier for a particular merchandising rule.
611
- */
612
-
613
- /**
614
- * @typedef GetMerchandisingRulePinActionParam
615
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
616
- * unique identifier for a particular merchandising rule.
617
- */
618
-
619
- /**
620
- * @typedef GetMerchandisingRulesParam
621
- * @property {string} [pageId] - Each response will contain next_id param, which
622
- * should be sent back to make pagination work.
623
- * @property {number} [pageSize] - Number of items to retrieve in each page.
624
- * Default is 12.
625
401
  */
626
402
 
627
403
  /**
628
404
  * @typedef GetProductDetailBySlugParam
629
405
  * @property {string} slug - The unique identifier of a product. i.e; `slug` of
630
406
  * a product. You can retrieve these from the APIs that list products like
631
- * **v1.0/products/**
632
- */
633
-
634
- /**
635
- * @typedef GetProductsInPriceFactoryByZoneIdParam
636
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
637
- * @property {string} zoneId - An `zone_id` is a unique identifier for a
638
- * particular price factory zone.
639
- * @property {number} [itemId] - Gets price factory filtered by item_id.
640
- * @property {string} [q] - Gets price factory filtered by search query.
641
- * @property {number} [pageNo] - The page number to navigate through the given
642
- * set of results.
643
- * @property {number} [pageSize] - Number of items to retrieve in each page.
644
- * Default is 12.
407
+ * "v1.0/products/"
645
408
  */
646
409
 
647
410
  /** @typedef GetQueryFiltersParam */
@@ -654,75 +417,22 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
654
417
  * detail. Pass the `id` of the keywords which you want to retrieve.
655
418
  */
656
419
 
657
- /** @typedef GetSearchRerankParam */
658
-
659
- /**
660
- * @typedef GetSearchRerankDetailParam
661
- * @property {string} id - An `id` is the identifier for a particular search
662
- * rerank configuration. channel.
663
- */
664
-
665
- /**
666
- * @typedef GetSynonymsParam
667
- * @property {string} [id] - Mongo id of the particular synonym
668
- * @property {string} [name] - Synonym name
669
- * @property {string} [type] - Synonym type - oneway/twoway
670
- */
671
-
672
- /**
673
- * @typedef PollBulkSynonymsParam
674
- * @property {string} id - Id of the bulk job that needs to be polled.
675
- */
676
-
677
- /**
678
- * @typedef PollPriceFactoryJobsParam
679
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
680
- */
681
-
682
- /**
683
- * @typedef PollProductPriceFactoryBulkJobParam
684
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
685
- * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job.
686
- */
687
-
688
- /**
689
- * @typedef ProcessBulkSynonymsParam
690
- * @property {CatalogPlatformModel.SynonymBulkProcessRequestSchema} body
691
- */
692
-
693
- /**
694
- * @typedef ProcessProductPriceFactoryBulkJobParam
695
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
696
- * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job.
697
- * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body
698
- */
699
-
700
- /**
701
- * @typedef SampleBulkSynonymsFileParam
702
- * @property {string} type - Type of the file
703
- */
704
-
705
- /**
706
- * @typedef SaveMerchandisingRulesParam
707
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
708
- * unique identifier for a particular merchandising rule.
709
- * @property {CatalogPlatformModel.MerchandisingRuleSave} body
710
- */
711
-
712
420
  /**
713
421
  * @typedef UpdateAllowSingleParam
714
- * @property {CatalogPlatformModel.AllowSingleRequest} body
422
+ * @property {CatalogPlatformModel.AllowSingleRequestSchema} body
715
423
  */
716
424
 
717
425
  /**
718
426
  * @typedef UpdateAppBrandParam
719
- * @property {number} brandUid - Brand id for which the custom_json is associated.
427
+ * @property {number} brandUid - A `brand id` is a unique identifier for a
428
+ * particular brand.
720
429
  * @property {CatalogPlatformModel.ApplicationBrandJson} body
721
430
  */
722
431
 
723
432
  /**
724
433
  * @typedef UpdateAppCategoryParam
725
- * @property {number} categoryUid - Category id for which the custom_json is associated.
434
+ * @property {string} categoryUid - A `category id` is a unique identifier for a
435
+ * particular category.
726
436
  * @property {CatalogPlatformModel.ApplicationCategoryJson} body
727
437
  */
728
438
 
@@ -733,8 +443,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
733
443
 
734
444
  /**
735
445
  * @typedef UpdateAppDepartmentParam
736
- * @property {number} departmentUid - Department id for which the custom_json is
737
- * associated.
446
+ * @property {number} departmentUid - A `department id` is a unique identifier
447
+ * for a particular department.
738
448
  * @property {CatalogPlatformModel.ApplicationDepartmentJson} body
739
449
  */
740
450
 
@@ -746,7 +456,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
746
456
 
747
457
  /**
748
458
  * @typedef UpdateAppProductParam
749
- * @property {number} itemId - Product id for which the custom_meta is associated.
459
+ * @property {number} itemId - A `item_id` is a unique identifier for a particular item.
750
460
  * @property {CatalogPlatformModel.ApplicationItemMeta} body
751
461
  */
752
462
 
@@ -762,13 +472,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
762
472
  * @property {CatalogPlatformModel.CreateAutocompleteKeyword} body
763
473
  */
764
474
 
765
- /**
766
- * @typedef UpdateAutocompleteSettingsParam
767
- * @property {string} id - An `id` is a unique identifier for a particular
768
- * autocomplete settings config.
769
- * @property {CatalogPlatformModel.AutocompleteRequestSchema} body
770
- */
771
-
772
475
  /**
773
476
  * @typedef UpdateCollectionParam
774
477
  * @property {string} id - A `id` is a unique identifier of a collection.
@@ -777,7 +480,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
777
480
 
778
481
  /**
779
482
  * @typedef UpdateDefaultSortParam
780
- * @property {CatalogPlatformModel.DefaultKeyRequest} body
483
+ * @property {CatalogPlatformModel.DefaultKeyRequestSchema} body
781
484
  */
782
485
 
783
486
  /**
@@ -795,47 +498,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
795
498
  * particular listing configuration type.
796
499
  * @property {string} configId - A `config_id` is a unique identifier of a
797
500
  * particular configuration.
798
- * @property {CatalogPlatformModel.AppConfigurationsFilterResponse} body
799
- */
800
-
801
- /**
802
- * @typedef UpdateMerchandisingRuleBoostActionParam
803
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
804
- * unique identifier for a particular merchandising rule.
805
- * @property {CatalogPlatformModel.PostMerchandisingRuleBoostAction} body
806
- */
807
-
808
- /**
809
- * @typedef UpdateMerchandisingRuleBuryActionParam
810
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
811
- * unique identifier for a particular merchandising rule.
812
- * @property {CatalogPlatformModel.PostMerchandisingRuleBoostAction} body
813
- */
814
-
815
- /**
816
- * @typedef UpdateMerchandisingRuleHideActionParam
817
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
818
- * unique identifier for a particular merchandising rule.
819
- * @property {CatalogPlatformModel.HideRequest} body
820
- */
821
-
822
- /**
823
- * @typedef UpdateMerchandisingRulePinActionParam
824
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
825
- * unique identifier for a particular merchandising rule.
826
- * @property {CatalogPlatformModel.PinRequest} body
827
- */
828
-
829
- /**
830
- * @typedef UpdateMerchandisingRuleQueryParam
831
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
832
- * unique identifier for a particular merchandising rule.
833
- * @property {CatalogPlatformModel.MerchandisingRuleQueryPost} body
501
+ * @property {CatalogPlatformModel.AppConfigurationsSort} body
834
502
  */
835
503
 
836
504
  /**
837
505
  * @typedef UpdateSearchConfigurationParam
838
- * @property {CatalogPlatformModel.UpdateSearchConfigurationRequest} body
506
+ * @property {CatalogPlatformModel.UpdateSearchConfigurationRequestSchema} body
839
507
  */
840
508
 
841
509
  /**
@@ -845,37 +513,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
845
513
  * @property {CatalogPlatformModel.CreateSearchKeyword} body
846
514
  */
847
515
 
848
- /**
849
- * @typedef UpdateSearchRerankConfigurationParam
850
- * @property {string} id - An `id` is the identifier for a particular search
851
- * rerank configuration. channel.
852
- * @property {CatalogPlatformModel.UpdateSearchRerankRequest} body
853
- */
854
-
855
- /**
856
- * @typedef UpdateSynonymsParam
857
- * @property {string} id - An `id` is a unique identifier for a particular
858
- * synonym channel.
859
- * @property {CatalogPlatformModel.SynonymCreateRequestSchema} body
860
- */
861
-
862
- /**
863
- * @typedef UploadSynonymsParam
864
- * @property {CatalogPlatformModel.SynonymUploadRequestSchema} body
865
- */
866
-
867
- /**
868
- * @typedef ValidateBulkSynonymsParam
869
- * @property {CatalogPlatformModel.SynonymBulkValidateRequestSchema} body
870
- */
871
-
872
- /**
873
- * @typedef ValidateProductPriceFactoryBulkJobParam
874
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
875
- * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job.
876
- * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body
877
- */
878
-
879
516
  class CatalogPlatformApplicationValidator {
880
517
  /** @returns {AddCollectionItemsParam} */
881
518
  static addCollectionItems() {
@@ -885,21 +522,6 @@ class CatalogPlatformApplicationValidator {
885
522
  }).required();
886
523
  }
887
524
 
888
- /** @returns {AddProductsInPriceFactoryByZoneIdParam} */
889
- static addProductsInPriceFactoryByZoneId() {
890
- return Joi.object({
891
- id: Joi.string().allow("").required(),
892
- body: CatalogPlatformModel.CreatePriceFactoryProductRequest().required(),
893
- }).required();
894
- }
895
-
896
- /** @returns {ClearCollectionItemsPriorityParam} */
897
- static clearCollectionItemsPriority() {
898
- return Joi.object({
899
- id: Joi.string().allow("").required(),
900
- }).required();
901
- }
902
-
903
525
  /** @returns {CreateAppCategoryReturnConfigurationParam} */
904
526
  static createAppCategoryReturnConfiguration() {
905
527
  return Joi.object({
@@ -907,13 +529,6 @@ class CatalogPlatformApplicationValidator {
907
529
  }).required();
908
530
  }
909
531
 
910
- /** @returns {CreateAppPriceFactoryParam} */
911
- static createAppPriceFactory() {
912
- return Joi.object({
913
- body: CatalogPlatformModel.CreateAppPriceFactoryRequestSchema().required(),
914
- }).required();
915
- }
916
-
917
532
  /** @returns {CreateAppReturnConfigurationParam} */
918
533
  static createAppReturnConfiguration() {
919
534
  return Joi.object({
@@ -921,16 +536,16 @@ class CatalogPlatformApplicationValidator {
921
536
  }).required();
922
537
  }
923
538
 
924
- /** @returns {CreateAutocompleteSettingsParam} */
925
- static createAutocompleteSettings() {
926
- return Joi.object({
927
- body: CatalogPlatformModel.AutocompleteRequestSchema().required(),
928
- }).required();
929
- }
930
-
931
539
  /** @returns {CreateCollectionParam} */
932
540
  static createCollection() {
933
541
  return Joi.object({
542
+ q: Joi.string().allow(""),
543
+ scheduleStatus: Joi.string().allow(""),
544
+ type: Joi.string().allow(""),
545
+ tags: Joi.array().items(Joi.string().allow("")),
546
+ isActive: Joi.boolean(),
547
+ pageNo: Joi.number(),
548
+ pageSize: Joi.number(),
934
549
  body: CatalogPlatformModel.CreateCollection().required(),
935
550
  }).required();
936
551
  }
@@ -967,84 +582,23 @@ class CatalogPlatformApplicationValidator {
967
582
  /** @returns {CreateGroupConfigurationParam} */
968
583
  static createGroupConfiguration() {
969
584
  return Joi.object({
970
- configType: Joi.string().allow("").required(),
971
- body: CatalogPlatformModel.AppConfigurationCreateDetail().required(),
972
- }).required();
973
- }
974
-
975
- /** @returns {CreateListingConfigurationParam} */
976
- static createListingConfiguration() {
977
- return Joi.object({
978
- configType: Joi.string().allow("").required(),
979
- body: CatalogPlatformModel.AppConfigurationsFilter().required(),
980
- }).required();
981
- }
982
-
983
- /** @returns {CreateMerchandisingRuleBoostActionParam} */
984
- static createMerchandisingRuleBoostAction() {
985
- return Joi.object({
986
- merchandisingRuleId: Joi.string().allow("").required(),
987
- body: CatalogPlatformModel.PostMerchandisingRuleBoostAction().required(),
988
- }).required();
989
- }
990
-
991
- /** @returns {CreateMerchandisingRuleBuryActionParam} */
992
- static createMerchandisingRuleBuryAction() {
993
- return Joi.object({
994
- merchandisingRuleId: Joi.string().allow("").required(),
995
- body: CatalogPlatformModel.PostMerchandisingRuleBoostAction().required(),
996
- }).required();
997
- }
998
-
999
- /** @returns {CreateMerchandisingRuleHideActionParam} */
1000
- static createMerchandisingRuleHideAction() {
1001
- return Joi.object({
1002
- merchandisingRuleId: Joi.string().allow("").required(),
1003
- body: CatalogPlatformModel.HideRequest().required(),
1004
- }).required();
1005
- }
1006
-
1007
- /** @returns {CreateMerchandisingRulePinActionParam} */
1008
- static createMerchandisingRulePinAction() {
1009
- return Joi.object({
1010
- merchandisingRuleId: Joi.string().allow("").required(),
1011
- body: CatalogPlatformModel.PinRequest().required(),
1012
- }).required();
1013
- }
1014
-
1015
- /** @returns {CreateMerchandisingRuleQueryParam} */
1016
- static createMerchandisingRuleQuery() {
1017
- return Joi.object({
1018
- body: CatalogPlatformModel.MerchandisingRuleQueryPost().required(),
1019
- }).required();
1020
- }
1021
-
1022
- /** @returns {CreateProductPriceFactoryBulkJobParam} */
1023
- static createProductPriceFactoryBulkJob() {
1024
- return Joi.object({
1025
- id: Joi.string().allow("").required(),
1026
- body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest().required(),
1027
- }).required();
1028
- }
1029
-
1030
- /** @returns {CreateSearchConfigurationParam} */
1031
- static createSearchConfiguration() {
1032
- return Joi.object({
1033
- body: CatalogPlatformModel.CreateSearchConfigurationRequest().required(),
585
+ configType: Joi.string().allow("").required(),
586
+ body: CatalogPlatformModel.AppConfigurationDetail().required(),
1034
587
  }).required();
1035
588
  }
1036
589
 
1037
- /** @returns {CreateSearchRerankParam} */
1038
- static createSearchRerank() {
590
+ /** @returns {CreateListingConfigurationParam} */
591
+ static createListingConfiguration() {
1039
592
  return Joi.object({
1040
- body: CatalogPlatformModel.CreateSearchRerankRequest().required(),
593
+ configType: Joi.string().allow("").required(),
594
+ body: CatalogPlatformModel.AppConfigurationsSort().required(),
1041
595
  }).required();
1042
596
  }
1043
597
 
1044
- /** @returns {CreateSynonymsParam} */
1045
- static createSynonyms() {
598
+ /** @returns {CreateSearchConfigurationParam} */
599
+ static createSearchConfiguration() {
1046
600
  return Joi.object({
1047
- body: CatalogPlatformModel.SynonymCreateRequestSchema().required(),
601
+ body: CatalogPlatformModel.CreateSearchConfigurationRequestSchema().required(),
1048
602
  }).required();
1049
603
  }
1050
604
 
@@ -1085,20 +639,6 @@ class CatalogPlatformApplicationValidator {
1085
639
  }).required();
1086
640
  }
1087
641
 
1088
- /** @returns {DeleteMerchandisingRuleParam} */
1089
- static deleteMerchandisingRule() {
1090
- return Joi.object({
1091
- merchandisingRuleId: Joi.string().allow("").required(),
1092
- }).required();
1093
- }
1094
-
1095
- /** @returns {DeleteMerchandisingRulesPreviewParam} */
1096
- static deleteMerchandisingRulesPreview() {
1097
- return Joi.object({
1098
- merchandisingRuleId: Joi.string().allow("").required(),
1099
- }).required();
1100
- }
1101
-
1102
642
  /** @returns {DeleteSearchConfigurationParam} */
1103
643
  static deleteSearchConfiguration() {
1104
644
  return Joi.object({}).required();
@@ -1111,48 +651,13 @@ class CatalogPlatformApplicationValidator {
1111
651
  }).required();
1112
652
  }
1113
653
 
1114
- /** @returns {DeleteSearchRerankConfigurationParam} */
1115
- static deleteSearchRerankConfiguration() {
1116
- return Joi.object({
1117
- id: Joi.string().allow("").required(),
1118
- }).required();
1119
- }
1120
-
1121
- /** @returns {DeleteSynonymParam} */
1122
- static deleteSynonym() {
1123
- return Joi.object({
1124
- id: Joi.string().allow("").required(),
1125
- }).required();
1126
- }
1127
-
1128
- /** @returns {EditAppPriceFactoryParam} */
1129
- static editAppPriceFactory() {
1130
- return Joi.object({
1131
- id: Joi.string().allow("").required(),
1132
- body: CatalogPlatformModel.EditAppPriceFactoryRequestSchema().required(),
1133
- }).required();
1134
- }
1135
-
1136
- /** @returns {ExportProductsInPriceFactoryParam} */
1137
- static exportProductsInPriceFactory() {
1138
- return Joi.object({
1139
- id: Joi.string().allow("").required(),
1140
- body: CatalogPlatformModel.CreateAppPriceFactoryProductExportJobRequest().required(),
1141
- }).required();
1142
- }
1143
-
1144
- /** @returns {ExportSynonymsParam} */
1145
- static exportSynonyms() {
1146
- return Joi.object({}).required();
1147
- }
1148
-
1149
654
  /** @returns {GetAllCollectionsParam} */
1150
655
  static getAllCollections() {
1151
656
  return Joi.object({
1152
657
  q: Joi.string().allow(""),
1153
658
  scheduleStatus: Joi.string().allow(""),
1154
659
  type: Joi.string().allow(""),
1155
- tag: Joi.array().items(Joi.string().allow("")),
660
+ tags: Joi.array().items(Joi.string().allow("")),
1156
661
  isActive: Joi.boolean(),
1157
662
  pageNo: Joi.number(),
1158
663
  pageSize: Joi.number(),
@@ -1161,12 +666,7 @@ class CatalogPlatformApplicationValidator {
1161
666
 
1162
667
  /** @returns {GetAllSearchKeywordParam} */
1163
668
  static getAllSearchKeyword() {
1164
- return Joi.object({
1165
- pageNo: Joi.number(),
1166
- pageSize: Joi.number(),
1167
- q: Joi.string().allow(""),
1168
- isActive: Joi.boolean(),
1169
- }).required();
669
+ return Joi.object({}).required();
1170
670
  }
1171
671
 
1172
672
  /** @returns {GetAppCategoryReturnConfigParam} */
@@ -1207,52 +707,13 @@ class CatalogPlatformApplicationValidator {
1207
707
  pageSize: Joi.number(),
1208
708
  tags: Joi.array().items(Joi.string().allow("")),
1209
709
  storeTypes: Joi.array().items(Joi.string().allow("")),
1210
- companyUids: Joi.array().items(Joi.number()),
1211
- }).required();
1212
- }
1213
-
1214
- /** @returns {GetAppPriceByIdParam} */
1215
- static getAppPriceById() {
1216
- return Joi.object({
1217
- itemId: Joi.number().required(),
1218
- storeIds: Joi.array().items(Joi.number()),
1219
- factoryTypeIds: Joi.array().items(Joi.string().allow("")),
1220
- sellerId: Joi.number(),
1221
- }).required();
1222
- }
1223
-
1224
- /** @returns {GetAppPriceFactoriesParam} */
1225
- static getAppPriceFactories() {
1226
- return Joi.object({
1227
- isActive: Joi.boolean(),
1228
- factoryTypeId: Joi.string().allow(""),
1229
- code: Joi.string().allow(""),
1230
- pageNo: Joi.number(),
1231
- pageSize: Joi.number(),
1232
- }).required();
1233
- }
1234
-
1235
- /** @returns {GetAppPriceFactoryParam} */
1236
- static getAppPriceFactory() {
1237
- return Joi.object({
1238
- id: Joi.string().allow("").required(),
1239
710
  }).required();
1240
711
  }
1241
712
 
1242
713
  /** @returns {GetAppProductParam} */
1243
714
  static getAppProduct() {
1244
715
  return Joi.object({
1245
- itemId: Joi.number().required(),
1246
- }).required();
1247
- }
1248
-
1249
- /** @returns {GetAppProductPricesParam} */
1250
- static getAppProductPrices() {
1251
- return Joi.object({
1252
- itemIds: Joi.array().items(Joi.number()),
1253
- factoryTypeIds: Joi.array().items(Joi.string().allow("")),
1254
- pageNo: Joi.number(),
1255
- pageSize: Joi.number(),
716
+ itemId: Joi.string().allow("").required(),
1256
717
  }).required();
1257
718
  }
1258
719
 
@@ -1275,23 +736,6 @@ class CatalogPlatformApplicationValidator {
1275
736
  return Joi.object({}).required();
1276
737
  }
1277
738
 
1278
- /** @returns {GetAppicationProductsParam} */
1279
- static getAppicationProducts() {
1280
- return Joi.object({
1281
- q: Joi.string().allow(""),
1282
- f: Joi.string().allow(""),
1283
- c: Joi.string().allow(""),
1284
- filters: Joi.boolean(),
1285
- isDependent: Joi.boolean(),
1286
- sortOn: Joi.string().allow(""),
1287
- pageId: Joi.string().allow(""),
1288
- pageSize: Joi.number(),
1289
- pageNo: Joi.number(),
1290
- pageType: Joi.string().allow(""),
1291
- itemIds: Joi.array().items(Joi.string().allow("")),
1292
- }).required();
1293
- }
1294
-
1295
739
  /** @returns {GetApplicationBrandListingParam} */
1296
740
  static getApplicationBrandListing() {
1297
741
  return Joi.object({
@@ -1350,16 +794,28 @@ class CatalogPlatformApplicationValidator {
1350
794
  }).required();
1351
795
  }
1352
796
 
1353
- /** @returns {GetAutocompleteConfigParam} */
1354
- static getAutocompleteConfig() {
797
+ /** @returns {GetApplicationProductsParam} */
798
+ static getApplicationProducts() {
1355
799
  return Joi.object({
1356
- pageNo: Joi.number(),
1357
- pageSize: Joi.number(),
1358
800
  q: Joi.string().allow(""),
1359
- isActive: Joi.boolean(),
801
+ f: Joi.string().allow(""),
802
+ c: Joi.string().allow(""),
803
+ filters: Joi.boolean(),
804
+ isDependent: Joi.boolean(),
805
+ sortOn: Joi.string().allow(""),
806
+ pageId: Joi.string().allow(""),
807
+ pageSize: Joi.number(),
808
+ pageNo: Joi.number(),
809
+ pageType: Joi.string().allow(""),
810
+ itemIds: Joi.array().items(Joi.string().allow("")),
1360
811
  }).required();
1361
812
  }
1362
813
 
814
+ /** @returns {GetAutocompleteConfigParam} */
815
+ static getAutocompleteConfig() {
816
+ return Joi.object({}).required();
817
+ }
818
+
1363
819
  /** @returns {GetAutocompleteKeywordDetailParam} */
1364
820
  static getAutocompleteKeywordDetail() {
1365
821
  return Joi.object({
@@ -1367,23 +823,6 @@ class CatalogPlatformApplicationValidator {
1367
823
  }).required();
1368
824
  }
1369
825
 
1370
- /** @returns {GetAutocompletePreviewParam} */
1371
- static getAutocompletePreview() {
1372
- return Joi.object({
1373
- q: Joi.string().allow(""),
1374
- categorySuggestion: Joi.number(),
1375
- brandSuggestion: Joi.number(),
1376
- collectionSuggestion: Joi.number(),
1377
- productSuggestion: Joi.number(),
1378
- querySuggestion: Joi.number(),
1379
- }).required();
1380
- }
1381
-
1382
- /** @returns {GetAutocompleteSettingsParam} */
1383
- static getAutocompleteSettings() {
1384
- return Joi.object({}).required();
1385
- }
1386
-
1387
826
  /** @returns {GetCatalogConfigurationParam} */
1388
827
  static getCatalogConfiguration() {
1389
828
  return Joi.object({}).required();
@@ -1415,11 +854,9 @@ class CatalogPlatformApplicationValidator {
1415
854
  return Joi.object({
1416
855
  id: Joi.string().allow("").required(),
1417
856
  sortOn: Joi.string().allow(""),
857
+ pageId: Joi.string().allow(""),
1418
858
  pageSize: Joi.number(),
1419
859
  pageNo: Joi.number(),
1420
- isPinned: Joi.boolean(),
1421
- q: Joi.string().allow(""),
1422
- isExcluded: Joi.boolean(),
1423
860
  }).required();
1424
861
  }
1425
862
 
@@ -1435,6 +872,9 @@ class CatalogPlatformApplicationValidator {
1435
872
  return Joi.object({
1436
873
  configType: Joi.string().allow("").required(),
1437
874
  templateSlug: Joi.string().allow(""),
875
+ pageNo: Joi.number(),
876
+ pageSize: Joi.number(),
877
+ q: Joi.string().allow(""),
1438
878
  }).required();
1439
879
  }
1440
880
 
@@ -1443,13 +883,6 @@ class CatalogPlatformApplicationValidator {
1443
883
  return Joi.object({}).required();
1444
884
  }
1445
885
 
1446
- /** @returns {GetConfigurationsFilterMetadataParam} */
1447
- static getConfigurationsFilterMetadata() {
1448
- return Joi.object({
1449
- filter: Joi.string().allow("").required(),
1450
- }).required();
1451
- }
1452
-
1453
886
  /** @returns {GetDepartmentsParam} */
1454
887
  static getDepartments() {
1455
888
  return Joi.object({}).required();
@@ -1484,58 +917,6 @@ class CatalogPlatformApplicationValidator {
1484
917
  pageNo: Joi.number(),
1485
918
  pageSize: Joi.number(),
1486
919
  search: Joi.string().allow(""),
1487
- uids: Joi.array().items(Joi.number()),
1488
- }).required();
1489
- }
1490
-
1491
- /** @returns {GetLivePreviewParam} */
1492
- static getLivePreview() {
1493
- return Joi.object({
1494
- merchandisingRuleId: Joi.string().allow("").required(),
1495
- searchKeyword: Joi.string().allow(""),
1496
- }).required();
1497
- }
1498
-
1499
- /** @returns {GetMerchandisingQueryParam} */
1500
- static getMerchandisingQuery() {
1501
- return Joi.object({
1502
- merchandisingRuleId: Joi.string().allow("").required(),
1503
- }).required();
1504
- }
1505
-
1506
- /** @returns {GetMerchandisingRuleBoostActionParam} */
1507
- static getMerchandisingRuleBoostAction() {
1508
- return Joi.object({
1509
- merchandisingRuleId: Joi.string().allow("").required(),
1510
- }).required();
1511
- }
1512
-
1513
- /** @returns {GetMerchandisingRuleBuryActionParam} */
1514
- static getMerchandisingRuleBuryAction() {
1515
- return Joi.object({
1516
- merchandisingRuleId: Joi.string().allow("").required(),
1517
- }).required();
1518
- }
1519
-
1520
- /** @returns {GetMerchandisingRuleHideActionParam} */
1521
- static getMerchandisingRuleHideAction() {
1522
- return Joi.object({
1523
- merchandisingRuleId: Joi.string().allow("").required(),
1524
- }).required();
1525
- }
1526
-
1527
- /** @returns {GetMerchandisingRulePinActionParam} */
1528
- static getMerchandisingRulePinAction() {
1529
- return Joi.object({
1530
- merchandisingRuleId: Joi.string().allow("").required(),
1531
- }).required();
1532
- }
1533
-
1534
- /** @returns {GetMerchandisingRulesParam} */
1535
- static getMerchandisingRules() {
1536
- return Joi.object({
1537
- pageId: Joi.string().allow(""),
1538
- pageSize: Joi.number(),
1539
920
  }).required();
1540
921
  }
1541
922
 
@@ -1546,18 +927,6 @@ class CatalogPlatformApplicationValidator {
1546
927
  }).required();
1547
928
  }
1548
929
 
1549
- /** @returns {GetProductsInPriceFactoryByZoneIdParam} */
1550
- static getProductsInPriceFactoryByZoneId() {
1551
- return Joi.object({
1552
- id: Joi.string().allow("").required(),
1553
- zoneId: Joi.string().allow("").required(),
1554
- itemId: Joi.number(),
1555
- q: Joi.string().allow(""),
1556
- pageNo: Joi.number(),
1557
- pageSize: Joi.number(),
1558
- }).required();
1559
- }
1560
-
1561
930
  /** @returns {GetQueryFiltersParam} */
1562
931
  static getQueryFilters() {
1563
932
  return Joi.object({}).required();
@@ -1575,84 +944,10 @@ class CatalogPlatformApplicationValidator {
1575
944
  }).required();
1576
945
  }
1577
946
 
1578
- /** @returns {GetSearchRerankParam} */
1579
- static getSearchRerank() {
1580
- return Joi.object({}).required();
1581
- }
1582
-
1583
- /** @returns {GetSearchRerankDetailParam} */
1584
- static getSearchRerankDetail() {
1585
- return Joi.object({
1586
- id: Joi.string().allow("").required(),
1587
- }).required();
1588
- }
1589
-
1590
- /** @returns {GetSynonymsParam} */
1591
- static getSynonyms() {
1592
- return Joi.object({
1593
- id: Joi.string().allow(""),
1594
- name: Joi.string().allow(""),
1595
- type: Joi.string().allow(""),
1596
- }).required();
1597
- }
1598
-
1599
- /** @returns {PollBulkSynonymsParam} */
1600
- static pollBulkSynonyms() {
1601
- return Joi.object({
1602
- id: Joi.string().allow("").required(),
1603
- }).required();
1604
- }
1605
-
1606
- /** @returns {PollPriceFactoryJobsParam} */
1607
- static pollPriceFactoryJobs() {
1608
- return Joi.object({
1609
- id: Joi.string().allow("").required(),
1610
- }).required();
1611
- }
1612
-
1613
- /** @returns {PollProductPriceFactoryBulkJobParam} */
1614
- static pollProductPriceFactoryBulkJob() {
1615
- return Joi.object({
1616
- id: Joi.string().allow("").required(),
1617
- jobId: Joi.string().allow("").required(),
1618
- }).required();
1619
- }
1620
-
1621
- /** @returns {ProcessBulkSynonymsParam} */
1622
- static processBulkSynonyms() {
1623
- return Joi.object({
1624
- body: CatalogPlatformModel.SynonymBulkProcessRequestSchema().required(),
1625
- }).required();
1626
- }
1627
-
1628
- /** @returns {ProcessProductPriceFactoryBulkJobParam} */
1629
- static processProductPriceFactoryBulkJob() {
1630
- return Joi.object({
1631
- id: Joi.string().allow("").required(),
1632
- jobId: Joi.string().allow("").required(),
1633
- body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest().required(),
1634
- }).required();
1635
- }
1636
-
1637
- /** @returns {SampleBulkSynonymsFileParam} */
1638
- static sampleBulkSynonymsFile() {
1639
- return Joi.object({
1640
- type: Joi.string().allow("").required(),
1641
- }).required();
1642
- }
1643
-
1644
- /** @returns {SaveMerchandisingRulesParam} */
1645
- static saveMerchandisingRules() {
1646
- return Joi.object({
1647
- merchandisingRuleId: Joi.string().allow("").required(),
1648
- body: CatalogPlatformModel.MerchandisingRuleSave().required(),
1649
- }).required();
1650
- }
1651
-
1652
947
  /** @returns {UpdateAllowSingleParam} */
1653
948
  static updateAllowSingle() {
1654
949
  return Joi.object({
1655
- body: CatalogPlatformModel.AllowSingleRequest().required(),
950
+ body: CatalogPlatformModel.AllowSingleRequestSchema().required(),
1656
951
  }).required();
1657
952
  }
1658
953
 
@@ -1667,7 +962,7 @@ class CatalogPlatformApplicationValidator {
1667
962
  /** @returns {UpdateAppCategoryParam} */
1668
963
  static updateAppCategory() {
1669
964
  return Joi.object({
1670
- categoryUid: Joi.number().required(),
965
+ categoryUid: Joi.string().allow("").required(),
1671
966
  body: CatalogPlatformModel.ApplicationCategoryJson().required(),
1672
967
  }).required();
1673
968
  }
@@ -1718,14 +1013,6 @@ class CatalogPlatformApplicationValidator {
1718
1013
  }).required();
1719
1014
  }
1720
1015
 
1721
- /** @returns {UpdateAutocompleteSettingsParam} */
1722
- static updateAutocompleteSettings() {
1723
- return Joi.object({
1724
- id: Joi.string().allow("").required(),
1725
- body: CatalogPlatformModel.AutocompleteRequestSchema().required(),
1726
- }).required();
1727
- }
1728
-
1729
1016
  /** @returns {UpdateCollectionParam} */
1730
1017
  static updateCollection() {
1731
1018
  return Joi.object({
@@ -1737,7 +1024,7 @@ class CatalogPlatformApplicationValidator {
1737
1024
  /** @returns {UpdateDefaultSortParam} */
1738
1025
  static updateDefaultSort() {
1739
1026
  return Joi.object({
1740
- body: CatalogPlatformModel.DefaultKeyRequest().required(),
1027
+ body: CatalogPlatformModel.DefaultKeyRequestSchema().required(),
1741
1028
  }).required();
1742
1029
  }
1743
1030
 
@@ -1755,54 +1042,14 @@ class CatalogPlatformApplicationValidator {
1755
1042
  return Joi.object({
1756
1043
  configType: Joi.string().allow("").required(),
1757
1044
  configId: Joi.string().allow("").required(),
1758
- body: CatalogPlatformModel.AppConfigurationsFilterResponse().required(),
1759
- }).required();
1760
- }
1761
-
1762
- /** @returns {UpdateMerchandisingRuleBoostActionParam} */
1763
- static updateMerchandisingRuleBoostAction() {
1764
- return Joi.object({
1765
- merchandisingRuleId: Joi.string().allow("").required(),
1766
- body: CatalogPlatformModel.PostMerchandisingRuleBoostAction().required(),
1767
- }).required();
1768
- }
1769
-
1770
- /** @returns {UpdateMerchandisingRuleBuryActionParam} */
1771
- static updateMerchandisingRuleBuryAction() {
1772
- return Joi.object({
1773
- merchandisingRuleId: Joi.string().allow("").required(),
1774
- body: CatalogPlatformModel.PostMerchandisingRuleBoostAction().required(),
1775
- }).required();
1776
- }
1777
-
1778
- /** @returns {UpdateMerchandisingRuleHideActionParam} */
1779
- static updateMerchandisingRuleHideAction() {
1780
- return Joi.object({
1781
- merchandisingRuleId: Joi.string().allow("").required(),
1782
- body: CatalogPlatformModel.HideRequest().required(),
1783
- }).required();
1784
- }
1785
-
1786
- /** @returns {UpdateMerchandisingRulePinActionParam} */
1787
- static updateMerchandisingRulePinAction() {
1788
- return Joi.object({
1789
- merchandisingRuleId: Joi.string().allow("").required(),
1790
- body: CatalogPlatformModel.PinRequest().required(),
1791
- }).required();
1792
- }
1793
-
1794
- /** @returns {UpdateMerchandisingRuleQueryParam} */
1795
- static updateMerchandisingRuleQuery() {
1796
- return Joi.object({
1797
- merchandisingRuleId: Joi.string().allow("").required(),
1798
- body: CatalogPlatformModel.MerchandisingRuleQueryPost().required(),
1045
+ body: CatalogPlatformModel.AppConfigurationsSort().required(),
1799
1046
  }).required();
1800
1047
  }
1801
1048
 
1802
1049
  /** @returns {UpdateSearchConfigurationParam} */
1803
1050
  static updateSearchConfiguration() {
1804
1051
  return Joi.object({
1805
- body: CatalogPlatformModel.UpdateSearchConfigurationRequest().required(),
1052
+ body: CatalogPlatformModel.UpdateSearchConfigurationRequestSchema().required(),
1806
1053
  }).required();
1807
1054
  }
1808
1055
 
@@ -1813,45 +1060,6 @@ class CatalogPlatformApplicationValidator {
1813
1060
  body: CatalogPlatformModel.CreateSearchKeyword().required(),
1814
1061
  }).required();
1815
1062
  }
1816
-
1817
- /** @returns {UpdateSearchRerankConfigurationParam} */
1818
- static updateSearchRerankConfiguration() {
1819
- return Joi.object({
1820
- id: Joi.string().allow("").required(),
1821
- body: CatalogPlatformModel.UpdateSearchRerankRequest().required(),
1822
- }).required();
1823
- }
1824
-
1825
- /** @returns {UpdateSynonymsParam} */
1826
- static updateSynonyms() {
1827
- return Joi.object({
1828
- id: Joi.string().allow("").required(),
1829
- body: CatalogPlatformModel.SynonymCreateRequestSchema().required(),
1830
- }).required();
1831
- }
1832
-
1833
- /** @returns {UploadSynonymsParam} */
1834
- static uploadSynonyms() {
1835
- return Joi.object({
1836
- body: CatalogPlatformModel.SynonymUploadRequestSchema().required(),
1837
- }).required();
1838
- }
1839
-
1840
- /** @returns {ValidateBulkSynonymsParam} */
1841
- static validateBulkSynonyms() {
1842
- return Joi.object({
1843
- body: CatalogPlatformModel.SynonymBulkValidateRequestSchema().required(),
1844
- }).required();
1845
- }
1846
-
1847
- /** @returns {ValidateProductPriceFactoryBulkJobParam} */
1848
- static validateProductPriceFactoryBulkJob() {
1849
- return Joi.object({
1850
- id: Joi.string().allow("").required(),
1851
- jobId: Joi.string().allow("").required(),
1852
- body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest().required(),
1853
- }).required();
1854
- }
1855
1063
  }
1856
1064
 
1857
1065
  module.exports = CatalogPlatformApplicationValidator;