@gofynd/fdk-client-javascript 1.0.2 → 1.0.4

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 (346) hide show
  1. package/README.md +31 -2
  2. package/index.d.ts +4 -4
  3. package/index.js +9 -10
  4. package/package.json +14 -14
  5. package/sdk/APIClient.d.ts +11 -0
  6. package/sdk/APIClient.js +35 -0
  7. package/sdk/Client.d.ts +6 -0
  8. package/sdk/Client.js +17 -0
  9. package/sdk/Config.d.ts +9 -0
  10. package/sdk/Config.js +17 -0
  11. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  12. package/sdk/application/Cart/CartApplicationClient.js +595 -594
  13. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  14. package/sdk/application/Cart/CartApplicationModel.js +490 -885
  15. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  16. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  17. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  18. package/sdk/application/Catalog/CatalogApplicationClient.js +1079 -1078
  19. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  20. package/sdk/application/Catalog/CatalogApplicationModel.js +683 -1249
  21. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  22. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  23. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  24. package/sdk/application/Common/CommonApplicationClient.js +43 -42
  25. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  26. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  27. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  28. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  29. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  30. package/sdk/application/Communication/CommunicationApplicationClient.js +32 -31
  31. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  32. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  33. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  34. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.js +350 -349
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  41. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  42. package/sdk/application/Content/ContentApplicationClient.js +216 -215
  43. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
  44. package/sdk/application/Content/ContentApplicationModel.js +468 -884
  45. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  46. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.js +65 -64
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  53. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  54. package/sdk/application/Lead/LeadApplicationClient.js +109 -108
  55. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  56. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  57. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  58. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  59. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +31 -22
  60. package/sdk/application/Logistic/LogisticApplicationClient.js +115 -49
  61. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  62. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  63. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  64. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -9
  65. package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
  66. package/sdk/application/Order/OrderApplicationClient.js +247 -246
  67. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  68. package/sdk/application/Order/OrderApplicationModel.js +361 -656
  69. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  70. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  71. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  72. package/sdk/application/Payment/PaymentApplicationClient.js +781 -780
  73. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  74. package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
  75. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  76. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  77. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  78. package/sdk/application/PosCart/PosCartApplicationClient.js +646 -645
  79. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
  80. package/sdk/application/PosCart/PosCartApplicationModel.js +476 -870
  81. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  82. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  83. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  84. package/sdk/application/Rewards/RewardsApplicationClient.js +122 -121
  85. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  86. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  87. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  88. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  89. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  90. package/sdk/application/Share/ShareApplicationClient.js +94 -93
  91. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  92. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  93. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  94. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  95. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  96. package/sdk/application/Theme/ThemeApplicationClient.js +38 -37
  97. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  98. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  99. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  100. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  101. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  102. package/sdk/application/User/UserApplicationClient.js +619 -618
  103. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  104. package/sdk/application/User/UserApplicationModel.js +440 -689
  105. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  106. package/sdk/application/User/UserApplicationValidator.js +89 -89
  107. package/sdk/common/AxiosHelper.js +18 -7
  108. package/sdk/constructUrl.d.ts +5 -0
  109. package/sdk/constructUrl.js +13 -0
  110. package/sdk/index.d.ts +3 -0
  111. package/sdk/index.js +5 -0
  112. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +182 -180
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  115. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +21 -21
  116. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  117. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  118. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  119. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +44 -43
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +7 -6
  126. package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
  127. package/sdk/platform/Billing/BillingPlatformClient.js +184 -183
  128. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  129. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  130. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  131. package/sdk/platform/Billing/BillingPlatformValidator.js +26 -25
  132. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +192 -165
  133. package/sdk/platform/Cart/CartPlatformApplicationClient.js +686 -510
  134. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +14 -11
  135. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +77 -61
  136. package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
  137. package/sdk/platform/Cart/CartPlatformModel.js +676 -1206
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1558 -1556
  140. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  142. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +688 -688
  143. package/sdk/platform/Catalog/CatalogPlatformClient.js +1556 -1559
  144. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
  145. package/sdk/platform/Catalog/CatalogPlatformModel.js +2133 -3910
  146. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
  147. package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -228
  148. package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
  149. package/sdk/platform/Common/CommonPlatformClient.js +40 -51
  150. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  151. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  152. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  153. package/sdk/platform/Common/CommonPlatformValidator.js +7 -6
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +945 -943
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +88 -88
  158. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +217 -216
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -24
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +617 -552
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +70 -64
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +348 -347
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +39 -38
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +524 -534
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1287 -1346
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +49 -50
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +153 -159
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
  183. package/sdk/platform/Content/ContentPlatformModel.js +485 -907
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +219 -218
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +30 -29
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +25 -25
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +83 -61
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +9 -9
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +53 -53
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +147 -125
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +12 -11
  200. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
  201. package/sdk/platform/Inventory/InventoryPlatformClient.js +231 -230
  202. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  203. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  204. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  205. package/sdk/platform/Inventory/InventoryPlatformValidator.js +29 -28
  206. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
  207. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +203 -201
  208. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  209. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +29 -29
  210. package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
  211. package/sdk/platform/Lead/LeadPlatformClient.js +215 -214
  212. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  213. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  214. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  215. package/sdk/platform/Lead/LeadPlatformValidator.js +25 -24
  216. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
  217. package/sdk/platform/Order/OrderPlatformApplicationClient.js +68 -66
  218. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  219. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +7 -7
  220. package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
  221. package/sdk/platform/Order/OrderPlatformClient.js +1046 -1033
  222. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
  223. package/sdk/platform/Order/OrderPlatformModel.js +1575 -2861
  224. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  225. package/sdk/platform/Order/OrderPlatformValidator.js +161 -160
  226. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  227. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  228. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  229. package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
  230. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +58 -58
  231. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +178 -178
  232. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  233. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +24 -24
  234. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
  235. package/sdk/platform/Payment/PaymentPlatformClient.js +156 -155
  236. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  237. package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
  238. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  239. package/sdk/platform/Payment/PaymentPlatformValidator.js +22 -21
  240. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
  241. package/sdk/platform/PlatformApplicationClient.js +1584 -13899
  242. package/sdk/platform/PlatformClient.d.ts +7972 -7888
  243. package/sdk/platform/PlatformClient.js +8678 -10107
  244. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +85 -85
  245. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +299 -280
  246. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  247. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +35 -35
  248. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  249. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  250. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
  251. package/sdk/platform/Share/SharePlatformApplicationClient.js +62 -60
  252. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  253. package/sdk/platform/Share/SharePlatformApplicationValidator.js +7 -7
  254. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  255. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  256. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
  257. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +314 -312
  258. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  259. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +45 -45
  260. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  261. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  262. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
  263. package/sdk/platform/User/UserPlatformApplicationClient.js +507 -166
  264. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  265. package/sdk/platform/User/UserPlatformApplicationValidator.js +62 -24
  266. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  267. package/sdk/platform/User/UserPlatformModel.js +440 -689
  268. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
  269. package/sdk/platform/Webhook/WebhookPlatformClient.js +91 -90
  270. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  271. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  272. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  273. package/sdk/platform/Webhook/WebhookPlatformValidator.js +15 -14
  274. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  275. package/sdk/public/Configuration/ConfigurationPublicClient.js +40 -38
  276. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  277. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  278. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  279. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  280. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  281. package/sdk/public/Inventory/InventoryPublicClient.js +115 -113
  282. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  283. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  284. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  285. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  286. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  287. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  288. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  289. package/.github/workflows/on_create_release.yml +0 -23
  290. package/.github/workflows/on_merge_main.yml +0 -38
  291. package/.github/workflows/on_pull_request.yml +0 -35
  292. package/.prettierrc +0 -5
  293. package/documentation/application/CART.md +0 -7339
  294. package/documentation/application/CATALOG.md +0 -9597
  295. package/documentation/application/COMMON.md +0 -452
  296. package/documentation/application/COMMUNICATION.md +0 -467
  297. package/documentation/application/CONFIGURATION.md +0 -2906
  298. package/documentation/application/CONTENT.md +0 -3351
  299. package/documentation/application/FILESTORAGE.md +0 -578
  300. package/documentation/application/LEAD.md +0 -1895
  301. package/documentation/application/LOGISTIC.md +0 -765
  302. package/documentation/application/ORDER.md +0 -3432
  303. package/documentation/application/PAYMENT.md +0 -5221
  304. package/documentation/application/POSCART.md +0 -7938
  305. package/documentation/application/README.md +0 -21
  306. package/documentation/application/REWARDS.md +0 -708
  307. package/documentation/application/SHARE.md +0 -733
  308. package/documentation/application/THEME.md +0 -5800
  309. package/documentation/application/USER.md +0 -4335
  310. package/documentation/platform/ANALYTICS.md +0 -1154
  311. package/documentation/platform/AUDITTRAIL.md +0 -576
  312. package/documentation/platform/BILLING.md +0 -2400
  313. package/documentation/platform/CART.md +0 -5559
  314. package/documentation/platform/CATALOG.md +0 -23261
  315. package/documentation/platform/COMMON.md +0 -452
  316. package/documentation/platform/COMMUNICATION.md +0 -5718
  317. package/documentation/platform/COMPANYPROFILE.md +0 -2031
  318. package/documentation/platform/CONFIGURATION.md +0 -7339
  319. package/documentation/platform/CONTENT.md +0 -9098
  320. package/documentation/platform/DISCOUNT.md +0 -863
  321. package/documentation/platform/FILESTORAGE.md +0 -1081
  322. package/documentation/platform/INVENTORY.md +0 -1779
  323. package/documentation/platform/LEAD.md +0 -4740
  324. package/documentation/platform/ORDER.md +0 -8486
  325. package/documentation/platform/PARTNER.md +0 -220
  326. package/documentation/platform/PAYMENT.md +0 -3448
  327. package/documentation/platform/README.md +0 -27
  328. package/documentation/platform/REWARDS.md +0 -1083
  329. package/documentation/platform/SHARE.md +0 -606
  330. package/documentation/platform/THEME.md +0 -35729
  331. package/documentation/platform/USER.md +0 -2319
  332. package/documentation/platform/WEBHOOK.md +0 -591
  333. package/documentation/public/CONFIGURATION.md +0 -452
  334. package/documentation/public/INVENTORY.md +0 -690
  335. package/documentation/public/WEBHOOK.md +0 -352
  336. package/jest.config.d.ts +0 -4
  337. package/jest.config.js +0 -6
  338. package/tests/application/catalog.spec.js +0 -47
  339. package/tests/common/action-url.spec.js +0 -35
  340. package/tests/common/schema/action-url.json +0 -178
  341. package/tests/common/schema/url-action.json +0 -683
  342. package/tests/common/url-action.spec.js +0 -48
  343. package/tests/helpers/cookie.helper.js +0 -31
  344. package/tests/helpers/oauth.helper.js +0 -43
  345. package/tests/platform/catalog.spec.js +0 -49
  346. package/tests/public/location.spec.js +0 -39
