@gofynd/fdk-client-javascript 1.4.15-beta.13 → 1.4.15-beta.15

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 (278) hide show
  1. package/README.md +23 -26
  2. package/package.json +5 -1
  3. package/sdk/application/ApplicationClient.d.ts +5 -6
  4. package/sdk/application/ApplicationClient.js +24 -20
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
  6. package/sdk/application/Cart/CartApplicationClient.js +444 -76
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
  16. package/sdk/application/Content/ContentApplicationClient.js +274 -111
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
  22. package/sdk/application/Lead/LeadApplicationClient.js +6 -6
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
  26. package/sdk/application/Order/OrderApplicationClient.js +217 -17
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
  28. package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
  32. package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
  33. package/sdk/application/User/UserApplicationClient.d.ts +103 -53
  34. package/sdk/application/User/UserApplicationClient.js +308 -49
  35. package/sdk/common/AxiosHelper.js +11 -4
  36. package/sdk/common/Constant.d.ts +27 -4
  37. package/sdk/common/Constant.js +33 -6
  38. package/sdk/common/utils.d.ts +10 -0
  39. package/sdk/common/utils.js +24 -3
  40. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
  41. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
  43. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
  44. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
  45. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
  46. package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
  47. package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
  48. package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
  49. package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
  51. package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
  52. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
  53. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
  54. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
  55. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
  56. package/sdk/partner/PartnerClient.d.ts +5 -2
  57. package/sdk/partner/PartnerClient.js +21 -7
  58. package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
  59. package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
  60. package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
  61. package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
  62. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  63. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
  64. package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
  65. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
  66. package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
  67. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
  68. package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
  69. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
  70. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
  71. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  73. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
  75. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  81. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
  82. package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
  83. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  84. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  85. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  86. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  87. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
  89. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
  91. package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
  92. package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
  93. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
  97. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
  98. package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
  99. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9571 -2674
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5081 -2019
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -20,6 +20,16 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
20
20
 
21
21
  /**
22
22
  * @typedef CreateCollectionParam
23
+ * @property {string} [q] - Get collection list filtered by q string,
24
+ * @property {string} [scheduleStatus] - Get collection list filtered by scheduled status,
25
+ * @property {string} [type] - Type of the collections
26
+ * @property {string[]} [tags] - Each response will contain next_id param, which
27
+ * should be sent back to make pagination work.
28
+ * @property {boolean} [isActive] - Get collections filtered by active status.
29
+ * @property {number} [pageNo] - The page number to navigate through the given
30
+ * set of results.
31
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
32
+ * Default is 12.
23
33
  * @property {CatalogPlatformModel.CreateCollection} body
24
34
  */
25
35
 
@@ -58,9 +68,14 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
58
68
  * @property {CatalogPlatformModel.AppConfigurationsSort} body
59
69
  */
60
70
 
71
+ /**
72
+ * @typedef CreatePriceFactoryParam
73
+ * @property {CatalogPlatformModel.CreatePriceFactoryConfigSchema} body
74
+ */
75
+
61
76
  /**
62
77
  * @typedef CreateSearchConfigurationParam
63
- * @property {CatalogPlatformModel.CreateSearchConfigurationRequest} body
78
+ * @property {CatalogPlatformModel.CreateSearchConfigurationRequestSchema} body
64
79
  */
65
80
 
66
81
  /**
@@ -95,6 +110,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
95
110
  * particular configuration.
96
111
  */
97
112
 
113
+ /**
114
+ * @typedef DeletePriceFactoryParam
115
+ * @property {string} priceFactoryId - A `price_factory_id` is a unique
116
+ * identifier for a particular price factory configuration.
117
+ */
118
+
98
119
  /** @typedef DeleteSearchConfigurationParam */
99
120
 
100
121
  /**
@@ -103,6 +124,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
103
124
  * detail. Pass the `id` of the keywords which you want to delete.
104
125
  */
105
126
 
