@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.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 (304) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  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 +81 -101
  6. package/sdk/application/Cart/CartApplicationClient.js +173 -511
  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 +61 -61
  16. package/sdk/application/Content/ContentApplicationClient.js +183 -366
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
  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 +28 -117
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
  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 +10 -54
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
  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 +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  90. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
  98. package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
  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 +240 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
  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 +330 -502
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
  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 -100
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
  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 -31
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
  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 +562 -1289
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
  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 -248
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
  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 +2391 -924
  146. package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
  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 +406 -403
  180. package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
  182. package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
  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 +937 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -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 +1307 -3536
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
  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 -521
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
  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 -9
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -5
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
  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 -0
  272. package/sdk/public/PublicClient.js +4 -0
  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 -0
  280. package/sdk/public/index.js +2 -0
  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
@@ -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
  /**
@@ -355,7 +204,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
355
204
  * set of results
356
205
  * @property {number} [pageSize] - Number of items to retrieve in each page.
357
206
  * Default is 12.
358
- * @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
359
208
  * search brands by brand name.
360
209
  */
361
210
 
@@ -364,12 +213,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
364
213
  * @property {string} [department] - The name of the department. Use this
365
214
  * parameter to filter products by a particular department. See below the list
366
215
  * of available departments. You can retrieve available departments from the
367
- * **v1.0/departments/** API
216
+ * "v1.0/departments/" API
368
217
  * @property {number} [pageNo] - The page number to navigate through the given
369
218
  * set of results
370
219
  * @property {number} [pageSize] - Number of items to retrieve in each page.
371
220
  * Default is 12.
372
- * @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
373
222
  * search brands by brand name.
374
223
  * @property {number[]} [brandId] - Helps to sort the brands list on the basis
375
224
  * of uid list.
@@ -383,8 +232,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
383
232
  * set of results
384
233
  * @property {number} [pageSize] - Number of items to retrieve in each page.
385
234
  * Default is 12.
386
- * @property {string} [q] - Search query with brand name.Use this parameter to
387
- * 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.
388
237
  */
389
238
 
390
239
  /**
@@ -393,33 +242,34 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
393
242
  * set of results
394
243
  * @property {number} [pageSize] - Number of items to retrieve in each page.
395
244
  * Default is 12.
396
- * @property {string} [q] - Search query with brand name.Use this parameter to
397
- * 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.
398
247
  */
399
248
 
400
249
  /**
401
250
  * @typedef GetApplicationFilterKeysParam
402
251
  * @property {string} [c] - The search filter parameters for collection items.
403
- * All the parameter filtered from filter parameters will be passed in **c**
404
- * parameter in this format.
405
- * **?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"
406
254
  */
407
255
 
408
256
  /**
409
257
  * @typedef GetApplicationFilterValuesParam
410
- * @property {string} filterKey - A `filter_key` is a filter key for a for which
411
- * 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.
412
260
  * @property {string} [c] - The search filter parameters for collection items.
413
- * All the parameter filtered from filter parameters will be passed in **c**
414
- * parameter in this format.
415
- * **?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"
416
263
  * @property {string} [collectionId] - A `collection_id` is a unique identifier
417
- * for a particular collection. channel.
264
+ * for a particular collection.
418
265
  * @property {number} [pageNo] - The page number to navigate through the given
419
266
  * set of results
420
267
  * @property {number} [pageSize] - Number of items to retrieve in each page.
421
268
  * Default is 10.
422
- * @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.
423
273
  */
424
274
 
425
275
  /**
@@ -451,17 +301,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
451
301
  * @property {string[]} [itemIds] - Item Ids of product
452
302
  */
453
303
 
454
- /**
455
- * @typedef GetAutocompleteConfigParam
456
- * @property {number} [pageNo] - The page number to navigate through the given
457
- * set of results
458
- * @property {number} [pageSize] - Number of items to retrieve in each page.
459
- * 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.
464
- */
304
+ /** @typedef GetAutocompleteConfigParam */
465
305
 
466
306
  /**
467
307
  * @typedef GetAutocompleteKeywordDetailParam
@@ -469,23 +309,11 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
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,81 +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
- * @property {string} [startDate] - Date that filters the jobs created after this date
681
- * @property {string} [endDate] - Date that filters the jobs created before this date
682
- * @property {string[]} [stage] - Filter jobs by the stage
683
- * @property {boolean} [isActive] - Filter active or inactive jobs
684
- * @property {string} [q] - Pass unique identifier for a particular job to poll
685
- * @property {string[]} [type] - Pass type for a particular job to poll
686
- */
687
-
688
- /**
689
- * @typedef PollProductPriceFactoryBulkJobParam
690
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
691
- * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job.
692
- */
693
-
694
- /**
695
- * @typedef ProcessBulkSynonymsParam
696
- * @property {CatalogPlatformModel.SynonymBulkProcessRequestSchema} body
697
- */
698
-
699
- /**
700
- * @typedef ProcessProductPriceFactoryBulkJobParam
701
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
702
- * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job.
703
- * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body
704
- */
705
-
706
- /**
707
- * @typedef SampleBulkSynonymsFileParam
708
- * @property {string} type - Type of the file
709
- */
710
-
711
- /**
712
- * @typedef SaveMerchandisingRulesParam
713
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
714
- * unique identifier for a particular merchandising rule.
715
- * @property {CatalogPlatformModel.MerchandisingRuleSave} body
716
- */
717
-
718
420
  /**
719
421
  * @typedef UpdateAllowSingleParam
720
- * @property {CatalogPlatformModel.AllowSingleRequest} body
422
+ * @property {CatalogPlatformModel.AllowSingleRequestSchema} body
721
423
  */
