@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +108 -1199
  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 +48 -111
  20. package/sdk/application/Content/ContentApplicationClient.js +43 -1065
  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 +91 -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 +103 -213
  32. package/sdk/application/Payment/PaymentApplicationClient.js +84 -2105
  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 +157 -30
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1177 -56
  57. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1662 -249
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.js +774 -162
  59. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +141 -12
  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 +407 -112
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  91. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  92. package/sdk/platform/Cart/CartPlatformModel.d.ts +5060 -1300
  93. package/sdk/platform/Cart/CartPlatformModel.js +1985 -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 +178 -117
  99. package/sdk/platform/Catalog/CatalogPlatformClient.js +468 -172
  100. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6554 -1772
  101. package/sdk/platform/Catalog/CatalogPlatformModel.js +3264 -1690
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +116 -31
  103. package/sdk/platform/Catalog/CatalogPlatformValidator.js +85 -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 +122 -191
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.js +447 -831
  132. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +174 -220
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +164 -199
  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 +1233 -476
  137. package/sdk/platform/Content/ContentPlatformModel.js +514 -487
  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 +424 -198
  166. package/sdk/platform/Order/OrderPlatformModel.d.ts +7747 -1342
  167. package/sdk/platform/Order/OrderPlatformModel.js +3960 -1262
  168. package/sdk/platform/Order/OrderPlatformValidator.d.ts +292 -109
  169. package/sdk/platform/Order/OrderPlatformValidator.js +145 -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 +132 -44
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +681 -64
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2458 -650
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1266 -572
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +176 -47
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -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,39 +1,41 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef BulkRegionServiceabilityTatRequest
5
- * @property {string} country
6
- * @property {string} region
7
- * @property {string} type
4
+ * @typedef BulkRegionServiceabilityTatDetails
5
+ * @property {string} country - Name of the country.
6
+ * @property {string} region - Name of the region for which the
7
+ * tat/serviceability file needs to be downloaded.
8
+ * @property {string} type - Denotes the type of file.
8
9
  */
9
10
 
10
11
  /**
11
- * @typedef BulkRegionServiceabilityTatResponseItemData
12
- * @property {string} [country]
13
- * @property {string} [region]
14
- * @property {string} [type]
15
- * @property {string} [batch_id]
16
- * @property {string} [status]
17
- * @property {Object[]} [failed_records]
18
- * @property {string} [file_path]
12
+ * @typedef BulkRegionServiceabilityTatResultItemData
13
+ * @property {string} [country] - Name of the country.
14
+ * @property {string} [region] - Name of the region for which the
15
+ * tat/serviceability file needs to be downloaded.
16
+ * @property {string} [type] - Denotes the type of data.
17
+ * @property {string} [batch_id] - Unique identifier identifying the perticular request.
18
+ * @property {string} [status] - Current status of the request.
19
+ * @property {Object[]} [failed_records] - Information of records which failed
20
+ * @property {string} [file_path] - CDN path of the file.
19
21
  */
20
22
 
21
23
  /**
22
- * @typedef ErrorResponse
23
- * @property {string} value
24
- * @property {string} message
25
- * @property {string} type
24
+ * @typedef ErrorResult
25
+ * @property {string} value - Fields containing the error.
26
+ * @property {string} message - Description of the error.
27
+ * @property {string} type - Type of the error.
26
28
  */
27
29
 
28
30
  /**
29
- * @typedef FailureResponse
30
- * @property {boolean} success
31
- * @property {ErrorResponse[]} error
31
+ * @typedef FailureResult
32
+ * @property {boolean} success - Denotes if the request was successfully executed.
33
+ * @property {ErrorResult[]} error
32
34
  */
33
35
 
34
36
  /**
35
- * @typedef BulkRegionServiceabilityTatResponse
36
- * @property {BulkRegionServiceabilityTatResponseItemData[]} [items]
37
+ * @typedef BulkRegionServiceabilityTatResult
38
+ * @property {BulkRegionServiceabilityTatResultItemData[]} [items]
37
39
  * @property {Page} [page]
38
40
  */
39
41
 
@@ -49,124 +51,461 @@ const Joi = require("joi");
49
51
  */
50
52
 