127
+ /**
128
+ * @typedef FollowProductByIdParam
129
+ * @property {string} userId - User ID of User
130
+ * @property {string} itemId - Item ID of Product
131
+ */
132
+
106
133
  /**
107
134
  * @typedef GetAllCollectionsParam
108
135
  * @property {string} [q] - Get collection list filtered by q string,
@@ -172,6 +199,11 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
172
199
  * @property {string} itemId - Product id for a particular product.
173
200
  */
174
201
 
202
+ /**
203
+ * @typedef GetAppProductPricesParam
204
+ * @property {number[]} itemIds - List of item IDs for which to retrieve pricing.
205
+ */
206
+
175
207
  /**
176
208
  * @typedef GetAppProductsParam
177
209
  * @property {number[]} [brandIds] - Get multiple products filtered by Brand Ids
@@ -188,35 +220,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
188
220
 
189
221
  /** @typedef GetAppReturnConfigurationParam */
190
222
 
191
- /**
192
- * @typedef GetAppicationProductsParam
193
- * @property {string} [q] - The search query. This can be a partial or complete
194
- * name of a either a product, brand or category
195
- * @property {string} [f] - The search filter parameters. All the parameter
196
- * filtered from filter parameters will be passed in **f** parameter in this
197
- * format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts**
198
- * @property {string} [c] - The search filter parameters for collection items.
199
- * All the parameter filtered from filter parameters will be passed in **c**
200
- * parameter in this format.
201
- * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
202
- * @property {boolean} [filters] - Pass `filters` parameter to fetch the filter
203
- * details. This flag is used to fetch all filters
204
- * @property {boolean} [isDependent] - This query parameter is used to get the
205
- * dependent products in the listing.
206
- * @property {string} [sortOn] - The order to sort the list of products on. The
207
- * supported sort parameters are popularity, price, redemption and discount in
208
- * either ascending or descending order. See the supported values below.
209
- * @property {string} [pageId] - Each response will contain **page_id** param,
210
- * which should be sent back to make pagination work.
211
- * @property {number} [pageSize] - Number of items to retrieve in each page.
212
- * Default is 12.
213
- * @property {number} [pageNo] - If page_type is number then pass it to fetch
214
- * page items. Default is 1.
215
- * @property {string} [pageType] - For pagination type should be cursor or
216
- * number. Default is cursor.
217
- * @property {number[]} [itemIds] - Item Ids of product
218
- */
219
-
220
223
  /**
221
224
  * @typedef GetApplicationBrandListingParam
222
225
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -268,26 +271,57 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
268
271
  /**
269
272
  * @typedef GetApplicationFilterKeysParam
270
273
  * @property {string} [c] - The search filter parameters for collection items.
271
- * All the parameter filtered from filter parameters will be passed in **c**
272
- * parameter in this format.
273
- * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
274
+ * All the parameter filtered from filter parameters will be passed in "c"
275
+ * parameter in this format. "?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts"
274
276
  */
275
277
 
