@gofynd/fdk-client-javascript 1.4.12 → 1.4.14

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 (297) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -53
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
  8. package/sdk/application/Cart/CartApplicationModel.js +380 -159
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
  10. package/sdk/application/Cart/CartApplicationValidator.js +34 -18
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
  16. package/sdk/application/Common/CommonApplicationClient.js +6 -5
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
  26. package/sdk/application/Content/ContentApplicationClient.js +54 -75
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
  28. package/sdk/application/Content/ContentApplicationModel.js +88 -34
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
  30. package/sdk/application/Content/ContentApplicationValidator.js +15 -10
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
  38. package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
  39. package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
  40. package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
  41. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
  42. package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +2 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  46. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  47. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
  48. package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
  49. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
  50. package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
  51. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
  52. package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
  53. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
  54. package/sdk/application/Order/OrderApplicationClient.js +96 -13
  55. package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
  56. package/sdk/application/Order/OrderApplicationModel.js +278 -73
  57. package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
  58. package/sdk/application/Order/OrderApplicationValidator.js +15 -2
  59. package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
  60. package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
  61. package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
  62. package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
  63. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  64. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  65. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
  66. package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  69. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  70. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  71. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  72. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  73. package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
  74. package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
  75. package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
  76. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
  77. package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
  78. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  79. package/sdk/application/User/UserApplicationClient.js +10 -10
  80. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  81. package/sdk/application/User/UserApplicationModel.js +16 -16
  82. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  83. package/sdk/application/User/UserApplicationValidator.js +2 -2
  84. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  85. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  86. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
  87. package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
  88. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  89. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  90. package/sdk/application/index.d.ts +1 -0
  91. package/sdk/application/index.js +2 -0
  92. package/sdk/common/Clickstream.js +12 -0
  93. package/sdk/common/Constant.d.ts +5 -0
  94. package/sdk/common/Constant.js +5 -0
  95. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  96. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  97. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  98. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  99. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  100. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  101. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  102. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  103. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  104. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  105. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  106. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  107. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
  108. package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
  109. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  110. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
  111. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  112. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  113. package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
  114. package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
  115. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  116. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  117. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  118. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  119. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  120. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  121. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  122. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  123. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  124. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  125. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  126. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  127. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  132. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  133. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  134. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  135. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  136. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  137. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  138. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  139. package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
  140. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  141. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  142. package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
  143. package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
  144. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
  145. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
  148. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
  149. package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
  150. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
  151. package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
  152. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  153. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  154. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  155. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  156. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  157. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  158. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  159. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  160. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  161. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  162. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  163. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  168. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  169. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  172. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  173. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  174. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  175. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  176. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  177. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  178. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  179. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  180. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  181. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  182. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  183. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  184. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  185. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  186. package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
  187. package/sdk/platform/Content/ContentPlatformModel.js +526 -392
  188. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  189. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  190. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  191. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  192. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  193. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  194. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  195. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  196. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  197. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  198. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  199. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  200. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  201. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  202. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  203. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  204. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  205. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  206. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  207. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  208. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  209. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  210. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
  211. package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
  212. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
  213. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  214. package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
  215. package/sdk/platform/Order/OrderPlatformClient.js +267 -203
  216. package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
  217. package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
  218. package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
  219. package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
  220. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  221. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  222. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  223. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  224. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  225. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  226. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  227. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  228. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  229. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  230. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
  231. package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
  232. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  233. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  234. package/sdk/platform/PlatformClient.d.ts +0 -2
  235. package/sdk/platform/PlatformClient.js +0 -4
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  238. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  239. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  240. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  241. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
  249. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
  250. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  251. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  252. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  253. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  254. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  255. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  256. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  257. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  258. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  259. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  260. package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
  261. package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
  262. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  263. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  264. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  265. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  266. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  267. package/sdk/platform/User/UserPlatformModel.js +23 -23
  268. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  269. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  270. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  271. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  272. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  273. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  274. package/sdk/platform/index.d.ts +0 -1
  275. package/sdk/platform/index.js +0 -2
  276. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  277. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  278. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  279. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  280. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  281. package/sdk/public/Content/ContentPublicClient.js +791 -5
  282. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  283. package/sdk/public/Content/ContentPublicModel.js +649 -3
  284. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  285. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  286. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  287. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  288. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  289. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  290. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  291. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  292. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  293. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  294. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  295. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  296. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  297. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -181,7 +181,7 @@ const Joi = require("joi");
181
181
  */
182
182
 
183
183
  /**
184
- * @typedef ErrorResponse
184
+ * @typedef ErrorResponseSchema
185
185
  * @property {string} [error] - A brief description of the error.
186
186
  */
187
187
 
@@ -296,14 +296,14 @@ const Joi = require("joi");
296
296
  */
297
297
 
298
298
  /**
299
- * @typedef ProductsComparisonResponse
299
+ * @typedef ProductsComparisonResponseSchema
300
300
  * @property {ProductDetail[]} [items] - List of product details for comparison.
301
301
  * @property {AttributeMetadata[]} [attributes_metadata] - Metadata about
302
302
  * attributes used for comparing products.
303
303
  */
304
304
 
305
305
  /**
306
- * @typedef ProductCompareResponse
306
+ * @typedef ProductCompareResponseSchema
307
307
  * @property {string} [title] - Title or name of the comparison.
308
308
  * @property {ProductDetail[]} [items] - List of product details for comparison.
309
309
  * @property {AttributeMetadata[]} [attributes_metadata] - Metadata about
@@ -312,12 +312,12 @@ const Joi = require("joi");
312
312
  */
313
313
 
314
314
  /**
315
- * @typedef ProductFrequentlyComparedSimilarResponse
316
- * @property {ProductCompareResponse} [similars]
315
+ * @typedef ProductFrequentlyComparedSimilarResponseSchema
316
+ * @property {ProductCompareResponseSchema} [similars]
317
317
  */
318
318
 
