@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.3

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 (314) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.d.ts +2 -0
  8. package/sdk/application/ApplicationClient.js +2 -18
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
  10. package/sdk/application/Cart/CartApplicationClient.js +111 -1200
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  14. package/sdk/application/Common/CommonApplicationClient.js +2 -92
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +52 -95
  20. package/sdk/application/Content/ContentApplicationClient.js +46 -990
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
  23. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  24. package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
  25. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  26. package/sdk/application/Lead/LeadApplicationClient.js +5 -217
  27. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
  28. package/sdk/application/Logistic/LogisticApplicationClient.js +89 -493
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
  30. package/sdk/application/Order/OrderApplicationClient.js +52 -507
  31. package/sdk/application/Payment/PaymentApplicationClient.d.ts +93 -213
  32. package/sdk/application/Payment/PaymentApplicationClient.js +49 -2109
  33. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
  34. package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
  35. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  36. package/sdk/application/Share/ShareApplicationClient.js +7 -309
  37. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  38. package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
  39. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  40. package/sdk/application/User/UserApplicationClient.js +44 -1820
  41. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  42. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
  43. package/sdk/application/index.d.ts +0 -18
  44. package/sdk/application/index.js +0 -33
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  52. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  55. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  57. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  61. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  62. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  63. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  64. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  65. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  66. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  67. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  68. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  69. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  70. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  71. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  73. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  75. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  82. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  83. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  84. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  85. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  86. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  87. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  89. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +118 -65
  91. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  92. package/sdk/platform/Cart/CartPlatformModel.d.ts +5067 -1300
  93. package/sdk/platform/Cart/CartPlatformModel.js +1988 -1217
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  98. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  99. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  100. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6506 -1775
  101. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1690
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  103. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  104. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  105. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  106. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  107. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  124. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  126. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  128. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  130. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  132. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  134. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  135. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  136. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  137. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  138. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  139. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  144. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  145. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  150. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  152. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  154. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  156. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  157. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  158. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  159. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  160. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  161. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  162. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  163. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  164. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  165. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  166. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  167. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  168. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  169. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  170. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  171. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  172. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  173. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  174. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  175. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  176. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  177. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  178. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  179. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  180. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  181. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  182. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  183. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  184. package/sdk/platform/PlatformClient.d.ts +0 -2
  185. package/sdk/platform/PlatformClient.js +0 -4
  186. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  187. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  188. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  189. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  190. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  191. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1893 -623
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +924 -568
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  202. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  203. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  204. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  205. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  206. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  208. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  210. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  211. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  212. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  213. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  214. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  215. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  216. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  217. package/sdk/platform/User/UserPlatformModel.js +23 -23
  218. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  219. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  220. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  221. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  222. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  223. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  224. package/sdk/platform/index.d.ts +0 -1
  225. package/sdk/platform/index.js +0 -2
  226. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  227. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -7
  228. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  229. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  230. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  231. package/sdk/public/Content/ContentPublicClient.js +795 -7
  232. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  233. package/sdk/public/Content/ContentPublicModel.js +649 -3
  234. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  235. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  236. package/sdk/public/Partner/PartnerPublicClient.js +4 -2
  237. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  238. package/sdk/public/Webhook/WebhookPublicClient.js +12 -10
  239. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  240. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  241. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  242. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  243. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  244. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  245. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  246. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  247. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  248. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  249. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  250. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  251. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  252. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  253. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  254. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  255. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  256. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  257. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  258. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  259. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  260. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  261. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  262. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  263. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  264. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  265. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  266. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  267. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  268. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  269. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  270. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  271. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  272. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  273. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  274. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  275. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  276. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  277. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  278. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  279. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  280. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  281. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  282. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  283. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  284. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  285. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  286. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  287. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  288. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  289. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  290. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  291. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  292. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  293. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  294. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  295. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  296. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  297. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  298. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  299. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  300. package/sdk/application/User/UserApplicationModel.js +0 -1382
  301. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  302. package/sdk/application/User/UserApplicationValidator.js +0 -573
  303. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  304. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  305. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  306. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  307. package/sdk/common/Clickstream.d.ts +0 -1
  308. package/sdk/common/Clickstream.js +0 -464
  309. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  310. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  311. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  312. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  313. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  314. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,12 +1,12 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef UpdateZoneConfigRequest
4
+ * @typedef UpdateZoneConfigDetails
5
5
  * @property {string} [serviceability_type]
6
6
  */
7
7
 
8
8
  /**
9
- * @typedef ServiceabilityErrorResponse
9
+ * @typedef ServiceabilityErrorResult
10
10
  * @property {string} message
11
11
  * @property {string} value
12
12
  * @property {string} type
@@ -20,14 +20,14 @@ const Joi = require("joi");
20
20
  */
21
21
 
22
22
  /**
23
- * @typedef ApplicationServiceabilityConfigResponse
24
- * @property {ServiceabilityErrorResponse} [error]
23
+ * @typedef ApplicationServiceabilityConfigResult
24
+ * @property {ServiceabilityErrorResult} [error]
25
25
  * @property {ApplicationServiceabilityConfig} [data]
26
26
  * @property {boolean} success
27
27
  */
28
28
 
29
29
  /**
30
- * @typedef EntityRegionView_Request
30
+ * @typedef EntityRegionView_Details
31
31
  * @property {string[]} sub_type
32
32
  * @property {string[]} [parent_id]
33
33
  */
@@ -49,7 +49,7 @@ const Joi = require("joi");
49
49
  */
50
50
 
51
51
  /**
52
- * @typedef getAppRegionZonesResponse
52
+ * @typedef getAppRegionZonesResult
53
53
  * @property {PageSchema[]} page
54
54
  * @property {ListViewItems[]} items
55
55
  */
@@ -71,7 +71,7 @@ const Joi = require("joi");
71
71
  */
72
72
 
73
73
  /**
74
- * @typedef EntityRegionView_Response
74
+ * @typedef EntityRegionView_Result
75
75
  * @property {EntityRegionView_Error} error
76
76
  * @property {EntityRegionView_page} page
77
77
  * @property {EntityRegionView_Items[]} data
@@ -123,7 +123,7 @@ const Joi = require("joi");
123
123
  */
124
124
 
125
125
  /**
126
- * @typedef ListViewResponse
126
+ * @typedef ListViewResult
127
127
  * @property {ZoneDataItem} page
128
128
  * @property {ListViewItems[]} items
129
129
  */
@@ -138,7 +138,7 @@ const Joi = require("joi");
138
138
  */
139
139
 
140
140
  /**
141
- * @typedef CompanyStoreView_Response
141
+ * @typedef CompanyStoreView_Result
142
142
  * @property {CompanyStoreView_PageItems[]} page
143
143
  * @property {Object[]} [items]
144
144
  */
@@ -151,103 +151,125 @@ const Joi = require("joi");
151
151
 
152
152
  /**
153
153
  * @typedef ZoneProductTypes
154
- * @property {string} type
155
- * @property {string[]} tags
154
+ * @property {string} type - Denotes if the zone is applicable for all the
155
+ * products or specific products.
156
+ * @property {string[]} tags - List of product tags.
157
+ */
158
+
159
+ /**
160
+ * @typedef ZoneMappingDetailType
161
+ * @property {string} country - Uid for the country.
162
+ * @property {ZoneMappingRegions[]} [regions] - List of regions with its details.
156
163
  */
157
164
 
158
165
  /**
159
166
  * @typedef ZoneMappingType
160
- * @property {string} country
161
- * @property {string[]} [pincode]
162
- * @property {string[]} [state]
167
+ * @property {string} country - Uid for the country.
168
+ * @property {string[]} regions - List of region uid for the given country.
169
+ */
170
+
171
+ /**
172
+ * @typedef ZoneMappingRegions
173
+ * @property {string} [display_name] - Name of the region that is in proper casing.
174
+ * @property {string[]} [parent_id]
175
+ * @property {string} [parent_uid] - Unique identifier for that regions parent.
176
+ * @property {string} [sub_type] - What type does the region belong to.
177
+ * @property {string} [uid] - Unique identifier for that region.
163
178
  */
164
179
 
165
180
  /**
166
181
  * @typedef UpdateZoneData
167
- * @property {string} zone_id
168
- * @property {string} name
169
- * @property {string} slug
170
- * @property {number} company_id
171
- * @property {boolean} is_active
172
- * @property {GetZoneDataViewChannels[]} channels
182
+ * @property {string} zone_id - Unique identifier for the zone.
183
+ * @property {string} name - Name for the zone.
184
+ * @property {string} slug - A human-readable and unique identifier for the
185
+ * zone, derived from the name.
186
+ * @property {number} company_id - Company id associated with the zone.
187
+ * @property {boolean} is_active - A flag indicating whether the zone is active.
188
+ * @property {GetZoneDataViewChannels[]} channels - Channels for which the zone is active.
173
189
  * @property {ZoneProductTypes} product
174
- * @property {number[]} store_ids
175
- * @property {string} region_type
176
- * @property {ZoneMappingType[]} mapping
177
- * @property {string} [assignment_preference]
190
+ * @property {number[]} store_ids - A list of store identifiers associated with the zone.
191
+ * @property {string} region_type - Type of region that belongs in the zone.
192
+ * @property {ZoneMappingType[]} mapping - Country to region mapping for the zone.
178
193
  */
179
194
 
180
195
  /**
181
- * @typedef ZoneUpdateRequest
196
+ * @typedef ZoneUpdateDetails
182
197
  * @property {string} identifier
183
198
  * @property {UpdateZoneData} data
184
199
  */
185
200
 
186
201
  /**
187
- * @typedef ZoneSuccessResponse
202
+ * @typedef ZoneSuccessResult
188
203
  * @property {number} status_code
189
204
  * @property {boolean} success
190
205
  */
191
206
 
192
207
  /**
193
208
  * @typedef GetZoneDataViewItems
194
- * @property {string} zone_id
195
- * @property {string} name
196
- * @property {string} slug
197
- * @property {number} [company_id]
198
- * @property {boolean} is_active
199
- * @property {GetZoneDataViewChannels[]} channels
209
+ * @property {string} zone_id - The unique identifier for the zone.
210
+ * @property {string} name - The name of the zone for easy identification.
211
+ * @property {string} slug - A URL-friendly version of the zone’s name, used for
212
+ * routing or linking.
213
+ * @property {number} [company_id] - The ID of the company associated with this zone.
214
+ * @property {boolean} is_active - A flag indicating whether the zone is active
215
+ * (true) or inactive (false).
216
+ * @property {GetZoneDataViewChannels[]} channels - A list of channels available
217
+ * within this zone.
200
218
  * @property {ZoneProductTypes} product
201
- * @property {number[]} store_ids
202
- * @property {string} [region_type]
203
- * @property {ZoneMappingType[]} mapping
204
- * @property {string} [assignment_preference]
205
- * @property {number} stores_count
219
+ * @property {number[]} store_ids - A collection of store IDs linked to this zone.
220
+ * @property {string} [region_type] - The type of region the zone represents.
221
+ * @property {ZoneMappingType[]} mapping - A list of mappings defining
222
+ * relationships between this zone and other entities.
223
+ * @property {string} [assignment_preference] - The preferred method for
224
+ * assigning stores or products to the zone.
225
+ * @property {number} stores_count - The total number of stores assigned to this zone.
206
226
  */
207
227
 
208
228
  /**
209
- * @typedef GetSingleZoneDataViewResponse
229
+ * @typedef GetSingleZoneDataViewResult
210
230
  * @property {GetZoneDataViewItems} data
211
231
  */
212
232
 
213
233
  /**
214
234
  * @typedef GetZoneByIdSchema
215
- * @property {string} zone_id
216
- * @property {string} name
217
- * @property {string} slug
218
- * @property {number} [company_id]
219
- * @property {boolean} is_active
220
- * @property {GetZoneDataViewChannels[]} channels
235
+ * @property {string} zone_id - Unique identifier for the zone.
236
+ * @property {string} name - Name for the zone.
237
+ * @property {string} slug - A human-readable and unique identifier for the
238
+ * zone, derived from the name.
239
+ * @property {number} [company_id] - Company id associated with the zone.
240
+ * @property {boolean} is_active - A flag indicating whether the zone is active.
241
+ * @property {GetZoneDataViewChannels[]} channels - Channels for which the zone is active.
221
242
  * @property {ZoneProductTypes} product
222
- * @property {number[]} store_ids
223
- * @property {string} region_type
224
- * @property {ZoneMappingType[]} mapping
225
- * @property {string} [assignment_preference]
226
- * @property {number} stores_count
243
+ * @property {number[]} store_ids - A list of store identifiers associated with the zone.
244
+ * @property {string} region_type - Type of region that belongs in the zone.
245
+ * @property {ZoneMappingDetailType[]} mapping - Country to region mapping for the zone.
246
+ * @property {number} [stores_count]
227
247
  */
228
248
 
229
249
  /**
230
250
  * @typedef CreateZoneData
231
- * @property {string} name
232
- * @property {string} slug
233
- * @property {number} company_id
234
- * @property {boolean} is_active
235
- * @property {GetZoneDataViewChannels[]} channels
236
- * @property {number[]} store_ids
237
- * @property {string} region_type
238
- * @property {ZoneMappingType[]} mapping
239
- * @property {string} [assignment_preference]
251
+ * @property {string} name - Name of the zone.
252
+ * @property {string} slug - A human-readable and unique identifier for the
253
+ * zone, derived from the name.
254
+ * @property {number} company_id - Unique identifier of the company for which
255
+ * the zone is created.
256
+ * @property {boolean} is_active - A flag indicating whether the zone is active.
257
+ * @property {GetZoneDataViewChannels[]} channels - Channels for which the zone is active.
258
+ * @property {number[]} store_ids - A list of store identifiers associated with the zone.
259
+ * @property {string} region_type - Type of region that belongs in the zone.
260
+ * @property {ZoneMappingType[]} mapping - Country to region mapping for the zone.
261
+ * @property {ZoneProductTypes} [product]
240
262
  */
241
263
 
242
264
  /**
243
- * @typedef ZoneResponse
244
- * @property {number} status_code
265
+ * @typedef ZoneResult
266
+ * @property {number} [status_code]
245
267
  * @property {string} zone_id
246
268
  * @property {boolean} success
247
269
  */
248
270
 
249
271
  /**
250
- * @typedef GetZoneFromPincodeViewRequest
272
+ * @typedef GetZoneFromPincodeViewDetails
251
273
  * @property {string} country
252
274
  * @property {string} pincode
253
275
  */
@@ -261,23 +283,22 @@ const Joi = require("joi");
261
283
  * @property {string} slug
262
284
  * @property {boolean} is_active
263
285
  * @property {number[]} store_ids
264
- * @property {string} assignment_preference
265
286
  */
266
287
 
267
288
  /**
268
- * @typedef GetZoneFromPincodeViewResponse
289
+ * @typedef GetZoneFromPincodeViewResult
269
290
  * @property {string} serviceability_type
270
291
  * @property {Zone[]} zones
271
292
  */
272
293
 
273
294
  /**
274
- * @typedef GetZoneFromApplicationIdViewResponse
295
+ * @typedef GetZoneFromApplicationIdViewResult
275
296
  * @property {ZoneDataItem[]} page
276
297
  * @property {ListViewItems[]} items
277
298
  */
278
299
 