722
424
 
723
425
  /**
724
426
  * @typedef UpdateAppBrandParam
725
- * @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.
726
429
  * @property {CatalogPlatformModel.ApplicationBrandJson} body
727
430
  */
728
431
 
729
432
  /**
730
433
  * @typedef UpdateAppCategoryParam
731
- * @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.
732
436
  * @property {CatalogPlatformModel.ApplicationCategoryJson} body
733
437
  */
734
438
 
@@ -739,8 +443,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
739
443
 
740
444
  /**
741
445
  * @typedef UpdateAppDepartmentParam
742
- * @property {number} departmentUid - Department id for which the custom_json is
743
- * associated.
446
+ * @property {number} departmentUid - A `department id` is a unique identifier
447
+ * for a particular department.
744
448
  * @property {CatalogPlatformModel.ApplicationDepartmentJson} body
745
449
  */
746
450
 
@@ -752,7 +456,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
752
456
 
753
457
  /**
754
458
  * @typedef UpdateAppProductParam
755
- * @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.
756
460
  * @property {CatalogPlatformModel.ApplicationItemMeta} body
757
461
  */
758
462
 
@@ -768,13 +472,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
768
472
  * @property {CatalogPlatformModel.CreateAutocompleteKeyword} body
769
473
  */
770
474
 
771
- /**
772
- * @typedef UpdateAutocompleteSettingsParam
773
- * @property {string} id - An `id` is a unique identifier for a particular
774
- * autocomplete settings config.
775
- * @property {CatalogPlatformModel.AutocompleteRequestSchema} body
776
- */
777
-
778
475
  /**
779
476
  * @typedef UpdateCollectionParam
780
477
  * @property {string} id - A `id` is a unique identifier of a collection.
@@ -783,7 +480,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
783
480
 
784
481
  /**
785
482
  * @typedef UpdateDefaultSortParam
786
- * @property {CatalogPlatformModel.DefaultKeyRequest} body
483
+ * @property {CatalogPlatformModel.DefaultKeyRequestSchema} body
787
484
  */
788
485
 
789
486
  /**
@@ -801,47 +498,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
801
498
  * particular listing configuration type.
802
499
  * @property {string} configId - A `config_id` is a unique identifier of a
803
500
  * particular configuration.
804
- * @property {CatalogPlatformModel.AppConfigurationsFilterResponse} body
805
- */
806
-
807
- /**
808
- * @typedef UpdateMerchandisingRuleBoostActionParam
809
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
810
- * unique identifier for a particular merchandising rule.
811
- * @property {CatalogPlatformModel.PostMerchandisingRuleBoostAction} body
812
- */
813
-
814
- /**
815
- * @typedef UpdateMerchandisingRuleBuryActionParam
816
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
817
- * unique identifier for a particular merchandising rule.
818
- * @property {CatalogPlatformModel.PostMerchandisingRuleBoostAction} body
819
- */
820
-
821
- /**
822
- * @typedef UpdateMerchandisingRuleHideActionParam
823
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
824
- * unique identifier for a particular merchandising rule.
825
- * @property {CatalogPlatformModel.HideRequest} body
826
- */
827
-
828
- /**
829
- * @typedef UpdateMerchandisingRulePinActionParam
830
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
831
- * unique identifier for a particular merchandising rule.
832
- * @property {CatalogPlatformModel.PinRequest} body
833
- */
834
-
835
- /**
836
- * @typedef UpdateMerchandisingRuleQueryParam
837
- * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a
838
- * unique identifier for a particular merchandising rule.
839
- * @property {CatalogPlatformModel.MerchandisingRuleQueryPost} body
501
+ * @property {CatalogPlatformModel.AppConfigurationsSort} body
840
502
  */
841
503
 
842
504
  /**
843
505
  * @typedef UpdateSearchConfigurationParam
844
- * @property {CatalogPlatformModel.UpdateSearchConfigurationRequest} body
506
+ * @property {CatalogPlatformModel.UpdateSearchConfigurationRequestSchema} body
845
507
  */
846
508
 
847
509
  /**
@@ -851,37 +513,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
851
513
  * @property {CatalogPlatformModel.CreateSearchKeyword} body
852
514
  */
