@gofynd/fdk-client-javascript 1.4.12 → 1.4.14

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 (297) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -53
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
  8. package/sdk/application/Cart/CartApplicationModel.js +380 -159
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
  10. package/sdk/application/Cart/CartApplicationValidator.js +34 -18
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
  16. package/sdk/application/Common/CommonApplicationClient.js +6 -5
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
  26. package/sdk/application/Content/ContentApplicationClient.js +54 -75
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
  28. package/sdk/application/Content/ContentApplicationModel.js +88 -34
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
  30. package/sdk/application/Content/ContentApplicationValidator.js +15 -10
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
  38. package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
  39. package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
  40. package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
  41. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
  42. package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +2 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  46. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  47. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
  48. package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
  49. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
  50. package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
  51. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
  52. package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
  53. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
  54. package/sdk/application/Order/OrderApplicationClient.js +96 -13
  55. package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
  56. package/sdk/application/Order/OrderApplicationModel.js +278 -73
  57. package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
  58. package/sdk/application/Order/OrderApplicationValidator.js +15 -2
  59. package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
  60. package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
  61. package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
  62. package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
  63. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  64. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  65. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
  66. package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  69. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  70. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  71. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  72. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  73. package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
  74. package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
  75. package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
  76. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
  77. package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
  78. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  79. package/sdk/application/User/UserApplicationClient.js +10 -10
  80. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  81. package/sdk/application/User/UserApplicationModel.js +16 -16
  82. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  83. package/sdk/application/User/UserApplicationValidator.js +2 -2
  84. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  85. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  86. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
  87. package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
  88. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  89. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  90. package/sdk/application/index.d.ts +1 -0
  91. package/sdk/application/index.js +2 -0
  92. package/sdk/common/Clickstream.js +12 -0
  93. package/sdk/common/Constant.d.ts +5 -0
  94. package/sdk/common/Constant.js +5 -0
  95. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  96. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  97. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  98. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  99. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  100. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  101. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  102. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  103. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  104. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  105. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  106. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  107. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
  108. package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
  109. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  110. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
  111. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  112. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  113. package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
  114. package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
  115. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  116. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  117. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  118. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  119. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  120. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  121. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  122. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  123. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  124. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  125. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  126. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  127. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  132. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  133. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  134. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  135. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  136. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  137. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  138. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  139. package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
  140. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  141. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  142. package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
  143. package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
  144. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
  145. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
  148. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
  149. package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
  150. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
  151. package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
  152. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  153. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  154. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  155. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  156. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  157. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  158. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  159. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  160. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  161. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  162. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  163. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  168. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  169. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  172. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  173. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  174. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  175. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  176. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  177. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  178. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  179. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  180. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  181. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  182. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  183. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  184. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  185. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  186. package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
  187. package/sdk/platform/Content/ContentPlatformModel.js +526 -392
  188. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  189. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  190. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  191. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  192. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  193. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  194. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  195. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  196. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  197. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  198. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  199. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  200. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  201. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  202. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  203. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  204. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  205. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  206. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  207. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  208. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  209. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  210. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
  211. package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
  212. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
  213. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  214. package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
  215. package/sdk/platform/Order/OrderPlatformClient.js +267 -203
  216. package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
  217. package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
  218. package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
  219. package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
  220. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  221. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  222. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  223. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  224. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  225. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  226. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  227. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  228. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  229. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  230. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
  231. package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
  232. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  233. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  234. package/sdk/platform/PlatformClient.d.ts +0 -2
  235. package/sdk/platform/PlatformClient.js +0 -4
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  238. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  239. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  240. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  241. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
  249. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
  250. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  251. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  252. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  253. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  254. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  255. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  256. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  257. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  258. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  259. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  260. package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
  261. package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
  262. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  263. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  264. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  265. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  266. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  267. package/sdk/platform/User/UserPlatformModel.js +23 -23
  268. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  269. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  270. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  271. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  272. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  273. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  274. package/sdk/platform/index.d.ts +0 -1
  275. package/sdk/platform/index.js +0 -2
  276. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  277. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  278. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  279. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  280. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  281. package/sdk/public/Content/ContentPublicClient.js +791 -5
  282. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  283. package/sdk/public/Content/ContentPublicModel.js +649 -3
  284. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  285. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  286. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  287. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  288. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  289. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  290. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  291. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  292. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  293. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  294. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  295. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  296. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  297. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,12 +1,12 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef UpdateZoneConfigRequest
4
+ * @typedef UpdateZoneConfigDetails
5
5
  * @property {string} [serviceability_type]
6
6
  */
7
7
 
8
8
  /**
9
- * @typedef ServiceabilityErrorResponse
9
+ * @typedef ServiceabilityErrorResult
10
10
  * @property {string} message
11
11
  * @property {string} value
12
12
  * @property {string} type
@@ -20,14 +20,14 @@ const Joi = require("joi");
20
20
  */
21
21
 
22
22
  /**
23
- * @typedef ApplicationServiceabilityConfigResponse
24
- * @property {ServiceabilityErrorResponse} [error]
23
+ * @typedef ApplicationServiceabilityConfigResult
24
+ * @property {ServiceabilityErrorResult} [error]
25
25
  * @property {ApplicationServiceabilityConfig} [data]
26
26
  * @property {boolean} success
27
27
  */
28
28
 
29
29
  /**
30
- * @typedef EntityRegionView_Request
30
+ * @typedef EntityRegionView_Details
31
31
  * @property {string[]} sub_type
32
32
  * @property {string[]} [parent_id]
33
33
  */
@@ -49,7 +49,7 @@ const Joi = require("joi");
49
49
  */
50
50
 
51
51
  /**
52
- * @typedef getAppRegionZonesResponse
52
+ * @typedef getAppRegionZonesResult
53
53
  * @property {PageSchema[]} page
54
54
  * @property {ListViewItems[]} items
55
55
  */
@@ -71,7 +71,7 @@ const Joi = require("joi");
71
71
  */
72
72
 
73
73
  /**
74
- * @typedef EntityRegionView_Response
74
+ * @typedef EntityRegionView_Result
75
75
  * @property {EntityRegionView_Error} error
76
76
  * @property {EntityRegionView_page} page
77
77
  * @property {EntityRegionView_Items[]} data
@@ -123,7 +123,7 @@ const Joi = require("joi");
123
123
  */
124
124
 
125
125
  /**
126
- * @typedef ListViewResponse
126
+ * @typedef ListViewResult
127
127
  * @property {ZoneDataItem} page
128
128
  * @property {ListViewItems[]} items
129
129
  */
@@ -138,7 +138,7 @@ const Joi = require("joi");
138
138
  */
139
139
 
140
140
  /**
141
- * @typedef CompanyStoreView_Response
141
+ * @typedef CompanyStoreView_Result
142
142
  * @property {CompanyStoreView_PageItems[]} page
143
143
  * @property {Object[]} [items]
144
144
  */
@@ -178,13 +178,13 @@ const Joi = require("joi");
178
178
  */
179
179
 
180
180
  /**
181
- * @typedef ZoneUpdateRequest
181
+ * @typedef ZoneUpdateDetails
182
182
  * @property {string} identifier
183
183
  * @property {UpdateZoneData} data
184
184
  */
185
185
 
186
186
  /**
187
- * @typedef ZoneSuccessResponse
187
+ * @typedef ZoneSuccessResult
188
188
  * @property {number} status_code
189
189
  * @property {boolean} success
190
190
  */
@@ -206,7 +206,7 @@ const Joi = require("joi");
206
206
  */
207
207
 
208
208
  /**
209
- * @typedef GetSingleZoneDataViewResponse
209
+ * @typedef GetSingleZoneDataViewResult
210
210
  * @property {GetZoneDataViewItems} data
211
211
  */
212
212
 
@@ -240,14 +240,14 @@ const Joi = require("joi");
240
240
  */
241
241
 
242
242
  /**
243
- * @typedef ZoneResponse
243
+ * @typedef ZoneResult
244
244
  * @property {number} status_code
245
245
  * @property {string} zone_id
246
246
  * @property {boolean} success
247
247
  */
248
248
 
249
249
  /**
250
- * @typedef GetZoneFromPincodeViewRequest
250
+ * @typedef GetZoneFromPincodeViewDetails
251
251
  * @property {string} country
252
252
  * @property {string} pincode
253
253
  */
@@ -265,19 +265,19 @@ const Joi = require("joi");
265
265
  */
266
266
 
267
267
  /**
268
- * @typedef GetZoneFromPincodeViewResponse
268
+ * @typedef GetZoneFromPincodeViewResult
269
269
  * @property {string} serviceability_type
270
270
  * @property {Zone[]} zones
271
271
  */
272
272
 
273
273
  /**
274
- * @typedef GetZoneFromApplicationIdViewResponse
274
+ * @typedef GetZoneFromApplicationIdViewResult
275
275
  * @property {ZoneDataItem[]} page
276
276
  * @property {ListViewItems[]} items
277
277
  */
278
278
 
279
279
  /**
280
- * @typedef ServiceabilityPageResponse
280
+ * @typedef ServiceabilityPageResult
281
281
  * @property {string} [type]
282
282
  * @property {boolean} [has_next]
283
283
  * @property {number} [item_total]
@@ -292,37 +292,37 @@ const Joi = require("joi");
292
292
  */
293
293
 