276
278
  /**
277
279
  * @typedef GetApplicationFilterValuesParam
278
- * @property {string} filterKey - A `filter_key` is a filter key for a for which
279
- * all the available filter values will returned. channel.
280
+ * @property {string} filterKey - A `filter_key` is a filter key which returns
281
+ * all the available filter values.
280
282
  * @property {string} [c] - The search filter parameters for collection items.
281
- * All the parameter filtered from filter parameters will be passed in **c**
282
- * parameter in this format.
283
- * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
283
+ * All the parameter filtered from filter parameters will be passed in "c"
284
+ * parameter in this format. "?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts"
284
285
  * @property {string} [collectionId] - A `collection_id` is a unique identifier
285
- * for a particular collection. channel.
286
+ * for a particular collection.
286
287
  * @property {number} [pageNo] - The page number to navigate through the given
287
288
  * set of results
288
289
  * @property {number} [pageSize] - Number of items to retrieve in each page.
289
290
  * Default is 10.
290
- * @property {string} [q] - Get Values filtered by q string
291
+ * @property {string} [q] - The `q` parameter allows you to search and filter
292
+ * specific data within the filter options. It acts as a query keyword that
293
+ * can refine the results by matching relevant filter values, such as a
294
+ * category name or any other applicable filter criteria.
295
+ */
296
+
297
+ /**
298
+ * @typedef GetApplicationProductsParam
299
+ * @property {string} [q] - The search query. This can be a partial or complete
300
+ * name of a either a product, brand or category
301
+ * @property {string} [f] - The search filter parameters. All the parameter
302
+ * filtered from filter parameters will be passed in **f** parameter in this
303
+ * format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts**
304
+ * @property {string} [c] - The search filter parameters for collection items.
305
+ * All the parameter filtered from filter parameters will be passed in **c**
306
+ * parameter in this format.
307
+ * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
308
+ * @property {boolean} [filters] - Pass `filters` parameter to fetch the filter
309
+ * details. This flag is used to fetch all filters
310
+ * @property {boolean} [isDependent] - This query parameter is used to get the
311
+ * dependent products in the listing.
312
+ * @property {string} [sortOn] - The order to sort the list of products on.
313
+ * Supported values include latest, popular, price_asc, price_dsc,
314
+ * discount_asc, discount_dsc. Custom sort keys configured via listing
315
+ * configuration (e.g., best_selling) are also supported for cohort-based sorting.
316
+ * @property {string} [pageId] - Each response will contain **page_id** param,
317
+ * which should be sent back to make pagination work.
318
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
319
+ * Default is 12.
320
+ * @property {number} [pageNo] - If page_type is number then pass it to fetch
321
+ * page items. Default is 1.
322
+ * @property {string} [pageType] - For pagination type should be cursor or
323
+ * number. Default is cursor.
324
+ * @property {string[]} [itemIds] - Item Ids of product
291
325
  */
292
326
 
293
327
  /** @typedef GetAutocompleteConfigParam */
@@ -322,18 +356,22 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
322
356
 
323
357
  /**
324
358
  * @typedef GetCollectionItemsParam
325
- * @property {string} id - A `id` is a unique identifier of a collection.
326
- * @property {string} [sortOn] - Each response will contain sort_on param, which
327
- * should be sent back to make pagination work.
328
- * @property {string} [pageId] - Each response will contain next_id param, which
329
- * should be sent back to make pagination work.
359
+ * @property {string} collectionId - A `collection_id` is a unique identifier of
360
+ * a collection.
361
+ * @property {number} [pageNo] - The page number to navigate through the given
362
+ * set of results
330
363
  * @property {number} [pageSize] - Number of items to retrieve in each page.
331
- * Default is 12.
364
+ * Default is 10.
365
+ * @property {string} [q] - Query string to search collection items by substring
366
+ * match on item's name (case-insensitive) or exact item_code.
332
367
  */
333
368
 
334
369
  /**
335
370
  * @typedef GetConfigurationByTypeParam
336
371
  * @property {string} type - Type can be brands, categories etc.
372
+ * @property {boolean} [includeInactive] - Pass the `include_inactive` parameter
373
+ * to retrieve inactive brand or category details. This flag enables fetching
374
+ * all brands or categories,including those that are inactive.
337
375
  */
338
376
 
339
377
  /**
@@ -354,17 +392,24 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
354
392
 
355
393
  /**
356
394
  * @typedef GetDiscountedInventoryBySizeIdentifierParam
357
- * @property {number} itemId - Item code of the product of which size is to be get.
358
- * @property {string} sizeIdentifier - Size Identifier (Seller Identifier or
359
- * Primary Identifier) of which inventory is to get.
395
+ * @property {number} itemId - A `item_id` is a unique identifier for a specific product.
396
+ * @property {number} sizeIdentifier - Size Identifier (Seller Identifier or
397
+ * Primary Identifier).
360
398
  * @property {number} [pageNo] - The page number to navigate through the given
361
399
  * set of results
362
400
  * @property {number} [pageSize] - Number of items to retrieve in each page.
363
401
  * Default is 12.
364
- * @property {string} [q] - Search with help of store code.
365
402
  * @property {number[]} [locationIds] - Search by store ids.
366
403
  */