853
515
 
854
- /**
855
- * @typedef UpdateSearchRerankConfigurationParam
856
- * @property {string} id - An `id` is the identifier for a particular search
857
- * rerank configuration. channel.
858
- * @property {CatalogPlatformModel.UpdateSearchRerankRequest} body
859
- */
860
-
861
- /**
862
- * @typedef UpdateSynonymsParam
863
- * @property {string} id - An `id` is a unique identifier for a particular
864
- * synonym channel.
865
- * @property {CatalogPlatformModel.SynonymCreateRequestSchema} body
866
- */
867
-
868
- /**
869
- * @typedef UploadSynonymsParam
870
- * @property {CatalogPlatformModel.SynonymUploadRequestSchema} body
871
- */
872
-
873
- /**
874
- * @typedef ValidateBulkSynonymsParam
875
- * @property {CatalogPlatformModel.SynonymBulkValidateRequestSchema} body
876
- */
877
-
878
- /**
879
- * @typedef ValidateProductPriceFactoryBulkJobParam
880
- * @property {string} id - An `id` is a unique identifier for a particular price factory.
881
- * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job.
882
- * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body
883
- */
884
-
885
516
  class CatalogPlatformApplicationValidator {
886
517
  /** @returns {AddCollectionItemsParam} */
887
518
  static addCollectionItems() {
@@ -891,21 +522,6 @@ class CatalogPlatformApplicationValidator {
891
522
  }).required();
892
523
  }
893
524
 
894
- /** @returns {AddProductsInPriceFactoryByZoneIdParam} */
895
- static addProductsInPriceFactoryByZoneId() {
896
- return Joi.object({
897
- id: Joi.string().allow("").required(),
898
- body: CatalogPlatformModel.CreatePriceFactoryProductRequest().required(),
899
- }).required();
900
- }
901
-
902
- /** @returns {ClearCollectionItemsPriorityParam} */
903
- static clearCollectionItemsPriority() {
904
- return Joi.object({
905
- id: Joi.string().allow("").required(),
906
- }).required();
907
- }
908
-
909
525
  /** @returns {CreateAppCategoryReturnConfigurationParam} */
910
526
  static createAppCategoryReturnConfiguration() {
911
527
  return Joi.object({
@@ -913,13 +529,6 @@ class CatalogPlatformApplicationValidator {
913
529
  }).required();
914
530
  }
915
531
 
916
- /** @returns {CreateAppPriceFactoryParam} */
917
- static createAppPriceFactory() {
918
- return Joi.object({
919
- body: CatalogPlatformModel.CreateAppPriceFactoryRequestSchema().required(),
920
- }).required();
921
- }
922
-
923
532
  /** @returns {CreateAppReturnConfigurationParam} */
924
533
  static createAppReturnConfiguration() {
925
534
  return Joi.object({
@@ -927,16 +536,16 @@ class CatalogPlatformApplicationValidator {
927
536
  }).required();
928
537
  }
929
538
 
930
- /** @returns {CreateAutocompleteSettingsParam} */
931
- static createAutocompleteSettings() {
932
- return Joi.object({
933
- body: CatalogPlatformModel.AutocompleteRequestSchema().required(),
934
- }).required();
935
- }
936
-
937
539
  /** @returns {CreateCollectionParam} */
938
540
  static createCollection() {
939
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(),
940
549
  body: CatalogPlatformModel.CreateCollection().required(),
941
550
  }).required();
942
551
  }
