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

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