51
53
  /**
52
- * @typedef BulkRegionJobSerializer
53
- * @property {string} [file_path]
54
- * @property {string} country
55
- * @property {string} action
56
- * @property {string} region
54
+ * @typedef CourierAccountUpdateDetails
55
+ * @property {string} extension_id - Unique identifier of courier partner extension.
56
+ * @property {string} scheme_id - Unique identifier of courier partner scheme.
57
+ * @property {boolean} is_self_ship - Denotes if the account is of self delivery type.
58
+ * @property {string} stage - Denotes whether the account is in enabled or disabled stage.
59
+ * @property {boolean} is_own_account - Denotes whether it is the seller's own
60
+ * account or not.
61
+ */
62
+
63
+ /**
64
+ * @typedef RegionTatItemResult
65
+ * @property {RegionTatResult[]} items
66
+ * @property {Page} page
67
+ */
68
+
69
+ /**
70
+ * @typedef RegionServiceabilityItemResult
71
+ * @property {RegionServiceabilityResult[]} items
72
+ * @property {Page} page
73
+ */
74
+
75
+ /**
76
+ * @typedef ServiceabilityDetailsResult
77
+ * @property {boolean} [first_mile] - Boolean value indicating whether
78
+ * first-mile service is available or not.
79
+ * @property {boolean} [last_mile] - Boolean value indicating whether last-mile
80
+ * service is available or not.
81
+ * @property {boolean} [reverse_pickup] - Boolean value indicating whether a
82
+ * region is first-mile serviceable or not in return pickup.
83
+ * @property {number} [cod_limit] - Limit on the amount of cash on delivery
84
+ * (COD) payments allowed in the specified region.
85
+ * @property {boolean} [doorstep_return] - Indicates if doorstep return service
86
+ * is available. This refers to the ability to return items directly from the
87
+ * customer's doorstep.
88
+ * @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
89
+ * service is available. This refers to the ability to perform quality checks
90
+ * on items at the customer's doorstep.
91
+ * @property {string} [pickup_cutoff] - Time of day by which pickups must be
92
+ * scheduled to be processed on the same day.
93
+ * @property {boolean} [installation] - Boolean value indicating whether
94
+ * installation services are available in the specified region or not.
95
+ * @property {string} [id] - Unique identifier for the serviceability record.
96
+ */
97
+
98
+ /**
99
+ * @typedef ServiceabilityDetails
100
+ * @property {boolean} [first_mile] - Boolean value indicating whether
101
+ * first-mile service is available or not.
102
+ * @property {boolean} [last_mile] - Boolean value indicating whether last-mile
103
+ * service is available or not.
104
+ * @property {boolean} [reverse_pickup] - Boolean value indicating whether a
105
+ * region is first-mile serviceable or not in return pickup.
106
+ * @property {number} [cod_limit] - Limit on the amount of cash on delivery
107
+ * (COD) payments allowed in the specified region.
108
+ * @property {boolean} [doorstep_return] - Indicates if doorstep return service
109
+ * is available. This refers to the ability to return items directly from the
110
+ * customer's doorstep.
111
+ * @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
112
+ * service is available. This refers to the ability to perform quality checks
113
+ * on items at the customer's doorstep.
114
+ * @property {string} [pickup_cutoff] - Time of day by which pickups must be
115
+ * scheduled to be processed on the same day.
116
+ * @property {boolean} [installation] - Boolean value indicating whether
117
+ * installation services are available in the specified region or not.
118
+ */
119
+
120
+ /**
121
+ * @typedef RegionServiceabilityResult
122
+ * @property {string} country_code - ISO2 code representing the country where
123
+ * the serviceability is being specified.
124
+ * @property {string} [state_code] - Code representing the state or province
125
+ * within the country where the serviceability is being specified.
126
+ * @property {string} [city_code] - Code representing the city within the state
127
+ * where the serviceability is being specified.
128
+ * @property {string} [sector_code] - Code representing a specific sector or
129
+ * district within the city where the serviceability is being specified.
130
+ * @property {string} [pincode] - Postal or ZIP code for the specific area
131
+ * within the city where the serviceability is being specified.
132
+ * @property {boolean} [first_mile] - Boolean value indicating whether
133
+ * first-mile service is available or not.
134
+ * @property {boolean} [last_mile] - Boolean value indicating whether last-mile
135
+ * service is available or not.
136
+ * @property {boolean} [reverse_pickup] - Boolean value indicating whether a
137
+ * region is first-mile serviceable or not in return pickup.
138
+ * @property {number} [cod_limit] - Limit on the amount of cash on delivery
139
+ * (COD) payments allowed in the specified region.
140
+ * @property {boolean} [doorstep_return] - Indicates if doorstep return service
141
+ * is available. This refers to the ability to return items directly from the
142
+ * customer's doorstep.
143
+ * @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
144
+ * service is available. This refers to the ability to perform quality checks
145
+ * on items at the customer's doorstep.
146
+ * @property {string} [pickup_cutoff] - Time of day by which pickups must be
147
+ * scheduled to be processed on the same day.
148
+ * @property {boolean} [installation] - Boolean value indicating whether
149
+ * installation services are available in the specified region or not.
150
+ * @property {string} id - Unique identifier for the serviceability record.
151
+ */
152
+
153
+ /**
154
+ * @typedef RegionServiceabilityDetails
155
+ * @property {string} country_code - ISO2 code representing the country where
156
+ * the serviceability is being specified.
157
+ * @property {string} [state_code] - Code representing the state or province
158
+ * within the country where the serviceability is being specified.
159
+ * @property {string} [city_code] - Code representing the city within the state
160
+ * where the serviceability is being specified.
161
+ * @property {string} [sector_code] - Code representing a specific sector or
162
+ * district within the city where the serviceability is being specified.
163
+ * @property {string} [pincode] - Postal or ZIP code for the specific area
164
+ * within the city where the serviceability is being specified.
165
+ * @property {boolean} [first_mile] - Boolean value indicating whether
166
+ * first-mile service is available or not.
167
+ * @property {boolean} [last_mile] - Boolean value indicating whether last-mile
168
+ * service is available or not.
169
+ * @property {boolean} [reverse_pickup] - Boolean value indicating whether a
170
+ * region is first-mile serviceable or not in return pickup.
171
+ * @property {number} [cod_limit] - Limit on the amount of cash on delivery
172
+ * (COD) payments allowed in the specified region.
173
+ * @property {boolean} [doorstep_return] - Indicates if doorstep return service
174
+ * is available. This refers to the ability to return items directly from the
175
+ * customer's doorstep.
176
+ * @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
177
+ * service is available. This refers to the ability to perform quality checks
178
+ * on items at the customer's doorstep.
179
+ * @property {string} [pickup_cutoff] - Time of day by which pickups must be
180
+ * scheduled to be processed on the same day.
181
+ * @property {boolean} [installation] - Boolean value indicating whether
182
+ * installation services are available in the specified region or not.
183
+ */
184
+
185
+ /**
186
+ * @typedef RegionTatDetails
187
+ * @property {string} from_country_code - ISO2 code representing the country of
188
+ * origin for the delivery.
189
+ * @property {string} [from_state_code] - Code representing the state or
190
+ * province of origin within the country.
191
+ * @property {string} [from_city_code] - Code representing the city of origin
192
+ * within the state.
193
+ * @property {string} [from_sector_code] - Code representing a specific sector
194
+ * or district within the city of origin.
195
+ * @property {string} [from_pincode] - Postal or ZIP code of the origin area.
196
+ * @property {string} to_country_code - ISO2 code representing the destination country.
197
+ * @property {string} [to_state_code] - Code representing the state or province
198
+ * of the destination within the country.
199
+ * @property {string} [to_city_code] - Code representing the city of destination
200
+ * within the state.
201
+ * @property {string} [to_sector_code] - Code representing a specific sector or
202
+ * district within the city of destination.
203
+ * @property {string} [to_pincode] - Postal or ZIP code of the destination area.
204
+ * @property {number} [max_delivery_time] - Maximum time required for delivery
205
+ * from the origin to the destination in seconds.
206
+ * @property {number} [min_delivery_time] - Minimum time required for delivery
207
+ * from the origin to the destination in seconds.
57
208
  */
58
209
 
59
210
  /**
60
- * @typedef BulkRegionResponseItemData
61
- * @property {string} file_path
62
- * @property {number} [failed]
63
- * @property {Object[]} [failed_records]
64
- * @property {string} action
65
- * @property {string} batch_id
66
- * @property {string} country
67
- * @property {number} [success]
68
- * @property {string} region
69
- * @property {string} status
70
- * @property {number} [total]
71
- * @property {string} [error_file_path]
211
+ * @typedef RegionTatUpdateDetails
212
+ * @property {number} [max_delivery_time] - Maximum time required for delivery
213
+ * from the origin to the destination in seconds.
214
+ * @property {number} [min_delivery_time] - Minimum time required for delivery
215
+ * from the origin to the destination in seconds.
72
216
  */
73
217
 