@@ -974,7 +583,7 @@ class CatalogPlatformApplicationValidator {
974
583
  static createGroupConfiguration() {
975
584
  return Joi.object({
976
585
  configType: Joi.string().allow("").required(),
977
- body: CatalogPlatformModel.AppConfigurationCreateDetail().required(),
586
+ body: CatalogPlatformModel.AppConfigurationDetail().required(),
978
587
  }).required();
979
588
  }
980
589
 
@@ -982,75 +591,14 @@ class CatalogPlatformApplicationValidator {
982
591
  static createListingConfiguration() {
983
592
  return Joi.object({
984
593
  configType: Joi.string().allow("").required(),
985
- body: CatalogPlatformModel.AppConfigurationsFilter().required(),
986
- }).required();
987
- }
988
-
989
- /** @returns {CreateMerchandisingRuleBoostActionParam} */
990
- static createMerchandisingRuleBoostAction() {
991
- return Joi.object({
992
- merchandisingRuleId: Joi.string().allow("").required(),
993
- body: CatalogPlatformModel.PostMerchandisingRuleBoostAction().required(),
994
- }).required();
995
- }
996
-
997
- /** @returns {CreateMerchandisingRuleBuryActionParam} */
998
- static createMerchandisingRuleBuryAction() {
999
- return Joi.object({
1000
- merchandisingRuleId: Joi.string().allow("").required(),
1001
- body: CatalogPlatformModel.PostMerchandisingRuleBoostAction().required(),
1002
- }).required();
1003
- }
1004
-
1005
- /** @returns {CreateMerchandisingRuleHideActionParam} */
1006
- static createMerchandisingRuleHideAction() {
1007
- return Joi.object({
1008
- merchandisingRuleId: Joi.string().allow("").required(),
1009
- body: CatalogPlatformModel.HideRequest().required(),
1010
- }).required();
1011
- }
1012
-
1013
- /** @returns {CreateMerchandisingRulePinActionParam} */
1014
- static createMerchandisingRulePinAction() {
1015
- return Joi.object({
1016
- merchandisingRuleId: Joi.string().allow("").required(),
1017
- body: CatalogPlatformModel.PinRequest().required(),
1018
- }).required();
1019
- }
1020
-
1021
- /** @returns {CreateMerchandisingRuleQueryParam} */
1022
- static createMerchandisingRuleQuery() {
1023
- return Joi.object({
1024
- body: CatalogPlatformModel.MerchandisingRuleQueryPost().required(),
1025
- }).required();
1026
- }
1027
-
1028
- /** @returns {CreateProductPriceFactoryBulkJobParam} */
1029
- static createProductPriceFactoryBulkJob() {
1030
- return Joi.object({
1031
- id: Joi.string().allow("").required(),
1032
- body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest().required(),
594
+ body: CatalogPlatformModel.AppConfigurationsSort().required(),
1033
595
  }).required();
1034
596
  }
1035
597
 
1036
598
  /** @returns {CreateSearchConfigurationParam} */
1037
599
  static createSearchConfiguration() {
1038
600
  return Joi.object({
1039
- body: CatalogPlatformModel.CreateSearchConfigurationRequest().required(),
1040
- }).required();
1041
- }
1042
-
1043
- /** @returns {CreateSearchRerankParam} */
1044
- static createSearchRerank() {
1045
- return Joi.object({
1046
- body: CatalogPlatformModel.CreateSearchRerankRequest().required(),
1047
- }).required();
1048
- }
1049
-
1050
- /** @returns {CreateSynonymsParam} */
1051
- static createSynonyms() {
1052
- return Joi.object({
1053
- body: CatalogPlatformModel.SynonymCreateRequestSchema().required(),
601
+ body: CatalogPlatformModel.CreateSearchConfigurationRequestSchema().required(),
1054
602
  }).required();
1055
603
  }
1056
604
 
@@ -1091,20 +639,6 @@ class CatalogPlatformApplicationValidator {
1091
639
  }).required();
1092
640
  }
1093
641
 
1094
- /** @returns {DeleteMerchandisingRuleParam} */
1095
- static deleteMerchandisingRule() {
1096
- return Joi.object({
1097
- merchandisingRuleId: Joi.string().allow("").required(),
1098
- }).required();
1099
- }
1100
-
1101
- /** @returns {DeleteMerchandisingRulesPreviewParam} */
1102
- static deleteMerchandisingRulesPreview() {
1103
- return Joi.object({
1104
- merchandisingRuleId: Joi.string().allow("").required(),
1105
- }).required();
1106
- }
1107
-
1108
642
  /** @returns {DeleteSearchConfigurationParam} */
1109
643
  static deleteSearchConfiguration() {
1110
644
  return Joi.object({}).required();
@@ -1117,48 +651,13 @@ class CatalogPlatformApplicationValidator {
1117
651
  }).required();
1118
652
  }
1119
653
 
1120
- /** @returns {DeleteSearchRerankConfigurationParam} */
1121
- static deleteSearchRerankConfiguration() {
1122
- return Joi.object({
1123
- id: Joi.string().allow("").required(),
1124
- }).required();
1125
- }
1126
-
1127
- /** @returns {DeleteSynonymParam} */
1128
- static deleteSynonym() {
1129
- return Joi.object({
1130
- id: Joi.string().allow("").required(),
1131
- }).required();
1132
- }
1133
-
1134
- /** @returns {EditAppPriceFactoryParam} */
1135
- static editAppPriceFactory() {
1136
- return Joi.object({
1137
- id: Joi.string().allow("").required(),
1138
- body: CatalogPlatformModel.EditAppPriceFactoryRequestSchema().required(),
1139
- }).required();
1140
- }
1141
-
1142
- /** @returns {ExportProductsInPriceFactoryParam} */
1143
- static exportProductsInPriceFactory() {
1144
- return Joi.object({
1145
- id: Joi.string().allow("").required(),
1146
- body: CatalogPlatformModel.CreateAppPriceFactoryProductExportJobRequest().required(),
1147
- }).required();
1148
- }
1149
-
1150
- /** @returns {ExportSynonymsParam} */
1151
- static exportSynonyms() {
1152
- return Joi.object({}).required();
1153
- }
1154
-
1155
654
  /** @returns {GetAllCollectionsParam} */