294
294
  /**
295
- * @typedef ManagerResponse
295
+ * @typedef ManagerResult
296
296
  * @property {string} [email]
297
297
  * @property {MobileNo} [mobile_no]
298
298
  * @property {string} [name]
299
299
  */
300
300
 
301
301
  /**
302
- * @typedef ModifiedByResponse
302
+ * @typedef ModifiedByResult
303
303
  * @property {string} [username]
304
304
  * @property {string} [user_id]
305
305
  */
306
306
 
307
307
  /**
308
- * @typedef IntegrationTypeResponse
308
+ * @typedef IntegrationTypeResult
309
309
  * @property {string} [inventory]
310
310
  * @property {string} [order]
311
311
  */
312
312
 
313
313
  /**
314
- * @typedef ProductReturnConfigResponse
314
+ * @typedef ProductReturnConfigResult
315
315
  * @property {boolean} [on_same_store]
316
316
  */
317
317
 
318
318
  /**
319
- * @typedef ContactNumberResponse
319
+ * @typedef ContactNumberResult
320
320
  * @property {string} [number]
321
321
  * @property {number} [country_code]
322
322
  */
323
323
 
324
324
  /**
325
- * @typedef AddressResponse
325
+ * @typedef AddressResult
326
326
  * @property {string} [city]
327
327
  * @property {string} [address1]
328
328
  * @property {number} [pincode]
@@ -335,29 +335,29 @@ const Joi = require("joi");
335
335
  */
336
336
 
337
337
  /**
338
- * @typedef CreatedByResponse
338
+ * @typedef CreatedByResult
339
339
  * @property {string} [username]
340
340
  * @property {string} [user_id]
341
341
  */
342
342
 
343
343
  /**
344
- * @typedef EwayBillResponse
344
+ * @typedef EwayBillResult
345
345
  * @property {boolean} [enabled]
346
346
  */
347
347
 
348
348
  /**
349
- * @typedef EinvoiceResponse
349
+ * @typedef EinvoiceResult
350
350
  * @property {boolean} [enabled]
351
351
  */
352
352
 
353
353
  /**
354
- * @typedef GstCredentialsResponse
355
- * @property {EwayBillResponse} [e_waybill]
356
- * @property {EinvoiceResponse} [e_invoice]
354
+ * @typedef GstCredentialsResult
355
+ * @property {EwayBillResult} [e_waybill]
356
+ * @property {EinvoiceResult} [e_invoice]
357
357
  */
358
358
 
359
359
  /**
360
- * @typedef WarningsResponse
360
+ * @typedef WarningsResult
361
361
  * @property {string} [store_address]
362
362
  */
363
363
 
@@ -368,7 +368,7 @@ const Joi = require("joi");
368
368
  */
369
369
 
370
370
  /**
371
- * @typedef TimmingResponse
371
+ * @typedef TimmingResult
372
372
  * @property {boolean} [open]
373
373
  * @property {string} [weekday]
374
374
  * @property {OpeningClosing} [closing]
@@ -376,7 +376,7 @@ const Joi = require("joi");
376
376
  */
377
377
 
378
378
  /**
379
- * @typedef DocumentsResponse
379
+ * @typedef DocumentsResult
380
380
  * @property {string} [legal_name]
381
381
  * @property {string} [value]
382
382
  * @property {string} [type]
@@ -398,47 +398,47 @@ const Joi = require("joi");
398
398
  */
399
399
 
400
400
  /**
401
- * @typedef LogisticsResponse
401
+ * @typedef LogisticsResult
402
402
  * @property {boolean} [override]
403
403
  * @property {Dp} [dp]
404
404
  */
405
405
 
406
406
  /**
407
- * @typedef ItemResponse
407
+ * @typedef ItemResult
408
408
  * @property {string} [created_on]
409
- * @property {ManagerResponse} [manager]
410
- * @property {ModifiedByResponse} [modified_by]
411
- * @property {IntegrationTypeResponse} [integration_type]
409
+ * @property {ManagerResult} [manager]
410
+ * @property {ModifiedByResult} [modified_by]
411
+ * @property {IntegrationTypeResult} [integration_type]
412
412
  * @property {string} [verified_on]
413
- * @property {ProductReturnConfigResponse} [product_return_config]
414
- * @property {ContactNumberResponse[]} [contact_numbers]
415
- * @property {ModifiedByResponse} [verified_by]
413
+ * @property {ProductReturnConfigResult} [product_return_config]
414
+ * @property {ContactNumberResult[]} [contact_numbers]
415
+ * @property {ModifiedByResult} [verified_by]
416
416
  * @property {string} [stage]
417
- * @property {AddressResponse} [address]
417
+ * @property {AddressResult} [address]
418
418
  * @property {string} [modified_on]
419
- * @property {CreatedByResponse} [created_by]
420
- * @property {GstCredentialsResponse} [gst_credentials]
419
+ * @property {CreatedByResult} [created_by]
420
+ * @property {GstCredentialsResult} [gst_credentials]
421
421
  * @property {string} [display_name]
422
422
  * @property {number} [company_id]
423
423
  * @property {number} [uid]
424
424
  * @property {Object} [_custom_json]
425
425
  * @property {string} [code]
426
- * @property {WarningsResponse} [warnings]
426
+ * @property {WarningsResult} [warnings]
427
427
  * @property {string} [name]
428
- * @property {TimmingResponse[]} [timing]
429
- * @property {DocumentsResponse[]} [documents]
428
+ * @property {TimmingResult[]} [timing]
429
+ * @property {DocumentsResult[]} [documents]
430
430
  * @property {string} [store_type]
431
431
  * @property {string} [sub_type]
432
432
  * @property {number} [company]
433
433
  * @property {string} [_cls]
434
- * @property {LogisticsResponse} [logistics]
434
+ * @property {LogisticsResult} [logistics]
435
435
  * @property {string[]} [notification_emails]
436
436
  */
437
437
 
438
438
  /**
439
- * @typedef GetStoresViewResponse
440
- * @property {ServiceabilityPageResponse} page
441
- * @property {ItemResponse[]} [items]
439
+ * @typedef GetStoresViewResult
440
+ * @property {ServiceabilityPageResult} page
441
+ * @property {ItemResult[]} [items]
442
442
  */
443
443
 
444
444
  /**
@@ -449,7 +449,7 @@ const Joi = require("joi");
449
449
  */
450
450
 
451
451
  /**
452
- * @typedef PincodeMopUpdateResponse
452
+ * @typedef PincodeMopUpdateResult
453
453
  * @property {number} pincode
454
454
  * @property {string} channel_id
455
455
  * @property {string} country
@@ -457,14 +457,14 @@ const Joi = require("joi");
457
457
  */
458
458
 
459
459
  /**
460
- * @typedef PincodeMOPresponse
460
+ * @typedef PincodeMOPResult
461
461
  * @property {boolean} success
462
462
  * @property {number} status_code
463
463
  * @property {string} batch_id
464
464
  * @property {string} country
465
465
  * @property {string} action
466
466
  * @property {number[]} [pincodes]
467
- * @property {PincodeMopUpdateResponse[]} [updated_pincodes]
467
+ * @property {PincodeMopUpdateResult[]} [updated_pincodes]
468
468
  */
469
469
 
470
470
  /**
@@ -481,13 +481,13 @@ const Joi = require("joi");
481
481
  */
482
482
 
483
483
  /**
484
- * @typedef PincodeBulkViewResponse
484
+ * @typedef PincodeBulkViewResult
485
485
  * @property {string} batch_id
486
486
  * @property {string} s3_url
487
487
  */
488
488
 
489
489
  /**
490
- * @typedef PincodeCodStatusListingRequest
490
+ * @typedef PincodeCodStatusListingDetails
491
491
  * @property {string} [country]
492
492
  * @property {boolean} [is_active]
493
493
  * @property {number} [pincode]
@@ -496,9 +496,9 @@ const Joi = require("joi");
496
496
  */
497
497
 
498
498
  /**
499
- * @typedef PincodeCodStatusListingResponse
499
+ * @typedef PincodeCodStatusListingResult
500
500
  * @property {string} country
501
- * @property {PincodeCodStatusListingResponse[]} data
501
+ * @property {PincodeCodStatusListingResult[]} data
502
502
  * @property {boolean} success
503
503
  * @property {Error[]} [errors]
504
504
  * @property {PincodeCodStatusListingPage} page
@@ -528,7 +528,7 @@ const Joi = require("joi");
528
528
  */
529
529
 
530
530
  /**
531
- * @typedef PincodeMopUpdateAuditHistoryRequest
531
+ * @typedef PincodeMopUpdateAuditHistoryDetails
532
532
  * @property {string} entity_type
533
533
  * @property {string} [file_name]
534
534
  */
@@ -543,7 +543,7 @@ const Joi = require("joi");
543
543
  */
544
544
 
545
545
  /**
546
- * @typedef PincodeMopUpdateAuditHistoryResponse
546
+ * @typedef PincodeMopUpdateAuditHistoryResult
547
547
  * @property {string} [batch_id]
548
548
  * @property {string} [entity_type]
549
549
  * @property {string} [error_file_s3_url]
@@ -555,10 +555,10 @@ const Joi = require("joi");
555
555
  */
556
556
 
557
557
  /**
558
- * @typedef PincodeMopUpdateAuditHistoryResponseData
558
+ * @typedef PincodeMopUpdateAuditHistoryResultData
559
559
  * @property {string} [entity_type]
560
560
  * @property {PincodeMopUpdateAuditHistoryPaging} page
561
- * @property {PincodeMopUpdateAuditHistoryResponse[]} data
561
+ * @property {PincodeMopUpdateAuditHistoryResult[]} data
562
562
  */