74
218
  /**
75
- * @typedef BulkRegionResponse
76
- * @property {BulkRegionResponseItemData[]} items
219
+ * @typedef RegionTatResult
220
+ * @property {string} from_country_code - ISO2 code representing the country of
221
+ * origin for the delivery.
222
+ * @property {string} [from_state_code] - Code representing the state or
223
+ * province of origin within the country.
224
+ * @property {string} [from_city_code] - Code representing the city of origin
225
+ * within the state.
226
+ * @property {string} [from_sector_code] - Code representing a specific sector
227
+ * or district within the city of origin.
228
+ * @property {string} [from_pincode] - Postal or ZIP code of the origin area.
229
+ * @property {string} to_country_code - ISO2 code representing the destination country.
230
+ * @property {string} [to_state_code] - Code representing the state or province
231
+ * of the destination within the country.
232
+ * @property {string} [to_city_code] - Code representing the city of destination
233
+ * within the state.
234
+ * @property {string} [to_sector_code] - Code representing a specific sector or
235
+ * district within the city of destination.
236
+ * @property {string} [to_pincode] - Postal or ZIP code of the destination area.
237
+ * @property {number} [max_delivery_time] - Maximum time required for delivery
238
+ * from the origin to the destination in seconds.
239
+ * @property {number} [min_delivery_time] - Minimum time required for delivery
240
+ * from the origin to the destination in seconds.
241
+ * @property {string} id - Unique identifier for the delivery time record.
242
+ */
243
+
244
+ /**
245
+ * @typedef BulkRegionJobDetails
246
+ * @property {string} [file_path] - CDN path of the uploaded csv file for bulk import.
247
+ * @property {string} country - Country for which the tat or serviceability is
248
+ * to be imported or exported.
249
+ * @property {string} action - Denotes the import or export action to be performed.
250
+ * @property {string} region - Region of the country for which import or export
251
+ * is triggered.
252
+ */
253
+
254
+ /**
255
+ * @typedef BulkRegionResultItemData
256
+ * @property {string} [file_path] - CDN path of the file which was used for bulk import.
257
+ * @property {number} [failed] - Count of the failed records.
258
+ * @property {Object[]} [failed_records] - Information of records which failed.
259
+ * @property {string} action - Denotes the import or export action performed.
260
+ * @property {string} batch_id - Unique id to identify the import or export query.
261
+ * @property {string} country - Country for which the import or export action is
262
+ * performed.
263
+ * @property {number} [success] - Denoted if the import or export was successful
264
+ * or failure.
265
+ * @property {string} region - Region of the country for which import or export
266
+ * is triggered.
267
+ * @property {string} status - Current status of the import or export action performed.
268
+ * @property {number} [total] - Count of total records.
269
+ * @property {string} [error_file_path] - Path of the error file.
270
+ */
271
+
272
+ /**
273
+ * @typedef BulkRegionResult
274
+ * @property {BulkRegionResultItemData[]} items
77
275
  * @property {Page} page
78
276
  */
79
277
 
80
278
  /**
81
279
  * @typedef CourierAccount
82
- * @property {string} extension_id
83
- * @property {string} account_id
84
- * @property {string} scheme_id
85
- * @property {boolean} is_self_ship
86
- * @property {string} stage
87
- * @property {boolean} is_own_account
280
+ * @property {string} extension_id - Unique identifier of courier partner extension.
281
+ * @property {string} account_id - Unique identifier of courier partner scheme
282
+ * and company id combination.
283
+ * @property {string} scheme_id - Unique identifier of courier partner scheme.
284
+ * @property {boolean} is_self_ship - Denotes if the account is of self delivery type.
285
+ * @property {string} stage - Denotes whether the account is in enabled or disabled stage.
286
+ * @property {boolean} is_own_account - Denotes whether it is the seller's own
287
+ * account or not.
88
288
  */
89
289
 
90
290
  /**
91
- * @typedef CourierAccountRequestBody
92
- * @property {string} extension_id
93
- * @property {string} [account_id]
94
- * @property {string} scheme_id
95
- * @property {boolean} is_self_ship
96
- * @property {string} stage
97
- * @property {boolean} is_own_account
291
+ * @typedef CourierAccountDetailsBody
292
+ * @property {string} extension_id - Unique identifier of courier partner extension.
293
+ * @property {string} [account_id] - Unique identifier of courier partner scheme
294
+ * and company id combination.
295
+ * @property {string} scheme_id - Unique identifier of courier account.
296
+ * @property {boolean} is_self_ship - Denotes if the account is of self delivery type.
297
+ * @property {string} stage - Denotes whether the courier account is in enabled
298
+ * or disabled stage.
299
+ * @property {boolean} is_own_account - Denotes whether it is the seller's own
300
+ * account or not.
98
301
  */
99
302
 
100
303
  /**
101
- * @typedef CourierPartnerAccountFailureResponse
304
+ * @typedef CourierPartnerAccountFailureResult
102
305
  * @property {boolean} success
103
- * @property {ErrorResponse[]} error
306
+ * @property {ErrorResult[]} error
104
307
  */
105
308
 
106
309
  /**
107
- * @typedef CompanyCourierPartnerAccountListResponse
108
- * @property {CourierAccountResponse[]} items
310
+ * @typedef CompanyCourierPartnerAccountListResult
311
+ * @property {CourierAccountResult[]} items
109
312
  * @property {Page} page
110
313
  */
111
314
 
112
315
  /**
113
- * @typedef CourierAccountResponse
114
- * @property {string} account_id
115
- * @property {string} scheme_id
316
+ * @typedef CourierAccountResult
317
+ * @property {string} account_id - Unique identifier of courier partner scheme
318
+ * and company id combination.
319
+ * @property {string} scheme_id - Unique identifier of courier partner scheme.
116
320
  * @property {boolean} is_self_ship
117
- * @property {string} stage
118
- * @property {boolean} is_own_account
321
+ * @property {string} stage - Denotes whether the courier account is in enabled
322
+ * or disabled stage.
323
+ * @property {boolean} is_own_account - Denotes whether it is the seller's own
324
+ * account or not.
119
325
  * @property {CourierPartnerSchemeModel} scheme_rules
120
326
  */
121
327
 
122
328
  /**
123
329
  * @typedef CourierPartnerSchemeModel
124
- * @property {string} extension_id
125
- * @property {string} scheme_id
126
- * @property {string} name
330
+ * @property {string} extension_id - Unique identifier of courier partner extension.
331
+ * @property {string} scheme_id - Unique identifier of courier partner scheme.
332
+ * @property {string} name - Name of the scheme
127
333
  * @property {ArithmeticOperations} weight
128
- * @property {string} transport_type
129
- * @property {string} region
130
- * @property {string} delivery_type
131
- * @property {string[]} payment_mode
132
- * @property {string} stage
334
+ * @property {string} transport_type - Mode of transport associated with the
335
+ * courier partner scheme.
336
+ * @property {string} region - Serviceable region associated with the courier
337
+ * partner scheme.
338
+ * @property {string} delivery_type - Type of delivery associated with the
339
+ * courier partner scheme.
340
+ * @property {string[]} payment_mode - Mode of payment associated with the
341
+ * courier partner scheme.
342
+ * @property {string} stage - Indicates if the courier partner scheme is
343
+ * currently active or inactive.
133
344
  * @property {CourierPartnerSchemeFeatures} feature
134
345
  */
135
346
 