279
300
  /**
280
- * @typedef ServiceabilityPageResponse
301
+ * @typedef ServiceabilityPageResult
281
302
  * @property {string} [type]
282
303
  * @property {boolean} [has_next]
283
304
  * @property {number} [item_total]
@@ -292,37 +313,37 @@ const Joi = require("joi");
292
313
  */
293
314
 
294
315
  /**
295
- * @typedef ManagerResponse
316
+ * @typedef ManagerResult
296
317
  * @property {string} [email]
297
318
  * @property {MobileNo} [mobile_no]
298
319
  * @property {string} [name]
299
320
  */
300
321
 
301
322
  /**
302
- * @typedef ModifiedByResponse
323
+ * @typedef ModifiedByResult
303
324
  * @property {string} [username]
304
325
  * @property {string} [user_id]
305
326
  */
306
327
 
307
328
  /**
308
- * @typedef IntegrationTypeResponse
329
+ * @typedef IntegrationTypeResult
309
330
  * @property {string} [inventory]
310
331
  * @property {string} [order]
311
332
  */
312
333
 
313
334
  /**
314
- * @typedef ProductReturnConfigResponse
335
+ * @typedef ProductReturnConfigResult
315
336
  * @property {boolean} [on_same_store]
316
337
  */
317
338
 
318
339
  /**
319
- * @typedef ContactNumberResponse
340
+ * @typedef ContactNumberResult
320
341
  * @property {string} [number]
321
342
  * @property {number} [country_code]
322
343
  */
323
344
 
324
345
  /**
325
- * @typedef AddressResponse
346
+ * @typedef AddressResult
326
347
  * @property {string} [city]
327
348
  * @property {string} [address1]
328
349
  * @property {number} [pincode]
@@ -335,29 +356,29 @@ const Joi = require("joi");
335
356
  */
336
357
 
337
358
  /**
338
- * @typedef CreatedByResponse
359
+ * @typedef CreatedByResult
339
360
  * @property {string} [username]
340
361
  * @property {string} [user_id]
341
362
  */
342
363
 
343
364
  /**
344
- * @typedef EwayBillResponse
365
+ * @typedef EwayBillResult
345
366
  * @property {boolean} [enabled]
346
367
  */
347
368
 
348
369
  /**
349
- * @typedef EinvoiceResponse
370
+ * @typedef EinvoiceResult
350
371
  * @property {boolean} [enabled]
351
372
  */
352
373
 
353
374
  /**
354
- * @typedef GstCredentialsResponse
355
- * @property {EwayBillResponse} [e_waybill]
356
- * @property {EinvoiceResponse} [e_invoice]
375
+ * @typedef GstCredentialsResult
376
+ * @property {EwayBillResult} [e_waybill]
377
+ * @property {EinvoiceResult} [e_invoice]
357
378
  */
358
379
 
359
380
  /**
360
- * @typedef WarningsResponse
381
+ * @typedef WarningsResult
361
382
  * @property {string} [store_address]
362
383
  */
363
384
 
@@ -368,7 +389,7 @@ const Joi = require("joi");
368
389
  */
369
390
 
370
391
  /**
371
- * @typedef TimmingResponse
392
+ * @typedef TimmingResult
372
393
  * @property {boolean} [open]
373
394
  * @property {string} [weekday]
374
395
  * @property {OpeningClosing} [closing]
@@ -376,7 +397,7 @@ const Joi = require("joi");
376
397
  */
377
398
 
378
399
  /**
379
- * @typedef DocumentsResponse
400
+ * @typedef DocumentsResult
380
401
  * @property {string} [legal_name]
381
402
  * @property {string} [value]
382
403
  * @property {string} [type]
@@ -398,109 +419,119 @@ const Joi = require("joi");
398
419
  */
399
420
 
400
421
  /**
401
- * @typedef LogisticsResponse
422
+ * @typedef LogisticsResult
402
423
  * @property {boolean} [override]
403
424
  * @property {Dp} [dp]
404
425
  */
405
426
 
406
427
  /**
407
- * @typedef ItemResponse
428
+ * @typedef ItemResult
408
429
  * @property {string} [created_on]
409
- * @property {ManagerResponse} [manager]
410
- * @property {ModifiedByResponse} [modified_by]
411
- * @property {IntegrationTypeResponse} [integration_type]
430
+ * @property {ManagerResult} [manager]
431
+ * @property {ModifiedByResult} [modified_by]
432
+ * @property {IntegrationTypeResult} [integration_type]
412
433
  * @property {string} [verified_on]
413
- * @property {ProductReturnConfigResponse} [product_return_config]
414
- * @property {ContactNumberResponse[]} [contact_numbers]
415
- * @property {ModifiedByResponse} [verified_by]
434
+ * @property {ProductReturnConfigResult} [product_return_config]
435
+ * @property {ContactNumberResult[]} [contact_numbers]
436
+ * @property {ModifiedByResult} [verified_by]
416
437
  * @property {string} [stage]
417
- * @property {AddressResponse} [address]
438
+ * @property {AddressResult} [address]
418
439
  * @property {string} [modified_on]
419
- * @property {CreatedByResponse} [created_by]
420
- * @property {GstCredentialsResponse} [gst_credentials]
440
+ * @property {CreatedByResult} [created_by]
441
+ * @property {GstCredentialsResult} [gst_credentials]
421
442
  * @property {string} [display_name]
422
443
  * @property {number} [company_id]
423
444
  * @property {number} [uid]
424
- * @property {Object} [_custom_json]
445
+ * @property {Object} [_custom_json] - Custom JSON for internal usage
425
446
  * @property {string} [code]
426
- * @property {WarningsResponse} [warnings]
447
+ * @property {WarningsResult} [warnings]
427
448
  * @property {string} [name]
428
- * @property {TimmingResponse[]} [timing]
429
- * @property {DocumentsResponse[]} [documents]
449
+ * @property {TimmingResult[]} [timing]
450
+ * @property {DocumentsResult[]} [documents]
430
451
  * @property {string} [store_type]
431
452
  * @property {string} [sub_type]
432
453
  * @property {number} [company]
433
454
  * @property {string} [_cls]
434
- * @property {LogisticsResponse} [logistics]
455
+ * @property {LogisticsResult} [logistics]
435
456
  * @property {string[]} [notification_emails]
436
457
  */
437
458
 
438
459
  /**
439
- * @typedef GetStoresViewResponse
440
- * @property {ServiceabilityPageResponse} page
441
- * @property {ItemResponse[]} [items]
460
+ * @typedef GetStoresViewResult
461
+ * @property {ServiceabilityPageResult} page
462
+ * @property {ItemResult[]} [items]
442
463
  */
443
464
 
444
465
  /**
445
466
  * @typedef PincodeMopData
446
- * @property {number[]} pincodes
447
- * @property {string} country
448
- * @property {string} action
467
+ * @property {number[]} pincodes - A list of pincodes.
468
+ * @property {string} country - Name of the country.
469
+ * @property {string} action - Denotes wether to activate or deavtivate pincodes
470
+ * for COD mode of payment.
449
471
  */
450
472
 
451
473
  /**
452
- * @typedef PincodeMopUpdateResponse
453
- * @property {number} pincode
454
- * @property {string} channel_id
455
- * @property {string} country
456
- * @property {boolean} is_active
474
+ * @typedef PincodeMopUpdateResult
475
+ * @property {number} pincode - Pincode of the region.
476
+ * @property {string} channel_id - Unique identifier of the sales channel.
477
+ * @property {string} country - Country name.
478
+ * @property {boolean} is_active - Denotes whether the pincode mode of payment
479
+ * is active or not.
457
480
  */
458
481
 
459
482
  /**
460
- * @typedef PincodeMOPresponse
461
- * @property {boolean} success
462
- * @property {number} status_code
463
- * @property {string} batch_id
464
- * @property {string} country
465
- * @property {string} action
466
- * @property {number[]} [pincodes]
467
- * @property {PincodeMopUpdateResponse[]} [updated_pincodes]
483
+ * @typedef PincodeMOPResult
484
+ * @property {boolean} success - Denotes if the action was successful or not.
485
+ * @property {number} status_code - Status code for the response.
486
+ * @property {string} batch_id - Unique identifier identifying the perticular request.
487
+ * @property {string} country - Name of the country.
488
+ * @property {string} action - Denotes wether to activate or deavtivate pincodes
489
+ * for COD mode of payment.
490
+ * @property {number[]} [pincodes] - List of pincodes.
491
+ * @property {PincodeMopUpdateResult[]} [updated_pincodes] - Details of the
492
+ * updated pincodes.
468
493
  */
469
494
 
470
495
  /**
471
496
  * @typedef CommonError
472
- * @property {string} [status_code]
497
+ * @property {string} [status_code] - Status code for the error.
473
498
  * @property {Object} [error]
474
- * @property {string} [success]
499
+ * @property {string} [success] - Whether operation was successful.
475
500
  */
476
501
 
477
502
  /**
478
503
  * @typedef PincodeMopBulkData
479
- * @property {string} batch_id
480
- * @property {string} s3_url
504
+ * @property {string} batch_id - Unique identifier for the request.
505
+ * @property {string} s3_url - CDN url for the uploaded file.
481
506
  */
482
507
 
483
508
  /**
484
- * @typedef PincodeBulkViewResponse
509
+ * @typedef PincodeBulkViewResult
485
510
  * @property {string} batch_id
486
- * @property {string} s3_url
511
+ * @property {string} s3_url - CDN url for the uploaded file.
487
512
  */
488
513
 
489
514
  /**
490
- * @typedef PincodeCodStatusListingRequest
491
- * @property {string} [country]
492
- * @property {boolean} [is_active]
493
- * @property {number} [pincode]
515
+ * @typedef PincodeCodStatusListingDetails
516
+ * @property {string} [country] - Name of the country.
517
+ * @property {boolean} [is_active] - Search based on the active or inactive flag.
518
+ * @property {number} [pincode] - Search based on the pincode.
494
519
  * @property {number} [current]
495
520
  * @property {number} [page_size]
496
521
  */
497
522
 
498
523
  /**
499
- * @typedef PincodeCodStatusListingResponse
500
- * @property {string} country
501
- * @property {PincodeCodStatusListingResponse[]} data
502
- * @property {boolean} success
503
- * @property {Error[]} [errors]
524
+ * @typedef PincodeCodStatusItem
525
+ * @property {boolean} [active] - Denoted if the pincode is active or not.
526
+ * @property {string} [pincode] - Name of the pincode.
527
+ */
528
+
529
+ /**
530
+ * @typedef PincodeCodStatusListingResult
531
+ * @property {string} country - Name of the country.
532
+ * @property {PincodeCodStatusListingResult[]} data - List of pincode details.
533
+ * @property {boolean} success - Denotes if the request was successful or not.
534
+ * @property {Error[]} [errors] - List of error object in case of unsuccessful response.
504
535
  * @property {PincodeCodStatusListingPage} page
505
536
  * @property {PincodeCodStatusListingSummary} summary
506
537
  */
@@ -523,14 +554,14 @@ const Joi = require("joi");
523
554
 
524
555
  /**
525
556
  * @typedef PincodeCodStatusListingSummary
526
- * @property {number} total_active_pincodes
527
- * @property {number} total_inactive_pincodes
557
+ * @property {number} total_active_pincodes - Count of the total active pincodes.
558
+ * @property {number} total_inactive_pincodes - Count of the total inactive pincodes.
528
559
  */
529
560
 
530
561
  /**
531
- * @typedef PincodeMopUpdateAuditHistoryRequest
532
- * @property {string} entity_type
533
- * @property {string} [file_name]
562
+ * @typedef PincodeMopUpdateAuditHistoryDetails
563
+ * @property {string} entity_type - Type of the entity requested.
564
+ * @property {string} [file_name] - Name of the file.
534
565
  */
535
566
 
536
567
  /**
@@ -543,22 +574,23 @@ const Joi = require("joi");
543
574
  */
544
575
 
545
576
  /**
546
- * @typedef PincodeMopUpdateAuditHistoryResponse
547
- * @property {string} [batch_id]
548
- * @property {string} [entity_type]
549
- * @property {string} [error_file_s3_url]
550
- * @property {string} [s3_url]
551
- * @property {string} [file_name]
577
+ * @typedef PincodeMopUpdateAuditHistoryResult
578
+ * @property {string} [batch_id] - Uniquie identifier of the request.
579
+ * @property {string} [entity_type] - Type of the entity requested.
580
+ * @property {string} [error_file_s3_url] - URL for the error file.
581
+ * @property {string} [s3_url] - CDN url for the file uploaded.
582
+ * @property {string} [file_name] - Name of the file.
552
583
  * @property {string} [updated_at]
553
584
  * @property {string} [updated_by]
554
- * @property {boolean} [success]
585
+ * @property {boolean} [success] - Denotes if the request was successfully processed.
555
586
  */
556
587
 
557
588
  /**
558
- * @typedef PincodeMopUpdateAuditHistoryResponseData
559
- * @property {string} [entity_type]
589
+ * @typedef PincodeMopUpdateAuditHistoryResultData
590
+ * @property {string} [entity_type] - Type of the entity requested.
560
591
  * @property {PincodeMopUpdateAuditHistoryPaging} page
561
- * @property {PincodeMopUpdateAuditHistoryResponse[]} data
592
+ * @property {PincodeMopUpdateAuditHistoryResult[]} data - History records of
593
+ * the uploaded files.
562
594
  */
563
595
 
564
596
  /**
@@ -589,37 +621,53 @@ const Joi = require("joi");
589
621
  * @property {SchemeRulesFeatures} [feature]
590
622
  */
591
623
 
624
+ /**
625
+ * @typedef CourierAccountUpdateDetails
626
+ * @property {string} extension_id - Unique identifier of courier partner extension.
627
+ * @property {string} scheme_id - Unique identifier of courier partner scheme.
628
+ * @property {boolean} is_self_ship - Denotes if the account is of self delivery type.
629
+ * @property {string} stage - Denotes whether the account is in enabled or disabled stage.
630
+ * @property {boolean} is_own_account - Denotes whether it is the seller's own
631
+ * account or not.
632
+ */
633
+
592
634
  /**
593
635
  * @typedef CourierAccount
594
- * @property {string} extension_id
595
- * @property {string} account_id
596
- * @property {string} scheme_id
597
- * @property {boolean} is_self_ship
598
- * @property {string} stage
599
- * @property {boolean} is_own_account
636
+ * @property {number} company_id - Company id associated with the account.
637
+ * @property {string} extension_id - Unique identifier of courier partner extension.
638
+ * @property {string} account_id - Unique identifier of courier partner scheme
639
+ * and company id combination.
640
+ * @property {string} scheme_id - Unique identifier of courier partner scheme.
641
+ * @property {boolean} is_self_ship - Denotes if the account is of self delivery type.
642
+ * @property {string} stage - Denotes whether the account is in enabled or disabled stage.
643
+ * @property {boolean} is_own_account - Denotes whether it is the seller's own
644
+ * account or not.
645
+ * @property {CourierPartnerSchemeModel} scheme_rules
600
646
  */
601
647
 
