@gofynd/fdk-client-javascript 1.4.15-beta.6 → 1.4.16-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 (237) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -27
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +19 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +40 -60
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +126 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  20. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +118 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +62 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +65 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +6 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  41. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  44. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  45. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  51. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  52. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  53. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  54. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  60. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  66. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  72. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  73. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  74. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  75. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  76. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  77. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  78. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  80. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  82. package/sdk/platform/Cart/CartPlatformModel.d.ts +5039 -1300
  83. package/sdk/platform/Cart/CartPlatformModel.js +1976 -1217
  84. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  88. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  89. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  90. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6941 -2203
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1687
  92. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  94. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  95. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  96. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  97. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  98. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  103. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  104. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  110. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  116. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  118. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  120. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  124. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  125. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  126. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  127. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  128. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  129. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  130. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  131. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  132. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  133. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  134. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  136. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  140. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  144. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  146. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  147. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  149. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  150. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  151. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  152. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  153. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  154. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  155. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  156. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  157. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  158. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  159. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  160. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  161. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  162. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  163. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  164. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  165. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  166. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  167. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  168. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  169. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  170. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  171. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  172. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  173. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  174. package/sdk/platform/PlatformClient.d.ts +0 -2
  175. package/sdk/platform/PlatformClient.js +0 -4
  176. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  178. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  179. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  180. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  181. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +48 -38
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +134 -43
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +38 -44
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +56 -62
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  192. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  195. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  196. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  197. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  198. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  199. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  200. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  201. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  206. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  207. package/sdk/platform/User/UserPlatformModel.js +23 -23
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  214. package/sdk/platform/index.d.ts +0 -1
  215. package/sdk/platform/index.js +0 -2
  216. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  217. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  218. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  219. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  220. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  221. package/sdk/public/Content/ContentPublicClient.js +895 -8
  222. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  223. package/sdk/public/Content/ContentPublicModel.js +649 -3
  224. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  225. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  226. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  227. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  228. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  229. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  230. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  231. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  232. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  233. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  234. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  235. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  236. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  237. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -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
 
@@ -60,7 +70,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
60
70
 
61
71
  /**
62
72
  * @typedef CreateSearchConfigurationParam
63
- * @property {CatalogPlatformModel.CreateSearchConfigurationRequest} body
73
+ * @property {CatalogPlatformModel.CreateSearchConfigurationRequestSchema} body
64
74
  */
65
75
 
66
76
  /**
@@ -188,35 +198,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
188
198
 
189
199
  /** @typedef GetAppReturnConfigurationParam */
190
200
 
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
201
  /**
221
202
  * @typedef GetApplicationBrandListingParam
222
203
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -268,26 +249,56 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
268
249
  /**
269
250
  * @typedef GetApplicationFilterKeysParam
270
251
  * @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**
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"
274
254
  */
275
255
 
276
256
  /**
277
257
  * @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.
258
+ * @property {string} filterKey - A `filter_key` is a filter key which returns
259
+ * all the available filter values.
280
260
  * @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**
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"
284
263
  * @property {string} [collectionId] - A `collection_id` is a unique identifier
285
- * for a particular collection. channel.
264
+ * for a particular collection.
286
265
  * @property {number} [pageNo] - The page number to navigate through the given
287
266
  * set of results
288
267
  * @property {number} [pageSize] - Number of items to retrieve in each page.
289
268
  * Default is 10.
290
- * @property {string} [q] - Get Values filtered by q string
269
+ * @property {string} [q] - The `q` parameter allows you to search and filter
270
+ * specific data within the filter options. It acts as a query keyword that
271
+ * can refine the results by matching relevant filter values, such as a
272
+ * category name or any other applicable filter criteria.
273
+ */
274
+
275
+ /**
276
+ * @typedef GetApplicationProductsParam
277
+ * @property {string} [q] - The search query. This can be a partial or complete
278
+ * name of a either a product, brand or category
279
+ * @property {string} [f] - The search filter parameters. All the parameter
280
+ * filtered from filter parameters will be passed in **f** parameter in this
281
+ * format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts**
282
+ * @property {string} [c] - The search filter parameters for collection items.
283
+ * All the parameter filtered from filter parameters will be passed in **c**
284
+ * parameter in this format.
285
+ * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
286
+ * @property {boolean} [filters] - Pass `filters` parameter to fetch the filter
287
+ * details. This flag is used to fetch all filters
288
+ * @property {boolean} [isDependent] - This query parameter is used to get the
289
+ * dependent products in the listing.
290
+ * @property {string} [sortOn] - The order to sort the list of products on. The
291
+ * supported sort parameters are popularity, price, redemption and discount in
292
+ * either ascending or descending order. See the supported values below.
293
+ * @property {string} [pageId] - Each response will contain **page_id** param,
294
+ * which should be sent back to make pagination work.
295
+ * @property {number} [pageSize] - Number of items to retrieve in each page.
296
+ * Default is 12.
297
+ * @property {number} [pageNo] - If page_type is number then pass it to fetch
298
+ * page items. Default is 1.
299
+ * @property {string} [pageType] - For pagination type should be cursor or
300
+ * number. Default is cursor.
301
+ * @property {string[]} [itemIds] - Item Ids of product
291
302
  */