136
347
  /**
137
- * @typedef CourierPartnerSchemeRequestModel
138
- * @property {string} extension_id
139
- * @property {string} [scheme_id]
140
- * @property {string} name
348
+ * @typedef CourierPartnerSchemeDetailsModel
349
+ * @property {string} extension_id - Unique identifier of courier partner extension.
350
+ * @property {string} [scheme_id] - Unique identifier of courier partner scheme.
351
+ * @property {string} name - Name of the courier partner scheme.
141
352
  * @property {ArithmeticOperations} weight
142
- * @property {string} transport_type
143
- * @property {string} region
144
- * @property {string} delivery_type
145
- * @property {string[]} payment_mode
146
- * @property {string} stage
353
+ * @property {string} transport_type - Mode of transport associated with the
354
+ * courier partner scheme.
355
+ * @property {string} region - Serviceable region associated with the courier
356
+ * partner scheme.
357
+ * @property {string} delivery_type - Type of delivery associated with the
358
+ * courier partner scheme.
359
+ * @property {string[]} payment_mode - Mode of payment associated with the
360
+ * courier partner scheme.
361
+ * @property {string} stage - Indicates if the courier partner scheme is
362
+ * currently active or inactive.
147
363
  * @property {CourierPartnerSchemeFeatures} feature
148
364
  */
149
365
 
150
366
  /**
151
367
  * @typedef CourierPartnerSchemeFeatures
152
- * @property {boolean} [doorstep_qc]
153
- * @property {boolean} [qr]
154
- * @property {boolean} [mps]
155
- * @property {boolean} [ndr]
156
- * @property {number} [ndr_attempts]
157
- * @property {boolean} [dangerous_goods]
158
- * @property {boolean} [fragile_goods]
159
- * @property {boolean} [restricted_goods]
160
- * @property {boolean} [cold_storage_goods]
161
- * @property {boolean} [doorstep_exchange]
162
- * @property {boolean} [doorstep_return]
163
- * @property {boolean} [product_installation]
164
- * @property {boolean} [openbox_delivery]
165
- * @property {string} [status_updates]
166
- * @property {boolean} [multi_pick_single_drop]
167
- * @property {boolean} [single_pick_multi_drop]
168
- * @property {boolean} [multi_pick_multi_drop]
169
- * @property {boolean} [ewaybill]
368
+ * @property {boolean} [doorstep_qc] - Indicates if the courier partner offers
369
+ * doorstep quality check services.
370
+ * @property {boolean} [qr] - Specifies whether the courier partner supports QR
371
+ * code-based operations.
372
+ * @property {boolean} [mps] - Denotes if the courier partner supports
373
+ * multi-part shipment services.
374
+ * @property {boolean} [ndr] - Indicates if the Non-Delivery Report (NDR)
375
+ * feature is supported by the courier partner.
376
+ * @property {number} [ndr_attempts] - Number of attempts allowed for resolving
377
+ * Non-Delivery Reports (NDR).
378
+ * @property {boolean} [dangerous_goods] - Specifies if the courier partner
379
+ * handles the transportation of dangerous goods.
380
+ * @property {boolean} [fragile_goods] - Indicates whether the courier partner
381
+ * manages the shipment of fragile goods.
382
+ * @property {boolean} [restricted_goods] - Indicates if the courier partner
383
+ * handles restricted goods, as per regulatory guidelines.
384
+ * @property {boolean} [cold_storage_goods] - Denotes if the courier partner
385
+ * provides cold storage facilities for goods.
386
+ * @property {boolean} [doorstep_exchange] - Indicates if the courier partner
387
+ * supports doorstep exchange services.
388
+ * @property {boolean} [doorstep_return] - Specifies if the courier partner
389
+ * offers doorstep return services.
390
+ * @property {boolean} [product_installation] - Indicates if the courier partner
391
+ * provides product installation services upon delivery.
392
+ * @property {boolean} [openbox_delivery] - Specifies whether the courier
393
+ * partner supports open-box delivery, allowing customers to inspect goods
394
+ * before accepting.
395
+ * @property {string} [status_updates] - Describes the type of status updates
396
+ * provided by the courier partner (e.g., real-time, periodic).
397
+ * @property {boolean} [multi_pick_single_drop] - Indicates if the courier
398
+ * partner supports multiple pickups to a single drop location.
399
+ * @property {boolean} [single_pick_multi_drop] - Indicates whether the courier
400
+ * partner supports single pickup to multiple drop locations.
401
+ * @property {boolean} [multi_pick_multi_drop] - Denotes if the courier partner
402
+ * offers services for multiple pickups to multiple drop locations.
403
+ * @property {boolean} [ewaybill] - Specifies if the courier partner requires or
404
+ * supports the generation of e-waybills for shipments.
405
+ * @property {number} [qc_shipment_item_quantity] - Defines the maximum quantity
406
+ * of items allowed in a quality check shipment.
407
+ * @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
408
+ * quantity of items allowed in a non-quality check shipment.
409
+ */
410
+
411
+ /**
412
+ * @typedef CourierPartnerSchemeV2Features
413
+ * @property {boolean} [doorstep_qc] - Indicates if the courier partner offers
414
+ * doorstep quality check services.
415
+ * @property {boolean} [qr] - Specifies whether the courier partner supports QR
416
+ * code-based operations.
417
+ * @property {boolean} [mps] - Denotes if the courier partner supports
418
+ * multi-part shipment services.
419
+ * @property {boolean} [ndr] - Indicates if the Non-Delivery Report (NDR)
420
+ * feature is supported by the courier partner.
421
+ * @property {boolean} [dangerous_goods] - Specifies if the courier partner
422
+ * handles the transportation of dangerous goods.
423
+ * @property {boolean} [fragile_goods] - Indicates whether the courier partner
424
+ * manages the shipment of fragile goods.
425
+ * @property {boolean} [restricted_goods] - Indicates if the courier partner
426
+ * handles restricted goods, as per regulatory guidelines.
427
+ * @property {boolean} [cold_storage_goods] - Denotes if the courier partner
428
+ * provides cold storage facilities for goods.
429
+ * @property {boolean} [doorstep_exchange] - Indicates if the courier partner
430
+ * supports doorstep exchange services.
431
+ * @property {boolean} [doorstep_return] - Specifies if the courier partner
432
+ * offers doorstep return services.
433
+ * @property {boolean} [product_installation] - Indicates if the courier partner
434
+ * provides product installation services upon delivery.
435
+ * @property {boolean} [openbox_delivery] - Specifies whether the courier
436
+ * partner supports open-box delivery, allowing customers to inspect goods
437
+ * before accepting.
438
+ * @property {boolean} [multi_pick_single_drop] - Indicates if the courier
439
+ * partner supports multiple pickups to a single drop location.
440
+ * @property {boolean} [single_pick_multi_drop] - Indicates whether the courier
441
+ * partner supports single pickup to multiple drop locations.
442
+ * @property {boolean} [multi_pick_multi_drop] - Denotes if the courier partner
443
+ * offers services for multiple pickups to multiple drop locations.
444
+ * @property {boolean} [ewaybill] - Specifies if the courier partner requires or
445
+ * supports the generation of e-waybills for shipments.
446
+ */
447
+
448
+ /**
449
+ * @typedef CourierPartnerSchemeV2DetailsModel
450
+ * @property {string} extension_id - Unique identifier of courier partner extension.
451
+ * @property {string} [scheme_id] - Unique identifier of courier partner scheme.
452
+ * @property {string} name - Name of the scheme.
453
+ * @property {ArithmeticOperations} weight
454
+ * @property {ArithmeticOperations} [volumetric_weight]
455
+ * @property {string} transport_type - Mode of transport associated with the
456
+ * courier partner scheme.
457
+ * @property {string} region - Serviceable region associated with the courier
458
+ * partner scheme.
459
+ * @property {string} delivery_type - Type of delivery associated with the
460
+ * courier partner scheme.
461
+ * @property {string[]} payment_mode - Mode of payment associated with the
462
+ * courier partner scheme.
463
+ * @property {string} stage - Indicates if the courier partner scheme is
464
+ * currently active or inactive.
465
+ * @property {string} [status_updates] - Describes the type of status updates
466
+ * provided by the courier partner (e.g., real-time, periodic).
467
+ * @property {number} [ndr_attempts] - Indicates if the Non-Delivery Report
468
+ * (NDR) feature is supported by the courier partner.
469
+ * @property {number} [qc_shipment_item_quantity] - Defines the maximum quantity
470
+ * of items allowed in a quality check shipment.
471
+ * @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
472
+ * quantity of items allowed in a non-quality check shipment.
473
+ * @property {CourierPartnerSchemeV2Features} feature
474
+ */
475
+
476
+ /**
477
+ * @typedef CourierPartnerV2SchemeModel
478
+ * @property {string} extension_id - Unique identifier of courier partner extension.
479
+ * @property {string} scheme_id - Unique identifier of courier partner scheme.
480
+ * @property {string} [company_id] - Unique identifier of company.
481
+ * @property {string} name - Name of the scheme.
482
+ * @property {ArithmeticOperations} weight
483
+ * @property {ArithmeticOperations} [volumetric_weight]
484
+ * @property {string} transport_type - Mode of transport associated with the
485
+ * courier partner scheme.
486
+ * @property {string} region - Serviceable region associated with the courier
487
+ * partner scheme.
488
+ * @property {string} delivery_type - Type of delivery associated with the
489
+ * courier partner scheme.
490
+ * @property {string[]} payment_mode - Mode of payment associated with the
491
+ * courier partner scheme.
492
+ * @property {string} stage - Indicates if the courier partner scheme is
493
+ * currently active or inactive.
494
+ * @property {string} [status_updates] - Describes the type of status updates
495
+ * provided by the courier partner (e.g., real-time, periodic).
496
+ * @property {number} [ndr_attempts] - Indicates if the Non-Delivery Report
497
+ * (NDR) feature is supported by the courier partner.
498
+ * @property {number} [qc_shipment_item_quantity] - Defines the maximum quantity
499
+ * of items allowed in a quality check shipment.
500
+ * @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
501
+ * quantity of items allowed in a non-quality check shipment.
502
+ * @property {CourierPartnerSchemeV2Features} feature
503
+ */
504
+
505
+ /**
506
+ * @typedef courierPartnerSchemeV2List
507
+ * @property {CourierPartnerV2SchemeModel[]} items - List of courier partner schemes
508
+ * @property {Page} page
170
509
  */