367
404
 
405
+ /**
406
+ * @typedef GetFollowedProductsParam
407
+ * @property {string} userId - User ID to fetch the followed list
408
+ * @property {string} [pageId] - The identifier used to retrieve the next set of
409
+ * results. This parameter follows cursor-based pagination.
410
+ * @property {number} [pageSize] - Number of items per page
411
+ */
412
+
368
413
  /**
369
414
  * @typedef GetGroupConfigurationsParam
370
415
  * @property {string} configType - A `config_type` is an identifier that defines
@@ -389,11 +434,53 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
389
434
  * @property {string} [search] - Get configuration list filtered by `search` string.
390
435
  */
391
436
 
437
+ /**
438
+ * @typedef GetPriceFactoriesParam
439
+ * @property {string} [q] - Optional q to filter price factories by name.
440
+ */
441
+
442
+ /**
443
+ * @typedef GetPriceFactoryParam
444
+ * @property {string} priceFactoryId - Unique identifier of the specific price
445
+ * factory to be retrieved.
446
+ */
447
+
448
+ /**
449
+ * @typedef GetPriceFactoryProductParam
450
+ * @property {string} priceFactoryId - A `price_factory_id` is a unique
451
+ * identifier for a particular sale channel.
452
+ * @property {number} itemId - A `item_id` is a unique identifier for a
453
+ * particular product.
454
+ */
455
+
456
+ /**
457
+ * @typedef GetPriceFactoryProductsParam
458
+ * @property {string} priceFactoryId - A `price_factory_id` uniquely identifies
459
+ * a price factory configuration for a specific application.
460
+ * @property {number[]} [brandIds] - Optional list of brand IDs to filter price
461
+ * factories associated with specific brands.
462
+ * @property {number[]} [categoryIds] - Optional list of category IDs to filter
463
+ * price factories related to specific product categories.
464
+ * @property {string} [sellerIdentifier] - Optional seller identifier to filter
465
+ * price factories associated with a particular seller.
466
+ * @property {string} [itemCode] - Optional item code to filter price factories
467
+ * configured for a specific product code.
468
+ * @property {string} [slug] - Optional slug to filter price factories by product slug.
469
+ * @property {string} [name] - Optional name to filter price factories by
470
+ * product or configuration name.
471
+ * @property {boolean} [active] - Optional name to filter price factories by
472
+ * product status.
473
+ * @property {number} [pageNo] - The page number to navigate through the given
474
+ * set of results
475
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
476
+ * Default is 12.
477
+ */
478
+
392
479
  /**
393
480
  * @typedef GetProductDetailBySlugParam
394
481
  * @property {string} slug - The unique identifier of a product. i.e; `slug` of
395
482
  * a product. You can retrieve these from the APIs that list products like
396
- * **v1.0/products/**
483
+ * "v1.0/products/"
397
484
  */
398
485
 
399
486
  /** @typedef GetQueryFiltersParam */
@@ -406,9 +493,15 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
406
493
  * detail. Pass the `id` of the keywords which you want to retrieve.
407
494
  */
408
495
 
496
+ /**
497
+ * @typedef UnfollowProductByIdParam
498
+ * @property {string} userId - User ID of User
499
+ * @property {string} itemId - Item ID of Product
500
+ */
501
+
409
502
  /**
410
503
  * @typedef UpdateAllowSingleParam
411
- * @property {CatalogPlatformModel.AllowSingleRequest} body
504
+ * @property {CatalogPlatformModel.AllowSingleRequestSchema} body
412
505
  */
413
506
 
