@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10

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 (326) 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 +0 -2
  8. package/sdk/application/ApplicationClient.js +0 -20
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
  10. package/sdk/application/Cart/CartApplicationClient.js +60 -1262
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
  14. package/sdk/application/Common/CommonApplicationClient.js +5 -90
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
  20. package/sdk/application/Content/ContentApplicationClient.js +126 -942
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
  23. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
  24. package/sdk/application/Lead/LeadApplicationClient.js +32 -201
  25. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
  26. package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
  27. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
  28. package/sdk/application/Order/OrderApplicationClient.js +86 -555
  29. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
  30. package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
  31. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
  32. package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
  33. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  34. package/sdk/application/Share/ShareApplicationClient.js +34 -294
  35. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  36. package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
  37. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  38. package/sdk/application/User/UserApplicationClient.js +47 -1817
  39. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  40. package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
  41. package/sdk/application/index.d.ts +0 -19
  42. package/sdk/application/index.js +0 -35
  43. package/sdk/common/Utility.d.ts +1 -1
  44. package/sdk/common/Utility.js +10 -7
  45. package/sdk/common/Validator.d.ts +1 -0
  46. package/sdk/common/Validator.js +20 -0
  47. package/sdk/common/utils.d.ts +0 -1
  48. package/sdk/common/utils.js +0 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  56. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  58. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  65. package/sdk/partner/OAuthClient.js +1 -0
  66. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  67. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  68. package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
  69. package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
  70. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  71. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  72. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  73. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  74. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  75. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  76. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  90. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
  98. package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  110. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  112. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  117. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  118. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  125. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  126. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  127. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  130. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
  132. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  134. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  138. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  139. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  140. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  141. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  142. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  143. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  144. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  145. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  146. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  147. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  148. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  149. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  150. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  151. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
  152. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
  153. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  154. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  155. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
  156. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
  157. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
  158. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
  159. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  160. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  161. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  162. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  163. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  164. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  165. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  166. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  167. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  168. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  169. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  170. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
  173. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
  174. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
  175. package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
  176. package/sdk/platform/Order/OrderPlatformClient.js +275 -528
  177. package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
  178. package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
  179. package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
  180. package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
  181. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  182. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  193. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  194. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  195. package/sdk/platform/PlatformClient.d.ts +2 -0
  196. package/sdk/platform/PlatformClient.js +4 -0
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  199. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  200. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  201. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
  213. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  214. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  215. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  216. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  217. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  218. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  219. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  220. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  221. package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
  222. package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  227. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  228. package/sdk/platform/User/UserPlatformModel.js +23 -23
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  235. package/sdk/platform/index.d.ts +1 -0
  236. package/sdk/platform/index.js +2 -0
  237. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  238. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
  239. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  240. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  241. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  242. package/sdk/public/Content/ContentPublicClient.js +19 -793
  243. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  244. package/sdk/public/Content/ContentPublicModel.js +3 -649
  245. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  246. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  247. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  248. package/sdk/public/Partner/PartnerPublicClient.js +14 -2
  249. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  250. package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
  251. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  252. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  253. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  254. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  255. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
  256. package/sdk/application/Cart/CartApplicationModel.js +0 -2718
  257. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
  258. package/sdk/application/Cart/CartApplicationValidator.js +0 -546
  259. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
  260. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
  261. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  262. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  263. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  264. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  265. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  266. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  267. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  268. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  269. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  270. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  271. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
  272. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
  273. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  274. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  275. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
  276. package/sdk/application/Content/ContentApplicationModel.js +0 -1640
  277. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
  278. package/sdk/application/Content/ContentApplicationValidator.js +0 -269
  279. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
  280. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
  281. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  282. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  285. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  286. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  287. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  288. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
  289. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  290. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  291. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  292. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  293. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
  294. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
  295. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
  296. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
  297. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
  298. package/sdk/application/Order/OrderApplicationModel.js +0 -1669
  299. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
  300. package/sdk/application/Order/OrderApplicationValidator.js +0 -210
  301. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
  302. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
  303. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  304. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  305. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  306. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  307. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  308. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  309. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  310. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  311. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  312. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  313. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
  314. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
  315. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
  316. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
  317. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  318. package/sdk/application/User/UserApplicationModel.js +0 -1382
  319. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  320. package/sdk/application/User/UserApplicationValidator.js +0 -573
  321. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
  322. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
  323. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  324. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  325. package/sdk/common/Clickstream.d.ts +0 -1
  326. package/sdk/common/Clickstream.js +0 -464
@@ -1,12 +1,12 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef UpdateZoneConfigDetails
4
+ * @typedef UpdateZoneConfigRequest
5
5
  * @property {string} [serviceability_type]
6
6
  */
7
7
 
8
8
  /**
9
- * @typedef ServiceabilityErrorResult
9
+ * @typedef ServiceabilityErrorResponse
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 ApplicationServiceabilityConfigResult
24
- * @property {ServiceabilityErrorResult} [error]
23
+ * @typedef ApplicationServiceabilityConfigResponse
24
+ * @property {ServiceabilityErrorResponse} [error]
25
25
  * @property {ApplicationServiceabilityConfig} [data]
26
26
  * @property {boolean} success
27
27
  */
28
28
 
29
29
  /**
30
- * @typedef EntityRegionView_Details
30
+ * @typedef EntityRegionView_Request
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 getAppRegionZonesResult
52
+ * @typedef getAppRegionZonesResponse
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_Result
74
+ * @typedef EntityRegionView_Response
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 ListViewResult
126
+ * @typedef ListViewResponse
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_Result
141
+ * @typedef CompanyStoreView_Response
142
142
  * @property {CompanyStoreView_PageItems[]} page
143
143
  * @property {Object[]} [items]
144
144
  */
@@ -155,11 +155,25 @@ const Joi = require("joi");
155
155
  * @property {string[]} tags
156
156
  */
157
157
 
158
+ /**
159
+ * @typedef ZoneMappingDetailType
160
+ * @property {string} country - Uid for the country.
161
+ * @property {ZoneMappingRegions[]} [regions] - List of regions with its details.
162
+ */
163
+
158
164
  /**
159
165
  * @typedef ZoneMappingType
160
166
  * @property {string} country
161
- * @property {string[]} [pincode]
162
- * @property {string[]} [state]
167
+ * @property {string[]} regions
168
+ */
169
+
170
+ /**
171
+ * @typedef ZoneMappingRegions
172
+ * @property {string} [display_name] - Name of the region that is in proper casing.
173
+ * @property {string[]} [parent_id]
174
+ * @property {string} [parent_uid] - Unique identifier for that regions parent.
175
+ * @property {string} [sub_type] - What type does the region belong to.
176
+ * @property {string} [uid] - Unique identifier for that region.
163
177
  */
164
178
 
165
179
  /**
@@ -174,17 +188,16 @@ const Joi = require("joi");
174
188
  * @property {number[]} store_ids
175
189
  * @property {string} region_type
176
190
  * @property {ZoneMappingType[]} mapping
177
- * @property {string} [assignment_preference]
178
191
  */
179
192
 
180
193
  /**
181
- * @typedef ZoneUpdateDetails
194
+ * @typedef ZoneUpdateRequest
182
195
  * @property {string} identifier
183
196
  * @property {UpdateZoneData} data
184
197
  */
185
198
 
186
199
  /**
187
- * @typedef ZoneSuccessResult
200
+ * @typedef ZoneSuccessResponse
188
201
  * @property {number} status_code
189
202
  * @property {boolean} success
190
203
  */
@@ -201,12 +214,11 @@ const Joi = require("joi");
201
214
  * @property {number[]} store_ids
202
215
  * @property {string} [region_type]
203
216
  * @property {ZoneMappingType[]} mapping
204
- * @property {string} [assignment_preference]
205
217
  * @property {number} stores_count
206
218
  */
207
219
 
208
220
  /**
209
- * @typedef GetSingleZoneDataViewResult
221
+ * @typedef GetSingleZoneDataViewResponse
210
222
  * @property {GetZoneDataViewItems} data
211
223
  */
212
224
 
@@ -221,9 +233,7 @@ const Joi = require("joi");
221
233
  * @property {ZoneProductTypes} product
222
234
  * @property {number[]} store_ids
223
235
  * @property {string} region_type
224
- * @property {ZoneMappingType[]} mapping
225
- * @property {string} [assignment_preference]
226
- * @property {number} stores_count
236
+ * @property {ZoneMappingDetailType[]} mapping - Country to region mapping for the zone.
227
237
  */
228
238
 
229
239
  /**
@@ -234,20 +244,20 @@ const Joi = require("joi");
234
244
  * @property {boolean} is_active
235
245
  * @property {GetZoneDataViewChannels[]} channels
236
246
  * @property {number[]} store_ids
247
+ * @property {ZoneProductTypes} product
237
248
  * @property {string} region_type
238
249
  * @property {ZoneMappingType[]} mapping
239
- * @property {string} [assignment_preference]
240
250
  */
241
251
 
242
252
  /**
243
- * @typedef ZoneResult
253
+ * @typedef ZoneResponse
244
254
  * @property {number} status_code
245
255
  * @property {string} zone_id
246
256
  * @property {boolean} success
247
257
  */
248
258
 
249
259
  /**
250
- * @typedef GetZoneFromPincodeViewDetails
260
+ * @typedef GetZoneFromPincodeViewRequest
251
261
  * @property {string} country
252
262
  * @property {string} pincode
253
263
  */
@@ -261,23 +271,22 @@ const Joi = require("joi");
261
271
  * @property {string} slug
262
272
  * @property {boolean} is_active
263
273
  * @property {number[]} store_ids
264
- * @property {string} assignment_preference
265
274
  */
266
275
 
267
276
  /**
268
- * @typedef GetZoneFromPincodeViewResult
277
+ * @typedef GetZoneFromPincodeViewResponse
269
278
  * @property {string} serviceability_type
270
279
  * @property {Zone[]} zones
271
280
  */
272
281
 
273
282
  /**
274
- * @typedef GetZoneFromApplicationIdViewResult
283
+ * @typedef GetZoneFromApplicationIdViewResponse
275
284
  * @property {ZoneDataItem[]} page
276
285
  * @property {ListViewItems[]} items
277
286
  */
278
287
 
279
288
  /**
280
- * @typedef ServiceabilityPageResult
289
+ * @typedef ServiceabilityPageResponse
281
290
  * @property {string} [type]
282
291
  * @property {boolean} [has_next]
283
292
  * @property {number} [item_total]
@@ -292,37 +301,37 @@ const Joi = require("joi");
292
301
  */
293
302
 
294
303
  /**
295
- * @typedef ManagerResult
304
+ * @typedef ManagerResponse
296
305
  * @property {string} [email]
297
306
  * @property {MobileNo} [mobile_no]
298
307
  * @property {string} [name]
299
308
  */
300
309
 