563
563
 
564
564
  /**
@@ -600,7 +600,7 @@ const Joi = require("joi");
600
600
  */
601
601
 
602
602
  /**
603
- * @typedef CourierAccountRequestBody
603
+ * @typedef CourierAccountDetailsBody
604
604
  * @property {string} extension_id
605
605
  * @property {string} [account_id]
606
606
  * @property {string} scheme_id
@@ -610,16 +610,16 @@ const Joi = require("joi");
610
610
  */
611
611
 
612
612
  /**
613
- * @typedef ErrorResponse
613
+ * @typedef ErrorResult
614
614
  * @property {string} value
615
615
  * @property {string} message
616
616
  * @property {string} type
617
617
  */
618
618
 
619
619
  /**
620
- * @typedef CourierPartnerAccountFailureResponse
620
+ * @typedef CourierPartnerAccountFailureResult
621
621
  * @property {boolean} success
622
- * @property {ErrorResponse[]} error
622
+ * @property {ErrorResult[]} error
623
623
  */
624
624
 
625
625
  /**
@@ -634,7 +634,7 @@ const Joi = require("joi");
634
634
  */
635
635
 
636
636
  /**
637
- * @typedef CourierPartnerRuleCPListResponse
637
+ * @typedef CourierPartnerRuleCPListResult
638
638
  * @property {string} [account_id]
639
639
  * @property {string} [extension_id]
640
640
  * @property {boolean} [is_self_ship]
@@ -642,7 +642,7 @@ const Joi = require("joi");
642
642
  */
643
643
 
644
644
  /**
645
- * @typedef CourierPartnerRuleResponse
645
+ * @typedef CourierPartnerRuleResult
646
646
  * @property {boolean} [is_active]
647
647
  * @property {string} [application_id]
648
648
  * @property {number} [company_id]
@@ -654,7 +654,7 @@ const Joi = require("joi");
654
654
  * @property {string} [modified_on]
655
655
  * @property {string} [name]
656
656
  * @property {string} [type]
657
- * @property {CourierPartnerRuleCPListResponse[]} [cp_list]
657
+ * @property {CourierPartnerRuleCPListResult[]} [cp_list]
658
658
  */
659
659
 
660
660
  /**
@@ -719,17 +719,91 @@ const Joi = require("joi");
719
719
  */
720
720
 
721
721
  /**
722
- * @typedef FailureResponse
722
+ * @typedef FailureResult
723
723
  * @property {boolean} success
724
- * @property {ErrorResponse[]} error
724
+ * @property {ErrorResult[]} error
725
725
  */
726
726
 
727
727
  /**
728
- * @typedef CourierPartnerRulesListResponse
729
- * @property {CourierPartnerRuleResponse[]} items
728
+ * @typedef CourierPartnerRulesListResult
729
+ * @property {CourierPartnerRuleResult[]} items
730
730
  * @property {Page} page
731
731
  */
732
732
 
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
+
733
807
  /**
734
808
  * @typedef CompanyConfig
735
809
  * @property {string[]} rule_ids
@@ -750,7 +824,7 @@ const Joi = require("joi");
750
824
  */
751
825
 
752
826
  /**
753
- * @typedef BulkRegionJobSerializer
827
+ * @typedef BulkRegionJobDetails
754
828
  * @property {string} [file_path]
755
829
  * @property {string} country
756
830
  * @property {string} action
@@ -758,7 +832,7 @@ const Joi = require("joi");
758
832
  */
759
833
 
760
834
  /**
761
- * @typedef BulkRegionResponseItemData
835
+ * @typedef BulkRegionResultItemData
762
836
  * @property {string} file_path
763
837
  * @property {number} [failed]
764
838
  * @property {Object[]} [failed_records]
@@ -773,25 +847,25 @@ const Joi = require("joi");
773
847
  */
774
848
 
775
849
  /**
776
- * @typedef BulkRegionResponse
777
- * @property {BulkRegionResponseItemData[]} items
850
+ * @typedef BulkRegionResult
851
+ * @property {BulkRegionResultItemData[]} items
778
852
  * @property {Page} page
779
853
  */
780
854
 
781
855
  /**
782
- * @typedef SelfShipResponse
856
+ * @typedef SelfShipResult
783
857
  * @property {boolean} is_active
784
858
  * @property {number} tat
785
859
  */
786
860
 
787
861
  /**
788
862
  * @typedef ApplicationSelfShipConfig
789
- * @property {Object} [self_ship]
863
+ * @property {SelfShipResult} [self_ship]
790
864
  */
791
865
 
792
866
  /**
793
- * @typedef ApplicationSelfShipConfigResponse
794
- * @property {ServiceabilityErrorResponse} [error]
867
+ * @typedef ApplicationSelfShipConfigResult
868
+ * @property {ServiceabilityErrorResult} [error]
795
869
  * @property {ApplicationSelfShipConfig} [data]
796
870
  * @property {boolean} success
797
871
  */
@@ -850,13 +924,13 @@ const Joi = require("joi");
850
924
  */
851
925
 
852
926
  /**
853
- * @typedef GetStoreRulesApiResponse
927
+ * @typedef GetStoreRulesApiResult
854
928
  * @property {StoreRuleDataSchema[]} [items]
855
929
  * @property {Page} [page]
856
930
  */
857
931
 
858
932
  /**
859
- * @typedef CreateStoreRuleRequestSchema
933
+ * @typedef CreateStoreRuleDetailsSchema
860
934
  * @property {string} [name]
861
935
  * @property {boolean} [is_active]
862
936
  * @property {StoreRuleConditionSchema} [conditions]
@@ -867,7 +941,7 @@ const Joi = require("joi");
867
941
  */
868
942
 
869
943
  /**
870
- * @typedef StoreRuleResponseSchema
944
+ * @typedef StoreRuleResultSchema
871
945
  * @property {string} [id]
872
946
  * @property {string} [name]
873
947
  * @property {string} [type]
@@ -880,7 +954,7 @@ const Joi = require("joi");
880
954
  */
881
955
 
882
956
  /**
883
- * @typedef StoreRuleUpdateResponseSchema
957
+ * @typedef StoreRuleUpdateResultSchema
884
958
  * @property {string} [id]
885
959
  * @property {string} [name]
886
960
  * @property {string} [type]
@@ -898,8 +972,8 @@ const Joi = require("joi");
898
972
  * @typedef ServiceabilityModel
899
973
  * @property {number} lm_cod_limit
900
974
  * @property {boolean} is_qc
901
- * @property {string} pickup_cutoff
902
- * @property {string} route_code
975
+ * @property {string} [pickup_cutoff]
976
+ * @property {string} [route_code]
903
977
  * @property {boolean} is_first_mile
904
978
  * @property {boolean} is_return
905
979
  * @property {boolean} is_installation
@@ -942,7 +1016,7 @@ const Joi = require("joi");
942
1016
  */
943
1017
 
944
1018
  /**
945
- * @typedef CourierAccountResponse
1019
+ * @typedef CourierAccountResult
946
1020
  * @property {string} account_id
947
1021
  * @property {string} scheme_id
948
1022
  * @property {boolean} is_self_ship
@@ -952,8 +1026,8 @@ const Joi = require("joi");
952
1026
  */
953
1027
 
954
1028
  /**
955
- * @typedef CompanyCourierPartnerAccountListResponse
956
- * @property {CourierAccountResponse[]} items
1029
+ * @typedef CompanyCourierPartnerAccountListResult
1030
+ * @property {CourierAccountResult[]} items
957
1031
  * @property {Page} page
958
1032
  */
959
1033
 
@@ -979,7 +1053,7 @@ const Joi = require("joi");
979
1053
  */
980
1054
 
981
1055
  /**
982
- * @typedef PackageMaterialResponse
1056
+ * @typedef PackageMaterialResult
983
1057
  * @property {string} name
984
1058
  * @property {string} [id]
985
1059
  * @property {number} [item_id]
@@ -1020,7 +1094,7 @@ const Joi = require("joi");
1020
1094
  */
1021
1095
 
1022
1096
  /**
1023
- * @typedef PackageRuleResponse
1097
+ * @typedef PackageRuleResult
1024
1098
  * @property {string} [id]
1025
1099
  * @property {string} name
1026
1100
  * @property {number} company_id
@@ -1039,13 +1113,13 @@ const Joi = require("joi");
1039
1113
 
1040
1114
  /**
1041
1115
  * @typedef PackageMaterialRuleList
1042
- * @property {PackageRuleResponse} [items]
1116
+ * @property {PackageRuleResult} [items]
1043
1117
  * @property {Page} [page]
1044
1118
  */
1045
1119
 
1046
1120
  /**
1047
1121
  * @typedef PackageMaterialList
1048
- * @property {PackageMaterialResponse} [items]
1122
+ * @property {PackageMaterialResult} [items]
1049
1123
  * @property {Page} [page]
1050
1124
  */
1051
1125
 
@@ -1071,13 +1145,13 @@ const Joi = require("joi");
1071
1145
  */
1072
1146
 
1073
1147
  /**
1074
- * @typedef RulePriorityRequest
1148
+ * @typedef RulePriorityDetails
1075
1149
  * @property {string} rule_id
1076
1150
  * @property {number} priority
1077
1151
  */