414
507
  /**
@@ -432,20 +525,20 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
432
525
 
433
526
  /**
434
527
  * @typedef UpdateAppDepartmentParam
435
- * @property {string} departmentUid - Department id for which the custom_json is
436
- * associated.
528
+ * @property {number} departmentUid - A `department id` is a unique identifier
529
+ * for a particular department.
437
530
  * @property {CatalogPlatformModel.ApplicationDepartmentJson} body
438
531
  */
439
532
 
440
533
  /**
441
534
  * @typedef UpdateAppLocationParam
442
- * @property {string} storeUid - Store id for which the custom_json is associated.
535
+ * @property {number} storeUid - Store id for which the custom_json is associated.
443
536
  * @property {CatalogPlatformModel.ApplicationStoreJson} body
444
537
  */
445
538
 
446
539
  /**
447
540
  * @typedef UpdateAppProductParam
448
- * @property {string} itemId - Product id for which the custom_meta is associated.
541
+ * @property {number} itemId - A `item_id` is a unique identifier for a particular item.
449
542
  * @property {CatalogPlatformModel.ApplicationItemMeta} body
450
543
  */
451
544
 
@@ -469,7 +562,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
469
562
 
470
563
  /**
471
564
  * @typedef UpdateDefaultSortParam
472
- * @property {CatalogPlatformModel.DefaultKeyRequest} body
565
+ * @property {CatalogPlatformModel.DefaultKeyRequestSchema} body
473
566
  */
474
567
 
475
568
  /**
@@ -490,9 +583,25 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
490
583
  * @property {CatalogPlatformModel.AppConfigurationsSort} body
491
584
  */
492
585
 
586
+ /**
587
+ * @typedef UpdatePriceFactoryParam
588
+ * @property {string} priceFactoryId - Unique identifier of the specific price
589
+ * factory to be updated.
590
+ * @property {CatalogPlatformModel.UpdatePriceFactoryConfigSchema} body
591
+ */
592
+
593
+ /**
594
+ * @typedef UpdatePriceFactoryProductParam
595
+ * @property {string} priceFactoryId - A `price_factory_id` is a unique
596
+ * identifier for a specific price factory configuration.
597
+ * @property {number} itemId - A `item_id` is a unique identifier for a
598
+ * particular product.
599
+ * @property {CatalogPlatformModel.UpsertPriceFactoryProductSchema} body
600
+ */
601
+
493
602
  /**
494
603
  * @typedef UpdateSearchConfigurationParam
495
- * @property {CatalogPlatformModel.UpdateSearchConfigurationRequest} body
604
+ * @property {CatalogPlatformModel.UpdateSearchConfigurationRequestSchema} body
496
605
  */
497
606
 
498
607
  /**
@@ -528,6 +637,13 @@ class CatalogPlatformApplicationValidator {
528
637
  /** @returns {CreateCollectionParam} */
529
638
  static createCollection() {
530
639
  return Joi.object({
640
+ q: Joi.string().allow(""),
641
+ scheduleStatus: Joi.string().allow(""),
642
+ type: Joi.string().allow(""),
643
+ tags: Joi.array().items(Joi.string().allow("")),
644
+ isActive: Joi.boolean(),
645
+ pageNo: Joi.number(),
646
+ pageSize: Joi.number(),
531
647
  body: CatalogPlatformModel.CreateCollection().required(),
532
648
  }).required();
533
649
  }
@@ -577,10 +693,17 @@ class CatalogPlatformApplicationValidator {
577
693
  }).required();
578
694
  }
579
695
 
696
+ /** @returns {CreatePriceFactoryParam} */
697
+ static createPriceFactory() {
698
+ return Joi.object({
699
+ body: CatalogPlatformModel.CreatePriceFactoryConfigSchema().required(),
700
+ }).required();
701
+ }
702
+
580
703
  /** @returns {CreateSearchConfigurationParam} */
581
704
  static createSearchConfiguration() {
582
705
  return Joi.object({
583
- body: CatalogPlatformModel.CreateSearchConfigurationRequest().required(),
706
+ body: CatalogPlatformModel.CreateSearchConfigurationRequestSchema().required(),
584
707
  }).required();
585
708
  }