1156
655
  static getAllCollections() {
1157
656
  return Joi.object({
1158
657
  q: Joi.string().allow(""),
1159
658
  scheduleStatus: Joi.string().allow(""),
1160
659
  type: Joi.string().allow(""),
1161
- tag: Joi.array().items(Joi.string().allow("")),
660
+ tags: Joi.array().items(Joi.string().allow("")),
1162
661
  isActive: Joi.boolean(),
1163
662
  pageNo: Joi.number(),
1164
663
  pageSize: Joi.number(),
@@ -1167,12 +666,7 @@ class CatalogPlatformApplicationValidator {
1167
666
 
1168
667
  /** @returns {GetAllSearchKeywordParam} */
1169
668
  static getAllSearchKeyword() {
1170
- return Joi.object({
1171
- pageNo: Joi.number(),
1172
- pageSize: Joi.number(),
1173
- q: Joi.string().allow(""),
1174
- isActive: Joi.boolean(),
1175
- }).required();
669
+ return Joi.object({}).required();
1176
670
  }
1177
671
 
1178
672
  /** @returns {GetAppCategoryReturnConfigParam} */
@@ -1213,52 +707,13 @@ class CatalogPlatformApplicationValidator {
1213
707
  pageSize: Joi.number(),
1214
708
  tags: Joi.array().items(Joi.string().allow("")),
1215
709
  storeTypes: Joi.array().items(Joi.string().allow("")),
1216
- companyUids: Joi.array().items(Joi.number()),
1217
- }).required();
1218
- }
1219
-
1220
- /** @returns {GetAppPriceByIdParam} */
1221
- static getAppPriceById() {
1222
- return Joi.object({
1223
- itemId: Joi.number().required(),
1224
- storeIds: Joi.array().items(Joi.number()),
1225
- factoryTypeIds: Joi.array().items(Joi.string().allow("")),
1226
- sellerId: Joi.number(),
1227
- }).required();
1228
- }
1229
-
1230
- /** @returns {GetAppPriceFactoriesParam} */
1231
- static getAppPriceFactories() {
1232
- return Joi.object({
1233
- isActive: Joi.boolean(),
1234
- factoryTypeId: Joi.string().allow(""),
1235
- code: Joi.string().allow(""),
1236
- pageNo: Joi.number(),
1237
- pageSize: Joi.number(),
1238
- }).required();
1239
- }
1240
-
1241
- /** @returns {GetAppPriceFactoryParam} */
1242
- static getAppPriceFactory() {
1243
- return Joi.object({
1244
- id: Joi.string().allow("").required(),
1245
710
  }).required();
1246
711
  }
1247
712
 
1248
713
  /** @returns {GetAppProductParam} */
1249
714
  static getAppProduct() {
1250
715
  return Joi.object({
1251
- itemId: Joi.number().required(),
1252
- }).required();
1253
- }
1254
-
1255
- /** @returns {GetAppProductPricesParam} */
1256
- static getAppProductPrices() {
1257
- return Joi.object({
1258
- itemIds: Joi.array().items(Joi.number()),
1259
- factoryTypeIds: Joi.array().items(Joi.string().allow("")),
1260
- pageNo: Joi.number(),
1261
- pageSize: Joi.number(),
716
+ itemId: Joi.string().allow("").required(),
1262
717
  }).required();
1263
718
  }
1264
719
 
@@ -1358,12 +813,7 @@ class CatalogPlatformApplicationValidator {
1358
813
 
1359
814
  /** @returns {GetAutocompleteConfigParam} */
1360
815
  static getAutocompleteConfig() {
1361
- return Joi.object({
1362
- pageNo: Joi.number(),
1363
- pageSize: Joi.number(),
1364
- q: Joi.string().allow(""),
1365
- isActive: Joi.boolean(),
1366
- }).required();
816
+ return Joi.object({}).required();
1367
817
  }
1368
818
 
1369
819
  /** @returns {GetAutocompleteKeywordDetailParam} */
@@ -1373,23 +823,6 @@ class CatalogPlatformApplicationValidator {
1373
823
  }).required();
1374
824
  }
1375
825
 
1376
- /** @returns {GetAutocompletePreviewParam} */
1377
- static getAutocompletePreview() {
1378
- return Joi.object({
1379
- q: Joi.string().allow(""),
1380
- categorySuggestion: Joi.number(),
1381
- brandSuggestion: Joi.number(),
1382
- collectionSuggestion: Joi.number(),
1383
- productSuggestion: Joi.number(),
1384
- querySuggestion: Joi.number(),
1385
- }).required();
1386
- }
1387
-
1388
- /** @returns {GetAutocompleteSettingsParam} */
1389
- static getAutocompleteSettings() {
1390
- return Joi.object({}).required();
1391
- }
1392
-
1393
826
  /** @returns {GetCatalogConfigurationParam} */
1394
827
  static getCatalogConfiguration() {
1395
828
  return Joi.object({}).required();
@@ -1421,11 +854,9 @@ class CatalogPlatformApplicationValidator {
1421
854
  return Joi.object({
1422
855
  id: Joi.string().allow("").required(),
1423
856
  sortOn: Joi.string().allow(""),
857
+ pageId: Joi.string().allow(""),
1424
858
  pageSize: Joi.number(),
1425
859
  pageNo: Joi.number(),
1426
- isPinned: Joi.boolean(),
1427
- q: Joi.string().allow(""),
1428
- isExcluded: Joi.boolean(),
1429
860
  }).required();
1430
861
  }
1431
862
 
@@ -1441,6 +872,9 @@ class CatalogPlatformApplicationValidator {
1441
872
  return Joi.object({
1442
873
  configType: Joi.string().allow("").required(),
1443
874
  templateSlug: Joi.string().allow(""),
875
+ pageNo: Joi.number(),
876
+ pageSize: Joi.number(),
877
+ q: Joi.string().allow(""),
1444
878
  }).required();
1445
879
  }
1446
880
 
@@ -1449,13 +883,6 @@ class CatalogPlatformApplicationValidator {
1449
883
  return Joi.object({}).required();
1450
884
  }
1451
885
 
1452
- /** @returns {GetConfigurationsFilterMetadataParam} */
1453
- static getConfigurationsFilterMetadata() {
1454
- return Joi.object({
1455
- filter: Joi.string().allow("").required(),
1456
- }).required();
1457
- }
1458
-
1459
886
  /** @returns {GetDepartmentsParam} */
1460
887
  static getDepartments() {
1461
888
  return Joi.object({}).required();
@@ -1490,58 +917,6 @@ class CatalogPlatformApplicationValidator {
1490
917
  pageNo: Joi.number(),
1491
918
  pageSize: Joi.number(),
1492
919
  search: Joi.string().allow(""),
1493
- uids: Joi.array().items(Joi.number()),
1494
- }).required();
1495
- }
1496
-
1497
- /** @returns {GetLivePreviewParam} */
1498
- static getLivePreview() {
1499
- return Joi.object({
1500
- merchandisingRuleId: Joi.string().allow("").required(),
1501
- searchKeyword: Joi.string().allow(""),
1502
- }).required();
1503
- }
1504
-
1505
- /** @returns {GetMerchandisingQueryParam} */
1506
- static getMerchandisingQuery() {
1507
- return Joi.object({
1508
- merchandisingRuleId: Joi.string().allow("").required(),
1509
- }).required();
1510
- }
1511
-
1512
- /** @returns {GetMerchandisingRuleBoostActionParam} */
1513
- static getMerchandisingRuleBoostAction() {
1514
- return Joi.object({
1515
- merchandisingRuleId: Joi.string().allow("").required(),
1516
- }).required();
1517
- }
1518
-
1519
- /** @returns {GetMerchandisingRuleBuryActionParam} */
1520
- static getMerchandisingRuleBuryAction() {
1521
- return Joi.object({
1522
- merchandisingRuleId: Joi.string().allow("").required(),
1523
- }).required();
1524
- }
1525
-
1526
- /** @returns {GetMerchandisingRuleHideActionParam} */
1527
- static getMerchandisingRuleHideAction() {
1528
- return Joi.object({
1529
- merchandisingRuleId: Joi.string().allow("").required(),
1530
- }).required();
1531
- }
1532
-
1533
- /** @returns {GetMerchandisingRulePinActionParam} */
1534
- static getMerchandisingRulePinAction() {
1535
- return Joi.object({
1536
- merchandisingRuleId: Joi.string().allow("").required(),
1537
- }).required();
1538
- }
1539
-
1540
- /** @returns {GetMerchandisingRulesParam} */
1541
- static getMerchandisingRules() {
1542
- return Joi.object({
1543
- pageId: Joi.string().allow(""),
1544
- pageSize: Joi.number(),
1545
920
  }).required();
1546
921
  }
1547
922
 
@@ -1552,18 +927,6 @@ class CatalogPlatformApplicationValidator {
1552
927
  }).required();