319
319
  /**
320
- * @typedef ProductVariantItemResponse
320
+ * @typedef ProductVariantItemResponseSchema
321
321
  * @property {number} [uid] - Unique identifier for the product variant.
322
322
  * @property {string} [color_name] - Name of the color for the variant.
323
323
  * @property {string} [color] - Color code or representation for the variant.
@@ -335,21 +335,21 @@ const Joi = require("joi");
335
335
  */
336
336
 
337
337
  /**
338
- * @typedef ProductVariantResponse
338
+ * @typedef ProductVariantResponseSchema
339
339
  * @property {string} [display_type] - The type of display for the product
340
340
  * variant (e.g., image, text, image, color).
341
341
  * @property {string} [header] - Header or title for the product variant section.
342
342
  * @property {string} [group_id] - Group ID used to group variants.
343
- * @property {ProductVariantItemResponse[]} [items] - List of product variant items.
343
+ * @property {ProductVariantItemResponseSchema[]} [items] - List of product variant items.
344
344
  * @property {string} [key] - Attribute identifier of the variant.
345
345
  * @property {string} [logo] - URL or path to the logo associated with the
346
346
  * product variant.
347
347
  */
348
348
 
349
349
  /**
350
- * @typedef ProductVariantsResponse
351
- * @property {ProductVariantResponse[]} [variants] - A list of product variant
352
- * responses, each detailing a specific variant.
350
+ * @typedef ProductVariantsResponseSchema
351
+ * @property {ProductVariantResponseSchema[]} [variants] - A list of product
352
+ * variant responses, each detailing a specific variant.
353
353
  */
354
354
 
355
355
  /**
@@ -390,11 +390,11 @@ const Joi = require("joi");
390
390
  * @property {CompanyDetail} [company]
391
391
  * @property {number} [item_id] - NA.
392
392
  * @property {Seller} [seller]
393
- * @property {Object} [identifier] - NA.
393
+ * @property {Identifier} [identifier]
394
394
  */
395
395
 
396
396
  /**
397
- * @typedef ProductStockStatusResponse
397
+ * @typedef ProductStockStatusResponseSchema
398
398
  * @property {ProductStockStatusItem[]} [items] - NA.
399
399
  */
400
400
 
@@ -416,10 +416,10 @@ const Joi = require("joi");
416
416
  */
417
417
 
418
418
  /**
419
- * @typedef ProductVariantListingResponse
419
+ * @typedef ProductVariantListingResponseSchema
420
420
  * @property {string} [header] - Header or title for the product variant section.
421
- * @property {ProductVariantItemResponse[]} [items] - List of Upto 5 product
422
- * variant items.
421
+ * @property {ProductVariantItemResponseSchema[]} [items] - List of Upto 5
422
+ * product variant items.
423
423
  * @property {number} [total] - The total number of product variants available.
424
424
  * @property {string} [key] - Attribute identifier of the variant.
425
425
  * @property {string} [display_type] - The type of display for the product
@@ -464,8 +464,8 @@ const Joi = require("joi");
464
464
  * @property {boolean} [sellable] - Indicates whether the product is available for sale.
465
465
  * @property {Object} [attributes] - Additional attributes or characteristics of
466
466
  * the product.
467
- * @property {ProductVariantListingResponse[]} [variants] - List of product
468
- * variants available for the product.
467
+ * @property {ProductVariantListingResponseSchema[]} [variants] - List of
468
+ * product variants available for the product.
469
469
  * @property {string} [discount] - Discount details or percentage applied to the product.
470
470
  * @property {string[]} [tryouts] - List of tryout options available for the product.
471
471
  * @property {string[]} [identifiers] - List of seller identifiers for the product.
@@ -530,7 +530,7 @@ const Joi = require("joi");
530
530
  */
531
531
 
532
532
  /**
533
- * @typedef ProductListingResponse
533
+ * @typedef ProductListingResponseSchema
534
534
  * @property {ProductListingDetail[]} [items] - List of product details included
535
535
  * in the response.
536
536
  * @property {ProductFilters[]} [filters] - List of filters available for
@@ -564,13 +564,13 @@ const Joi = require("joi");
564
564
  */
565
565
 
566
566
  /**
567
- * @typedef BrandListingResponse
567
+ * @typedef BrandListingResponseSchema
568
568
  * @property {BrandItem[]} [items] - List of brand items included in the response.
569
569
  * @property {Page} page
570
570
  */
571
571
 
572
572
  /**
573
- * @typedef BrandDetailResponse
573
+ * @typedef BrandDetailResponseSchema
574
574
  * @property {Media} [logo]
575
575
  * @property {number} [uid] - The unique identifier for the brand.
576
576
  * @property {string} [description] - Detailed description of the brand,
@@ -646,13 +646,13 @@ const Joi = require("joi");
646
646
  */
647
647
 
648
648
  /**
649
- * @typedef CategoryListingResponse
649
+ * @typedef CategoryListingResponseSchema
650
650
  * @property {DepartmentCategoryTree[]} [data] - List of department category trees.
651
651
  * @property {DepartmentIdentifier[]} [departments] - List of departments.
652
652
  */
653
653
 
654
654
  /**
655
- * @typedef CategoryMetaResponse
655
+ * @typedef CategoryMetaResponseSchema
656
656
  * @property {Media} [logo]
657
657
  * @property {number} [uid] - Unique identifier for the category.
658
658
  * @property {ImageUrls} [banners]
@@ -662,7 +662,7 @@ const Joi = require("joi");
662
662
  */
663
663
 
664
664
  /**
665
- * @typedef HomeListingResponse
665
+ * @typedef HomeListingResponseSchema
666
666
  * @property {ProductListingDetail[]} [items] - List of product details
667
667
  * displayed on the home page.
668
668
  * @property {Page} page
@@ -682,7 +682,7 @@ const Joi = require("joi");
682
682
  */
683
683
 
684
684
  /**
685
- * @typedef DepartmentResponse
685
+ * @typedef DepartmentResponseSchema
686
686
  * @property {Department[]} [items] - List of department detail objects.
687
687
  */