301
310
  /**
302
- * @typedef ModifiedByResult
311
+ * @typedef ModifiedByResponse
303
312
  * @property {string} [username]
304
313
  * @property {string} [user_id]
305
314
  */
306
315
 
307
316
  /**
308
- * @typedef IntegrationTypeResult
317
+ * @typedef IntegrationTypeResponse
309
318
  * @property {string} [inventory]
310
319
  * @property {string} [order]
311
320
  */
312
321
 
313
322
  /**
314
- * @typedef ProductReturnConfigResult
323
+ * @typedef ProductReturnConfigResponse
315
324
  * @property {boolean} [on_same_store]
316
325
  */
317
326
 
318
327
  /**
319
- * @typedef ContactNumberResult
328
+ * @typedef ContactNumberResponse
320
329
  * @property {string} [number]
321
330
  * @property {number} [country_code]
322
331
  */
323
332
 
324
333
  /**
325
- * @typedef AddressResult
334
+ * @typedef AddressResponse
326
335
  * @property {string} [city]
327
336
  * @property {string} [address1]
328
337
  * @property {number} [pincode]
@@ -335,29 +344,29 @@ const Joi = require("joi");
335
344
  */
336
345
 
337
346
  /**
338
- * @typedef CreatedByResult
347
+ * @typedef CreatedByResponse
339
348
  * @property {string} [username]
340
349
  * @property {string} [user_id]
341
350
  */
342
351
 
343
352
  /**
344
- * @typedef EwayBillResult
353
+ * @typedef EwayBillResponse
345
354
  * @property {boolean} [enabled]
346
355
  */
347
356
 
348
357
  /**
349
- * @typedef EinvoiceResult
358
+ * @typedef EinvoiceResponse
350
359
  * @property {boolean} [enabled]
351
360
  */
352
361
 
353
362
  /**
354
- * @typedef GstCredentialsResult
355
- * @property {EwayBillResult} [e_waybill]
356
- * @property {EinvoiceResult} [e_invoice]
363
+ * @typedef GstCredentialsResponse
364
+ * @property {EwayBillResponse} [e_waybill]
365
+ * @property {EinvoiceResponse} [e_invoice]
357
366
  */
358
367
 
359
368
  /**
360
- * @typedef WarningsResult
369
+ * @typedef WarningsResponse
361
370
  * @property {string} [store_address]
362
371
  */
363
372
 
@@ -368,7 +377,7 @@ const Joi = require("joi");
368
377
  */
369
378
 
370
379
  /**
371
- * @typedef TimmingResult
380
+ * @typedef TimmingResponse
372
381
  * @property {boolean} [open]
373
382
  * @property {string} [weekday]
374
383
  * @property {OpeningClosing} [closing]
@@ -376,7 +385,7 @@ const Joi = require("joi");
376
385
  */
377
386
 
378
387
  /**
379
- * @typedef DocumentsResult
388
+ * @typedef DocumentsResponse
380
389
  * @property {string} [legal_name]
381
390
  * @property {string} [value]
382
391
  * @property {string} [type]
@@ -398,47 +407,47 @@ const Joi = require("joi");
398
407
  */
399
408
 
400
409
  /**
401
- * @typedef LogisticsResult
410
+ * @typedef LogisticsResponse
402
411
  * @property {boolean} [override]
403
412
  * @property {Dp} [dp]
404
413
  */
405
414
 
406
415
  /**
407
- * @typedef ItemResult
416
+ * @typedef ItemResponse
408
417
  * @property {string} [created_on]
409
- * @property {ManagerResult} [manager]
410
- * @property {ModifiedByResult} [modified_by]
411
- * @property {IntegrationTypeResult} [integration_type]
418
+ * @property {ManagerResponse} [manager]
419
+ * @property {ModifiedByResponse} [modified_by]
420
+ * @property {IntegrationTypeResponse} [integration_type]
412
421
  * @property {string} [verified_on]
413
- * @property {ProductReturnConfigResult} [product_return_config]
414
- * @property {ContactNumberResult[]} [contact_numbers]
415
- * @property {ModifiedByResult} [verified_by]
422
+ * @property {ProductReturnConfigResponse} [product_return_config]
423
+ * @property {ContactNumberResponse[]} [contact_numbers]
424
+ * @property {ModifiedByResponse} [verified_by]
416
425
  * @property {string} [stage]
417
- * @property {AddressResult} [address]
426
+ * @property {AddressResponse} [address]
418
427
  * @property {string} [modified_on]
419
- * @property {CreatedByResult} [created_by]
420
- * @property {GstCredentialsResult} [gst_credentials]
428
+ * @property {CreatedByResponse} [created_by]
429
+ * @property {GstCredentialsResponse} [gst_credentials]
421
430
  * @property {string} [display_name]
422
431
  * @property {number} [company_id]
423
432
  * @property {number} [uid]
424
433
  * @property {Object} [_custom_json]
425
434
  * @property {string} [code]
426
- * @property {WarningsResult} [warnings]
435
+ * @property {WarningsResponse} [warnings]
427
436
  * @property {string} [name]
428
- * @property {TimmingResult[]} [timing]
429
- * @property {DocumentsResult[]} [documents]
437
+ * @property {TimmingResponse[]} [timing]
438
+ * @property {DocumentsResponse[]} [documents]
430
439
  * @property {string} [store_type]
431
440
  * @property {string} [sub_type]
432
441
  * @property {number} [company]
433
442
  * @property {string} [_cls]
434
- * @property {LogisticsResult} [logistics]
443
+ * @property {LogisticsResponse} [logistics]
435
444
  * @property {string[]} [notification_emails]
436
445
  */
437
446
 
438
447
  /**
439
- * @typedef GetStoresViewResult
440
- * @property {ServiceabilityPageResult} page
441
- * @property {ItemResult[]} [items]
448
+ * @typedef GetStoresViewResponse
449
+ * @property {ServiceabilityPageResponse} page
450
+ * @property {ItemResponse[]} [items]
442
451
  */
443
452
 
444
453
  /**
@@ -449,7 +458,7 @@ const Joi = require("joi");
449
458
  */
450
459
 
451
460
  /**
452
- * @typedef PincodeMopUpdateResult
461
+ * @typedef PincodeMopUpdateResponse
453
462
  * @property {number} pincode
454
463
  * @property {string} channel_id
455
464
  * @property {string} country
@@ -457,14 +466,14 @@ const Joi = require("joi");
457
466
  */
458
467
 
459
468
  /**
460
- * @typedef PincodeMOPResult
469
+ * @typedef PincodeMOPresponse
461
470
  * @property {boolean} success
462
471
  * @property {number} status_code
463
472
  * @property {string} batch_id
464
473
  * @property {string} country
465
474
  * @property {string} action
466
475
  * @property {number[]} [pincodes]
467
- * @property {PincodeMopUpdateResult[]} [updated_pincodes]
476
+ * @property {PincodeMopUpdateResponse[]} [updated_pincodes]
468
477
  */
469
478
 
470
479
  /**
@@ -481,13 +490,13 @@ const Joi = require("joi");
481
490
  */
482
491
 
483
492
  /**
484
- * @typedef PincodeBulkViewResult
493
+ * @typedef PincodeBulkViewResponse
485
494
  * @property {string} batch_id
486
495
  * @property {string} s3_url
487
496
  */
488
497
 
489
498
  /**
490
- * @typedef PincodeCodStatusListingDetails
499
+ * @typedef PincodeCodStatusListingRequest
491
500
  * @property {string} [country]
492
501
  * @property {boolean} [is_active]
493
502
  * @property {number} [pincode]
@@ -496,9 +505,9 @@ const Joi = require("joi");
496
505
  */
497
506
 
498
507
  /**
499
- * @typedef PincodeCodStatusListingResult
508
+ * @typedef PincodeCodStatusListingResponse
500
509
  * @property {string} country
501
- * @property {PincodeCodStatusListingResult[]} data
510
+ * @property {PincodeCodStatusListingResponse[]} data
502
511
  * @property {boolean} success
503
512
  * @property {Error[]} [errors]
504
513
  * @property {PincodeCodStatusListingPage} page
@@ -528,7 +537,7 @@ const Joi = require("joi");
528
537
  */
529
538
 
530
539
  /**
531
- * @typedef PincodeMopUpdateAuditHistoryDetails
540
+ * @typedef PincodeMopUpdateAuditHistoryRequest
532
541
  * @property {string} entity_type
533
542
  * @property {string} [file_name]
534
543
  */
@@ -543,7 +552,7 @@ const Joi = require("joi");
543
552
  */
544
553
 
545
554
  /**
546
- * @typedef PincodeMopUpdateAuditHistoryResult
555
+ * @typedef PincodeMopUpdateAuditHistoryResponse
547
556
  * @property {string} [batch_id]
548
557
  * @property {string} [entity_type]
549
558
  * @property {string} [error_file_s3_url]
@@ -555,10 +564,10 @@ const Joi = require("joi");
555
564
  */
556
565
 
557
566
  /**
558
- * @typedef PincodeMopUpdateAuditHistoryResultData
567
+ * @typedef PincodeMopUpdateAuditHistoryResponseData
559
568
  * @property {string} [entity_type]
560
569
  * @property {PincodeMopUpdateAuditHistoryPaging} page
561
- * @property {PincodeMopUpdateAuditHistoryResult[]} data
570
+ * @property {PincodeMopUpdateAuditHistoryResponse[]} data
562
571
  */
563
572
 
564
573
  /**
@@ -600,7 +609,7 @@ const Joi = require("joi");
600
609
  */
601
610
 
602
611
  /**
603
- * @typedef CourierAccountDetailsBody
612
+ * @typedef CourierAccountRequestBody
604
613
  * @property {string} extension_id
605
614
  * @property {string} [account_id]
606
615
  * @property {string} scheme_id
@@ -610,16 +619,16 @@ const Joi = require("joi");
610
619
  */
611
620
 
612
621
  /**
613
- * @typedef ErrorResult
622
+ * @typedef ErrorResponse
614
623
  * @property {string} value
615
624
  * @property {string} message
616
625
  * @property {string} type
617
626
  */
618
627
 
619
628
  /**
620
- * @typedef CourierPartnerAccountFailureResult
629
+ * @typedef CourierPartnerAccountFailureResponse
621
630
  * @property {boolean} success
622
- * @property {ErrorResult[]} error
631
+ * @property {ErrorResponse[]} error
623
632
  */
624
633
 
625
634
  /**
@@ -634,7 +643,7 @@ const Joi = require("joi");
634
643
  */
635
644
 
636
645
  /**
637
- * @typedef CourierPartnerRuleCPListResult
646
+ * @typedef CourierPartnerRuleCPListResponse
638
647
  * @property {string} [account_id]
639
648
  * @property {string} [extension_id]
640
649
  * @property {boolean} [is_self_ship]
@@ -642,7 +651,7 @@ const Joi = require("joi");
642
651
  */
643
652
 