171
510
 
172
511
  /**
@@ -178,15 +517,29 @@ const Joi = require("joi");
178
517
  */
179
518
 
180
519
  /**
181
- * @typedef CourierPartnerSchemeUpdateRequest
182
- * @property {string} name
520
+ * @typedef CourierPartnerSchemeV2UpdateDetails
521
+ * @property {string} name - Name of the scheme.
183
522
  * @property {ArithmeticOperations} weight
184
- * @property {string} transport_type
185
- * @property {string} region
186
- * @property {string} delivery_type
187
- * @property {string[]} payment_mode
188
- * @property {string} stage
189
- * @property {CourierPartnerSchemeFeatures} feature
523
+ * @property {ArithmeticOperations} [volumetric_weight]
524
+ * @property {string} transport_type - Mode of transport associated with the
525
+ * courier partner scheme.
526
+ * @property {string} region - Serviceable region associated with the courier
527
+ * partner scheme.
528
+ * @property {string} delivery_type - Type of delivery associated with the
529
+ * courier partner scheme.
530
+ * @property {string[]} payment_mode - Mode of payment associated with the
531
+ * courier partner scheme.
532
+ * @property {string} stage - Indicates if the courier partner scheme is
533
+ * currently active or inactive.
534
+ * @property {string} [status_updates] - Describes the type of status updates
535
+ * provided by the courier partner (e.g., real-time, periodic).
536
+ * @property {number} [ndr_attempts] - Indicates if the Non-Delivery Report
537
+ * (NDR) feature is supported by the courier partner.
538
+ * @property {number} [qc_shipment_item_quantity] - Defines the maximum quantity
539
+ * of items allowed in a quality check shipment.
540
+ * @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
541
+ * quantity of items allowed in a non-quality check shipment.
542
+ * @property {CourierPartnerSchemeV2Features} feature
190
543
  */
191
544
 
192
545
  /**
@@ -197,29 +550,50 @@ const Joi = require("joi");
197
550
 
198
551
  /**
199
552
  * @typedef GetCountriesItems
200
- * @property {string} [id]
201
- * @property {string} [name]
202
- * @property {string} [iso2]
203
- * @property {string} [iso3]
204
- * @property {string[]} [timezones]
205
- * @property {HierarchyItems[]} [hierarchy]
206
- * @property {string} [phone_code]
207
- * @property {string} [currency]
208
- * @property {string} [type]
209
- * @property {string} [latitude]
210
- * @property {string} [longitude]
211
- * @property {string} [display_name]
553
+ * @property {string} [id] - Unique identifier of the country.
554
+ * @property {string} [name] - Name of the country.
555
+ * @property {string} [iso2] - Two-letter ISO code representing the country.
556
+ * @property {string} [iso3] - Three-letter ISO code representing the country.
557
+ * @property {string[]} [timezones] - List of time zones used in the country
558
+ * (e.g., ["America/New_York", "America/Los_Angeles"]).
559
+ * @property {HierarchyItems[]} [hierarchy] - Levels within the country (e.g.,
560
+ * states, cities) and their slugs (e.g., [{"name": "State", "slug": "state"},
561
+ * {"name": "City", "slug": "city"}]).
562
+ * @property {string} [phone_code] - International dialing code for the country
563
+ * (e.g., "+1").
564
+ * @property {string} [currency] - Indicates currency for the country (e.g., "INR").
565
+ * @property {string} [type] - Indicates the type of object (e.g., "country").
566
+ * @property {string} [latitude] - Geographical latitude of the country (e.g., "37.0902").
567
+ * @property {string} [longitude] - Geographical longitude of the country (e.g.,
568
+ * "-95.7129").
569
+ * @property {string} [display_name] - User-friendly version of the geographical
570
+ * data, which may be more descriptive or formatted differently.
571
+ * @property {boolean} [has_next_hierarchy] - More detailed hierarchical data is
572
+ * available, meaning states, cities, or other regions within the country have
573
+ * been populated in the system.
212
574
  */
213
575
 