1553
928
  }
1554
929
 
1555
- /** @returns {GetProductsInPriceFactoryByZoneIdParam} */
1556
- static getProductsInPriceFactoryByZoneId() {
1557
- return Joi.object({
1558
- id: Joi.string().allow("").required(),
1559
- zoneId: Joi.string().allow("").required(),
1560
- itemId: Joi.number(),
1561
- q: Joi.string().allow(""),
1562
- pageNo: Joi.number(),
1563
- pageSize: Joi.number(),
1564
- }).required();
1565
- }
1566
-
1567
930
  /** @returns {GetQueryFiltersParam} */
1568
931
  static getQueryFilters() {
1569
932
  return Joi.object({}).required();
@@ -1581,90 +944,10 @@ class CatalogPlatformApplicationValidator {
1581
944
  }).required();
1582
945
  }
1583
946
 
1584
- /** @returns {GetSearchRerankParam} */
1585
- static getSearchRerank() {
1586
- return Joi.object({}).required();
1587
- }
1588
-
1589
- /** @returns {GetSearchRerankDetailParam} */
1590
- static getSearchRerankDetail() {
1591
- return Joi.object({
1592
- id: Joi.string().allow("").required(),
1593
- }).required();
1594
- }
1595
-
1596
- /** @returns {GetSynonymsParam} */
1597
- static getSynonyms() {
1598
- return Joi.object({
1599
- id: Joi.string().allow(""),
1600
- name: Joi.string().allow(""),
1601
- type: Joi.string().allow(""),
1602
- }).required();
1603
- }
1604
-
1605
- /** @returns {PollBulkSynonymsParam} */
1606
- static pollBulkSynonyms() {
1607
- return Joi.object({
1608
- id: Joi.string().allow("").required(),
1609
- }).required();
1610
- }
1611
-
1612
- /** @returns {PollPriceFactoryJobsParam} */
1613
- static pollPriceFactoryJobs() {
1614
- return Joi.object({
1615
- id: Joi.string().allow("").required(),
1616
- startDate: Joi.string().allow(""),
1617
- endDate: Joi.string().allow(""),
1618
- stage: Joi.array().items(Joi.string().allow("")),
1619
- isActive: Joi.boolean(),
1620
- q: Joi.string().allow(""),
1621
- type: Joi.array().items(Joi.string().allow("")),
1622
- }).required();
1623
- }
1624
-
1625
- /** @returns {PollProductPriceFactoryBulkJobParam} */
1626
- static pollProductPriceFactoryBulkJob() {
1627
- return Joi.object({
1628
- id: Joi.string().allow("").required(),
1629
- jobId: Joi.string().allow("").required(),
1630
- }).required();
1631
- }
1632
-
1633
- /** @returns {ProcessBulkSynonymsParam} */
1634
- static processBulkSynonyms() {
1635
- return Joi.object({
1636
- body: CatalogPlatformModel.SynonymBulkProcessRequestSchema().required(),
1637
- }).required();
1638
- }
1639
-
1640
- /** @returns {ProcessProductPriceFactoryBulkJobParam} */
1641
- static processProductPriceFactoryBulkJob() {
1642
- return Joi.object({
1643
- id: Joi.string().allow("").required(),
1644
- jobId: Joi.string().allow("").required(),
1645
- body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest().required(),
1646
- }).required();
1647
- }
1648
-
1649
- /** @returns {SampleBulkSynonymsFileParam} */
1650
- static sampleBulkSynonymsFile() {
1651
- return Joi.object({
1652
- type: Joi.string().allow("").required(),
1653
- }).required();
1654
- }
1655
-
1656
- /** @returns {SaveMerchandisingRulesParam} */
1657
- static saveMerchandisingRules() {
1658
- return Joi.object({
1659
- merchandisingRuleId: Joi.string().allow("").required(),
1660
- body: CatalogPlatformModel.MerchandisingRuleSave().required(),
1661
- }).required();
1662
- }
1663
-
1664
947
  /** @returns {UpdateAllowSingleParam} */
