@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1

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 (298) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
  6. package/sdk/application/Cart/CartApplicationClient.js +270 -139
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +3 -3
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +197 -36
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  20. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  24. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  26. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  32. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  33. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  34. package/sdk/application/User/UserApplicationClient.js +9 -57
  35. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  36. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  37. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  41. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  42. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  43. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  44. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  45. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  46. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  47. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  48. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  56. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  58. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  59. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  66. package/sdk/partner/PartnerClient.d.ts +6 -0
  67. package/sdk/partner/PartnerClient.js +9 -0
  68. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  69. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  70. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  71. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  72. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  73. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  74. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  75. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  76. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  77. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  78. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  79. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  80. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  81. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  82. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
  83. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
  84. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  85. package/sdk/partner/index.d.ts +3 -0
  86. package/sdk/partner/index.js +6 -0
  87. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  88. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  89. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  90. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  95. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  96. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  97. package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
  98. package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
  99. package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
  100. package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
  101. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
  102. package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
  103. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
  104. package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
  105. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  106. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  107. package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
  108. package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
  111. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
  112. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
  113. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
  114. package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
  115. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
  116. package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
  117. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
  118. package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
  119. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  120. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  121. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  122. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
  125. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  126. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  127. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  128. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  129. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
  130. package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
  131. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  132. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  137. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  138. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  141. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  142. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  143. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  144. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  145. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
  146. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
  147. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  148. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  149. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
  150. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
  151. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  152. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  153. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  154. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  155. package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
  156. package/sdk/platform/Content/ContentPlatformModel.js +893 -582
  157. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  158. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  159. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  160. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  161. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  162. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  163. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  164. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  167. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  168. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  169. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  170. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  171. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  172. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  173. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  174. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  175. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  176. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  177. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  178. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  179. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  180. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  181. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  182. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  183. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  184. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  185. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  186. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  187. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  188. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  189. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  190. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  191. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  192. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  193. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  194. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  195. package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
  196. package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
  197. package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
  198. package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
  199. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  200. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  201. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  202. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  203. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  204. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  205. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  206. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  207. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  208. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  209. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  210. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  211. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
  212. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
  213. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  214. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  215. package/sdk/platform/PlatformClient.d.ts +2 -0
  216. package/sdk/platform/PlatformClient.js +4 -0
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  220. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  221. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  222. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
  231. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
  232. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
  233. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  234. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  235. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  236. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  237. package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
  238. package/sdk/platform/Share/SharePlatformModel.js +3 -43
  239. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
  240. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
  241. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
  242. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
  243. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  244. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  245. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  246. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  247. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  248. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  249. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
  250. package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
  251. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
  252. package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
  253. package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
  254. package/sdk/platform/User/UserPlatformModel.js +204 -65
  255. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  256. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  257. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
  258. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
  259. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  260. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  261. package/sdk/platform/index.d.ts +1 -0
  262. package/sdk/platform/index.js +2 -0
  263. package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
  264. package/sdk/public/Billing/BillingPublicClient.js +397 -0
  265. package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
  266. package/sdk/public/Billing/BillingPublicModel.js +560 -0
  267. package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
  268. package/sdk/public/Billing/BillingPublicValidator.js +50 -0
  269. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  270. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  271. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  272. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  273. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  274. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  275. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  276. package/sdk/public/Content/ContentPublicClient.js +183 -0
  277. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  278. package/sdk/public/Content/ContentPublicModel.js +47 -1
  279. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  280. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  281. package/sdk/public/PublicClient.d.ts +2 -2
  282. package/sdk/public/PublicClient.js +2 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  286. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/public/index.d.ts +1 -1
  290. package/sdk/public/index.js +1 -1
  291. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  292. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  293. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  294. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  295. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  296. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  297. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  298. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -8,28 +8,39 @@ 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
+
11
22
  /**
12
23
  * @typedef CreateAppCategoryReturnConfigurationParam
13
24
  * @property {CatalogPlatformModel.BaseAppCategoryReturnConfig} body
14
25
  */
15
26
 
27
+ /**
28
+ * @typedef CreateAppPriceFactoryParam
29
+ * @property {CatalogPlatformModel.CreateAppPriceFactoryRequestSchema} body
30
+ */
31
+
16
32
  /**
17
33
  * @typedef CreateAppReturnConfigurationParam
18
34
  * @property {CatalogPlatformModel.CreateUpdateAppReturnConfig} body
19
35
  */