586
709
 
@@ -621,6 +744,13 @@ class CatalogPlatformApplicationValidator {
621
744
  }).required();
622
745
  }
623
746
 
747
+ /** @returns {DeletePriceFactoryParam} */
748
+ static deletePriceFactory() {
749
+ return Joi.object({
750
+ priceFactoryId: Joi.string().allow("").required(),
751
+ }).required();
752
+ }
753
+
624
754
  /** @returns {DeleteSearchConfigurationParam} */
625
755
  static deleteSearchConfiguration() {
626
756
  return Joi.object({}).required();
@@ -633,6 +763,14 @@ class CatalogPlatformApplicationValidator {
633
763
  }).required();
634
764
  }
635
765
 
766
+ /** @returns {FollowProductByIdParam} */
767
+ static followProductById() {
768
+ return Joi.object({
769
+ userId: Joi.string().allow("").required(),
770
+ itemId: Joi.string().allow("").required(),
771
+ }).required();
772
+ }
773
+
636
774
  /** @returns {GetAllCollectionsParam} */
637
775
  static getAllCollections() {
638
776
  return Joi.object({
@@ -699,6 +837,13 @@ class CatalogPlatformApplicationValidator {
699
837
  }).required();
700
838
  }
701
839
 
840
+ /** @returns {GetAppProductPricesParam} */
841
+ static getAppProductPrices() {
842
+ return Joi.object({
843
+ itemIds: Joi.array().items(Joi.number()).required(),
844
+ }).required();
845
+ }
846
+
702
847
  /** @returns {GetAppProductsParam} */
703
848
  static getAppProducts() {
704
849
  return Joi.object({
@@ -718,23 +863,6 @@ class CatalogPlatformApplicationValidator {
718
863
  return Joi.object({}).required();
719
864
  }
720
865
 
721
- /** @returns {GetAppicationProductsParam} */
722
- static getAppicationProducts() {
723
- return Joi.object({
724
- q: Joi.string().allow(""),
725
- f: Joi.string().allow(""),
726
- c: Joi.string().allow(""),
727
- filters: Joi.boolean(),
728
- isDependent: Joi.boolean(),
729
- sortOn: Joi.string().allow(""),
730
- pageId: Joi.string().allow(""),
731
- pageSize: Joi.number(),
732
- pageNo: Joi.number(),
733
- pageType: Joi.string().allow(""),
734
- itemIds: Joi.array().items(Joi.number()),
735
- }).required();
736
- }
737
-
738
866
  /** @returns {GetApplicationBrandListingParam} */
739
867
  static getApplicationBrandListing() {
740
868
  return Joi.object({
@@ -793,6 +921,23 @@ class CatalogPlatformApplicationValidator {
793
921
  }).required();
794
922
  }
795
923
 
924
+ /** @returns {GetApplicationProductsParam} */
925
+ static getApplicationProducts() {
926
+ return Joi.object({
927
+ q: Joi.string().allow(""),
928
+ f: Joi.string().allow(""),
929
+ c: Joi.string().allow(""),
930
+ filters: Joi.boolean(),
931
+ isDependent: Joi.boolean(),
932
+ sortOn: Joi.string().allow(""),
933
+ pageId: Joi.string().allow(""),
934
+ pageSize: Joi.number(),
935
+ pageNo: Joi.number(),
936
+ pageType: Joi.string().allow(""),
937
+ itemIds: Joi.array().items(Joi.string().allow("")),
938
+ }).required();
939
+ }
940
+
796
941
  /** @returns {GetAutocompleteConfigParam} */
797
942
  static getAutocompleteConfig() {
798
943
  return Joi.object({}).required();
@@ -834,10 +979,10 @@ class CatalogPlatformApplicationValidator {
834
979
  /** @returns {GetCollectionItemsParam} */
835
980
  static getCollectionItems() {
836
981
  return Joi.object({
837
- id: Joi.string().allow("").required(),
838
- sortOn: Joi.string().allow(""),
839
- pageId: Joi.string().allow(""),
982
+ collectionId: Joi.string().allow("").required(),
983
+ pageNo: Joi.number(),
840
984
  pageSize: Joi.number(),
985
+ q: Joi.string().allow(""),
841
986
  }).required();
842
987
  }
843
988
 
@@ -845,6 +990,7 @@ class CatalogPlatformApplicationValidator {
845
990
  static getConfigurationByType() {
846
991
  return Joi.object({
847
992
  type: Joi.string().allow("").required(),
993
+ includeInactive: Joi.boolean(),
848
994
  }).required();
849
995
  }
850
996
 
@@ -873,14 +1019,22 @@ class CatalogPlatformApplicationValidator {
873
1019
  static getDiscountedInventoryBySizeIdentifier() {
874
1020
  return Joi.object({
875
1021
  itemId: Joi.number().required(),
876
- sizeIdentifier: Joi.string().allow("").required(),
1022
+ sizeIdentifier: Joi.number().required(),
877
1023
  pageNo: Joi.number(),
878
1024
  pageSize: Joi.number(),
879
- q: Joi.string().allow(""),
880
1025
  locationIds: Joi.array().items(Joi.number()),
881
1026
  }).required();
882
1027
  }
883
1028
 
1029
+ /** @returns {GetFollowedProductsParam} */
1030
+ static getFollowedProducts() {
1031
+ return Joi.object({
1032
+ userId: Joi.string().allow("").required(),
1033
+ pageId: Joi.string().allow(""),
1034
+ pageSize: Joi.number(),
1035
+ }).required();
1036
+ }
1037
+
884
1038
  /** @returns {GetGroupConfigurationsParam} */
885
1039
  static getGroupConfigurations() {
886
1040
  return Joi.object({
@@ -902,6 +1056,44 @@ class CatalogPlatformApplicationValidator {
902
1056
  }).required();
903
1057
  }
904
1058
 
1059
+ /** @returns {GetPriceFactoriesParam} */
1060
+ static getPriceFactories() {
1061
+ return Joi.object({
1062
+ q: Joi.string().allow(""),
1063
+ }).required();
1064
+ }
1065
+
1066
+ /** @returns {GetPriceFactoryParam} */
1067
+ static getPriceFactory() {
1068
+ return Joi.object({
1069
+ priceFactoryId: Joi.string().allow("").required(),
1070
+ }).required();
1071
+ }
1072
+
1073
+ /** @returns {GetPriceFactoryProductParam} */
1074
+ static getPriceFactoryProduct() {
1075
+ return Joi.object({
1076
+ priceFactoryId: Joi.string().allow("").required(),
1077
+ itemId: Joi.number().required(),
1078
+ }).required();
1079
+ }
1080
+
1081
+ /** @returns {GetPriceFactoryProductsParam} */
1082
+ static getPriceFactoryProducts() {
1083
+ return Joi.object({
1084
+ priceFactoryId: Joi.string().allow("").required(),
1085
+ brandIds: Joi.array().items(Joi.number()),
1086
+ categoryIds: Joi.array().items(Joi.number()),
1087
+ sellerIdentifier: Joi.string().allow(""),
1088
+ itemCode: Joi.string().allow(""),
1089
+ slug: Joi.string().allow(""),
1090
+ name: Joi.string().allow(""),
1091
+ active: Joi.boolean(),
1092
+ pageNo: Joi.number(),
1093
+ pageSize: Joi.number(),
1094
+ }).required();
1095
+ }
1096
+
905
1097
  /** @returns {GetProductDetailBySlugParam} */
906
1098
  static getProductDetailBySlug() {
907
1099
  return Joi.object({
@@ -926,10 +1118,18 @@ class CatalogPlatformApplicationValidator {
926
1118
  }).required();
927
1119
  }
928
1120
 
1121
+ /** @returns {UnfollowProductByIdParam} */
1122
+ static unfollowProductById() {
1123
+ return Joi.object({
1124
+ userId: Joi.string().allow("").required(),
1125
+ itemId: Joi.string().allow("").required(),
1126
+ }).required();
1127
+ }
1128
+
929
1129
  /** @returns {UpdateAllowSingleParam} */
930
1130
  static updateAllowSingle() {
931
1131
  return Joi.object({
932
- body: CatalogPlatformModel.AllowSingleRequest().required(),
1132
+ body: CatalogPlatformModel.AllowSingleRequestSchema().required(),
933
1133
  }).required();
934
1134
  }
935
1135
 
@@ -959,7 +1159,7 @@ class CatalogPlatformApplicationValidator {
959
1159
  /** @returns {UpdateAppDepartmentParam} */
960
1160
  static updateAppDepartment() {
961
1161
  return Joi.object({
962
- departmentUid: Joi.string().allow("").required(),
1162
+ departmentUid: Joi.number().required(),
963
1163
  body: CatalogPlatformModel.ApplicationDepartmentJson().required(),
964
1164
  }).required();
965
1165
  }
@@ -967,7 +1167,7 @@ class CatalogPlatformApplicationValidator {
967
1167
  /** @returns {UpdateAppLocationParam} */
968
1168
  static updateAppLocation() {
969
1169
  return Joi.object({
970
- storeUid: Joi.string().allow("").required(),
1170
+ storeUid: Joi.number().required(),
971
1171
  body: CatalogPlatformModel.ApplicationStoreJson().required(),
972
1172
  }).required();
973
1173
  }
@@ -975,7 +1175,7 @@ class CatalogPlatformApplicationValidator {
975
1175
  /** @returns {UpdateAppProductParam} */
976
1176
  static updateAppProduct() {
977
1177
  return Joi.object({
978
- itemId: Joi.string().allow("").required(),
1178
+ itemId: Joi.number().required(),
979
1179
  body: CatalogPlatformModel.ApplicationItemMeta().required(),
980
1180
  }).required();
981
1181
  }
@@ -1006,7 +1206,7 @@ class CatalogPlatformApplicationValidator {
1006
1206
  /** @returns {UpdateDefaultSortParam} */
1007
1207
  static updateDefaultSort() {
1008
1208
  return Joi.object({
1009
- body: CatalogPlatformModel.DefaultKeyRequest().required(),
1209
+ body: CatalogPlatformModel.DefaultKeyRequestSchema().required(),
1010
1210
  }).required();
1011
1211
  }
1012
1212
 
@@ -1028,10 +1228,27 @@ class CatalogPlatformApplicationValidator {
1028
1228
  }).required();
1029
1229
  }
1030
1230
 
1231
+ /** @returns {UpdatePriceFactoryParam} */
1232
+ static updatePriceFactory() {
1233
+ return Joi.object({
1234
+ priceFactoryId: Joi.string().allow("").required(),
1235
+ body: CatalogPlatformModel.UpdatePriceFactoryConfigSchema().required(),
1236
+ }).required();
1237
+ }
1238
+
1239
+ /** @returns {UpdatePriceFactoryProductParam} */
1240
+ static updatePriceFactoryProduct() {
1241
+ return Joi.object({
1242
+ priceFactoryId: Joi.string().allow("").required(),
1243
+ itemId: Joi.number().required(),
1244
+ body: CatalogPlatformModel.UpsertPriceFactoryProductSchema().required(),
1245
+ }).required();
1246
+ }
1247
+
1031
1248
  /** @returns {UpdateSearchConfigurationParam} */
1032
1249
  static updateSearchConfiguration() {
1033
1250
  return Joi.object({
1034
- body: CatalogPlatformModel.UpdateSearchConfigurationRequest().required(),
1251
+ body: CatalogPlatformModel.UpdateSearchConfigurationRequestSchema().required(),
1035
1252
  }).required();
1036
1253
  }
1037
1254