1665
948
  static updateAllowSingle() {
1666
949
  return Joi.object({
1667
- body: CatalogPlatformModel.AllowSingleRequest().required(),
950
+ body: CatalogPlatformModel.AllowSingleRequestSchema().required(),
1668
951
  }).required();
1669
952
  }
1670
953
 
@@ -1679,7 +962,7 @@ class CatalogPlatformApplicationValidator {
1679
962
  /** @returns {UpdateAppCategoryParam} */
1680
963
  static updateAppCategory() {
1681
964
  return Joi.object({
1682
- categoryUid: Joi.number().required(),
965
+ categoryUid: Joi.string().allow("").required(),
1683
966
  body: CatalogPlatformModel.ApplicationCategoryJson().required(),
1684
967
  }).required();
1685
968
  }
@@ -1730,14 +1013,6 @@ class CatalogPlatformApplicationValidator {
1730
1013
  }).required();
1731
1014
  }
1732
1015
 
1733
- /** @returns {UpdateAutocompleteSettingsParam} */
1734
- static updateAutocompleteSettings() {
1735
- return Joi.object({
1736
- id: Joi.string().allow("").required(),
1737
- body: CatalogPlatformModel.AutocompleteRequestSchema().required(),
1738
- }).required();
1739
- }
1740
-
1741
1016
  /** @returns {UpdateCollectionParam} */