20
36
 
37
+ /**
38
+ * @typedef CreateAutocompleteSettingsParam
39
+ * @property {CatalogPlatformModel.AutocompleteRequestSchema} body
40
+ */
41
+
21
42
  /**
22
43
  * @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.
33
44
  * @property {CatalogPlatformModel.CreateCollection} body
34
45
  */
35
46
 
@@ -58,19 +69,68 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
58
69
  * @typedef CreateGroupConfigurationParam
59
70
  * @property {string} configType - A `config_type` is a unique identifier for a
60
71
  * particular group configuration type.
61
- * @property {CatalogPlatformModel.AppConfigurationDetail} body
72
+ * @property {CatalogPlatformModel.AppConfigurationCreateDetail} body
62
73
  */
63
74
 
64
75
  /**
65
76
  * @typedef CreateListingConfigurationParam
66
77
  * @property {string} configType - A `config_type` is a unique identifier for a
67
78
  * particular listing configuration type.
68
- * @property {CatalogPlatformModel.AppConfigurationsSort} body
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
69
119
  */
70
120
 
71
121
  /**
72
122
  * @typedef CreateSearchConfigurationParam
73
- * @property {CatalogPlatformModel.CreateSearchConfigurationRequestSchema} body
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
74
134
  */
75
135
 
76
136
  /**
@@ -105,6 +165,18 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
105
165
  * particular configuration.
106
166
  */
107
167
 
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
+
108
180
  /** @typedef DeleteSearchConfigurationParam */
109
181
 
110
182
  /**
@@ -113,12 +185,38 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
113
185
  * detail. Pass the `id` of the keywords which you want to delete.
114
186
  */
115
187
 
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
+
116
214
  /**
117
215
  * @typedef GetAllCollectionsParam
118
216
  * @property {string} [q] - Get collection list filtered by q string,
119
217
  * @property {string} [scheduleStatus] - Get collection list filtered by scheduled status,
120
218
  * @property {string} [type] - Type of the collections
121
- * @property {string[]} [tags] - Each response will contain next_id param, which
219
+ * @property {string[]} [tag] - Each response will contain next_id param, which
122
220
  * should be sent back to make pagination work.
123
221
  * @property {boolean} [isActive] - Get collections filtered by active status.
124
222
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -127,7 +225,17 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
127
225
  * Default is 12.
128
226
  */
129
227
 
130
- /** @typedef GetAllSearchKeywordParam */
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
+ */
131
239
 
132
240
  /**
133
241
  * @typedef GetAppCategoryReturnConfigParam
@@ -175,11 +283,54 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
175
283
  * Default is 20.
176
284
  * @property {string[]} [tags] - Get locations filtered by tags.
177
285
  * @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.
178
317
  */
179
318
 
180
319
  /**
181
320
  * @typedef GetAppProductParam
182
- * @property {string} itemId - Product id for a particular product.
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.
183
334
  */
184
335
 
185
336
  /**
@@ -198,13 +349,42 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
198
349
 
199
350
  /** @typedef GetAppReturnConfigurationParam */
200
351
 
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
+
201
381
  /**
202
382
  * @typedef GetApplicationBrandListingParam
203
383
  * @property {number} [pageNo] - The page number to navigate through the given
204
384
  * set of results
205
385
  * @property {number} [pageSize] - Number of items to retrieve in each page.
206
386
  * Default is 12.
207
- * @property {string} [q] - Search query with brand name. Use this parameter to
387
+ * @property {string} [q] - Search query with brand name.Use this parameter to
208
388
  * search brands by brand name.
209
389
  */
210
390
 
@@ -213,12 +393,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
213
393
  * @property {string} [department] - The name of the department. Use this
214
394
  * parameter to filter products by a particular department. See below the list
215
395
  * of available departments. You can retrieve available departments from the