688
688
 
@@ -698,7 +698,7 @@ const Joi = require("joi");
698
698
  */
699
699
 
700
700
  /**
701
- * @typedef AutoCompleteResponse
701
+ * @typedef AutoCompleteResponseSchema
702
702
  * @property {AutocompleteItem[]} [items] - List of autocomplete items suggested
703
703
  * based on user input.
704
704
  */
@@ -775,7 +775,7 @@ const Joi = require("joi");
775
775
  */
776
776
 
777
777
  /**
778
- * @typedef GetCollectionListingResponse
778
+ * @typedef GetCollectionListingResponseSchema
779
779
  * @property {GetCollectionDetailNest[]} [items] - An array of collection
780
780
  * details. Each item in the array represents a collection with various
781
781
  * attributes and configurations.
@@ -784,7 +784,7 @@ const Joi = require("joi");
784
784
  */
785
785
 
786
786
  /**
787
- * @typedef CollectionDetailResponse
787
+ * @typedef CollectionDetailResponseSchema
788
788
  * @property {boolean} [is_active] - Indicates whether the collection is active.
789
789
  * @property {string} [sort_on] - Criteria used to sort the items within the
790
790
  * collection, such as price, popularity, or newest first.
@@ -817,7 +817,7 @@ const Joi = require("joi");
817
817
  */
818
818
 
819
819
  /**
820
- * @typedef GetFollowListingResponse
820
+ * @typedef GetFollowListingResponseSchema
821
821
  * @property {ProductListingDetail[]} items - An array of product details that
822
822
  * the user is following. Each item includes information such as the product
823
823
  * name, price, and other attributes.
@@ -825,7 +825,7 @@ const Joi = require("joi");
825
825
  */
826
826
 
827
827
  /**
828
- * @typedef FollowPostResponse
828
+ * @typedef FollowPostResponseSchema
829
829
  * @property {string} message - A message indicating the result of the follow or
830
830
  * unfollow operation. This could be a confirmation message or an error message.
831
831
  * @property {string} id - A unique identifier for the follow operation, which
@@ -833,7 +833,7 @@ const Joi = require("joi");
833
833
  */
834
834
 
835
835
  /**
836
- * @typedef FollowerCountResponse
836
+ * @typedef FollowerCountResponseSchema
837
837
  * @property {number} [count] - The number of followers for the item. This count
838
838
  * indicates how many users are following the specified item.
839
839
  */
@@ -849,7 +849,7 @@ const Joi = require("joi");
849
849
  */
850
850
 
851
851
  /**
852
- * @typedef FollowIdsResponse
852
+ * @typedef FollowIdsResponseSchema
853
853
  * @property {FollowIdsData} [data]
854
854
  */
855
855
 
@@ -861,6 +861,12 @@ const Joi = require("joi");
861
861
  * For example, "Point" indicates a single point in a geographic coordinate system.
862
862
  */
863
863
 
864
+ /**
865
+ * @typedef StoreContact
866
+ * @property {string} [number] - The contact number of the Store Manager.
867
+ * @property {number} [country_code] - The country code for the contact number.
868
+ */
869
+
864
870
  /**
865
871
  * @typedef Store
866
872
  * @property {number} [uid] - A unique identifier for the store.
@@ -875,10 +881,11 @@ const Joi = require("joi");
875
881
  * @property {LatLong} [lat_long]
876
882
  * @property {string} [name] - The name of the store.
877
883
  * @property {string[]} [tags] - The list of tags mapped to the store.
884
+ * @property {StoreContact[]} [contacts] - List of contact numbers for the store.
878
885
  */
879
886
 
880
887
  /**
881
- * @typedef StoreListingResponse
888
+ * @typedef StoreListingResponseSchema
882
889
  * @property {Store[]} items - An array of store details. Each store includes
883
890
  * information such as name, address, and geographic coordinates.
884
891
  * @property {Page} page
@@ -919,14 +926,14 @@ const Joi = require("joi");
919
926
  */
920
927
 
921
928
  /**
922
- * @typedef StoreManagerSerializer
929
+ * @typedef StoreManagerSchema
923
930
  * @property {string} [name] - The name of the store manager.
924
931
  * @property {string} [email] - The email address of the store manager.
925
932
  * @property {SellerPhoneNumber} [mobile_no]
926
933
  */
927
934
 
928
935
  /**
929
- * @typedef StoreAddressSerializer
936
+ * @typedef StoreAddressSchema
930
937
  * @property {number} [latitude] - The latitude of the store's location.
931
938
  * @property {string} [state] - The state where the store is located.
932
939
  * @property {string} [country] - The country where the store is located.
@@ -943,9 +950,9 @@ const Joi = require("joi");
943
950
  * @property {number} [uid] - The unique identifier for the application store.
944
951
  * @property {StoreDepartments[]} [departments] - A list of departments within the store.
945
952
  * @property {CompanyStore} [company]
946
- * @property {StoreManagerSerializer} [manager]
953
+ * @property {StoreManagerSchema} [manager]
947
954
  * @property {string} [store_code] - A unique code for identifying the store.
948
- * @property {StoreAddressSerializer} [address]
955
+ * @property {StoreAddressSchema} [address]
949
956
  * @property {string} [name] - The name of the store.
950
957
  * @property {SellerPhoneNumber[]} [contact_numbers] - A list of contact numbers
951
958
  * for the store.
@@ -977,11 +984,11 @@ const Joi = require("joi");
977
984
  * @property {number} [uid] - The unique identifier for the store.
978
985
  * @property {StoreDepartments[]} [departments] - A list of departments within the store.
979
986
  * @property {CompanyStore} [company]
980
- * @property {StoreManagerSerializer} [manager]
987
+ * @property {StoreManagerSchema} [manager]
981
988
  * @property {string} [store_code] - A unique code for identifying the store.
982
989
  * @property {StoreTiming[]} [timing] - The opening and closing times for the
983
990
  * store throughout the week.
984
- * @property {StoreAddressSerializer} [address]
991
+ * @property {StoreAddressSchema} [address]
985
992
  * @property {Object} [_custom_json] - Custom JSON data for the store.
986
993
  * @property {string} [name] - The name of the store.
987
994
  * @property {SellerPhoneNumber[]} [contact_numbers] - A list of contact numbers
@@ -1033,7 +1040,7 @@ const Joi = require("joi");
1033
1040
  * @property {Object[]} [images] - A list of image URLs for the product.
1034
1041
  * @property {Object} [slug] - The slug of the product.
1035
1042
  * @property {number} [rating] - The rating of the product.
1036
- * @property {Object} [identifier] - A dictionary of product identifiers.
1043
+ * @property {Identifier} [identifier]
1037
1044
  * @property {Object[]} [highlights] - A list of highlights for the product.
1038
1045
  * @property {number} [brand_uid] - The unique ID of the product's brand.
1039
1046
  */
