@gofynd/fdk-client-javascript 1.6.4 → 3.1.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 (290) 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 +100 -80
  6. package/sdk/application/Cart/CartApplicationClient.js +257 -126
  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 +61 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +250 -36
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  18. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  22. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  24. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  25. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  27. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  28. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  30. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  31. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  32. package/sdk/application/User/UserApplicationClient.js +9 -57
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  36. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  37. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  41. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  42. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  43. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  44. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  45. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  46. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  47. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
  48. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
  49. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
  50. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
  51. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  52. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
  53. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  55. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  56. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  57. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  58. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  60. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  62. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  64. package/sdk/partner/PartnerClient.d.ts +6 -0
  65. package/sdk/partner/PartnerClient.js +9 -0
  66. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  67. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  68. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  69. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  70. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  71. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  73. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  74. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  75. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  76. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  77. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  78. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  79. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  80. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
  81. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  86. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  88. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  90. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  95. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  96. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  97. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  98. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  99. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  100. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  101. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
  102. package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
  103. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  104. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  105. package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
  106. package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
  107. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
  108. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
  111. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
  112. package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
  113. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
  114. package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
  115. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
  116. package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
  117. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  118. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  119. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  120. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  121. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
  122. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  125. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  126. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  127. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
  128. package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
  129. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  130. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  131. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
  132. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
  137. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  138. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  141. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  142. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  143. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
  144. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
  145. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  146. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  147. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
  148. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
  149. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  150. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  151. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  152. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  153. package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
  154. package/sdk/platform/Content/ContentPlatformModel.js +940 -599
  155. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  156. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  157. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  158. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  159. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  160. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  161. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  162. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  163. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  164. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  167. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  168. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  169. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  170. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  171. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  172. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  173. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  174. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  175. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  176. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  177. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  178. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  179. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  180. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  181. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  182. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  183. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  184. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  185. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  186. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  187. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  188. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  189. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  190. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  191. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  192. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  193. package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
  194. package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
  195. package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
  196. package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
  197. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  198. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  199. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  200. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  201. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  203. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  204. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  205. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  206. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  207. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  208. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  209. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
  210. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
  211. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  212. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  213. package/sdk/platform/PlatformClient.d.ts +2 -0
  214. package/sdk/platform/PlatformClient.js +4 -0
  215. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  216. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  220. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  221. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  222. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
  231. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  232. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  233. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  234. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  235. package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
  236. package/sdk/platform/Share/SharePlatformModel.js +5 -43
  237. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
  238. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
  239. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
  240. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
  241. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  242. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  243. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  244. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  245. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  246. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  247. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
  248. package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
  249. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
  250. package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
  251. package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
  252. package/sdk/platform/User/UserPlatformModel.js +209 -216
  253. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  254. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  255. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
  256. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
  257. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  258. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  259. package/sdk/platform/index.d.ts +1 -0
  260. package/sdk/platform/index.js +2 -0
  261. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  262. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  263. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  264. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  265. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  266. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  267. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  268. package/sdk/public/Content/ContentPublicClient.js +183 -0
  269. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  270. package/sdk/public/Content/ContentPublicModel.js +47 -1
  271. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  272. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  273. package/sdk/public/PublicClient.d.ts +0 -2
  274. package/sdk/public/PublicClient.js +0 -4
  275. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  276. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  277. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  278. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  279. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  280. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  281. package/sdk/public/index.d.ts +0 -1
  282. package/sdk/public/index.js +0 -2
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  285. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  286. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  287. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  288. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  289. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  290. 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
  /**
@@ -204,7 +355,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
204
355
  * set of results
205
356
  * @property {number} [pageSize] - Number of items to retrieve in each page.
206
357
  * Default is 12.
207
- * @property {string} [q] - Search query with brand name. Use this parameter to
358
+ * @property {string} [q] - Search query with brand name.Use this parameter to
208
359
  * search brands by brand name.
209
360
  */
210
361
 
@@ -213,12 +364,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
213
364
  * @property {string} [department] - The name of the department. Use this
214
365
  * parameter to filter products by a particular department. See below the list
215
366
  * of available departments. You can retrieve available departments from the