602
648
  /**
603
- * @typedef CourierAccountRequestBody
604
- * @property {string} extension_id
605
- * @property {string} [account_id]
606
- * @property {string} scheme_id
607
- * @property {boolean} is_self_ship
608
- * @property {string} stage
609
- * @property {boolean} is_own_account
649
+ * @typedef CourierAccountDetailsBody
650
+ * @property {string} extension_id - Unique identifier of courier partner extension.
651
+ * @property {string} [account_id] - Unique identifier of courier partner scheme
652
+ * and company id combination.
653
+ * @property {string} scheme_id - Unique identifier of courier partner scheme.
654
+ * @property {boolean} is_self_ship - Denotes if the account is of self delivery type.
655
+ * @property {string} stage - Denotes whether the account is in enabled or disabled stage.
656
+ * @property {boolean} is_own_account - Denotes whether it is the seller's own
657
+ * account or not.
610
658
  */
611
659
 
612
660
  /**
613
- * @typedef ErrorResponse
614
- * @property {string} value
615
- * @property {string} message
616
- * @property {string} type
661
+ * @typedef ErrorResult
662
+ * @property {string} value - Fields containing the error.
663
+ * @property {string} message - Description of the error.
664
+ * @property {string} type - Type of the error.
617
665
  */
618
666
 
619
667
  /**
620
- * @typedef CourierPartnerAccountFailureResponse
621
- * @property {boolean} success
622
- * @property {ErrorResponse[]} error
668
+ * @typedef CourierPartnerAccountFailureResult
669
+ * @property {boolean} success - Denotes whether the request is a success or failure.
670
+ * @property {ErrorResult[]} error
623
671
  */
624
672
 
625
673
  /**
@@ -634,33 +682,40 @@ const Joi = require("joi");
634
682
  */
635
683
 
636
684
  /**
637
- * @typedef CourierPartnerRuleCPListResponse
638
- * @property {string} [account_id]
639
- * @property {string} [extension_id]
640
- * @property {boolean} [is_self_ship]
641
- * @property {Object} [scheme_rules]
685
+ * @typedef CourierPartnerRuleCPListResult
686
+ * @property {string} account_id - Unique identifier of courier partner scheme
687
+ * and company id combination.
688
+ * @property {string} extension_id - Unique identifier of courier partner extension.
689
+ * @property {boolean} is_self_ship - Denotes if the account is of self delivery type.
690
+ * @property {Object} [scheme_rules] - Denotes the scheme rules associated with
691
+ * the courier partner account.
642
692
  */
643
693
 
644
694
  /**
645
- * @typedef CourierPartnerRuleResponse
646
- * @property {boolean} [is_active]
647
- * @property {string} [application_id]
648
- * @property {number} [company_id]
649
- * @property {CourierPartnerRuleConditions} [conditions]
650
- * @property {string[]} [sort]
651
- * @property {Object} [created_by]
652
- * @property {string} [id]
653
- * @property {Object} [modified_by]
654
- * @property {string} [modified_on]
655
- * @property {string} [name]
656
- * @property {string} [type]
657
- * @property {CourierPartnerRuleCPListResponse[]} [cp_list]
695
+ * @typedef CourierPartnerRuleResult
696
+ * @property {boolean} is_active - Denotes whether the given courier partner
697
+ * rule is inactive or active.
698
+ * @property {string} application_id - Unique identifier of the sales channel.
699
+ * @property {number} company_id - Unique identifier of the company.
700
+ * @property {CourierPartnerRuleConditions} conditions
701
+ * @property {string[]} sort - Sort Strategy of the courier partners.
702
+ * @property {Object} [created_by] - The Fynd account used to create the courier
703
+ * partner rule.
704
+ * @property {string} id - Unique identifier of the courier partner rule.
705
+ * @property {Object} [modified_by] - The Fynd account used to modify the
706
+ * courier partner rule.
707
+ * @property {string} [modified_on] - The datetime at which courier partner rule
708
+ * is modified.
709
+ * @property {string} name - Name for the courier partner rule.
710
+ * @property {string} type - The type of the rule.
711
+ * @property {CourierPartnerRuleCPListResult[]} [cp_list]
658
712
  */
659
713
 
660
714
  /**
661
715
  * @typedef CourierPartnerList
662
- * @property {string} extension_id
663
- * @property {string} account_id
716
+ * @property {string} extension_id - Unique identifier of courier partner extension.
717
+ * @property {string} account_id - Unique identifier of courier partner scheme
718
+ * and company id combination.
664
719
  */
665
720
 
666
721
  /**
@@ -669,7 +724,7 @@ const Joi = require("joi");
669
724
  * @property {string} [sub_type]
670
725
  * @property {string} [name]
671
726
  * @property {string} [display_name]
672
- * @property {string} [parent_id]
727
+ * @property {string[]} [parent_id]
673
728
  * @property {string[]} [parent_ids]
674
729
  */
675
730
 
@@ -711,98 +766,189 @@ const Joi = require("joi");
711
766
 
712
767
  /**
713
768
  * @typedef CourierPartnerRule
714
- * @property {boolean} is_active
715
- * @property {CourierPartnerList[]} [cp_list]
716
- * @property {string} name
769
+ * @property {boolean} is_active - Denotes whether the given courier partner
770
+ * rule is inactive or active.
771
+ * @property {CourierPartnerList[]} [cp_list] - A list of courier partners.
772
+ * @property {string} name - Name for the courier partner rule.
717
773
  * @property {CourierPartnerRuleConditions} conditions
718
- * @property {string[]} sort
774
+ * @property {string[]} sort - Sort Strategy for the courier partners.
775
+ * @property {string} [type] - Denotes the type of the rule.
719
776
  */
720
777
 
721
778
  /**
722
- * @typedef FailureResponse
779
+ * @typedef FailureResult
723
780
  * @property {boolean} success
724
- * @property {ErrorResponse[]} error
781
+ * @property {ErrorResult[]} error
725
782
  */
726
783
 
727
784
  /**
728
- * @typedef CourierPartnerRulesListResponse
729
- * @property {CourierPartnerRuleResponse[]} items
785
+ * @typedef CourierPartnerRulesListResult
786
+ * @property {CourierPartnerRuleResult[]} items
730
787
  * @property {Page} page
731
788
  */
732
789
 
790
+ /**
791
+ * @typedef ShipmentsArticles
792
+ * @property {number} [item_id] - Unique identifier of the item.
793
+ * @property {number} [category_id] - Unique identifier of the category.
794
+ * @property {number} [brand_id] - Unique identifier of the brand.
795
+ * @property {number} [department_id] - Unique identifier of the department.
796
+ * @property {string[]} [tags] - Tags associated with the item.
797
+ */
798
+
799
+ /**
800
+ * @typedef ShipmentDimension
801
+ * @property {number} height - Height of the shipment in centimeters.
802
+ * @property {number} length - Length of the shipment in centimeters.
803
+ * @property {number} width - Width of the shipment in centimeters.
804
+ */
805
+
806
+ /**
807
+ * @typedef Shipments
808
+ * @property {string} [id] - Unique identifier of the shipment.
809
+ * @property {number} [location_id] - Unique identifier of the selling location.
810
+ * @property {string[]} [location_tags] - Tags associated with the selling location.
811
+ * @property {number} [shipment_weight] - Weight of the shipment.
812
+ * @property {number} [shipment_volumetric_weight] - Volumetric weight of the shipment.
813
+ * @property {number} [shipment_cost] - Total Cost of the shipment.
814
+ * @property {ShipmentDimension} [shipment_dimension]
815
+ * @property {string[]} [courier_partner_schemes] - A List of courier schemes.
816
+ * @property {ShipmentsArticles[]} [articles] - List of articles in the shipment.
817
+ */
818
+
819
+ /**
820
+ * @typedef ShipmentCourierPartnerDetails
821
+ * @property {ShipmentsCourierPartnersServiceability} from_location
822
+ * @property {ShipmentsCourierPartnersServiceability} to_location
823
+ * @property {Shipments[]} [shipments] - List of shipments.
824
+ * @property {string} [journey] - Journey type of the shipment forward or return.
825
+ * @property {string} [payment_mode] - Payment mode opted for the shipment.
826
+ */
827
+
828
+ /**
829
+ * @typedef CourierPartnerPromise
830
+ * @property {string} min - The earliest possible timestamp.
831
+ * @property {string} max - The latest possible timestamp.
832
+ */
833
+
834
+ /**
835
+ * @typedef CourierPartners
836
+ * @property {string} [extension_id] - Unique identifier of courier partner extension.
837
+ * @property {string} [scheme_id] - Unique identifier of courier partner scheme.
838
+ * @property {string} [name] - Name of the courier partner.
839
+ * @property {CourierPartnerPromise} [delivery_promise]
840
+ */
841
+
842
+ /**
843
+ * @typedef ShipmentCourierPartners
844
+ * @property {string} [id] - Unique identifier of the shipment.
845
+ * @property {CourierPartners[]} [courier_partners] - Courier partners of the shipment.
846
+ */
847
+
848
+ /**
849
+ * @typedef ShipmentCourierPartnerResult
850
+ * @property {CourierPartners[]} [courier_partners]
851
+ * @property {ShipmentCourierPartners[]} [shipments]
852
+ */
853
+
854
+ /**
855
+ * @typedef ShipmentsCourierPartnersServiceability
856
+ * @property {string} [pincode] - Postal code or PIN code of the address area.
857
+ * @property {string} [sector_code] - Specifies the sector or district code of
858
+ * the address if applicable.
859
+ * @property {string} [state_code] - Indicates the state or province code of the address.
860
+ * @property {string} [city_code] - Denote the city or municipality code of the address.
861
+ * @property {string} country_code - ISO2 code for the country of the address.
862
+ */
863
+
733
864
  /**
734
865
  * @typedef CompanyConfig
735
- * @property {string[]} rule_ids
736
- * @property {string[]} sort
737
- * @property {boolean} [logistics_as_actual]
866
+ * @property {string[]} rule_ids - A list for courier partner rules.
867
+ * @property {string[]} sort - Sort strategy for the courier partners.
868
+ * @property {string} [logistics_as_actual] - Depicts if the courier partner
869
+ * rule configuration plan is subscribed by the seller for which mode.
870
+ * @property {number} company_id - Unique identifier of the company.
871
+ * @property {string} [application_id] - Unique identifier of the sales channel.
738
872
  */
739
873
 
740
874
  /**
741
875
  * @typedef ZoneConfig
742
- * @property {string} [serviceability_type]
876
+ * @property {string} [serviceability_type] - Serviceability type of the delivery zone.
877
+ * @property {number} [active_count] - Count of active delivery zones associated
878
+ * with the sales channel.
879
+ * @property {number} [total_count] - Count of total delivery zones associated
880
+ * with the sales channel.
743
881
  */
744
882
 
745
883
  /**
746
884
  * @typedef ApplicationConfig
747
- * @property {string[]} [rule_ids]
748
- * @property {string[]} [sort]
885
+ * @property {string[]} [rule_ids] - A list of courier partner rules.
886
+ * @property {string[]} [sort] - Strategy adopted to sort the courier partners.
749
887
  * @property {ZoneConfig} [zones]
750
888
  */
751
889
 
752
890
  /**
753
- * @typedef BulkRegionJobSerializer
754
- * @property {string} [file_path]
755
- * @property {string} country
756
- * @property {string} action
757
- * @property {string} region
891
+ * @typedef BulkRegionJobDetails
892
+ * @property {string} [file_path] - CDN path of the uploaded csv file for bulk import.
893
+ * @property {string} country - Country for which the tat or serviceability is
894
+ * to be imported or exported.
895
+ * @property {string} action - Denotes the import or export action to be performed.
896
+ * @property {string} region - Region of the country for which import or export
897
+ * is triggered.
758
898
  */
759
899
 
760
900
  /**
761
- * @typedef BulkRegionResponseItemData
762
- * @property {string} file_path
763
- * @property {number} [failed]
901
+ * @typedef BulkRegionResultItemData
902
+ * @property {string} [file_path] - CDN path of the file which was used for bulk import.
903
+ * @property {number} [failed] - Count of the failed records.
764
904
  * @property {Object[]} [failed_records]
765
- * @property {string} action
766
- * @property {string} batch_id
767
- * @property {string} country
768
- * @property {number} [success]
769
- * @property {string} region
770
- * @property {string} status
771
- * @property {number} [total]
772
- * @property {string} [error_file_path]
773
- */
774
-
775
- /**
776
- * @typedef BulkRegionResponse
777
- * @property {BulkRegionResponseItemData[]} items
905
+ * @property {string} action - Denotes the import or export action performed.
906
+ * @property {string} batch_id - Unique id to identify the import or export query.
907
+ * @property {string} country - Country for which the import or export action is
908
+ * performed.
909
+ * @property {number} [success] - Denoted if the import or export was successful
910
+ * or failure.
911
+ * @property {string} region - Region of the country for which import or export
912
+ * is triggered.
913
+ * @property {string} status - Current status of the import or export action performed.
914
+ * @property {number} [total] - Count of total records.
915
+ * @property {string} [error_file_path] - Path of the error file.
916
+ */
917
+
918
+ /**
919
+ * @typedef BulkRegionResult
920
+ * @property {BulkRegionResultItemData[]} items
778
921
  * @property {Page} page
779
922
  */
780
923
 
781
924
  /**
782
- * @typedef SelfShipResponse
925
+ * @typedef SelfShipResult
783
926
  * @property {boolean} is_active
784
927
  * @property {number} tat
785
928
  */
786
929
 
787
930
  /**
788
931
  * @typedef ApplicationSelfShipConfig
789
- * @property {Object} [self_ship]
932
+ * @property {SelfShipResult} [self_ship]
790
933
  */
791
934
 
792
935
  /**
793
- * @typedef ApplicationSelfShipConfigResponse
794
- * @property {ServiceabilityErrorResponse} [error]
936
+ * @typedef ApplicationSelfShipConfigResult
937
+ * @property {ServiceabilityErrorResult} [error]
795
938
  * @property {ApplicationSelfShipConfig} [data]
796
939
  * @property {boolean} success
797
940
  */
798
941
 
799
942
  /**
800
943
  * @typedef StoreRuleConfigData
801
- * @property {string[]} [rule_ids]
802
- * @property {string[]} [type_based_priority]
803
- * @property {string[]} [tag_based_priority]
804
- * @property {StorePrioritySchema[]} [store_priority]
805
- * @property {string[]} [sort]
944
+ * @property {string[]} [rule_ids] - List of rule ids which are active in the application.
945
+ * @property {string[]} [type_based_priority] - Priority of the store type to be
946
+ * used in the basic prioritization sorting of stores.
947
+ * @property {string[]} [tag_based_priority] - Priority of the store tags to be
948
+ * used in the basic prioritization sorting of stores.
949
+ * @property {StorePrioritySchema[]} [store_priority] - Priority of explicit
950
+ * stores to be used for sorting of stores.
951
+ * @property {string[]} [sort] - Criteria on which the selected stores should be sorted.
806
952
  */
807
953
 