@@ -1247,6 +1254,17 @@ const Joi = require("joi");
1247
1254
  * and filtering criteria applied to the sellers' data.
1248
1255
  */
1249
1256
 
1257
+ /**
1258
+ * @typedef Identifier
1259
+ * @property {string} [ean] - The European Article Number (EAN) of the item.
1260
+ * @property {string} [sku_code] - The Stock Keeping Unit (SKU) code of the item.
1261
+ * @property {string} [alu] - The Alternative Lookup Product of the item.
1262
+ * @property {string} [upc] - Universal Product Code of the item.
1263
+ * @property {string} [isbn] - ISBN (International Standard Book Number) is a
1264
+ * unique identifier used globally to identify books and other non-periodical
1265
+ * publications
1266
+ */
1267
+
1250
1268
  class CatalogApplicationModel {
1251
1269
  /** @returns {ProductDetailCustomOrder} */
1252
1270
  static ProductDetailCustomOrder() {
@@ -1278,8 +1296,8 @@ class CatalogApplicationModel {
1278
1296
  static ProductListingActionPage() {
1279
1297
  return Joi.object({
1280
1298
  type: Joi.string().allow(""),
1281
- query: Joi.any(),
1282
- params: Joi.any(),
1299
+ query: Joi.object().pattern(/\S/, Joi.any()),
1300
+ params: Joi.object().pattern(/\S/, Joi.any()),
1283
1301
  });
1284
1302
  }
1285
1303
 
@@ -1425,13 +1443,13 @@ class CatalogApplicationModel {
1425
1443
  color: Joi.string().allow(""),
1426
1444
  type: Joi.string().allow(""),
1427
1445
  product_online_date: Joi.string().allow(""),
1428
- _custom_json: Joi.any(),
1446
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1429
1447
  item_code: Joi.string().allow(""),
1430
1448
  name: Joi.string().allow(""),
1431
1449
  moq: CatalogApplicationModel.ApplicationItemMOQ(),
1432
1450
  short_description: Joi.string().allow(""),
1433
1451
  categories: Joi.array().items(CatalogApplicationModel.ProductBrand()),
1434
- attributes: Joi.any(),
1452
+ attributes: Joi.object().pattern(/\S/, Joi.any()),
1435
1453
  discount: Joi.string().allow(""),
1436
1454
  tryouts: Joi.array().items(Joi.string().allow("")),
1437
1455
  slug: Joi.string().allow("").required(),
@@ -1447,8 +1465,8 @@ class CatalogApplicationModel {
1447
1465
  });
1448
1466
  }
1449
1467
 
1450
- /** @returns {ErrorResponse} */
1451
- static ErrorResponse() {
1468
+ /** @returns {ErrorResponseSchema} */
1469
+ static ErrorResponseSchema() {
1452
1470
  return Joi.object({
1453
1471
  error: Joi.string().allow(""),
1454
1472
  });
@@ -1582,8 +1600,8 @@ class CatalogApplicationModel {
1582
1600
  });
1583
1601
  }
1584
1602
 
1585
- /** @returns {ProductsComparisonResponse} */
1586
- static ProductsComparisonResponse() {
1603
+ /** @returns {ProductsComparisonResponseSchema} */
1604
+ static ProductsComparisonResponseSchema() {
1587
1605
  return Joi.object({
1588
1606
  items: Joi.array().items(CatalogApplicationModel.ProductDetail()),
1589
1607
  attributes_metadata: Joi.array().items(
@@ -1592,8 +1610,8 @@ class CatalogApplicationModel {
1592
1610
  });
1593
1611
  }
1594
1612
 
1595
- /** @returns {ProductCompareResponse} */
1596
- static ProductCompareResponse() {
1613
+ /** @returns {ProductCompareResponseSchema} */
1614
+ static ProductCompareResponseSchema() {
1597
1615
  return Joi.object({
1598
1616
  title: Joi.string().allow(""),
1599
1617
  items: Joi.array().items(CatalogApplicationModel.ProductDetail()),
@@ -1604,15 +1622,15 @@ class CatalogApplicationModel {
1604
1622
  });
1605
1623
  }
1606
1624
 
1607
- /** @returns {ProductFrequentlyComparedSimilarResponse} */
1608
- static ProductFrequentlyComparedSimilarResponse() {
1625
+ /** @returns {ProductFrequentlyComparedSimilarResponseSchema} */
1626
+ static ProductFrequentlyComparedSimilarResponseSchema() {
1609
1627
  return Joi.object({
1610
- similars: CatalogApplicationModel.ProductCompareResponse(),
1628
+ similars: CatalogApplicationModel.ProductCompareResponseSchema(),
1611
1629
  });
1612
1630
  }
1613
1631
 
1614
- /** @returns {ProductVariantItemResponse} */
1615
- static ProductVariantItemResponse() {
1632
+ /** @returns {ProductVariantItemResponseSchema} */
1633
+ static ProductVariantItemResponseSchema() {
1616
1634
  return Joi.object({
1617
1635
  uid: Joi.number(),
1618
1636
  color_name: Joi.string().allow(""),
@@ -1630,25 +1648,25 @@ class CatalogApplicationModel {
1630
1648
  });
1631
1649
  }
1632
1650
 
1633
- /** @returns {ProductVariantResponse} */
1634
- static ProductVariantResponse() {
1651
+ /** @returns {ProductVariantResponseSchema} */
1652
+ static ProductVariantResponseSchema() {
1635
1653
  return Joi.object({
1636
1654
  display_type: Joi.string().allow(""),
1637
1655
  header: Joi.string().allow(""),
1638
1656
  group_id: Joi.string().allow(""),
1639
1657
  items: Joi.array().items(
1640
- CatalogApplicationModel.ProductVariantItemResponse()
1658
+ CatalogApplicationModel.ProductVariantItemResponseSchema()
1641
1659
  ),
1642
1660
  key: Joi.string().allow(""),
1643
1661
  logo: Joi.string().allow(""),
1644
1662
  });
1645
1663
  }
1646
1664
 
1647
- /** @returns {ProductVariantsResponse} */
1648
- static ProductVariantsResponse() {
1665
+ /** @returns {ProductVariantsResponseSchema} */
1666
+ static ProductVariantsResponseSchema() {
1649
1667
  return Joi.object({
1650
1668
  variants: Joi.array().items(
1651
- CatalogApplicationModel.ProductVariantResponse()
1669
+ CatalogApplicationModel.ProductVariantResponseSchema()
1652
1670
  ),
1653
1671
  });
1654
1672
  }
@@ -1700,12 +1718,12 @@ class CatalogApplicationModel {
1700
1718
  company: CatalogApplicationModel.CompanyDetail(),
1701
1719
  item_id: Joi.number(),
1702
1720
  seller: CatalogApplicationModel.Seller(),
1703
- identifier: Joi.any(),
1721
+ identifier: CatalogApplicationModel.Identifier(),
1704
1722
  });
1705
1723
  }
1706
1724
 
1707
- /** @returns {ProductStockStatusResponse} */
1708
- static ProductStockStatusResponse() {
1725
+ /** @returns {ProductStockStatusResponseSchema} */
1726
+ static ProductStockStatusResponseSchema() {
1709
1727
  return Joi.object({
1710
1728
  items: Joi.array().items(
1711
1729
  CatalogApplicationModel.ProductStockStatusItem()
@@ -1736,12 +1754,12 @@ class CatalogApplicationModel {
1736
1754
  });
1737
1755
  }
1738
1756
 
1739
- /** @returns {ProductVariantListingResponse} */
1740
- static ProductVariantListingResponse() {
1757
+ /** @returns {ProductVariantListingResponseSchema} */
1758
+ static ProductVariantListingResponseSchema() {
1741
1759
  return Joi.object({
1742
1760
  header: Joi.string().allow(""),
1743
1761
  items: Joi.array().items(
1744
- CatalogApplicationModel.ProductVariantItemResponse()
1762
+ CatalogApplicationModel.ProductVariantItemResponseSchema()
1745
1763
  ),
1746
1764
  total: Joi.number(),
1747
1765
  key: Joi.string().allow(""),
@@ -1775,16 +1793,16 @@ class CatalogApplicationModel {
1775
1793
  color: Joi.string().allow(""),
1776
1794
  type: Joi.string().allow(""),
1777
1795
  product_online_date: Joi.string().allow(""),
1778
- _custom_json: Joi.any(),
1796
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1779
1797
  item_code: Joi.string().allow(""),
1780
1798
  name: Joi.string().allow(""),
1781
1799
  moq: CatalogApplicationModel.ApplicationItemMOQ(),
1782
1800
  short_description: Joi.string().allow(""),
1783
1801
  categories: Joi.array().items(CatalogApplicationModel.ProductBrand()),
1784
1802
  sellable: Joi.boolean(),
1785
- attributes: Joi.any(),
1803
+ attributes: Joi.object().pattern(/\S/, Joi.any()),
1786
1804
  variants: Joi.array().items(
1787
- CatalogApplicationModel.ProductVariantListingResponse()
1805
+ CatalogApplicationModel.ProductVariantListingResponseSchema()
1788
1806
  ),
1789
1807
  discount: Joi.string().allow(""),
1790
1808
  tryouts: Joi.array().items(Joi.string().allow("")),
@@ -1850,8 +1868,8 @@ class CatalogApplicationModel {
1850
1868
  });
1851
1869
  }
1852
1870
 
1853
- /** @returns {ProductListingResponse} */
1854
- static ProductListingResponse() {
1871
+ /** @returns {ProductListingResponseSchema} */
1872
+ static ProductListingResponseSchema() {
1855
1873
  return Joi.object({
1856
1874
  items: Joi.array().items(CatalogApplicationModel.ProductListingDetail()),
1857
1875
  filters: Joi.array().items(CatalogApplicationModel.ProductFilters()),
@@ -1883,22 +1901,22 @@ class CatalogApplicationModel {
1883
1901
  });
1884
1902
  }
1885
1903
 
1886
- /** @returns {BrandListingResponse} */
1887
- static BrandListingResponse() {
1904
+ /** @returns {BrandListingResponseSchema} */
1905
+ static BrandListingResponseSchema() {
1888
1906
  return Joi.object({
1889
1907
  items: Joi.array().items(CatalogApplicationModel.BrandItem()),
1890
1908
  page: CatalogApplicationModel.Page().required(),
1891
1909
  });
1892
1910
  }
1893
1911
 
1894
- /** @returns {BrandDetailResponse} */
1895
- static BrandDetailResponse() {
1912
+ /** @returns {BrandDetailResponseSchema} */
1913
+ static BrandDetailResponseSchema() {
1896
1914
  return Joi.object({
1897
1915
  logo: CatalogApplicationModel.Media(),
1898
1916
  uid: Joi.number(),
1899
1917
  description: Joi.string().allow(""),
1900
1918
  banners: CatalogApplicationModel.ImageUrls(),
1901
- _custom_json: Joi.any(),
1919
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1902
1920
  name: Joi.string().allow(""),
1903
1921
  });
1904
1922
  }
@@ -1916,8 +1934,8 @@ class CatalogApplicationModel {
1916
1934
  return Joi.object({
1917
1935
  uid: Joi.number(),
1918
1936
  banners: CatalogApplicationModel.ImageUrls(),
1919
- childs: Joi.array().items(Joi.any()),
1920
- _custom_json: Joi.any(),
1937
+ childs: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
1938
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1921
1939
  name: Joi.string().allow(""),
1922
1940
  slug: Joi.string().allow(""),
1923
1941
  action: CatalogApplicationModel.ProductListingAction(),
@@ -1930,7 +1948,7 @@ class CatalogApplicationModel {
1930
1948
  uid: Joi.number(),
1931
1949
  banners: CatalogApplicationModel.ImageUrls(),
1932
1950
  childs: Joi.array().items(CatalogApplicationModel.ThirdLevelChild()),
1933
- _custom_json: Joi.any(),
1951
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1934
1952
  name: Joi.string().allow(""),
1935
1953
  slug: Joi.string().allow(""),
1936
1954
  action: CatalogApplicationModel.ProductListingAction(),
@@ -1943,7 +1961,7 @@ class CatalogApplicationModel {
1943
1961
  uid: Joi.number(),
1944
1962
  banners: CatalogApplicationModel.ImageUrls(),
1945
1963
  childs: Joi.array().items(CatalogApplicationModel.SecondLevelChild()),
1946
- _custom_json: Joi.any(),
1964
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1947
1965
  name: Joi.string().allow(""),
1948
1966
  slug: Joi.string().allow(""),
1949
1967
  action: CatalogApplicationModel.ProductListingAction(),
@@ -1978,8 +1996,8 @@ class CatalogApplicationModel {
1978
1996
  });
1979
1997
  }
1980
1998
 
1981
- /** @returns {CategoryListingResponse} */
1982
- static CategoryListingResponse() {
1999
+ /** @returns {CategoryListingResponseSchema} */
2000
+ static CategoryListingResponseSchema() {
1983
2001
  return Joi.object({
1984
2002
  data: Joi.array().items(CatalogApplicationModel.DepartmentCategoryTree()),
1985
2003
  departments: Joi.array().items(
@@ -1988,19 +2006,19 @@ class CatalogApplicationModel {
1988
2006
  });
1989
2007
  }
1990
2008
 
1991
- /** @returns {CategoryMetaResponse} */
1992
- static CategoryMetaResponse() {
2009
+ /** @returns {CategoryMetaResponseSchema} */
2010
+ static CategoryMetaResponseSchema() {
1993
2011
  return Joi.object({
1994
2012
  logo: CatalogApplicationModel.Media(),
1995
2013
  uid: Joi.number(),
1996
2014
  banners: CatalogApplicationModel.ImageUrls(),
1997
- _custom_json: Joi.any(),
2015
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1998
2016
  name: Joi.string().allow(""),
1999
2017
  });
2000
2018
  }
2001
2019
 
2002
- /** @returns {HomeListingResponse} */
2003
- static HomeListingResponse() {
2020
+ /** @returns {HomeListingResponseSchema} */
2021
+ static HomeListingResponseSchema() {
2004
2022
  return Joi.object({
2005
2023
  items: Joi.array().items(CatalogApplicationModel.ProductListingDetail()),
2006
2024
  page: CatalogApplicationModel.Page().required(),
@@ -2019,8 +2037,8 @@ class CatalogApplicationModel {
2019
2037
  });
2020
2038
  }
2021
2039
 
2022
- /** @returns {DepartmentResponse} */
2023
- static DepartmentResponse() {
2040
+ /** @returns {DepartmentResponseSchema} */
2041
+ static DepartmentResponseSchema() {
2024
2042
  return Joi.object({
2025
2043
  items: Joi.array().items(CatalogApplicationModel.Department()),
2026
2044
  });
@@ -2032,13 +2050,13 @@ class CatalogApplicationModel {
2032
2050
  logo: CatalogApplicationModel.Media(),
2033
2051
  display: Joi.string().allow(""),
2034
2052
  type: Joi.string().allow(""),
2035
- _custom_json: Joi.any(),
2053
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
2036
2054
  action: CatalogApplicationModel.ProductListingAction(),
2037
2055
  });
2038
2056
  }
2039
2057
 
2040
- /** @returns {AutoCompleteResponse} */
2041
- static AutoCompleteResponse() {
2058
+ /** @returns {AutoCompleteResponseSchema} */
2059
+ static AutoCompleteResponseSchema() {
2042
2060
  return Joi.object({
2043
2061
  items: Joi.array().items(CatalogApplicationModel.AutocompleteItem()),
2044
2062
  });
@@ -2059,18 +2077,18 @@ class CatalogApplicationModel {
2059
2077
  is_active: Joi.boolean(),
2060
2078
  uid: Joi.string().allow(""),
2061
2079
  sort_on: Joi.string().allow(""),
2062
- meta: Joi.any(),
2080
+ meta: Joi.object().pattern(/\S/, Joi.any()),
2063
2081
  banners: CatalogApplicationModel.ImageUrls(),
2064
- cron: Joi.any(),
2065
- _schedule: Joi.any(),
2082
+ cron: Joi.object().pattern(/\S/, Joi.any()),
2083
+ _schedule: Joi.object().pattern(/\S/, Joi.any()),
2066
2084
  query: Joi.array().items(CatalogApplicationModel.CollectionQuery()),
2067
2085
  description: Joi.string().allow(""),
2068
2086
  type: Joi.string().allow(""),
2069
- _custom_json: Joi.any(),
2087
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
2070
2088
  name: Joi.string().allow(""),
2071
2089
  allow_sort: Joi.boolean(),
2072
2090
  visible_facets_keys: Joi.array().items(Joi.string().allow("")),
2073
- badge: Joi.any(),
2091
+ badge: Joi.object().pattern(/\S/, Joi.any()),
2074
2092
  slug: Joi.string().allow(""),
2075
2093
  action: CatalogApplicationModel.ProductListingAction(),
2076
2094
  allow_facets: Joi.boolean(),
@@ -2111,8 +2129,8 @@ class CatalogApplicationModel {
2111
2129
  });
2112
2130
  }
2113
2131
 
2114
- /** @returns {GetCollectionListingResponse} */
2115
- static GetCollectionListingResponse() {
2132
+ /** @returns {GetCollectionListingResponseSchema} */
2133
+ static GetCollectionListingResponseSchema() {
2116
2134
  return Joi.object({
2117
2135
  items: Joi.array().items(
2118
2136
  CatalogApplicationModel.GetCollectionDetailNest()
@@ -2122,23 +2140,23 @@ class CatalogApplicationModel {
2122
2140
  });
2123
2141
  }
2124
2142
 
2125
- /** @returns {CollectionDetailResponse} */
2126
- static CollectionDetailResponse() {
2143
+ /** @returns {CollectionDetailResponseSchema} */
2144
+ static CollectionDetailResponseSchema() {
2127
2145
  return Joi.object({
2128
2146
  is_active: Joi.boolean(),
2129
2147
  sort_on: Joi.string().allow(""),
2130
- meta: Joi.any(),
2148
+ meta: Joi.object().pattern(/\S/, Joi.any()),
2131
2149
  banners: CatalogApplicationModel.ImageUrls(),
2132
- cron: Joi.any(),
2133
- _schedule: Joi.any(),
2150
+ cron: Joi.object().pattern(/\S/, Joi.any()),
2151
+ _schedule: Joi.object().pattern(/\S/, Joi.any()),
2134
2152
  query: Joi.array().items(CatalogApplicationModel.CollectionQuery()),
2135
2153
  description: Joi.string().allow(""),
2136
2154
  type: Joi.string().allow(""),
2137
- _custom_json: Joi.any(),
2155
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
2138
2156
  name: Joi.string().allow(""),
2139
2157
  allow_sort: Joi.boolean(),
2140
2158
  visible_facets_keys: Joi.array().items(Joi.string().allow("")),
2141
- badge: Joi.any(),
2159
+ badge: Joi.object().pattern(/\S/, Joi.any()),
2142
2160
  slug: Joi.string().allow(""),
2143
2161
  allow_facets: Joi.boolean(),
2144
2162
  logo: CatalogApplicationModel.Media(),
@@ -2148,8 +2166,8 @@ class CatalogApplicationModel {
2148
2166
  });
2149
2167
  }
2150
2168
 
2151
- /** @returns {GetFollowListingResponse} */
2152
- static GetFollowListingResponse() {
2169
+ /** @returns {GetFollowListingResponseSchema} */
2170
+ static GetFollowListingResponseSchema() {
2153
2171
  return Joi.object({
2154
2172
  items: Joi.array()
2155
2173
  .items(CatalogApplicationModel.ProductListingDetail())
@@ -2158,16 +2176,16 @@ class CatalogApplicationModel {
2158
2176
  });
2159
2177
  }
2160
2178
 
2161
- /** @returns {FollowPostResponse} */
2162
- static FollowPostResponse() {
2179
+ /** @returns {FollowPostResponseSchema} */
2180
+ static FollowPostResponseSchema() {
2163
2181
  return Joi.object({
2164
2182
  message: Joi.string().allow("").required(),
2165
2183
  id: Joi.string().allow("").required(),
2166
2184
  });
2167
2185
  }
2168
2186
 
2169
- /** @returns {FollowerCountResponse} */
2170
- static FollowerCountResponse() {
2187
+ /** @returns {FollowerCountResponseSchema} */
2188
+ static FollowerCountResponseSchema() {
2171
2189
  return Joi.object({
2172
2190
  count: Joi.number(),
2173
2191
  });
@@ -2182,8 +2200,8 @@ class CatalogApplicationModel {
2182
2200
  });
2183
2201
  }
2184
2202
 
2185
- /** @returns {FollowIdsResponse} */
2186
- static FollowIdsResponse() {
2203
+ /** @returns {FollowIdsResponseSchema} */
2204
+ static FollowIdsResponseSchema() {
2187
2205
  return Joi.object({
2188
2206
  data: CatalogApplicationModel.FollowIdsData(),
2189
2207
  });
@@ -2197,6 +2215,14 @@ class CatalogApplicationModel {
2197
2215
  });
2198
2216
  }
2199
2217
 
2218
+ /** @returns {StoreContact} */
2219
+ static StoreContact() {
2220
+ return Joi.object({
2221
+ number: Joi.string().allow(""),
2222
+ country_code: Joi.number(),
2223
+ });
2224
+ }
2225
+
2200
2226
  /** @returns {Store} */
2201
2227
  static Store() {
2202
2228
  return Joi.object({
@@ -2211,11 +2237,12 @@ class CatalogApplicationModel {
2211
2237
  lat_long: CatalogApplicationModel.LatLong(),
2212
2238
  name: Joi.string().allow(""),
2213
2239
  tags: Joi.array().items(Joi.string().allow("")),
2240
+ contacts: Joi.array().items(CatalogApplicationModel.StoreContact()),
2214
2241
  });
2215
2242
  }
2216
2243
 
2217
- /** @returns {StoreListingResponse} */
2218
- static StoreListingResponse() {
2244
+ /** @returns {StoreListingResponseSchema} */
2245
+ static StoreListingResponseSchema() {
2219
2246
  return Joi.object({
2220
2247
  items: Joi.array().items(CatalogApplicationModel.Store()).required(),
2221
2248
  page: CatalogApplicationModel.Page().required(),
@@ -2226,7 +2253,7 @@ class CatalogApplicationModel {
2226
2253
  static StoreDepartments() {
2227
2254
  return Joi.object({
2228
2255
  uid: Joi.number(),
2229
- logo: Joi.any(),
2256
+ logo: Joi.object().pattern(/\S/, Joi.any()),
2230
2257
  priority_order: Joi.number(),
2231
2258
  name: Joi.string().allow(""),
2232
2259
  slug: Joi.string().allow(""),
@@ -2251,8 +2278,8 @@ class CatalogApplicationModel {
2251
2278
  });
2252
2279
  }
2253
2280
 
2254
- /** @returns {StoreManagerSerializer} */
2255
- static StoreManagerSerializer() {
2281
+ /** @returns {StoreManagerSchema} */
2282
+ static StoreManagerSchema() {
2256
2283
  return Joi.object({
2257
2284
  name: Joi.string().allow(""),
2258
2285
  email: Joi.string().allow(""),
@@ -2260,8 +2287,8 @@ class CatalogApplicationModel {
2260
2287
  });
2261
2288
  }
2262
2289
 
2263
- /** @returns {StoreAddressSerializer} */
2264
- static StoreAddressSerializer() {
2290
+ /** @returns {StoreAddressSchema} */
2291
+ static StoreAddressSchema() {
2265
2292
  return Joi.object({
2266
2293
  latitude: Joi.number(),
2267
2294
  state: Joi.string().allow(""),
@@ -2283,9 +2310,9 @@ class CatalogApplicationModel {
2283
2310
  CatalogApplicationModel.StoreDepartments()
2284
2311
  ),
2285
2312
  company: CatalogApplicationModel.CompanyStore(),
2286
- manager: CatalogApplicationModel.StoreManagerSerializer(),
2313
+ manager: CatalogApplicationModel.StoreManagerSchema(),
2287
2314
  store_code: Joi.string().allow(""),
2288
- address: CatalogApplicationModel.StoreAddressSerializer(),
2315
+ address: CatalogApplicationModel.StoreAddressSchema(),
2289
2316
  name: Joi.string().allow(""),
2290
2317
  contact_numbers: Joi.array().items(
2291
2318
  CatalogApplicationModel.SellerPhoneNumber()
@@ -2296,7 +2323,7 @@ class CatalogApplicationModel {
2296
2323
  /** @returns {ApplicationStoreListing} */
2297
2324
  static ApplicationStoreListing() {
2298
2325
  return Joi.object({
2299
- filters: Joi.array().items(Joi.any()),
2326
+ filters: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
2300
2327
  items: Joi.array().items(CatalogApplicationModel.AppStore()),
2301
2328
  page: CatalogApplicationModel.Page(),
2302
2329
  });
@@ -2328,11 +2355,11 @@ class CatalogApplicationModel {
2328
2355
  CatalogApplicationModel.StoreDepartments()
2329
2356
  ),
2330
2357
  company: CatalogApplicationModel.CompanyStore(),
2331
- manager: CatalogApplicationModel.StoreManagerSerializer(),
2358
+ manager: CatalogApplicationModel.StoreManagerSchema(),
2332
2359
  store_code: Joi.string().allow(""),
2333
2360
  timing: Joi.array().items(CatalogApplicationModel.StoreTiming()),
2334
- address: CatalogApplicationModel.StoreAddressSerializer(),
2335
- _custom_json: Joi.any(),
2361
+ address: CatalogApplicationModel.StoreAddressSchema(),
2362
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
2336
2363
  name: Joi.string().allow(""),
2337
2364
  contact_numbers: Joi.array().items(
2338
2365
  CatalogApplicationModel.SellerPhoneNumber()
@@ -2381,18 +2408,18 @@ class CatalogApplicationModel {
2381
2408
  description: Joi.any(),
2382
2409
  out_of_stock: Joi.boolean(),
2383
2410
  hsn_code: Joi.number(),
2384
- grouped_attributes: Joi.any(),
2411
+ grouped_attributes: Joi.object().pattern(/\S/, Joi.any()),
2385
2412
  item_code: Joi.any(),
2386
2413
  name: Joi.any(),
2387
2414
  country_of_origin: Joi.any(),
2388
2415
  short_description: Joi.any(),
2389
- media: Joi.array().items(Joi.any()),
2390
- attributes: Joi.any(),
2416
+ media: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
2417
+ attributes: Joi.object().pattern(/\S/, Joi.any()),
2391
2418
  is_set: Joi.boolean(),
2392
2419
  images: Joi.array().items(Joi.any()),
2393
2420
  slug: Joi.any(),
2394
2421
  rating: Joi.number(),
2395
- identifier: Joi.any(),
2422
+ identifier: CatalogApplicationModel.Identifier(),
2396
2423
  highlights: Joi.array().items(Joi.any()),
2397
2424
  brand_uid: Joi.number(),
2398
2425
  });
@@ -2418,7 +2445,7 @@ class CatalogApplicationModel {
2418
2445
  return Joi.object({
2419
2446
  logo: Joi.string().allow("").allow(null),
2420
2447
  is_active: Joi.boolean(),
2421
- meta: Joi.any(),
2448
+ meta: Joi.object().pattern(/\S/, Joi.any()),
2422
2449
  verified_by: CatalogApplicationModel.UserDetail(),
2423
2450
  created_on: Joi.string().allow("").required(),
2424
2451
  company_id: Joi.number(),
@@ -2625,5 +2652,16 @@ class CatalogApplicationModel {
2625
2652
  ),
2626
2653
  });
2627
2654
  }
2655
+
2656
+ /** @returns {Identifier} */
2657
+ static Identifier() {
2658
+ return Joi.object({
2659
+ ean: Joi.string().allow(""),
2660
+ sku_code: Joi.string().allow(""),
2661
+ alu: Joi.string().allow(""),
2662
+ upc: Joi.string().allow(""),
2663
+ isbn: Joi.string().allow(""),
2664
+ });
2665
+ }
2628
2666
  }
2629
2667
  module.exports = CatalogApplicationModel;