292
303
 
293
304
  /** @typedef GetAutocompleteConfigParam */
@@ -329,6 +340,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
329
340
  * should be sent back to make pagination work.
330
341
  * @property {number} [pageSize] - Number of items to retrieve in each page.
331
342
  * Default is 12.
343
+ * @property {number} [pageNo] - Identifies the specific page of results being requested.
332
344
  */
333
345
 
334
346
  /**
@@ -354,14 +366,13 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
354
366
 
355
367
  /**
356
368
  * @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.
369
+ * @property {number} itemId - A `item_id` is a unique identifier for a specific product.
370
+ * @property {number} sizeIdentifier - Size Identifier (Seller Identifier or
371
+ * Primary Identifier).
360
372
  * @property {number} [pageNo] - The page number to navigate through the given
361
373
  * set of results
362
374
  * @property {number} [pageSize] - Number of items to retrieve in each page.
363
375
  * Default is 12.
364
- * @property {string} [q] - Search with help of store code.
365
376
  * @property {number[]} [locationIds] - Search by store ids.
366
377
  */
367
378
 
@@ -393,7 +404,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
393
404
  * @typedef GetProductDetailBySlugParam
394
405
  * @property {string} slug - The unique identifier of a product. i.e; `slug` of
395
406
  * a product. You can retrieve these from the APIs that list products like
396
- * **v1.0/products/**
407
+ * "v1.0/products/"
397
408
  */
398
409
 
399
410
  /** @typedef GetQueryFiltersParam */
@@ -408,7 +419,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
408
419
 
409
420
  /**
410
421
  * @typedef UpdateAllowSingleParam
411
- * @property {CatalogPlatformModel.AllowSingleRequest} body
422
+ * @property {CatalogPlatformModel.AllowSingleRequestSchema} body
412
423
  */
413
424
 
414
425
  /**
@@ -432,20 +443,20 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
432
443
 
433
444
  /**
434
445
  * @typedef UpdateAppDepartmentParam
435
- * @property {string} departmentUid - Department id for which the custom_json is
436
- * associated.
446
+ * @property {number} departmentUid - A `department id` is a unique identifier
447
+ * for a particular department.
437
448
  * @property {CatalogPlatformModel.ApplicationDepartmentJson} body
438
449
  */
439
450
 
440
451
  /**
441
452
  * @typedef UpdateAppLocationParam
442
- * @property {string} storeUid - Store id for which the custom_json is associated.
453
+ * @property {number} storeUid - Store id for which the custom_json is associated.
443
454
  * @property {CatalogPlatformModel.ApplicationStoreJson} body
444
455
  */
445
456
 
446
457
  /**
447
458
  * @typedef UpdateAppProductParam
448
- * @property {string} itemId - Product id for which the custom_meta is associated.
459
+ * @property {number} itemId - A `item_id` is a unique identifier for a particular item.
449
460
  * @property {CatalogPlatformModel.ApplicationItemMeta} body
450
461
  */
451
462
 
@@ -469,7 +480,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
469
480
 
470
481
  /**
471
482
  * @typedef UpdateDefaultSortParam
472
- * @property {CatalogPlatformModel.DefaultKeyRequest} body
483
+ * @property {CatalogPlatformModel.DefaultKeyRequestSchema} body
473
484
  */
474
485
 
475
486
  /**
@@ -492,7 +503,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
492
503
 
493
504
  /**
494
505
  * @typedef UpdateSearchConfigurationParam
495
- * @property {CatalogPlatformModel.UpdateSearchConfigurationRequest} body
506
+ * @property {CatalogPlatformModel.UpdateSearchConfigurationRequestSchema} body
496
507
  */
497
508
 
498
509
  /**
@@ -528,6 +539,13 @@ class CatalogPlatformApplicationValidator {
528
539
  /** @returns {CreateCollectionParam} */
529
540
  static createCollection() {
530
541
  return Joi.object({
542
+ q: Joi.string().allow(""),
543
+ scheduleStatus: Joi.string().allow(""),
544
+ type: Joi.string().allow(""),
545
+ tags: Joi.array().items(Joi.string().allow("")),
546
+ isActive: Joi.boolean(),
547
+ pageNo: Joi.number(),
548
+ pageSize: Joi.number(),
531
549
  body: CatalogPlatformModel.CreateCollection().required(),
532
550
  }).required();
533
551
  }