216
- * "v1.0/departments/" API
396
+ * **v1.0/departments/** API
217
397
  * @property {number} [pageNo] - The page number to navigate through the given
218
398
  * set of results
219
399
  * @property {number} [pageSize] - Number of items to retrieve in each page.
220
400
  * Default is 12.
221
- * @property {string} [q] - Search query with brand name. Use this parameter to
401
+ * @property {string} [q] - Search query with brand name.Use this parameter to
222
402
  * search brands by brand name.
223
403
  * @property {number[]} [brandId] - Helps to sort the brands list on the basis
224
404
  * of uid list.
@@ -232,8 +412,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
232
412
  * set of results
233
413
  * @property {number} [pageSize] - Number of items to retrieve in each page.
234
414
  * Default is 12.
235
- * @property {string} [q] - A search query string. Use this parameter to filter
236
- * results based on a keyword or specific value.
415
+ * @property {string} [q] - Search query with brand name.Use this parameter to
416
+ * search brands by brand name.
237
417
  */
238
418
 
239
419
  /**
@@ -242,78 +422,70 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
242
422
  * set of results
243
423
  * @property {number} [pageSize] - Number of items to retrieve in each page.
244
424
  * Default is 12.
245
- * @property {string} [q] - A search query string. Use this parameter to filter
246
- * results based on a keyword or specific value.
425
+ * @property {string} [q] - Search query with brand name.Use this parameter to
426
+ * search department by name.
247
427
  */
248
428
 
249
429
  /**
250
430
  * @typedef GetApplicationFilterKeysParam
251
431
  * @property {string} [c] - The search filter parameters for collection items.
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"
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**
254
435
  */
255
436
 
256
437
  /**
257
438
  * @typedef GetApplicationFilterValuesParam
258
- * @property {string} filterKey - A `filter_key` is a filter key which returns
259
- * all the available filter values.
439
+ * @property {string} filterKey - A `filter_key` is a filter key for a for which
440
+ * all the available filter values will returned. channel.
260
441
  * @property {string} [c] - The search filter parameters for collection items.
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"
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**
263
445
  * @property {string} [collectionId] - A `collection_id` is a unique identifier
264
- * for a particular collection.
446
+ * for a particular collection. channel.
265
447
  * @property {number} [pageNo] - The page number to navigate through the given
266
448
  * set of results
267
449
  * @property {number} [pageSize] - Number of items to retrieve in each page.
268
450
  * Default is 10.
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.
451
+ * @property {string} [q] - Get Values filtered by q string
273
452
  */
274
453
 
275
454
  /**
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.
455
+ * @typedef GetAutocompleteConfigParam
456
+ * @property {number} [pageNo] - The page number to navigate through the given
457
+ * set of results
295
458
  * @property {number} [pageSize] - Number of items to retrieve in each page.
296
459
  * Default is 12.
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
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.
302
464
  */
303
465
 
304
- /** @typedef GetAutocompleteConfigParam */
305
-
306
466
  /**
307
467
  * @typedef GetAutocompleteKeywordDetailParam
308
468
  * @property {string} id - A `id` is a unique identifier for a particular
309
469
  * detail. Pass the `id` of the keywords which you want to retrieve.
310
470
  */
311
471
 
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
+
312
484
  /** @typedef GetCatalogConfigurationParam */
313
485
 
314
486
  /**
315
487
  * @typedef GetCatalogInsightsParam
316
- * @property {string} [brand] - Brand slug that is to be searched.
488
+ * @property {string} [brand] - Brand slug
317
489
  */
318
490
 
319
491
  /**
@@ -321,7 +493,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
321
493
  * @property {string} [department] - The name of the department. Use this
322
494
  * parameter to filter products by a particular department. See below the list
323
495
  * of available departments. You can retrieve available departments from the
324
- * "v1.0/departments/" API
496
+ * **v1.0/departments/** API
325
497
  */
326
498
 
327
499
  /**
@@ -336,11 +508,14 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
336
508
  * @property {string} id - A `id` is a unique identifier of a collection.
337
509
  * @property {string} [sortOn] - Each response will contain sort_on param, which
338
510
  * 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.
341
511
  * @property {number} [pageSize] - Number of items to retrieve in each page.
342
512
  * Default is 12.
343
513
  * @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.
344
519
  */
345
520
 
346
521
  /**
@@ -354,21 +529,22 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
354
529
  * a specific type of configuration.
355
530
  * @property {string} [templateSlug] - Get configuration list filtered by
356
531
  * `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.
361
532
  */
362
533
 
363
534
  /** @typedef GetConfigurationsParam */
364
535
 
536
+ /**
537
+ * @typedef GetConfigurationsFilterMetadataParam
538
+ * @property {string} filter - Filter whose values needs to be fetched.
539
+ */
540
+
365
541
  /** @typedef GetDepartmentsParam */