644
653
  /**
645
- * @typedef CourierPartnerRuleResult
654
+ * @typedef CourierPartnerRuleResponse
646
655
  * @property {boolean} [is_active]
647
656
  * @property {string} [application_id]
648
657
  * @property {number} [company_id]
@@ -654,7 +663,7 @@ const Joi = require("joi");
654
663
  * @property {string} [modified_on]
655
664
  * @property {string} [name]
656
665
  * @property {string} [type]
657
- * @property {CourierPartnerRuleCPListResult[]} [cp_list]
666
+ * @property {CourierPartnerRuleCPListResponse[]} [cp_list]
658
667
  */
659
668
 
660
669
  /**
@@ -719,91 +728,17 @@ const Joi = require("joi");
719
728
  */
720
729
 
721
730
  /**
722
- * @typedef FailureResult
731
+ * @typedef FailureResponse
723
732
  * @property {boolean} success
724
- * @property {ErrorResult[]} error
733
+ * @property {ErrorResponse[]} error
725
734
  */
726
735
 
727
736
  /**
728
- * @typedef CourierPartnerRulesListResult
729
- * @property {CourierPartnerRuleResult[]} items
737
+ * @typedef CourierPartnerRulesListResponse
738
+ * @property {CourierPartnerRuleResponse[]} items
730
739
  * @property {Page} page
731
740
  */
732
741
 
733
- /**
734
- * @typedef ShipmentsArticles
735
- * @property {number} [item_id] - Unique identifier of the item.
736
- * @property {number} [category_id] - Unique identifier of the category.
737
- * @property {number} [brand_id] - Unique identifier of the brand.
738
- * @property {number} [department_id] - Unique identifier of the department.
739
- * @property {string[]} [tags] - Tags associated with the item.
740
- */
741
-
742
- /**
743
- * @typedef ShipmentDimension
744
- * @property {number} height - Height of the shipment in centimeters.
745
- * @property {number} length - Length of the shipment in centimeters.
746
- * @property {number} width - Width of the shipment in centimeters.
747
- */
748
-
749
- /**
750
- * @typedef Shipments
751
- * @property {string} [id] - Unique identifier of the shipment.
752
- * @property {number} [location_id] - Unique identifier of the selling location.
753
- * @property {string[]} [location_tags] - Tags associated with the selling location.
754
- * @property {number} [shipment_weight] - Weight of the shipment.
755
- * @property {number} [shipment_volumetric_weight] - Volumetric weight of the shipment.
756
- * @property {number} [shipment_cost] - Total Cost of the shipment.
757
- * @property {ShipmentDimension} [shipment_dimension]
758
- * @property {string[]} [courier_partner_schemes] - A List of courier schemes.
759
- * @property {ShipmentsArticles[]} [articles] - List of articles in the shipment.
760
- */
761
-
762
- /**
763
- * @typedef ShipmentCourierPartnerDetails
764
- * @property {ShipmentsCourierPartnersServiceability} from_location
765
- * @property {ShipmentsCourierPartnersServiceability} to_location
766
- * @property {Shipments[]} [shipments] - List of shipments.
767
- * @property {string} [journey] - Journey type of the shipment forward or return.
768
- * @property {string} [payment_mode] - Payment mode opted for the shipment.
769
- */
770
-
771
- /**
772
- * @typedef CourierPartnerPromise
773
- * @property {string} min - The earliest possible timestamp.
774
- * @property {string} max - The latest possible timestamp.
775
- */
776
-
777
- /**
778
- * @typedef CourierPartners
779
- * @property {string} [extension_id] - Unique identifier of courier partner extension.
780
- * @property {string} [scheme_id] - Unique identifier of courier partner scheme.
781
- * @property {string} [name] - Name of the courier partner.
782
- * @property {CourierPartnerPromise} [delivery_promise]
783
- */
784
-
785
- /**
786
- * @typedef ShipmentCourierPartners
787
- * @property {string} [id] - Unique identifier of the shipment.
788
- * @property {CourierPartners[]} [courier_partners] - Courier partners of the shipment.
789
- */
790
-
791
- /**
792
- * @typedef ShipmentCourierPartnerResult
793
- * @property {CourierPartners[]} [courier_partners]
794
- * @property {ShipmentCourierPartners[]} [shipments]
795
- */
796
-
797
- /**
798
- * @typedef ShipmentsCourierPartnersServiceability
799
- * @property {string} [pincode] - Postal code or PIN code of the address area.
800
- * @property {string} [sector_code] - Specifies the sector or district code of
801
- * the address if applicable.
802
- * @property {string} [state_code] - Indicates the state or province code of the address.
803
- * @property {string} [city_code] - Denote the city or municipality code of the address.
804
- * @property {string} country_code - ISO2 code for the country of the address.
805
- */
806
-
807
742
  /**
808
743
  * @typedef CompanyConfig
809
744
  * @property {string[]} rule_ids
@@ -824,7 +759,7 @@ const Joi = require("joi");
824
759
  */
825
760
 
826
761
  /**
827
- * @typedef BulkRegionJobDetails
762
+ * @typedef BulkRegionJobSerializer
828
763
  * @property {string} [file_path]
829
764
  * @property {string} country
830
765
  * @property {string} action
@@ -832,7 +767,7 @@ const Joi = require("joi");
832
767
  */
833
768
 
834
769
  /**
835
- * @typedef BulkRegionResultItemData
770
+ * @typedef BulkRegionResponseItemData
836
771
  * @property {string} file_path
837
772
  * @property {number} [failed]
838
773
  * @property {Object[]} [failed_records]
@@ -847,25 +782,25 @@ const Joi = require("joi");
847
782
  */
848
783
 
849
784
  /**
850
- * @typedef BulkRegionResult
851
- * @property {BulkRegionResultItemData[]} items
785
+ * @typedef BulkRegionResponse
786
+ * @property {BulkRegionResponseItemData[]} items
852
787
  * @property {Page} page
853
788
  */
854
789
 
855
790
  /**
856
- * @typedef SelfShipResult
791
+ * @typedef SelfShipResponse
857
792
  * @property {boolean} is_active
858
793
  * @property {number} tat
859
794
  */
860
795
 
861
796
  /**
862
797
  * @typedef ApplicationSelfShipConfig
863
- * @property {SelfShipResult} [self_ship]
798
+ * @property {Object} [self_ship]
864
799
  */
865
800
 
866
801
  /**
867
- * @typedef ApplicationSelfShipConfigResult
868
- * @property {ServiceabilityErrorResult} [error]
802
+ * @typedef ApplicationSelfShipConfigResponse
803
+ * @property {ServiceabilityErrorResponse} [error]
869
804
  * @property {ApplicationSelfShipConfig} [data]
870
805
  * @property {boolean} success
871
806
  */
@@ -924,13 +859,13 @@ const Joi = require("joi");
924
859
  */
925
860
 
926
861
  /**
927
- * @typedef GetStoreRulesApiResult
862
+ * @typedef GetStoreRulesApiResponse
928
863
  * @property {StoreRuleDataSchema[]} [items]
929
864
  * @property {Page} [page]
930
865
  */
931
866
 
932
867
  /**
933
- * @typedef CreateStoreRuleDetailsSchema
868
+ * @typedef CreateStoreRuleRequestSchema
934
869
  * @property {string} [name]
935
870
  * @property {boolean} [is_active]
936
871
  * @property {StoreRuleConditionSchema} [conditions]
@@ -941,7 +876,7 @@ const Joi = require("joi");
941
876
  */
942
877
 
943
878
  /**
944
- * @typedef StoreRuleResultSchema
879
+ * @typedef StoreRuleResponseSchema
945
880
  * @property {string} [id]
946
881
  * @property {string} [name]
947
882
  * @property {string} [type]
@@ -954,7 +889,7 @@ const Joi = require("joi");
954
889
  */
955
890
 
956
891
  /**
957
- * @typedef StoreRuleUpdateResultSchema
892
+ * @typedef StoreRuleUpdateResponseSchema
958
893
  * @property {string} [id]
959
894
  * @property {string} [name]
960
895
  * @property {string} [type]
@@ -972,8 +907,8 @@ const Joi = require("joi");
972
907
  * @typedef ServiceabilityModel
973
908
  * @property {number} lm_cod_limit
974
909
  * @property {boolean} is_qc
975
- * @property {string} [pickup_cutoff]
976
- * @property {string} [route_code]
910
+ * @property {string} pickup_cutoff
911
+ * @property {string} route_code
977
912
  * @property {boolean} is_first_mile
978
913
  * @property {boolean} is_return
979
914
  * @property {boolean} is_installation
@@ -1016,7 +951,7 @@ const Joi = require("joi");
1016
951
  */
1017
952
 
1018
953
  /**
1019
- * @typedef CourierAccountResult
954
+ * @typedef CourierAccountResponse
1020
955
  * @property {string} account_id
1021
956
  * @property {string} scheme_id
1022
957
  * @property {boolean} is_self_ship
@@ -1026,8 +961,8 @@ const Joi = require("joi");
1026
961
  */
1027
962
 
1028
963
  /**
1029
- * @typedef CompanyCourierPartnerAccountListResult
1030
- * @property {CourierAccountResult[]} items
964
+ * @typedef CompanyCourierPartnerAccountListResponse
965
+ * @property {CourierAccountResponse[]} items
1031
966
  * @property {Page} page
1032
967
  */
1033
968
 
@@ -1053,7 +988,7 @@ const Joi = require("joi");
1053
988
  */
1054
989
 
1055
990
  /**
1056
- * @typedef PackageMaterialResult
991
+ * @typedef PackageMaterialResponse
1057
992
  * @property {string} name
1058
993
  * @property {string} [id]
1059
994
  * @property {number} [item_id]
@@ -1094,7 +1029,7 @@ const Joi = require("joi");
1094
1029
  */
1095
1030
 
1096
1031
  /**
1097
- * @typedef PackageRuleResult
1032
+ * @typedef PackageRuleResponse
1098
1033
  * @property {string} [id]
1099
1034
  * @property {string} name
1100
1035
  * @property {number} company_id
@@ -1113,13 +1048,13 @@ const Joi = require("joi");
1113
1048
 
1114
1049
  /**
1115
1050
  * @typedef PackageMaterialRuleList
1116
- * @property {PackageRuleResult} [items]
1051
+ * @property {PackageRuleResponse} [items]
1117
1052
  * @property {Page} [page]
1118
1053
  */
1119
1054
 
1120
1055
  /**
1121
1056
  * @typedef PackageMaterialList
1122
- * @property {PackageMaterialResult} [items]
1057
+ * @property {PackageMaterialResponse} [items]
1123
1058
  * @property {Page} [page]
1124
1059
  */
1125
1060
 
@@ -1145,13 +1080,13 @@ const Joi = require("joi");
1145
1080
  */
1146
1081
 
1147
1082
  /**
1148
- * @typedef RulePriorityDetails
1083
+ * @typedef RulePriorityRequest
1149
1084
  * @property {string} rule_id
1150
1085
  * @property {number} priority
1151
1086
  */