216
- * "v1.0/departments/" API
367
+ * **v1.0/departments/** API
217
368
  * @property {number} [pageNo] - The page number to navigate through the given
218
369
  * set of results
219
370
  * @property {number} [pageSize] - Number of items to retrieve in each page.
220
371
  * Default is 12.
221
- * @property {string} [q] - Search query with brand name. Use this parameter to
372
+ * @property {string} [q] - Search query with brand name.Use this parameter to
222
373
  * search brands by brand name.
223
374
  * @property {number[]} [brandId] - Helps to sort the brands list on the basis
224
375
  * of uid list.
@@ -232,8 +383,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
232
383
  * set of results
233
384
  * @property {number} [pageSize] - Number of items to retrieve in each page.
234
385
  * 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.
386
+ * @property {string} [q] - Search query with brand name.Use this parameter to
387
+ * search brands by brand name.
237
388
  */
238
389
 
239
390
  /**
@@ -242,34 +393,33 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
242
393
  * set of results
243
394
  * @property {number} [pageSize] - Number of items to retrieve in each page.
244
395
  * 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.
396
+ * @property {string} [q] - Search query with brand name.Use this parameter to
397
+ * search department by name.
247
398
  */
248
399
 
249
400
  /**
250
401
  * @typedef GetApplicationFilterKeysParam
251
402
  * @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"
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**
254
406
  */
255
407
 
256
408
  /**
257
409
  * @typedef GetApplicationFilterValuesParam
258
- * @property {string} filterKey - A `filter_key` is a filter key which returns
259
- * all the available filter values.
410
+ * @property {string} filterKey - A `filter_key` is a filter key for a for which
411
+ * all the available filter values will returned. channel.
260
412
  * @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"
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**
263
416
  * @property {string} [collectionId] - A `collection_id` is a unique identifier
264
- * for a particular collection.
417
+ * for a particular collection. channel.
265
418
  * @property {number} [pageNo] - The page number to navigate through the given
266
419
  * set of results
267
420
  * @property {number} [pageSize] - Number of items to retrieve in each page.
268
421
  * 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.
422
+ * @property {string} [q] - Get Values filtered by q string
273
423
  */
274
424
 
275
425
  /**
@@ -301,7 +451,17 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
301
451
  * @property {string[]} [itemIds] - Item Ids of product
302
452
  */
303
453
 
304
- /** @typedef GetAutocompleteConfigParam */
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
+ */
305
465
 
306
466
  /**
307
467
  * @typedef GetAutocompleteKeywordDetailParam
@@ -309,11 +469,23 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
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,81 @@ 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
+ * @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
+
420
718
  /**
421
719
  * @typedef UpdateAllowSingleParam
422
- * @property {CatalogPlatformModel.AllowSingleRequestSchema} body
720
+ * @property {CatalogPlatformModel.AllowSingleRequest} body
423
721
  */
424
722
 
425
723
  /**
426
724
  * @typedef UpdateAppBrandParam
427
- * @property {number} brandUid - A `brand id` is a unique identifier for a
428
- * particular brand.
725
+ * @property {number} brandUid - Brand id for which the custom_json is associated.
429
726
  * @property {CatalogPlatformModel.ApplicationBrandJson} body
430
727
  */
431
728
 
432
729
  /**
433
730
  * @typedef UpdateAppCategoryParam
434
- * @property {string} categoryUid - A `category id` is a unique identifier for a
435
- * particular category.
731
+ * @property {number} categoryUid - Category id for which the custom_json is associated.
436
732
  * @property {CatalogPlatformModel.ApplicationCategoryJson} body
437
733
  */
438
734
 
@@ -443,8 +739,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
443
739
 
444
740
  /**
445
741
  * @typedef UpdateAppDepartmentParam
446
- * @property {number} departmentUid - A `department id` is a unique identifier
447
- * for a particular department.
742
+ * @property {number} departmentUid - Department id for which the custom_json is
743
+ * associated.
448
744
  * @property {CatalogPlatformModel.ApplicationDepartmentJson} body
449
745
  */
450
746
 
@@ -456,7 +752,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
456
752
 
457
753
  /**
458
754
  * @typedef UpdateAppProductParam
459
- * @property {number} itemId - A `item_id` is a unique identifier for a particular item.
755
+ * @property {number} itemId - Product id for which the custom_meta is associated.
460
756
  * @property {CatalogPlatformModel.ApplicationItemMeta} body
461
757
  */
