@gofynd/fdk-client-javascript 1.1.6 → 1.3.0

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 (348) hide show
  1. package/README.md +52 -3
  2. package/index.js +0 -3
  3. package/package.json +1 -2
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +12 -3
  6. package/sdk/application/ApplicationClient.d.ts +36 -6
  7. package/sdk/application/ApplicationClient.js +30 -43
  8. package/sdk/application/ApplicationConfig.d.ts +92 -12
  9. package/sdk/application/ApplicationConfig.js +48 -14
  10. package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
  11. package/sdk/application/Cart/CartApplicationClient.js +711 -483
  12. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  13. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  14. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  15. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
  18. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
  19. package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
  20. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  21. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  22. package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
  23. package/sdk/application/Common/CommonApplicationClient.js +52 -33
  24. package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
  25. package/sdk/application/Common/CommonApplicationModel.js +192 -40
  26. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  28. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
  29. package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
  30. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
  31. package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
  32. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  33. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  34. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
  36. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
  38. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  40. package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
  41. package/sdk/application/Content/ContentApplicationClient.js +489 -278
  42. package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
  43. package/sdk/application/Content/ContentApplicationModel.js +737 -396
  44. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  45. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  46. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
  48. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
  50. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  52. package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
  53. package/sdk/application/Lead/LeadApplicationClient.js +188 -103
  54. package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
  55. package/sdk/application/Lead/LeadApplicationModel.js +330 -244
  56. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  57. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  58. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
  59. package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
  60. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  61. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  62. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  63. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  64. package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
  65. package/sdk/application/Order/OrderApplicationClient.js +329 -217
  66. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  67. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  68. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  69. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  70. package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
  71. package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
  72. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  73. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  74. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  75. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  76. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
  77. package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
  78. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  79. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  80. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  81. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  82. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
  83. package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
  84. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  85. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  86. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  87. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  88. package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
  89. package/sdk/application/Share/ShareApplicationClient.js +185 -97
  90. package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
  91. package/sdk/application/Share/ShareApplicationModel.js +131 -31
  92. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  93. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  94. package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
  95. package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
  96. package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
  97. package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
  98. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  99. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  100. package/sdk/application/User/UserApplicationClient.d.ts +260 -305
  101. package/sdk/application/User/UserApplicationClient.js +910 -522
  102. package/sdk/application/User/UserApplicationModel.d.ts +992 -101
  103. package/sdk/application/User/UserApplicationModel.js +699 -248
  104. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  105. package/sdk/application/User/UserApplicationValidator.js +265 -31
  106. package/sdk/common/AxiosHelper.js +7 -2
  107. package/sdk/common/FDKError.d.ts +3 -0
  108. package/sdk/common/FDKError.js +8 -0
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/common/utils.d.ts +3 -0
  113. package/sdk/common/utils.js +29 -0
  114. package/sdk/partner/PartnerAPIClient.d.ts +16 -1
  115. package/sdk/partner/PartnerAPIClient.js +12 -2
  116. package/sdk/partner/PartnerClient.d.ts +22 -3
  117. package/sdk/partner/PartnerClient.js +20 -0
  118. package/sdk/partner/PartnerConfig.d.ts +40 -14
  119. package/sdk/partner/PartnerConfig.js +31 -6
  120. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  121. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  122. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  123. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  124. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  125. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  126. package/sdk/partner/index.d.ts +3 -1
  127. package/sdk/partner/index.js +3 -1
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
  132. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
  133. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
  134. package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
  135. package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
  136. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
  137. package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
  138. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
  139. package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
  140. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
  141. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
  142. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  143. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  144. package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
  145. package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
  148. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  149. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  150. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
  151. package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
  152. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
  153. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
  154. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
  155. package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
  156. package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
  157. package/sdk/platform/Common/CommonPlatformClient.js +50 -33
  158. package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
  159. package/sdk/platform/Common/CommonPlatformModel.js +214 -40
  160. package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
  161. package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
  162. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
  163. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
  164. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
  165. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
  166. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
  167. package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
  168. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
  169. package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
  170. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  171. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  172. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
  173. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
  174. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
  175. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
  176. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
  177. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
  178. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
  179. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
  180. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
  181. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
  182. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
  183. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
  184. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
  185. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
  186. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  187. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  188. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
  189. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
  190. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  191. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  192. package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
  193. package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
  194. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
  195. package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
  196. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
  197. package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
  198. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  199. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  200. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
  201. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
  202. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
  203. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
  204. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
  205. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
  206. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
  207. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
  208. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
  209. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
  210. package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
  211. package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
  212. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
  213. package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
  214. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
  215. package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
  216. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
  217. package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
  218. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  219. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  220. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  221. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  222. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
  223. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
  224. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  225. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  226. package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
  227. package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
  228. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
  229. package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
  230. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  231. package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
  232. package/sdk/platform/OAuthClient.js +6 -2
  233. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
  234. package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
  235. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  236. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  237. package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
  238. package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
  239. package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
  240. package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
  241. package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
  242. package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
  243. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
  244. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
  245. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
  246. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
  247. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
  248. package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
  249. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
  250. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
  251. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
  252. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
  253. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
  254. package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
  255. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
  256. package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
  257. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  258. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  259. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  260. package/sdk/platform/PlatformAPIClient.js +9 -1
  261. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  262. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  263. package/sdk/platform/PlatformClient.d.ts +31 -12581
  264. package/sdk/platform/PlatformClient.js +30 -15089
  265. package/sdk/platform/PlatformConfig.d.ts +37 -11
  266. package/sdk/platform/PlatformConfig.js +32 -6
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  270. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  271. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
  272. package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
  276. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
  277. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
  278. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
  279. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
  280. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
  281. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  282. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  283. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
  284. package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
  285. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  286. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  287. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  288. package/sdk/platform/Share/SharePlatformModel.js +167 -19
  289. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
  290. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
  291. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
  292. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
  293. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  294. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  295. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
  296. package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
  297. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  298. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  299. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
  300. package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
  301. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
  302. package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
  303. package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
  304. package/sdk/platform/User/UserPlatformModel.js +467 -424
  305. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
  306. package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
  307. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
  308. package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
  309. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
  310. package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
  311. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
  312. package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
  313. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
  314. package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
  315. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  316. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  317. package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
  318. package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
  319. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  320. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  321. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  322. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  323. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  324. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  325. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  326. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  327. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  328. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  329. package/sdk/public/PublicAPIClient.d.ts +14 -1
  330. package/sdk/public/PublicAPIClient.js +7 -1
  331. package/sdk/public/PublicClient.d.ts +21 -3
  332. package/sdk/public/PublicClient.js +20 -0
  333. package/sdk/public/PublicConfig.d.ts +27 -6
  334. package/sdk/public/PublicConfig.js +17 -1
  335. package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
  336. package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
  337. package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
  338. package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
  339. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  340. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
  341. package/sdk/public/index.d.ts +1 -0
  342. package/sdk/public/index.js +2 -0
  343. package/sdk/application/ApplicationModels.d.ts +0 -3
  344. package/sdk/application/ApplicationModels.js +0 -20
  345. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
  346. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
  347. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
  348. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
@@ -1,6 +1,756 @@
1
1
  const Joi = require("joi");
2
2
 