1078
1152
 
1079
1153
  /**
1080
- * @typedef RulePriorityResponse
1154
+ * @typedef RulePriorityResult
1081
1155
  * @property {boolean} [success]
1082
1156
  */
1083
1157
 
@@ -1109,7 +1183,7 @@ const Joi = require("joi");
1109
1183
  * @typedef OptimalLocationsArticles
1110
1184
  * @property {number} item_id
1111
1185
  * @property {string} size
1112
- * @property {string} quantity
1186
+ * @property {number} quantity
1113
1187
  * @property {string} [group_id]
1114
1188
  * @property {boolean} [is_primary_item]
1115
1189
  * @property {Object} [meta]
@@ -1120,16 +1194,16 @@ const Joi = require("joi");
1120
1194
  */
1121
1195
 
1122
1196
  /**
1123
- * @typedef OptimlLocationsRequestSchema
1197
+ * @typedef OptimlLocationsDetailsSchema
1124
1198
  * @property {string} channel_id
1125
1199
  * @property {string} channel_type
1126
1200
  * @property {string} [channel_identifier]
1127
1201
  * @property {LocationDetailsServiceability} to_serviceability
1128
- * @property {OptimalLocationsArticles} [article]
1202
+ * @property {OptimalLocationsArticles[]} [articles]
1129
1203
  */
1130
1204
 
1131
1205
  /**
1132
- * @typedef OptimalLocationArticlesResponse
1206
+ * @typedef OptimalLocationArticlesResult
1133
1207
  * @property {number} item_id
1134
1208
  * @property {string} size
1135
1209
  * @property {number} quantity
@@ -1147,27 +1221,38 @@ const Joi = require("joi");
1147
1221
  */
1148
1222
 
1149
1223
  /**
1150
- * @typedef OptimalLocationAssignedStoresResponse
1224
+ * @typedef OptimalLocationAssignedStoresResult
1151
1225
  * @property {number} store_id
1152
- * @property {OptimalLocationArticlesResponse[]} articles
1226
+ * @property {OptimalLocationArticlesResult[]} articles
1227
+ */
1228
+
1229
+ /**
1230
+ * @typedef OptimalLocationsResult
1231
+ * @property {OptimalLocationAssignedStoresResult[]} assigned_stores
1232
+ * @property {ErrorResult[]} [faulty_articles]
1153
1233
  */
1154
1234
 
1155
1235
  /**
1156
- * @typedef OptimalLocationsResponse
1157
- * @property {OptimalLocationAssignedStoresResponse[]} assigned_stores
1158
- * @property {ErrorResponse[]} [faulty_articles]
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.
1239
+ */
1240
+
1241
+ /**
1242
+ * @typedef StandardError
1243
+ * @property {string} message - A brief description of the error.
1159
1244
  */
1160
1245
 