214
576
  /**
215
577
  * @typedef HierarchyItems
216
- * @property {string} [display_name]
217
- * @property {string} [slug]
578
+ * @property {string} [display_name] - It represent a country display name.
579
+ * @property {string} [slug] - A URL-friendly version of the name, often used
580
+ * for referencing or querying purposes.
581
+ */
582
+
583
+ /**
584
+ * @typedef ValidationError
585
+ * @property {string} message - A brief description of the error encountered.
586
+ * @property {string} field - The field in the request that caused the error.
587
+ */
588
+
589
+ /**
590
+ * @typedef StandardError
591
+ * @property {string} message - A brief description of the error.
218
592
  */
219
593
 
220
594
  class LogisticsPartnerModel {
221
- /** @returns {BulkRegionServiceabilityTatRequest} */
222
- static BulkRegionServiceabilityTatRequest() {
595
+ /** @returns {BulkRegionServiceabilityTatDetails} */
596
+ static BulkRegionServiceabilityTatDetails() {
223
597
  return Joi.object({
224
598
  country: Joi.string().allow("").required(),
225
599
  region: Joi.string().allow("").required(),
@@ -227,21 +601,21 @@ class LogisticsPartnerModel {
227
601
  });
228
602
  }
229
603
 
230
- /** @returns {BulkRegionServiceabilityTatResponseItemData} */
231
- static BulkRegionServiceabilityTatResponseItemData() {
604
+ /** @returns {BulkRegionServiceabilityTatResultItemData} */
605
+ static BulkRegionServiceabilityTatResultItemData() {
232
606
  return Joi.object({
233
607
  country: Joi.string().allow(""),
234
608
  region: Joi.string().allow(""),
235
609
  type: Joi.string().allow(""),
236
610
  batch_id: Joi.string().allow(""),
237
611
  status: Joi.string().allow(""),
238
- failed_records: Joi.array().items(Joi.any()),
239
- file_path: Joi.string().allow(""),
612
+ failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
613
+ file_path: Joi.string().allow("").allow(null),
240
614
  });
241
615
  }
242
616
 
243
- /** @returns {ErrorResponse} */
244
- static ErrorResponse() {
617
+ /** @returns {ErrorResult} */
618
+ static ErrorResult() {
245
619
  return Joi.object({
246
620
  value: Joi.string().allow("").required(),
247
621
  message: Joi.string().allow("").required(),
@@ -249,21 +623,19 @@ class LogisticsPartnerModel {
249
623
  });
250
624
  }
251
625
 
252
- /** @returns {FailureResponse} */
253
- static FailureResponse() {
626
+ /** @returns {FailureResult} */
627
+ static FailureResult() {
254
628
  return Joi.object({
255
629
  success: Joi.boolean().required(),
256
- error: Joi.array()
257
- .items(LogisticsPartnerModel.ErrorResponse())
258
- .required(),
630
+ error: Joi.array().items(LogisticsPartnerModel.ErrorResult()).required(),
259
631
  });
260
632
  }
261
633
 
262
- /** @returns {BulkRegionServiceabilityTatResponse} */
263
- static BulkRegionServiceabilityTatResponse() {
634
+ /** @returns {BulkRegionServiceabilityTatResult} */
635
+ static BulkRegionServiceabilityTatResult() {
264
636
  return Joi.object({
265
637
  items: Joi.array().items(
266
- LogisticsPartnerModel.BulkRegionServiceabilityTatResponseItemData()
638
+ LogisticsPartnerModel.BulkRegionServiceabilityTatResultItemData()
267
639
  ),
268
640
  page: LogisticsPartnerModel.Page(),
269
641
  });
@@ -282,22 +654,166 @@ class LogisticsPartnerModel {
282
654
  });
283
655
  }
284
656
 
285
- /** @returns {BulkRegionJobSerializer} */
286
- static BulkRegionJobSerializer() {
657
+ /** @returns {CourierAccountUpdateDetails} */
658
+ static CourierAccountUpdateDetails() {
287
659
  return Joi.object({
288
- file_path: Joi.string().allow(""),
660
+ extension_id: Joi.string().allow("").required(),
661
+ scheme_id: Joi.string().allow("").required(),
662
+ is_self_ship: Joi.boolean().required(),
663
+ stage: Joi.string().allow("").required(),
664
+ is_own_account: Joi.boolean().required(),
665
+ });
666
+ }
667
+
668
+ /** @returns {RegionTatItemResult} */
669
+ static RegionTatItemResult() {
670
+ return Joi.object({
671
+ items: Joi.array()
672
+ .items(LogisticsPartnerModel.RegionTatResult())
673
+ .required(),
674
+ page: LogisticsPartnerModel.Page().required(),
675
+ });
676
+ }
677
+
678
+ /** @returns {RegionServiceabilityItemResult} */
679
+ static RegionServiceabilityItemResult() {
680
+ return Joi.object({
681
+ items: Joi.array()
682
+ .items(LogisticsPartnerModel.RegionServiceabilityResult())
683
+ .required(),
684
+ page: LogisticsPartnerModel.Page().required(),
685
+ });
686
+ }
687
+
688
+ /** @returns {ServiceabilityDetailsResult} */
689
+ static ServiceabilityDetailsResult() {
690
+ return Joi.object({
691
+ first_mile: Joi.boolean(),
692
+ last_mile: Joi.boolean(),
693
+ reverse_pickup: Joi.boolean().allow(null),
694
+ cod_limit: Joi.number(),
695
+ doorstep_return: Joi.boolean(),
696
+ doorstep_qc: Joi.boolean(),
697
+ pickup_cutoff: Joi.string().allow(""),
698
+ installation: Joi.boolean(),
699
+ id: Joi.string().allow(""),
700
+ });
701
+ }
702
+
703
+ /** @returns {ServiceabilityDetails} */
704
+ static ServiceabilityDetails() {
705
+ return Joi.object({
706
+ first_mile: Joi.boolean(),
707
+ last_mile: Joi.boolean(),
708
+ reverse_pickup: Joi.boolean().allow(null),
709
+ cod_limit: Joi.number(),
710
+ doorstep_return: Joi.boolean(),
711
+ doorstep_qc: Joi.boolean(),
712
+ pickup_cutoff: Joi.string().allow(""),
713
+ installation: Joi.boolean(),
714
+ });
715
+ }
716
+
717
+ /** @returns {RegionServiceabilityResult} */
718
+ static RegionServiceabilityResult() {
719
+ return Joi.object({
720
+ country_code: Joi.string().allow("").required(),
721
+ state_code: Joi.string().allow(""),
722
+ city_code: Joi.string().allow(""),
723
+ sector_code: Joi.string().allow(""),
724
+ pincode: Joi.string().allow(""),
725
+ first_mile: Joi.boolean(),
726
+ last_mile: Joi.boolean(),
727
+ reverse_pickup: Joi.boolean().allow(null),
728
+ cod_limit: Joi.number(),
729
+ doorstep_return: Joi.boolean(),
730
+ doorstep_qc: Joi.boolean(),
731
+ pickup_cutoff: Joi.string().allow(""),
732
+ installation: Joi.boolean(),
733
+ id: Joi.string().allow("").required(),
734
+ });
735
+ }
736
+
737
+ /** @returns {RegionServiceabilityDetails} */
738
+ static RegionServiceabilityDetails() {
739
+ return Joi.object({
740
+ country_code: Joi.string().allow("").required(),
741
+ state_code: Joi.string().allow(""),
742
+ city_code: Joi.string().allow(""),
743
+ sector_code: Joi.string().allow(""),
744
+ pincode: Joi.string().allow(""),
745
+ first_mile: Joi.boolean(),
746
+ last_mile: Joi.boolean(),
747
+ reverse_pickup: Joi.boolean().allow(null),
748
+ cod_limit: Joi.number(),
749
+ doorstep_return: Joi.boolean(),
750
+ doorstep_qc: Joi.boolean(),
751
+ pickup_cutoff: Joi.string().allow(""),
752
+ installation: Joi.boolean(),
753
+ });
754
+ }
755
+
756
+ /** @returns {RegionTatDetails} */
757
+ static RegionTatDetails() {
758
+ return Joi.object({
759
+ from_country_code: Joi.string().allow("").required(),
760
+ from_state_code: Joi.string().allow(""),
761
+ from_city_code: Joi.string().allow(""),
762
+ from_sector_code: Joi.string().allow(""),
763
+ from_pincode: Joi.string().allow(""),
764
+ to_country_code: Joi.string().allow("").required(),
765
+ to_state_code: Joi.string().allow(""),
766
+ to_city_code: Joi.string().allow(""),
767
+ to_sector_code: Joi.string().allow(""),
768
+ to_pincode: Joi.string().allow(""),
769
+ max_delivery_time: Joi.number(),
770
+ min_delivery_time: Joi.number(),
771
+ });
772
+ }
773
+
774
+ /** @returns {RegionTatUpdateDetails} */
775
+ static RegionTatUpdateDetails() {
776
+ return Joi.object({
777
+ max_delivery_time: Joi.number(),
778
+ min_delivery_time: Joi.number(),
779
+ });
780
+ }
781
+
782
+ /** @returns {RegionTatResult} */
783
+ static RegionTatResult() {
784
+ return Joi.object({
785
+ from_country_code: Joi.string().allow("").required(),
786
+ from_state_code: Joi.string().allow(""),
787
+ from_city_code: Joi.string().allow(""),
788
+ from_sector_code: Joi.string().allow(""),
789
+ from_pincode: Joi.string().allow(""),
790
+ to_country_code: Joi.string().allow("").required(),
791
+ to_state_code: Joi.string().allow(""),
792
+ to_city_code: Joi.string().allow(""),
793
+ to_sector_code: Joi.string().allow(""),
794
+ to_pincode: Joi.string().allow(""),
795
+ max_delivery_time: Joi.number(),
796
+ min_delivery_time: Joi.number(),
797
+ id: Joi.string().allow("").required(),
798
+ });
799
+ }
800
+
801
+ /** @returns {BulkRegionJobDetails} */
802
+ static BulkRegionJobDetails() {
803
+ return Joi.object({
804
+ file_path: Joi.string().allow("").allow(null),
289
805
  country: Joi.string().allow("").required(),
290
806
  action: Joi.string().allow("").required(),
291
807
  region: Joi.string().allow("").required(),
292
808
  });
293
809
  }
294
810
 
295
- /** @returns {BulkRegionResponseItemData} */
296
- static BulkRegionResponseItemData() {
811
+ /** @returns {BulkRegionResultItemData} */
812
+ static BulkRegionResultItemData() {
297
813
  return Joi.object({
298
- file_path: Joi.string().allow("").required(),
814
+ file_path: Joi.string().allow(""),
299
815
  failed: Joi.number(),
300
- failed_records: Joi.array().items(Joi.any()),
816
+ failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
301
817
  action: Joi.string().allow("").required(),
302
818
  batch_id: Joi.string().allow("").required(),
303
819
  country: Joi.string().allow("").required(),
@@ -309,11 +825,11 @@ class LogisticsPartnerModel {
309
825
  });
310
826
  }
311
827
 
312
- /** @returns {BulkRegionResponse} */
313
- static BulkRegionResponse() {
828
+ /** @returns {BulkRegionResult} */
829
+ static BulkRegionResult() {
314
830
  return Joi.object({
315
831
  items: Joi.array()
316
- .items(LogisticsPartnerModel.BulkRegionResponseItemData())
832
+ .items(LogisticsPartnerModel.BulkRegionResultItemData())
317
833
  .required(),
318
834
  page: LogisticsPartnerModel.Page().required(),
319
835
  });
@@ -331,8 +847,8 @@ class LogisticsPartnerModel {
331
847
  });
332
848
  }
333
849
 
334
- /** @returns {CourierAccountRequestBody} */
335
- static CourierAccountRequestBody() {
850
+ /** @returns {CourierAccountDetailsBody} */
851
+ static CourierAccountDetailsBody() {
336
852
  return Joi.object({
337
853
  extension_id: Joi.string().allow("").required(),
338
854
  account_id: Joi.string().allow(""),
@@ -343,28 +859,26 @@ class LogisticsPartnerModel {
343
859
  });
344
860
  }
345
861
 
346
- /** @returns {CourierPartnerAccountFailureResponse} */
347
- static CourierPartnerAccountFailureResponse() {
862
+ /** @returns {CourierPartnerAccountFailureResult} */
863
+ static CourierPartnerAccountFailureResult() {
348
864
  return Joi.object({
349
865
  success: Joi.boolean().required(),
350
- error: Joi.array()
351
- .items(LogisticsPartnerModel.ErrorResponse())
352
- .required(),
866
+ error: Joi.array().items(LogisticsPartnerModel.ErrorResult()).required(),
353
867
  });
354
868
  }
355
869
 
356
- /** @returns {CompanyCourierPartnerAccountListResponse} */
357
- static CompanyCourierPartnerAccountListResponse() {
870
+ /** @returns {CompanyCourierPartnerAccountListResult} */
871
+ static CompanyCourierPartnerAccountListResult() {
358
872
  return Joi.object({
359
873
  items: Joi.array()
360
- .items(LogisticsPartnerModel.CourierAccountResponse())
874
+ .items(LogisticsPartnerModel.CourierAccountResult())
361
875
  .required(),
362
876
  page: LogisticsPartnerModel.Page().required(),
363
877
  });
364
878
  }
365
879
 
366
- /** @returns {CourierAccountResponse} */
367
- static CourierAccountResponse() {
880
+ /** @returns {CourierAccountResult} */
881
+ static CourierAccountResult() {
368
882
  return Joi.object({
369
883
  account_id: Joi.string().allow("").required(),
370
884
  scheme_id: Joi.string().allow("").required(),
@@ -391,8 +905,8 @@ class LogisticsPartnerModel {
391
905
  });
392
906
  }
393
907
 
394
- /** @returns {CourierPartnerSchemeRequestModel} */
395
- static CourierPartnerSchemeRequestModel() {
908
+ /** @returns {CourierPartnerSchemeDetailsModel} */
909
+ static CourierPartnerSchemeDetailsModel() {
396
910
  return Joi.object({
397
911
  extension_id: Joi.string().allow("").required(),
398
912
  scheme_id: Joi.string().allow(""),
@@ -428,6 +942,83 @@ class LogisticsPartnerModel {
428
942
  single_pick_multi_drop: Joi.boolean(),
429
943
  multi_pick_multi_drop: Joi.boolean(),
430
944
  ewaybill: Joi.boolean(),
945
+ qc_shipment_item_quantity: Joi.number().allow(null),
946
+ non_qc_shipment_item_quantity: Joi.number().allow(null),
947
+ });
948
+ }
949
+
950
+ /** @returns {CourierPartnerSchemeV2Features} */
951
+ static CourierPartnerSchemeV2Features() {
952
+ return Joi.object({
953
+ doorstep_qc: Joi.boolean(),
954
+ qr: Joi.boolean(),
955
+ mps: Joi.boolean(),
956
+ ndr: Joi.boolean(),
957
+ dangerous_goods: Joi.boolean(),
958
+ fragile_goods: Joi.boolean(),
959
+ restricted_goods: Joi.boolean(),
960
+ cold_storage_goods: Joi.boolean(),
961
+ doorstep_exchange: Joi.boolean(),
962
+ doorstep_return: Joi.boolean(),
963
+ product_installation: Joi.boolean(),
964
+ openbox_delivery: Joi.boolean(),
965
+ multi_pick_single_drop: Joi.boolean(),
966
+ single_pick_multi_drop: Joi.boolean(),
967
+ multi_pick_multi_drop: Joi.boolean(),
968
+ ewaybill: Joi.boolean(),
969
+ });
970
+ }
971
+
972
+ /** @returns {CourierPartnerSchemeV2DetailsModel} */
973
+ static CourierPartnerSchemeV2DetailsModel() {
974
+ return Joi.object({
975
+ extension_id: Joi.string().allow("").required(),
976
+ scheme_id: Joi.string().allow(""),
977
+ name: Joi.string().allow("").required(),
978
+ weight: LogisticsPartnerModel.ArithmeticOperations().required(),
979
+ volumetric_weight: LogisticsPartnerModel.ArithmeticOperations(),
980
+ transport_type: Joi.string().allow("").required(),
981
+ region: Joi.string().allow("").required(),
982
+ delivery_type: Joi.string().allow("").required(),
983
+ payment_mode: Joi.array().items(Joi.string().allow("")).required(),
984
+ stage: Joi.string().allow("").required(),
985
+ status_updates: Joi.string().allow(""),
986
+ ndr_attempts: Joi.number(),
987
+ qc_shipment_item_quantity: Joi.number().allow(null),
988
+ non_qc_shipment_item_quantity: Joi.number().allow(null),
989
+ feature: LogisticsPartnerModel.CourierPartnerSchemeV2Features().required(),
990
+ });
991
+ }
992
+
993
+ /** @returns {CourierPartnerV2SchemeModel} */
994
+ static CourierPartnerV2SchemeModel() {
995
+ return Joi.object({
996
+ extension_id: Joi.string().allow("").required(),
997
+ scheme_id: Joi.string().allow("").required(),
998
+ company_id: Joi.string().allow(""),
999
+ name: Joi.string().allow("").required(),
1000
+ weight: LogisticsPartnerModel.ArithmeticOperations().required(),
1001
+ volumetric_weight: LogisticsPartnerModel.ArithmeticOperations(),
1002
+ transport_type: Joi.string().allow("").required(),
1003
+ region: Joi.string().allow("").required(),
1004
+ delivery_type: Joi.string().allow("").required(),
1005
+ payment_mode: Joi.array().items(Joi.string().allow("")).required(),
1006
+ stage: Joi.string().allow("").required(),
1007
+ status_updates: Joi.string().allow(""),
1008
+ ndr_attempts: Joi.number(),
1009
+ qc_shipment_item_quantity: Joi.number().allow(null),
1010
+ non_qc_shipment_item_quantity: Joi.number().allow(null),
1011
+ feature: LogisticsPartnerModel.CourierPartnerSchemeV2Features().required(),
1012
+ });
1013
+ }
1014
+
1015
+ /** @returns {courierPartnerSchemeV2List} */
1016
+ static courierPartnerSchemeV2List() {
1017
+ return Joi.object({
1018
+ items: Joi.array()
1019
+ .items(LogisticsPartnerModel.CourierPartnerV2SchemeModel())
1020
+ .required(),
1021
+ page: LogisticsPartnerModel.Page().required(),
431
1022
  });
432
1023
  }
433
1024
 
@@ -441,17 +1032,22 @@ class LogisticsPartnerModel {
441
1032
  });
442
1033
  }
443
1034
 
444
- /** @returns {CourierPartnerSchemeUpdateRequest} */
445
- static CourierPartnerSchemeUpdateRequest() {
1035
+ /** @returns {CourierPartnerSchemeV2UpdateDetails} */
1036
+ static CourierPartnerSchemeV2UpdateDetails() {
446
1037
  return Joi.object({
447
1038
  name: Joi.string().allow("").required(),
448
1039
  weight: LogisticsPartnerModel.ArithmeticOperations().required(),
1040
+ volumetric_weight: LogisticsPartnerModel.ArithmeticOperations(),
449
1041
  transport_type: Joi.string().allow("").required(),
450
1042
  region: Joi.string().allow("").required(),
451
1043
  delivery_type: Joi.string().allow("").required(),
452
1044
  payment_mode: Joi.array().items(Joi.string().allow("")).required(),
453
1045
  stage: Joi.string().allow("").required(),
454
- feature: LogisticsPartnerModel.CourierPartnerSchemeFeatures().required(),
1046
+ status_updates: Joi.string().allow(""),
1047
+ ndr_attempts: Joi.number(),
1048
+ qc_shipment_item_quantity: Joi.number().allow(null),
1049
+ non_qc_shipment_item_quantity: Joi.number().allow(null),
1050
+ feature: LogisticsPartnerModel.CourierPartnerSchemeV2Features().required(),
455
1051
  });
456
1052
  }
457
1053
 
@@ -480,6 +1076,7 @@ class LogisticsPartnerModel {
480
1076
  latitude: Joi.string().allow(""),
481
1077
  longitude: Joi.string().allow(""),
482
1078
  display_name: Joi.string().allow(""),
1079
+ has_next_hierarchy: Joi.boolean(),
483
1080
  });
484
1081
  }
485
1082
 
@@ -490,5 +1087,20 @@ class LogisticsPartnerModel {
490
1087
  slug: Joi.string().allow(""),
491
1088
  });
492
1089
  }
1090
+
1091
+ /** @returns {ValidationError} */
1092
+ static ValidationError() {
1093
+ return Joi.object({
1094
+ message: Joi.string().allow("").required(),
1095
+ field: Joi.string().allow("").required(),
1096
+ });
1097
+ }
1098
+
1099
+ /** @returns {StandardError} */
1100
+ static StandardError() {
1101
+ return Joi.object({
1102
+ message: Joi.string().allow("").required(),
1103
+ });
1104
+ }
493
1105
  }
494
1106
  module.exports = LogisticsPartnerModel;