808
954
  /**
@@ -831,75 +977,87 @@ const Joi = require("joi");
831
977
 
832
978
  /**
833
979
  * @typedef StoreRuleDataSchema
834
- * @property {string} [id]
835
- * @property {string} [name]
836
- * @property {number} [company_id]
837
- * @property {string} [application_id]
838
- * @property {string[]} [type_based_priority]
839
- * @property {string[]} [tag_based_priority]
840
- * @property {StorePrioritySchema[]} [store_priority]
841
- * @property {string[]} [sort]
980
+ * @property {string} [id] - Id of the rule.
981
+ * @property {string} [name] - Name of the rule.
982
+ * @property {number} [company_id] - Company id for which the rule is created.
983
+ * @property {string} [application_id] - Application id for which the rule is created.
984
+ * @property {string[]} [type_based_priority] - Priority of the store type to be
985
+ * used in the basic prioritization sorting of stores.
986
+ * @property {string[]} [tag_based_priority] - Priority of the store tags to be
987
+ * used in the basic prioritization sorting of stores.
988
+ * @property {StorePrioritySchema[]} [store_priority] - Priority of explicit
989
+ * stores to be used for sorting of stores.
990
+ * @property {string[]} [sort] - Criteria on which the selected stores should be sorted.
842
991
  * @property {StoreRuleConditionSchema} [conditions]
843
- * @property {boolean} [is_active]
992
+ * @property {boolean} [is_active] - Denotes whether the rule is active or inactive.
844
993
  */
845
994
 
846
995
  /**
847
996
  * @typedef StorePrioritySchema
848
- * @property {string} [id]
849
- * @property {string} [name]
997
+ * @property {number} [id] - Id of the store.
998
+ * @property {string} [name] - Name of the store.
850
999
  */
851
1000
 
852
1001
  /**
853
- * @typedef GetStoreRulesApiResponse
1002
+ * @typedef GetStoreRulesApiResult
854
1003
  * @property {StoreRuleDataSchema[]} [items]
855
1004
  * @property {Page} [page]
856
1005
  */
857
1006
 
858
1007
  /**
859
- * @typedef CreateStoreRuleRequestSchema
860
- * @property {string} [name]
861
- * @property {boolean} [is_active]
1008
+ * @typedef CreateStoreRuleDetailsSchema
1009
+ * @property {string} [name] - Name of the rule.
1010
+ * @property {boolean} [is_active] - Denotes if the rule is active or not.
862
1011
  * @property {StoreRuleConditionSchema} [conditions]
863
- * @property {string[]} [type_based_priority]
864
- * @property {string[]} [tag_based_priority]
865
- * @property {StorePrioritySchema[]} [store_priority]
866
- * @property {string[]} [sort]
867
- */
868
-
869
- /**
870
- * @typedef StoreRuleResponseSchema
871
- * @property {string} [id]
872
- * @property {string} [name]
873
- * @property {string} [type]
874
- * @property {string[]} [type_based_priority]
875
- * @property {string[]} [tag_based_priority]
876
- * @property {StorePrioritySchema[]} [store_priority]
877
- * @property {string[]} [sort]
1012
+ * @property {string[]} [type_based_priority] - Priority of the store type to be
1013
+ * used in the basic prioritization sorting of stores.
1014
+ * @property {string[]} [tag_based_priority] - Priority of the store tags to be
1015
+ * used in the basic prioritization sorting of stores.
1016
+ * @property {StorePrioritySchema[]} [store_priority] - Priority of explicit
1017
+ * stores to be used for sorting of stores.
1018
+ * @property {string[]} [sort] - Criteria on which the selected stores should be sorted.
1019
+ */
1020
+
1021
+ /**
1022
+ * @typedef StoreRuleResultSchema
1023
+ * @property {string} [id] - Id of the rule created.
1024
+ * @property {string} [name] - Name of the rule created.
1025
+ * @property {string} [type] - Type of the rule created.
1026
+ * @property {string[]} [type_based_priority] - Priority of the store type to be
1027
+ * used in the rule for sorting of stores.
1028
+ * @property {string[]} [tag_based_priority] - Priority of the store tags to be
1029
+ * used in the rule for sorting of stores.
1030
+ * @property {StorePrioritySchema[]} [store_priority] - Priority of explicit
1031
+ * stores to be used for sorting of stores.
1032
+ * @property {string[]} [sort] - Criteria on which the selected stores should be sorted.
878
1033
  * @property {StoreRuleConditionSchema} [conditions]
879
- * @property {boolean} [is_active]
1034
+ * @property {boolean} [is_active] - Denotes if the rule is active or inactive.
880
1035
  */
881
1036
 
882
1037
  /**
883
- * @typedef StoreRuleUpdateResponseSchema
884
- * @property {string} [id]
885
- * @property {string} [name]
886
- * @property {string} [type]
887
- * @property {string[]} [type_based_priority]
888
- * @property {string[]} [tag_based_priority]
889
- * @property {StorePrioritySchema[]} [store_priority]
890
- * @property {string[]} [sort]
1038
+ * @typedef StoreRuleUpdateResultSchema
1039
+ * @property {string} [id] - Id of the rule created.
1040
+ * @property {string} [name] - Name of the rule created.
1041
+ * @property {string} [type] - Type of the rule created.
1042
+ * @property {string[]} [type_based_priority] - Priority of the store type to be
1043
+ * used in the rule for sorting of stores.
1044
+ * @property {string[]} [tag_based_priority] - Priority of the store tags to be
1045
+ * used in the rule for sorting of stores.
1046
+ * @property {StorePrioritySchema[]} [store_priority] - Priority of explicit
1047
+ * stores to be used for sorting of stores.
1048
+ * @property {string[]} [sort] - Criteria on which the selected stores should be sorted.
891
1049
  * @property {StoreRuleConditionSchema} [conditions]
892
- * @property {boolean} [is_active]
893
- * @property {number} [company_id]
894
- * @property {string} [application_id]
1050
+ * @property {boolean} [is_active] - Denotes if the rule is active or inactive.
1051
+ * @property {number} [company_id] - Company id for which the rule is created.
1052
+ * @property {string} [application_id] - Application id for which the rule is created.
895
1053
  */
896
1054
 
897
1055
  /**
898
1056
  * @typedef ServiceabilityModel
899
1057
  * @property {number} lm_cod_limit
900
1058
  * @property {boolean} is_qc
901
- * @property {string} pickup_cutoff
902
- * @property {string} route_code
1059
+ * @property {string} [pickup_cutoff]
1060
+ * @property {string} [route_code]
903
1061
  * @property {boolean} is_first_mile
904
1062
  * @property {boolean} is_return
905
1063
  * @property {boolean} is_installation
@@ -930,102 +1088,126 @@ const Joi = require("joi");
930
1088
 
931
1089
  /**
932
1090
  * @typedef CourierPartnerSchemeModel
933
- * @property {string} extension_id
934
- * @property {string} scheme_id
1091
+ * @property {string} [name] - Name of the scheme.
1092
+ * @property {string} extension_id - Unique identifier of courier partner extension.
1093
+ * @property {string} scheme_id - Unique identifier of courier partner scheme.
1094
+ * @property {ArithmeticOperations} [volumetric_weight]
935
1095
  * @property {ArithmeticOperations} weight
936
- * @property {string} transport_type
937
- * @property {string} region
938
- * @property {string} delivery_type
939
- * @property {string[]} payment_mode
940
- * @property {string} stage
1096
+ * @property {string} transport_type - Mode of transport associated with the
1097
+ * courier partner scheme.
1098
+ * @property {string} region - Serviceable region associated with the courier
1099
+ * partner scheme.
1100
+ * @property {string} delivery_type - Type of delivery associated with the
1101
+ * courier partner scheme.
1102
+ * @property {string[]} payment_mode - Mode of payment associated with the
1103
+ * courier partner scheme.
1104
+ * @property {string} stage - Denotes whether the courier partner scheme is in
1105
+ * enabled or disabled stage.
941
1106
  * @property {CourierPartnerSchemeFeatures} feature
942
1107
  */
943
1108
 
944
1109
  /**
945
- * @typedef CourierAccountResponse
946
- * @property {string} account_id
947
- * @property {string} scheme_id
948
- * @property {boolean} is_self_ship
949
- * @property {string} stage
950
- * @property {boolean} is_own_account
951
- * @property {CourierPartnerSchemeModel} scheme_rules
1110
+ * @typedef CourierAccountResult
1111
+ * @property {number} company_id - Company id associated with the account.
1112
+ * @property {string} [extension_id] - Unique identifier of courier partner extension.
1113
+ * @property {string} account_id - Unique identifier of courier partner scheme
1114
+ * and company id combination.
1115
+ * @property {string} scheme_id - Unique identifier of courier partner scheme.
1116
+ * @property {boolean} is_self_ship - Denotes if the account is of self delivery type.
1117
+ * @property {string} stage - Denotes whether the account is in enabled or disabled stage.
1118
+ * @property {boolean} is_own_account - Denotes whether it is the seller's own
1119
+ * account or not.
1120
+ * @property {CourierPartnerSchemeModel} [scheme_rules]
952
1121
  */
953
1122
 
954
1123
  /**
955
- * @typedef CompanyCourierPartnerAccountListResponse
956
- * @property {CourierAccountResponse[]} items
1124
+ * @typedef CompanyCourierPartnerAccountListResult
1125
+ * @property {CourierAccountResult[]} items
957
1126
  * @property {Page} page
958
1127
  */
959
1128
 
960
1129
  /**
961
1130
  * @typedef PackageMaterial
962
- * @property {string} name
963
- * @property {number} width
964
- * @property {number} height
965
- * @property {number} length
966
- * @property {PackageMaterialRule[]} [rules]
967
- * @property {number[]} store_ids
968
- * @property {number} weight
969
- * @property {number} error_rate
970
- * @property {string} package_type
971
- * @property {string} size
972
- * @property {string[]} [media]
973
- * @property {Channel[]} channels
974
- * @property {boolean} [track_inventory]
975
- * @property {string} status
976
- * @property {number} [max_weight]
977
- * @property {number} [package_vol_weight]
978
- * @property {boolean} [auto_calculate]
979
- */
980
-
981
- /**
982
- * @typedef PackageMaterialResponse
983
- * @property {string} name
984
- * @property {string} [id]
985
- * @property {number} [item_id]
986
- * @property {number} width
987
- * @property {number} height
988
- * @property {number} length
989
- * @property {PackageMaterialRule[]} [rules]
990
- * @property {number[]} store_ids
991
- * @property {number} weight
992
- * @property {number} error_rate
993
- * @property {string} package_type
994
- * @property {string} size
995
- * @property {string[]} [media]
996
- * @property {Channel[]} channels
997
- * @property {boolean} [track_inventory]
998
- * @property {string} status
999
- * @property {number} [max_weight]
1000
- * @property {number} [package_vol_weight]
1001
- * @property {boolean} [auto_calculate]
1131
+ * @property {string} name - Name of the packaging material.
1132
+ * @property {number} width - Width of the packaging material dimentions in centimeter.
1133
+ * @property {number} height - Height of the packaging material dimentions in centimeter.
1134
+ * @property {number} length - Length of the packaging material dimentions in centimeter.
1135
+ * @property {PackageMaterialRule[]} [rules] - Product group rules associated
1136
+ * with the packaging.
1137
+ * @property {number[]} store_ids - Store ids where the packaging is avaiable.
1138
+ * @property {number} weight - Package's weight in gram.
1139
+ * @property {number} error_rate - Error Rate associated with the packaging dimensions.
1140
+ * @property {string} package_type - Type of package material.
1141
+ * @property {string} size - Physical size of the packaging.
1142
+ * @property {string[]} [media] - Image urls associated with the packaging material.
1143
+ * @property {Channel[]} channels - Sales channel where packaging is applicable.
1144
+ * @property {boolean} [track_inventory] - Denotes if the track of the inventory
1145
+ * should be kept.
1146
+ * @property {string} status - Current status of the packaging material, if it
1147
+ * is active or inactive.
1148
+ * @property {number} [max_weight] - Maximum weight holding capacity.
1149
+ * @property {number} [package_vol_weight] - Volumetric weight that a packaging
1150
+ * material can carry.
1151
+ * @property {boolean} [auto_calculate] - Denotes whether the volumetric weight
1152
+ * should be auto calculated or not.
1153
+ */
1154
+
1155
+ /**
1156
+ * @typedef PackageMaterialResult
1157
+ * @property {string} name - Name of the packaging material.
1158
+ * @property {string} [id] - Id of the packaging material.
1159
+ * @property {number} [item_id] - Unique identifier of an item associated with
1160
+ * the packaging material.
1161
+ * @property {number} [company_id] - Company id associated with the packaging material.
1162
+ * @property {number} width - Width of the packaging material dimentions in centimeter.
1163
+ * @property {number} height - Height of the packaging material dimentions in centimeter.
1164
+ * @property {number} length - Length of the packaging material dimentions in centimeter.
1165
+ * @property {PackageMaterialRule[]} [rules] - Product group rules associated
1166
+ * with the packaging.
1167
+ * @property {number[]} store_ids - Store ids where the packaging is avaiable.
1168
+ * @property {number} weight - Package's weight in gram.
1169
+ * @property {number} error_rate - Error Rate associated with the packaging dimensions.
1170
+ * @property {string} package_type - Type of package material.
1171
+ * @property {string} size - Physical size of the packaging.
1172
+ * @property {string[]} [media] - Image urls associated with the packaging material.
1173
+ * @property {Channel[]} channels - Sales channel where packaging is applicable.
1174
+ * @property {boolean} [track_inventory] - Denotes if the track of the inventory
1175
+ * should be kept.
1176
+ * @property {string} status - Current status of the packaging material, if it
1177
+ * is active or inactive.
1178
+ * @property {number} [max_weight] - Maximum weight holding capacity.
1179
+ * @property {number} [package_vol_weight] - Volumetric weight that a packaging
1180
+ * material can carry.
1181
+ * @property {boolean} [auto_calculate] - Denotes whether the volumetric weight
1182
+ * should be auto calculated or not.
1002
1183
  */
1003
1184
 
1004
1185
  /**
1005
1186
  * @typedef PackageMaterialRule
1006
- * @property {string} [rule_id]
1187
+ * @property {string} [rule_id] - Unique identifier of the package rule.
1007
1188
  * @property {PackageMaterialRuleQuantity} [quantity]
1008
- * @property {number} [weight]
1189
+ * @property {number} [weight] - Volumetric weight in gram.
1009
1190
  */
1010
1191
 
1011
1192
  /**
1012
1193
  * @typedef PackageRule
1013
- * @property {string} name
1014
- * @property {number} company_id
1015
- * @property {string} type
1016
- * @property {boolean} [is_active]
1194
+ * @property {string} name - Name of the package rule.
1195
+ * @property {number} company_id - Unique identifier of the company.
1196
+ * @property {string} type - Type of the rule.
1197
+ * @property {boolean} [is_active] - Denotes if the rule is active or inactive.
1017
1198
  * @property {PackageRuleProductTag} [product_tag]
1018
1199
  * @property {PackageRuleProduct} [product_id]
1019
1200
  * @property {PackageRuleCategory} [category_id]
1020
1201
  */
1021
1202
 
1022
1203
  /**
1023
- * @typedef PackageRuleResponse
1024
- * @property {string} [id]
1025
- * @property {string} name
1026
- * @property {number} company_id
1027
- * @property {string} type
1028
- * @property {boolean} [is_active]
1204
+ * @typedef PackageRuleResult
1205
+ * @property {string} [id] - Unique id of a package rule.
1206
+ * @property {string} name - Name of a package rule.
1207
+ * @property {number} company_id - Unique identifier of a company associated
1208
+ * with the package rule.
1209
+ * @property {string} type - Type of the rule created.
1210
+ * @property {boolean} [is_active] - Denotes if the rule is active or inactive.
1029
1211
  * @property {PackageRuleProductTag} [product_tag]
1030
1212
  * @property {PackageRuleProduct} [product_id]
1031
1213
  * @property {PackageRuleCategory} [category_id]
@@ -1033,19 +1215,19 @@ const Joi = require("joi");
1033
1215
 
1034
1216
  /**
1035
1217
  * @typedef Channel
1036
- * @property {string} [type]
1037
- * @property {string} [id]
1218
+ * @property {string} [type] - Type of the channel.
1219
+ * @property {string} [id] - Unique identifier of the channel.
1038
1220
  */