366
542
 
367
543
  /**
368
544
  * @typedef GetDiscountedInventoryBySizeIdentifierParam
369
- * @property {number} itemId - A `item_id` is a unique identifier for a specific product.
545
+ * @property {number} itemId - Item code of the product of which size is to be get.
370
546
  * @property {number} sizeIdentifier - Size Identifier (Seller Identifier or
371
- * Primary Identifier).
547
+ * Primary Identifier) of which inventory is to get.
372
548
  * @property {number} [pageNo] - The page number to navigate through the given
373
549
  * set of results
374
550
  * @property {number} [pageSize] - Number of items to retrieve in each page.
@@ -398,13 +574,74 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
398
574
  * @property {number} [pageSize] - Number of items to retrieve in each page.
399
575
  * Default is 12.
400
576
  * @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.
401
625
  */
402
626
 
403
627
  /**
404
628
  * @typedef GetProductDetailBySlugParam
405
629
  * @property {string} slug - The unique identifier of a product. i.e; `slug` of
406
630
  * a product. You can retrieve these from the APIs that list products like
407
- * "v1.0/products/"
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.
408
645
  */
409
646
 
410
647
  /** @typedef GetQueryFiltersParam */
@@ -417,22 +654,75 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
417
654
  * detail. Pass the `id` of the keywords which you want to retrieve.
418
655
  */
419
656
 
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
+
420
712
  /**
421
713
  * @typedef UpdateAllowSingleParam
422
- * @property {CatalogPlatformModel.AllowSingleRequestSchema} body
714
+ * @property {CatalogPlatformModel.AllowSingleRequest} body
423
715
  */
424
716
 
425
717
  /**
426
718
  * @typedef UpdateAppBrandParam
427
- * @property {number} brandUid - A `brand id` is a unique identifier for a
428
- * particular brand.
719
+ * @property {number} brandUid - Brand id for which the custom_json is associated.
429
720
  * @property {CatalogPlatformModel.ApplicationBrandJson} body
430
721
  */
431
722
 
432
723
  /**
433
724
  * @typedef UpdateAppCategoryParam
434
- * @property {string} categoryUid - A `category id` is a unique identifier for a
435
- * particular category.
725
+ * @property {number} categoryUid - Category id for which the custom_json is associated.
436
726
  * @property {CatalogPlatformModel.ApplicationCategoryJson} body
437
727
  */
438
728
 
@@ -443,8 +733,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
443
733
 
444
734
  /**
445
735
  * @typedef UpdateAppDepartmentParam
446
- * @property {number} departmentUid - A `department id` is a unique identifier
447
- * for a particular department.
736
+ * @property {number} departmentUid - Department id for which the custom_json is
737
+ * associated.
448
738
  * @property {CatalogPlatformModel.ApplicationDepartmentJson} body
449
739
  */
450
740
 
@@ -456,7 +746,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
456
746
 
457
747
  /**
458
748
  * @typedef UpdateAppProductParam
459
- * @property {number} itemId - A `item_id` is a unique identifier for a particular item.
749
+ * @property {number} itemId - Product id for which the custom_meta is associated.
460
750
  * @property {CatalogPlatformModel.ApplicationItemMeta} body
461
751
  */
462
752
 
@@ -472,6 +762,13 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
472
762
  * @property {CatalogPlatformModel.CreateAutocompleteKeyword} body
473
763
  */
474
764
 
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
+
475
772
  /**
476
773
  * @typedef UpdateCollectionParam
477
774
  * @property {string} id - A `id` is a unique identifier of a collection.
@@ -480,7 +777,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
480
777
 
481
778
  /**
482
779
  * @typedef UpdateDefaultSortParam
483
- * @property {CatalogPlatformModel.DefaultKeyRequestSchema} body
780
+ * @property {CatalogPlatformModel.DefaultKeyRequest} body
484
781
  */
485
782
 
486
783
  /**
@@ -498,12 +795,47 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
498
795
  * particular listing configuration type.
499
796
  * @property {string} configId - A `config_id` is a unique identifier of a
500
797
  * particular configuration.
501
- * @property {CatalogPlatformModel.AppConfigurationsSort} body
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
502
834
  */
503
835
 