1152
1087
 
1153
1088
  /**
1154
- * @typedef RulePriorityResult
1089
+ * @typedef RulePriorityResponse
1155
1090
  * @property {boolean} [success]
1156
1091
  */
1157
1092
 
@@ -1183,7 +1118,7 @@ const Joi = require("joi");
1183
1118
  * @typedef OptimalLocationsArticles
1184
1119
  * @property {number} item_id
1185
1120
  * @property {string} size
1186
- * @property {number} quantity
1121
+ * @property {string} quantity
1187
1122
  * @property {string} [group_id]
1188
1123
  * @property {boolean} [is_primary_item]
1189
1124
  * @property {Object} [meta]
@@ -1194,16 +1129,16 @@ const Joi = require("joi");
1194
1129
  */
1195
1130
 
1196
1131
  /**
1197
- * @typedef OptimlLocationsDetailsSchema
1132
+ * @typedef OptimlLocationsRequestSchema
1198
1133
  * @property {string} channel_id
1199
1134
  * @property {string} channel_type
1200
1135
  * @property {string} [channel_identifier]
1201
1136
  * @property {LocationDetailsServiceability} to_serviceability
1202
- * @property {OptimalLocationsArticles[]} [articles]
1137
+ * @property {OptimalLocationsArticles} [article]
1203
1138
  */
1204
1139
 
1205
1140
  /**
1206
- * @typedef OptimalLocationArticlesResult
1141
+ * @typedef OptimalLocationArticlesResponse
1207
1142
  * @property {number} item_id
1208
1143
  * @property {string} size
1209
1144
  * @property {number} quantity
@@ -1221,38 +1156,27 @@ const Joi = require("joi");
1221
1156
  */
1222
1157
 
1223
1158
  /**
1224
- * @typedef OptimalLocationAssignedStoresResult
1159
+ * @typedef OptimalLocationAssignedStoresResponse
1225
1160
  * @property {number} store_id
1226
- * @property {OptimalLocationArticlesResult[]} articles
1227
- */
1228
-
1229
- /**
1230
- * @typedef OptimalLocationsResult
1231
- * @property {OptimalLocationAssignedStoresResult[]} assigned_stores
1232
- * @property {ErrorResult[]} [faulty_articles]
1233
- */
1234
-
1235
- /**
1236
- * @typedef ValidationError
1237
- * @property {string} message - A brief description of the error encountered.
1238
- * @property {string} field - The field in the request that caused the error.
1161
+ * @property {OptimalLocationArticlesResponse[]} articles
1239
1162
  */
1240
1163
 
1241
1164
  /**
1242
- * @typedef StandardError
1243
- * @property {string} message - A brief description of the error.
1165
+ * @typedef OptimalLocationsResponse
1166
+ * @property {OptimalLocationAssignedStoresResponse[]} assigned_stores
1167
+ * @property {ErrorResponse[]} [faulty_articles]
1244
1168
  */
1245
1169
 