1039
1221
 
1040
1222
  /**
1041
1223
  * @typedef PackageMaterialRuleList
1042
- * @property {PackageRuleResponse} [items]
1224
+ * @property {PackageRuleResult} [items]
1043
1225
  * @property {Page} [page]
1044
1226
  */
1045
1227
 
1046
1228
  /**
1047
1229
  * @typedef PackageMaterialList
1048
- * @property {PackageMaterialResponse} [items]
1230
+ * @property {PackageMaterialResult} [items]
1049
1231
  * @property {Page} [page]
1050
1232
  */
1051
1233
 
@@ -1066,19 +1248,20 @@ const Joi = require("joi");
1066
1248
 
1067
1249
  /**
1068
1250
  * @typedef PackageMaterialRuleQuantity
1069
- * @property {number} [min]
1070
- * @property {number} [max]
1251
+ * @property {number} [min] - Minimum product's quantity that a packaging can contain.
1252
+ * @property {number} [max] - Maximum product's quantity that a packaging can contain.
1071
1253
  */
1072
1254
 
1073
1255
  /**
1074
- * @typedef RulePriorityRequest
1075
- * @property {string} rule_id
1076
- * @property {number} priority
1256
+ * @typedef RulePriorityDetails
1257
+ * @property {string} rule_id - Rule id whose priority needs to be changed.
1258
+ * @property {number} priority - New priority of the rule.
1077
1259
  */
1078
1260
 
1079
1261
  /**
1080
- * @typedef RulePriorityResponse
1081
- * @property {boolean} [success]
1262
+ * @typedef RulePriorityResult
1263
+ * @property {boolean} [success] - Denotes if the priority of the rule is
1264
+ * changes successfully or not.
1082
1265
  */
1083
1266
 
1084
1267
  /**
@@ -1109,7 +1292,7 @@ const Joi = require("joi");
1109
1292
  * @typedef OptimalLocationsArticles
1110
1293
  * @property {number} item_id
1111
1294
  * @property {string} size
1112
- * @property {string} quantity
1295
+ * @property {number} quantity
1113
1296
  * @property {string} [group_id]
1114
1297
  * @property {boolean} [is_primary_item]
1115
1298
  * @property {Object} [meta]
@@ -1120,16 +1303,16 @@ const Joi = require("joi");
1120
1303
  */
1121
1304
 
1122
1305
  /**
1123
- * @typedef OptimlLocationsRequestSchema
1306
+ * @typedef OptimlLocationsDetailsSchema
1124
1307
  * @property {string} channel_id
1125
1308
  * @property {string} channel_type
1126
1309
  * @property {string} [channel_identifier]
1127
1310
  * @property {LocationDetailsServiceability} to_serviceability
1128
- * @property {OptimalLocationsArticles} [article]
1311
+ * @property {OptimalLocationsArticles[]} [articles]
1129
1312
  */
1130
1313
 
1131
1314
  /**
1132
- * @typedef OptimalLocationArticlesResponse
1315
+ * @typedef OptimalLocationArticlesResult
1133
1316
  * @property {number} item_id
1134
1317
  * @property {string} size
1135
1318
  * @property {number} quantity
@@ -1147,27 +1330,38 @@ const Joi = require("joi");
1147
1330
  */
1148
1331
 
1149
1332
  /**
1150
- * @typedef OptimalLocationAssignedStoresResponse
1333
+ * @typedef OptimalLocationAssignedStoresResult
1151
1334
  * @property {number} store_id
1152
- * @property {OptimalLocationArticlesResponse[]} articles
1335
+ * @property {OptimalLocationArticlesResult[]} articles
1153
1336
  */
1154
1337
 
1155
1338
  /**
1156
- * @typedef OptimalLocationsResponse
1157
- * @property {OptimalLocationAssignedStoresResponse[]} assigned_stores
1158
- * @property {ErrorResponse[]} [faulty_articles]
1339
+ * @typedef OptimalLocationsResult
1340
+ * @property {OptimalLocationAssignedStoresResult[]} assigned_stores
1341
+ * @property {ErrorResult[]} [faulty_articles]
1342
+ */
1343
+
1344
+ /**
1345
+ * @typedef ValidationError
1346
+ * @property {string} message - A brief description of the error encountered.
1347
+ * @property {string} field - The field in the request that caused the error.
1348
+ */
1349
+
1350
+ /**
1351
+ * @typedef StandardError
1352
+ * @property {string} message - A brief description of the error.
1159
1353
  */
1160
1354
 