504
836
  /**
505
837
  * @typedef UpdateSearchConfigurationParam
506
- * @property {CatalogPlatformModel.UpdateSearchConfigurationRequestSchema} body
838
+ * @property {CatalogPlatformModel.UpdateSearchConfigurationRequest} body
507
839
  */
508
840
 
509
841
  /**
@@ -513,6 +845,37 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
513
845
  * @property {CatalogPlatformModel.CreateSearchKeyword} body
514
846
  */
515
847
 
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
+
516
879
  class CatalogPlatformApplicationValidator {
517
880
  /** @returns {AddCollectionItemsParam} */
518
881
  static addCollectionItems() {
@@ -522,6 +885,21 @@ class CatalogPlatformApplicationValidator {
522
885
  }).required();
523
886
  }
524
887
 
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
+
525
903
  /** @returns {CreateAppCategoryReturnConfigurationParam} */
526
904
  static createAppCategoryReturnConfiguration() {
527
905
  return Joi.object({
@@ -529,6 +907,13 @@ class CatalogPlatformApplicationValidator {
529
907
  }).required();
530
908
  }
531
909
 
910
+ /** @returns {CreateAppPriceFactoryParam} */
911
+ static createAppPriceFactory() {
912
+ return Joi.object({
913
+ body: CatalogPlatformModel.CreateAppPriceFactoryRequestSchema().required(),
914
+ }).required();
915
+ }
916
+
532
917
  /** @returns {CreateAppReturnConfigurationParam} */
533
918
  static createAppReturnConfiguration() {
534
919
  return Joi.object({
@@ -536,16 +921,16 @@ class CatalogPlatformApplicationValidator {
536
921
  }).required();
537
922
  }
538
923
 
924
+ /** @returns {CreateAutocompleteSettingsParam} */
925
+ static createAutocompleteSettings() {
926
+ return Joi.object({
927
+ body: CatalogPlatformModel.AutocompleteRequestSchema().required(),
928
+ }).required();
929
+ }
930
+
539
931
  /** @returns {CreateCollectionParam} */
540
932
  static createCollection() {
541
933
  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(),
549
934
  body: CatalogPlatformModel.CreateCollection().required(),
550
935
  }).required();
551
936
  }
@@ -582,23 +967,84 @@ class CatalogPlatformApplicationValidator {
582
967
  /** @returns {CreateGroupConfigurationParam} */
583
968
  static createGroupConfiguration() {
584
969
  return Joi.object({
585
- configType: Joi.string().allow("").required(),
586
- body: CatalogPlatformModel.AppConfigurationDetail().required(),
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(),
587
1034
  }).required();
588
1035
  }
589
1036
 
590
- /** @returns {CreateListingConfigurationParam} */
591
- static createListingConfiguration() {
1037
+ /** @returns {CreateSearchRerankParam} */
1038
+ static createSearchRerank() {
592
1039
  return Joi.object({
593
- configType: Joi.string().allow("").required(),
594
- body: CatalogPlatformModel.AppConfigurationsSort().required(),
1040
+ body: CatalogPlatformModel.CreateSearchRerankRequest().required(),
595
1041
  }).required();
596
1042
  }
597
1043
 
598
- /** @returns {CreateSearchConfigurationParam} */
599
- static createSearchConfiguration() {
1044
+ /** @returns {CreateSynonymsParam} */
1045
+ static createSynonyms() {
600
1046
  return Joi.object({
601
- body: CatalogPlatformModel.CreateSearchConfigurationRequestSchema().required(),
1047
+ body: CatalogPlatformModel.SynonymCreateRequestSchema().required(),
602
1048
  }).required();
603
1049
  }
604
1050
 
@@ -639,6 +1085,20 @@ class CatalogPlatformApplicationValidator {
639
1085
  }).required();
640
1086
  }
641
1087
 
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
+
642
1102
  /** @returns {DeleteSearchConfigurationParam} */
643
1103
  static deleteSearchConfiguration() {
644
1104
  return Joi.object({}).required();
@@ -651,13 +1111,48 @@ class CatalogPlatformApplicationValidator {
651
1111
  }).required();
652
1112
  }
653
1113
 
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
+
654
1149
  /** @returns {GetAllCollectionsParam} */