462
758
 
@@ -472,6 +768,13 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
472
768
  * @property {CatalogPlatformModel.CreateAutocompleteKeyword} body
473
769
  */
474
770
 
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
+
475
778
  /**
476
779
  * @typedef UpdateCollectionParam
477
780
  * @property {string} id - A `id` is a unique identifier of a collection.
@@ -480,7 +783,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
480
783
 
481
784
  /**
482
785
  * @typedef UpdateDefaultSortParam
483
- * @property {CatalogPlatformModel.DefaultKeyRequestSchema} body
786
+ * @property {CatalogPlatformModel.DefaultKeyRequest} body
484
787
  */
485
788
 
486
789
  /**
@@ -498,12 +801,47 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
498
801
  * particular listing configuration type.
499
802
  * @property {string} configId - A `config_id` is a unique identifier of a
500
803
  * particular configuration.
501
- * @property {CatalogPlatformModel.AppConfigurationsSort} body
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
502
840
  */
503
841
 
504
842
  /**
505
843
  * @typedef UpdateSearchConfigurationParam
506
- * @property {CatalogPlatformModel.UpdateSearchConfigurationRequestSchema} body
844
+ * @property {CatalogPlatformModel.UpdateSearchConfigurationRequest} body
507
845
  */
508
846
 
509
847
  /**
@@ -513,6 +851,37 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
513
851
  * @property {CatalogPlatformModel.CreateSearchKeyword} body
514
852
  */
515
853
 
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
+
516
885
  class CatalogPlatformApplicationValidator {
517
886
  /** @returns {AddCollectionItemsParam} */
518
887
  static addCollectionItems() {
@@ -522,6 +891,21 @@ class CatalogPlatformApplicationValidator {
522
891
  }).required();
523
892
  }
524
893
 
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
+
525
909
  /** @returns {CreateAppCategoryReturnConfigurationParam} */
526
910
  static createAppCategoryReturnConfiguration() {
527
911
  return Joi.object({
@@ -529,6 +913,13 @@ class CatalogPlatformApplicationValidator {
529
913
  }).required();
530
914
  }
531
915
 
916
+ /** @returns {CreateAppPriceFactoryParam} */
917
+ static createAppPriceFactory() {
918
+ return Joi.object({
919
+ body: CatalogPlatformModel.CreateAppPriceFactoryRequestSchema().required(),
920
+ }).required();
921
+ }
922
+
532
923
  /** @returns {CreateAppReturnConfigurationParam} */
533
924
  static createAppReturnConfiguration() {
534
925
  return Joi.object({
@@ -536,16 +927,16 @@ class CatalogPlatformApplicationValidator {
536
927
  }).required();
537
928
  }
538
929
 
930
+ /** @returns {CreateAutocompleteSettingsParam} */
931
+ static createAutocompleteSettings() {
932
+ return Joi.object({
933
+ body: CatalogPlatformModel.AutocompleteRequestSchema().required(),
934
+ }).required();
935
+ }
936
+
539
937
  /** @returns {CreateCollectionParam} */
540
938
  static createCollection() {
541
939
  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
940
  body: CatalogPlatformModel.CreateCollection().required(),
550
941
  }).required();
551
942
  }
@@ -583,7 +974,7 @@ class CatalogPlatformApplicationValidator {
583
974
  static createGroupConfiguration() {
584
975
  return Joi.object({
585
976
  configType: Joi.string().allow("").required(),
586
- body: CatalogPlatformModel.AppConfigurationDetail().required(),
977
+ body: CatalogPlatformModel.AppConfigurationCreateDetail().required(),
587
978
  }).required();
588
979
  }
589
980
 
@@ -591,14 +982,75 @@ class CatalogPlatformApplicationValidator {
591
982
  static createListingConfiguration() {
592
983
  return Joi.object({
593
984
  configType: Joi.string().allow("").required(),
594
- body: CatalogPlatformModel.AppConfigurationsSort().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(),
595
1033
  }).required();
596
1034
  }
597
1035
 
598
1036
  /** @returns {CreateSearchConfigurationParam} */
599
1037
  static createSearchConfiguration() {
600
1038
  return Joi.object({
601
- body: CatalogPlatformModel.CreateSearchConfigurationRequestSchema().required(),
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(),
602
1054
  }).required();
603
1055
  }
604
1056
 
@@ -639,6 +1091,20 @@ class CatalogPlatformApplicationValidator {
639
1091
  }).required();
640
1092
  }