@@ -1,1605 +1,1039 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  class CatalogModel {
4
- static Meta() {
5
- return Joi.object({
6
- source: Joi.string().allow(""),
7
- });
8
- }
9
-
10
- static Media() {
4
+ static ApplicationItemMOQ() {
11
5
  return Joi.object({
12
- meta: CatalogModel.Meta(),
13
-
14
- url: Joi.string().allow(""),
15
-
16
- alt: Joi.string().allow(""),
17
-
18
- type: Joi.string().allow(""),
6
+ increment_unit: Joi.number(),
7
+ maximum: Joi.number(),
8
+ minimum: Joi.number(),
19
9
  });
20
10
  }
21
-
22
- static ProductListingActionPage() {
11
+ static ApplicationItemSEO() {
23
12
  return Joi.object({
24
- query: Joi.any(),
25
-
26
- type: Joi.string().allow(""),
27
-
28
- params: Joi.any(),
13
+ description: Joi.any(),
14
+ title: Joi.any(),
29
15
  });
30
16
  }
31
-
32
- static ProductListingAction() {
17
+ static ApplicationStoreListing() {
33
18
  return Joi.object({
34
- page: CatalogModel.ProductListingActionPage(),
35
-
36
- type: Joi.string().allow(""),
19
+ filters: Joi.array().items(CatalogModel.StoreDepartments()),
20
+ items: Joi.array().items(CatalogModel.AppStore()),
21
+ page: CatalogModel.Page(),
37
22
  });
38
23
  }
39
-
40
- static ProductBrand() {
24
+ static AppStore() {
41
25
  return Joi.object({
42
- logo: CatalogModel.Media(),
43
-
44
- action: CatalogModel.ProductListingAction(),
45
-
26
+ address: CatalogModel.StoreAddressSerializer(),
27
+ company: CatalogModel.CompanyStore(),
28
+ contact_numbers: Joi.array().items(CatalogModel.SellerPhoneNumber()),
29
+ departments: Joi.array().items(CatalogModel.StoreDepartments()),
30
+ manager: CatalogModel.StoreManagerSerializer(),
46
31
  name: Joi.string().allow(""),
47
-
48
32
  uid: Joi.number(),
49
-
50
- description: Joi.string().allow(""),
51
33
  });
52
34
  }
53
-
54
- static ProductCategoryMap() {
35
+ static ArticleAssignmentV3() {
55
36
  return Joi.object({
56
- l2: CatalogModel.ProductBrand(),
57
-
58
- l3: CatalogModel.ProductBrand(),
59
-
60
- l1: CatalogModel.ProductBrand(),
37
+ level: Joi.string().allow(""),
38
+ strategy: Joi.string().allow(""),
61
39
  });
62
40
  }
63
-
64
- static ProductDetailAttribute() {
41
+ static AttributeDetail() {
65
42
  return Joi.object({
43
+ description: Joi.string().allow(""),
44
+ display: Joi.string().allow(""),
66
45
  key: Joi.string().allow(""),
67
-
68
- type: Joi.string().allow(""),
69
-
70
- value: Joi.string().allow(""),
46
+ logo: Joi.string().allow(""),
71
47
  });
72
48
  }
73
-
74
- static ProductDetailGroupedAttribute() {
49
+ static AttributeMetadata() {
75
50
  return Joi.object({
76
- details: Joi.array().items(CatalogModel.ProductDetailAttribute()),
77
-
51
+ details: Joi.array().items(CatalogModel.AttributeDetail()),
78
52
  title: Joi.string().allow(""),
79
53
  });
80
54
  }
81
-
82
- static Price() {
55
+ static AutocompleteItem() {
83
56
  return Joi.object({
84
- currency_symbol: Joi.string().allow(""),
85
-
86
- max: Joi.number(),
87
-
88
- currency_code: Joi.string().allow(""),
89
-
90
- min: Joi.number(),
57
+ _custom_json: Joi.any(),
58
+ action: CatalogModel.ProductListingAction(),
59
+ display: Joi.string().allow(""),
60
+ logo: CatalogModel.Media(),
61
+ type: Joi.string().allow(""),
91
62
  });
92
63
  }
93
-
94
- static ProductListingPrice() {
64
+ static AutoCompleteResponse() {
95
65
  return Joi.object({
96
- marked: CatalogModel.Price(),
97
-
98
- effective: CatalogModel.Price(),
66
+ items: Joi.array().items(CatalogModel.AutocompleteItem()),
99
67
  });
100
68
  }
101
-
102
- static CustomMetaFields() {
69
+ static BrandDetailResponse() {
103
70
  return Joi.object({
104
- key: Joi.string().allow("").required(),
105
-
106
- value: Joi.string().allow("").required(),
71
+ _custom_json: Joi.any(),
72
+ banners: CatalogModel.ImageUrls(),
73
+ description: Joi.string().allow(""),
74
+ logo: CatalogModel.Media(),
75
+ name: Joi.string().allow(""),
76
+ uid: Joi.number(),
107
77
  });
108
78
  }
109
-
110
- static ApplicationItemSEO() {
79
+ static BrandItem() {
111
80
  return Joi.object({
112
- title: Joi.any(),
113
-
114
- description: Joi.any(),
81
+ action: CatalogModel.ProductListingAction(),
82
+ banners: CatalogModel.ImageUrls(),
83
+ departments: Joi.array().items(Joi.string().allow("")),
84
+ description: Joi.string().allow(""),
85
+ discount: Joi.string().allow(""),
86
+ logo: CatalogModel.Media(),
87
+ name: Joi.string().allow(""),
88
+ slug: Joi.string().allow(""),
89
+ uid: Joi.number(),
115
90
  });
116
91
  }
117
-
118
- static ApplicationItemMOQ() {
92
+ static BrandListingResponse() {
119
93
  return Joi.object({
120
- increment_unit: Joi.number(),
121
-
122
- minimum: Joi.number(),
123
-
124
- maximum: Joi.number(),
94
+ items: Joi.array().items(CatalogModel.BrandItem()),
95
+ page: CatalogModel.Page().required(),
125
96
  });
126
97
  }
127
-
128
- static NetQuantity() {
98
+ static CategoryBanner() {
129
99
  return Joi.object({
130
- unit: Joi.any(),
131
-
132
- value: Joi.number(),
100
+ landscape: CatalogModel.Media().required(),
101
+ portrait: CatalogModel.Media().required(),
133
102
  });
134
103
  }
135
-
136
- static ProductDetail() {
104
+ static CategoryItems() {
137
105
  return Joi.object({
138
- category_map: CatalogModel.ProductCategoryMap(),
139
-
140
- type: Joi.string().allow(""),
141
-
142
- attributes: Joi.any(),
143
-
144
- uid: Joi.number(),
145
-
146
- color: Joi.string().allow(""),
147
-
148
- similars: Joi.array().items(Joi.string().allow("")),
149
-
150
- short_description: Joi.string().allow(""),
151
-
152
- medias: Joi.array().items(CatalogModel.Media()),
153
-
154
- has_variant: Joi.boolean(),
155
-
156
- item_type: Joi.string().allow(""),
157
-
158
- grouped_attributes: Joi.array().items(
159
- CatalogModel.ProductDetailGroupedAttribute()
160
- ),
161
-
162
- rating: Joi.number(),
163
-
164
- categories: Joi.array().items(CatalogModel.ProductBrand()),
165
-
166
- is_dependent: Joi.boolean(),
167
-
168
- image_nature: Joi.string().allow(""),
169
-
170
- name: Joi.string().allow(""),
171
-
172
- price: CatalogModel.ProductListingPrice(),
173
-
174
- _custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
175
-
176
- seo: CatalogModel.ApplicationItemSEO(),
177
-
178
- description: Joi.string().allow(""),
179
-
180
- brand: CatalogModel.ProductBrand(),
181
-
182
- rating_count: Joi.number(),
183
-
184
- _custom_json: Joi.any(),
185
-
186
- moq: CatalogModel.ApplicationItemMOQ(),
187
-
188
- highlights: Joi.array().items(Joi.string().allow("")),
189
-
190
- action: CatalogModel.ProductListingAction(),
191
-
192
- product_online_date: Joi.string().allow(""),
193
-
194
- tryouts: Joi.array().items(Joi.string().allow("")),
195
-
196
- item_code: Joi.string().allow(""),
197
-
198
- discount: Joi.string().allow(""),
199
-
200
- teaser_tag: Joi.string().allow(""),
201
-
202
- tags: Joi.array().items(Joi.string().allow("")),
203
-
106
+ action: CatalogModel.ProductListingAction().required(),
107
+ banners: CatalogModel.CategoryBanner().required(),
108
+ childs: Joi.array().items(CatalogModel.Child()),
109
+ name: Joi.string().allow("").required(),
204
110
  slug: Joi.string().allow("").required(),
205
-
206
- net_quantity: CatalogModel.NetQuantity(),
111
+ uid: Joi.number().required(),
207
112
  });
208
113
  }
209
-
210
- static ErrorResponse() {
114
+ static CategoryListingResponse() {
211
115
  return Joi.object({
212
- error: Joi.string().allow(""),
116
+ data: Joi.array().items(CatalogModel.DepartmentCategoryTree()),
117
+ departments: Joi.array().items(CatalogModel.DepartmentIdentifier()),
213
118
  });
214
119
  }
215
-
216
- static ColumnHeader() {
120
+ static CategoryMetaResponse() {
217
121
  return Joi.object({
218
- convertable: Joi.boolean(),
219
-
220
- value: Joi.string().allow(""),
122
+ _custom_json: Joi.any(),
123
+ banners: CatalogModel.ImageUrls(),
124
+ logo: CatalogModel.Media(),
125
+ name: Joi.string().allow(""),
126
+ uid: Joi.number(),
221
127
  });
222
128
  }
223
-
224
- static ColumnHeaders() {
129
+ static Child() {
225
130
  return Joi.object({
226
- col_1: CatalogModel.ColumnHeader(),
227
-
228
- col_2: CatalogModel.ColumnHeader(),
229
-
230
- col_6: CatalogModel.ColumnHeader(),
231
-
232
- col_4: CatalogModel.ColumnHeader(),
233
-
234
- col_3: CatalogModel.ColumnHeader(),
235
-
236
- col_5: CatalogModel.ColumnHeader(),
237
- });
238
- }
239
-
240
- static SizeChartValues() {
241
- return Joi.object({
242
- col_1: Joi.string().allow(""),
243
-
244
- col_2: Joi.string().allow(""),
245
-
246
- col_6: Joi.string().allow(""),
247
-
248
- col_4: Joi.string().allow(""),
249
-
250
- col_3: Joi.string().allow(""),
251
-
252
- col_5: Joi.string().allow(""),
131
+ _custom_json: Joi.any(),
132
+ action: CatalogModel.ProductListingAction(),
133
+ banners: CatalogModel.ImageUrls(),
134
+ childs: Joi.array().items(CatalogModel.SecondLevelChild()),
135
+ name: Joi.string().allow(""),
136
+ slug: Joi.string().allow(""),
137
+ uid: Joi.number(),
253
138
  });
254
139
  }
255
-
256
- static SizeChart() {
140
+ static CollectionDetailResponse() {
257
141
  return Joi.object({
258
- unit: Joi.string().allow(""),
259
-
260
- headers: CatalogModel.ColumnHeaders(),
261
-
262
- title: Joi.string().allow(""),
263
-
264
- image: Joi.string().allow(""),
265
-
266
- sizes: Joi.array().items(CatalogModel.SizeChartValues()),
267
-
142
+ _custom_json: Joi.any(),
143
+ _schedule: Joi.any(),
144
+ allow_facets: Joi.boolean(),
145
+ allow_sort: Joi.boolean(),
146
+ app_id: Joi.string().allow(""),
147
+ badge: Joi.any(),
148
+ banners: CatalogModel.ImageUrls(),
149
+ cron: Joi.any(),
268
150
  description: Joi.string().allow(""),
269
-
270
- size_tip: Joi.string().allow(""),
151
+ is_active: Joi.boolean(),
152
+ logo: CatalogModel.Media(),
153
+ meta: Joi.any(),
154
+ name: Joi.string().allow(""),
155
+ priority: Joi.number(),
156
+ query: Joi.array().items(CatalogModel.CollectionQuery()),
157
+ slug: Joi.string().allow(""),
158
+ sort_on: Joi.string().allow(""),
159
+ tag: Joi.array().items(Joi.string().allow("")),
160
+ type: Joi.string().allow(""),
161
+ visible_facets_keys: Joi.array().items(Joi.string().allow("")),
271
162
  });
272
163
  }
273
-
274
- static Weight() {
164
+ static CollectionListingFilter() {
275
165
  return Joi.object({
276
- shipping: Joi.number().required(),
277
-
278
- unit: Joi.string().allow("").required(),
279
-
280
- is_default: Joi.boolean().required(),
166
+ tags: Joi.array().items(CatalogModel.CollectionListingFilterTag()),
167
+ type: Joi.array().items(CatalogModel.CollectionListingFilterType()),
281
168
  });
282
169
  }
283
-
284
- static Dimension() {
170
+ static CollectionListingFilterTag() {
285
171
  return Joi.object({
286
- width: Joi.number().required(),
287
-
288
- is_default: Joi.boolean().required(),
289
-
290
- length: Joi.number().required(),
291
-
292
- unit: Joi.string().allow("").required(),
293
-
294
- height: Joi.number().required(),
172
+ display: Joi.string().allow(""),
173
+ is_selected: Joi.boolean(),
174
+ name: Joi.string().allow(""),
295
175
  });
296
176
  }
297
-
298
- static ProductSize() {
177
+ static CollectionListingFilterType() {
299
178
  return Joi.object({
300
- weight: CatalogModel.Weight(),
301
-
302
- is_available: Joi.boolean(),
303
-
304
179
  display: Joi.string().allow(""),
305
-
306
- value: Joi.string().allow(""),
307
-
308
- seller_identifiers: Joi.array().items(Joi.string().allow("")),
309
-
310
- dimension: CatalogModel.Dimension(),
311
-
312
- quantity: Joi.number(),
180
+ is_selected: Joi.boolean(),
181
+ name: Joi.string().allow(""),
313
182
  });
314
183
  }
315
-
316
- static ProductSizeStores() {
184
+ static CollectionQuery() {
317
185
  return Joi.object({
318
- count: Joi.number(),
186
+ attribute: Joi.string().allow("").required(),
187
+ op: Joi.string().allow("").required(),
188
+ value: Joi.array().items(Joi.any()).required(),
319
189
  });
320
190
  }
321
-
322
- static ProductSizes() {
191
+ static ColumnHeader() {
323
192
  return Joi.object({
324
- size_chart: CatalogModel.SizeChart(),
325
-
326
- sellable: Joi.boolean(),
327
-
328
- price: CatalogModel.ProductListingPrice(),
329
-
330
- multi_size: Joi.boolean(),
331
-
332
- discount: Joi.string().allow(""),
333
-
334
- sizes: Joi.array().items(CatalogModel.ProductSize()),
335
-
336
- stores: CatalogModel.ProductSizeStores(),
193
+ convertable: Joi.boolean(),
194
+ value: Joi.string().allow(""),
337
195
  });
338
196
  }
339
-
340
- static AttributeDetail() {
197
+ static ColumnHeaders() {
341
198
  return Joi.object({
342
- logo: Joi.string().allow(""),
343
-
344
- key: Joi.string().allow(""),
345
-
346
- description: Joi.string().allow(""),
347
-
348
- display: Joi.string().allow(""),
199
+ col_1: CatalogModel.ColumnHeader(),
200
+ col_2: CatalogModel.ColumnHeader(),
201
+ col_3: CatalogModel.ColumnHeader(),
202
+ col_4: CatalogModel.ColumnHeader(),
203
+ col_5: CatalogModel.ColumnHeader(),
204
+ col_6: CatalogModel.ColumnHeader(),
349
205
  });
350
206
  }
351
-
352
- static AttributeMetadata() {
207
+ static CompanyDetail() {
353
208
  return Joi.object({
354
- details: Joi.array().items(CatalogModel.AttributeDetail()),
355
-
356
- title: Joi.string().allow(""),
209
+ id: Joi.number(),
210
+ name: Joi.string().allow(""),
357
211
  });
358
212
  }
359
-
360
- static ProductsComparisonResponse() {
213
+ static CompanyStore() {
361
214
  return Joi.object({
362
- attributes_metadata: Joi.array().items(CatalogModel.AttributeMetadata()),
363
-
364
- items: Joi.array().items(CatalogModel.ProductDetail()),
215
+ business_type: Joi.string().allow(""),
216
+ company_type: Joi.string().allow(""),
217
+ name: Joi.string().allow(""),
218
+ uid: Joi.number(),
365
219
  });
366
220
  }
367
-
368
- static ProductCompareResponse() {
221
+ static CustomMetaFields() {
369
222
  return Joi.object({
370
- attributes_metadata: Joi.array().items(CatalogModel.AttributeMetadata()),
371
-
372
- title: Joi.string().allow(""),
373
-
374
- subtitle: Joi.string().allow(""),
375
-
376
- items: Joi.array().items(CatalogModel.ProductDetail()),
223
+ key: Joi.string().allow("").required(),
224
+ value: Joi.string().allow("").required(),
377
225
  });
378
226
  }
379
-
380
- static ProductFrequentlyComparedSimilarResponse() {
227
+ static Department() {
381
228
  return Joi.object({
382
- similars: CatalogModel.ProductCompareResponse(),
229
+ logo: CatalogModel.Media(),
230
+ name: Joi.string().allow(""),
231
+ priority_order: Joi.number(),
232
+ slug: Joi.string().allow(""),
233
+ uid: Joi.number(),
383
234
  });
384
235
  }
385
-
386
- static ProductVariantItemResponse() {
236
+ static DepartmentCategoryTree() {
237
+ return Joi.object({
238
+ department: Joi.string().allow("").required(),
239
+ items: Joi.array().items(CatalogModel.CategoryItems()),
240
+ });
241
+ }
242
+ static DepartmentIdentifier() {
387
243
  return Joi.object({
388
- medias: Joi.array().items(CatalogModel.Media()),
389
-
390
- is_available: Joi.boolean(),
391
-
392
- value: Joi.string().allow(""),
393
-
394
- name: Joi.string().allow(""),
395
-
396
- action: CatalogModel.ProductListingAction(),
397
-
398
- color_name: Joi.string().allow(""),
399
-
400
- _custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
401
-
402
- color: Joi.string().allow(""),
403
-
404
- uid: Joi.number(),
405
-
406
244
  slug: Joi.string().allow(""),
245
+ uid: Joi.number(),
407
246
  });
408
247
  }
409
-
410
- static ProductVariantResponse() {
248
+ static DepartmentResponse() {
411
249
  return Joi.object({
412
- key: Joi.string().allow(""),
413
-
414
- display_type: Joi.string().allow(""),
415
-
416
- header: Joi.string().allow(""),
417
-
418
- items: Joi.array().items(CatalogModel.ProductVariantItemResponse()),
250
+ items: Joi.array().items(CatalogModel.Department()),
419
251
  });
420
252
  }
421
-
422
- static ProductVariantsResponse() {
253
+ static DetailsSchemaV3() {
423
254
  return Joi.object({
424
- variants: Joi.array().items(CatalogModel.ProductVariantResponse()),
255
+ key: Joi.string().allow(""),
256
+ type: Joi.string().allow(""),
257
+ value: Joi.string().allow(""),
425
258
  });
426
259
  }
427
-
428
- static CompanyDetail() {
260
+ static Dimension() {
429
261
  return Joi.object({
430
- id: Joi.number(),
431
-
432
- name: Joi.string().allow(""),
262
+ height: Joi.number().required(),
263
+ is_default: Joi.boolean().required(),
264
+ length: Joi.number().required(),
265
+ unit: Joi.string().allow("").required(),
266
+ width: Joi.number().required(),
433
267
  });
434
268
  }
435
-
436
- static ProductStockPrice() {
269
+ static ErrorResponse() {
437
270
  return Joi.object({
438
- currency: Joi.string().allow(""),
439
-
440
- marked: Joi.number(),
441
-
442
- effective: Joi.number(),
271
+ error: Joi.string().allow(""),
443
272
  });
444
273
  }
445
-
446
- static Seller() {
274
+ static FollowerCountResponse() {
447
275
  return Joi.object({
448
- uid: Joi.number(),
449
-
450
276
  count: Joi.number(),
451
-
452
- name: Joi.string().allow(""),
453
277
  });
454
278
  }
455
-
456
- static StoreDetail() {
279
+ static FollowIdsData() {
457
280
  return Joi.object({
458
- id: Joi.number(),
459
-
460
- code: Joi.string().allow(""),
461
-
462
- city: Joi.string().allow(""),
463
-
464
- name: Joi.string().allow(""),
465
- });
466
- }
467
-
468
- static ProductStockStatusItem() {
469
- return Joi.object({
470
- size: Joi.string().allow(""),
471
-
472
- company: CatalogModel.CompanyDetail(),
473
-
474
- price: CatalogModel.ProductStockPrice(),
475
-
476
- seller: CatalogModel.Seller(),
477
-
478
- store: CatalogModel.StoreDetail(),
479
-
480
- uid: Joi.string().allow(""),
481
-
482
- item_id: Joi.number(),
483
-
484
- quantity: Joi.number(),
485
-
486
- identifier: Joi.any(),
487
- });
488
- }
489
-
490
- static ProductStockStatusResponse() {
491
- return Joi.object({
492
- items: Joi.array().items(CatalogModel.ProductStockStatusItem()),
281
+ brands: Joi.array().items(Joi.number()),
282
+ collections: Joi.array().items(Joi.number()),
283
+ products: Joi.array().items(Joi.number()),
493
284
  });
494
285
  }
495
-
496
- static Page() {
286
+ static FollowIdsResponse() {
497
287
  return Joi.object({
498
- item_total: Joi.number(),
499
-
500
- next_id: Joi.string().allow(""),
501
-
502
- has_previous: Joi.boolean(),
503
-
504
- has_next: Joi.boolean(),
505
-
506
- current: Joi.number(),
507
-
508
- type: Joi.string().allow("").required(),
509
-
510
- size: Joi.number(),
288
+ data: CatalogModel.FollowIdsData(),
511
289
  });
512
290
  }
513
-
514
- static ProductStockPolling() {
291
+ static FollowPostResponse() {
515
292
  return Joi.object({
516
- page: CatalogModel.Page().required(),
517
-
518
- items: Joi.array().items(CatalogModel.ProductStockStatusItem()),
293
+ id: Joi.string().allow("").required(),
294
+ message: Joi.string().allow("").required(),
519
295
  });
520
296
  }
521
-
522
- static ProductSortOn() {
297
+ static GetCollectionDetailNest() {
523
298
  return Joi.object({
524
- is_selected: Joi.boolean(),
525
-
526
- value: Joi.string().allow(""),
527
-
299
+ _custom_json: Joi.any(),
300
+ _schedule: Joi.any(),
301
+ action: CatalogModel.ProductListingAction(),
302
+ allow_facets: Joi.boolean(),
303
+ allow_sort: Joi.boolean(),
304
+ app_id: Joi.string().allow(""),
305
+ badge: Joi.any(),
306
+ banners: CatalogModel.ImageUrls(),
307
+ cron: Joi.any(),
308
+ description: Joi.string().allow(""),
309
+ is_active: Joi.boolean(),
310
+ logo: CatalogModel.Media(),
311
+ meta: Joi.any(),
528
312
  name: Joi.string().allow(""),
313
+ priority: Joi.number(),
314
+ query: Joi.array().items(CatalogModel.CollectionQuery()),
315
+ slug: Joi.string().allow(""),
316
+ sort_on: Joi.string().allow(""),
317
+ tag: Joi.array().items(Joi.string().allow("")),
318
+ type: Joi.string().allow(""),
319
+ uid: Joi.string().allow(""),
320
+ visible_facets_keys: Joi.array().items(Joi.string().allow("")),
529
321
  });
530
322
  }
531
-
532
- static ProductFiltersValue() {
323
+ static GetCollectionListingResponse() {
533
324
  return Joi.object({
534
- selected_min: Joi.number(),
535
-
536
- selected_max: Joi.number(),
537
-
538
- currency_code: Joi.string().allow(""),
539
-
540
- max: Joi.number(),
541
-
542
- min: Joi.number(),
543
-
544
- display: Joi.string().allow("").required(),
545
-
546
- value: Joi.string().allow(""),
547
-
548
- count: Joi.number(),
549
-
550
- currency_symbol: Joi.string().allow(""),
551
-
552
- is_selected: Joi.boolean().required(),
553
-
554
- query_format: Joi.string().allow(""),
555
-
556
- display_format: Joi.string().allow(""),
325
+ filters: CatalogModel.CollectionListingFilter(),
326
+ items: Joi.array().items(CatalogModel.GetCollectionDetailNest()),
327
+ page: CatalogModel.Page().required(),
557
328
  });
558
329
  }
559
-
560
- static ProductFiltersKey() {
330
+ static GetFollowListingResponse() {
561
331
  return Joi.object({
562
- kind: Joi.string().allow(""),
563
-
564
- name: Joi.string().allow("").required(),
565
-
566
- logo: Joi.string().allow(""),
567
-
568
- display: Joi.string().allow("").required(),
332
+ items: Joi.array().items(CatalogModel.ProductListingDetail()).required(),
333
+ page: CatalogModel.Page().required(),
569
334
  });
570
335
  }
571
-
572
- static ProductFilters() {
336
+ static HomeListingResponse() {
573
337
  return Joi.object({
574
- values: Joi.array().items(CatalogModel.ProductFiltersValue()).required(),
575
-
576
- key: CatalogModel.ProductFiltersKey().required(),
338
+ items: Joi.array().items(CatalogModel.ProductListingDetail()),
339
+ message: Joi.string().allow(""),
340
+ page: CatalogModel.Page().required(),
577
341
  });
578
342
  }
579
-
580
- static ProductVariantListingResponse() {
343
+ static ImageUrls() {
581
344
  return Joi.object({
582
- key: Joi.string().allow(""),
583
-
584
- display_type: Joi.string().allow(""),
585
-
586
- total: Joi.number(),
587
-
588
- header: Joi.string().allow(""),
589
-
590
- items: Joi.array().items(CatalogModel.ProductVariantItemResponse()),
345
+ landscape: CatalogModel.Media(),
346
+ portrait: CatalogModel.Media(),
591
347
  });
592
348
  }
593
-
594
- static ProductListingDetail() {
349
+ static LatLong() {
595
350
  return Joi.object({
596
- variants: Joi.array().items(CatalogModel.ProductVariantListingResponse()),
597
-
598
- category_map: CatalogModel.ProductCategoryMap(),
599
-
351
+ coordinates: Joi.array().items(Joi.number()),
600
352
  type: Joi.string().allow(""),
601
-
602
- attributes: Joi.any(),
603
-
604
- uid: Joi.number(),
605
-
606
- color: Joi.string().allow(""),
607
-
608
- similars: Joi.array().items(Joi.string().allow("")),
609
-
610
- short_description: Joi.string().allow(""),
611
-
612
- medias: Joi.array().items(CatalogModel.Media()),
613
-
614
- has_variant: Joi.boolean(),
615
-
616
- item_type: Joi.string().allow(""),
617
-
618
- identifiers: Joi.array().items(Joi.string().allow("")),
619
-
620
- grouped_attributes: Joi.array().items(
621
- CatalogModel.ProductDetailGroupedAttribute()
622
- ),
623
-
624
- rating: Joi.number(),
625
-
626
- categories: Joi.array().items(CatalogModel.ProductBrand()),
627
-
628
- is_dependent: Joi.boolean(),
629
-
630
- image_nature: Joi.string().allow(""),
631
-
632
- name: Joi.string().allow(""),
633
-
634
- sellable: Joi.boolean(),
635
-
636
- price: CatalogModel.ProductListingPrice(),
637
-
638
- _custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
639
-
640
- seo: CatalogModel.ApplicationItemSEO(),
641
-
642
- description: Joi.string().allow(""),
643
-
644
- brand: CatalogModel.ProductBrand(),
645
-
646
- rating_count: Joi.number(),
647
-
648
- _custom_json: Joi.any(),
649
-
650
- moq: CatalogModel.ApplicationItemMOQ(),
651
-
652
- highlights: Joi.array().items(Joi.string().allow("")),
653
-
654
- action: CatalogModel.ProductListingAction(),
655
-
656
- product_online_date: Joi.string().allow(""),
657
-
658
- tryouts: Joi.array().items(Joi.string().allow("")),
659
-
660
- item_code: Joi.string().allow(""),
661
-
662
- discount: Joi.string().allow(""),
663
-
664
- teaser_tag: Joi.string().allow(""),
665
-
666
- sizes: Joi.array().items(Joi.string().allow("")),
667
-
668
- tags: Joi.array().items(Joi.string().allow("")),
669
-
670
- slug: Joi.string().allow("").required(),
671
-
672
- net_quantity: CatalogModel.NetQuantity(),
673
353
  });
674
354
  }
675
-
676
- static ProductListingResponse() {
677
- return Joi.object({
678
- page: CatalogModel.Page().required(),
679
-
680
- sort_on: Joi.array().items(CatalogModel.ProductSortOn()),
681
-
682
- filters: Joi.array().items(CatalogModel.ProductFilters()),
683
-
684
- items: Joi.array().items(CatalogModel.ProductListingDetail()),
685
- });
686
- }
687
-
688
- static ImageUrls() {
355
+ static MarketPlaceSttributesSchemaV3() {
689
356
  return Joi.object({
690
- portrait: CatalogModel.Media(),
691
-
692
- landscape: CatalogModel.Media(),
357
+ details: Joi.array().items(CatalogModel.DetailsSchemaV3()),
358
+ title: Joi.string().allow(""),
693
359
  });
694
360
  }
695
-
696
- static BrandItem() {
361
+ static Media() {
697
362
  return Joi.object({
698
- logo: CatalogModel.Media(),
699
-
700
- action: CatalogModel.ProductListingAction(),
701
-
702
- name: Joi.string().allow(""),
703
-
704
- banners: CatalogModel.ImageUrls(),
705
-
706
- discount: Joi.string().allow(""),
707
-
708
- uid: Joi.number(),
709
-
710
- description: Joi.string().allow(""),
711
-
712
- departments: Joi.array().items(Joi.string().allow("")),
713
-
714
- slug: Joi.string().allow(""),
363
+ alt: Joi.string().allow(""),
364
+ meta: CatalogModel.Meta(),
365
+ type: Joi.string().allow(""),
366
+ url: Joi.string().allow(""),
715
367
  });
716
368
  }
717
-
718
- static BrandListingResponse() {
369
+ static Meta() {
719
370
  return Joi.object({
720
- page: CatalogModel.Page().required(),
721
-
722
- items: Joi.array().items(CatalogModel.BrandItem()),
371
+ source: Joi.string().allow(""),
723
372
  });
724
373
  }
725
-
726
- static BrandDetailResponse() {
374
+ static NetQuantity() {
727
375
  return Joi.object({
728
- logo: CatalogModel.Media(),
729
-
730
- name: Joi.string().allow(""),
731
-
732
- banners: CatalogModel.ImageUrls(),
733
-
734
- uid: Joi.number(),
735
-
736
- description: Joi.string().allow(""),
737
-
738
- _custom_json: Joi.any(),
376
+ unit: Joi.any(),
377
+ value: Joi.number(),
739
378
  });
740
379
  }
741
-
742
- static DepartmentIdentifier() {
380
+ static Page() {
743
381
  return Joi.object({
744
- slug: Joi.string().allow(""),
745
-
746
- uid: Joi.number(),
382
+ current: Joi.number(),
383
+ has_next: Joi.boolean(),
384
+ has_previous: Joi.boolean(),
385
+ item_total: Joi.number(),
386
+ next_id: Joi.string().allow(""),
387
+ size: Joi.number(),
388
+ type: Joi.string().allow("").required(),
747
389
  });
748
390
  }
749
-
750
- static ThirdLevelChild() {
391
+ static Price() {
751
392
  return Joi.object({
752
- name: Joi.string().allow(""),
753
-
754
- action: CatalogModel.ProductListingAction(),
755
-
756
- childs: Joi.array().items(Joi.any()),
757
-
758
- banners: CatalogModel.ImageUrls(),
759
-
760
- uid: Joi.number(),
761
-
762
- slug: Joi.string().allow(""),
763
-
764
- _custom_json: Joi.any(),
393
+ currency_code: Joi.string().allow(""),
394
+ currency_symbol: Joi.string().allow(""),
395
+ max: Joi.number(),
396
+ min: Joi.number(),
765
397
  });
766
398
  }
767
-
768
- static SecondLevelChild() {
399
+ static ProductBrand() {
769
400
  return Joi.object({
770
- name: Joi.string().allow(""),
771
-
772
401
  action: CatalogModel.ProductListingAction(),
773
-
774
- childs: Joi.array().items(CatalogModel.ThirdLevelChild()),
775
-
776
- banners: CatalogModel.ImageUrls(),
777
-
778
- uid: Joi.number(),
779
-
780
- slug: Joi.string().allow(""),
781
-
782
- _custom_json: Joi.any(),
783
- });
784
- }
785
-
786
- static Child() {
787
- return Joi.object({
402
+ description: Joi.string().allow(""),
403
+ logo: CatalogModel.Media(),
788
404
  name: Joi.string().allow(""),
789
-
790
- action: CatalogModel.ProductListingAction(),
791
-
792
- childs: Joi.array().items(CatalogModel.SecondLevelChild()),
793
-
794
- banners: CatalogModel.ImageUrls(),
795
-
796
405
  uid: Joi.number(),
797
-
798
- slug: Joi.string().allow(""),
799
-
800
- _custom_json: Joi.any(),
801
406
  });
802
407
  }
803
-
804
- static CategoryBanner() {
805
- return Joi.object({
806
- portrait: CatalogModel.Media().required(),
807
-
808
- landscape: CatalogModel.Media().required(),
809
- });
810
- }
811
-
812
- static CategoryItems() {
408
+ static ProductBundle() {
813
409
  return Joi.object({
814
- action: CatalogModel.ProductListingAction().required(),
815
-
816
- name: Joi.string().allow("").required(),
817
-
818
- childs: Joi.array().items(CatalogModel.Child()),
819
-
820
- banners: CatalogModel.CategoryBanner().required(),
821
-
822
- uid: Joi.number().required(),
823
-
824
- slug: Joi.string().allow("").required(),
410
+ items: Joi.array().items(CatalogModel.ProductGroupingModel()),
825
411
  });
826
412
  }
827
-
828
- static DepartmentCategoryTree() {
413
+ static ProductCategoryMap() {
829
414
  return Joi.object({
830
- department: Joi.string().allow("").required(),
831
-
832
- items: Joi.array().items(CatalogModel.CategoryItems()),
415
+ l1: CatalogModel.ProductBrand(),
416
+ l2: CatalogModel.ProductBrand(),
417
+ l3: CatalogModel.ProductBrand(),
833
418
  });
834
419
  }
835
-
836
- static CategoryListingResponse() {
420
+ static ProductCompareResponse() {
837
421
  return Joi.object({
838
- departments: Joi.array().items(CatalogModel.DepartmentIdentifier()),
839
-
840
- data: Joi.array().items(CatalogModel.DepartmentCategoryTree()),
422
+ attributes_metadata: Joi.array().items(CatalogModel.AttributeMetadata()),
423
+ items: Joi.array().items(CatalogModel.ProductDetail()),
424
+ subtitle: Joi.string().allow(""),
425
+ title: Joi.string().allow(""),
841
426
  });
842
427
  }
843
-
844
- static CategoryMetaResponse() {
428
+ static ProductDetail() {
845
429
  return Joi.object({
846
- logo: CatalogModel.Media(),
847
-
430
+ _custom_json: Joi.any(),
431
+ _custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
432
+ action: CatalogModel.ProductListingAction(),
433
+ attributes: Joi.any(),
434
+ brand: CatalogModel.ProductBrand(),
435
+ categories: Joi.array().items(CatalogModel.ProductBrand()),
436
+ category_map: CatalogModel.ProductCategoryMap(),
437
+ color: Joi.string().allow(""),
438
+ description: Joi.string().allow(""),
439
+ discount: Joi.string().allow(""),
440
+ grouped_attributes: Joi.array().items(
441
+ CatalogModel.ProductDetailGroupedAttribute()
442
+ ),
443
+ has_variant: Joi.boolean(),
444
+ highlights: Joi.array().items(Joi.string().allow("")),
445
+ image_nature: Joi.string().allow(""),
446
+ is_dependent: Joi.boolean(),
447
+ item_code: Joi.string().allow(""),
448
+ item_type: Joi.string().allow(""),
449
+ medias: Joi.array().items(CatalogModel.Media()),
450
+ moq: CatalogModel.ApplicationItemMOQ(),
848
451
  name: Joi.string().allow(""),
849
-
850
- banners: CatalogModel.ImageUrls(),
851
-
452
+ net_quantity: CatalogModel.NetQuantity(),
453
+ price: CatalogModel.ProductListingPrice(),
454
+ product_online_date: Joi.string().allow(""),
455
+ rating: Joi.number(),
456
+ rating_count: Joi.number(),
457
+ seo: CatalogModel.ApplicationItemSEO(),
458
+ short_description: Joi.string().allow(""),
459
+ similars: Joi.array().items(Joi.string().allow("")),
460
+ slug: Joi.string().allow("").required(),
461
+ tags: Joi.array().items(Joi.string().allow("")),
462
+ teaser_tag: Joi.string().allow(""),
463
+ tryouts: Joi.array().items(Joi.string().allow("")),
464
+ type: Joi.string().allow(""),
852
465
  uid: Joi.number(),
853
-
854
- _custom_json: Joi.any(),
855
466
  });
856
467
  }
857
-
858
- static HomeListingResponse() {
468
+ static ProductDetailAttribute() {
859
469
  return Joi.object({
860
- page: CatalogModel.Page().required(),
861
-
862
- message: Joi.string().allow(""),
863
-
864
- items: Joi.array().items(CatalogModel.ProductListingDetail()),
470
+ key: Joi.string().allow(""),
471
+ type: Joi.string().allow(""),
472
+ value: Joi.string().allow(""),
865
473
  });
866
474
  }
867
-
868
- static Department() {
475
+ static ProductDetailGroupedAttribute() {
869
476
  return Joi.object({
870
- logo: CatalogModel.Media(),
871
-
872
- name: Joi.string().allow(""),
873
-
874
- priority_order: Joi.number(),
875
-
876
- uid: Joi.number(),
877
-
878
- slug: Joi.string().allow(""),
477
+ details: Joi.array().items(CatalogModel.ProductDetailAttribute()),
478
+ title: Joi.string().allow(""),
879
479
  });
880
480
  }
881
-
882
- static DepartmentResponse() {
481
+ static ProductDetails() {
883
482
  return Joi.object({
884
- items: Joi.array().items(CatalogModel.Department()),
483
+ attributes: Joi.any(),
484
+ brand_uid: Joi.number(),
485
+ country_of_origin: Joi.any(),
486
+ description: Joi.any(),
487
+ grouped_attributes: Joi.any(),
488
+ has_variant: Joi.boolean(),
489
+ highlights: Joi.array().items(Joi.any()),
490
+ hsn_code: Joi.number(),
491
+ identifier: Joi.any(),
492
+ image_nature: Joi.any(),
493
+ images: Joi.array().items(Joi.any()),
494
+ is_set: Joi.boolean(),
495
+ item_code: Joi.any(),
496
+ media: Joi.array().items(Joi.any()),
497
+ name: Joi.any(),
498
+ out_of_stock: Joi.boolean(),
499
+ rating: Joi.number(),
500
+ rating_count: Joi.number(),
501
+ short_description: Joi.any(),
502
+ slug: Joi.any(),
503
+ template_tag: Joi.any(),
885
504
  });
886
505
  }
887
-
888
- static AutocompleteItem() {
506
+ static ProductFilters() {
889
507
  return Joi.object({
890
- logo: CatalogModel.Media(),
891
-
892
- display: Joi.string().allow(""),
893
-
894
- action: CatalogModel.ProductListingAction(),
895
-
896
- type: Joi.string().allow(""),
897
-
898
- _custom_json: Joi.any(),
508
+ key: CatalogModel.ProductFiltersKey().required(),
509
+ values: Joi.array().items(CatalogModel.ProductFiltersValue()).required(),
899
510
  });
900
511
  }
901
-
902
- static AutoCompleteResponse() {
512
+ static ProductFiltersKey() {
903
513
  return Joi.object({
904
- items: Joi.array().items(CatalogModel.AutocompleteItem()),
514
+ display: Joi.string().allow("").required(),
515
+ kind: Joi.string().allow(""),
516
+ logo: Joi.string().allow(""),
517
+ name: Joi.string().allow("").required(),
905
518
  });
906
519
  }
907
-
908
- static CollectionListingFilterTag() {
520
+ static ProductFiltersValue() {
909
521
  return Joi.object({
910
- display: Joi.string().allow(""),
911
-
912
- is_selected: Joi.boolean(),
913
-
914
- name: Joi.string().allow(""),
522
+ count: Joi.number(),
523
+ currency_code: Joi.string().allow(""),
524
+ currency_symbol: Joi.string().allow(""),
525
+ display: Joi.string().allow("").required(),
526
+ display_format: Joi.string().allow(""),
527
+ is_selected: Joi.boolean().required(),
528
+ max: Joi.number(),
529
+ min: Joi.number(),
530
+ query_format: Joi.string().allow(""),
531
+ selected_max: Joi.number(),
532
+ selected_min: Joi.number(),
533
+ value: Joi.string().allow(""),
915
534
  });
916
535
  }
917
-
918
- static CollectionListingFilterType() {
536
+ static ProductFrequentlyComparedSimilarResponse() {
919
537
  return Joi.object({
920
- display: Joi.string().allow(""),
921
-
922
- is_selected: Joi.boolean(),
923
-
924
- name: Joi.string().allow(""),
538
+ similars: CatalogModel.ProductCompareResponse(),
925
539
  });
926
540
  }
927
-
928
- static CollectionListingFilter() {
541
+ static ProductGroupingModel() {
929
542
  return Joi.object({
930
- tags: Joi.array().items(CatalogModel.CollectionListingFilterTag()),
931
-
932
- type: Joi.array().items(CatalogModel.CollectionListingFilterType()),
543
+ _id: Joi.any(),
544
+ choice: Joi.any(),
545
+ company_id: Joi.number(),
546
+ created_by: CatalogModel.UserDetail(),
547
+ created_on: Joi.string().allow("").required(),
548
+ is_active: Joi.boolean(),
549
+ logo: Joi.any(),
550
+ meta: Joi.any(),
551
+ modified_by: CatalogModel.UserDetail(),
552
+ modified_on: Joi.string().allow("").required(),
553
+ name: Joi.any().required(),
554
+ page_visibility: Joi.array().items(Joi.any()),
555
+ products: Joi.array().items(CatalogModel.ProductInGroup()).required(),
556
+ same_store_assignment: Joi.boolean(),
557
+ slug: Joi.any(),
558
+ verified_by: CatalogModel.UserDetail(),
559
+ verified_on: Joi.string().allow(""),
933
560
  });
934
561
  }
935
-
936
- static CollectionQuery() {
562
+ static ProductGroupPrice() {
937
563
  return Joi.object({
938
- attribute: Joi.string().allow("").required(),
939
-
940
- op: Joi.string().allow("").required(),
941
-
942
- value: Joi.array().items(Joi.any()).required(),
564
+ currency: Joi.any(),
565
+ max_effective: Joi.number(),
566
+ max_marked: Joi.number(),
567
+ min_effective: Joi.number(),
568
+ min_marked: Joi.number(),
943
569
  });
944
570
  }
945
-
946
- static GetCollectionDetailNest() {
571
+ static ProductInGroup() {
947
572
  return Joi.object({
948
- query: Joi.array().items(CatalogModel.CollectionQuery()),
949
-
950
- allow_facets: Joi.boolean(),
951
-
952
- logo: CatalogModel.Media(),
953
-
954
- cron: Joi.any(),
955
-
956
- type: Joi.string().allow(""),
957
-
958
- uid: Joi.string().allow(""),
959
-
960
- meta: Joi.any(),
961
-
962
- visible_facets_keys: Joi.array().items(Joi.string().allow("")),
963
-
964
- badge: Joi.any(),
965
-
966
- sort_on: Joi.string().allow(""),
967
-
968
- banners: CatalogModel.ImageUrls(),
969
-
970
- is_active: Joi.boolean(),
971
-
972
- tag: Joi.array().items(Joi.string().allow("")),
973
-
974
- name: Joi.string().allow(""),
975
-
976
- description: Joi.string().allow(""),
977
-
978
- _custom_json: Joi.any(),
979
-
980
- _schedule: Joi.any(),
981
-
982
- action: CatalogModel.ProductListingAction(),
983
-
984
- app_id: Joi.string().allow(""),
985
-
986
- priority: Joi.number(),
987
-
988
- allow_sort: Joi.boolean(),
989
-
990
- slug: Joi.string().allow(""),
573
+ allow_remove: Joi.boolean(),
574
+ auto_add_to_cart: Joi.boolean(),
575
+ auto_select: Joi.boolean(),
576
+ max_quantity: Joi.number().required(),
577
+ min_quantity: Joi.number(),
578
+ price: CatalogModel.ProductGroupPrice(),
579
+ product_details: CatalogModel.ProductDetails(),
580
+ product_uid: Joi.number().required(),
581
+ sizes: Joi.array().items(CatalogModel.Size()),
991
582
  });
992
583
  }
993
-
994
- static GetCollectionListingResponse() {
584
+ static ProductListingAction() {
995
585
  return Joi.object({
996
- page: CatalogModel.Page().required(),
997
-
998
- filters: CatalogModel.CollectionListingFilter(),
999
-
1000
- items: Joi.array().items(CatalogModel.GetCollectionDetailNest()),
586
+ page: CatalogModel.ProductListingActionPage(),
587
+ type: Joi.string().allow(""),
1001
588
  });
1002
589
  }
1003
-
1004
- static CollectionDetailResponse() {
590
+ static ProductListingActionPage() {
1005
591
  return Joi.object({
1006
- query: Joi.array().items(CatalogModel.CollectionQuery()),
1007
-
1008
- allow_facets: Joi.boolean(),
1009
-
1010
- logo: CatalogModel.Media(),
1011
-
1012
- cron: Joi.any(),
1013
-
592
+ params: Joi.any(),
593
+ query: Joi.any(),
1014
594
  type: Joi.string().allow(""),
1015
-
1016
- meta: Joi.any(),
1017
-
1018
- visible_facets_keys: Joi.array().items(Joi.string().allow("")),
1019
-
1020
- badge: Joi.any(),
1021
-
1022
- sort_on: Joi.string().allow(""),
1023
-
1024
- banners: CatalogModel.ImageUrls(),
1025
-
1026
- is_active: Joi.boolean(),
1027
-
1028
- tag: Joi.array().items(Joi.string().allow("")),
1029
-
1030
- name: Joi.string().allow(""),
1031
-
1032
- description: Joi.string().allow(""),
1033
-
595
+ });
596
+ }
597
+ static ProductListingDetail() {
598
+ return Joi.object({
1034
599
  _custom_json: Joi.any(),
1035
-
1036
- _schedule: Joi.any(),
1037
-
1038
- app_id: Joi.string().allow(""),
1039
-
1040
- priority: Joi.number(),
1041
-
1042
- allow_sort: Joi.boolean(),
1043
-
1044
- slug: Joi.string().allow(""),
600
+ _custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
601
+ action: CatalogModel.ProductListingAction(),
602
+ attributes: Joi.any(),
603
+ brand: CatalogModel.ProductBrand(),
604
+ categories: Joi.array().items(CatalogModel.ProductBrand()),
605
+ category_map: CatalogModel.ProductCategoryMap(),
606
+ color: Joi.string().allow(""),
607
+ description: Joi.string().allow(""),
608
+ discount: Joi.string().allow(""),
609
+ grouped_attributes: Joi.array().items(
610
+ CatalogModel.ProductDetailGroupedAttribute()
611
+ ),
612
+ has_variant: Joi.boolean(),
613
+ highlights: Joi.array().items(Joi.string().allow("")),
614
+ identifiers: Joi.array().items(Joi.string().allow("")),
615
+ image_nature: Joi.string().allow(""),
616
+ is_dependent: Joi.boolean(),
617
+ item_code: Joi.string().allow(""),
618
+ item_type: Joi.string().allow(""),
619
+ medias: Joi.array().items(CatalogModel.Media()),
620
+ moq: CatalogModel.ApplicationItemMOQ(),
621
+ name: Joi.string().allow(""),
622
+ net_quantity: CatalogModel.NetQuantity(),
623
+ price: CatalogModel.ProductListingPrice(),
624
+ product_online_date: Joi.string().allow(""),
625
+ rating: Joi.number(),
626
+ rating_count: Joi.number(),
627
+ sellable: Joi.boolean(),
628
+ seo: CatalogModel.ApplicationItemSEO(),
629
+ short_description: Joi.string().allow(""),
630
+ similars: Joi.array().items(Joi.string().allow("")),
631
+ sizes: Joi.array().items(Joi.string().allow("")),
632
+ slug: Joi.string().allow("").required(),
633
+ tags: Joi.array().items(Joi.string().allow("")),
634
+ teaser_tag: Joi.string().allow(""),
635
+ tryouts: Joi.array().items(Joi.string().allow("")),
636
+ type: Joi.string().allow(""),
637
+ uid: Joi.number(),
638
+ variants: Joi.array().items(CatalogModel.ProductVariantListingResponse()),
1045
639
  });
1046
640
  }
1047
-
1048
- static GetFollowListingResponse() {
641
+ static ProductListingPrice() {
1049
642
  return Joi.object({
643
+ effective: CatalogModel.Price(),
644
+ marked: CatalogModel.Price(),
645
+ });
646
+ }
647
+ static ProductListingResponse() {
648
+ return Joi.object({
649
+ filters: Joi.array().items(CatalogModel.ProductFilters()),
650
+ items: Joi.array().items(CatalogModel.ProductListingDetail()),
1050
651
  page: CatalogModel.Page().required(),
1051
-
1052
- items: Joi.array().items(CatalogModel.ProductListingDetail()).required(),
652
+ sort_on: Joi.array().items(CatalogModel.ProductSortOn()),
1053
653
  });
1054
654
  }
1055
-
1056
- static FollowPostResponse() {
655
+ static ProductsComparisonResponse() {
1057
656
  return Joi.object({
1058
- id: Joi.string().allow("").required(),
1059
-
1060
- message: Joi.string().allow("").required(),
657
+ attributes_metadata: Joi.array().items(CatalogModel.AttributeMetadata()),
658
+ items: Joi.array().items(CatalogModel.ProductDetail()),
1061
659
  });
1062
660
  }
1063
-
1064
- static FollowerCountResponse() {
661
+ static ProductSetDistributionSizeV3() {
1065
662
  return Joi.object({
1066
- count: Joi.number(),
663
+ pieces: Joi.number(),
664
+ size: Joi.string().allow(""),
1067
665
  });
1068
666
  }
1069
-
1070
- static FollowIdsData() {
667
+ static ProductSetDistributionV3() {
1071
668
  return Joi.object({
1072
- products: Joi.array().items(Joi.number()),
1073
-
1074
- collections: Joi.array().items(Joi.number()),
1075
-
1076
- brands: Joi.array().items(Joi.number()),
669
+ sizes: Joi.array().items(CatalogModel.ProductSetDistributionSizeV3()),
1077
670
  });
1078
671
  }
1079
-
1080
- static FollowIdsResponse() {
672
+ static ProductSetV3() {
1081
673
  return Joi.object({
1082
- data: CatalogModel.FollowIdsData(),
674
+ quantity: Joi.number(),
675
+ size_distribution: CatalogModel.ProductSetDistributionV3(),
1083
676
  });
1084
677
  }
1085
-
1086
- static LatLong() {
678
+ static ProductSize() {
1087
679
  return Joi.object({
1088
- coordinates: Joi.array().items(Joi.number()),
1089
-
1090
- type: Joi.string().allow(""),
680
+ dimension: CatalogModel.Dimension(),
681
+ display: Joi.string().allow(""),
682
+ is_available: Joi.boolean(),
683
+ quantity: Joi.number(),
684
+ seller_identifiers: Joi.array().items(Joi.string().allow("")),
685
+ value: Joi.string().allow(""),
686
+ weight: CatalogModel.Weight(),
1091
687
  });
1092
688
  }
1093
-
1094
- static Store() {
689
+ static ProductSizePriceResponseV3() {
1095
690
  return Joi.object({
691
+ article_assignment: CatalogModel.ArticleAssignmentV3(),
692
+ article_id: Joi.string().allow(""),
693
+ discount: Joi.string().allow(""),
694
+ grouped_attributes: Joi.array().items(
695
+ CatalogModel.SellerGroupAttributes()
696
+ ),
697
+ is_cod: Joi.boolean(),
698
+ is_gift: Joi.boolean(),
699
+ item_type: Joi.string().allow(""),
700
+ long_lat: Joi.array().items(Joi.number()),
701
+ marketplace_attributes: Joi.array().items(
702
+ CatalogModel.MarketPlaceSttributesSchemaV3()
703
+ ),
1096
704
  pincode: Joi.number(),
1097
-
1098
- lat_long: CatalogModel.LatLong(),
1099
-
1100
- address: Joi.string().allow(""),
1101
-
1102
- name: Joi.string().allow(""),
1103
-
1104
- store_email: Joi.string().allow(""),
1105
-
1106
- state: Joi.string().allow(""),
1107
-
1108
- uid: Joi.number(),
1109
-
1110
- country: Joi.string().allow(""),
1111
-
1112
- store_code: Joi.string().allow(""),
1113
-
1114
- city: Joi.string().allow(""),
705
+ price: CatalogModel.ProductStockPriceV3(),
706
+ price_per_piece: CatalogModel.ProductStockPriceV3(),
707
+ price_per_unit: CatalogModel.ProductStockUnitPriceV3(),
708
+ quantity: Joi.number(),
709
+ return_config: CatalogModel.ReturnConfigSchemaV3(),
710
+ seller: CatalogModel.SellerV3(),
711
+ seller_count: Joi.number(),
712
+ set: CatalogModel.ProductSetV3(),
713
+ special_badge: Joi.string().allow(""),
714
+ store: CatalogModel.StoreV3(),
715
+ strategy_wise_listing: Joi.array().items(
716
+ CatalogModel.StrategyWiseListingSchemaV3()
717
+ ),
1115
718
  });
1116
719
  }
1117
-
1118
- static StoreListingResponse() {
720
+ static ProductSizes() {
1119
721
  return Joi.object({
1120
- page: CatalogModel.Page().required(),
1121
-
1122
- items: Joi.array().items(CatalogModel.Store()).required(),
722
+ discount: Joi.string().allow(""),
723
+ multi_size: Joi.boolean(),
724
+ price: CatalogModel.ProductListingPrice(),
725
+ sellable: Joi.boolean(),
726
+ size_chart: CatalogModel.SizeChart(),
727
+ sizes: Joi.array().items(CatalogModel.ProductSize()),
728
+ stores: CatalogModel.ProductSizeStores(),
1123
729
  });
1124
730
  }
1125
-
1126
- static StoreDepartments() {
731
+ static ProductSizeSellerFilterSchemaV3() {
1127
732
  return Joi.object({
1128
- logo: Joi.string().allow(""),
1129
-
733
+ is_selected: Joi.boolean(),
1130
734
  name: Joi.string().allow(""),
1131
-
1132
- priority_order: Joi.number(),
1133
-
1134
- uid: Joi.number(),
1135
-
1136
- slug: Joi.string().allow(""),
735
+ value: Joi.string().allow(""),
1137
736
  });
1138
737
  }
1139
-
1140
- static CompanyStore() {
738
+ static ProductSizeSellersResponseV3() {
1141
739
  return Joi.object({
1142
- business_type: Joi.string().allow(""),
1143
-
1144
- company_type: Joi.string().allow(""),
1145
-
1146
- uid: Joi.number(),
1147
-
1148
- name: Joi.string().allow(""),
740
+ items: Joi.array().items(CatalogModel.ProductSizePriceResponseV3()),
741
+ page: CatalogModel.Page().required(),
742
+ sort_on: Joi.array().items(
743
+ CatalogModel.ProductSizeSellerFilterSchemaV3()
744
+ ),
1149
745
  });
1150
746
  }
1151
-
1152
- static StoreAddressSerializer() {
747
+ static ProductSizeStores() {
1153
748
  return Joi.object({
1154
- pincode: Joi.number(),
1155
-
1156
- landmark: Joi.string().allow(""),
1157
-
1158
- address1: Joi.string().allow(""),
1159
-
1160
- longitude: Joi.number(),
1161
-
1162
- state: Joi.string().allow(""),
1163
-
1164
- latitude: Joi.number(),
1165
-
1166
- address2: Joi.string().allow(""),
1167
-
1168
- country: Joi.string().allow(""),
1169
-
1170
- city: Joi.string().allow(""),
749
+ count: Joi.number(),
750
+ });
751
+ }
752
+ static ProductSortOn() {
753
+ return Joi.object({
754
+ is_selected: Joi.boolean(),
755
+ name: Joi.string().allow(""),
756
+ value: Joi.string().allow(""),
1171
757
  });
1172
758
  }
1173
-
1174
- static SellerPhoneNumber() {
759
+ static ProductStockPolling() {
1175
760
  return Joi.object({
1176
- country_code: Joi.number().required(),
1177
-
1178
- number: Joi.string().allow("").required(),
761
+ items: Joi.array().items(CatalogModel.ProductStockStatusItem()),
762
+ page: CatalogModel.Page().required(),
1179
763
  });
1180
764
  }
1181
-
1182
- static StoreManagerSerializer() {
765
+ static ProductStockPrice() {
1183
766
  return Joi.object({
1184
- mobile_no: CatalogModel.SellerPhoneNumber(),
1185
-
1186
- email: Joi.string().allow(""),
1187
-
1188
- name: Joi.string().allow(""),
767
+ currency: Joi.string().allow(""),
768
+ effective: Joi.number(),
769
+ marked: Joi.number(),
1189
770
  });
1190
771
  }
1191
-
1192
- static AppStore() {
772
+ static ProductStockPriceV3() {
1193
773
  return Joi.object({
1194
- company: CatalogModel.CompanyStore(),
1195
-
1196
- address: CatalogModel.StoreAddressSerializer(),
1197
-
1198
- name: Joi.string().allow(""),
1199
-
1200
- manager: CatalogModel.StoreManagerSerializer(),
1201
-
1202
- contact_numbers: Joi.array().items(CatalogModel.SellerPhoneNumber()),
1203
-
1204
- uid: Joi.number(),
1205
-
1206
- departments: Joi.array().items(CatalogModel.StoreDepartments()),
774
+ currency: Joi.string().allow(""),
775
+ effective: Joi.number(),
776
+ marked: Joi.number(),
1207
777
  });
1208
778
  }
1209
-
1210
- static ApplicationStoreListing() {
779
+ static ProductStockStatusItem() {
1211
780
  return Joi.object({
1212
- page: CatalogModel.Page(),
1213
-
1214
- filters: Joi.array().items(CatalogModel.StoreDepartments()),
1215
-
1216
- items: Joi.array().items(CatalogModel.AppStore()),
781
+ company: CatalogModel.CompanyDetail(),
782
+ identifier: Joi.any(),
783
+ item_id: Joi.number(),
784
+ price: CatalogModel.ProductStockPrice(),
785
+ quantity: Joi.number(),
786
+ seller: CatalogModel.Seller(),
787
+ size: Joi.string().allow(""),
788
+ store: CatalogModel.StoreDetail(),
789
+ uid: Joi.string().allow(""),
1217
790
  });
1218
791
  }
1219
-
1220
- static Time() {
792
+ static ProductStockStatusResponse() {
1221
793
  return Joi.object({
1222
- minute: Joi.number(),
1223
-
1224
- hour: Joi.number(),
794
+ items: Joi.array().items(CatalogModel.ProductStockStatusItem()),
1225
795
  });
1226
796
  }
1227
-
1228
- static StoreTiming() {
797
+ static ProductStockUnitPriceV3() {
1229
798
  return Joi.object({
1230
- closing: CatalogModel.Time(),
1231
-
1232
- weekday: Joi.string().allow(""),
1233
-
1234
- open: Joi.boolean(),
1235
-
1236
- opening: CatalogModel.Time(),
799
+ currency_code: Joi.string().allow(""),
800
+ currency_symbol: Joi.string().allow(""),
801
+ price: Joi.number(),
802
+ unit: Joi.string().allow(""),
1237
803
  });
1238
804
  }
1239
-
1240
- static StoreDetails() {
805
+ static ProductVariantItemResponse() {
1241
806
  return Joi.object({
1242
- company: CatalogModel.CompanyStore(),
1243
-
1244
- address: CatalogModel.StoreAddressSerializer(),
1245
-
807
+ _custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
808
+ action: CatalogModel.ProductListingAction(),
809
+ color: Joi.string().allow(""),
810
+ color_name: Joi.string().allow(""),
811
+ is_available: Joi.boolean(),
812
+ medias: Joi.array().items(CatalogModel.Media()),
1246
813
  name: Joi.string().allow(""),
1247
-
1248
- manager: CatalogModel.StoreManagerSerializer(),
1249
-
1250
- contact_numbers: Joi.array().items(CatalogModel.SellerPhoneNumber()),
1251
-
1252
- timing: Joi.array().items(CatalogModel.StoreTiming()),
1253
-
814
+ slug: Joi.string().allow(""),
1254
815
  uid: Joi.number(),
1255
-
1256
- departments: Joi.array().items(CatalogModel.StoreDepartments()),
1257
-
1258
- _custom_json: Joi.any(),
816
+ value: Joi.string().allow(""),
1259
817
  });
1260
818
  }
1261
-
1262
- static UserDetail() {
819
+ static ProductVariantListingResponse() {
1263
820
  return Joi.object({
1264
- super_user: Joi.boolean(),
1265
-
1266
- user_id: Joi.string().allow("").required(),
1267
-
1268
- username: Joi.string().allow("").required(),
1269
-
1270
- contact: Joi.string().allow(""),
821
+ display_type: Joi.string().allow(""),
822
+ header: Joi.string().allow(""),
823
+ items: Joi.array().items(CatalogModel.ProductVariantItemResponse()),
824
+ key: Joi.string().allow(""),
825
+ total: Joi.number(),
1271
826
  });
1272
827
  }
1273
-
1274
- static ProductGroupPrice() {
828
+ static ProductVariantResponse() {
1275
829
  return Joi.object({
1276
- currency: Joi.any(),
1277
-
1278
- max_marked: Joi.number(),
1279
-
1280
- max_effective: Joi.number(),
1281
-
1282
- min_marked: Joi.number(),
1283
-
1284
- min_effective: Joi.number(),
830
+ display_type: Joi.string().allow(""),
831
+ header: Joi.string().allow(""),
832
+ items: Joi.array().items(CatalogModel.ProductVariantItemResponse()),
833
+ key: Joi.string().allow(""),
1285
834
  });
1286
835
  }
1287
-
1288
- static Size() {
836
+ static ProductVariantsResponse() {
1289
837
  return Joi.object({
1290
- quantity: Joi.number(),
1291
-
1292
- is_available: Joi.boolean(),
1293
-
1294
- value: Joi.any(),
1295
-
1296
- display: Joi.any(),
838
+ variants: Joi.array().items(CatalogModel.ProductVariantResponse()),
1297
839
  });
1298
840
  }
1299
-
1300
- static ProductDetails() {
841
+ static ReturnConfigSchemaV3() {
1301
842
  return Joi.object({
1302
- attributes: Joi.any(),
1303
-
1304
- country_of_origin: Joi.any(),
1305
-
1306
- template_tag: Joi.any(),
1307
-
1308
- short_description: Joi.any(),
1309
-
1310
- has_variant: Joi.boolean(),
1311
-
1312
- media: Joi.array().items(Joi.any()),
1313
-
1314
- brand_uid: Joi.number(),
1315
-
1316
- grouped_attributes: Joi.any(),
1317
-
1318
- rating: Joi.number(),
1319
-
1320
- image_nature: Joi.any(),
1321
-
1322
- name: Joi.any(),
1323
-
1324
- is_set: Joi.boolean(),
1325
-
1326
- description: Joi.any(),
1327
-
1328
- rating_count: Joi.number(),
1329
-
1330
- out_of_stock: Joi.boolean(),
1331
-
1332
- highlights: Joi.array().items(Joi.any()),
1333
-
1334
- item_code: Joi.any(),
1335
-
1336
- images: Joi.array().items(Joi.any()),
1337
-
1338
- slug: Joi.any(),
1339
-
1340
- hsn_code: Joi.number(),
1341
-
1342
- identifier: Joi.any(),
843
+ returnable: Joi.boolean(),
844
+ time: Joi.number(),
845
+ unit: Joi.string().allow(""),
1343
846
  });
1344
847
  }
1345
-
1346
- static ProductInGroup() {
848
+ static SecondLevelChild() {
1347
849
  return Joi.object({
1348
- price: CatalogModel.ProductGroupPrice(),
1349
-
1350
- auto_add_to_cart: Joi.boolean(),
1351
-
1352
- allow_remove: Joi.boolean(),
1353
-
1354
- sizes: Joi.array().items(CatalogModel.Size()),
1355
-
1356
- product_uid: Joi.number().required(),
1357
-
1358
- auto_select: Joi.boolean(),
1359
-
1360
- max_quantity: Joi.number().required(),
1361
-
1362
- product_details: CatalogModel.ProductDetails(),
1363
-
1364
- min_quantity: Joi.number(),
850
+ _custom_json: Joi.any(),
851
+ action: CatalogModel.ProductListingAction(),
852
+ banners: CatalogModel.ImageUrls(),
853
+ childs: Joi.array().items(CatalogModel.ThirdLevelChild()),
854
+ name: Joi.string().allow(""),
855
+ slug: Joi.string().allow(""),
856
+ uid: Joi.number(),
1365
857
  });
1366
858
  }
1367
-
1368
- static ProductGroupingModel() {
859
+ static Seller() {
1369
860
  return Joi.object({
1370
- _id: Joi.any(),
1371
-
1372
- choice: Joi.any(),
1373
-
1374
- verified_by: CatalogModel.UserDetail(),
1375
-
1376
- created_by: CatalogModel.UserDetail(),
1377
-
1378
- modified_on: Joi.string().allow("").required(),
1379
-
1380
- logo: Joi.string().allow("").allow(null),
1381
-
1382
- is_active: Joi.boolean(),
1383
-
1384
- modified_by: CatalogModel.UserDetail(),
1385
-
1386
- name: Joi.any().required(),
1387
-
1388
- same_store_assignment: Joi.boolean(),
1389
-
1390
- page_visibility: Joi.array().items(Joi.any()),
1391
-
1392
- products: Joi.array().items(CatalogModel.ProductInGroup()).required(),
1393
-
1394
- created_on: Joi.string().allow("").required(),
1395
-
1396
- meta: Joi.any(),
1397
-
1398
- slug: Joi.any(),
1399
-
1400
- verified_on: Joi.string().allow(""),
1401
-
1402
- company_id: Joi.number(),
861
+ count: Joi.number(),
862
+ name: Joi.string().allow(""),
863
+ uid: Joi.number(),
1403
864
  });
1404
865
  }
1405
-
1406
- static ProductBundle() {
866
+ static SellerGroupAttributes() {
1407
867
  return Joi.object({
1408
- items: Joi.array().items(CatalogModel.ProductGroupingModel()),
868
+ details: Joi.array().items(CatalogModel.DetailsSchemaV3()),
869
+ title: Joi.string().allow(""),
870
+ });
871
+ }
872
+ static SellerPhoneNumber() {
873
+ return Joi.object({
874
+ country_code: Joi.number().required(),
875
+ number: Joi.string().allow("").required(),
1409
876
  });
1410
877
  }
1411
-
1412
878
  static SellerV3() {
1413
879
  return Joi.object({
1414
- uid: Joi.number(),
1415
-
1416
880
  count: Joi.number(),
1417
-
1418
881
  name: Joi.string().allow(""),
882
+ uid: Joi.number(),
1419
883
  });
1420
884
  }
1421
-
1422
- static ReturnConfigSchemaV3() {
885
+ static Size() {
1423
886
  return Joi.object({
1424
- returnable: Joi.boolean(),
1425
-
887
+ display: Joi.any(),
888
+ is_available: Joi.boolean(),
889
+ quantity: Joi.number(),
890
+ value: Joi.any(),
891
+ });
892
+ }
893
+ static SizeChart() {
894
+ return Joi.object({
895
+ description: Joi.string().allow(""),
896
+ headers: CatalogModel.ColumnHeaders(),
897
+ image: Joi.string().allow(""),
898
+ size_tip: Joi.string().allow(""),
899
+ sizes: Joi.array().items(CatalogModel.SizeChartValues()),
900
+ title: Joi.string().allow(""),
1426
901
  unit: Joi.string().allow(""),
1427
-
1428
- time: Joi.number(),
1429
902
  });
1430
903
  }
1431
-
1432
- static ProductStockPriceV3() {
904
+ static SizeChartValues() {
1433
905
  return Joi.object({
1434
- currency: Joi.string().allow(""),
1435
-
1436
- marked: Joi.number(),
1437
-
1438
- effective: Joi.number(),
906
+ col_1: Joi.string().allow(""),
907
+ col_2: Joi.string().allow(""),
908
+ col_3: Joi.string().allow(""),
909
+ col_4: Joi.string().allow(""),
910
+ col_5: Joi.string().allow(""),
911
+ col_6: Joi.string().allow(""),
1439
912
  });
1440
913
  }
1441
-
1442
- static StrategyWiseListingSchemaV3() {
914
+ static Store() {
1443
915
  return Joi.object({
916
+ address: Joi.string().allow(""),
917
+ city: Joi.string().allow(""),
918
+ country: Joi.string().allow(""),
919
+ lat_long: CatalogModel.LatLong(),
920
+ name: Joi.string().allow(""),
1444
921
  pincode: Joi.number(),
1445
-
1446
- distance: Joi.number(),
1447
-
1448
- tat: Joi.number(),
1449
-
1450
- quantity: Joi.number(),
922
+ state: Joi.string().allow(""),
923
+ store_code: Joi.string().allow(""),
924
+ store_email: Joi.string().allow(""),
925
+ uid: Joi.number(),
1451
926
  });
1452
927
  }
1453
-
1454
- static DetailsSchemaV3() {
928
+ static StoreAddressSerializer() {
1455
929
  return Joi.object({
1456
- key: Joi.string().allow(""),
1457
-
1458
- type: Joi.string().allow(""),
1459
-
1460
- value: Joi.string().allow(""),
930
+ address1: Joi.string().allow(""),
931
+ address2: Joi.string().allow(""),
932
+ city: Joi.string().allow(""),
933
+ country: Joi.string().allow(""),
934
+ landmark: Joi.string().allow(""),
935
+ latitude: Joi.number(),
936
+ longitude: Joi.number(),
937
+ pincode: Joi.number(),
938
+ state: Joi.string().allow(""),
1461
939
  });
1462
940
  }
1463
-
1464
- static SellerGroupAttributes() {
941
+ static StoreDepartments() {
1465
942
  return Joi.object({
1466
- details: Joi.array().items(CatalogModel.DetailsSchemaV3()),
1467
-
1468
- title: Joi.string().allow(""),
943
+ logo: Joi.string().allow(""),
944
+ name: Joi.string().allow(""),
945
+ priority_order: Joi.number(),
946
+ slug: Joi.string().allow(""),
947
+ uid: Joi.number(),
1469
948
  });
1470
949
  }
1471
-
1472
- static ProductStockUnitPriceV3() {
950
+ static StoreDetail() {
1473
951
  return Joi.object({
1474
- price: Joi.number(),
1475
-
1476
- currency_symbol: Joi.string().allow(""),
1477
-
1478
- unit: Joi.string().allow(""),
1479
-
1480
- currency_code: Joi.string().allow(""),
952
+ city: Joi.string().allow(""),
953
+ code: Joi.string().allow(""),
954
+ id: Joi.number(),
955
+ name: Joi.string().allow(""),
1481
956
  });
1482
957
  }
1483
-
1484
- static ProductSetDistributionSizeV3() {
958
+ static StoreDetails() {
1485
959
  return Joi.object({
1486
- pieces: Joi.number(),
1487
-
1488
- size: Joi.string().allow(""),
960
+ _custom_json: Joi.any(),
961
+ address: CatalogModel.StoreAddressSerializer(),
962
+ company: CatalogModel.CompanyStore(),
963
+ contact_numbers: Joi.array().items(CatalogModel.SellerPhoneNumber()),
964
+ departments: Joi.array().items(CatalogModel.StoreDepartments()),
965
+ manager: CatalogModel.StoreManagerSerializer(),
966
+ name: Joi.string().allow(""),
967
+ timing: Joi.array().items(CatalogModel.StoreTiming()),
968
+ uid: Joi.number(),
1489
969
  });
1490
970
  }
1491
-
1492
- static ProductSetDistributionV3() {
971
+ static StoreListingResponse() {
1493
972
  return Joi.object({
1494
- sizes: Joi.array().items(CatalogModel.ProductSetDistributionSizeV3()),
973
+ items: Joi.array().items(CatalogModel.Store()).required(),
974
+ page: CatalogModel.Page().required(),
1495
975
  });
1496
976
  }
1497
-
1498
- static ProductSetV3() {
977
+ static StoreManagerSerializer() {
1499
978
  return Joi.object({
1500
- quantity: Joi.number(),
1501
-
1502
- size_distribution: CatalogModel.ProductSetDistributionV3(),
979
+ email: Joi.string().allow(""),
980
+ mobile_no: CatalogModel.SellerPhoneNumber(),
981
+ name: Joi.string().allow(""),
1503
982
  });
1504
983
  }
1505
-
1506
- static MarketPlaceSttributesSchemaV3() {
984
+ static StoreTiming() {
1507
985
  return Joi.object({
1508
- details: Joi.array().items(CatalogModel.DetailsSchemaV3()),
1509
-
1510
- title: Joi.string().allow(""),
986
+ closing: CatalogModel.Time(),
987
+ open: Joi.boolean(),
988
+ opening: CatalogModel.Time(),
989
+ weekday: Joi.string().allow(""),
1511
990
  });
1512
991
  }
1513
-
1514
992
  static StoreV3() {
1515
993
  return Joi.object({
1516
- uid: Joi.number(),
1517
-
1518
994
  count: Joi.number(),
1519
-
1520
995
  name: Joi.string().allow(""),
996
+ uid: Joi.number(),
1521
997
  });
1522
998
  }
1523
-
1524
- static ArticleAssignmentV3() {
1525
- return Joi.object({
1526
- strategy: Joi.string().allow(""),
1527
-
1528
- level: Joi.string().allow(""),
1529
- });
1530
- }
1531
-
1532
- static ProductSizePriceResponseV3() {
999
+ static StrategyWiseListingSchemaV3() {
1533
1000
  return Joi.object({
1534
- seller: CatalogModel.SellerV3(),
1535
-
1536
- seller_count: Joi.number(),
1537
-
1538
- return_config: CatalogModel.ReturnConfigSchemaV3(),
1539
-
1001
+ distance: Joi.number(),
1540
1002
  pincode: Joi.number(),
1541
-
1542
- price_per_piece: CatalogModel.ProductStockPriceV3(),
1543
-
1544
- item_type: Joi.string().allow(""),
1545
-
1546
- is_cod: Joi.boolean(),
1547
-
1548
- strategy_wise_listing: Joi.array().items(
1549
- CatalogModel.StrategyWiseListingSchemaV3()
1550
- ),
1551
-
1552
- grouped_attributes: Joi.array().items(
1553
- CatalogModel.SellerGroupAttributes()
1554
- ),
1555
-
1556
1003
  quantity: Joi.number(),
1557
-
1558
- article_id: Joi.string().allow(""),
1559
-
1560
- price_per_unit: CatalogModel.ProductStockUnitPriceV3(),
1561
-
1562
- set: CatalogModel.ProductSetV3(),
1563
-
1564
- price: CatalogModel.ProductStockPriceV3(),
1565
-
1566
- special_badge: Joi.string().allow(""),
1567
-
1568
- is_gift: Joi.boolean(),
1569
-
1570
- marketplace_attributes: Joi.array().items(
1571
- CatalogModel.MarketPlaceSttributesSchemaV3()
1572
- ),
1573
-
1574
- store: CatalogModel.StoreV3(),
1575
-
1576
- discount: Joi.string().allow(""),
1577
-
1578
- article_assignment: CatalogModel.ArticleAssignmentV3(),
1579
-
1580
- long_lat: Joi.array().items(Joi.number()),
1004
+ tat: Joi.number(),
1581
1005
  });
1582
1006
  }
1583
-
1584
- static ProductSizeSellerFilterSchemaV3() {
1007
+ static ThirdLevelChild() {
1585
1008
  return Joi.object({
1586
- is_selected: Joi.boolean(),
1587
-
1588
- value: Joi.string().allow(""),
1589
-
1009
+ _custom_json: Joi.any(),
1010
+ action: CatalogModel.ProductListingAction(),
1011
+ banners: CatalogModel.ImageUrls(),
1012
+ childs: Joi.array().items(Joi.any()),
1590
1013
  name: Joi.string().allow(""),
1014
+ slug: Joi.string().allow(""),
1015
+ uid: Joi.number(),
1591
1016
  });
1592
1017
  }
1593
-
1594
- static ProductSizeSellersResponseV3() {
1018
+ static Time() {
1595
1019
  return Joi.object({
1596
- page: CatalogModel.Page().required(),
1597
-
1598
- sort_on: Joi.array().items(
1599
- CatalogModel.ProductSizeSellerFilterSchemaV3()
1600
- ),
1601
-
1602
- items: Joi.array().items(CatalogModel.ProductSizePriceResponseV3()),
1020
+ hour: Joi.number(),
1021
+ minute: Joi.number(),
1022
+ });
1023
+ }
1024
+ static UserDetail() {
1025
+ return Joi.object({
1026
+ contact: Joi.string().allow(""),
1027
+ super_user: Joi.boolean(),
1028
+ user_id: Joi.string().allow("").required(),
1029
+ username: Joi.string().allow("").required(),
1030
+ });
1031
+ }
1032
+ static Weight() {
1033
+ return Joi.object({
1034
+ is_default: Joi.boolean().required(),
1035
+ shipping: Joi.number().required(),
1036
+ unit: Joi.string().allow("").required(),
1603
1037
  });
1604
1038
  }
1605
1039
  }