655
1150
  static getAllCollections() {
656
1151
  return Joi.object({
657
1152
  q: Joi.string().allow(""),
658
1153
  scheduleStatus: Joi.string().allow(""),
659
1154
  type: Joi.string().allow(""),
660
- tags: Joi.array().items(Joi.string().allow("")),
1155
+ tag: Joi.array().items(Joi.string().allow("")),
661
1156
  isActive: Joi.boolean(),
662
1157
  pageNo: Joi.number(),
663
1158
  pageSize: Joi.number(),
@@ -666,7 +1161,12 @@ class CatalogPlatformApplicationValidator {
666
1161
 
667
1162
  /** @returns {GetAllSearchKeywordParam} */
668
1163
  static getAllSearchKeyword() {
669
- return Joi.object({}).required();
1164
+ return Joi.object({
1165
+ pageNo: Joi.number(),
1166
+ pageSize: Joi.number(),
1167
+ q: Joi.string().allow(""),
1168
+ isActive: Joi.boolean(),
1169
+ }).required();
670
1170
  }
671
1171
 
672
1172
  /** @returns {GetAppCategoryReturnConfigParam} */
@@ -707,13 +1207,52 @@ class CatalogPlatformApplicationValidator {
707
1207
  pageSize: Joi.number(),
708
1208
  tags: Joi.array().items(Joi.string().allow("")),
709
1209
  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(),
710
1239
  }).required();
711
1240
  }
712
1241
 
713
1242
  /** @returns {GetAppProductParam} */
714
1243
  static getAppProduct() {
715
1244
  return Joi.object({
716
- itemId: Joi.string().allow("").required(),
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(),
717
1256
  }).required();
718
1257
  }
719
1258
 
@@ -736,6 +1275,23 @@ class CatalogPlatformApplicationValidator {
736
1275
  return Joi.object({}).required();
737
1276
  }
738
1277
 
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
+
739
1295
  /** @returns {GetApplicationBrandListingParam} */
740
1296
  static getApplicationBrandListing() {
741
1297
  return Joi.object({
@@ -794,28 +1350,16 @@ class CatalogPlatformApplicationValidator {
794
1350
  }).required();
795
1351
  }
796
1352
 
797
- /** @returns {GetApplicationProductsParam} */
798
- static getApplicationProducts() {
1353
+ /** @returns {GetAutocompleteConfigParam} */
1354
+ static getAutocompleteConfig() {
799
1355
  return Joi.object({
800
- q: Joi.string().allow(""),
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
1356
  pageNo: Joi.number(),
809
- pageType: Joi.string().allow(""),
810
- itemIds: Joi.array().items(Joi.string().allow("")),
1357
+ pageSize: Joi.number(),
1358
+ q: Joi.string().allow(""),
1359
+ isActive: Joi.boolean(),
811
1360
  }).required();
812
1361
  }
813
1362
 
814
- /** @returns {GetAutocompleteConfigParam} */
815
- static getAutocompleteConfig() {
816
- return Joi.object({}).required();
817
- }
818
-
819
1363
  /** @returns {GetAutocompleteKeywordDetailParam} */
820
1364
  static getAutocompleteKeywordDetail() {
821
1365
  return Joi.object({
@@ -823,6 +1367,23 @@ class CatalogPlatformApplicationValidator {
823
1367
  }).required();
824
1368
  }
825
1369
 
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
+
826
1387
  /** @returns {GetCatalogConfigurationParam} */
827
1388
  static getCatalogConfiguration() {
828
1389
  return Joi.object({}).required();
@@ -854,9 +1415,11 @@ class CatalogPlatformApplicationValidator {
854
1415
  return Joi.object({
855
1416
  id: Joi.string().allow("").required(),
856
1417
  sortOn: Joi.string().allow(""),
857
- pageId: Joi.string().allow(""),
858
1418
  pageSize: Joi.number(),
859
1419
  pageNo: Joi.number(),
1420
+ isPinned: Joi.boolean(),
1421
+ q: Joi.string().allow(""),
1422
+ isExcluded: Joi.boolean(),
860
1423
  }).required();
861
1424
  }
862
1425
 
@@ -872,9 +1435,6 @@ class CatalogPlatformApplicationValidator {
872
1435
  return Joi.object({
873
1436
  configType: Joi.string().allow("").required(),
874
1437
  templateSlug: Joi.string().allow(""),
875
- pageNo: Joi.number(),
876
- pageSize: Joi.number(),
877
- q: Joi.string().allow(""),
878
1438
  }).required();
879
1439
  }
880
1440
 
@@ -883,6 +1443,13 @@ class CatalogPlatformApplicationValidator {
883
1443
  return Joi.object({}).required();
884
1444
  }
885
1445
 
1446
+ /** @returns {GetConfigurationsFilterMetadataParam} */
1447
+ static getConfigurationsFilterMetadata() {
1448
+ return Joi.object({
1449
+ filter: Joi.string().allow("").required(),
1450
+ }).required();
1451
+ }
1452
+
886
1453
  /** @returns {GetDepartmentsParam} */
887
1454
  static getDepartments() {
888
1455
  return Joi.object({}).required();
@@ -917,6 +1484,58 @@ class CatalogPlatformApplicationValidator {
917
1484
  pageNo: Joi.number(),
918
1485
  pageSize: Joi.number(),
919
1486
  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(),
920
1539
  }).required();
921
1540
  }
922
1541
 
@@ -927,6 +1546,18 @@ class CatalogPlatformApplicationValidator {
927
1546
  }).required();
928
1547
  }
929
1548
 
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
+
930
1561
  /** @returns {GetQueryFiltersParam} */
931
1562
  static getQueryFilters() {
932
1563
  return Joi.object({}).required();
@@ -944,10 +1575,84 @@ class CatalogPlatformApplicationValidator {
944
1575
  }).required();
945
1576
  }
946
1577
 
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
+
947
1652
  /** @returns {UpdateAllowSingleParam} */
948
1653
  static updateAllowSingle() {
949
1654
  return Joi.object({
950
- body: CatalogPlatformModel.AllowSingleRequestSchema().required(),
1655
+ body: CatalogPlatformModel.AllowSingleRequest().required(),
951
1656
  }).required();
952
1657
  }
953
1658
 
@@ -962,7 +1667,7 @@ class CatalogPlatformApplicationValidator {
962
1667
  /** @returns {UpdateAppCategoryParam} */
963
1668
  static updateAppCategory() {
964
1669
  return Joi.object({
965
- categoryUid: Joi.string().allow("").required(),
1670
+ categoryUid: Joi.number().required(),
966
1671
  body: CatalogPlatformModel.ApplicationCategoryJson().required(),
967
1672
  }).required();
968
1673
  }
@@ -1013,6 +1718,14 @@ class CatalogPlatformApplicationValidator {
1013
1718
  }).required();
1014
1719
  }
1015
1720
 
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
+
1016
1729
  /** @returns {UpdateCollectionParam} */
1017
1730
  static updateCollection() {
1018
1731
  return Joi.object({
@@ -1024,7 +1737,7 @@ class CatalogPlatformApplicationValidator {
1024
1737
  /** @returns {UpdateDefaultSortParam} */
1025
1738
  static updateDefaultSort() {
1026
1739
  return Joi.object({
1027
- body: CatalogPlatformModel.DefaultKeyRequestSchema().required(),
1740
+ body: CatalogPlatformModel.DefaultKeyRequest().required(),
1028
1741
  }).required();
1029
1742
  }
1030
1743
 
@@ -1042,14 +1755,54 @@ class CatalogPlatformApplicationValidator {
1042
1755
  return Joi.object({
1043
1756
  configType: Joi.string().allow("").required(),
1044
1757
  configId: Joi.string().allow("").required(),
1045
- body: CatalogPlatformModel.AppConfigurationsSort().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(),
1046
1799
  }).required();
1047
1800
  }
1048
1801
 
1049
1802
  /** @returns {UpdateSearchConfigurationParam} */
1050
1803
  static updateSearchConfiguration() {
1051
1804
  return Joi.object({
1052
- body: CatalogPlatformModel.UpdateSearchConfigurationRequestSchema().required(),
1805
+ body: CatalogPlatformModel.UpdateSearchConfigurationRequest().required(),
1053
1806
  }).required();
1054
1807
  }
1055
1808
 
@@ -1060,6 +1813,45 @@ class CatalogPlatformApplicationValidator {
1060
1813
  body: CatalogPlatformModel.CreateSearchKeyword().required(),
1061
1814
  }).required();
1062
1815
  }
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
+ }
1063
1855
  }
1064
1856
 
1065
1857
  module.exports = CatalogPlatformApplicationValidator;