641
1093
 
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
+
642
1108
  /** @returns {DeleteSearchConfigurationParam} */
643
1109
  static deleteSearchConfiguration() {
644
1110
  return Joi.object({}).required();
@@ -651,13 +1117,48 @@ class CatalogPlatformApplicationValidator {
651
1117
  }).required();
652
1118
  }
653
1119
 
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
+
654
1155
  /** @returns {GetAllCollectionsParam} */
655
1156
  static getAllCollections() {
656
1157
  return Joi.object({
657
1158
  q: Joi.string().allow(""),
658
1159
  scheduleStatus: Joi.string().allow(""),
659
1160
  type: Joi.string().allow(""),
660
- tags: Joi.array().items(Joi.string().allow("")),
1161
+ tag: Joi.array().items(Joi.string().allow("")),
661
1162
  isActive: Joi.boolean(),
662
1163
  pageNo: Joi.number(),
663
1164
  pageSize: Joi.number(),
@@ -666,7 +1167,12 @@ class CatalogPlatformApplicationValidator {
666
1167
 
667
1168
  /** @returns {GetAllSearchKeywordParam} */
668
1169
  static getAllSearchKeyword() {
669
- return Joi.object({}).required();
1170
+ return Joi.object({
1171
+ pageNo: Joi.number(),
1172
+ pageSize: Joi.number(),
1173
+ q: Joi.string().allow(""),
1174
+ isActive: Joi.boolean(),
1175
+ }).required();
670
1176
  }
671
1177
 
672
1178
  /** @returns {GetAppCategoryReturnConfigParam} */
@@ -707,13 +1213,52 @@ class CatalogPlatformApplicationValidator {
707
1213
  pageSize: Joi.number(),
708
1214
  tags: Joi.array().items(Joi.string().allow("")),
709
1215
  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(),
710
1245
  }).required();
711
1246
  }
712
1247
 
713
1248
  /** @returns {GetAppProductParam} */
714
1249
  static getAppProduct() {
715
1250
  return Joi.object({
716
- itemId: Joi.string().allow("").required(),
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(),
717
1262
  }).required();
718
1263
  }
719
1264
 
@@ -813,7 +1358,12 @@ class CatalogPlatformApplicationValidator {
813
1358
 
814
1359
  /** @returns {GetAutocompleteConfigParam} */
815
1360
  static getAutocompleteConfig() {
816
- return Joi.object({}).required();
1361
+ return Joi.object({
1362
+ pageNo: Joi.number(),
1363
+ pageSize: Joi.number(),
1364
+ q: Joi.string().allow(""),
1365
+ isActive: Joi.boolean(),
1366
+ }).required();
817
1367
  }
818
1368
 
819
1369
  /** @returns {GetAutocompleteKeywordDetailParam} */
@@ -823,6 +1373,23 @@ class CatalogPlatformApplicationValidator {
823
1373
  }).required();
824
1374
  }
825
1375
 
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
+
826
1393
  /** @returns {GetCatalogConfigurationParam} */
827
1394
  static getCatalogConfiguration() {
828
1395
  return Joi.object({}).required();
@@ -854,9 +1421,11 @@ class CatalogPlatformApplicationValidator {
854
1421
  return Joi.object({
855
1422
  id: Joi.string().allow("").required(),
856
1423
  sortOn: Joi.string().allow(""),
857
- pageId: Joi.string().allow(""),
858
1424
  pageSize: Joi.number(),
859
1425
  pageNo: Joi.number(),
1426
+ isPinned: Joi.boolean(),
1427
+ q: Joi.string().allow(""),
1428
+ isExcluded: Joi.boolean(),
860
1429
  }).required();
861
1430
  }
862
1431
 
@@ -872,9 +1441,6 @@ class CatalogPlatformApplicationValidator {
872
1441
  return Joi.object({
873
1442
  configType: Joi.string().allow("").required(),
874
1443
  templateSlug: Joi.string().allow(""),
875
- pageNo: Joi.number(),
876
- pageSize: Joi.number(),
877
- q: Joi.string().allow(""),
878
1444
  }).required();
879
1445
  }
880
1446
 
@@ -883,6 +1449,13 @@ class CatalogPlatformApplicationValidator {
883
1449
  return Joi.object({}).required();
884
1450
  }
885
1451
 
1452
+ /** @returns {GetConfigurationsFilterMetadataParam} */
1453
+ static getConfigurationsFilterMetadata() {
1454
+ return Joi.object({
1455
+ filter: Joi.string().allow("").required(),
1456
+ }).required();
1457
+ }
1458
+
886
1459
  /** @returns {GetDepartmentsParam} */
887
1460
  static getDepartments() {
888
1461
  return Joi.object({}).required();
@@ -917,6 +1490,58 @@ class CatalogPlatformApplicationValidator {
917
1490
  pageNo: Joi.number(),
918
1491
  pageSize: Joi.number(),
919
1492
  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(),
920
1545
  }).required();
921
1546
  }
922
1547
 
@@ -927,6 +1552,18 @@ class CatalogPlatformApplicationValidator {
927
1552
  }).required();