1161
1246
  class ServiceabilityPlatformModel {
1162
- /** @returns {UpdateZoneConfigRequest} */
1163
- static UpdateZoneConfigRequest() {
1247
+ /** @returns {UpdateZoneConfigDetails} */
1248
+ static UpdateZoneConfigDetails() {
1164
1249
  return Joi.object({
1165
1250
  serviceability_type: Joi.string().allow(""),
1166
1251
  });
1167
1252
  }
1168
1253
 
1169
- /** @returns {ServiceabilityErrorResponse} */
1170
- static ServiceabilityErrorResponse() {
1254
+ /** @returns {ServiceabilityErrorResult} */
1255
+ static ServiceabilityErrorResult() {
1171
1256
  return Joi.object({
1172
1257
  message: Joi.string().allow("").required(),
1173
1258
  value: Joi.string().allow("").required(),
@@ -1184,17 +1269,17 @@ class ServiceabilityPlatformModel {
1184
1269
  });
1185
1270
  }
1186
1271
 
1187
- /** @returns {ApplicationServiceabilityConfigResponse} */
1188
- static ApplicationServiceabilityConfigResponse() {
1272
+ /** @returns {ApplicationServiceabilityConfigResult} */
1273
+ static ApplicationServiceabilityConfigResult() {
1189
1274
  return Joi.object({
1190
- error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
1275
+ error: ServiceabilityPlatformModel.ServiceabilityErrorResult(),
1191
1276
  data: ServiceabilityPlatformModel.ApplicationServiceabilityConfig(),
1192
1277
  success: Joi.boolean().required(),
1193
1278
  });
1194
1279
  }
1195
1280
 
1196
- /** @returns {EntityRegionView_Request} */
1197
- static EntityRegionView_Request() {
1281
+ /** @returns {EntityRegionView_Details} */
1282
+ static EntityRegionView_Details() {
1198
1283
  return Joi.object({
1199
1284
  sub_type: Joi.array().items(Joi.string().allow("")).required(),
1200
1285
  parent_id: Joi.array().items(Joi.string().allow("")),
@@ -1221,8 +1306,8 @@ class ServiceabilityPlatformModel {
1221
1306
  });
1222
1307
  }
1223
1308
 
1224
- /** @returns {getAppRegionZonesResponse} */
1225
- static getAppRegionZonesResponse() {
1309
+ /** @returns {getAppRegionZonesResult} */
1310
+ static getAppRegionZonesResult() {
1226
1311
  return Joi.object({
1227
1312
  page: Joi.array()
1228
1313
  .items(ServiceabilityPlatformModel.PageSchema())
@@ -1253,8 +1338,8 @@ class ServiceabilityPlatformModel {
1253
1338
  });
1254
1339
  }
1255
1340
 
1256
- /** @returns {EntityRegionView_Response} */
1257
- static EntityRegionView_Response() {
1341
+ /** @returns {EntityRegionView_Result} */
1342
+ static EntityRegionView_Result() {
1258
1343
  return Joi.object({
1259
1344
  error: ServiceabilityPlatformModel.EntityRegionView_Error().required(),
1260
1345
  page: ServiceabilityPlatformModel.EntityRegionView_page().required(),
@@ -1318,8 +1403,8 @@ class ServiceabilityPlatformModel {
1318
1403
  });
1319
1404
  }
1320
1405
 
1321
- /** @returns {ListViewResponse} */
1322
- static ListViewResponse() {
1406
+ /** @returns {ListViewResult} */
1407
+ static ListViewResult() {
1323
1408
  return Joi.object({
1324
1409
  page: ServiceabilityPlatformModel.ZoneDataItem().required(),
1325
1410
  items: Joi.array()
@@ -1339,8 +1424,8 @@ class ServiceabilityPlatformModel {
1339
1424
  });
1340
1425
  }
1341
1426
 
1342
- /** @returns {CompanyStoreView_Response} */
1343
- static CompanyStoreView_Response() {
1427
+ /** @returns {CompanyStoreView_Result} */
1428
+ static CompanyStoreView_Result() {
1344
1429
  return Joi.object({
1345
1430
  page: Joi.array()
1346
1431
  .items(ServiceabilityPlatformModel.CompanyStoreView_PageItems())
@@ -1395,16 +1480,16 @@ class ServiceabilityPlatformModel {
1395
1480
  });
1396
1481
  }
1397
1482
 
1398
- /** @returns {ZoneUpdateRequest} */
1399
- static ZoneUpdateRequest() {
1483
+ /** @returns {ZoneUpdateDetails} */
1484
+ static ZoneUpdateDetails() {
1400
1485
  return Joi.object({
1401
1486
  identifier: Joi.string().allow("").required(),
1402
1487
  data: ServiceabilityPlatformModel.UpdateZoneData().required(),
1403
1488
  });
1404
1489
  }
1405
1490
 
1406
- /** @returns {ZoneSuccessResponse} */
1407
- static ZoneSuccessResponse() {
1491
+ /** @returns {ZoneSuccessResult} */
1492
+ static ZoneSuccessResult() {
1408
1493
  return Joi.object({
1409
1494
  status_code: Joi.number().required(),
1410
1495
  success: Joi.boolean().required(),
@@ -1433,8 +1518,8 @@ class ServiceabilityPlatformModel {
1433
1518
  });
1434
1519
  }
1435
1520
 
1436
- /** @returns {GetSingleZoneDataViewResponse} */
1437
- static GetSingleZoneDataViewResponse() {
1521
+ /** @returns {GetSingleZoneDataViewResult} */
1522
+ static GetSingleZoneDataViewResult() {
1438
1523
  return Joi.object({
1439
1524
  data: ServiceabilityPlatformModel.GetZoneDataViewItems().required(),
1440
1525
  });
@@ -1481,8 +1566,8 @@ class ServiceabilityPlatformModel {
1481
1566
  });
1482
1567
  }
1483
1568
 
1484
- /** @returns {ZoneResponse} */
1485
- static ZoneResponse() {
1569
+ /** @returns {ZoneResult} */
1570
+ static ZoneResult() {
1486
1571
  return Joi.object({
1487
1572
  status_code: Joi.number().required(),
1488
1573
  zone_id: Joi.string().allow("").required(),
@@ -1490,8 +1575,8 @@ class ServiceabilityPlatformModel {
1490
1575
  });
1491
1576
  }
1492
1577
 
1493
- /** @returns {GetZoneFromPincodeViewRequest} */
1494
- static GetZoneFromPincodeViewRequest() {
1578
+ /** @returns {GetZoneFromPincodeViewDetails} */
1579
+ static GetZoneFromPincodeViewDetails() {
1495
1580
  return Joi.object({
1496
1581
  country: Joi.string().allow("").required(),
1497
1582
  pincode: Joi.string().allow("").required(),
@@ -1512,16 +1597,16 @@ class ServiceabilityPlatformModel {
1512
1597
  });
1513
1598
  }
1514
1599
 
1515
- /** @returns {GetZoneFromPincodeViewResponse} */
1516
- static GetZoneFromPincodeViewResponse() {
1600
+ /** @returns {GetZoneFromPincodeViewResult} */
1601
+ static GetZoneFromPincodeViewResult() {
1517
1602
  return Joi.object({
1518
1603
  serviceability_type: Joi.string().allow("").required(),
1519
1604
  zones: Joi.array().items(ServiceabilityPlatformModel.Zone()).required(),
1520
1605
  });
1521
1606
  }
1522
1607
 
1523
- /** @returns {GetZoneFromApplicationIdViewResponse} */
1524
- static GetZoneFromApplicationIdViewResponse() {
1608
+ /** @returns {GetZoneFromApplicationIdViewResult} */
1609
+ static GetZoneFromApplicationIdViewResult() {
1525
1610
  return Joi.object({
1526
1611
  page: Joi.array()
1527
1612
  .items(ServiceabilityPlatformModel.ZoneDataItem())
@@ -1532,8 +1617,8 @@ class ServiceabilityPlatformModel {
1532
1617
  });
1533
1618
  }
1534
1619
 
1535
- /** @returns {ServiceabilityPageResponse} */
1536
- static ServiceabilityPageResponse() {
1620
+ /** @returns {ServiceabilityPageResult} */
1621
+ static ServiceabilityPageResult() {
1537
1622
  return Joi.object({
1538
1623
  type: Joi.string().allow(""),
1539
1624
  has_next: Joi.boolean(),
@@ -1551,8 +1636,8 @@ class ServiceabilityPlatformModel {
1551
1636
  });
1552
1637
  }
1553
1638
 
1554
- /** @returns {ManagerResponse} */
1555
- static ManagerResponse() {
1639
+ /** @returns {ManagerResult} */
1640
+ static ManagerResult() {
1556
1641
  return Joi.object({
1557
1642
  email: Joi.string().allow(""),
1558
1643
  mobile_no: ServiceabilityPlatformModel.MobileNo(),
@@ -1560,39 +1645,39 @@ class ServiceabilityPlatformModel {
1560
1645
  });
1561
1646
  }
1562
1647
 
1563
- /** @returns {ModifiedByResponse} */
1564
- static ModifiedByResponse() {
1648
+ /** @returns {ModifiedByResult} */
1649
+ static ModifiedByResult() {
1565
1650
  return Joi.object({
1566
1651
  username: Joi.string().allow(""),
1567
1652
  user_id: Joi.string().allow(""),
1568
1653
  });
1569
1654
  }
1570
1655
 
1571
- /** @returns {IntegrationTypeResponse} */
1572
- static IntegrationTypeResponse() {
1656
+ /** @returns {IntegrationTypeResult} */
1657
+ static IntegrationTypeResult() {
1573
1658
  return Joi.object({
1574
1659
  inventory: Joi.string().allow(""),
1575
1660
  order: Joi.string().allow(""),
1576
1661
  });
1577
1662
  }
1578
1663
 
1579
- /** @returns {ProductReturnConfigResponse} */
1580
- static ProductReturnConfigResponse() {
1664
+ /** @returns {ProductReturnConfigResult} */
1665
+ static ProductReturnConfigResult() {
1581
1666
  return Joi.object({
1582
1667
  on_same_store: Joi.boolean(),
1583
1668
  });
1584
1669
  }
1585
1670
 
1586
- /** @returns {ContactNumberResponse} */
1587
- static ContactNumberResponse() {
1671
+ /** @returns {ContactNumberResult} */
1672
+ static ContactNumberResult() {
1588
1673
  return Joi.object({
1589
1674
  number: Joi.string().allow(""),
1590
1675
  country_code: Joi.number(),
1591
1676
  });
1592
1677
  }
1593
1678
 
1594
- /** @returns {AddressResponse} */
1595
- static AddressResponse() {
1679
+ /** @returns {AddressResult} */
1680
+ static AddressResult() {
1596
1681
  return Joi.object({
1597
1682
  city: Joi.string().allow(""),
1598
1683
  address1: Joi.string().allow(""),
@@ -1606,38 +1691,38 @@ class ServiceabilityPlatformModel {
1606
1691
  });
1607
1692
  }
1608
1693
 
1609
- /** @returns {CreatedByResponse} */
1610
- static CreatedByResponse() {
1694
+ /** @returns {CreatedByResult} */
1695
+ static CreatedByResult() {
1611
1696
  return Joi.object({
1612
1697
  username: Joi.string().allow(""),
1613
1698
  user_id: Joi.string().allow(""),
1614
1699
  });
1615
1700
  }
1616
1701
 
1617
- /** @returns {EwayBillResponse} */
1618
- static EwayBillResponse() {
1702
+ /** @returns {EwayBillResult} */
1703
+ static EwayBillResult() {
1619
1704
  return Joi.object({
1620
1705
  enabled: Joi.boolean(),
1621
1706
  });
1622
1707
  }
1623
1708
 
1624
- /** @returns {EinvoiceResponse} */
1625
- static EinvoiceResponse() {
1709
+ /** @returns {EinvoiceResult} */
1710
+ static EinvoiceResult() {
1626
1711
  return Joi.object({
1627
1712
  enabled: Joi.boolean(),
1628
1713
  });
1629
1714
  }
1630
1715
 
1631
- /** @returns {GstCredentialsResponse} */
1632
- static GstCredentialsResponse() {
1716
+ /** @returns {GstCredentialsResult} */
1717
+ static GstCredentialsResult() {
1633
1718
  return Joi.object({
1634
- e_waybill: ServiceabilityPlatformModel.EwayBillResponse(),
1635
- e_invoice: ServiceabilityPlatformModel.EinvoiceResponse(),
1719
+ e_waybill: ServiceabilityPlatformModel.EwayBillResult(),
1720
+ e_invoice: ServiceabilityPlatformModel.EinvoiceResult(),
1636
1721
  });
1637
1722
  }
1638
1723
 
1639
- /** @returns {WarningsResponse} */
1640
- static WarningsResponse() {
1724
+ /** @returns {WarningsResult} */
1725
+ static WarningsResult() {
1641
1726
  return Joi.object({
1642
1727
  store_address: Joi.string().allow(""),
1643
1728
  });
@@ -1651,8 +1736,8 @@ class ServiceabilityPlatformModel {
1651
1736
  });
1652
1737
  }
1653
1738
 
1654
- /** @returns {TimmingResponse} */
1655
- static TimmingResponse() {
1739
+ /** @returns {TimmingResult} */
1740
+ static TimmingResult() {
1656
1741
  return Joi.object({
1657
1742
  open: Joi.boolean(),
1658
1743
  weekday: Joi.string().allow(""),
@@ -1661,8 +1746,8 @@ class ServiceabilityPlatformModel {
1661
1746
  });
1662
1747
  }
1663
1748
 
1664
- /** @returns {DocumentsResponse} */
1665
- static DocumentsResponse() {
1749
+ /** @returns {DocumentsResult} */
1750
+ static DocumentsResult() {
1666
1751
  return Joi.object({
1667
1752
  legal_name: Joi.string().allow(""),
1668
1753
  value: Joi.string().allow(""),
@@ -1687,57 +1772,57 @@ class ServiceabilityPlatformModel {
1687
1772
  });
1688
1773
  }
1689
1774
 
1690
- /** @returns {LogisticsResponse} */
1691
- static LogisticsResponse() {
1775
+ /** @returns {LogisticsResult} */
1776
+ static LogisticsResult() {
1692
1777
  return Joi.object({
1693
1778
  override: Joi.boolean(),
1694
1779
  dp: ServiceabilityPlatformModel.Dp(),
1695
1780
  });
1696
1781
  }
1697
1782
 
1698
- /** @returns {ItemResponse} */
1699
- static ItemResponse() {
1783
+ /** @returns {ItemResult} */
1784
+ static ItemResult() {
1700
1785
  return Joi.object({
1701
1786
  created_on: Joi.string().allow(""),
1702
- manager: ServiceabilityPlatformModel.ManagerResponse(),
1703
- modified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
1704
- integration_type: ServiceabilityPlatformModel.IntegrationTypeResponse(),
1787
+ manager: ServiceabilityPlatformModel.ManagerResult(),
1788
+ modified_by: ServiceabilityPlatformModel.ModifiedByResult(),
1789
+ integration_type: ServiceabilityPlatformModel.IntegrationTypeResult(),
1705
1790
  verified_on: Joi.string().allow(""),
1706
- product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResponse(),
1791
+ product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResult(),
1707
1792
  contact_numbers: Joi.array().items(
1708
- ServiceabilityPlatformModel.ContactNumberResponse()
1793
+ ServiceabilityPlatformModel.ContactNumberResult()
1709
1794
  ),
1710
- verified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
1795
+ verified_by: ServiceabilityPlatformModel.ModifiedByResult(),
1711
1796
  stage: Joi.string().allow(""),
1712
- address: ServiceabilityPlatformModel.AddressResponse(),
1797
+ address: ServiceabilityPlatformModel.AddressResult(),
1713
1798
  modified_on: Joi.string().allow(""),
1714
- created_by: ServiceabilityPlatformModel.CreatedByResponse(),
1715
- gst_credentials: ServiceabilityPlatformModel.GstCredentialsResponse(),
1799
+ created_by: ServiceabilityPlatformModel.CreatedByResult(),
1800
+ gst_credentials: ServiceabilityPlatformModel.GstCredentialsResult(),
1716
1801
  display_name: Joi.string().allow(""),
1717
1802
  company_id: Joi.number(),
1718
1803
  uid: Joi.number(),
1719
- _custom_json: Joi.any(),
1804
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
1720
1805
  code: Joi.string().allow(""),
1721
- warnings: ServiceabilityPlatformModel.WarningsResponse(),
1806
+ warnings: ServiceabilityPlatformModel.WarningsResult(),
1722
1807
  name: Joi.string().allow(""),
1723
- timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResponse()),
1808
+ timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResult()),
1724
1809
  documents: Joi.array().items(
1725
- ServiceabilityPlatformModel.DocumentsResponse()
1810
+ ServiceabilityPlatformModel.DocumentsResult()
1726
1811
  ),
1727
1812
  store_type: Joi.string().allow(""),
1728
1813
  sub_type: Joi.string().allow(""),
1729
1814
  company: Joi.number(),
1730
1815
  _cls: Joi.string().allow(""),
1731
- logistics: ServiceabilityPlatformModel.LogisticsResponse(),
1816
+ logistics: ServiceabilityPlatformModel.LogisticsResult(),
1732
1817
  notification_emails: Joi.array().items(Joi.string().allow("")),
1733
1818
  });
1734
1819
  }
1735
1820
 
1736
- /** @returns {GetStoresViewResponse} */
1737
- static GetStoresViewResponse() {
1821
+ /** @returns {GetStoresViewResult} */
1822
+ static GetStoresViewResult() {
1738
1823
  return Joi.object({
1739
- page: ServiceabilityPlatformModel.ServiceabilityPageResponse().required(),
1740
- items: Joi.array().items(ServiceabilityPlatformModel.ItemResponse()),
1824
+ page: ServiceabilityPlatformModel.ServiceabilityPageResult().required(),
1825
+ items: Joi.array().items(ServiceabilityPlatformModel.ItemResult()),
1741
1826
  });
1742
1827
  }
1743
1828
 
@@ -1750,8 +1835,8 @@ class ServiceabilityPlatformModel {
1750
1835
  });
1751
1836
  }
1752
1837
 
1753
- /** @returns {PincodeMopUpdateResponse} */
1754
- static PincodeMopUpdateResponse() {
1838
+ /** @returns {PincodeMopUpdateResult} */
1839
+ static PincodeMopUpdateResult() {
1755
1840
  return Joi.object({
1756
1841
  pincode: Joi.number().required(),
1757
1842
  channel_id: Joi.string().allow("").required(),
@@ -1760,8 +1845,8 @@ class ServiceabilityPlatformModel {
1760
1845
  });
1761
1846
  }
1762
1847
 
1763
- /** @returns {PincodeMOPresponse} */
1764
- static PincodeMOPresponse() {
1848
+ /** @returns {PincodeMOPResult} */
1849
+ static PincodeMOPResult() {
1765
1850
  return Joi.object({
1766
1851
  success: Joi.boolean().required(),
1767
1852
  status_code: Joi.number().required(),
@@ -1770,7 +1855,7 @@ class ServiceabilityPlatformModel {
1770
1855
  action: Joi.string().allow("").required(),
1771
1856
  pincodes: Joi.array().items(Joi.number()),
1772
1857
  updated_pincodes: Joi.array().items(
1773
- ServiceabilityPlatformModel.PincodeMopUpdateResponse()
1858
+ ServiceabilityPlatformModel.PincodeMopUpdateResult()
1774
1859
  ),
1775
1860
  });
1776
1861
  }
@@ -1792,16 +1877,16 @@ class ServiceabilityPlatformModel {
1792
1877
  });
1793
1878
  }
1794
1879
 
1795
- /** @returns {PincodeBulkViewResponse} */
1796
- static PincodeBulkViewResponse() {
1880
+ /** @returns {PincodeBulkViewResult} */
1881
+ static PincodeBulkViewResult() {
1797
1882
  return Joi.object({
1798
1883
  batch_id: Joi.string().allow("").required(),
1799
1884
  s3_url: Joi.string().allow("").required(),
1800
1885
  });
1801
1886
  }
1802
1887
 
1803
- /** @returns {PincodeCodStatusListingRequest} */
1804
- static PincodeCodStatusListingRequest() {
1888
+ /** @returns {PincodeCodStatusListingDetails} */
1889
+ static PincodeCodStatusListingDetails() {
1805
1890
  return Joi.object({
1806
1891
  country: Joi.string().allow(""),
1807
1892
  is_active: Joi.boolean(),
@@ -1811,18 +1896,18 @@ class ServiceabilityPlatformModel {
1811
1896
  });
1812
1897
  }
1813
1898
 
1814
- /** @returns {PincodeCodStatusListingResponse} */
1815
- static PincodeCodStatusListingResponse() {
1899
+ /** @returns {PincodeCodStatusListingResult} */
1900
+ static PincodeCodStatusListingResult() {
1816
1901
  return Joi.object({
1817
1902
  country: Joi.string().allow("").required(),
1818
1903
  data: Joi.array()
1819
- .items(Joi.link("#PincodeCodStatusListingResponse"))
1904
+ .items(Joi.link("#PincodeCodStatusListingResult"))
1820
1905
  .required(),
1821
1906
  success: Joi.boolean().required(),
1822
1907
  errors: Joi.array().items(ServiceabilityPlatformModel.Error()),
1823
1908
  page: ServiceabilityPlatformModel.PincodeCodStatusListingPage().required(),
1824
1909
  summary: ServiceabilityPlatformModel.PincodeCodStatusListingSummary().required(),
1825
- }).id("PincodeCodStatusListingResponse");
1910
+ }).id("PincodeCodStatusListingResult");
1826
1911
  }
1827
1912
 
1828
1913
  /** @returns {Error} */
@@ -1853,8 +1938,8 @@ class ServiceabilityPlatformModel {
1853
1938
  });
1854
1939
  }
1855
1940
 
1856
- /** @returns {PincodeMopUpdateAuditHistoryRequest} */
1857
- static PincodeMopUpdateAuditHistoryRequest() {
1941
+ /** @returns {PincodeMopUpdateAuditHistoryDetails} */
1942
+ static PincodeMopUpdateAuditHistoryDetails() {
1858
1943
  return Joi.object({
1859
1944
  entity_type: Joi.string().allow("").required(),
1860
1945
  file_name: Joi.string().allow(""),
@@ -1872,8 +1957,8 @@ class ServiceabilityPlatformModel {
1872
1957
  });
1873
1958
  }
1874
1959
 
1875
- /** @returns {PincodeMopUpdateAuditHistoryResponse} */
1876
- static PincodeMopUpdateAuditHistoryResponse() {
1960
+ /** @returns {PincodeMopUpdateAuditHistoryResult} */
1961
+ static PincodeMopUpdateAuditHistoryResult() {
1877
1962
  return Joi.object({
1878
1963
  batch_id: Joi.string().allow(""),
1879
1964
  entity_type: Joi.string().allow(""),
@@ -1886,15 +1971,13 @@ class ServiceabilityPlatformModel {
1886
1971
  });
1887
1972
  }
1888
1973
 
1889
- /** @returns {PincodeMopUpdateAuditHistoryResponseData} */
1890
- static PincodeMopUpdateAuditHistoryResponseData() {
1974
+ /** @returns {PincodeMopUpdateAuditHistoryResultData} */
1975
+ static PincodeMopUpdateAuditHistoryResultData() {
1891
1976
  return Joi.object({
1892
1977
  entity_type: Joi.string().allow(""),
1893
1978
  page: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryPaging().required(),
1894
1979
  data: Joi.array()
1895
- .items(
1896
- ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponse()
1897
- )
1980
+ .items(ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResult())
1898
1981
  .required(),
1899
1982
  });
1900
1983
  }
@@ -1945,8 +2028,8 @@ class ServiceabilityPlatformModel {
1945
2028
  });
1946
2029
  }
1947
2030
 
1948
- /** @returns {CourierAccountRequestBody} */
1949
- static CourierAccountRequestBody() {
2031
+ /** @returns {CourierAccountDetailsBody} */
2032
+ static CourierAccountDetailsBody() {
1950
2033
  return Joi.object({
1951
2034
  extension_id: Joi.string().allow("").required(),
1952
2035
  account_id: Joi.string().allow(""),
@@ -1957,8 +2040,8 @@ class ServiceabilityPlatformModel {
1957
2040
  });
1958
2041
  }
1959
2042
 
1960
- /** @returns {ErrorResponse} */
1961
- static ErrorResponse() {
2043
+ /** @returns {ErrorResult} */
2044
+ static ErrorResult() {
1962
2045
  return Joi.object({
1963
2046
  value: Joi.string().allow("").required(),
1964
2047
  message: Joi.string().allow("").required(),
@@ -1966,12 +2049,12 @@ class ServiceabilityPlatformModel {
1966
2049
  });
1967
2050
  }
1968
2051
 
1969
- /** @returns {CourierPartnerAccountFailureResponse} */
1970
- static CourierPartnerAccountFailureResponse() {
2052
+ /** @returns {CourierPartnerAccountFailureResult} */
2053
+ static CourierPartnerAccountFailureResult() {
1971
2054
  return Joi.object({
1972
2055
  success: Joi.boolean().required(),
1973
2056
  error: Joi.array()
1974
- .items(ServiceabilityPlatformModel.ErrorResponse())
2057
+ .items(ServiceabilityPlatformModel.ErrorResult())
1975
2058
  .required(),
1976
2059
  });
1977
2060
  }
@@ -1989,32 +2072,32 @@ class ServiceabilityPlatformModel {
1989
2072
  });
1990
2073
  }
1991
2074
 
1992
- /** @returns {CourierPartnerRuleCPListResponse} */
1993
- static CourierPartnerRuleCPListResponse() {
2075
+ /** @returns {CourierPartnerRuleCPListResult} */
2076
+ static CourierPartnerRuleCPListResult() {
1994
2077
  return Joi.object({
1995
2078
  account_id: Joi.string().allow(""),
1996
2079
  extension_id: Joi.string().allow(""),
1997
2080
  is_self_ship: Joi.boolean(),
1998
- scheme_rules: Joi.any(),
2081
+ scheme_rules: Joi.object().pattern(/\S/, Joi.any()),
1999
2082
  });
2000
2083
  }
2001
2084
 
2002
- /** @returns {CourierPartnerRuleResponse} */
2003
- static CourierPartnerRuleResponse() {
2085
+ /** @returns {CourierPartnerRuleResult} */
2086
+ static CourierPartnerRuleResult() {
2004
2087
  return Joi.object({
2005
2088
  is_active: Joi.boolean(),
2006
2089
  application_id: Joi.string().allow(""),
2007
2090
  company_id: Joi.number(),
2008
2091
  conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions(),
2009
2092
  sort: Joi.array().items(Joi.string().allow("")),
2010
- created_by: Joi.any().allow(null),
2093
+ created_by: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2011
2094
  id: Joi.string().allow(""),
2012
- modified_by: Joi.any().allow(null),
2095
+ modified_by: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
2013
2096
  modified_on: Joi.string().allow("").allow(null),
2014
2097
  name: Joi.string().allow(""),
2015
2098
  type: Joi.string().allow(""),
2016
2099
  cp_list: Joi.array().items(
2017
- ServiceabilityPlatformModel.CourierPartnerRuleCPListResponse()
2100
+ ServiceabilityPlatformModel.CourierPartnerRuleCPListResult()
2018
2101
  ),
2019
2102
  });
2020
2103
  }
@@ -2098,26 +2181,125 @@ class ServiceabilityPlatformModel {
2098
2181
  });
2099
2182
  }
2100
2183
 
2101
- /** @returns {FailureResponse} */
2102
- static FailureResponse() {
2184
+ /** @returns {FailureResult} */
2185
+ static FailureResult() {
2103
2186
  return Joi.object({
2104
2187
  success: Joi.boolean().required(),
2105
2188
  error: Joi.array()
2106
- .items(ServiceabilityPlatformModel.ErrorResponse())
2189
+ .items(ServiceabilityPlatformModel.ErrorResult())
2107
2190
  .required(),
2108
2191
  });
2109
2192
  }
2110
2193
 
2111
- /** @returns {CourierPartnerRulesListResponse} */
2112
- static CourierPartnerRulesListResponse() {
2194
+ /** @returns {CourierPartnerRulesListResult} */
2195
+ static CourierPartnerRulesListResult() {
2113
2196
  return Joi.object({
2114
2197
  items: Joi.array()
2115
- .items(ServiceabilityPlatformModel.CourierPartnerRuleResponse())
2198
+ .items(ServiceabilityPlatformModel.CourierPartnerRuleResult())
2116
2199
  .required(),
2117
2200
  page: ServiceabilityPlatformModel.Page().required(),
2118
2201
  });
2119
2202
  }
2120
2203
 
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
+
2121
2303
  /** @returns {CompanyConfig} */
2122
2304
  static CompanyConfig() {
2123
2305
  return Joi.object({
@@ -2143,8 +2325,8 @@ class ServiceabilityPlatformModel {
2143
2325
  });
2144
2326
  }
2145
2327
 
2146
- /** @returns {BulkRegionJobSerializer} */
2147
- static BulkRegionJobSerializer() {
2328
+ /** @returns {BulkRegionJobDetails} */
2329
+ static BulkRegionJobDetails() {
2148
2330
  return Joi.object({
2149
2331
  file_path: Joi.string().allow(""),
2150
2332
  country: Joi.string().allow("").required(),
@@ -2153,12 +2335,12 @@ class ServiceabilityPlatformModel {
2153
2335
  });
2154
2336
  }
2155
2337
 
2156
- /** @returns {BulkRegionResponseItemData} */
2157
- static BulkRegionResponseItemData() {
2338
+ /** @returns {BulkRegionResultItemData} */
2339
+ static BulkRegionResultItemData() {
2158
2340
  return Joi.object({
2159
2341
  file_path: Joi.string().allow("").required(),
2160
2342
  failed: Joi.number(),
2161
- failed_records: Joi.array().items(Joi.any()),
2343
+ failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
2162
2344
  action: Joi.string().allow("").required(),
2163
2345
  batch_id: Joi.string().allow("").required(),
2164
2346
  country: Joi.string().allow("").required(),
@@ -2170,18 +2352,18 @@ class ServiceabilityPlatformModel {
2170
2352
  });
2171
2353
  }
2172
2354
 
2173
- /** @returns {BulkRegionResponse} */
2174
- static BulkRegionResponse() {
2355
+ /** @returns {BulkRegionResult} */
2356
+ static BulkRegionResult() {
2175
2357
  return Joi.object({
2176
2358
  items: Joi.array()
2177
- .items(ServiceabilityPlatformModel.BulkRegionResponseItemData())
2359
+ .items(ServiceabilityPlatformModel.BulkRegionResultItemData())
2178
2360
  .required(),
2179
2361
  page: ServiceabilityPlatformModel.Page().required(),
2180
2362
  });
2181
2363
  }
2182
2364
 
2183
- /** @returns {SelfShipResponse} */
2184
- static SelfShipResponse() {
2365
+ /** @returns {SelfShipResult} */
2366
+ static SelfShipResult() {
2185
2367
  return Joi.object({
2186
2368
  is_active: Joi.boolean().required(),
2187
2369
  tat: Joi.number().required(),
@@ -2191,14 +2373,14 @@ class ServiceabilityPlatformModel {
2191
2373
  /** @returns {ApplicationSelfShipConfig} */
2192
2374
  static ApplicationSelfShipConfig() {
2193
2375
  return Joi.object({
2194
- self_ship: Joi.any().allow(null),
2376
+ self_ship: ServiceabilityPlatformModel.SelfShipResult(),
2195
2377
  });
2196
2378
  }
2197
2379
 
2198
- /** @returns {ApplicationSelfShipConfigResponse} */
2199
- static ApplicationSelfShipConfigResponse() {
2380
+ /** @returns {ApplicationSelfShipConfigResult} */
2381
+ static ApplicationSelfShipConfigResult() {
2200
2382
  return Joi.object({
2201
- error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
2383
+ error: ServiceabilityPlatformModel.ServiceabilityErrorResult(),
2202
2384
  data: ServiceabilityPlatformModel.ApplicationSelfShipConfig(),
2203
2385
  success: Joi.boolean().required(),
2204
2386
  });
@@ -2271,8 +2453,8 @@ class ServiceabilityPlatformModel {
2271
2453
  });
2272
2454
  }
2273
2455
 
2274
- /** @returns {GetStoreRulesApiResponse} */
2275
- static GetStoreRulesApiResponse() {
2456
+ /** @returns {GetStoreRulesApiResult} */
2457
+ static GetStoreRulesApiResult() {
2276
2458
  return Joi.object({
2277
2459
  items: Joi.array().items(
2278
2460
  ServiceabilityPlatformModel.StoreRuleDataSchema()
@@ -2281,8 +2463,8 @@ class ServiceabilityPlatformModel {
2281
2463
  });
2282
2464
  }
2283
2465
 
2284
- /** @returns {CreateStoreRuleRequestSchema} */
2285
- static CreateStoreRuleRequestSchema() {
2466
+ /** @returns {CreateStoreRuleDetailsSchema} */
2467
+ static CreateStoreRuleDetailsSchema() {
2286
2468
  return Joi.object({
2287
2469
  name: Joi.string().allow(""),
2288
2470
  is_active: Joi.boolean(),
@@ -2296,8 +2478,8 @@ class ServiceabilityPlatformModel {
2296
2478
  });
2297
2479
  }
2298
2480
 
2299
- /** @returns {StoreRuleResponseSchema} */
2300
- static StoreRuleResponseSchema() {
2481
+ /** @returns {StoreRuleResultSchema} */
2482
+ static StoreRuleResultSchema() {
2301
2483
  return Joi.object({
2302
2484
  id: Joi.string().allow(""),
2303
2485
  name: Joi.string().allow(""),
@@ -2313,8 +2495,8 @@ class ServiceabilityPlatformModel {
2313
2495
  });
2314
2496
  }
2315
2497
 
2316
- /** @returns {StoreRuleUpdateResponseSchema} */
2317
- static StoreRuleUpdateResponseSchema() {
2498
+ /** @returns {StoreRuleUpdateResultSchema} */
2499
+ static StoreRuleUpdateResultSchema() {
2318
2500
  return Joi.object({
2319
2501
  id: Joi.string().allow(""),
2320
2502
  name: Joi.string().allow(""),
@@ -2337,8 +2519,8 @@ class ServiceabilityPlatformModel {
2337
2519
  return Joi.object({
2338
2520
  lm_cod_limit: Joi.number().required(),
2339
2521
  is_qc: Joi.boolean().required(),
2340
- pickup_cutoff: Joi.string().allow("").allow(null).required(),
2341
- route_code: Joi.string().allow("").allow(null).required(),
2522
+ pickup_cutoff: Joi.string().allow("").allow(null),
2523
+ route_code: Joi.string().allow("").allow(null),
2342
2524
  is_first_mile: Joi.boolean().required(),
2343
2525
  is_return: Joi.boolean().required(),
2344
2526
  is_installation: Joi.boolean().required(),
@@ -2385,8 +2567,8 @@ class ServiceabilityPlatformModel {
2385
2567
  });
2386
2568
  }
2387
2569
 
2388
- /** @returns {CourierAccountResponse} */
2389
- static CourierAccountResponse() {
2570
+ /** @returns {CourierAccountResult} */
2571
+ static CourierAccountResult() {
2390
2572
  return Joi.object({
2391
2573
  account_id: Joi.string().allow("").required(),
2392
2574
  scheme_id: Joi.string().allow("").required(),
@@ -2397,11 +2579,11 @@ class ServiceabilityPlatformModel {
2397
2579
  });
2398
2580
  }
2399
2581
 
2400
- /** @returns {CompanyCourierPartnerAccountListResponse} */
2401
- static CompanyCourierPartnerAccountListResponse() {
2582
+ /** @returns {CompanyCourierPartnerAccountListResult} */
2583
+ static CompanyCourierPartnerAccountListResult() {
2402
2584
  return Joi.object({
2403
2585
  items: Joi.array()
2404
- .items(ServiceabilityPlatformModel.CourierAccountResponse())
2586
+ .items(ServiceabilityPlatformModel.CourierAccountResult())
2405
2587
  .required(),
2406
2588
  page: ServiceabilityPlatformModel.Page().required(),
2407
2589
  });
@@ -2434,8 +2616,8 @@ class ServiceabilityPlatformModel {
2434
2616
  });
2435
2617
  }
2436
2618
 
2437
- /** @returns {PackageMaterialResponse} */
2438
- static PackageMaterialResponse() {
2619
+ /** @returns {PackageMaterialResult} */
2620
+ static PackageMaterialResult() {
2439
2621
  return Joi.object({
2440
2622
  name: Joi.string().allow("").required(),
2441
2623
  id: Joi.string().allow(""),
@@ -2485,8 +2667,8 @@ class ServiceabilityPlatformModel {
2485
2667
  });
2486
2668
  }
2487
2669
 
2488
- /** @returns {PackageRuleResponse} */
2489
- static PackageRuleResponse() {
2670
+ /** @returns {PackageRuleResult} */
2671
+ static PackageRuleResult() {
2490
2672
  return Joi.object({
2491
2673
  id: Joi.string().allow(""),
2492
2674
  name: Joi.string().allow("").required(),
@@ -2510,7 +2692,7 @@ class ServiceabilityPlatformModel {
2510
2692
  /** @returns {PackageMaterialRuleList} */
2511
2693
  static PackageMaterialRuleList() {
2512
2694
  return Joi.object({
2513
- items: ServiceabilityPlatformModel.PackageRuleResponse(),
2695
+ items: ServiceabilityPlatformModel.PackageRuleResult(),
2514
2696
  page: ServiceabilityPlatformModel.Page(),
2515
2697
  });
2516
2698
  }
@@ -2518,7 +2700,7 @@ class ServiceabilityPlatformModel {
2518
2700
  /** @returns {PackageMaterialList} */
2519
2701
  static PackageMaterialList() {
2520
2702
  return Joi.object({
2521
- items: ServiceabilityPlatformModel.PackageMaterialResponse(),
2703
+ items: ServiceabilityPlatformModel.PackageMaterialResult(),
2522
2704
  page: ServiceabilityPlatformModel.Page(),
2523
2705
  });
2524
2706
  }
@@ -2552,16 +2734,16 @@ class ServiceabilityPlatformModel {
2552
2734
  });
2553
2735
  }
2554
2736
 
2555
- /** @returns {RulePriorityRequest} */
2556
- static RulePriorityRequest() {
2737
+ /** @returns {RulePriorityDetails} */
2738
+ static RulePriorityDetails() {
2557
2739
  return Joi.object({
2558
2740
  rule_id: Joi.string().allow("").required(),
2559
2741
  priority: Joi.number().required(),
2560
2742
  });
2561
2743
  }
2562
2744
 
2563
- /** @returns {RulePriorityResponse} */
2564
- static RulePriorityResponse() {
2745
+ /** @returns {RulePriorityResult} */
2746
+ static RulePriorityResult() {
2565
2747
  return Joi.object({
2566
2748
  success: Joi.boolean(),
2567
2749
  });
@@ -2601,10 +2783,10 @@ class ServiceabilityPlatformModel {
2601
2783
  return Joi.object({
2602
2784
  item_id: Joi.number().required(),
2603
2785
  size: Joi.string().allow("").required(),
2604
- quantity: Joi.string().allow("").required(),
2786
+ quantity: Joi.number().required(),
2605
2787
  group_id: Joi.string().allow(""),
2606
2788
  is_primary_item: Joi.boolean(),
2607
- meta: Joi.any(),
2789
+ meta: Joi.object().pattern(/\S/, Joi.any()),
2608
2790
  article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
2609
2791
  ignore_locations: Joi.array().items(Joi.number()).required(),
2610
2792
  assign_locations: Joi.array().items(Joi.number()).required(),
@@ -2612,26 +2794,28 @@ class ServiceabilityPlatformModel {
2612
2794
  });
2613
2795
  }
2614
2796
 
2615
- /** @returns {OptimlLocationsRequestSchema} */
2616
- static OptimlLocationsRequestSchema() {
2797
+ /** @returns {OptimlLocationsDetailsSchema} */
2798
+ static OptimlLocationsDetailsSchema() {
2617
2799
  return Joi.object({
2618
2800
  channel_id: Joi.string().allow("").required(),
2619
2801
  channel_type: Joi.string().allow("").required(),
2620
2802
  channel_identifier: Joi.string().allow(""),
2621
2803
  to_serviceability: ServiceabilityPlatformModel.LocationDetailsServiceability().required(),
2622
- article: ServiceabilityPlatformModel.OptimalLocationsArticles(),
2804
+ articles: Joi.array().items(
2805
+ ServiceabilityPlatformModel.OptimalLocationsArticles()
2806
+ ),
2623
2807
  });
2624
2808
  }
2625
2809
 
2626
- /** @returns {OptimalLocationArticlesResponse} */
2627
- static OptimalLocationArticlesResponse() {
2810
+ /** @returns {OptimalLocationArticlesResult} */
2811
+ static OptimalLocationArticlesResult() {
2628
2812
  return Joi.object({
2629
2813
  item_id: Joi.number().required(),
2630
2814
  size: Joi.string().allow("").required(),
2631
2815
  quantity: Joi.number().required(),
2632
2816
  group_id: Joi.string().allow(""),
2633
2817
  is_primary_item: Joi.boolean(),
2634
- meta: Joi.any(),
2818
+ meta: Joi.object().pattern(/\S/, Joi.any()),
2635
2819
  article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
2636
2820
  seller_id: Joi.number(),
2637
2821
  ignore_locations: Joi.array().items(Joi.number()).required(),
@@ -2643,28 +2827,43 @@ class ServiceabilityPlatformModel {
2643
2827
  });
2644
2828
  }
2645
2829
 
2646
- /** @returns {OptimalLocationAssignedStoresResponse} */
2647
- static OptimalLocationAssignedStoresResponse() {
2830
+ /** @returns {OptimalLocationAssignedStoresResult} */
2831
+ static OptimalLocationAssignedStoresResult() {
2648
2832
  return Joi.object({
2649
2833
  store_id: Joi.number().required(),
2650
2834
  articles: Joi.array()
2651
- .items(ServiceabilityPlatformModel.OptimalLocationArticlesResponse())
2835
+ .items(ServiceabilityPlatformModel.OptimalLocationArticlesResult())
2652
2836
  .required(),
2653
2837
  });
2654
2838
  }
2655
2839
 
2656
- /** @returns {OptimalLocationsResponse} */
2657
- static OptimalLocationsResponse() {
2840
+ /** @returns {OptimalLocationsResult} */
2841
+ static OptimalLocationsResult() {
2658
2842
  return Joi.object({
2659
2843
  assigned_stores: Joi.array()
2660
2844
  .items(
2661
- ServiceabilityPlatformModel.OptimalLocationAssignedStoresResponse()
2845
+ ServiceabilityPlatformModel.OptimalLocationAssignedStoresResult()
2662
2846
  )
2663
2847
  .required(),
2664
2848
  faulty_articles: Joi.array().items(
2665
- ServiceabilityPlatformModel.ErrorResponse()
2849
+ ServiceabilityPlatformModel.ErrorResult()
2666
2850
  ),
2667
2851
  });
2668
2852
  }
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
+ }
2669
2868
  }
2670
2869
  module.exports = ServiceabilityPlatformModel;