3
- class ServiceabilityModel {
3
+ /**
4
+ * @typedef AddressResponse
5
+ * @property {string} [address1]
6
+ * @property {string} [address2]
7
+ * @property {string} [city]
8
+ * @property {string} [country]
9
+ * @property {string} [landmark]
10
+ * @property {number} [latitude]
11
+ * @property {number} [longitude]
12
+ * @property {number} [pincode]
13
+ * @property {string} [state]
14
+ */
15
+
16
+ /**
17
+ * @typedef ApplicationCompanyDpViewRequest
18
+ * @property {string} [dp_id]
19
+ */
20
+
21
+ /**
22
+ * @typedef ApplicationCompanyDpViewResponse
23
+ * @property {string} application_id
24
+ * @property {number} company_id
25
+ * @property {number} [courier_partner_id]
26
+ * @property {boolean} success
27
+ */
28
+
29
+ /**
30
+ * @typedef ApplicationSelfShipConfig
31
+ * @property {Object} [self_ship]
32
+ */
33
+
34
+ /**
35
+ * @typedef ApplicationSelfShipConfigResponse
36
+ * @property {ApplicationSelfShipConfig} [data]
37
+ * @property {ServiceabilityErrorResponse} [error]
38
+ * @property {boolean} success
39
+ */
40
+
41
+ /**
42
+ * @typedef ApplicationServiceabilityConfig
43
+ * @property {string} channel_id
44
+ * @property {string} channel_type
45
+ * @property {string} serviceability_type
46
+ */
47
+
48
+ /**
49
+ * @typedef ApplicationServiceabilityConfigResponse
50
+ * @property {ApplicationServiceabilityConfig} [data]
51
+ * @property {ServiceabilityErrorResponse} [error]
52
+ * @property {boolean} success
53
+ */
54
+
55
+ /**
56
+ * @typedef CommonError
57
+ * @property {Object} [error]
58
+ * @property {string} [status_code]
59
+ * @property {string} [success]
60
+ */
61
+
62
+ /**
63
+ * @typedef CompanyDpAccountListResponse
64
+ * @property {Dp1[]} items
65
+ * @property {Page} page
66
+ * @property {boolean} success
67
+ */
68
+
69
+ /**
70
+ * @typedef CompanyDpAccountRequest
71
+ * @property {Dp1[]} data
72
+ */
73
+
74
+ /**
75
+ * @typedef CompanyDpAccountResponse
76
+ * @property {boolean} success
77
+ */
78
+
79
+ /**
80
+ * @typedef CompanyStoreView_PageItems
81
+ * @property {number} current
82
+ * @property {boolean} has_next
83
+ * @property {number} item_total
84
+ * @property {number} size
85
+ * @property {string} type
86
+ */
87
+
88
+ /**
89
+ * @typedef CompanyStoreView_Response
90
+ * @property {Object[]} [items]
91
+ * @property {CompanyStoreView_PageItems[]} page
92
+ */
93
+
94
+ /**
95
+ * @typedef ContactNumberResponse
96
+ * @property {number} [country_code]
97
+ * @property {string} [number]
98
+ */
99
+
100
+ /**
101
+ * @typedef CreatedByResponse
102
+ * @property {string} [user_id]
103
+ * @property {string} [username]
104
+ */
105
+
106
+ /**
107
+ * @typedef CreateZoneData
108
+ * @property {string} [assignment_preference]
109
+ * @property {GetZoneDataViewChannels[]} channels
110
+ * @property {number} company_id
111
+ * @property {boolean} is_active
112
+ * @property {ZoneMappingType[]} mapping
113
+ * @property {string} name
114
+ * @property {ZoneProductTypes} product
115
+ * @property {string} region_type
116
+ * @property {string} slug
117
+ * @property {number[]} store_ids
118
+ */
119
+
120
+ /**
121
+ * @typedef DocumentsResponse
122
+ * @property {string} [legal_name]
123
+ * @property {string} [type]
124
+ * @property {string} [value]
125
+ * @property {boolean} [verified]
126
+ */
127
+
128
+ /**
129
+ * @typedef Dp
130
+ * @property {number} [area_code]
131
+ * @property {boolean} [assign_dp_from_sb]
132
+ * @property {string} [external_account_id]
133
+ * @property {number} [fm_priority]
134
+ * @property {string} [internal_account_id]
135
+ * @property {number} [lm_priority]
136
+ * @property {string[]} [operations]
137
+ * @property {string} [payment_mode]
138
+ * @property {number} [rvp_priority]
139
+ * @property {string} [transport_mode]
140
+ */
141
+
142
+ /**
143
+ * @typedef Dp1
144
+ * @property {string} account_id
145
+ * @property {string} dp_id
146
+ * @property {boolean} is_self_ship
147
+ * @property {string} name
148
+ * @property {string} plan_id
149
+ * @property {Object} plan_rules
150
+ * @property {string} stage
151
+ */
152
+
153
+ /**
154
+ * @typedef DpAccountFailureResponse
155
+ * @property {ErrorResponse[]} error
156
+ * @property {number} status_code
157
+ * @property {boolean} success
158
+ */
159
+
160
+ /**
161
+ * @typedef DPApplicationRuleRequest
162
+ * @property {string[]} shipping_rules
163
+ */
164
+
165
+ /**
166
+ * @typedef DPApplicationRuleResponse
167
+ * @property {DpRuleResponse[]} data
168
+ * @property {boolean} status_code
169
+ * @property {boolean} success
170
+ */
171
+
172
+ /**
173
+ * @typedef DPCompanyRuleRequest
174
+ * @property {string[]} rule_ids
175
+ */
176
+
177
+ /**
178
+ * @typedef DPCompanyRuleResponse
179
+ * @property {DpRuleResponse[]} data
180
+ * @property {number} status_code
181
+ * @property {boolean} success
182
+ */
183
+
184
+ /**
185
+ * @typedef DpIds
186
+ * @property {boolean} enabled
187
+ * @property {Object} [meta]
188
+ * @property {number} priority
189
+ */
190
+
191
+ /**
192
+ * @typedef DpMultipleRuleSuccessResponse
193
+ * @property {DpRule[]} items
194
+ * @property {Page} page
195
+ * @property {boolean} success
196
+ */
197
+
198
+ /**
199
+ * @typedef DpRule
200
+ * @property {number} [company_id]
201
+ * @property {Object[]} conditions
202
+ * @property {Object} dp_ids
203
+ * @property {boolean} [is_active]
204
+ * @property {string} name
205
+ */
206
+
207
+ /**
208
+ * @typedef DpRuleRequest
209
+ * @property {number} [company_id]
210
+ * @property {Object[]} conditions
211
+ * @property {Object} dp_ids
212
+ * @property {boolean} [is_active]
213
+ * @property {string} name
214
+ */
215
+
216
+ /**
217
+ * @typedef DpRuleResponse
218
+ * @property {number} company_id
219
+ * @property {string[]} conditions
220
+ * @property {Object} [created_by]
221
+ * @property {string} [created_on]
222
+ * @property {Object} dp_ids
223
+ * @property {boolean} [is_active]
224
+ * @property {Object} [modified_by]
225
+ * @property {string} [modified_on]
226
+ * @property {string} name
227
+ * @property {string} uid
228
+ */
229
+
230
+ /**
231
+ * @typedef DpRuleSuccessResponse
232
+ * @property {DpRule} data
233
+ * @property {number} status_code
234
+ * @property {boolean} success
235
+ */
236
+
237
+ /**
238
+ * @typedef DpRulesUpdateRequest
239
+ * @property {Object[]} conditions
240
+ * @property {Object} dp_ids
241
+ * @property {boolean} is_active
242
+ * @property {string} name
243
+ */
244
+
245
+ /**
246
+ * @typedef DpRuleUpdateSuccessResponse
247
+ * @property {DpRuleResponse} data
248
+ * @property {number} status_code
249
+ * @property {boolean} success
250
+ */
251
+
252
+ /**
253
+ * @typedef DpSchemaInRuleListing
254
+ * @property {string} account_id
255
+ * @property {string} dp_id
256
+ * @property {boolean} is_self_ship
257
+ * @property {string} name
258
+ * @property {string} plan_id
259
+ * @property {Object} plan_rules
260
+ * @property {number} priority
261
+ * @property {string} stage
262
+ */
263
+
264
+ /**
265
+ * @typedef EinvoiceResponse
266
+ * @property {boolean} [enabled]
267
+ */
268
+
269
+ /**
270
+ * @typedef EntityRegionView_Error
271
+ * @property {string} [message]
272
+ * @property {string} [type]
273
+ * @property {string} [value]
274
+ */
275
+
276
+ /**
277
+ * @typedef EntityRegionView_Items
278
+ * @property {string} [display_name]
279
+ * @property {string} name
280
+ * @property {string} sub_type
281
+ * @property {string} uid
282
+ */
283
+
284
+ /**
285
+ * @typedef EntityRegionView_page
286
+ * @property {number} current
287
+ * @property {boolean} has_next
288
+ * @property {number} item_total
289
+ * @property {number} size
290
+ * @property {string} type
291
+ */
292
+
293
+ /**
294
+ * @typedef EntityRegionView_Request
295
+ * @property {string[]} [parent_id]
296
+ * @property {string[]} sub_type
297
+ */
298
+
299
+ /**
300
+ * @typedef EntityRegionView_Response
301
+ * @property {EntityRegionView_Error} error
302
+ * @property {EntityRegionView_Items[]} [items]
303
+ * @property {EntityRegionView_page} page
304
+ * @property {boolean} success
305
+ */
306
+
307
+ /**
308
+ * @typedef Error
309
+ * @property {string} [message]
310
+ * @property {string} [type]
311
+ * @property {string} [value]
312
+ */
313
+
314
+ /**
315
+ * @typedef ErrorResponse
316
+ * @property {string} message
317
+ * @property {string} type
318
+ * @property {string} value
319
+ */
320
+
321
+ /**
322
+ * @typedef EwayBillResponse
323
+ * @property {boolean} [enabled]
324
+ */
325
+
326
+ /**
327
+ * @typedef FailureResponse
328
+ * @property {ErrorResponse[]} error
329
+ * @property {number} status_code
330
+ * @property {boolean} success
331
+ */
332
+
333
+ /**
334
+ * @typedef GetSingleZoneDataViewResponse
335
+ * @property {GetZoneDataViewItems} data
336
+ */
337
+
338
+ /**
339
+ * @typedef GetStoresViewResponse
340
+ * @property {ItemResponse[]} [items]
341
+ * @property {ServiceabilityPageResponse} page
342
+ */
343
+
344
+ /**
345
+ * @typedef GetZoneDataViewChannels
346
+ * @property {string} channel_id
347
+ * @property {string} channel_type
348
+ */
349
+
350
+ /**
351
+ * @typedef GetZoneDataViewItems
352
+ * @property {string} [assignment_preference]
353
+ * @property {GetZoneDataViewChannels[]} channels
354
+ * @property {number} [company_id]
355
+ * @property {boolean} is_active
356
+ * @property {ZoneMappingType[]} mapping
357
+ * @property {string} name
358
+ * @property {number} pincodes_count
359
+ * @property {ZoneProductTypes} product
360
+ * @property {string} region_type
361
+ * @property {string} slug
362
+ * @property {number[]} store_ids
363
+ * @property {number} stores_count
364
+ * @property {string} zone_id
365
+ */
366
+
367
+ /**
368
+ * @typedef GetZoneFromApplicationIdViewResponse
369
+ * @property {ListViewItems[]} items
370
+ * @property {ZoneDataItem[]} page
371
+ */
372
+
373
+ /**
374
+ * @typedef GetZoneFromPincodeViewRequest
375
+ * @property {string} country
376
+ * @property {string} pincode
377
+ */
378
+
379
+ /**
380
+ * @typedef GetZoneFromPincodeViewResponse
381
+ * @property {string} serviceability_type
382
+ * @property {Zone[]} zones
383
+ */
384
+
385
+ /**
386
+ * @typedef GstCredentialsResponse
387
+ * @property {EinvoiceResponse} [e_invoice]
388
+ * @property {EwayBillResponse} [e_waybill]
389
+ */
390
+
391
+ /**
392
+ * @typedef IntegrationTypeResponse
393
+ * @property {string} [inventory]
394
+ * @property {string} [order]
395
+ */
396
+
397
+ /**
398
+ * @typedef ItemResponse
399
+ * @property {string} [_cls]
400
+ * @property {Object} [_custom_json]
401
+ * @property {AddressResponse} [address]
402
+ * @property {string} [code]
403
+ * @property {number} [company]
404
+ * @property {number} [company_id]
405
+ * @property {ContactNumberResponse[]} [contact_numbers]
406
+ * @property {CreatedByResponse} [created_by]
407
+ * @property {string} [created_on]
408
+ * @property {string} [display_name]
409
+ * @property {DocumentsResponse[]} [documents]
410
+ * @property {GstCredentialsResponse} [gst_credentials]
411
+ * @property {IntegrationTypeResponse} [integration_type]
412
+ * @property {LogisticsResponse} [logistics]
413
+ * @property {ManagerResponse} [manager]
414
+ * @property {ModifiedByResponse} [modified_by]
415
+ * @property {string} [modified_on]
416
+ * @property {string} [name]
417
+ * @property {string[]} [notification_emails]
418
+ * @property {ProductReturnConfigResponse} [product_return_config]
419
+ * @property {string} [stage]
420
+ * @property {string} [store_type]
421
+ * @property {string} [sub_type]
422
+ * @property {TimmingResponse[]} [timing]
423
+ * @property {number} [uid]
424
+ * @property {ModifiedByResponse} [verified_by]
425
+ * @property {string} [verified_on]
426
+ * @property {WarningsResponse} [warnings]
427
+ */
428
+
429
+ /**
430
+ * @typedef ListViewChannels
431
+ * @property {string} channel_id
432
+ * @property {string} channel_type
433
+ */
434
+
435
+ /**
436
+ * @typedef ListViewItems
437
+ * @property {ListViewChannels[]} channels
438
+ * @property {number} company_id
439
+ * @property {boolean} is_active
440
+ * @property {string} name
441
+ * @property {number} pincodes_count
442
+ * @property {ListViewProduct} product
443
+ * @property {string} slug
444
+ * @property {number} stores_count
445
+ * @property {string} zone_id
446
+ */
447
+
448
+ /**
449
+ * @typedef ListViewProduct
450
+ * @property {number} count
451
+ * @property {string} type
452
+ */
453
+
454
+ /**
455
+ * @typedef ListViewResponse
456
+ * @property {ListViewItems[]} items
457
+ * @property {ZoneDataItem} page
458
+ * @property {ListViewSummary} summary
459
+ */
460
+
461
+ /**
462
+ * @typedef ListViewSummary
463
+ * @property {number} total_active_zones
464
+ * @property {number} total_pincodes_served
465
+ * @property {number} total_zones
466
+ */
467
+
468
+ /**
469
+ * @typedef LogisticsResponse
470
+ * @property {Dp} [dp]
471
+ * @property {boolean} [override]
472
+ */
473
+
474
+ /**
475
+ * @typedef ManagerResponse
476
+ * @property {string} [email]
477
+ * @property {MobileNo} [mobile_no]
478
+ * @property {string} [name]
479
+ */
480
+
481
+ /**
482
+ * @typedef MobileNo
483
+ * @property {number} [country_code]
484
+ * @property {string} [number]
485
+ */
486
+
487
+ /**
488
+ * @typedef ModifiedByResponse
489
+ * @property {string} [user_id]
490
+ * @property {string} [username]
491
+ */
492
+
493
+ /**
494
+ * @typedef OpeningClosing
495
+ * @property {number} [hour]
496
+ * @property {number} [minute]
497
+ */
498
+
499
+ /**
500
+ * @typedef Page
501
+ * @property {number} [current]
502
+ * @property {boolean} [has_next]
503
+ * @property {boolean} [has_previous]
504
+ * @property {number} [item_total]
505
+ * @property {string} [next_id]
506
+ * @property {number} [size]
507
+ * @property {string} type
508
+ */
509
+
510
+ /**
511
+ * @typedef PincodeBulkViewResponse
512
+ * @property {string} batch_id
513
+ * @property {string} s3_url
514
+ */
515
+
516
+ /**
517
+ * @typedef PincodeCodStatusListingPage
518
+ * @property {number} current
519
+ * @property {boolean} has_next
520
+ * @property {number} item_total
521
+ * @property {number} size
522
+ * @property {string} type
523
+ */
524
+
525
+ /**
526
+ * @typedef PincodeCodStatusListingRequest
527
+ * @property {string} [country]
528
+ * @property {number} [current]
529
+ * @property {boolean} [is_active]
530
+ * @property {number} [page_size]
531
+ * @property {number} [pincode]
532
+ */
533
+
534
+ /**
535
+ * @typedef PincodeCodStatusListingResponse
536
+ * @property {string} country
537
+ * @property {PincodeCodStatusListingResponse[]} data
538
+ * @property {Error[]} [errors]
539
+ * @property {PincodeCodStatusListingPage} page
540
+ * @property {boolean} success
541
+ * @property {PincodeCodStatusListingSummary} summary
542
+ */
543
+
544
+ /**
545
+ * @typedef PincodeCodStatusListingSummary
546
+ * @property {number} total_active_pincodes
547
+ * @property {number} total_inactive_pincodes
548
+ */
549
+
550
+ /**
551
+ * @typedef PincodeMopBulkData
552
+ * @property {string} batch_id
553
+ * @property {string} s3_url
554
+ */
555
+
556
+ /**
557
+ * @typedef PincodeMopData
558
+ * @property {string} action
559
+ * @property {string} country
560
+ * @property {number[]} pincodes
561
+ */
562
+
563
+ /**
564
+ * @typedef PincodeMOPresponse
565
+ * @property {string} action
566
+ * @property {string} batch_id
567
+ * @property {string} country
568
+ * @property {number[]} [pincodes]
569
+ * @property {number} status_code
570
+ * @property {boolean} success
571
+ * @property {PincodeMopUpdateResponse[]} [updated_pincodes]
572
+ */
573
+
574
+ /**
575
+ * @typedef PincodeMopUpdateAuditHistoryPaging
576
+ * @property {number} [current]
577
+ * @property {boolean} [has_next]
578
+ * @property {number} [item_total]
579
+ * @property {number} [size]
580
+ * @property {string} [type]
581
+ */
582
+
583
+ /**
584
+ * @typedef PincodeMopUpdateAuditHistoryRequest
585
+ * @property {string} entity_type
586
+ * @property {string} [file_name]
587
+ */
588
+
589
+ /**
590
+ * @typedef PincodeMopUpdateAuditHistoryResponse
591
+ * @property {string} [batch_id]
592
+ * @property {string} [entity_type]
593
+ * @property {string} [error_file_s3_url]
594
+ * @property {string} [file_name]
595
+ * @property {string} [s3_url]
596
+ * @property {boolean} [success]
597
+ * @property {string} [updated_at]
598
+ * @property {string} [updated_by]
599
+ */
600
+
601
+ /**
602
+ * @typedef PincodeMopUpdateAuditHistoryResponseData
603
+ * @property {PincodeMopUpdateAuditHistoryResponse[]} data
604
+ * @property {string} [entity_type]
605
+ * @property {PincodeMopUpdateAuditHistoryPaging} page
606
+ */
607
+
608
+ /**
609
+ * @typedef PincodeMopUpdateResponse
610
+ * @property {string} channel_id
611
+ * @property {string} country
612
+ * @property {boolean} is_active
613
+ * @property {number} pincode
614
+ */
615
+
616
+ /**
617
+ * @typedef ProductReturnConfigResponse
618
+ * @property {boolean} [on_same_store]
619
+ */
620
+
621
+ /**
622
+ * @typedef ReAssignStoreRequest
623
+ * @property {Object[]} articles
624
+ * @property {Object} configuration
625
+ * @property {string} identifier
626
+ * @property {string[]} ignored_locations
627
+ * @property {string} to_pincode
628
+ */
629
+
630
+ /**
631
+ * @typedef ReAssignStoreResponse
632
+ * @property {Object[]} [articles]
633
+ * @property {Object} error
634
+ * @property {boolean} success
635
+ * @property {string} to_pincode
636
+ */
637
+
638
+ /**
639
+ * @typedef SelfShipResponse
640
+ * @property {boolean} is_active
641
+ * @property {number} tat
642
+ */
643
+
644
+ /**
645
+ * @typedef ServiceabilityErrorResponse
646
+ * @property {string} message
647
+ * @property {string} type
648
+ * @property {string} value
649
+ */
650
+
651
+ /**
652
+ * @typedef ServiceabilityPageResponse
653
+ * @property {number} [current]
654
+ * @property {boolean} [has_next]
655
+ * @property {number} [item_total]
656
+ * @property {number} [size]
657
+ * @property {string} [type]
658
+ */
659
+
660
+ /**
661
+ * @typedef ServiceabilityPayloadSchema
662
+ * @property {string} serviceability_type
663
+ */
664
+
665
+ /**
666
+ * @typedef TimmingResponse
667
+ * @property {OpeningClosing} [closing]
668
+ * @property {boolean} [open]
669
+ * @property {OpeningClosing} [opening]
670
+ * @property {string} [weekday]
671
+ */
672
+
673
+ /**
674
+ * @typedef UpdateZoneData
675
+ * @property {string} [assignment_preference]
676
+ * @property {GetZoneDataViewChannels[]} channels
677
+ * @property {number} company_id
678
+ * @property {boolean} is_active
679
+ * @property {ZoneMappingType[]} mapping
680
+ * @property {string} name
681
+ * @property {ZoneProductTypes} product
682
+ * @property {string} region_type
683
+ * @property {string} slug
684
+ * @property {number[]} store_ids
685
+ * @property {string} zone_id
686
+ */
687
+
688
+ /**
689
+ * @typedef WarningsResponse
690
+ * @property {string} [store_address]
691
+ */
692
+
693
+ /**
694
+ * @typedef Zone
695
+ * @property {string} assignment_preference
696
+ * @property {boolean} is_active
697
+ * @property {string} name
698
+ * @property {string} slug
699
+ * @property {number[]} store_ids
700
+ * @property {string[]} tags
701
+ * @property {string} type
702
+ * @property {string} zone_id
703
+ */
704
+
705
+ /**
706
+ * @typedef ZoneDataItem
707
+ * @property {number} current
708
+ * @property {boolean} has_next
709
+ * @property {number} item_total
710
+ * @property {number} size
711
+ * @property {string} type
712
+ */
713
+
714
+ /**
715
+ * @typedef ZoneMappingType
716
+ * @property {string} country
717
+ * @property {string[]} [pincode]
718
+ * @property {string[]} [state]
719
+ */
720
+
721
+ /**
722
+ * @typedef ZoneProductTypes
723
+ * @property {string[]} tags
724
+ * @property {string} type
725
+ */
726
+
727
+ /**
728
+ * @typedef ZoneRequest
729
+ * @property {CreateZoneData} data
730
+ * @property {string} identifier
731
+ */
732
+
733
+ /**
734
+ * @typedef ZoneResponse
735
+ * @property {number} status_code
736
+ * @property {boolean} success
737
+ * @property {string} zone_id
738
+ */
739
+
740
+ /**
741
+ * @typedef ZoneSuccessResponse
742
+ * @property {number} status_code
743
+ * @property {boolean} success
744
+ */
745
+
746
+ /**
747
+ * @typedef ZoneUpdateRequest
748
+ * @property {UpdateZoneData} data
749
+ * @property {string} identifier
750
+ */
751
+
752
+ class ServiceabilityPlatformModel {
753
+ /** @returns {AddressResponse} */
4
754
  static AddressResponse() {
5
755
  return Joi.object({
6
756
  address1: Joi.string().allow(""),
@@ -14,11 +764,15 @@ class ServiceabilityModel {
14
764
  state: Joi.string().allow(""),
15
765
  });
16
766
  }
767
+
768
+ /** @returns {ApplicationCompanyDpViewRequest} */
17
769
  static ApplicationCompanyDpViewRequest() {
18
770
  return Joi.object({
19
771
  dp_id: Joi.string().allow(""),
20
772
  });
21
773
  }
774
+
775
+ /** @returns {ApplicationCompanyDpViewResponse} */
22
776
  static ApplicationCompanyDpViewResponse() {
23
777
  return Joi.object({
24
778
  application_id: Joi.string().allow("").required(),
@@ -27,18 +781,24 @@ class ServiceabilityModel {
27
781
  success: Joi.boolean().required(),
28
782
  });
29
783
  }
784
+
785
+ /** @returns {ApplicationSelfShipConfig} */
30
786
  static ApplicationSelfShipConfig() {
31
787
  return Joi.object({
32
- self_ship: ServiceabilityModel.SelfShipResponse(),
788
+ self_ship: Joi.any().allow(null),
33
789
  });
34
790
  }
791
+
792
+ /** @returns {ApplicationSelfShipConfigResponse} */
35
793
  static ApplicationSelfShipConfigResponse() {
36
794
  return Joi.object({
37
- data: ServiceabilityModel.ApplicationSelfShipConfig(),
38
- error: ServiceabilityModel.ServiceabilityErrorResponse(),
795
+ data: ServiceabilityPlatformModel.ApplicationSelfShipConfig(),
796
+ error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
39
797
  success: Joi.boolean().required(),
40
798
  });
41
799
  }
800
+
801
+ /** @returns {ApplicationServiceabilityConfig} */
42
802
  static ApplicationServiceabilityConfig() {
43
803
  return Joi.object({
44
804
  channel_id: Joi.string().allow("").required(),
@@ -46,13 +806,17 @@ class ServiceabilityModel {
46
806
  serviceability_type: Joi.string().allow("").required(),
47
807
  });
48
808
  }
809
+
810
+ /** @returns {ApplicationServiceabilityConfigResponse} */
49
811
  static ApplicationServiceabilityConfigResponse() {
50
812
  return Joi.object({
51
- data: ServiceabilityModel.ApplicationServiceabilityConfig(),
52
- error: ServiceabilityModel.ServiceabilityErrorResponse(),
813
+ data: ServiceabilityPlatformModel.ApplicationServiceabilityConfig(),
814
+ error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
53
815
  success: Joi.boolean().required(),
54
816
  });
55
817
  }
818
+
819
+ /** @returns {CommonError} */
56
820
  static CommonError() {
57
821
  return Joi.object({
58
822
  error: Joi.any(),
@@ -60,23 +824,31 @@ class ServiceabilityModel {
60
824
  success: Joi.string().allow(""),
61
825
  });
62
826
  }
827
+
828
+ /** @returns {CompanyDpAccountListResponse} */
63
829
  static CompanyDpAccountListResponse() {
64
830
  return Joi.object({
65
- items: Joi.array().items(ServiceabilityModel.Dp1()).required(),
66
- page: ServiceabilityModel.Page().required(),
831
+ items: Joi.array().items(ServiceabilityPlatformModel.Dp1()).required(),
832
+ page: ServiceabilityPlatformModel.Page().required(),
67
833
  success: Joi.boolean().required(),
68
834
  });
69
835
  }
836
+
837
+ /** @returns {CompanyDpAccountRequest} */
70
838
  static CompanyDpAccountRequest() {
71
839
  return Joi.object({
72
- data: Joi.array().items(ServiceabilityModel.Dp1()).required(),
840
+ data: Joi.array().items(ServiceabilityPlatformModel.Dp1()).required(),
73
841
  });
74
842
  }
843
+
844
+ /** @returns {CompanyDpAccountResponse} */
75
845
  static CompanyDpAccountResponse() {
76
846
  return Joi.object({
77
847
  success: Joi.boolean().required(),
78
848
  });
79
849
  }
850
+
851
+ /** @returns {CompanyStoreView_PageItems} */
80
852
  static CompanyStoreView_PageItems() {
81
853
  return Joi.object({
82
854
  current: Joi.number().required(),
@@ -86,44 +858,54 @@ class ServiceabilityModel {
86
858
  type: Joi.string().allow("").required(),
87
859
  });
88
860
  }
861
+
862
+ /** @returns {CompanyStoreView_Response} */
89
863
  static CompanyStoreView_Response() {
90
864
  return Joi.object({
91
865
  items: Joi.array().items(Joi.any()),
92
866
  page: Joi.array()
93
- .items(ServiceabilityModel.CompanyStoreView_PageItems())
867
+ .items(ServiceabilityPlatformModel.CompanyStoreView_PageItems())
94
868
  .required(),
95
869
  });
96
870
  }
871
+
872
+ /** @returns {ContactNumberResponse} */
97
873
  static ContactNumberResponse() {
98
874
  return Joi.object({
99
875
  country_code: Joi.number(),
100
876
  number: Joi.string().allow(""),
101
877
  });
102
878
  }
879
+
880
+ /** @returns {CreatedByResponse} */
103
881
  static CreatedByResponse() {
104
882
  return Joi.object({
105
883
  user_id: Joi.string().allow(""),
106
884
  username: Joi.string().allow(""),
107
885
  });
108
886
  }
887
+
888
+ /** @returns {CreateZoneData} */
109
889
  static CreateZoneData() {
110
890
  return Joi.object({
111
891
  assignment_preference: Joi.string().allow(""),
112
892
  channels: Joi.array()
113
- .items(ServiceabilityModel.GetZoneDataViewChannels())
893
+ .items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
114
894
  .required(),
115
895
  company_id: Joi.number().required(),
116
896
  is_active: Joi.boolean().required(),
117
897
  mapping: Joi.array()
118
- .items(ServiceabilityModel.ZoneMappingType())
898
+ .items(ServiceabilityPlatformModel.ZoneMappingType())
119
899
  .required(),
120
900
  name: Joi.string().allow("").required(),
121
- product: ServiceabilityModel.ZoneProductTypes().required(),
901
+ product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
122
902
  region_type: Joi.string().allow("").required(),
123
903
  slug: Joi.string().allow("").required(),
124
904
  store_ids: Joi.array().items(Joi.number()).required(),
125
905
  });
126
906
  }
907
+
908
+ /** @returns {DocumentsResponse} */
127
909
  static DocumentsResponse() {
128
910
  return Joi.object({
129
911
  legal_name: Joi.string().allow(""),
@@ -132,6 +914,8 @@ class ServiceabilityModel {
132
914
  verified: Joi.boolean(),
133
915
  });
134
916
  }
917
+
918
+ /** @returns {Dp} */
135
919
  static Dp() {
136
920
  return Joi.object({
137
921
  area_code: Joi.number().allow(null),
@@ -146,6 +930,8 @@ class ServiceabilityModel {
146
930
  transport_mode: Joi.string().allow(""),
147
931
  });
148
932
  }
933
+
934
+ /** @returns {Dp1} */
149
935
  static Dp1() {
150
936
  return Joi.object({
151
937
  account_id: Joi.string().allow("").required(),
@@ -157,37 +943,55 @@ class ServiceabilityModel {
157
943
  stage: Joi.string().allow("").required(),
158
944
  });
159
945
  }
946
+
947
+ /** @returns {DpAccountFailureResponse} */
160
948
  static DpAccountFailureResponse() {
161
949
  return Joi.object({
162
- error: Joi.array().items(ServiceabilityModel.ErrorResponse()).required(),
950
+ error: Joi.array()
951
+ .items(ServiceabilityPlatformModel.ErrorResponse())
952
+ .required(),
163
953
  status_code: Joi.number().required(),
164
954
  success: Joi.boolean().required(),
165
955
  });
166
956
  }
957
+
958
+ /** @returns {DPApplicationRuleRequest} */
167
959
  static DPApplicationRuleRequest() {
168
960
  return Joi.object({
169
961
  shipping_rules: Joi.array().items(Joi.string().allow("")).required(),
170
962
  });
171
963
  }
964
+
965
+ /** @returns {DPApplicationRuleResponse} */
172
966
  static DPApplicationRuleResponse() {
173
967
  return Joi.object({
174
- data: Joi.array().items(ServiceabilityModel.DpRuleResponse()).required(),
968
+ data: Joi.array()
969
+ .items(ServiceabilityPlatformModel.DpRuleResponse())
970
+ .required(),
175
971
  status_code: Joi.boolean().required(),
176
972
  success: Joi.boolean().required(),
177
973
  });
178
974
  }
975
+
976
+ /** @returns {DPCompanyRuleRequest} */
179
977
  static DPCompanyRuleRequest() {
180
978
  return Joi.object({
181
979
  rule_ids: Joi.array().items(Joi.string().allow("")).required(),
182
980
  });
183
981
  }
982
+
983
+ /** @returns {DPCompanyRuleResponse} */
184
984
  static DPCompanyRuleResponse() {
185
985
  return Joi.object({
186
- data: Joi.array().items(ServiceabilityModel.DpRuleResponse()).required(),
986
+ data: Joi.array()
987
+ .items(ServiceabilityPlatformModel.DpRuleResponse())
988
+ .required(),
187
989
  status_code: Joi.number().required(),
188
990
  success: Joi.boolean().required(),
189
991
  });
190
992
  }
993
+
994
+ /** @returns {DpIds} */
191
995
  static DpIds() {
192
996
  return Joi.object({
193
997
  enabled: Joi.boolean().required(),
@@ -195,35 +999,43 @@ class ServiceabilityModel {
195
999
  priority: Joi.number().required(),
196
1000
  });
197
1001
  }
1002
+
1003
+ /** @returns {DpMultipleRuleSuccessResponse} */
198
1004
  static DpMultipleRuleSuccessResponse() {
199
1005
  return Joi.object({
200
- items: Joi.array().items(ServiceabilityModel.DpRule()).required(),
201
- page: ServiceabilityModel.Page().required(),
1006
+ items: Joi.array().items(ServiceabilityPlatformModel.DpRule()).required(),
1007
+ page: ServiceabilityPlatformModel.Page().required(),
202
1008
  success: Joi.boolean().required(),
203
1009
  });
204
1010
  }
1011
+
1012
+ /** @returns {DpRule} */
205
1013
  static DpRule() {
206
1014
  return Joi.object({
207
1015
  company_id: Joi.number(),
208
1016
  conditions: Joi.array().items(Joi.any()).required(),
209
1017
  dp_ids: Joi.object()
210
- .pattern(/\S/, ServiceabilityModel.DpSchemaInRuleListing())
1018
+ .pattern(/\S/, ServiceabilityPlatformModel.DpSchemaInRuleListing())
211
1019
  .required(),
212
1020
  is_active: Joi.boolean(),
213
1021
  name: Joi.string().allow("").required(),
214
1022
  });
215
1023
  }
1024
+
1025
+ /** @returns {DpRuleRequest} */
216
1026
  static DpRuleRequest() {
217
1027
  return Joi.object({
218
1028
  company_id: Joi.number(),
219
1029
  conditions: Joi.array().items(Joi.any()).required(),
220
1030
  dp_ids: Joi.object()
221
- .pattern(/\S/, ServiceabilityModel.DpIds())
1031
+ .pattern(/\S/, ServiceabilityPlatformModel.DpIds())
222
1032
  .required(),
223
1033
  is_active: Joi.boolean(),
224
1034
  name: Joi.string().allow("").required(),
225
1035
  });
226
1036
  }
1037
+
1038
+ /** @returns {DpRuleResponse} */
227
1039
  static DpRuleResponse() {
228
1040
  return Joi.object({
229
1041
  company_id: Joi.number().required(),
@@ -238,13 +1050,17 @@ class ServiceabilityModel {
238
1050
  uid: Joi.string().allow("").required(),
239
1051
  });
240
1052
  }
1053
+
1054
+ /** @returns {DpRuleSuccessResponse} */
241
1055
  static DpRuleSuccessResponse() {
242
1056
  return Joi.object({
243
- data: ServiceabilityModel.DpRule().required(),
1057
+ data: ServiceabilityPlatformModel.DpRule().required(),
244
1058
  status_code: Joi.number().required(),
245
1059
  success: Joi.boolean().required(),
246
1060
  });
247
1061
  }
1062
+
1063
+ /** @returns {DpRulesUpdateRequest} */
248
1064
  static DpRulesUpdateRequest() {
249
1065
  return Joi.object({
250
1066
  conditions: Joi.array().items(Joi.any()).required(),
@@ -253,13 +1069,17 @@ class ServiceabilityModel {
253
1069
  name: Joi.string().allow("").required(),
254
1070
  });
255
1071
  }
1072
+
1073
+ /** @returns {DpRuleUpdateSuccessResponse} */
256
1074
  static DpRuleUpdateSuccessResponse() {
257
1075
  return Joi.object({
258
- data: ServiceabilityModel.DpRuleResponse().required(),
1076
+ data: ServiceabilityPlatformModel.DpRuleResponse().required(),
259
1077
  status_code: Joi.number().required(),
260
1078
  success: Joi.boolean().required(),
261
1079
  });
262
1080
  }
1081
+
1082
+ /** @returns {DpSchemaInRuleListing} */
263
1083
  static DpSchemaInRuleListing() {
264
1084
  return Joi.object({
265
1085
  account_id: Joi.string().allow("").required(),
@@ -272,11 +1092,15 @@ class ServiceabilityModel {
272
1092
  stage: Joi.string().allow("").required(),
273
1093
  });
274
1094
  }
1095
+
1096
+ /** @returns {EinvoiceResponse} */
275
1097
  static EinvoiceResponse() {
276
1098
  return Joi.object({
277
1099
  enabled: Joi.boolean(),
278
1100
  });
279
1101
  }
1102
+
1103
+ /** @returns {EntityRegionView_Error} */
280
1104
  static EntityRegionView_Error() {
281
1105
  return Joi.object({
282
1106
  message: Joi.string().allow(""),
@@ -284,6 +1108,8 @@ class ServiceabilityModel {
284
1108
  value: Joi.string().allow(""),
285
1109
  });
286
1110
  }
1111
+
1112
+ /** @returns {EntityRegionView_Items} */
287
1113
  static EntityRegionView_Items() {
288
1114
  return Joi.object({
289
1115
  display_name: Joi.string().allow(""),
@@ -292,6 +1118,8 @@ class ServiceabilityModel {
292
1118
  uid: Joi.string().allow("").required(),
293
1119
  });
294
1120
  }
1121
+
1122
+ /** @returns {EntityRegionView_page} */
295
1123
  static EntityRegionView_page() {
296
1124
  return Joi.object({
297
1125
  current: Joi.number().required(),
@@ -301,20 +1129,28 @@ class ServiceabilityModel {
301
1129
  type: Joi.string().allow("").required(),
302
1130
  });
303
1131
  }
1132
+
1133
+ /** @returns {EntityRegionView_Request} */
304
1134
  static EntityRegionView_Request() {
305
1135
  return Joi.object({
306
1136
  parent_id: Joi.array().items(Joi.string().allow("")),
307
1137
  sub_type: Joi.array().items(Joi.string().allow("")).required(),
308
1138
  });
309
1139
  }
1140
+
1141
+ /** @returns {EntityRegionView_Response} */
310
1142
  static EntityRegionView_Response() {
311
1143
  return Joi.object({
312
- error: ServiceabilityModel.EntityRegionView_Error().required(),
313
- items: Joi.array().items(ServiceabilityModel.EntityRegionView_Items()),
314
- page: ServiceabilityModel.EntityRegionView_page().required(),
1144
+ error: ServiceabilityPlatformModel.EntityRegionView_Error().required(),
1145
+ items: Joi.array().items(
1146
+ ServiceabilityPlatformModel.EntityRegionView_Items()
1147
+ ),
1148
+ page: ServiceabilityPlatformModel.EntityRegionView_page().required(),
315
1149
  success: Joi.boolean().required(),
316
1150
  });
317
1151
  }
1152
+
1153
+ /** @returns {Error} */
318
1154
  static Error() {
319
1155
  return Joi.object({
320
1156
  message: Joi.string().allow("").allow(null),
@@ -322,6 +1158,8 @@ class ServiceabilityModel {
322
1158
  value: Joi.string().allow("").allow(null),
323
1159
  });
324
1160
  }
1161
+
1162
+ /** @returns {ErrorResponse} */
325
1163
  static ErrorResponse() {
326
1164
  return Joi.object({
327
1165
  message: Joi.string().allow("").required(),
@@ -329,49 +1167,63 @@ class ServiceabilityModel {
329
1167
  value: Joi.string().allow("").required(),
330
1168
  });
331
1169
  }
1170
+
1171
+ /** @returns {EwayBillResponse} */
332
1172
  static EwayBillResponse() {
333
1173
  return Joi.object({
334
1174
  enabled: Joi.boolean(),
335
1175
  });
336
1176
  }
1177
+
1178
+ /** @returns {FailureResponse} */
337
1179
  static FailureResponse() {
338
1180
  return Joi.object({
339
- error: Joi.array().items(ServiceabilityModel.ErrorResponse()).required(),
1181
+ error: Joi.array()
1182
+ .items(ServiceabilityPlatformModel.ErrorResponse())
1183
+ .required(),
340
1184
  status_code: Joi.number().required(),
341
1185
  success: Joi.boolean().required(),
342
1186
  });
343
1187
  }
1188
+
1189
+ /** @returns {GetSingleZoneDataViewResponse} */
344
1190
  static GetSingleZoneDataViewResponse() {
345
1191
  return Joi.object({
346
- data: ServiceabilityModel.GetZoneDataViewItems().required(),
1192
+ data: ServiceabilityPlatformModel.GetZoneDataViewItems().required(),
347
1193
  });
348
1194
  }
1195
+
1196
+ /** @returns {GetStoresViewResponse} */
349
1197
  static GetStoresViewResponse() {
350
1198
  return Joi.object({
351
- items: Joi.array().items(ServiceabilityModel.ItemResponse()),
352
- page: ServiceabilityModel.ServiceabilityPageResponse().required(),
1199
+ items: Joi.array().items(ServiceabilityPlatformModel.ItemResponse()),
1200
+ page: ServiceabilityPlatformModel.ServiceabilityPageResponse().required(),
353
1201
  });
354
1202
  }
1203
+
1204
+ /** @returns {GetZoneDataViewChannels} */
355
1205
  static GetZoneDataViewChannels() {
356
1206
  return Joi.object({
357
1207
  channel_id: Joi.string().allow("").required(),
358
1208
  channel_type: Joi.string().allow("").required(),
359
1209
  });
360
1210
  }
1211
+
1212
+ /** @returns {GetZoneDataViewItems} */
361
1213
  static GetZoneDataViewItems() {
362
1214
  return Joi.object({
363
1215
  assignment_preference: Joi.string().allow(""),
364
1216
  channels: Joi.array()
365
- .items(ServiceabilityModel.GetZoneDataViewChannels())
1217
+ .items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
366
1218
  .required(),
367
1219
  company_id: Joi.number(),
368
1220
  is_active: Joi.boolean().required(),
369
1221
  mapping: Joi.array()
370
- .items(ServiceabilityModel.ZoneMappingType())
1222
+ .items(ServiceabilityPlatformModel.ZoneMappingType())
371
1223
  .required(),
372
1224
  name: Joi.string().allow("").required(),
373
1225
  pincodes_count: Joi.number().required(),
374
- product: ServiceabilityModel.ZoneProductTypes().required(),
1226
+ product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
375
1227
  region_type: Joi.string().allow("").required(),
376
1228
  slug: Joi.string().allow("").required(),
377
1229
  store_ids: Joi.array().items(Joi.number()).required(),
@@ -379,104 +1231,134 @@ class ServiceabilityModel {
379
1231
  zone_id: Joi.string().allow("").required(),
380
1232
  });
381
1233
  }
1234
+
1235
+ /** @returns {GetZoneFromApplicationIdViewResponse} */
382
1236
  static GetZoneFromApplicationIdViewResponse() {
383
1237
  return Joi.object({
384
- items: Joi.array().items(ServiceabilityModel.ListViewItems()).required(),
385
- page: Joi.array().items(ServiceabilityModel.ZoneDataItem()).required(),
1238
+ items: Joi.array()
1239
+ .items(ServiceabilityPlatformModel.ListViewItems())
1240
+ .required(),
1241
+ page: Joi.array()
1242
+ .items(ServiceabilityPlatformModel.ZoneDataItem())
1243
+ .required(),
386
1244
  });
387
1245
  }
1246
+
1247
+ /** @returns {GetZoneFromPincodeViewRequest} */
388
1248
  static GetZoneFromPincodeViewRequest() {
389
1249
  return Joi.object({
390
1250
  country: Joi.string().allow("").required(),
391
1251
  pincode: Joi.string().allow("").required(),
392
1252
  });
393
1253
  }
1254
+
1255
+ /** @returns {GetZoneFromPincodeViewResponse} */
394
1256
  static GetZoneFromPincodeViewResponse() {
395
1257
  return Joi.object({
396
1258
  serviceability_type: Joi.string().allow("").required(),
397
- zones: Joi.array().items(ServiceabilityModel.Zone()).required(),
1259
+ zones: Joi.array().items(ServiceabilityPlatformModel.Zone()).required(),
398
1260
  });
399
1261
  }
1262
+
1263
+ /** @returns {GstCredentialsResponse} */
400
1264
  static GstCredentialsResponse() {
401
1265
  return Joi.object({
402
- e_invoice: ServiceabilityModel.EinvoiceResponse(),
403
- e_waybill: ServiceabilityModel.EwayBillResponse(),
1266
+ e_invoice: ServiceabilityPlatformModel.EinvoiceResponse(),
1267
+ e_waybill: ServiceabilityPlatformModel.EwayBillResponse(),
404
1268
  });
405
1269
  }
1270
+
1271
+ /** @returns {IntegrationTypeResponse} */
406
1272
  static IntegrationTypeResponse() {
407
1273
  return Joi.object({
408
1274
  inventory: Joi.string().allow(""),
409
1275
  order: Joi.string().allow(""),
410
1276
  });
411
1277
  }
1278
+
1279
+ /** @returns {ItemResponse} */
412
1280
  static ItemResponse() {
413
1281
  return Joi.object({
414
1282
  _cls: Joi.string().allow(""),
415
1283
  _custom_json: Joi.any(),
416
- address: ServiceabilityModel.AddressResponse(),
1284
+ address: ServiceabilityPlatformModel.AddressResponse(),
417
1285
  code: Joi.string().allow(""),
418
1286
  company: Joi.number(),
419
1287
  company_id: Joi.number(),
420
1288
  contact_numbers: Joi.array().items(
421
- ServiceabilityModel.ContactNumberResponse()
1289
+ ServiceabilityPlatformModel.ContactNumberResponse()
422
1290
  ),
423
- created_by: ServiceabilityModel.CreatedByResponse(),
1291
+ created_by: ServiceabilityPlatformModel.CreatedByResponse(),
424
1292
  created_on: Joi.string().allow(""),
425
1293
  display_name: Joi.string().allow(""),
426
- documents: Joi.array().items(ServiceabilityModel.DocumentsResponse()),
427
- gst_credentials: ServiceabilityModel.GstCredentialsResponse(),
428
- integration_type: ServiceabilityModel.IntegrationTypeResponse(),
429
- logistics: ServiceabilityModel.LogisticsResponse(),
430
- manager: ServiceabilityModel.ManagerResponse(),
431
- modified_by: ServiceabilityModel.ModifiedByResponse(),
1294
+ documents: Joi.array().items(
1295
+ ServiceabilityPlatformModel.DocumentsResponse()
1296
+ ),
1297
+ gst_credentials: ServiceabilityPlatformModel.GstCredentialsResponse(),
1298
+ integration_type: ServiceabilityPlatformModel.IntegrationTypeResponse(),
1299
+ logistics: ServiceabilityPlatformModel.LogisticsResponse(),
1300
+ manager: ServiceabilityPlatformModel.ManagerResponse(),
1301
+ modified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
432
1302
  modified_on: Joi.string().allow(""),
433
1303
  name: Joi.string().allow(""),
434
1304
  notification_emails: Joi.array().items(Joi.string().allow("")),
435
- product_return_config: ServiceabilityModel.ProductReturnConfigResponse(),
1305
+ product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResponse(),
436
1306
  stage: Joi.string().allow(""),
437
1307
  store_type: Joi.string().allow(""),
438
1308
  sub_type: Joi.string().allow(""),
439
- timing: Joi.array().items(ServiceabilityModel.TimmingResponse()),
1309
+ timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResponse()),
440
1310
  uid: Joi.number(),
441
- verified_by: ServiceabilityModel.ModifiedByResponse(),
1311
+ verified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
442
1312
  verified_on: Joi.string().allow(""),
443
- warnings: ServiceabilityModel.WarningsResponse(),
1313
+ warnings: ServiceabilityPlatformModel.WarningsResponse(),
444
1314
  });
445
1315
  }
1316
+
1317
+ /** @returns {ListViewChannels} */
446
1318
  static ListViewChannels() {
447
1319
  return Joi.object({
448
1320
  channel_id: Joi.string().allow("").required(),
449
1321
  channel_type: Joi.string().allow("").required(),
450
1322
  });
451
1323
  }
1324
+
1325
+ /** @returns {ListViewItems} */
452
1326
  static ListViewItems() {
453
1327
  return Joi.object({
454
1328
  channels: Joi.array()
455
- .items(ServiceabilityModel.ListViewChannels())
1329
+ .items(ServiceabilityPlatformModel.ListViewChannels())
456
1330
  .required(),
457
1331
  company_id: Joi.number().required(),
458
1332
  is_active: Joi.boolean().required(),
459
1333
  name: Joi.string().allow("").required(),
460
1334
  pincodes_count: Joi.number().required(),
461
- product: ServiceabilityModel.ListViewProduct().required(),
1335
+ product: ServiceabilityPlatformModel.ListViewProduct().required(),
462
1336
  slug: Joi.string().allow("").required(),
463
1337
  stores_count: Joi.number().required(),
464
1338
  zone_id: Joi.string().allow("").required(),
465
1339
  });
466
1340
  }
1341
+
1342
+ /** @returns {ListViewProduct} */
467
1343
  static ListViewProduct() {
468
1344
  return Joi.object({
469
1345
  count: Joi.number().required(),
470
1346
  type: Joi.string().allow("").required(),
471
1347
  });
472
1348
  }
1349
+
1350
+ /** @returns {ListViewResponse} */
473
1351
  static ListViewResponse() {
474
1352
  return Joi.object({
475
- items: Joi.array().items(ServiceabilityModel.ListViewItems()).required(),
476
- page: ServiceabilityModel.ZoneDataItem().required(),
477
- summary: ServiceabilityModel.ListViewSummary().required(),
1353
+ items: Joi.array()
1354
+ .items(ServiceabilityPlatformModel.ListViewItems())
1355
+ .required(),
1356
+ page: ServiceabilityPlatformModel.ZoneDataItem().required(),
1357
+ summary: ServiceabilityPlatformModel.ListViewSummary().required(),
478
1358
  });
479
1359
  }
1360
+
1361
+ /** @returns {ListViewSummary} */
480
1362
  static ListViewSummary() {
481
1363
  return Joi.object({
482
1364
  total_active_zones: Joi.number().required(),
@@ -484,37 +1366,49 @@ class ServiceabilityModel {
484
1366
  total_zones: Joi.number().required(),
485
1367
  });
486
1368
  }
1369
+
1370
+ /** @returns {LogisticsResponse} */
487
1371
  static LogisticsResponse() {
488
1372
  return Joi.object({
489
- dp: ServiceabilityModel.Dp(),
1373
+ dp: ServiceabilityPlatformModel.Dp(),
490
1374
  override: Joi.boolean(),
491
1375
  });
492
1376
  }
1377
+
1378
+ /** @returns {ManagerResponse} */
493
1379
  static ManagerResponse() {
494
1380
  return Joi.object({
495
1381
  email: Joi.string().allow(""),
496
- mobile_no: ServiceabilityModel.MobileNo(),
1382
+ mobile_no: ServiceabilityPlatformModel.MobileNo(),
497
1383
  name: Joi.string().allow(""),
498
1384
  });
499
1385
  }
1386
+
1387
+ /** @returns {MobileNo} */
500
1388
  static MobileNo() {
501
1389
  return Joi.object({
502
1390
  country_code: Joi.number(),
503
1391
  number: Joi.string().allow(""),
504
1392
  });
505
1393
  }
1394
+
1395
+ /** @returns {ModifiedByResponse} */
506
1396
  static ModifiedByResponse() {
507
1397
  return Joi.object({
508
1398
  user_id: Joi.string().allow(""),
509
1399
  username: Joi.string().allow(""),
510
1400
  });
511
1401
  }
1402
+
1403
+ /** @returns {OpeningClosing} */
512
1404
  static OpeningClosing() {
513
1405
  return Joi.object({
514
1406
  hour: Joi.number(),
515
1407
  minute: Joi.number(),
516
1408
  });
517
1409
  }
1410
+
1411
+ /** @returns {Page} */
518
1412
  static Page() {
519
1413
  return Joi.object({
520
1414
  current: Joi.number(),
@@ -526,12 +1420,16 @@ class ServiceabilityModel {
526
1420
  type: Joi.string().allow("").required(),
527
1421
  });
528
1422
  }
1423
+
1424
+ /** @returns {PincodeBulkViewResponse} */
529
1425
  static PincodeBulkViewResponse() {
530
1426
  return Joi.object({
531
1427
  batch_id: Joi.string().allow("").required(),
532
1428
  s3_url: Joi.string().allow("").required(),
533
1429
  });
534
1430
  }
1431
+
1432
+ /** @returns {PincodeCodStatusListingPage} */
535
1433
  static PincodeCodStatusListingPage() {
536
1434
  return Joi.object({
537
1435
  current: Joi.number().required(),
@@ -541,6 +1439,8 @@ class ServiceabilityModel {
541
1439
  type: Joi.string().allow("").required(),
542
1440
  });
543
1441
  }
1442
+
1443
+ /** @returns {PincodeCodStatusListingRequest} */
544
1444
  static PincodeCodStatusListingRequest() {
545
1445
  return Joi.object({
546
1446
  country: Joi.string().allow(""),
@@ -550,30 +1450,38 @@ class ServiceabilityModel {
550
1450
  pincode: Joi.number().allow(null),
551
1451
  });
552
1452
  }
1453
+
1454
+ /** @returns {PincodeCodStatusListingResponse} */
553
1455
  static PincodeCodStatusListingResponse() {
554
1456
  return Joi.object({
555
1457
  country: Joi.string().allow("").required(),
556
1458
  data: Joi.array()
557
1459
  .items(Joi.link("#PincodeCodStatusListingResponse"))
558
1460
  .required(),
559
- errors: Joi.array().items(ServiceabilityModel.Error()),
560
- page: ServiceabilityModel.PincodeCodStatusListingPage().required(),
1461
+ errors: Joi.array().items(ServiceabilityPlatformModel.Error()),
1462
+ page: ServiceabilityPlatformModel.PincodeCodStatusListingPage().required(),
561
1463
  success: Joi.boolean().required(),
562
- summary: ServiceabilityModel.PincodeCodStatusListingSummary().required(),
1464
+ summary: ServiceabilityPlatformModel.PincodeCodStatusListingSummary().required(),
563
1465
  });
564
1466
  }
1467
+
1468
+ /** @returns {PincodeCodStatusListingSummary} */
565
1469
  static PincodeCodStatusListingSummary() {
566
1470
  return Joi.object({
567
1471
  total_active_pincodes: Joi.number().required(),
568
1472
  total_inactive_pincodes: Joi.number().required(),
569
1473
  });
570
1474
  }
1475
+
1476
+ /** @returns {PincodeMopBulkData} */
571
1477
  static PincodeMopBulkData() {
572
1478
  return Joi.object({
573
1479
  batch_id: Joi.string().allow("").required(),
574
1480
  s3_url: Joi.string().allow("").required(),
575
1481
  });
576
1482
  }
1483
+
1484
+ /** @returns {PincodeMopData} */
577
1485
  static PincodeMopData() {
578
1486
  return Joi.object({
579
1487
  action: Joi.string().allow("").required(),
@@ -581,6 +1489,8 @@ class ServiceabilityModel {
581
1489
  pincodes: Joi.array().items(Joi.number()).required(),
582
1490
  });
583
1491
  }
1492
+
1493
+ /** @returns {PincodeMOPresponse} */
584
1494
  static PincodeMOPresponse() {
585
1495
  return Joi.object({
586
1496
  action: Joi.string().allow("").required(),
@@ -590,10 +1500,12 @@ class ServiceabilityModel {
590
1500
  status_code: Joi.number().required(),
591
1501
  success: Joi.boolean().required(),
592
1502
  updated_pincodes: Joi.array().items(
593
- ServiceabilityModel.PincodeMopUpdateResponse()
1503
+ ServiceabilityPlatformModel.PincodeMopUpdateResponse()
594
1504
  ),
595
1505
  });
596
1506
  }
1507
+
1508
+ /** @returns {PincodeMopUpdateAuditHistoryPaging} */
597
1509
  static PincodeMopUpdateAuditHistoryPaging() {
598
1510
  return Joi.object({
599
1511
  current: Joi.number(),
@@ -603,12 +1515,16 @@ class ServiceabilityModel {
603
1515
  type: Joi.string().allow(""),
604
1516
  });
605
1517
  }
1518
+
1519
+ /** @returns {PincodeMopUpdateAuditHistoryRequest} */
606
1520
  static PincodeMopUpdateAuditHistoryRequest() {
607
1521
  return Joi.object({
608
1522
  entity_type: Joi.string().allow("").required(),
609
1523
  file_name: Joi.string().allow(""),
610
1524
  });
611
1525
  }
1526
+
1527
+ /** @returns {PincodeMopUpdateAuditHistoryResponse} */
612
1528
  static PincodeMopUpdateAuditHistoryResponse() {
613
1529
  return Joi.object({
614
1530
  batch_id: Joi.string().allow(""),
@@ -621,15 +1537,21 @@ class ServiceabilityModel {
621
1537
  updated_by: Joi.string().allow(""),
622
1538
  });
623
1539
  }
1540
+
1541
+ /** @returns {PincodeMopUpdateAuditHistoryResponseData} */
624
1542
  static PincodeMopUpdateAuditHistoryResponseData() {
625
1543
  return Joi.object({
626
1544
  data: Joi.array()
627
- .items(ServiceabilityModel.PincodeMopUpdateAuditHistoryResponse())
1545
+ .items(
1546
+ ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponse()
1547
+ )
628
1548
  .required(),
629
1549
  entity_type: Joi.string().allow(""),
630
- page: ServiceabilityModel.PincodeMopUpdateAuditHistoryPaging().required(),
1550
+ page: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryPaging().required(),
631
1551
  });
632
1552
  }
1553
+
1554
+ /** @returns {PincodeMopUpdateResponse} */
633
1555
  static PincodeMopUpdateResponse() {
634
1556
  return Joi.object({
635
1557
  channel_id: Joi.string().allow("").required(),
@@ -638,11 +1560,15 @@ class ServiceabilityModel {
638
1560
  pincode: Joi.number().required(),
639
1561
  });
640
1562
  }
1563
+
1564
+ /** @returns {ProductReturnConfigResponse} */
641
1565
  static ProductReturnConfigResponse() {
642
1566
  return Joi.object({
643
1567
  on_same_store: Joi.boolean(),
644
1568
  });
645
1569
  }
1570
+
1571
+ /** @returns {ReAssignStoreRequest} */
646
1572
  static ReAssignStoreRequest() {
647
1573
  return Joi.object({
648
1574
  articles: Joi.array().items(Joi.any()).required(),
@@ -652,6 +1578,8 @@ class ServiceabilityModel {
652
1578
  to_pincode: Joi.string().allow("").required(),
653
1579
  });
654
1580
  }
1581
+
1582
+ /** @returns {ReAssignStoreResponse} */
655
1583
  static ReAssignStoreResponse() {
656
1584
  return Joi.object({
657
1585
  articles: Joi.array().items(Joi.any()),
@@ -660,12 +1588,16 @@ class ServiceabilityModel {
660
1588
  to_pincode: Joi.string().allow("").required(),
661
1589
  });
662
1590
  }
1591
+
1592
+ /** @returns {SelfShipResponse} */
663
1593
  static SelfShipResponse() {
664
1594
  return Joi.object({
665
1595
  is_active: Joi.boolean().required(),
666
1596
  tat: Joi.number().required(),
667
1597
  });
668
1598
  }
1599
+
1600
+ /** @returns {ServiceabilityErrorResponse} */
669
1601
  static ServiceabilityErrorResponse() {
670
1602
  return Joi.object({
671
1603
  message: Joi.string().allow("").required(),
@@ -673,6 +1605,8 @@ class ServiceabilityModel {
673
1605
  value: Joi.string().allow("").required(),
674
1606
  });
675
1607
  }
1608
+
1609
+ /** @returns {ServiceabilityPageResponse} */
676
1610
  static ServiceabilityPageResponse() {
677
1611
  return Joi.object({
678
1612
  current: Joi.number(),
@@ -682,38 +1616,53 @@ class ServiceabilityModel {
682
1616
  type: Joi.string().allow(""),
683
1617
  });
684
1618
  }
1619
+
1620
+ /** @returns {ServiceabilityPayloadSchema} */
1621
+ static ServiceabilityPayloadSchema() {
1622
+ return Joi.object({
1623
+ serviceability_type: Joi.string().allow("").required(),
1624
+ });
1625
+ }
1626
+
1627
+ /** @returns {TimmingResponse} */
685
1628
  static TimmingResponse() {
686
1629
  return Joi.object({
687
- closing: ServiceabilityModel.OpeningClosing(),
1630
+ closing: ServiceabilityPlatformModel.OpeningClosing(),
688
1631
  open: Joi.boolean(),
689
- opening: ServiceabilityModel.OpeningClosing(),
1632
+ opening: ServiceabilityPlatformModel.OpeningClosing(),
690
1633
  weekday: Joi.string().allow(""),
691
1634
  });
692
1635
  }
1636
+
1637
+ /** @returns {UpdateZoneData} */
693
1638
  static UpdateZoneData() {
694
1639
  return Joi.object({
695
1640
  assignment_preference: Joi.string().allow(""),
696
1641
  channels: Joi.array()
697
- .items(ServiceabilityModel.GetZoneDataViewChannels())
1642
+ .items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
698
1643
  .required(),
699
1644
  company_id: Joi.number().required(),
700
1645
  is_active: Joi.boolean().required(),
701
1646
  mapping: Joi.array()
702
- .items(ServiceabilityModel.ZoneMappingType())
1647
+ .items(ServiceabilityPlatformModel.ZoneMappingType())
703
1648
  .required(),
704
1649
  name: Joi.string().allow("").required(),
705
- product: ServiceabilityModel.ZoneProductTypes().required(),
1650
+ product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
706
1651
  region_type: Joi.string().allow("").required(),
707
1652
  slug: Joi.string().allow("").required(),
708
1653
  store_ids: Joi.array().items(Joi.number()).required(),
709
1654
  zone_id: Joi.string().allow("").required(),
710
1655
  });
711
1656
  }
1657
+
1658
+ /** @returns {WarningsResponse} */
712
1659
  static WarningsResponse() {
713
1660
  return Joi.object({
714
1661
  store_address: Joi.string().allow(""),
715
1662
  });
716
1663
  }
1664
+
1665
+ /** @returns {Zone} */
717
1666
  static Zone() {
718
1667
  return Joi.object({
719
1668
  assignment_preference: Joi.string().allow("").required(),
@@ -726,6 +1675,8 @@ class ServiceabilityModel {
726
1675
  zone_id: Joi.string().allow("").required(),
727
1676
  });
728
1677
  }
1678
+
1679
+ /** @returns {ZoneDataItem} */
729
1680
  static ZoneDataItem() {
730
1681
  return Joi.object({
731
1682
  current: Joi.number().required(),
@@ -735,6 +1686,8 @@ class ServiceabilityModel {
735
1686
  type: Joi.string().allow("").required(),
736
1687
  });
737
1688
  }
1689
+
1690
+ /** @returns {ZoneMappingType} */
738
1691
  static ZoneMappingType() {
739
1692
  return Joi.object({
740
1693
  country: Joi.string().allow("").required(),
@@ -742,18 +1695,24 @@ class ServiceabilityModel {
742
1695
  state: Joi.array().items(Joi.string().allow("")),
743
1696
  });
744
1697
  }
1698
+
1699
+ /** @returns {ZoneProductTypes} */
745
1700
  static ZoneProductTypes() {
746
1701
  return Joi.object({
747
1702
  tags: Joi.array().items(Joi.string().allow("")).required(),
748
1703
  type: Joi.string().allow("").required(),
749
1704
  });
750
1705
  }
1706
+
1707
+ /** @returns {ZoneRequest} */
751
1708
  static ZoneRequest() {
752
1709
  return Joi.object({
753
- data: ServiceabilityModel.CreateZoneData().required(),
1710
+ data: ServiceabilityPlatformModel.CreateZoneData().required(),
754
1711
  identifier: Joi.string().allow("").required(),
755
1712
  });
756
1713
  }
1714
+
1715
+ /** @returns {ZoneResponse} */
757
1716
  static ZoneResponse() {
758
1717
  return Joi.object({
759
1718
  status_code: Joi.number().required(),
@@ -761,17 +1720,21 @@ class ServiceabilityModel {
761
1720
  zone_id: Joi.string().allow("").required(),
762
1721
  });
763
1722
  }
1723
+
1724
+ /** @returns {ZoneSuccessResponse} */
764
1725
  static ZoneSuccessResponse() {
765
1726
  return Joi.object({
766
1727
  status_code: Joi.number().required(),
767
1728
  success: Joi.boolean().required(),
768
1729
  });
769
1730
  }
1731
+
1732
+ /** @returns {ZoneUpdateRequest} */
770
1733
  static ZoneUpdateRequest() {
771
1734
  return Joi.object({
772
- data: ServiceabilityModel.UpdateZoneData().required(),
1735
+ data: ServiceabilityPlatformModel.UpdateZoneData().required(),
773
1736
  identifier: Joi.string().allow("").required(),
774
1737
  });
775
1738
  }
776
1739
  }
777
- module.exports = ServiceabilityModel;
1740
+ module.exports = ServiceabilityPlatformModel;