928
1553
  }
929
1554
 
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
+
930
1567
  /** @returns {GetQueryFiltersParam} */
931
1568
  static getQueryFilters() {
932
1569
  return Joi.object({}).required();
@@ -944,10 +1581,90 @@ class CatalogPlatformApplicationValidator {
944
1581
  }).required();
945
1582
  }
946
1583
 
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
+
947
1664
  /** @returns {UpdateAllowSingleParam} */
948
1665
  static updateAllowSingle() {
949
1666
  return Joi.object({
950
- body: CatalogPlatformModel.AllowSingleRequestSchema().required(),
1667
+ body: CatalogPlatformModel.AllowSingleRequest().required(),
951
1668
  }).required();
952
1669
  }
953
1670
 
@@ -962,7 +1679,7 @@ class CatalogPlatformApplicationValidator {
962
1679
  /** @returns {UpdateAppCategoryParam} */
963
1680
  static updateAppCategory() {
964
1681
  return Joi.object({
965
- categoryUid: Joi.string().allow("").required(),
1682
+ categoryUid: Joi.number().required(),
966
1683
  body: CatalogPlatformModel.ApplicationCategoryJson().required(),
967
1684
  }).required();
968
1685
  }
@@ -1013,6 +1730,14 @@ class CatalogPlatformApplicationValidator {
1013
1730
  }).required();
1014
1731
  }
1015
1732
 
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
+
1016
1741
  /** @returns {UpdateCollectionParam} */
1017
1742
  static updateCollection() {
1018
1743
  return Joi.object({
@@ -1024,7 +1749,7 @@ class CatalogPlatformApplicationValidator {
1024
1749
  /** @returns {UpdateDefaultSortParam} */
1025
1750
  static updateDefaultSort() {
1026
1751
  return Joi.object({
1027
- body: CatalogPlatformModel.DefaultKeyRequestSchema().required(),
1752
+ body: CatalogPlatformModel.DefaultKeyRequest().required(),
1028
1753
  }).required();
1029
1754
  }
1030
1755
 
@@ -1042,14 +1767,54 @@ class CatalogPlatformApplicationValidator {
1042
1767
  return Joi.object({
1043
1768
  configType: Joi.string().allow("").required(),
1044
1769
  configId: Joi.string().allow("").required(),
1045
- body: CatalogPlatformModel.AppConfigurationsSort().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(),
1046
1811
  }).required();
1047
1812
  }
1048
1813
 
1049
1814
  /** @returns {UpdateSearchConfigurationParam} */
1050
1815
  static updateSearchConfiguration() {
1051
1816
  return Joi.object({
1052
- body: CatalogPlatformModel.UpdateSearchConfigurationRequestSchema().required(),
1817
+ body: CatalogPlatformModel.UpdateSearchConfigurationRequest().required(),
1053
1818
  }).required();
1054
1819
  }
1055
1820
 
@@ -1060,6 +1825,45 @@ class CatalogPlatformApplicationValidator {
1060
1825
  body: CatalogPlatformModel.CreateSearchKeyword().required(),
1061
1826
  }).required();
1062
1827
  }
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
+ }
1063
1867
  }
1064
1868
 
1065
1869
  module.exports = CatalogPlatformApplicationValidator;