1161
1355
  class ServiceabilityPlatformModel {
1162
- /** @returns {UpdateZoneConfigRequest} */
1163
- static UpdateZoneConfigRequest() {
1356
+ /** @returns {UpdateZoneConfigDetails} */
1357
+ static UpdateZoneConfigDetails() {
1164
1358
  return Joi.object({
1165
1359
  serviceability_type: Joi.string().allow(""),
1166
1360
  });
1167
1361
  }
1168
1362
 
1169
- /** @returns {ServiceabilityErrorResponse} */
1170
- static ServiceabilityErrorResponse() {
1363
+ /** @returns {ServiceabilityErrorResult} */
1364
+ static ServiceabilityErrorResult() {
1171
1365
  return Joi.object({
1172
1366
  message: Joi.string().allow("").required(),
1173
1367
  value: Joi.string().allow("").required(),
@@ -1184,17 +1378,17 @@ class ServiceabilityPlatformModel {
1184
1378
  });
1185
1379
  }
1186
1380
 
1187
- /** @returns {ApplicationServiceabilityConfigResponse} */
1188
- static ApplicationServiceabilityConfigResponse() {
1381
+ /** @returns {ApplicationServiceabilityConfigResult} */
1382
+ static ApplicationServiceabilityConfigResult() {
1189
1383
  return Joi.object({
1190
- error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
1384
+ error: ServiceabilityPlatformModel.ServiceabilityErrorResult(),
1191
1385
  data: ServiceabilityPlatformModel.ApplicationServiceabilityConfig(),
1192
1386
  success: Joi.boolean().required(),
1193
1387
  });
1194
1388
  }
1195
1389
 
1196
- /** @returns {EntityRegionView_Request} */
1197
- static EntityRegionView_Request() {
1390
+ /** @returns {EntityRegionView_Details} */
1391
+ static EntityRegionView_Details() {
1198
1392
  return Joi.object({
1199
1393
  sub_type: Joi.array().items(Joi.string().allow("")).required(),
1200
1394
  parent_id: Joi.array().items(Joi.string().allow("")),
@@ -1221,8 +1415,8 @@ class ServiceabilityPlatformModel {
1221
1415
  });
1222
1416
  }
1223
1417
 
1224
- /** @returns {getAppRegionZonesResponse} */
1225
- static getAppRegionZonesResponse() {
1418
+ /** @returns {getAppRegionZonesResult} */
1419
+ static getAppRegionZonesResult() {
1226
1420
  return Joi.object({
1227
1421
  page: Joi.array()
1228
1422
  .items(ServiceabilityPlatformModel.PageSchema())
@@ -1253,8 +1447,8 @@ class ServiceabilityPlatformModel {
1253
1447
  });
1254
1448
  }
1255
1449
 
1256
- /** @returns {EntityRegionView_Response} */
1257
- static EntityRegionView_Response() {
1450
+ /** @returns {EntityRegionView_Result} */
1451
+ static EntityRegionView_Result() {
1258
1452
  return Joi.object({
1259
1453
  error: ServiceabilityPlatformModel.EntityRegionView_Error().required(),
1260
1454
  page: ServiceabilityPlatformModel.EntityRegionView_page().required(),
@@ -1318,8 +1512,8 @@ class ServiceabilityPlatformModel {
1318
1512
  });
1319
1513
  }
1320
1514
 
1321
- /** @returns {ListViewResponse} */
1322
- static ListViewResponse() {
1515
+ /** @returns {ListViewResult} */
1516
+ static ListViewResult() {
1323
1517
  return Joi.object({
1324
1518
  page: ServiceabilityPlatformModel.ZoneDataItem().required(),
1325
1519
  items: Joi.array()
@@ -1339,8 +1533,8 @@ class ServiceabilityPlatformModel {
1339
1533
  });
1340
1534
  }
1341
1535
 
1342
- /** @returns {CompanyStoreView_Response} */
1343
- static CompanyStoreView_Response() {
1536
+ /** @returns {CompanyStoreView_Result} */
1537
+ static CompanyStoreView_Result() {
1344
1538
  return Joi.object({
1345
1539
  page: Joi.array()
1346
1540
  .items(ServiceabilityPlatformModel.CompanyStoreView_PageItems())
@@ -1365,12 +1559,32 @@ class ServiceabilityPlatformModel {
1365
1559
  });
1366
1560
  }
1367
1561
 
1562
+ /** @returns {ZoneMappingDetailType} */
1563
+ static ZoneMappingDetailType() {
1564
+ return Joi.object({
1565
+ country: Joi.string().allow("").required(),
1566
+ regions: Joi.array().items(
1567
+ ServiceabilityPlatformModel.ZoneMappingRegions()
1568
+ ),
1569
+ });
1570
+ }
1571
+
1368
1572
  /** @returns {ZoneMappingType} */
1369
1573
  static ZoneMappingType() {
1370
1574
  return Joi.object({
1371
1575
  country: Joi.string().allow("").required(),
1372
- pincode: Joi.array().items(Joi.string().allow("")),
1373
- state: Joi.array().items(Joi.string().allow("")),
1576
+ regions: Joi.array().items(Joi.string().allow("")).required(),
1577
+ });
1578
+ }
1579
+
1580
+ /** @returns {ZoneMappingRegions} */
1581
+ static ZoneMappingRegions() {
1582
+ return Joi.object({
1583
+ display_name: Joi.string().allow(""),
1584
+ parent_id: Joi.array().items(Joi.string().allow("")),
1585
+ parent_uid: Joi.string().allow(""),
1586
+ sub_type: Joi.string().allow(""),
1587
+ uid: Joi.string().allow(""),
1374
1588
  });
1375
1589
  }
1376
1590
 
@@ -1391,20 +1605,19 @@ class ServiceabilityPlatformModel {
1391
1605
  mapping: Joi.array()
1392
1606
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1393
1607
  .required(),
1394
- assignment_preference: Joi.string().allow(""),
1395
1608
  });
1396
1609
  }
1397
1610
 
1398
- /** @returns {ZoneUpdateRequest} */
1399
- static ZoneUpdateRequest() {
1611
+ /** @returns {ZoneUpdateDetails} */
1612
+ static ZoneUpdateDetails() {
1400
1613
  return Joi.object({
1401
1614
  identifier: Joi.string().allow("").required(),
1402
1615
  data: ServiceabilityPlatformModel.UpdateZoneData().required(),
1403
1616
  });
1404
1617
  }
1405
1618
 
1406
- /** @returns {ZoneSuccessResponse} */
1407
- static ZoneSuccessResponse() {
1619
+ /** @returns {ZoneSuccessResult} */
1620
+ static ZoneSuccessResult() {
1408
1621
  return Joi.object({
1409
1622
  status_code: Joi.number().required(),
1410
1623
  success: Joi.boolean().required(),
@@ -1433,8 +1646,8 @@ class ServiceabilityPlatformModel {
1433
1646
  });
1434
1647
  }
1435
1648
 
1436
- /** @returns {GetSingleZoneDataViewResponse} */
1437
- static GetSingleZoneDataViewResponse() {
1649
+ /** @returns {GetSingleZoneDataViewResult} */
1650
+ static GetSingleZoneDataViewResult() {
1438
1651
  return Joi.object({
1439
1652
  data: ServiceabilityPlatformModel.GetZoneDataViewItems().required(),
1440
1653
  });
@@ -1455,10 +1668,9 @@ class ServiceabilityPlatformModel {
1455
1668
  store_ids: Joi.array().items(Joi.number()).required(),
1456
1669
  region_type: Joi.string().allow("").required(),
1457
1670
  mapping: Joi.array()
1458
- .items(ServiceabilityPlatformModel.ZoneMappingType())
1671
+ .items(ServiceabilityPlatformModel.ZoneMappingDetailType())
1459
1672
  .required(),
1460
- assignment_preference: Joi.string().allow(""),
1461
- stores_count: Joi.number().required(),
1673
+ stores_count: Joi.number(),
1462
1674
  });
1463
1675
  }
1464
1676
 
@@ -1477,21 +1689,21 @@ class ServiceabilityPlatformModel {
1477
1689
  mapping: Joi.array()
1478
1690
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1479
1691
  .required(),
1480
- assignment_preference: Joi.string().allow(""),
1692
+ product: ServiceabilityPlatformModel.ZoneProductTypes(),
1481
1693
  });
1482
1694
  }
1483
1695
 
1484
- /** @returns {ZoneResponse} */
1485
- static ZoneResponse() {
1696
+ /** @returns {ZoneResult} */
1697
+ static ZoneResult() {
1486
1698
  return Joi.object({
1487
- status_code: Joi.number().required(),
1699
+ status_code: Joi.number(),
1488
1700
  zone_id: Joi.string().allow("").required(),
1489
1701
  success: Joi.boolean().required(),
1490
1702
  });
1491
1703
  }
1492
1704
 
1493
- /** @returns {GetZoneFromPincodeViewRequest} */
1494
- static GetZoneFromPincodeViewRequest() {
1705
+ /** @returns {GetZoneFromPincodeViewDetails} */
1706
+ static GetZoneFromPincodeViewDetails() {
1495
1707
  return Joi.object({
1496
1708
  country: Joi.string().allow("").required(),
1497
1709
  pincode: Joi.string().allow("").required(),
@@ -1508,20 +1720,19 @@ class ServiceabilityPlatformModel {
1508
1720
  slug: Joi.string().allow("").required(),
1509
1721
  is_active: Joi.boolean().required(),
1510
1722
  store_ids: Joi.array().items(Joi.number()).required(),
1511
- assignment_preference: Joi.string().allow("").required(),
1512
1723
  });
1513
1724
  }
1514
1725
 
1515
- /** @returns {GetZoneFromPincodeViewResponse} */
1516
- static GetZoneFromPincodeViewResponse() {
1726
+ /** @returns {GetZoneFromPincodeViewResult} */
1727
+ static GetZoneFromPincodeViewResult() {
1517
1728
  return Joi.object({
1518
1729
  serviceability_type: Joi.string().allow("").required(),
1519
1730
  zones: Joi.array().items(ServiceabilityPlatformModel.Zone()).required(),
1520
1731
  });
1521
1732
  }
1522
1733
 
1523
- /** @returns {GetZoneFromApplicationIdViewResponse} */
1524
- static GetZoneFromApplicationIdViewResponse() {
1734
+ /** @returns {GetZoneFromApplicationIdViewResult} */
1735
+ static GetZoneFromApplicationIdViewResult() {
1525
1736
  return Joi.object({
1526
1737
  page: Joi.array()
1527
1738
  .items(ServiceabilityPlatformModel.ZoneDataItem())
@@ -1532,8 +1743,8 @@ class ServiceabilityPlatformModel {
1532
1743
  });
1533
1744
  }
1534
1745
 
1535
- /** @returns {ServiceabilityPageResponse} */
1536
- static ServiceabilityPageResponse() {
1746
+ /** @returns {ServiceabilityPageResult} */
1747
+ static ServiceabilityPageResult() {
1537
1748
  return Joi.object({
1538
1749
  type: Joi.string().allow(""),
1539
1750
  has_next: Joi.boolean(),
@@ -1551,8 +1762,8 @@ class ServiceabilityPlatformModel {
1551
1762
  });
1552
1763
  }
1553
1764
 
1554
- /** @returns {ManagerResponse} */
1555
- static ManagerResponse() {
1765
+ /** @returns {ManagerResult} */
1766
+ static ManagerResult() {
1556
1767
  return Joi.object({
1557
1768
  email: Joi.string().allow(""),
1558
1769
  mobile_no: ServiceabilityPlatformModel.MobileNo(),
@@ -1560,39 +1771,39 @@ class ServiceabilityPlatformModel {
1560
1771
  });
1561
1772
  }
1562
1773
 
1563
- /** @returns {ModifiedByResponse} */
1564
- static ModifiedByResponse() {
1774
+ /** @returns {ModifiedByResult} */
1775
+ static ModifiedByResult() {
1565
1776
  return Joi.object({
1566
1777
  username: Joi.string().allow(""),
1567
1778
  user_id: Joi.string().allow(""),
1568
1779
  });
1569
1780
  }
1570
1781
 
1571
- /** @returns {IntegrationTypeResponse} */
1572
- static IntegrationTypeResponse() {
1782
+ /** @returns {IntegrationTypeResult} */
1783
+ static IntegrationTypeResult() {
1573
1784
  return Joi.object({
1574
1785
  inventory: Joi.string().allow(""),
1575
1786
  order: Joi.string().allow(""),
1576
1787
  });
1577
1788
  }
1578
1789
 
1579
- /** @returns {ProductReturnConfigResponse} */
1580
- static ProductReturnConfigResponse() {
1790
+ /** @returns {ProductReturnConfigResult} */
1791
+ static ProductReturnConfigResult() {
1581
1792
  return Joi.object({
1582
1793
  on_same_store: Joi.boolean(),
1583
1794
  });
1584
1795
  }
1585
1796
 
1586
- /** @returns {ContactNumberResponse} */
1587
- static ContactNumberResponse() {
1797
+ /** @returns {ContactNumberResult} */
1798
+ static ContactNumberResult() {
1588
1799
  return Joi.object({
1589
1800
  number: Joi.string().allow(""),
1590
1801
  country_code: Joi.number(),
1591
1802
  });
1592
1803
  }
1593
1804
 
1594
- /** @returns {AddressResponse} */
1595
- static AddressResponse() {
1805
+ /** @returns {AddressResult} */
1806
+ static AddressResult() {
1596
1807
  return Joi.object({
1597
1808
  city: Joi.string().allow(""),
1598
1809
  address1: Joi.string().allow(""),
@@ -1606,38 +1817,38 @@ class ServiceabilityPlatformModel {
1606
1817
  });
1607
1818
  }
1608
1819
 
1609
- /** @returns {CreatedByResponse} */
1610
- static CreatedByResponse() {
1820
+ /** @returns {CreatedByResult} */
1821
+ static CreatedByResult() {
1611
1822
  return Joi.object({
1612
1823
  username: Joi.string().allow(""),
1613
1824
  user_id: Joi.string().allow(""),
1614
1825
  });
1615
1826
  }
1616
1827
 
1617
- /** @returns {EwayBillResponse} */
1618
- static EwayBillResponse() {
1828
+ /** @returns {EwayBillResult} */
1829
+ static EwayBillResult() {
1619
1830
  return Joi.object({
1620
1831
  enabled: Joi.boolean(),
1621
1832
  });
1622
1833
  }
1623
1834
 
1624
- /** @returns {EinvoiceResponse} */
1625
- static EinvoiceResponse() {
1835
+ /** @returns {EinvoiceResult} */
1836
+ static EinvoiceResult() {
1626
1837
  return Joi.object({
1627
1838
  enabled: Joi.boolean(),
1628
1839
  });
1629
1840
  }
1630
1841
 
1631
- /** @returns {GstCredentialsResponse} */
1632
- static GstCredentialsResponse() {
1842
+ /** @returns {GstCredentialsResult} */
1843
+ static GstCredentialsResult() {
1633
1844
  return Joi.object({
1634
- e_waybill: ServiceabilityPlatformModel.EwayBillResponse(),
1635
- e_invoice: ServiceabilityPlatformModel.EinvoiceResponse(),
1845
+ e_waybill: ServiceabilityPlatformModel.EwayBillResult(),
1846
+ e_invoice: ServiceabilityPlatformModel.EinvoiceResult(),
1636
1847
  });
1637
1848
  }
1638
1849
 
1639
- /** @returns {WarningsResponse} */
1640
- static WarningsResponse() {
1850
+ /** @returns {WarningsResult} */
1851
+ static WarningsResult() {
1641
1852
  return Joi.object({
1642
1853
  store_address: Joi.string().allow(""),
1643
1854
  });
@@ -1651,8 +1862,8 @@ class ServiceabilityPlatformModel {
1651
1862
  });
1652
1863
  }
1653
1864
 
1654
- /** @returns {TimmingResponse} */
1655
- static TimmingResponse() {
1865
+ /** @returns {TimmingResult} */
1866
+ static TimmingResult() {
1656
1867
  return Joi.object({
1657
1868
  open: Joi.boolean(),
1658
1869
  weekday: Joi.string().allow(""),
@@ -1661,8 +1872,8 @@ class ServiceabilityPlatformModel {
1661
1872
  });
1662
1873
  }
1663
1874
 
1664
- /** @returns {DocumentsResponse} */
1665
- static DocumentsResponse() {
1875
+ /** @returns {DocumentsResult} */
1876
+ static DocumentsResult() {
1666
1877
  return Joi.object({
1667
1878
  legal_name: Joi.string().allow(""),
1668
1879
  value: Joi.string().allow(""),
@@ -1687,57 +1898,57 @@ class ServiceabilityPlatformModel {
1687
1898
  });
1688
1899
  }
1689
1900
 
1690
- /** @returns {LogisticsResponse} */
1691
- static LogisticsResponse() {
1901
+ /** @returns {LogisticsResult} */
1902
+ static LogisticsResult() {
1692
1903
  return Joi.object({
1693
1904
  override: Joi.boolean(),
1694
1905
  dp: ServiceabilityPlatformModel.Dp(),
1695
1906
  });
1696
1907
  }
1697
1908
 
1698
- /** @returns {ItemResponse} */
1699
- static ItemResponse() {
1909
+ /** @returns {ItemResult} */
1910
+ static ItemResult() {
1700
1911
  return Joi.object({
1701
1912
  created_on: Joi.string().allow(""),
1702
- manager: ServiceabilityPlatformModel.ManagerResponse(),
1703
- modified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
1704
- integration_type: ServiceabilityPlatformModel.IntegrationTypeResponse(),
1913
+ manager: ServiceabilityPlatformModel.ManagerResult(),
1914
+ modified_by: ServiceabilityPlatformModel.ModifiedByResult(),
1915
+ integration_type: ServiceabilityPlatformModel.IntegrationTypeResult(),
1705
1916
  verified_on: Joi.string().allow(""),
1706
- product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResponse(),
1917
+ product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResult(),
1707
1918
  contact_numbers: Joi.array().items(
1708
- ServiceabilityPlatformModel.ContactNumberResponse()
1919
+ ServiceabilityPlatformModel.ContactNumberResult()
1709
1920
  ),
1710
- verified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
1921
+ verified_by: ServiceabilityPlatformModel.ModifiedByResult(),
1711
1922
  stage: Joi.string().allow(""),
1712
- address: ServiceabilityPlatformModel.AddressResponse(),
1923
+ address: ServiceabilityPlatformModel.AddressResult(),
1713
1924
  modified_on: Joi.string().allow(""),
1714
- created_by: ServiceabilityPlatformModel.CreatedByResponse(),
1715
- gst_credentials: ServiceabilityPlatformModel.GstCredentialsResponse(),
1925
+ created_by: ServiceabilityPlatformModel.CreatedByResult(),
1926
+ gst_credentials: ServiceabilityPlatformModel.GstCredentialsResult(),
1716
1927
  display_name: Joi.string().allow(""),
1717
1928
  company_id: Joi.number(),
1718
1929
  uid: Joi.number(),
1719
- _custom_json: Joi.any(),
1930
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1720
1931
  code: Joi.string().allow(""),
1721
- warnings: ServiceabilityPlatformModel.WarningsResponse(),
1932
+ warnings: ServiceabilityPlatformModel.WarningsResult(),
1722
1933
  name: Joi.string().allow(""),
1723
- timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResponse()),
1934
+ timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResult()),
1724
1935
  documents: Joi.array().items(
1725
- ServiceabilityPlatformModel.DocumentsResponse()
1936
+ ServiceabilityPlatformModel.DocumentsResult()
1726
1937
  ),
1727
1938
  store_type: Joi.string().allow(""),
1728
1939
  sub_type: Joi.string().allow(""),
1729
1940
  company: Joi.number(),
1730
1941
  _cls: Joi.string().allow(""),
1731
- logistics: ServiceabilityPlatformModel.LogisticsResponse(),
1942
+ logistics: ServiceabilityPlatformModel.LogisticsResult(),
1732
1943
  notification_emails: Joi.array().items(Joi.string().allow("")),
1733
1944
  });
1734
1945
  }
1735
1946
 
1736
- /** @returns {GetStoresViewResponse} */
1737
- static GetStoresViewResponse() {
1947
+ /** @returns {GetStoresViewResult} */
1948
+ static GetStoresViewResult() {
1738
1949
  return Joi.object({
1739
- page: ServiceabilityPlatformModel.ServiceabilityPageResponse().required(),
1740
- items: Joi.array().items(ServiceabilityPlatformModel.ItemResponse()),
1950
+ page: ServiceabilityPlatformModel.ServiceabilityPageResult().required(),
1951
+ items: Joi.array().items(ServiceabilityPlatformModel.ItemResult()),
1741
1952
  });
1742
1953
  }
1743
1954
 
@@ -1750,8 +1961,8 @@ class ServiceabilityPlatformModel {
1750
1961
  });
1751
1962
  }
1752
1963
 
1753
- /** @returns {PincodeMopUpdateResponse} */
1754
- static PincodeMopUpdateResponse() {
1964
+ /** @returns {PincodeMopUpdateResult} */
1965
+ static PincodeMopUpdateResult() {
1755
1966
  return Joi.object({
1756
1967
  pincode: Joi.number().required(),
1757
1968
  channel_id: Joi.string().allow("").required(),
@@ -1760,8 +1971,8 @@ class ServiceabilityPlatformModel {
1760
1971
  });
1761
1972
  }
1762
1973
 
1763
- /** @returns {PincodeMOPresponse} */
1764
- static PincodeMOPresponse() {
1974
+ /** @returns {PincodeMOPResult} */
1975
+ static PincodeMOPResult() {
1765
1976
  return Joi.object({
1766
1977
  success: Joi.boolean().required(),
1767
1978
  status_code: Joi.number().required(),
@@ -1770,7 +1981,7 @@ class ServiceabilityPlatformModel {
1770
1981
  action: Joi.string().allow("").required(),
1771
1982
  pincodes: Joi.array().items(Joi.number()),
1772
1983
  updated_pincodes: Joi.array().items(
1773
- ServiceabilityPlatformModel.PincodeMopUpdateResponse()
1984
+ ServiceabilityPlatformModel.PincodeMopUpdateResult()
1774
1985
  ),
1775
1986
  });
1776
1987
  }
@@ -1792,16 +2003,16 @@ class ServiceabilityPlatformModel {
1792
2003
  });
1793
2004
  }
1794
2005
 
1795
- /** @returns {PincodeBulkViewResponse} */
1796
- static PincodeBulkViewResponse() {
2006
+ /** @returns {PincodeBulkViewResult} */
2007
+ static PincodeBulkViewResult() {
1797
2008
  return Joi.object({
1798
2009
  batch_id: Joi.string().allow("").required(),
1799
2010
  s3_url: Joi.string().allow("").required(),
1800
2011
  });
1801
2012
  }
1802
2013
 
1803
- /** @returns {PincodeCodStatusListingRequest} */
1804
- static PincodeCodStatusListingRequest() {
2014
+ /** @returns {PincodeCodStatusListingDetails} */
2015
+ static PincodeCodStatusListingDetails() {
1805
2016
  return Joi.object({
1806
2017
  country: Joi.string().allow(""),
1807
2018
  is_active: Joi.boolean(),
@@ -1811,18 +2022,26 @@ class ServiceabilityPlatformModel {
1811
2022
  });
1812
2023
  }
1813
2024
 
1814
- /** @returns {PincodeCodStatusListingResponse} */
1815
- static PincodeCodStatusListingResponse() {
2025
+ /** @returns {PincodeCodStatusItem} */
2026
+ static PincodeCodStatusItem() {
2027
+ return Joi.object({
2028
+ active: Joi.boolean(),
2029
+ pincode: Joi.string().allow(""),
2030
+ });
2031
+ }
2032
+
2033
+ /** @returns {PincodeCodStatusListingResult} */
2034
+ static PincodeCodStatusListingResult() {
1816
2035
  return Joi.object({
1817
2036
  country: Joi.string().allow("").required(),
1818
2037
  data: Joi.array()
1819
- .items(Joi.link("#PincodeCodStatusListingResponse"))
2038
+ .items(Joi.link("#PincodeCodStatusListingResult"))
1820
2039
  .required(),
1821
2040
  success: Joi.boolean().required(),
1822
2041
  errors: Joi.array().items(ServiceabilityPlatformModel.Error()),
1823
2042
  page: ServiceabilityPlatformModel.PincodeCodStatusListingPage().required(),
1824
2043
  summary: ServiceabilityPlatformModel.PincodeCodStatusListingSummary().required(),
1825
- }).id("PincodeCodStatusListingResponse");
2044
+ }).id("PincodeCodStatusListingResult");
1826
2045
  }
1827
2046
 
1828
2047
  /** @returns {Error} */
@@ -1853,8 +2072,8 @@ class ServiceabilityPlatformModel {
1853
2072
  });
1854
2073
  }
1855
2074
 
1856
- /** @returns {PincodeMopUpdateAuditHistoryRequest} */
1857
- static PincodeMopUpdateAuditHistoryRequest() {
2075
+ /** @returns {PincodeMopUpdateAuditHistoryDetails} */
2076
+ static PincodeMopUpdateAuditHistoryDetails() {
1858
2077
  return Joi.object({
1859
2078
  entity_type: Joi.string().allow("").required(),
1860
2079
  file_name: Joi.string().allow(""),
@@ -1872,8 +2091,8 @@ class ServiceabilityPlatformModel {
1872
2091
  });
1873
2092
  }
1874
2093
 
1875
- /** @returns {PincodeMopUpdateAuditHistoryResponse} */
1876
- static PincodeMopUpdateAuditHistoryResponse() {
2094
+ /** @returns {PincodeMopUpdateAuditHistoryResult} */
2095
+ static PincodeMopUpdateAuditHistoryResult() {
1877
2096
  return Joi.object({
1878
2097
  batch_id: Joi.string().allow(""),
1879
2098
  entity_type: Joi.string().allow(""),
@@ -1886,15 +2105,13 @@ class ServiceabilityPlatformModel {
1886
2105
  });
1887
2106
  }
1888
2107
 
1889
- /** @returns {PincodeMopUpdateAuditHistoryResponseData} */
1890
- static PincodeMopUpdateAuditHistoryResponseData() {
2108
+ /** @returns {PincodeMopUpdateAuditHistoryResultData} */
2109
+ static PincodeMopUpdateAuditHistoryResultData() {
1891
2110
  return Joi.object({
1892
2111
  entity_type: Joi.string().allow(""),
1893
2112
  page: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryPaging().required(),
1894
2113
  data: Joi.array()
1895
- .items(
1896
- ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponse()
1897
- )
2114
+ .items(ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResult())
1898
2115
  .required(),
1899
2116
  });
1900
2117
  }
@@ -1933,20 +2150,33 @@ class ServiceabilityPlatformModel {
1933
2150
  });
1934
2151
  }
1935
2152
 
2153
+ /** @returns {CourierAccountUpdateDetails} */
2154
+ static CourierAccountUpdateDetails() {
2155
+ return Joi.object({
2156
+ extension_id: Joi.string().allow("").required(),
2157
+ scheme_id: Joi.string().allow("").required(),
2158
+ is_self_ship: Joi.boolean().required(),
2159
+ stage: Joi.string().allow("").required(),
2160
+ is_own_account: Joi.boolean().required(),
2161
+ });
2162
+ }
2163
+
1936
2164
  /** @returns {CourierAccount} */
1937
2165
  static CourierAccount() {
1938
2166
  return Joi.object({
2167
+ company_id: Joi.number().required(),
1939
2168
  extension_id: Joi.string().allow("").required(),
1940
2169
  account_id: Joi.string().allow("").required(),
1941
2170
  scheme_id: Joi.string().allow("").required(),
1942
2171
  is_self_ship: Joi.boolean().required(),
1943
2172
  stage: Joi.string().allow("").required(),
1944
2173
  is_own_account: Joi.boolean().required(),
2174
+ scheme_rules: ServiceabilityPlatformModel.CourierPartnerSchemeModel().required(),
1945
2175
  });
1946
2176
  }
1947
2177
 
1948
- /** @returns {CourierAccountRequestBody} */
1949
- static CourierAccountRequestBody() {
2178
+ /** @returns {CourierAccountDetailsBody} */
2179
+ static CourierAccountDetailsBody() {
1950
2180
  return Joi.object({
1951
2181
  extension_id: Joi.string().allow("").required(),
1952
2182
  account_id: Joi.string().allow(""),
@@ -1957,8 +2187,8 @@ class ServiceabilityPlatformModel {
1957
2187
  });
1958
2188
  }
1959
2189
 
1960
- /** @returns {ErrorResponse} */
1961
- static ErrorResponse() {
2190
+ /** @returns {ErrorResult} */
2191
+ static ErrorResult() {
1962
2192
  return Joi.object({
1963
2193
  value: Joi.string().allow("").required(),
1964
2194
  message: Joi.string().allow("").required(),
@@ -1966,12 +2196,12 @@ class ServiceabilityPlatformModel {
1966
2196
  });
1967
2197
  }
1968
2198
 
1969
- /** @returns {CourierPartnerAccountFailureResponse} */
1970
- static CourierPartnerAccountFailureResponse() {
2199
+ /** @returns {CourierPartnerAccountFailureResult} */
2200
+ static CourierPartnerAccountFailureResult() {
1971
2201
  return Joi.object({
1972
2202
  success: Joi.boolean().required(),
1973
2203
  error: Joi.array()
1974
- .items(ServiceabilityPlatformModel.ErrorResponse())
2204
+ .items(ServiceabilityPlatformModel.ErrorResult())
1975
2205
  .required(),
1976
2206
  });
1977
2207
  }
@@ -1989,32 +2219,32 @@ class ServiceabilityPlatformModel {
1989
2219
  });
1990
2220
  }
1991
2221
 
1992
- /** @returns {CourierPartnerRuleCPListResponse} */
1993
- static CourierPartnerRuleCPListResponse() {
2222
+ /** @returns {CourierPartnerRuleCPListResult} */
2223
+ static CourierPartnerRuleCPListResult() {
1994
2224
  return Joi.object({
1995
- account_id: Joi.string().allow(""),
1996
- extension_id: Joi.string().allow(""),
1997
- is_self_ship: Joi.boolean(),
1998
- scheme_rules: Joi.any(),
2225
+ account_id: Joi.string().allow("").required(),
2226
+ extension_id: Joi.string().allow("").required(),
2227
+ is_self_ship: Joi.boolean().required(),
2228
+ scheme_rules: Joi.object().pattern(/\S/, Joi.any()),
1999
2229
  });
2000
2230
  }
2001
2231
 
2002
- /** @returns {CourierPartnerRuleResponse} */
2003
- static CourierPartnerRuleResponse() {
2232
+ /** @returns {CourierPartnerRuleResult} */
2233
+ static CourierPartnerRuleResult() {
2004
2234
  return Joi.object({
2005
- is_active: Joi.boolean(),
2006
- application_id: Joi.string().allow(""),
2007
- company_id: Joi.number(),
2008
- conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions(),
2009
- sort: Joi.array().items(Joi.string().allow("")),
2010
- created_by: Joi.any().allow(null),
2011
- id: Joi.string().allow(""),
2012
- modified_by: Joi.any().allow(null),
2235
+ is_active: Joi.boolean().required(),
2236
+ application_id: Joi.string().allow("").required(),
2237
+ company_id: Joi.number().required(),
2238
+ conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions().required(),
2239
+ sort: Joi.array().items(Joi.string().allow("")).required(),
2240
+ created_by: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2241
+ id: Joi.string().allow("").required(),
2242
+ modified_by: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2013
2243
  modified_on: Joi.string().allow("").allow(null),
2014
- name: Joi.string().allow(""),
2015
- type: Joi.string().allow(""),
2244
+ name: Joi.string().allow("").required(),
2245
+ type: Joi.string().allow("").required(),
2016
2246
  cp_list: Joi.array().items(
2017
- ServiceabilityPlatformModel.CourierPartnerRuleCPListResponse()
2247
+ ServiceabilityPlatformModel.CourierPartnerRuleCPListResult()
2018
2248
  ),
2019
2249
  });
2020
2250
  }
@@ -2034,7 +2264,7 @@ class ServiceabilityPlatformModel {
2034
2264
  sub_type: Joi.string().allow(""),
2035
2265
  name: Joi.string().allow(""),
2036
2266
  display_name: Joi.string().allow(""),
2037
- parent_id: Joi.string().allow(""),
2267
+ parent_id: Joi.array().items(Joi.string().allow("")),
2038
2268
  parent_ids: Joi.array().items(Joi.string().allow("")),
2039
2269
  });
2040
2270
  }
@@ -2095,35 +2325,137 @@ class ServiceabilityPlatformModel {
2095
2325
  name: Joi.string().allow("").required(),
2096
2326
  conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions().required(),
2097
2327
  sort: Joi.array().items(Joi.string().allow("")).required(),
2328
+ type: Joi.string().allow(""),
2098
2329
  });
2099
2330
  }
2100
2331
 
2101
- /** @returns {FailureResponse} */
2102
- static FailureResponse() {
2332
+ /** @returns {FailureResult} */
2333
+ static FailureResult() {
2103
2334
  return Joi.object({
2104
2335
  success: Joi.boolean().required(),
2105
2336
  error: Joi.array()
2106
- .items(ServiceabilityPlatformModel.ErrorResponse())
2337
+ .items(ServiceabilityPlatformModel.ErrorResult())
2107
2338
  .required(),
2108
2339
  });
2109
2340
  }
2110
2341
 
2111
- /** @returns {CourierPartnerRulesListResponse} */
2112
- static CourierPartnerRulesListResponse() {
2342
+ /** @returns {CourierPartnerRulesListResult} */
2343
+ static CourierPartnerRulesListResult() {
2113
2344
  return Joi.object({
2114
2345
  items: Joi.array()
2115
- .items(ServiceabilityPlatformModel.CourierPartnerRuleResponse())
2346
+ .items(ServiceabilityPlatformModel.CourierPartnerRuleResult())
2116
2347
  .required(),
2117
2348
  page: ServiceabilityPlatformModel.Page().required(),
2118
2349
  });
2119
2350
  }
2120
2351
 
2352
+ /** @returns {ShipmentsArticles} */
2353
+ static ShipmentsArticles() {
2354
+ return Joi.object({
2355
+ item_id: Joi.number(),
2356
+ category_id: Joi.number(),
2357
+ brand_id: Joi.number(),
2358
+ department_id: Joi.number(),
2359
+ tags: Joi.array().items(Joi.string().allow("")),
2360
+ });
2361
+ }
2362
+
2363
+ /** @returns {ShipmentDimension} */
2364
+ static ShipmentDimension() {
2365
+ return Joi.object({
2366
+ height: Joi.number().required(),
2367
+ length: Joi.number().required(),
2368
+ width: Joi.number().required(),
2369
+ });
2370
+ }
2371
+
2372
+ /** @returns {Shipments} */
2373
+ static Shipments() {
2374
+ return Joi.object({
2375
+ id: Joi.string().allow(""),
2376
+ location_id: Joi.number(),
2377
+ location_tags: Joi.array().items(Joi.string().allow("")),
2378
+ shipment_weight: Joi.number(),
2379
+ shipment_volumetric_weight: Joi.number(),
2380
+ shipment_cost: Joi.number(),
2381
+ shipment_dimension: ServiceabilityPlatformModel.ShipmentDimension(),
2382
+ courier_partner_schemes: Joi.array().items(Joi.string().allow("")),
2383
+ articles: Joi.array().items(
2384
+ ServiceabilityPlatformModel.ShipmentsArticles()
2385
+ ),
2386
+ });
2387
+ }
2388
+
2389
+ /** @returns {ShipmentCourierPartnerDetails} */
2390
+ static ShipmentCourierPartnerDetails() {
2391
+ return Joi.object({
2392
+ from_location: ServiceabilityPlatformModel.ShipmentsCourierPartnersServiceability().required(),
2393
+ to_location: ServiceabilityPlatformModel.ShipmentsCourierPartnersServiceability().required(),
2394
+ shipments: Joi.array().items(ServiceabilityPlatformModel.Shipments()),
2395
+ journey: Joi.string().allow(""),
2396
+ payment_mode: Joi.string().allow(""),
2397
+ });
2398
+ }
2399
+
2400
+ /** @returns {CourierPartnerPromise} */
2401
+ static CourierPartnerPromise() {
2402
+ return Joi.object({
2403
+ min: Joi.string().allow("").required(),
2404
+ max: Joi.string().allow("").required(),
2405
+ });
2406
+ }
2407
+
2408
+ /** @returns {CourierPartners} */
2409
+ static CourierPartners() {
2410
+ return Joi.object({
2411
+ extension_id: Joi.string().allow(""),
2412
+ scheme_id: Joi.string().allow(""),
2413
+ name: Joi.string().allow(""),
2414
+ delivery_promise: ServiceabilityPlatformModel.CourierPartnerPromise(),
2415
+ });
2416
+ }
2417
+
2418
+ /** @returns {ShipmentCourierPartners} */
2419
+ static ShipmentCourierPartners() {
2420
+ return Joi.object({
2421
+ id: Joi.string().allow(""),
2422
+ courier_partners: Joi.array().items(
2423
+ ServiceabilityPlatformModel.CourierPartners()
2424
+ ),
2425
+ });
2426
+ }
2427
+
2428
+ /** @returns {ShipmentCourierPartnerResult} */
2429
+ static ShipmentCourierPartnerResult() {
2430
+ return Joi.object({
2431
+ courier_partners: Joi.array().items(
2432
+ ServiceabilityPlatformModel.CourierPartners()
2433
+ ),
2434
+ shipments: Joi.array().items(
2435
+ ServiceabilityPlatformModel.ShipmentCourierPartners()
2436
+ ),
2437
+ });
2438
+ }
2439
+
2440
+ /** @returns {ShipmentsCourierPartnersServiceability} */
2441
+ static ShipmentsCourierPartnersServiceability() {
2442
+ return Joi.object({
2443
+ pincode: Joi.string().allow(""),
2444
+ sector_code: Joi.string().allow(""),
2445
+ state_code: Joi.string().allow(""),
2446
+ city_code: Joi.string().allow(""),
2447
+ country_code: Joi.string().allow("").required(),
2448
+ });
2449
+ }
2450
+
2121
2451
  /** @returns {CompanyConfig} */
2122
2452
  static CompanyConfig() {
2123
2453
  return Joi.object({
2124
2454
  rule_ids: Joi.array().items(Joi.string().allow("")).required(),
2125
2455
  sort: Joi.array().items(Joi.string().allow("")).required(),
2126
- logistics_as_actual: Joi.boolean(),
2456
+ logistics_as_actual: Joi.string().allow(""),
2457
+ company_id: Joi.number().required(),
2458
+ application_id: Joi.string().allow(""),
2127
2459
  });
2128
2460
  }
2129
2461
 
@@ -2131,6 +2463,8 @@ class ServiceabilityPlatformModel {
2131
2463
  static ZoneConfig() {
2132
2464
  return Joi.object({
2133
2465
  serviceability_type: Joi.string().allow(""),
2466
+ active_count: Joi.number(),
2467
+ total_count: Joi.number(),
2134
2468
  });
2135
2469
  }
2136
2470
 
@@ -2143,22 +2477,22 @@ class ServiceabilityPlatformModel {
2143
2477
  });
2144
2478
  }
2145
2479
 
2146
- /** @returns {BulkRegionJobSerializer} */
2147
- static BulkRegionJobSerializer() {
2480
+ /** @returns {BulkRegionJobDetails} */
2481
+ static BulkRegionJobDetails() {
2148
2482
  return Joi.object({
2149
- file_path: Joi.string().allow(""),
2483
+ file_path: Joi.string().allow("").allow(null),
2150
2484
  country: Joi.string().allow("").required(),
2151
2485
  action: Joi.string().allow("").required(),
2152
2486
  region: Joi.string().allow("").required(),
2153
2487
  });
2154
2488
  }
2155
2489
 
2156
- /** @returns {BulkRegionResponseItemData} */
2157
- static BulkRegionResponseItemData() {
2490
+ /** @returns {BulkRegionResultItemData} */
2491
+ static BulkRegionResultItemData() {
2158
2492
  return Joi.object({
2159
- file_path: Joi.string().allow("").required(),
2493
+ file_path: Joi.string().allow(""),
2160
2494
  failed: Joi.number(),
2161
- failed_records: Joi.array().items(Joi.any()),
2495
+ failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
2162
2496
  action: Joi.string().allow("").required(),
2163
2497
  batch_id: Joi.string().allow("").required(),
2164
2498
  country: Joi.string().allow("").required(),
@@ -2170,18 +2504,18 @@ class ServiceabilityPlatformModel {
2170
2504
  });
2171
2505
  }
2172
2506
 
2173
- /** @returns {BulkRegionResponse} */
2174
- static BulkRegionResponse() {
2507
+ /** @returns {BulkRegionResult} */
2508
+ static BulkRegionResult() {
2175
2509
  return Joi.object({
2176
2510
  items: Joi.array()
2177
- .items(ServiceabilityPlatformModel.BulkRegionResponseItemData())
2511
+ .items(ServiceabilityPlatformModel.BulkRegionResultItemData())
2178
2512
  .required(),
2179
2513
  page: ServiceabilityPlatformModel.Page().required(),
2180
2514
  });
2181
2515
  }
2182
2516
 
2183
- /** @returns {SelfShipResponse} */
2184
- static SelfShipResponse() {
2517
+ /** @returns {SelfShipResult} */
2518
+ static SelfShipResult() {
2185
2519
  return Joi.object({
2186
2520
  is_active: Joi.boolean().required(),
2187
2521
  tat: Joi.number().required(),
@@ -2191,14 +2525,14 @@ class ServiceabilityPlatformModel {
2191
2525
  /** @returns {ApplicationSelfShipConfig} */
2192
2526
  static ApplicationSelfShipConfig() {
2193
2527
  return Joi.object({
2194
- self_ship: Joi.any().allow(null),
2528
+ self_ship: ServiceabilityPlatformModel.SelfShipResult(),
2195
2529
  });
2196
2530
  }
2197
2531
 
2198
- /** @returns {ApplicationSelfShipConfigResponse} */
2199
- static ApplicationSelfShipConfigResponse() {
2532
+ /** @returns {ApplicationSelfShipConfigResult} */
2533
+ static ApplicationSelfShipConfigResult() {
2200
2534
  return Joi.object({
2201
- error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
2535
+ error: ServiceabilityPlatformModel.ServiceabilityErrorResult(),
2202
2536
  data: ServiceabilityPlatformModel.ApplicationSelfShipConfig(),
2203
2537
  success: Joi.boolean().required(),
2204
2538
  });
@@ -2266,13 +2600,13 @@ class ServiceabilityPlatformModel {
2266
2600
  /** @returns {StorePrioritySchema} */
2267
2601
  static StorePrioritySchema() {
2268
2602
  return Joi.object({
2269
- id: Joi.string().allow(""),
2603
+ id: Joi.number(),
2270
2604
  name: Joi.string().allow(""),
2271
2605
  });
2272
2606
  }
2273
2607
 
2274
- /** @returns {GetStoreRulesApiResponse} */
2275
- static GetStoreRulesApiResponse() {
2608
+ /** @returns {GetStoreRulesApiResult} */
2609
+ static GetStoreRulesApiResult() {
2276
2610
  return Joi.object({
2277
2611
  items: Joi.array().items(
2278
2612
  ServiceabilityPlatformModel.StoreRuleDataSchema()
@@ -2281,8 +2615,8 @@ class ServiceabilityPlatformModel {
2281
2615
  });
2282
2616
  }
2283
2617
 
2284
- /** @returns {CreateStoreRuleRequestSchema} */
2285
- static CreateStoreRuleRequestSchema() {
2618
+ /** @returns {CreateStoreRuleDetailsSchema} */
2619
+ static CreateStoreRuleDetailsSchema() {
2286
2620
  return Joi.object({
2287
2621
  name: Joi.string().allow(""),
2288
2622
  is_active: Joi.boolean(),
@@ -2296,8 +2630,8 @@ class ServiceabilityPlatformModel {
2296
2630
  });
2297
2631
  }
2298
2632
 
2299
- /** @returns {StoreRuleResponseSchema} */
2300
- static StoreRuleResponseSchema() {
2633
+ /** @returns {StoreRuleResultSchema} */
2634
+ static StoreRuleResultSchema() {
2301
2635
  return Joi.object({
2302
2636
  id: Joi.string().allow(""),
2303
2637
  name: Joi.string().allow(""),
@@ -2313,8 +2647,8 @@ class ServiceabilityPlatformModel {
2313
2647
  });
2314
2648
  }
2315
2649
 
2316
- /** @returns {StoreRuleUpdateResponseSchema} */
2317
- static StoreRuleUpdateResponseSchema() {
2650
+ /** @returns {StoreRuleUpdateResultSchema} */
2651
+ static StoreRuleUpdateResultSchema() {
2318
2652
  return Joi.object({
2319
2653
  id: Joi.string().allow(""),
2320
2654
  name: Joi.string().allow(""),
@@ -2337,8 +2671,8 @@ class ServiceabilityPlatformModel {
2337
2671
  return Joi.object({
2338
2672
  lm_cod_limit: Joi.number().required(),
2339
2673
  is_qc: Joi.boolean().required(),
2340
- pickup_cutoff: Joi.string().allow("").allow(null).required(),
2341
- route_code: Joi.string().allow("").allow(null).required(),
2674
+ pickup_cutoff: Joi.string().allow("").allow(null),
2675
+ route_code: Joi.string().allow("").allow(null),
2342
2676
  is_first_mile: Joi.boolean().required(),
2343
2677
  is_return: Joi.boolean().required(),
2344
2678
  is_installation: Joi.boolean().required(),
@@ -2373,8 +2707,10 @@ class ServiceabilityPlatformModel {
2373
2707
  /** @returns {CourierPartnerSchemeModel} */
2374
2708
  static CourierPartnerSchemeModel() {
2375
2709
  return Joi.object({
2710
+ name: Joi.string().allow(""),
2376
2711
  extension_id: Joi.string().allow("").required(),
2377
2712
  scheme_id: Joi.string().allow("").required(),
2713
+ volumetric_weight: ServiceabilityPlatformModel.ArithmeticOperations(),
2378
2714
  weight: ServiceabilityPlatformModel.ArithmeticOperations().required(),
2379
2715
  transport_type: Joi.string().allow("").required(),
2380
2716
  region: Joi.string().allow("").required(),
@@ -2385,23 +2721,25 @@ class ServiceabilityPlatformModel {
2385
2721
  });
2386
2722
  }
2387
2723
 
2388
- /** @returns {CourierAccountResponse} */
2389
- static CourierAccountResponse() {
2724
+ /** @returns {CourierAccountResult} */
2725
+ static CourierAccountResult() {
2390
2726
  return Joi.object({
2727
+ company_id: Joi.number().required(),
2728
+ extension_id: Joi.string().allow(""),
2391
2729
  account_id: Joi.string().allow("").required(),
2392
2730
  scheme_id: Joi.string().allow("").required(),
2393
2731
  is_self_ship: Joi.boolean().required(),
2394
2732
  stage: Joi.string().allow("").required(),
2395
2733
  is_own_account: Joi.boolean().required(),
2396
- scheme_rules: ServiceabilityPlatformModel.CourierPartnerSchemeModel().required(),
2734
+ scheme_rules: ServiceabilityPlatformModel.CourierPartnerSchemeModel(),
2397
2735
  });
2398
2736
  }
2399
2737
 
2400
- /** @returns {CompanyCourierPartnerAccountListResponse} */
2401
- static CompanyCourierPartnerAccountListResponse() {
2738
+ /** @returns {CompanyCourierPartnerAccountListResult} */
2739
+ static CompanyCourierPartnerAccountListResult() {
2402
2740
  return Joi.object({
2403
2741
  items: Joi.array()
2404
- .items(ServiceabilityPlatformModel.CourierAccountResponse())
2742
+ .items(ServiceabilityPlatformModel.CourierAccountResult())
2405
2743
  .required(),
2406
2744
  page: ServiceabilityPlatformModel.Page().required(),
2407
2745
  });
@@ -2434,12 +2772,13 @@ class ServiceabilityPlatformModel {
2434
2772
  });
2435
2773
  }
2436
2774
 
2437
- /** @returns {PackageMaterialResponse} */
2438
- static PackageMaterialResponse() {
2775
+ /** @returns {PackageMaterialResult} */
2776
+ static PackageMaterialResult() {
2439
2777
  return Joi.object({
2440
2778
  name: Joi.string().allow("").required(),
2441
2779
  id: Joi.string().allow(""),
2442
2780
  item_id: Joi.number(),
2781
+ company_id: Joi.number(),
2443
2782
  width: Joi.number().required(),
2444
2783
  height: Joi.number().required(),
2445
2784
  length: Joi.number().required(),
@@ -2485,8 +2824,8 @@ class ServiceabilityPlatformModel {
2485
2824
  });
2486
2825
  }
2487
2826
 
2488
- /** @returns {PackageRuleResponse} */
2489
- static PackageRuleResponse() {
2827
+ /** @returns {PackageRuleResult} */
2828
+ static PackageRuleResult() {
2490
2829
  return Joi.object({
2491
2830
  id: Joi.string().allow(""),
2492
2831
  name: Joi.string().allow("").required(),
@@ -2510,7 +2849,7 @@ class ServiceabilityPlatformModel {
2510
2849
  /** @returns {PackageMaterialRuleList} */
2511
2850
  static PackageMaterialRuleList() {
2512
2851
  return Joi.object({
2513
- items: ServiceabilityPlatformModel.PackageRuleResponse(),
2852
+ items: ServiceabilityPlatformModel.PackageRuleResult(),
2514
2853
  page: ServiceabilityPlatformModel.Page(),
2515
2854
  });
2516
2855
  }
@@ -2518,7 +2857,7 @@ class ServiceabilityPlatformModel {
2518
2857
  /** @returns {PackageMaterialList} */
2519
2858
  static PackageMaterialList() {
2520
2859
  return Joi.object({
2521
- items: ServiceabilityPlatformModel.PackageMaterialResponse(),
2860
+ items: ServiceabilityPlatformModel.PackageMaterialResult(),
2522
2861
  page: ServiceabilityPlatformModel.Page(),
2523
2862
  });
2524
2863
  }
@@ -2552,16 +2891,16 @@ class ServiceabilityPlatformModel {
2552
2891
  });
2553
2892
  }
2554
2893
 
2555
- /** @returns {RulePriorityRequest} */
2556
- static RulePriorityRequest() {
2894
+ /** @returns {RulePriorityDetails} */
2895
+ static RulePriorityDetails() {
2557
2896
  return Joi.object({
2558
2897
  rule_id: Joi.string().allow("").required(),
2559
2898
  priority: Joi.number().required(),
2560
2899
  });
2561
2900
  }
2562
2901
 
2563
- /** @returns {RulePriorityResponse} */
2564
- static RulePriorityResponse() {
2902
+ /** @returns {RulePriorityResult} */
2903
+ static RulePriorityResult() {
2565
2904
  return Joi.object({
2566
2905
  success: Joi.boolean(),
2567
2906
  });
@@ -2601,10 +2940,10 @@ class ServiceabilityPlatformModel {
2601
2940
  return Joi.object({
2602
2941
  item_id: Joi.number().required(),
2603
2942
  size: Joi.string().allow("").required(),
2604
- quantity: Joi.string().allow("").required(),
2943
+ quantity: Joi.number().required(),
2605
2944
  group_id: Joi.string().allow(""),
2606
2945
  is_primary_item: Joi.boolean(),
2607
- meta: Joi.any(),
2946
+ meta: Joi.object().pattern(/\S/, Joi.any()),
2608
2947
  article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
2609
2948
  ignore_locations: Joi.array().items(Joi.number()).required(),
2610
2949
  assign_locations: Joi.array().items(Joi.number()).required(),
@@ -2612,26 +2951,28 @@ class ServiceabilityPlatformModel {
2612
2951
  });
2613
2952
  }
2614
2953
 
2615
- /** @returns {OptimlLocationsRequestSchema} */
2616
- static OptimlLocationsRequestSchema() {
2954
+ /** @returns {OptimlLocationsDetailsSchema} */
2955
+ static OptimlLocationsDetailsSchema() {
2617
2956
  return Joi.object({
2618
2957
  channel_id: Joi.string().allow("").required(),
2619
2958
  channel_type: Joi.string().allow("").required(),
2620
2959
  channel_identifier: Joi.string().allow(""),
2621
2960
  to_serviceability: ServiceabilityPlatformModel.LocationDetailsServiceability().required(),
2622
- article: ServiceabilityPlatformModel.OptimalLocationsArticles(),
2961
+ articles: Joi.array().items(
2962
+ ServiceabilityPlatformModel.OptimalLocationsArticles()
2963
+ ),
2623
2964
  });
2624
2965
  }
2625
2966
 
2626
- /** @returns {OptimalLocationArticlesResponse} */
2627
- static OptimalLocationArticlesResponse() {
2967
+ /** @returns {OptimalLocationArticlesResult} */
2968
+ static OptimalLocationArticlesResult() {
2628
2969
  return Joi.object({
2629
2970
  item_id: Joi.number().required(),
2630
2971
  size: Joi.string().allow("").required(),
2631
2972
  quantity: Joi.number().required(),
2632
2973
  group_id: Joi.string().allow(""),
2633
2974
  is_primary_item: Joi.boolean(),
2634
- meta: Joi.any(),
2975
+ meta: Joi.object().pattern(/\S/, Joi.any()),
2635
2976
  article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
2636
2977
  seller_id: Joi.number(),
2637
2978
  ignore_locations: Joi.array().items(Joi.number()).required(),
@@ -2643,28 +2984,43 @@ class ServiceabilityPlatformModel {
2643
2984
  });
2644
2985
  }
2645
2986
 
2646
- /** @returns {OptimalLocationAssignedStoresResponse} */
2647
- static OptimalLocationAssignedStoresResponse() {
2987
+ /** @returns {OptimalLocationAssignedStoresResult} */
2988
+ static OptimalLocationAssignedStoresResult() {
2648
2989
  return Joi.object({
2649
2990
  store_id: Joi.number().required(),
2650
2991
  articles: Joi.array()
2651
- .items(ServiceabilityPlatformModel.OptimalLocationArticlesResponse())
2992
+ .items(ServiceabilityPlatformModel.OptimalLocationArticlesResult())
2652
2993
  .required(),
2653
2994
  });
2654
2995
  }
2655
2996
 
2656
- /** @returns {OptimalLocationsResponse} */
2657
- static OptimalLocationsResponse() {
2997
+ /** @returns {OptimalLocationsResult} */
2998
+ static OptimalLocationsResult() {
2658
2999
  return Joi.object({
2659
3000
  assigned_stores: Joi.array()
2660
3001
  .items(
2661
- ServiceabilityPlatformModel.OptimalLocationAssignedStoresResponse()
3002
+ ServiceabilityPlatformModel.OptimalLocationAssignedStoresResult()
2662
3003
  )
2663
3004
  .required(),
2664
3005
  faulty_articles: Joi.array().items(
2665
- ServiceabilityPlatformModel.ErrorResponse()
3006
+ ServiceabilityPlatformModel.ErrorResult()
2666
3007
  ),
2667
3008
  });
2668
3009
  }
3010
+
3011
+ /** @returns {ValidationError} */
3012
+ static ValidationError() {
3013
+ return Joi.object({
3014
+ message: Joi.string().allow("").required(),
3015
+ field: Joi.string().allow("").required(),
3016
+ });
3017
+ }
3018
+
3019
+ /** @returns {StandardError} */
3020
+ static StandardError() {
3021
+ return Joi.object({
3022
+ message: Joi.string().allow("").required(),
3023
+ });
3024
+ }
2669
3025
  }
2670
3026
  module.exports = ServiceabilityPlatformModel;