1742
1017
  static updateCollection() {
1743
1018
  return Joi.object({
@@ -1749,7 +1024,7 @@ class CatalogPlatformApplicationValidator {
1749
1024
  /** @returns {UpdateDefaultSortParam} */
1750
1025
  static updateDefaultSort() {
1751
1026
  return Joi.object({
1752
- body: CatalogPlatformModel.DefaultKeyRequest().required(),
1027
+ body: CatalogPlatformModel.DefaultKeyRequestSchema().required(),
1753
1028
  }).required();
1754
1029
  }
1755
1030
 
@@ -1767,54 +1042,14 @@ class CatalogPlatformApplicationValidator {
1767
1042
  return Joi.object({
1768
1043
  configType: Joi.string().allow("").required(),
1769
1044
  configId: Joi.string().allow("").required(),
1770
- body: CatalogPlatformModel.AppConfigurationsFilterResponse().required(),
1771
- }).required();
1772
- }
1773
-
1774
- /** @returns {UpdateMerchandisingRuleBoostActionParam} */
1775
- static updateMerchandisingRuleBoostAction() {
1776
- return Joi.object({
1777
- merchandisingRuleId: Joi.string().allow("").required(),
1778
- body: CatalogPlatformModel.PostMerchandisingRuleBoostAction().required(),
1779
- }).required();
1780
- }
1781
-
1782
- /** @returns {UpdateMerchandisingRuleBuryActionParam} */
1783
- static updateMerchandisingRuleBuryAction() {
1784
- return Joi.object({
1785
- merchandisingRuleId: Joi.string().allow("").required(),
1786
- body: CatalogPlatformModel.PostMerchandisingRuleBoostAction().required(),
1787
- }).required();
1788
- }
1789
-
1790
- /** @returns {UpdateMerchandisingRuleHideActionParam} */
1791
- static updateMerchandisingRuleHideAction() {
1792
- return Joi.object({
1793
- merchandisingRuleId: Joi.string().allow("").required(),
1794
- body: CatalogPlatformModel.HideRequest().required(),
1795
- }).required();
1796
- }
1797
-
1798
- /** @returns {UpdateMerchandisingRulePinActionParam} */
1799
- static updateMerchandisingRulePinAction() {
1800
- return Joi.object({
1801
- merchandisingRuleId: Joi.string().allow("").required(),
1802
- body: CatalogPlatformModel.PinRequest().required(),
1803
- }).required();
1804
- }
1805
-
1806
- /** @returns {UpdateMerchandisingRuleQueryParam} */
1807
- static updateMerchandisingRuleQuery() {
1808
- return Joi.object({
1809
- merchandisingRuleId: Joi.string().allow("").required(),
1810
- body: CatalogPlatformModel.MerchandisingRuleQueryPost().required(),
1045
+ body: CatalogPlatformModel.AppConfigurationsSort().required(),
1811
1046
  }).required();
1812
1047
  }
1813
1048
 
1814
1049
  /** @returns {UpdateSearchConfigurationParam} */
1815
1050
  static updateSearchConfiguration() {
1816
1051
  return Joi.object({
1817
- body: CatalogPlatformModel.UpdateSearchConfigurationRequest().required(),
1052
+ body: CatalogPlatformModel.UpdateSearchConfigurationRequestSchema().required(),
1818
1053
  }).required();
1819
1054
  }
1820
1055
 
@@ -1825,45 +1060,6 @@ class CatalogPlatformApplicationValidator {
1825
1060
  body: CatalogPlatformModel.CreateSearchKeyword().required(),
1826
1061
  }).required();
1827
1062
  }
1828
-
1829
- /** @returns {UpdateSearchRerankConfigurationParam} */
1830
- static updateSearchRerankConfiguration() {
1831
- return Joi.object({
1832
- id: Joi.string().allow("").required(),
1833
- body: CatalogPlatformModel.UpdateSearchRerankRequest().required(),
1834
- }).required();
1835
- }
1836
-
1837
- /** @returns {UpdateSynonymsParam} */
1838
- static updateSynonyms() {
1839
- return Joi.object({
1840
- id: Joi.string().allow("").required(),
1841
- body: CatalogPlatformModel.SynonymCreateRequestSchema().required(),
1842
- }).required();
1843
- }
1844
-
1845
- /** @returns {UploadSynonymsParam} */
1846
- static uploadSynonyms() {
1847
- return Joi.object({
1848
- body: CatalogPlatformModel.SynonymUploadRequestSchema().required(),
1849
- }).required();
1850
- }
1851
-
1852
- /** @returns {ValidateBulkSynonymsParam} */
1853
- static validateBulkSynonyms() {
1854
- return Joi.object({
1855
- body: CatalogPlatformModel.SynonymBulkValidateRequestSchema().required(),
1856
- }).required();
1857
- }
1858
-
1859
- /** @returns {ValidateProductPriceFactoryBulkJobParam} */
1860
- static validateProductPriceFactoryBulkJob() {
1861
- return Joi.object({
1862
- id: Joi.string().allow("").required(),
1863
- jobId: Joi.string().allow("").required(),
1864
- body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest().required(),
1865
- }).required();
1866
- }
1867
1063
  }
1868
1064
 
1869
1065
  module.exports = CatalogPlatformApplicationValidator;