@@ -580,7 +598,7 @@ class CatalogPlatformApplicationValidator {
580
598
  /** @returns {CreateSearchConfigurationParam} */
581
599
  static createSearchConfiguration() {
582
600
  return Joi.object({
583
- body: CatalogPlatformModel.CreateSearchConfigurationRequest().required(),
601
+ body: CatalogPlatformModel.CreateSearchConfigurationRequestSchema().required(),
584
602
  }).required();
585
603
  }
586
604
 
@@ -718,23 +736,6 @@ class CatalogPlatformApplicationValidator {
718
736
  return Joi.object({}).required();
719
737
  }
720
738
 
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
739
  /** @returns {GetApplicationBrandListingParam} */
739
740
  static getApplicationBrandListing() {
740
741
  return Joi.object({
@@ -793,6 +794,23 @@ class CatalogPlatformApplicationValidator {
793
794
  }).required();
794
795
  }
795
796
 
797
+ /** @returns {GetApplicationProductsParam} */
798
+ static getApplicationProducts() {
799
+ return Joi.object({
800
+ q: Joi.string().allow(""),
801
+ f: Joi.string().allow(""),
802
+ c: Joi.string().allow(""),
803
+ filters: Joi.boolean(),
804
+ isDependent: Joi.boolean(),
805
+ sortOn: Joi.string().allow(""),
806
+ pageId: Joi.string().allow(""),
807
+ pageSize: Joi.number(),
808
+ pageNo: Joi.number(),
809
+ pageType: Joi.string().allow(""),
810
+ itemIds: Joi.array().items(Joi.string().allow("")),
811
+ }).required();
812
+ }
813
+
796
814
  /** @returns {GetAutocompleteConfigParam} */
797
815
  static getAutocompleteConfig() {
798
816
  return Joi.object({}).required();
@@ -838,6 +856,7 @@ class CatalogPlatformApplicationValidator {
838
856
  sortOn: Joi.string().allow(""),
839
857
  pageId: Joi.string().allow(""),
840
858
  pageSize: Joi.number(),
859
+ pageNo: Joi.number(),
841
860
  }).required();
842
861
  }
843
862
 
@@ -873,10 +892,9 @@ class CatalogPlatformApplicationValidator {
873
892
  static getDiscountedInventoryBySizeIdentifier() {
874
893
  return Joi.object({
875
894
  itemId: Joi.number().required(),
876
- sizeIdentifier: Joi.string().allow("").required(),
895
+ sizeIdentifier: Joi.number().required(),
877
896
  pageNo: Joi.number(),
878
897
  pageSize: Joi.number(),
879
- q: Joi.string().allow(""),
880
898
  locationIds: Joi.array().items(Joi.number()),
881
899
  }).required();
882
900
  }
@@ -929,7 +947,7 @@ class CatalogPlatformApplicationValidator {
929
947
  /** @returns {UpdateAllowSingleParam} */
930
948
  static updateAllowSingle() {
931
949
  return Joi.object({
932
- body: CatalogPlatformModel.AllowSingleRequest().required(),
950
+ body: CatalogPlatformModel.AllowSingleRequestSchema().required(),
933
951
  }).required();
934
952
  }
935
953
 
@@ -959,7 +977,7 @@ class CatalogPlatformApplicationValidator {
959
977
  /** @returns {UpdateAppDepartmentParam} */
960
978
  static updateAppDepartment() {
961
979
  return Joi.object({
962
- departmentUid: Joi.string().allow("").required(),
980
+ departmentUid: Joi.number().required(),
963
981
  body: CatalogPlatformModel.ApplicationDepartmentJson().required(),
964
982
  }).required();
965
983
  }
@@ -967,7 +985,7 @@ class CatalogPlatformApplicationValidator {
967
985
  /** @returns {UpdateAppLocationParam} */
968
986
  static updateAppLocation() {
969
987
  return Joi.object({
970
- storeUid: Joi.string().allow("").required(),
988
+ storeUid: Joi.number().required(),
971
989
  body: CatalogPlatformModel.ApplicationStoreJson().required(),
972
990
  }).required();
973
991
  }
@@ -975,7 +993,7 @@ class CatalogPlatformApplicationValidator {
975
993
  /** @returns {UpdateAppProductParam} */
976
994
  static updateAppProduct() {
977
995
  return Joi.object({
978
- itemId: Joi.string().allow("").required(),
996
+ itemId: Joi.number().required(),
979
997
  body: CatalogPlatformModel.ApplicationItemMeta().required(),
980
998
  }).required();
981
999
  }
@@ -1006,7 +1024,7 @@ class CatalogPlatformApplicationValidator {
1006
1024
  /** @returns {UpdateDefaultSortParam} */
1007
1025
  static updateDefaultSort() {
1008
1026
  return Joi.object({
1009
- body: CatalogPlatformModel.DefaultKeyRequest().required(),
1027
+ body: CatalogPlatformModel.DefaultKeyRequestSchema().required(),
1010
1028
  }).required();
1011
1029
  }
1012
1030
 
@@ -1031,7 +1049,7 @@ class CatalogPlatformApplicationValidator {
1031
1049
  /** @returns {UpdateSearchConfigurationParam} */
1032
1050
  static updateSearchConfiguration() {
1033
1051
  return Joi.object({
1034
- body: CatalogPlatformModel.UpdateSearchConfigurationRequest().required(),
1052
+ body: CatalogPlatformModel.UpdateSearchConfigurationRequestSchema().required(),
1035
1053
  }).required();
1036
1054
  }
1037
1055