1246
1170
  class ServiceabilityPlatformModel {
1247
- /** @returns {UpdateZoneConfigDetails} */
1248
- static UpdateZoneConfigDetails() {
1171
+ /** @returns {UpdateZoneConfigRequest} */
1172
+ static UpdateZoneConfigRequest() {
1249
1173
  return Joi.object({
1250
1174
  serviceability_type: Joi.string().allow(""),
1251
1175
  });
1252
1176
  }
1253
1177
 
1254
- /** @returns {ServiceabilityErrorResult} */
1255
- static ServiceabilityErrorResult() {
1178
+ /** @returns {ServiceabilityErrorResponse} */
1179
+ static ServiceabilityErrorResponse() {
1256
1180
  return Joi.object({
1257
1181
  message: Joi.string().allow("").required(),
1258
1182
  value: Joi.string().allow("").required(),
@@ -1269,17 +1193,17 @@ class ServiceabilityPlatformModel {
1269
1193
  });
1270
1194
  }
1271
1195
 
1272
- /** @returns {ApplicationServiceabilityConfigResult} */
1273
- static ApplicationServiceabilityConfigResult() {
1196
+ /** @returns {ApplicationServiceabilityConfigResponse} */
1197
+ static ApplicationServiceabilityConfigResponse() {
1274
1198
  return Joi.object({
1275
- error: ServiceabilityPlatformModel.ServiceabilityErrorResult(),
1199
+ error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
1276
1200
  data: ServiceabilityPlatformModel.ApplicationServiceabilityConfig(),
1277
1201
  success: Joi.boolean().required(),
1278
1202
  });
1279
1203
  }
1280
1204
 
1281
- /** @returns {EntityRegionView_Details} */
1282
- static EntityRegionView_Details() {
1205
+ /** @returns {EntityRegionView_Request} */
1206
+ static EntityRegionView_Request() {
1283
1207
  return Joi.object({
1284
1208
  sub_type: Joi.array().items(Joi.string().allow("")).required(),
1285
1209
  parent_id: Joi.array().items(Joi.string().allow("")),
@@ -1306,8 +1230,8 @@ class ServiceabilityPlatformModel {
1306
1230
  });
1307
1231
  }
1308
1232
 
1309
- /** @returns {getAppRegionZonesResult} */
1310
- static getAppRegionZonesResult() {
1233
+ /** @returns {getAppRegionZonesResponse} */
1234
+ static getAppRegionZonesResponse() {
1311
1235
  return Joi.object({
1312
1236
  page: Joi.array()
1313
1237
  .items(ServiceabilityPlatformModel.PageSchema())
@@ -1338,8 +1262,8 @@ class ServiceabilityPlatformModel {
1338
1262
  });
1339
1263
  }
1340
1264
 
1341
- /** @returns {EntityRegionView_Result} */
1342
- static EntityRegionView_Result() {
1265
+ /** @returns {EntityRegionView_Response} */
1266
+ static EntityRegionView_Response() {
1343
1267
  return Joi.object({
1344
1268
  error: ServiceabilityPlatformModel.EntityRegionView_Error().required(),
1345
1269
  page: ServiceabilityPlatformModel.EntityRegionView_page().required(),
@@ -1403,8 +1327,8 @@ class ServiceabilityPlatformModel {
1403
1327
  });
1404
1328
  }
1405
1329
 
1406
- /** @returns {ListViewResult} */
1407
- static ListViewResult() {
1330
+ /** @returns {ListViewResponse} */
1331
+ static ListViewResponse() {
1408
1332
  return Joi.object({
1409
1333
  page: ServiceabilityPlatformModel.ZoneDataItem().required(),
1410
1334
  items: Joi.array()
@@ -1424,8 +1348,8 @@ class ServiceabilityPlatformModel {
1424
1348
  });
1425
1349
  }
1426
1350
 
1427
- /** @returns {CompanyStoreView_Result} */
1428
- static CompanyStoreView_Result() {
1351
+ /** @returns {CompanyStoreView_Response} */
1352
+ static CompanyStoreView_Response() {
1429
1353
  return Joi.object({
1430
1354
  page: Joi.array()
1431
1355
  .items(ServiceabilityPlatformModel.CompanyStoreView_PageItems())
@@ -1450,12 +1374,32 @@ class ServiceabilityPlatformModel {
1450
1374
  });
1451
1375
  }
1452
1376
 
1377
+ /** @returns {ZoneMappingDetailType} */
1378
+ static ZoneMappingDetailType() {
1379
+ return Joi.object({
1380
+ country: Joi.string().allow("").required(),
1381
+ regions: Joi.array().items(
1382
+ ServiceabilityPlatformModel.ZoneMappingRegions()
1383
+ ),
1384
+ });
1385
+ }
1386
+
1453
1387
  /** @returns {ZoneMappingType} */
1454
1388
  static ZoneMappingType() {
1455
1389
  return Joi.object({
1456
1390
  country: Joi.string().allow("").required(),
1457
- pincode: Joi.array().items(Joi.string().allow("")),
1458
- state: Joi.array().items(Joi.string().allow("")),
1391
+ regions: Joi.array().items(Joi.string().allow("")).required(),
1392
+ });
1393
+ }
1394
+
1395
+ /** @returns {ZoneMappingRegions} */
1396
+ static ZoneMappingRegions() {
1397
+ return Joi.object({
1398
+ display_name: Joi.string().allow(""),
1399
+ parent_id: Joi.array().items(Joi.string().allow("")),
1400
+ parent_uid: Joi.string().allow(""),
1401
+ sub_type: Joi.string().allow(""),
1402
+ uid: Joi.string().allow(""),
1459
1403
  });
1460
1404
  }
1461
1405
 
@@ -1476,20 +1420,19 @@ class ServiceabilityPlatformModel {
1476
1420
  mapping: Joi.array()
1477
1421
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1478
1422
  .required(),
1479
- assignment_preference: Joi.string().allow(""),
1480
1423
  });
1481
1424
  }
1482
1425
 
1483
- /** @returns {ZoneUpdateDetails} */
1484
- static ZoneUpdateDetails() {
1426
+ /** @returns {ZoneUpdateRequest} */
1427
+ static ZoneUpdateRequest() {
1485
1428
  return Joi.object({
1486
1429
  identifier: Joi.string().allow("").required(),
1487
1430
  data: ServiceabilityPlatformModel.UpdateZoneData().required(),
1488
1431
  });
1489
1432
  }
1490
1433
 
1491
- /** @returns {ZoneSuccessResult} */
1492
- static ZoneSuccessResult() {
1434
+ /** @returns {ZoneSuccessResponse} */
1435
+ static ZoneSuccessResponse() {
1493
1436
  return Joi.object({
1494
1437
  status_code: Joi.number().required(),
1495
1438
  success: Joi.boolean().required(),
@@ -1513,13 +1456,12 @@ class ServiceabilityPlatformModel {
1513
1456
  mapping: Joi.array()
1514
1457
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1515
1458
  .required(),
1516
- assignment_preference: Joi.string().allow(""),
1517
1459
  stores_count: Joi.number().required(),
1518
1460
  });
1519
1461
  }
1520
1462
 
1521
- /** @returns {GetSingleZoneDataViewResult} */
1522
- static GetSingleZoneDataViewResult() {
1463
+ /** @returns {GetSingleZoneDataViewResponse} */
1464
+ static GetSingleZoneDataViewResponse() {
1523
1465
  return Joi.object({
1524
1466
  data: ServiceabilityPlatformModel.GetZoneDataViewItems().required(),
1525
1467
  });
@@ -1540,10 +1482,8 @@ class ServiceabilityPlatformModel {
1540
1482
  store_ids: Joi.array().items(Joi.number()).required(),
1541
1483
  region_type: Joi.string().allow("").required(),
1542
1484
  mapping: Joi.array()
1543
- .items(ServiceabilityPlatformModel.ZoneMappingType())
1485
+ .items(ServiceabilityPlatformModel.ZoneMappingDetailType())
1544
1486
  .required(),
1545
- assignment_preference: Joi.string().allow(""),
1546
- stores_count: Joi.number().required(),
1547
1487
  });
1548
1488
  }
1549
1489
 
@@ -1558,16 +1498,16 @@ class ServiceabilityPlatformModel {
1558
1498
  .items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
1559
1499
  .required(),
1560
1500
  store_ids: Joi.array().items(Joi.number()).required(),
1501
+ product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
1561
1502
  region_type: Joi.string().allow("").required(),
1562
1503
  mapping: Joi.array()
1563
1504
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1564
1505
  .required(),
1565
- assignment_preference: Joi.string().allow(""),
1566
1506
  });
1567
1507
  }
1568
1508
 
1569
- /** @returns {ZoneResult} */
1570
- static ZoneResult() {
1509
+ /** @returns {ZoneResponse} */
1510
+ static ZoneResponse() {
1571
1511
  return Joi.object({
1572
1512
  status_code: Joi.number().required(),
1573
1513
  zone_id: Joi.string().allow("").required(),
@@ -1575,8 +1515,8 @@ class ServiceabilityPlatformModel {
1575
1515
  });
1576
1516
  }
1577
1517
 
1578
- /** @returns {GetZoneFromPincodeViewDetails} */
1579
- static GetZoneFromPincodeViewDetails() {
1518
+ /** @returns {GetZoneFromPincodeViewRequest} */
1519
+ static GetZoneFromPincodeViewRequest() {
1580
1520
  return Joi.object({
1581
1521
  country: Joi.string().allow("").required(),
1582
1522
  pincode: Joi.string().allow("").required(),
@@ -1593,20 +1533,19 @@ class ServiceabilityPlatformModel {
1593
1533
  slug: Joi.string().allow("").required(),
1594
1534
  is_active: Joi.boolean().required(),
1595
1535
  store_ids: Joi.array().items(Joi.number()).required(),
1596
- assignment_preference: Joi.string().allow("").required(),
1597
1536
  });
1598
1537
  }
1599
1538
 
1600
- /** @returns {GetZoneFromPincodeViewResult} */
1601
- static GetZoneFromPincodeViewResult() {
1539
+ /** @returns {GetZoneFromPincodeViewResponse} */
1540
+ static GetZoneFromPincodeViewResponse() {
1602
1541
  return Joi.object({
1603
1542
  serviceability_type: Joi.string().allow("").required(),
1604
1543
  zones: Joi.array().items(ServiceabilityPlatformModel.Zone()).required(),
1605
1544
  });
1606
1545
  }
1607
1546
 
1608
- /** @returns {GetZoneFromApplicationIdViewResult} */
1609
- static GetZoneFromApplicationIdViewResult() {
1547
+ /** @returns {GetZoneFromApplicationIdViewResponse} */
1548
+ static GetZoneFromApplicationIdViewResponse() {
1610
1549
  return Joi.object({
1611
1550
  page: Joi.array()
1612
1551
  .items(ServiceabilityPlatformModel.ZoneDataItem())
@@ -1617,8 +1556,8 @@ class ServiceabilityPlatformModel {
1617
1556
  });
1618
1557
  }
1619
1558
 
1620
- /** @returns {ServiceabilityPageResult} */
1621
- static ServiceabilityPageResult() {
1559
+ /** @returns {ServiceabilityPageResponse} */
1560
+ static ServiceabilityPageResponse() {
1622
1561
  return Joi.object({
1623
1562
  type: Joi.string().allow(""),
1624
1563
  has_next: Joi.boolean(),
@@ -1636,8 +1575,8 @@ class ServiceabilityPlatformModel {
1636
1575
  });
1637
1576
  }
1638
1577
 
1639
- /** @returns {ManagerResult} */
1640
- static ManagerResult() {
1578
+ /** @returns {ManagerResponse} */
1579
+ static ManagerResponse() {
1641
1580
  return Joi.object({
1642
1581
  email: Joi.string().allow(""),
1643
1582
  mobile_no: ServiceabilityPlatformModel.MobileNo(),
@@ -1645,39 +1584,39 @@ class ServiceabilityPlatformModel {
1645
1584
  });
1646
1585
  }
1647
1586
 
1648
- /** @returns {ModifiedByResult} */
1649
- static ModifiedByResult() {
1587
+ /** @returns {ModifiedByResponse} */
1588
+ static ModifiedByResponse() {
1650
1589
  return Joi.object({
1651
1590
  username: Joi.string().allow(""),
1652
1591
  user_id: Joi.string().allow(""),
1653
1592
  });
1654
1593
  }
1655
1594
 
1656
- /** @returns {IntegrationTypeResult} */
1657
- static IntegrationTypeResult() {
1595
+ /** @returns {IntegrationTypeResponse} */
1596
+ static IntegrationTypeResponse() {
1658
1597
  return Joi.object({
1659
1598
  inventory: Joi.string().allow(""),
1660
1599
  order: Joi.string().allow(""),
1661
1600
  });
1662
1601
  }
1663
1602
 
1664
- /** @returns {ProductReturnConfigResult} */
1665
- static ProductReturnConfigResult() {
1603
+ /** @returns {ProductReturnConfigResponse} */
1604
+ static ProductReturnConfigResponse() {
1666
1605
  return Joi.object({
1667
1606
  on_same_store: Joi.boolean(),
1668
1607
  });
1669
1608
  }
1670
1609
 
1671
- /** @returns {ContactNumberResult} */
1672
- static ContactNumberResult() {
1610
+ /** @returns {ContactNumberResponse} */
1611
+ static ContactNumberResponse() {
1673
1612
  return Joi.object({
1674
1613
  number: Joi.string().allow(""),
1675
1614
  country_code: Joi.number(),
1676
1615
  });
1677
1616
  }
1678
1617
 
1679
- /** @returns {AddressResult} */
1680
- static AddressResult() {
1618
+ /** @returns {AddressResponse} */
1619
+ static AddressResponse() {
1681
1620
  return Joi.object({
1682
1621
  city: Joi.string().allow(""),
1683
1622
  address1: Joi.string().allow(""),
@@ -1691,38 +1630,38 @@ class ServiceabilityPlatformModel {
1691
1630
  });
1692
1631
  }
1693
1632
 
1694
- /** @returns {CreatedByResult} */
1695
- static CreatedByResult() {
1633
+ /** @returns {CreatedByResponse} */
1634
+ static CreatedByResponse() {
1696
1635
  return Joi.object({
1697
1636
  username: Joi.string().allow(""),
1698
1637
  user_id: Joi.string().allow(""),
1699
1638
  });
1700
1639
  }
1701
1640
 
1702
- /** @returns {EwayBillResult} */
1703
- static EwayBillResult() {
1641
+ /** @returns {EwayBillResponse} */
1642
+ static EwayBillResponse() {
1704
1643
  return Joi.object({
1705
1644
  enabled: Joi.boolean(),
1706
1645
  });
1707
1646
  }
1708
1647
 
1709
- /** @returns {EinvoiceResult} */
1710
- static EinvoiceResult() {
1648
+ /** @returns {EinvoiceResponse} */
1649
+ static EinvoiceResponse() {
1711
1650
  return Joi.object({
1712
1651
  enabled: Joi.boolean(),
1713
1652
  });
1714
1653
  }
1715
1654
 
1716
- /** @returns {GstCredentialsResult} */
1717
- static GstCredentialsResult() {
1655
+ /** @returns {GstCredentialsResponse} */
1656
+ static GstCredentialsResponse() {
1718
1657
  return Joi.object({
1719
- e_waybill: ServiceabilityPlatformModel.EwayBillResult(),
1720
- e_invoice: ServiceabilityPlatformModel.EinvoiceResult(),
1658
+ e_waybill: ServiceabilityPlatformModel.EwayBillResponse(),
1659
+ e_invoice: ServiceabilityPlatformModel.EinvoiceResponse(),
1721
1660
  });
1722
1661
  }
1723
1662
 
1724
- /** @returns {WarningsResult} */
1725
- static WarningsResult() {
1663
+ /** @returns {WarningsResponse} */
1664
+ static WarningsResponse() {
1726
1665
  return Joi.object({
1727
1666
  store_address: Joi.string().allow(""),
1728
1667
  });
@@ -1736,8 +1675,8 @@ class ServiceabilityPlatformModel {
1736
1675
  });
1737
1676
  }
1738
1677
 
1739
- /** @returns {TimmingResult} */
1740
- static TimmingResult() {
1678
+ /** @returns {TimmingResponse} */
1679
+ static TimmingResponse() {
1741
1680
  return Joi.object({
1742
1681
  open: Joi.boolean(),
1743
1682
  weekday: Joi.string().allow(""),
@@ -1746,8 +1685,8 @@ class ServiceabilityPlatformModel {
1746
1685
  });
1747
1686
  }
1748
1687
 
1749
- /** @returns {DocumentsResult} */
1750
- static DocumentsResult() {
1688
+ /** @returns {DocumentsResponse} */
1689
+ static DocumentsResponse() {
1751
1690
  return Joi.object({
1752
1691
  legal_name: Joi.string().allow(""),
1753
1692
  value: Joi.string().allow(""),
@@ -1772,57 +1711,57 @@ class ServiceabilityPlatformModel {
1772
1711
  });
1773
1712
  }
1774
1713
 
1775
- /** @returns {LogisticsResult} */
1776
- static LogisticsResult() {
1714
+ /** @returns {LogisticsResponse} */
1715
+ static LogisticsResponse() {
1777
1716
  return Joi.object({
1778
1717
  override: Joi.boolean(),
1779
1718
  dp: ServiceabilityPlatformModel.Dp(),
1780
1719
  });
1781
1720
  }
1782
1721
 
1783
- /** @returns {ItemResult} */
1784
- static ItemResult() {
1722
+ /** @returns {ItemResponse} */
1723
+ static ItemResponse() {
1785
1724
  return Joi.object({
1786
1725
  created_on: Joi.string().allow(""),
1787
- manager: ServiceabilityPlatformModel.ManagerResult(),
1788
- modified_by: ServiceabilityPlatformModel.ModifiedByResult(),
1789
- integration_type: ServiceabilityPlatformModel.IntegrationTypeResult(),
1726
+ manager: ServiceabilityPlatformModel.ManagerResponse(),
1727
+ modified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
1728
+ integration_type: ServiceabilityPlatformModel.IntegrationTypeResponse(),
1790
1729
  verified_on: Joi.string().allow(""),
1791
- product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResult(),
1730
+ product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResponse(),
1792
1731
  contact_numbers: Joi.array().items(
1793
- ServiceabilityPlatformModel.ContactNumberResult()
1732
+ ServiceabilityPlatformModel.ContactNumberResponse()
1794
1733
  ),
1795
- verified_by: ServiceabilityPlatformModel.ModifiedByResult(),
1734
+ verified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
1796
1735
  stage: Joi.string().allow(""),
1797
- address: ServiceabilityPlatformModel.AddressResult(),
1736
+ address: ServiceabilityPlatformModel.AddressResponse(),
1798
1737
  modified_on: Joi.string().allow(""),
1799
- created_by: ServiceabilityPlatformModel.CreatedByResult(),
1800
- gst_credentials: ServiceabilityPlatformModel.GstCredentialsResult(),
1738
+ created_by: ServiceabilityPlatformModel.CreatedByResponse(),
1739
+ gst_credentials: ServiceabilityPlatformModel.GstCredentialsResponse(),
1801
1740
  display_name: Joi.string().allow(""),
1802
1741
  company_id: Joi.number(),
1803
1742
  uid: Joi.number(),
1804
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1743
+ _custom_json: Joi.any(),
1805
1744
  code: Joi.string().allow(""),
1806
- warnings: ServiceabilityPlatformModel.WarningsResult(),
1745
+ warnings: ServiceabilityPlatformModel.WarningsResponse(),
1807
1746
  name: Joi.string().allow(""),
1808
- timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResult()),
1747
+ timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResponse()),
1809
1748
  documents: Joi.array().items(
1810
- ServiceabilityPlatformModel.DocumentsResult()
1749
+ ServiceabilityPlatformModel.DocumentsResponse()
1811
1750
  ),
1812
1751
  store_type: Joi.string().allow(""),
1813
1752
  sub_type: Joi.string().allow(""),
1814
1753
  company: Joi.number(),
1815
1754
  _cls: Joi.string().allow(""),
1816
- logistics: ServiceabilityPlatformModel.LogisticsResult(),
1755
+ logistics: ServiceabilityPlatformModel.LogisticsResponse(),
1817
1756
  notification_emails: Joi.array().items(Joi.string().allow("")),
1818
1757
  });
1819
1758
  }
1820
1759
 
1821
- /** @returns {GetStoresViewResult} */
1822
- static GetStoresViewResult() {
1760
+ /** @returns {GetStoresViewResponse} */
1761
+ static GetStoresViewResponse() {
1823
1762
  return Joi.object({
1824
- page: ServiceabilityPlatformModel.ServiceabilityPageResult().required(),
1825
- items: Joi.array().items(ServiceabilityPlatformModel.ItemResult()),
1763
+ page: ServiceabilityPlatformModel.ServiceabilityPageResponse().required(),
1764
+ items: Joi.array().items(ServiceabilityPlatformModel.ItemResponse()),
1826
1765
  });
1827
1766
  }
1828
1767
 
@@ -1835,8 +1774,8 @@ class ServiceabilityPlatformModel {
1835
1774
  });
1836
1775
  }
1837
1776
 
1838
- /** @returns {PincodeMopUpdateResult} */
1839
- static PincodeMopUpdateResult() {
1777
+ /** @returns {PincodeMopUpdateResponse} */
1778
+ static PincodeMopUpdateResponse() {
1840
1779
  return Joi.object({
1841
1780
  pincode: Joi.number().required(),
1842
1781
  channel_id: Joi.string().allow("").required(),
@@ -1845,8 +1784,8 @@ class ServiceabilityPlatformModel {
1845
1784
  });
1846
1785
  }
1847
1786
 
1848
- /** @returns {PincodeMOPResult} */
1849
- static PincodeMOPResult() {
1787
+ /** @returns {PincodeMOPresponse} */
1788
+ static PincodeMOPresponse() {
1850
1789
  return Joi.object({
1851
1790
  success: Joi.boolean().required(),
1852
1791
  status_code: Joi.number().required(),
@@ -1855,7 +1794,7 @@ class ServiceabilityPlatformModel {
1855
1794
  action: Joi.string().allow("").required(),
1856
1795
  pincodes: Joi.array().items(Joi.number()),
1857
1796
  updated_pincodes: Joi.array().items(
1858
- ServiceabilityPlatformModel.PincodeMopUpdateResult()
1797
+ ServiceabilityPlatformModel.PincodeMopUpdateResponse()
1859
1798
  ),
1860
1799
  });
1861
1800
  }
@@ -1877,16 +1816,16 @@ class ServiceabilityPlatformModel {
1877
1816
  });
1878
1817
  }
1879
1818
 
1880
- /** @returns {PincodeBulkViewResult} */
1881
- static PincodeBulkViewResult() {
1819
+ /** @returns {PincodeBulkViewResponse} */
1820
+ static PincodeBulkViewResponse() {
1882
1821
  return Joi.object({
1883
1822
  batch_id: Joi.string().allow("").required(),
1884
1823
  s3_url: Joi.string().allow("").required(),
1885
1824
  });
1886
1825
  }
1887
1826
 
1888
- /** @returns {PincodeCodStatusListingDetails} */
1889
- static PincodeCodStatusListingDetails() {
1827
+ /** @returns {PincodeCodStatusListingRequest} */
1828
+ static PincodeCodStatusListingRequest() {
1890
1829
  return Joi.object({
1891
1830
  country: Joi.string().allow(""),
1892
1831
  is_active: Joi.boolean(),
@@ -1896,18 +1835,18 @@ class ServiceabilityPlatformModel {
1896
1835
  });
1897
1836
  }
1898
1837
 
1899
- /** @returns {PincodeCodStatusListingResult} */
1900
- static PincodeCodStatusListingResult() {
1838
+ /** @returns {PincodeCodStatusListingResponse} */
1839
+ static PincodeCodStatusListingResponse() {
1901
1840
  return Joi.object({
1902
1841
  country: Joi.string().allow("").required(),
1903
1842
  data: Joi.array()
1904
- .items(Joi.link("#PincodeCodStatusListingResult"))
1843
+ .items(Joi.link("#PincodeCodStatusListingResponse"))
1905
1844
  .required(),
1906
1845
  success: Joi.boolean().required(),
1907
1846
  errors: Joi.array().items(ServiceabilityPlatformModel.Error()),
1908
1847
  page: ServiceabilityPlatformModel.PincodeCodStatusListingPage().required(),
1909
1848
  summary: ServiceabilityPlatformModel.PincodeCodStatusListingSummary().required(),
1910
- }).id("PincodeCodStatusListingResult");
1849
+ }).id("PincodeCodStatusListingResponse");
1911
1850
  }
1912
1851
 
1913
1852
  /** @returns {Error} */
@@ -1938,8 +1877,8 @@ class ServiceabilityPlatformModel {
1938
1877
  });
1939
1878
  }
1940
1879
 
1941
- /** @returns {PincodeMopUpdateAuditHistoryDetails} */
1942
- static PincodeMopUpdateAuditHistoryDetails() {
1880
+ /** @returns {PincodeMopUpdateAuditHistoryRequest} */
1881
+ static PincodeMopUpdateAuditHistoryRequest() {
1943
1882
  return Joi.object({
1944
1883
  entity_type: Joi.string().allow("").required(),
1945
1884
  file_name: Joi.string().allow(""),
@@ -1957,8 +1896,8 @@ class ServiceabilityPlatformModel {
1957
1896
  });
1958
1897
  }
1959
1898
 
1960
- /** @returns {PincodeMopUpdateAuditHistoryResult} */
1961
- static PincodeMopUpdateAuditHistoryResult() {
1899
+ /** @returns {PincodeMopUpdateAuditHistoryResponse} */
1900
+ static PincodeMopUpdateAuditHistoryResponse() {
1962
1901
  return Joi.object({
1963
1902
  batch_id: Joi.string().allow(""),
1964
1903
  entity_type: Joi.string().allow(""),
@@ -1971,13 +1910,15 @@ class ServiceabilityPlatformModel {
1971
1910
  });
1972
1911
  }
1973
1912
 
1974
- /** @returns {PincodeMopUpdateAuditHistoryResultData} */
1975
- static PincodeMopUpdateAuditHistoryResultData() {
1913
+ /** @returns {PincodeMopUpdateAuditHistoryResponseData} */
1914
+ static PincodeMopUpdateAuditHistoryResponseData() {
1976
1915
  return Joi.object({
1977
1916
  entity_type: Joi.string().allow(""),
1978
1917
  page: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryPaging().required(),
1979
1918
  data: Joi.array()
1980
- .items(ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResult())
1919
+ .items(
1920
+ ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponse()
1921
+ )
1981
1922
  .required(),
1982
1923
  });
1983
1924
  }
@@ -2028,8 +1969,8 @@ class ServiceabilityPlatformModel {
2028
1969
  });
2029
1970
  }
2030
1971
 
2031
- /** @returns {CourierAccountDetailsBody} */
2032
- static CourierAccountDetailsBody() {
1972
+ /** @returns {CourierAccountRequestBody} */
1973
+ static CourierAccountRequestBody() {
2033
1974
  return Joi.object({
2034
1975
  extension_id: Joi.string().allow("").required(),
2035
1976
  account_id: Joi.string().allow(""),
@@ -2040,8 +1981,8 @@ class ServiceabilityPlatformModel {
2040
1981
  });
2041
1982
  }
2042
1983
 
2043
- /** @returns {ErrorResult} */
2044
- static ErrorResult() {
1984
+ /** @returns {ErrorResponse} */
1985
+ static ErrorResponse() {
2045
1986
  return Joi.object({
2046
1987
  value: Joi.string().allow("").required(),
2047
1988
  message: Joi.string().allow("").required(),
@@ -2049,12 +1990,12 @@ class ServiceabilityPlatformModel {
2049
1990
  });
2050
1991
  }
2051
1992
 
2052
- /** @returns {CourierPartnerAccountFailureResult} */
2053
- static CourierPartnerAccountFailureResult() {
1993
+ /** @returns {CourierPartnerAccountFailureResponse} */
1994
+ static CourierPartnerAccountFailureResponse() {
2054
1995
  return Joi.object({
2055
1996
  success: Joi.boolean().required(),
2056
1997
  error: Joi.array()
2057
- .items(ServiceabilityPlatformModel.ErrorResult())
1998
+ .items(ServiceabilityPlatformModel.ErrorResponse())
2058
1999
  .required(),
2059
2000
  });
2060
2001
  }
@@ -2072,32 +2013,32 @@ class ServiceabilityPlatformModel {
2072
2013
  });
2073
2014
  }
2074
2015
 
2075
- /** @returns {CourierPartnerRuleCPListResult} */
2076
- static CourierPartnerRuleCPListResult() {
2016
+ /** @returns {CourierPartnerRuleCPListResponse} */
2017
+ static CourierPartnerRuleCPListResponse() {
2077
2018
  return Joi.object({
2078
2019
  account_id: Joi.string().allow(""),
2079
2020
  extension_id: Joi.string().allow(""),
2080
2021
  is_self_ship: Joi.boolean(),
2081
- scheme_rules: Joi.object().pattern(/\S/, Joi.any()),
2022
+ scheme_rules: Joi.any(),
2082
2023
  });
2083
2024
  }
2084
2025
 
2085
- /** @returns {CourierPartnerRuleResult} */
2086
- static CourierPartnerRuleResult() {
2026
+ /** @returns {CourierPartnerRuleResponse} */
2027
+ static CourierPartnerRuleResponse() {
2087
2028
  return Joi.object({
2088
2029
  is_active: Joi.boolean(),
2089
2030
  application_id: Joi.string().allow(""),
2090
2031
  company_id: Joi.number(),
2091
2032
  conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions(),
2092
2033
  sort: Joi.array().items(Joi.string().allow("")),
2093
- created_by: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2034
+ created_by: Joi.any().allow(null),
2094
2035
  id: Joi.string().allow(""),
2095
- modified_by: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2036
+ modified_by: Joi.any().allow(null),
2096
2037
  modified_on: Joi.string().allow("").allow(null),
2097
2038
  name: Joi.string().allow(""),
2098
2039
  type: Joi.string().allow(""),
2099
2040
  cp_list: Joi.array().items(
2100
- ServiceabilityPlatformModel.CourierPartnerRuleCPListResult()
2041
+ ServiceabilityPlatformModel.CourierPartnerRuleCPListResponse()
2101
2042
  ),
2102
2043
  });
2103
2044
  }
@@ -2181,125 +2122,26 @@ class ServiceabilityPlatformModel {
2181
2122
  });
2182
2123
  }
2183
2124
 
2184
- /** @returns {FailureResult} */
2185
- static FailureResult() {
2125
+ /** @returns {FailureResponse} */
2126
+ static FailureResponse() {
2186
2127
  return Joi.object({
2187
2128
  success: Joi.boolean().required(),
2188
2129
  error: Joi.array()
2189
- .items(ServiceabilityPlatformModel.ErrorResult())
2130
+ .items(ServiceabilityPlatformModel.ErrorResponse())
2190
2131
  .required(),
2191
2132
  });
2192
2133
  }
2193
2134
 
2194
- /** @returns {CourierPartnerRulesListResult} */
2195
- static CourierPartnerRulesListResult() {
2135
+ /** @returns {CourierPartnerRulesListResponse} */
2136
+ static CourierPartnerRulesListResponse() {
2196
2137
  return Joi.object({
2197
2138
  items: Joi.array()
2198
- .items(ServiceabilityPlatformModel.CourierPartnerRuleResult())
2139
+ .items(ServiceabilityPlatformModel.CourierPartnerRuleResponse())
2199
2140
  .required(),
2200
2141
  page: ServiceabilityPlatformModel.Page().required(),
2201
2142
  });
2202
2143
  }
2203
2144
 
2204
- /** @returns {ShipmentsArticles} */
2205
- static ShipmentsArticles() {
2206
- return Joi.object({
2207
- item_id: Joi.number(),
2208
- category_id: Joi.number(),
2209
- brand_id: Joi.number(),
2210
- department_id: Joi.number(),
2211
- tags: Joi.array().items(Joi.string().allow("")),
2212
- });
2213
- }
2214
-
2215
- /** @returns {ShipmentDimension} */
2216
- static ShipmentDimension() {
2217
- return Joi.object({
2218
- height: Joi.number().required(),
2219
- length: Joi.number().required(),
2220
- width: Joi.number().required(),
2221
- });
2222
- }
2223
-
2224
- /** @returns {Shipments} */
2225
- static Shipments() {
2226
- return Joi.object({
2227
- id: Joi.string().allow(""),
2228
- location_id: Joi.number(),
2229
- location_tags: Joi.array().items(Joi.string().allow("")),
2230
- shipment_weight: Joi.number(),
2231
- shipment_volumetric_weight: Joi.number(),
2232
- shipment_cost: Joi.number(),
2233
- shipment_dimension: ServiceabilityPlatformModel.ShipmentDimension(),
2234
- courier_partner_schemes: Joi.array().items(Joi.string().allow("")),
2235
- articles: Joi.array().items(
2236
- ServiceabilityPlatformModel.ShipmentsArticles()
2237
- ),
2238
- });
2239
- }
2240
-
2241
- /** @returns {ShipmentCourierPartnerDetails} */
2242
- static ShipmentCourierPartnerDetails() {
2243
- return Joi.object({
2244
- from_location: ServiceabilityPlatformModel.ShipmentsCourierPartnersServiceability().required(),
2245
- to_location: ServiceabilityPlatformModel.ShipmentsCourierPartnersServiceability().required(),
2246
- shipments: Joi.array().items(ServiceabilityPlatformModel.Shipments()),
2247
- journey: Joi.string().allow(""),
2248
- payment_mode: Joi.string().allow(""),
2249
- });
2250
- }
2251
-
2252
- /** @returns {CourierPartnerPromise} */
2253
- static CourierPartnerPromise() {
2254
- return Joi.object({
2255
- min: Joi.string().allow("").required(),
2256
- max: Joi.string().allow("").required(),
2257
- });
2258
- }
2259
-
2260
- /** @returns {CourierPartners} */
2261
- static CourierPartners() {
2262
- return Joi.object({
2263
- extension_id: Joi.string().allow(""),
2264
- scheme_id: Joi.string().allow(""),
2265
- name: Joi.string().allow(""),
2266
- delivery_promise: ServiceabilityPlatformModel.CourierPartnerPromise(),
2267
- });
2268
- }
2269
-
2270
- /** @returns {ShipmentCourierPartners} */
2271
- static ShipmentCourierPartners() {
2272
- return Joi.object({
2273
- id: Joi.string().allow(""),
2274
- courier_partners: Joi.array().items(
2275
- ServiceabilityPlatformModel.CourierPartners()
2276
- ),
2277
- });
2278
- }
2279
-
2280
- /** @returns {ShipmentCourierPartnerResult} */
2281
- static ShipmentCourierPartnerResult() {
2282
- return Joi.object({
2283
- courier_partners: Joi.array().items(
2284
- ServiceabilityPlatformModel.CourierPartners()
2285
- ),
2286
- shipments: Joi.array().items(
2287
- ServiceabilityPlatformModel.ShipmentCourierPartners()
2288
- ),
2289
- });
2290
- }
2291
-
2292
- /** @returns {ShipmentsCourierPartnersServiceability} */
2293
- static ShipmentsCourierPartnersServiceability() {
2294
- return Joi.object({
2295
- pincode: Joi.string().allow(""),
2296
- sector_code: Joi.string().allow(""),
2297
- state_code: Joi.string().allow(""),
2298
- city_code: Joi.string().allow(""),
2299
- country_code: Joi.string().allow("").required(),
2300
- });
2301
- }
2302
-
2303
2145
  /** @returns {CompanyConfig} */
2304
2146
  static CompanyConfig() {
2305
2147
  return Joi.object({
@@ -2325,8 +2167,8 @@ class ServiceabilityPlatformModel {
2325
2167
  });
2326
2168
  }
2327
2169
 
2328
- /** @returns {BulkRegionJobDetails} */
2329
- static BulkRegionJobDetails() {
2170
+ /** @returns {BulkRegionJobSerializer} */
2171
+ static BulkRegionJobSerializer() {
2330
2172
  return Joi.object({
2331
2173
  file_path: Joi.string().allow(""),
2332
2174
  country: Joi.string().allow("").required(),
@@ -2335,12 +2177,12 @@ class ServiceabilityPlatformModel {
2335
2177
  });
2336
2178
  }
2337
2179
 
2338
- /** @returns {BulkRegionResultItemData} */
2339
- static BulkRegionResultItemData() {
2180
+ /** @returns {BulkRegionResponseItemData} */
2181
+ static BulkRegionResponseItemData() {
2340
2182
  return Joi.object({
2341
2183
  file_path: Joi.string().allow("").required(),
2342
2184
  failed: Joi.number(),
2343
- failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
2185
+ failed_records: Joi.array().items(Joi.any()),
2344
2186
  action: Joi.string().allow("").required(),
2345
2187
  batch_id: Joi.string().allow("").required(),
2346
2188
  country: Joi.string().allow("").required(),
@@ -2352,18 +2194,18 @@ class ServiceabilityPlatformModel {
2352
2194
  });
2353
2195
  }
2354
2196
 
2355
- /** @returns {BulkRegionResult} */
2356
- static BulkRegionResult() {
2197
+ /** @returns {BulkRegionResponse} */
2198
+ static BulkRegionResponse() {
2357
2199
  return Joi.object({
2358
2200
  items: Joi.array()
2359
- .items(ServiceabilityPlatformModel.BulkRegionResultItemData())
2201
+ .items(ServiceabilityPlatformModel.BulkRegionResponseItemData())
2360
2202
  .required(),
2361
2203
  page: ServiceabilityPlatformModel.Page().required(),
2362
2204
  });
2363
2205
  }
2364
2206
 
2365
- /** @returns {SelfShipResult} */
2366
- static SelfShipResult() {
2207
+ /** @returns {SelfShipResponse} */
2208
+ static SelfShipResponse() {
2367
2209
  return Joi.object({
2368
2210
  is_active: Joi.boolean().required(),
2369
2211
  tat: Joi.number().required(),
@@ -2373,14 +2215,14 @@ class ServiceabilityPlatformModel {
2373
2215
  /** @returns {ApplicationSelfShipConfig} */
2374
2216
  static ApplicationSelfShipConfig() {
2375
2217
  return Joi.object({
2376
- self_ship: ServiceabilityPlatformModel.SelfShipResult(),
2218
+ self_ship: Joi.any().allow(null),
2377
2219
  });
2378
2220
  }
2379
2221
 
2380
- /** @returns {ApplicationSelfShipConfigResult} */
2381
- static ApplicationSelfShipConfigResult() {
2222
+ /** @returns {ApplicationSelfShipConfigResponse} */
2223
+ static ApplicationSelfShipConfigResponse() {
2382
2224
  return Joi.object({
2383
- error: ServiceabilityPlatformModel.ServiceabilityErrorResult(),
2225
+ error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
2384
2226
  data: ServiceabilityPlatformModel.ApplicationSelfShipConfig(),
2385
2227
  success: Joi.boolean().required(),
2386
2228
  });
@@ -2453,8 +2295,8 @@ class ServiceabilityPlatformModel {
2453
2295
  });
2454
2296
  }
2455
2297
 
2456
- /** @returns {GetStoreRulesApiResult} */
2457
- static GetStoreRulesApiResult() {
2298
+ /** @returns {GetStoreRulesApiResponse} */
2299
+ static GetStoreRulesApiResponse() {
2458
2300
  return Joi.object({
2459
2301
  items: Joi.array().items(
2460
2302
  ServiceabilityPlatformModel.StoreRuleDataSchema()
@@ -2463,8 +2305,8 @@ class ServiceabilityPlatformModel {
2463
2305
  });
2464
2306
  }
2465
2307
 
2466
- /** @returns {CreateStoreRuleDetailsSchema} */
2467
- static CreateStoreRuleDetailsSchema() {
2308
+ /** @returns {CreateStoreRuleRequestSchema} */
2309
+ static CreateStoreRuleRequestSchema() {
2468
2310
  return Joi.object({
2469
2311
  name: Joi.string().allow(""),
2470
2312
  is_active: Joi.boolean(),
@@ -2478,8 +2320,8 @@ class ServiceabilityPlatformModel {
2478
2320
  });
2479
2321
  }
2480
2322
 
2481
- /** @returns {StoreRuleResultSchema} */
2482
- static StoreRuleResultSchema() {
2323
+ /** @returns {StoreRuleResponseSchema} */
2324
+ static StoreRuleResponseSchema() {
2483
2325
  return Joi.object({
2484
2326
  id: Joi.string().allow(""),
2485
2327
  name: Joi.string().allow(""),
@@ -2495,8 +2337,8 @@ class ServiceabilityPlatformModel {
2495
2337
  });
2496
2338
  }
2497
2339
 
2498
- /** @returns {StoreRuleUpdateResultSchema} */
2499
- static StoreRuleUpdateResultSchema() {
2340
+ /** @returns {StoreRuleUpdateResponseSchema} */
2341
+ static StoreRuleUpdateResponseSchema() {
2500
2342
  return Joi.object({
2501
2343
  id: Joi.string().allow(""),
2502
2344
  name: Joi.string().allow(""),
@@ -2519,8 +2361,8 @@ class ServiceabilityPlatformModel {
2519
2361
  return Joi.object({
2520
2362
  lm_cod_limit: Joi.number().required(),
2521
2363
  is_qc: Joi.boolean().required(),
2522
- pickup_cutoff: Joi.string().allow("").allow(null),
2523
- route_code: Joi.string().allow("").allow(null),
2364
+ pickup_cutoff: Joi.string().allow("").allow(null).required(),
2365
+ route_code: Joi.string().allow("").allow(null).required(),
2524
2366
  is_first_mile: Joi.boolean().required(),
2525
2367
  is_return: Joi.boolean().required(),
2526
2368
  is_installation: Joi.boolean().required(),
@@ -2567,8 +2409,8 @@ class ServiceabilityPlatformModel {
2567
2409
  });
2568
2410
  }
2569
2411
 
2570
- /** @returns {CourierAccountResult} */
2571
- static CourierAccountResult() {
2412
+ /** @returns {CourierAccountResponse} */
2413
+ static CourierAccountResponse() {
2572
2414
  return Joi.object({
2573
2415
  account_id: Joi.string().allow("").required(),
2574
2416
  scheme_id: Joi.string().allow("").required(),
@@ -2579,11 +2421,11 @@ class ServiceabilityPlatformModel {
2579
2421
  });
2580
2422
  }
2581
2423
 
2582
- /** @returns {CompanyCourierPartnerAccountListResult} */
2583
- static CompanyCourierPartnerAccountListResult() {
2424
+ /** @returns {CompanyCourierPartnerAccountListResponse} */
2425
+ static CompanyCourierPartnerAccountListResponse() {
2584
2426
  return Joi.object({
2585
2427
  items: Joi.array()
2586
- .items(ServiceabilityPlatformModel.CourierAccountResult())
2428
+ .items(ServiceabilityPlatformModel.CourierAccountResponse())
2587
2429
  .required(),
2588
2430
  page: ServiceabilityPlatformModel.Page().required(),
2589
2431
  });
@@ -2616,8 +2458,8 @@ class ServiceabilityPlatformModel {
2616
2458
  });
2617
2459
  }
2618
2460
 
2619
- /** @returns {PackageMaterialResult} */
2620
- static PackageMaterialResult() {
2461
+ /** @returns {PackageMaterialResponse} */
2462
+ static PackageMaterialResponse() {
2621
2463
  return Joi.object({
2622
2464
  name: Joi.string().allow("").required(),
2623
2465
  id: Joi.string().allow(""),
@@ -2667,8 +2509,8 @@ class ServiceabilityPlatformModel {
2667
2509
  });
2668
2510
  }
2669
2511
 
2670
- /** @returns {PackageRuleResult} */
2671
- static PackageRuleResult() {
2512
+ /** @returns {PackageRuleResponse} */
2513
+ static PackageRuleResponse() {
2672
2514
  return Joi.object({
2673
2515
  id: Joi.string().allow(""),
2674
2516
  name: Joi.string().allow("").required(),
@@ -2692,7 +2534,7 @@ class ServiceabilityPlatformModel {
2692
2534
  /** @returns {PackageMaterialRuleList} */
2693
2535
  static PackageMaterialRuleList() {
2694
2536
  return Joi.object({
2695
- items: ServiceabilityPlatformModel.PackageRuleResult(),
2537
+ items: ServiceabilityPlatformModel.PackageRuleResponse(),
2696
2538
  page: ServiceabilityPlatformModel.Page(),
2697
2539
  });
2698
2540
  }
@@ -2700,7 +2542,7 @@ class ServiceabilityPlatformModel {
2700
2542
  /** @returns {PackageMaterialList} */
2701
2543
  static PackageMaterialList() {
2702
2544
  return Joi.object({
2703
- items: ServiceabilityPlatformModel.PackageMaterialResult(),
2545
+ items: ServiceabilityPlatformModel.PackageMaterialResponse(),
2704
2546
  page: ServiceabilityPlatformModel.Page(),
2705
2547
  });
2706
2548
  }
@@ -2734,16 +2576,16 @@ class ServiceabilityPlatformModel {
2734
2576
  });
2735
2577
  }
2736
2578
 
2737
- /** @returns {RulePriorityDetails} */
2738
- static RulePriorityDetails() {
2579
+ /** @returns {RulePriorityRequest} */
2580
+ static RulePriorityRequest() {
2739
2581
  return Joi.object({
2740
2582
  rule_id: Joi.string().allow("").required(),
2741
2583
  priority: Joi.number().required(),
2742
2584
  });
2743
2585
  }
2744
2586
 
2745
- /** @returns {RulePriorityResult} */
2746
- static RulePriorityResult() {
2587
+ /** @returns {RulePriorityResponse} */
2588
+ static RulePriorityResponse() {
2747
2589
  return Joi.object({
2748
2590
  success: Joi.boolean(),
2749
2591
  });
@@ -2783,10 +2625,10 @@ class ServiceabilityPlatformModel {
2783
2625
  return Joi.object({
2784
2626
  item_id: Joi.number().required(),
2785
2627
  size: Joi.string().allow("").required(),
2786
- quantity: Joi.number().required(),
2628
+ quantity: Joi.string().allow("").required(),
2787
2629
  group_id: Joi.string().allow(""),
2788
2630
  is_primary_item: Joi.boolean(),
2789
- meta: Joi.object().pattern(/\S/, Joi.any()),
2631
+ meta: Joi.any(),
2790
2632
  article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
2791
2633
  ignore_locations: Joi.array().items(Joi.number()).required(),
2792
2634
  assign_locations: Joi.array().items(Joi.number()).required(),
@@ -2794,28 +2636,26 @@ class ServiceabilityPlatformModel {
2794
2636
  });
2795
2637
  }
2796
2638
 
2797
- /** @returns {OptimlLocationsDetailsSchema} */
2798
- static OptimlLocationsDetailsSchema() {
2639
+ /** @returns {OptimlLocationsRequestSchema} */
2640
+ static OptimlLocationsRequestSchema() {
2799
2641
  return Joi.object({
2800
2642
  channel_id: Joi.string().allow("").required(),
2801
2643
  channel_type: Joi.string().allow("").required(),
2802
2644
  channel_identifier: Joi.string().allow(""),
2803
2645
  to_serviceability: ServiceabilityPlatformModel.LocationDetailsServiceability().required(),
2804
- articles: Joi.array().items(
2805
- ServiceabilityPlatformModel.OptimalLocationsArticles()
2806
- ),
2646
+ article: ServiceabilityPlatformModel.OptimalLocationsArticles(),
2807
2647
  });
2808
2648
  }
2809
2649
 
2810
- /** @returns {OptimalLocationArticlesResult} */
2811
- static OptimalLocationArticlesResult() {
2650
+ /** @returns {OptimalLocationArticlesResponse} */
2651
+ static OptimalLocationArticlesResponse() {
2812
2652
  return Joi.object({
2813
2653
  item_id: Joi.number().required(),
2814
2654
  size: Joi.string().allow("").required(),
2815
2655
  quantity: Joi.number().required(),
2816
2656
  group_id: Joi.string().allow(""),
2817
2657
  is_primary_item: Joi.boolean(),
2818
- meta: Joi.object().pattern(/\S/, Joi.any()),
2658
+ meta: Joi.any(),
2819
2659
  article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
2820
2660
  seller_id: Joi.number(),
2821
2661
  ignore_locations: Joi.array().items(Joi.number()).required(),
@@ -2827,43 +2667,28 @@ class ServiceabilityPlatformModel {
2827
2667
  });
2828
2668
  }
2829
2669
 
2830
- /** @returns {OptimalLocationAssignedStoresResult} */
2831
- static OptimalLocationAssignedStoresResult() {
2670
+ /** @returns {OptimalLocationAssignedStoresResponse} */
2671
+ static OptimalLocationAssignedStoresResponse() {
2832
2672
  return Joi.object({
2833
2673
  store_id: Joi.number().required(),
2834
2674
  articles: Joi.array()
2835
- .items(ServiceabilityPlatformModel.OptimalLocationArticlesResult())
2675
+ .items(ServiceabilityPlatformModel.OptimalLocationArticlesResponse())
2836
2676
  .required(),
2837
2677
  });
2838
2678
  }
2839
2679
 
2840
- /** @returns {OptimalLocationsResult} */
2841
- static OptimalLocationsResult() {
2680
+ /** @returns {OptimalLocationsResponse} */
2681
+ static OptimalLocationsResponse() {
2842
2682
  return Joi.object({
2843
2683
  assigned_stores: Joi.array()
2844
2684
  .items(
2845
- ServiceabilityPlatformModel.OptimalLocationAssignedStoresResult()
2685
+ ServiceabilityPlatformModel.OptimalLocationAssignedStoresResponse()
2846
2686
  )
2847
2687
  .required(),
2848
2688
  faulty_articles: Joi.array().items(
2849
- ServiceabilityPlatformModel.ErrorResult()
2689
+ ServiceabilityPlatformModel.ErrorResponse()
2850
2690
  ),
2851
2691
  });
2852
2692
  }
2853
-
2854
- /** @returns {ValidationError} */
2855
- static ValidationError() {
2856
- return Joi.object({
2857
- message: Joi.string().allow("").required(),
2858
- field: Joi.string().allow("").required(),
2859
- });
2860
- }
2861
-
2862
- /** @returns {StandardError} */
2863
- static StandardError() {
2864
- return Joi.object({
2865
- message: Joi.string().allow("").required(),
2866
- });
2867
- }
2868
2693
  }
2869
2694
  module.exports = ServiceabilityPlatformModel;