@gofynd/fdk-client-javascript 1.1.6 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/README.md +52 -3
  2. package/index.js +0 -3
  3. package/package.json +1 -2
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +12 -3
  6. package/sdk/application/ApplicationClient.d.ts +36 -6
  7. package/sdk/application/ApplicationClient.js +30 -43
  8. package/sdk/application/ApplicationConfig.d.ts +92 -12
  9. package/sdk/application/ApplicationConfig.js +48 -14
  10. package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
  11. package/sdk/application/Cart/CartApplicationClient.js +711 -483
  12. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  13. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  14. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  15. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
  18. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
  19. package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
  20. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  21. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  22. package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
  23. package/sdk/application/Common/CommonApplicationClient.js +52 -33
  24. package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
  25. package/sdk/application/Common/CommonApplicationModel.js +192 -40
  26. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  28. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
  29. package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
  30. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
  31. package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
  32. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  33. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  34. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
  36. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
  38. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  40. package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
  41. package/sdk/application/Content/ContentApplicationClient.js +489 -278
  42. package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
  43. package/sdk/application/Content/ContentApplicationModel.js +737 -396
  44. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  45. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  46. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
  48. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
  50. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  52. package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
  53. package/sdk/application/Lead/LeadApplicationClient.js +188 -103
  54. package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
  55. package/sdk/application/Lead/LeadApplicationModel.js +330 -244
  56. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  57. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  58. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
  59. package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
  60. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  61. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  62. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  63. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  64. package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
  65. package/sdk/application/Order/OrderApplicationClient.js +329 -217
  66. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  67. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  68. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  69. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  70. package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
  71. package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
  72. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  73. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  74. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  75. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  76. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
  77. package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
  78. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  79. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  80. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  81. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  82. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
  83. package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
  84. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  85. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  86. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  87. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  88. package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
  89. package/sdk/application/Share/ShareApplicationClient.js +185 -97
  90. package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
  91. package/sdk/application/Share/ShareApplicationModel.js +131 -31
  92. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  93. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  94. package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
  95. package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
  96. package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
  97. package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
  98. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  99. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  100. package/sdk/application/User/UserApplicationClient.d.ts +260 -305
  101. package/sdk/application/User/UserApplicationClient.js +910 -522
  102. package/sdk/application/User/UserApplicationModel.d.ts +992 -101
  103. package/sdk/application/User/UserApplicationModel.js +699 -248
  104. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  105. package/sdk/application/User/UserApplicationValidator.js +265 -31
  106. package/sdk/common/AxiosHelper.js +7 -2
  107. package/sdk/common/FDKError.d.ts +3 -0
  108. package/sdk/common/FDKError.js +8 -0
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/common/utils.d.ts +3 -0
  113. package/sdk/common/utils.js +29 -0
  114. package/sdk/partner/PartnerAPIClient.d.ts +16 -1
  115. package/sdk/partner/PartnerAPIClient.js +12 -2
  116. package/sdk/partner/PartnerClient.d.ts +22 -3
  117. package/sdk/partner/PartnerClient.js +20 -0
  118. package/sdk/partner/PartnerConfig.d.ts +40 -14
  119. package/sdk/partner/PartnerConfig.js +31 -6
  120. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  121. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  122. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  123. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  124. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  125. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  126. package/sdk/partner/index.d.ts +3 -1
  127. package/sdk/partner/index.js +3 -1
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
  132. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
  133. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
  134. package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
  135. package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
  136. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
  137. package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
  138. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
  139. package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
  140. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
  141. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
  142. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  143. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  144. package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
  145. package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
  148. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  149. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  150. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
  151. package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
  152. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
  153. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
  154. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
  155. package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
  156. package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
  157. package/sdk/platform/Common/CommonPlatformClient.js +50 -33
  158. package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
  159. package/sdk/platform/Common/CommonPlatformModel.js +214 -40
  160. package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
  161. package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
  162. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
  163. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
  164. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
  165. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
  166. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
  167. package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
  168. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
  169. package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
  170. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  171. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  172. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
  173. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
  174. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
  175. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
  176. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
  177. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
  178. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
  179. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
  180. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
  181. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
  182. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
  183. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
  184. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
  185. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
  186. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  187. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  188. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
  189. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
  190. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  191. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  192. package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
  193. package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
  194. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
  195. package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
  196. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
  197. package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
  198. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  199. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  200. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
  201. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
  202. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
  203. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
  204. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
  205. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
  206. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
  207. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
  208. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
  209. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
  210. package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
  211. package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
  212. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
  213. package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
  214. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
  215. package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
  216. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
  217. package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
  218. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  219. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  220. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  221. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  222. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
  223. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
  224. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  225. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  226. package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
  227. package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
  228. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
  229. package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
  230. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  231. package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
  232. package/sdk/platform/OAuthClient.js +6 -2
  233. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
  234. package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
  235. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  236. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  237. package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
  238. package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
  239. package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
  240. package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
  241. package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
  242. package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
  243. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
  244. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
  245. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
  246. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
  247. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
  248. package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
  249. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
  250. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
  251. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
  252. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
  253. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
  254. package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
  255. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
  256. package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
  257. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  258. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  259. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  260. package/sdk/platform/PlatformAPIClient.js +9 -1
  261. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  262. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  263. package/sdk/platform/PlatformClient.d.ts +31 -12581
  264. package/sdk/platform/PlatformClient.js +30 -15089
  265. package/sdk/platform/PlatformConfig.d.ts +37 -11
  266. package/sdk/platform/PlatformConfig.js +32 -6
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  270. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  271. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
  272. package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
  276. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
  277. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
  278. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
  279. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
  280. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
  281. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  282. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  283. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
  284. package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
  285. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  286. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  287. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  288. package/sdk/platform/Share/SharePlatformModel.js +167 -19
  289. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
  290. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
  291. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
  292. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
  293. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  294. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  295. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
  296. package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
  297. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  298. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  299. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
  300. package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
  301. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
  302. package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
  303. package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
  304. package/sdk/platform/User/UserPlatformModel.js +467 -424
  305. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
  306. package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
  307. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
  308. package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
  309. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
  310. package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
  311. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
  312. package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
  313. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
  314. package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
  315. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  316. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  317. package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
  318. package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
  319. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  320. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  321. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  322. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  323. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  324. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  325. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  326. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  327. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  328. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  329. package/sdk/public/PublicAPIClient.d.ts +14 -1
  330. package/sdk/public/PublicAPIClient.js +7 -1
  331. package/sdk/public/PublicClient.d.ts +21 -3
  332. package/sdk/public/PublicClient.js +20 -0
  333. package/sdk/public/PublicConfig.d.ts +27 -6
  334. package/sdk/public/PublicConfig.js +17 -1
  335. package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
  336. package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
  337. package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
  338. package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
  339. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  340. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
  341. package/sdk/public/index.d.ts +1 -0
  342. package/sdk/public/index.js +2 -0
  343. package/sdk/application/ApplicationModels.d.ts +0 -3
  344. package/sdk/application/ApplicationModels.js +0 -20
  345. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
  346. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
  347. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
  348. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
@@ -1,8 +1,8 @@
1
1
  const PlatformAPIClient = require("../PlatformAPIClient");
2
2
  const { FDKClientValidationError } = require("../../common/FDKError");
3
3
  const Paginator = require("../../common/Paginator");
4
- const ServiceabilityValidator = require("./ServiceabilityPlatformApplicationValidator");
5
- const ServiceabilityModel = require("./ServiceabilityPlatformModel");
4
+ const ServiceabilityPlatformApplicationValidator = require("./ServiceabilityPlatformApplicationValidator");
5
+ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
6
6
  const { Logger } = require("./../../common/Logger");
7
7
  const Joi = require("joi");
8
8
 
@@ -13,14 +13,23 @@ class Serviceability {
13
13
  }
14
14
 
15
15
  /**
16
- * @param {Object} arg - Arg object.
17
- * @param {ApplicationCompanyDpViewRequest} arg.body
18
- * @returns {Promise<ApplicationCompanyDpViewResponse>} - Success response
16
+ * @param {ServiceabilityPlatformApplicationValidator.AddAppDpParam} arg - Arg object
17
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
18
+ * @param {import("../PlatformAPIClient").Options} - Options
19
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationCompanyDpViewResponse>}
20
+ * - Success response
21
+ *
22
+ * @name addAppDp
19
23
  * @summary: Add application dp data
20
- * @description: This API add application dp data.
24
+ * @description: This API add application dp data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/addAppDp/).
21
25
  */
22
- async addAppDp({ body } = {}) {
23
- const { error } = ServiceabilityValidator.addAppDp().validate(
26
+ async addAppDp(
27
+ { body, requestHeaders } = { requestHeaders: {} },
28
+ { responseHeaders } = { responseHeaders: false }
29
+ ) {
30
+ const {
31
+ error,
32
+ } = ServiceabilityPlatformApplicationValidator.addAppDp().validate(
24
33
  {
25
34
  body,
26
35
  },
@@ -31,7 +40,9 @@ class Serviceability {
31
40
  }
32
41
 
33
42
  // Showing warrnings if extra unknown parameters are found
34
- const { error: warrning } = ServiceabilityValidator.addAppDp().validate(
43
+ const {
44
+ error: warrning,
45
+ } = ServiceabilityPlatformApplicationValidator.addAppDp().validate(
35
46
  {
36
47
  body,
37
48
  },
@@ -40,9 +51,8 @@ class Serviceability {
40
51
  if (warrning) {
41
52
  Logger({
42
53
  level: "WARN",
43
- message: "Parameter Validation warrnings for addAppDp",
54
+ message: `Parameter Validation warrnings for platform > Serviceability > addAppDp \n ${warrning}`,
44
55
  });
45
- Logger({ level: "WARN", message: warrning });
46
56
  }
47
57
 
48
58
  const query_params = {};
@@ -52,37 +62,53 @@ class Serviceability {
52
62
  "post",
53
63
  `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}`,
54
64
  query_params,
55
- body
65
+ body,
66
+ requestHeaders,
67
+ { responseHeaders }
56
68
  );
57
69
 
70
+ let responseData = response;
71
+ if (responseHeaders) {
72
+ responseData = response[0];
73
+ }
74
+
58
75
  const {
59
76
  error: res_error,
60
- } = ServiceabilityModel.ApplicationCompanyDpViewResponse().validate(
61
- response,
77
+ } = ServiceabilityPlatformModel.ApplicationCompanyDpViewResponse().validate(
78
+ responseData,
62
79
  { abortEarly: false, allowUnknown: false }
63
80
  );
64
81
 
65
82
  if (res_error) {
66
83
  Logger({
67
84
  level: "WARN",
68
- message: "Response Validation Warnnings for addAppDp",
85
+ message: `Response Validation Warnnings for platform > Serviceability > addAppDp \n ${res_error}`,
69
86
  });
70
- Logger({ level: "WARN", message: res_error });
71
87
  }
72
88
 
73
89
  return response;
74
90
  }
75
91
 
76
92
  /**
77
- * @param {Object} arg - Arg object.
78
- * @param {number} arg.courierPartnerId - A `courier_partner_id` is a unique
79
- * identifier of a particular delivery partner.
80
- * @returns {Promise<ApplicationCompanyDpViewResponse>} - Success response
93
+ * @param {ServiceabilityPlatformApplicationValidator.DeleteAppDpParam} arg
94
+ * - Arg object
95
+ *
96
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
97
+ * @param {import("../PlatformAPIClient").Options} - Options
98
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationCompanyDpViewResponse>}
99
+ * - Success response
100
+ *
101
+ * @name deleteAppDp
81
102
  * @summary: Delete application dp data
82
- * @description: This API remove application dp data.
103
+ * @description: This API remove application dp data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/deleteAppDp/).
83
104
  */
84
- async deleteAppDp({ courierPartnerId } = {}) {
85
- const { error } = ServiceabilityValidator.deleteAppDp().validate(
105
+ async deleteAppDp(
106
+ { courierPartnerId, requestHeaders } = { requestHeaders: {} },
107
+ { responseHeaders } = { responseHeaders: false }
108
+ ) {
109
+ const {
110
+ error,
111
+ } = ServiceabilityPlatformApplicationValidator.deleteAppDp().validate(
86
112
  {
87
113
  courierPartnerId,
88
114
  },
@@ -93,7 +119,9 @@ class Serviceability {
93
119
  }
94
120
 
95
121
  // Showing warrnings if extra unknown parameters are found
96
- const { error: warrning } = ServiceabilityValidator.deleteAppDp().validate(
122
+ const {
123
+ error: warrning,
124
+ } = ServiceabilityPlatformApplicationValidator.deleteAppDp().validate(
97
125
  {
98
126
  courierPartnerId,
99
127
  },
@@ -102,9 +130,8 @@ class Serviceability {
102
130
  if (warrning) {
103
131
  Logger({
104
132
  level: "WARN",
105
- message: "Parameter Validation warrnings for deleteAppDp",
133
+ message: `Parameter Validation warrnings for platform > Serviceability > deleteAppDp \n ${warrning}`,
106
134
  });
107
- Logger({ level: "WARN", message: warrning });
108
135
  }
109
136
 
110
137
  const query_params = {};
@@ -114,37 +141,53 @@ class Serviceability {
114
141
  "delete",
115
142
  `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/${courierPartnerId}`,
116
143
  query_params,
117
- undefined
144
+ undefined,
145
+ requestHeaders,
146
+ { responseHeaders }
118
147
  );
119
148
 
149
+ let responseData = response;
150
+ if (responseHeaders) {
151
+ responseData = response[0];
152
+ }
153
+
120
154
  const {
121
155
  error: res_error,
122
- } = ServiceabilityModel.ApplicationCompanyDpViewResponse().validate(
123
- response,
156
+ } = ServiceabilityPlatformModel.ApplicationCompanyDpViewResponse().validate(
157
+ responseData,
124
158
  { abortEarly: false, allowUnknown: false }
125
159
  );
126
160
 
127
161
  if (res_error) {
128
162
  Logger({
129
163
  level: "WARN",
130
- message: "Response Validation Warnnings for deleteAppDp",
164
+ message: `Response Validation Warnnings for platform > Serviceability > deleteAppDp \n ${res_error}`,
131
165
  });
132
- Logger({ level: "WARN", message: res_error });
133
166
  }
134
167
 
135
168
  return response;
136
169
  }
137
170
 
138
171
  /**
139
- * @param {Object} arg - Arg object.
140
- * @returns {Promise<ApplicationServiceabilityConfigResponse>} - Success response
172
+ * @param {ServiceabilityPlatformApplicationValidator.GetApplicationServiceabilityParam} arg
173
+ * - Arg object
174
+ *
175
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
176
+ * @param {import("../PlatformAPIClient").Options} - Options
177
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationServiceabilityConfigResponse>}
178
+ * - Success response
179
+ *
180
+ * @name getApplicationServiceability
141
181
  * @summary: Zone configuration of application.
142
- * @description: This API returns serviceability config of the application.
182
+ * @description: This API returns serviceability config of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationServiceability/).
143
183
  */
144
- async getApplicationServiceability({} = {}) {
184
+ async getApplicationServiceability(
185
+ { requestHeaders } = { requestHeaders: {} },
186
+ { responseHeaders } = { responseHeaders: false }
187
+ ) {
145
188
  const {
146
189
  error,
147
- } = ServiceabilityValidator.getApplicationServiceability().validate(
190
+ } = ServiceabilityPlatformApplicationValidator.getApplicationServiceability().validate(
148
191
  {},
149
192
  { abortEarly: false, allowUnknown: true }
150
193
  );
@@ -155,17 +198,15 @@ class Serviceability {
155
198
  // Showing warrnings if extra unknown parameters are found
156
199
  const {
157
200
  error: warrning,
158
- } = ServiceabilityValidator.getApplicationServiceability().validate(
201
+ } = ServiceabilityPlatformApplicationValidator.getApplicationServiceability().validate(
159
202
  {},
160
203
  { abortEarly: false, allowUnknown: false }
161
204
  );
162
205
  if (warrning) {
163
206
  Logger({
164
207
  level: "WARN",
165
- message:
166
- "Parameter Validation warrnings for getApplicationServiceability",
208
+ message: `Parameter Validation warrnings for platform > Serviceability > getApplicationServiceability \n ${warrning}`,
167
209
  });
168
- Logger({ level: "WARN", message: warrning });
169
210
  }
170
211
 
171
212
  const query_params = {};
@@ -175,38 +216,53 @@ class Serviceability {
175
216
  "get",
176
217
  `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/serviceability`,
177
218
  query_params,
178
- undefined
219
+ undefined,
220
+ requestHeaders,
221
+ { responseHeaders }
179
222
  );
180
223
 
224
+ let responseData = response;
225
+ if (responseHeaders) {
226
+ responseData = response[0];
227
+ }
228
+
181
229
  const {
182
230
  error: res_error,
183
- } = ServiceabilityModel.ApplicationServiceabilityConfigResponse().validate(
184
- response,
231
+ } = ServiceabilityPlatformModel.ApplicationServiceabilityConfigResponse().validate(
232
+ responseData,
185
233
  { abortEarly: false, allowUnknown: false }
186
234
  );
187
235
 
188
236
  if (res_error) {
189
237
  Logger({
190
238
  level: "WARN",
191
- message:
192
- "Response Validation Warnnings for getApplicationServiceability",
239
+ message: `Response Validation Warnnings for platform > Serviceability > getApplicationServiceability \n ${res_error}`,
193
240
  });
194
- Logger({ level: "WARN", message: res_error });
195
241
  }
196
242
 
197
243
  return response;
198
244
  }
199
245
 
200
246
  /**
201
- * @param {Object} arg - Arg object.
202
- * @returns {Promise<ApplicationSelfShipConfigResponse>} - Success response
203
- * @summary: Self-ship configuration of application.
204
- * @description: This API returns Self-ship configuration of the application.
247
+ * @param {ServiceabilityPlatformApplicationValidator.GetDpApplicationRulesParam} arg
248
+ * - Arg object
249
+ *
250
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
251
+ * @param {import("../PlatformAPIClient").Options} - Options
252
+ * @returns {Promise<ServiceabilityPlatformModel.DPApplicationRuleResponse>}
253
+ * - Success response
254
+ *
255
+ * @name getDpApplicationRules
256
+ * @summary: Get All DpApplicationRules rules added at application level from database.
257
+ * @description: This API returns response of all rules of DpApplicationRules from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getDpApplicationRules/).
205
258
  */
206
- async getApplicationServiceabilitySelfShipment({} = {}) {
259
+ async getDpApplicationRules(
260
+ { requestHeaders } = { requestHeaders: {} },
261
+ { responseHeaders } = { responseHeaders: false }
262
+ ) {
207
263
  const {
208
264
  error,
209
- } = ServiceabilityValidator.getApplicationServiceabilitySelfShipment().validate(
265
+ } = ServiceabilityPlatformApplicationValidator.getDpApplicationRules().validate(
210
266
  {},
211
267
  { abortEarly: false, allowUnknown: true }
212
268
  );
@@ -217,17 +273,15 @@ class Serviceability {
217
273
  // Showing warrnings if extra unknown parameters are found
218
274
  const {
219
275
  error: warrning,
220
- } = ServiceabilityValidator.getApplicationServiceabilitySelfShipment().validate(
276
+ } = ServiceabilityPlatformApplicationValidator.getDpApplicationRules().validate(
221
277
  {},
222
278
  { abortEarly: false, allowUnknown: false }
223
279
  );
224
280
  if (warrning) {
225
281
  Logger({
226
282
  level: "WARN",
227
- message:
228
- "Parameter Validation warrnings for getApplicationServiceabilitySelfShipment",
283
+ message: `Parameter Validation warrnings for platform > Serviceability > getDpApplicationRules \n ${warrning}`,
229
284
  });
230
- Logger({ level: "WARN", message: warrning });
231
285
  }
232
286
 
233
287
  const query_params = {};
@@ -235,38 +289,55 @@ class Serviceability {
235
289
  const response = await PlatformAPIClient.execute(
236
290
  this.config,
237
291
  "get",
238
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/selfship`,
292
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier/priority`,
239
293
  query_params,
240
- undefined
294
+ undefined,
295
+ requestHeaders,
296
+ { responseHeaders }
241
297
  );
242
298
 
299
+ let responseData = response;
300
+ if (responseHeaders) {
301
+ responseData = response[0];
302
+ }
303
+
243
304
  const {
244
305
  error: res_error,
245
- } = ServiceabilityModel.ApplicationSelfShipConfigResponse().validate(
246
- response,
306
+ } = ServiceabilityPlatformModel.DPApplicationRuleResponse().validate(
307
+ responseData,
247
308
  { abortEarly: false, allowUnknown: false }
248
309
  );
249
310
 
250
311
  if (res_error) {
251
312
  Logger({
252
313
  level: "WARN",
253
- message:
254
- "Response Validation Warnnings for getApplicationServiceabilitySelfShipment",
314
+ message: `Response Validation Warnnings for platform > Serviceability > getDpApplicationRules \n ${res_error}`,
255
315
  });
256
- Logger({ level: "WARN", message: res_error });
257
316
  }
258
317
 
259
318
  return response;
260
319
  }
261
320
 
262
321
  /**
263
- * @param {Object} arg - Arg object.
264
- * @returns {Promise<DPApplicationRuleResponse>} - Success response
265
- * @summary: Get All DpApplicationRules rules added at application level from database.
266
- * @description: This API returns response of all rules of DpApplicationRules from mongo database.
322
+ * @param {ServiceabilityPlatformApplicationValidator.GetSelfShipParam} arg
323
+ * - Arg object
324
+ *
325
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
326
+ * @param {import("../PlatformAPIClient").Options} - Options
327
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse>}
328
+ * - Success response
329
+ *
330
+ * @name getSelfShip
331
+ * @summary: Self-ship configuration of application.
332
+ * @description: This API returns Self-ship configuration of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getSelfShip/).
267
333
  */
268
- async getDpApplicationRules({} = {}) {
269
- const { error } = ServiceabilityValidator.getDpApplicationRules().validate(
334
+ async getSelfShip(
335
+ { requestHeaders } = { requestHeaders: {} },
336
+ { responseHeaders } = { responseHeaders: false }
337
+ ) {
338
+ const {
339
+ error,
340
+ } = ServiceabilityPlatformApplicationValidator.getSelfShip().validate(
270
341
  {},
271
342
  { abortEarly: false, allowUnknown: true }
272
343
  );
@@ -277,16 +348,15 @@ class Serviceability {
277
348
  // Showing warrnings if extra unknown parameters are found
278
349
  const {
279
350
  error: warrning,
280
- } = ServiceabilityValidator.getDpApplicationRules().validate(
351
+ } = ServiceabilityPlatformApplicationValidator.getSelfShip().validate(
281
352
  {},
282
353
  { abortEarly: false, allowUnknown: false }
283
354
  );
284
355
  if (warrning) {
285
356
  Logger({
286
357
  level: "WARN",
287
- message: "Parameter Validation warrnings for getDpApplicationRules",
358
+ message: `Parameter Validation warrnings for platform > Serviceability > getSelfShip \n ${warrning}`,
288
359
  });
289
- Logger({ level: "WARN", message: warrning });
290
360
  }
291
361
 
292
362
  const query_params = {};
@@ -294,38 +364,55 @@ class Serviceability {
294
364
  const response = await PlatformAPIClient.execute(
295
365
  this.config,
296
366
  "get",
297
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier/priority`,
367
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/selfship`,
298
368
  query_params,
299
- undefined
369
+ undefined,
370
+ requestHeaders,
371
+ { responseHeaders }
300
372
  );
301
373
 
374
+ let responseData = response;
375
+ if (responseHeaders) {
376
+ responseData = response[0];
377
+ }
378
+
302
379
  const {
303
380
  error: res_error,
304
- } = ServiceabilityModel.DPApplicationRuleResponse().validate(response, {
305
- abortEarly: false,
306
- allowUnknown: false,
307
- });
381
+ } = ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse().validate(
382
+ responseData,
383
+ { abortEarly: false, allowUnknown: false }
384
+ );
308
385
 
309
386
  if (res_error) {
310
387
  Logger({
311
388
  level: "WARN",
312
- message: "Response Validation Warnnings for getDpApplicationRules",
389
+ message: `Response Validation Warnnings for platform > Serviceability > getSelfShip \n ${res_error}`,
313
390
  });
314
- Logger({ level: "WARN", message: res_error });
315
391
  }
316
392
 
317
393
  return response;
318
394
  }
319
395
 
320
396
  /**
321
- * @param {Object} arg - Arg object.
322
- * @param {GetZoneFromPincodeViewRequest} arg.body
323
- * @returns {Promise<GetZoneFromPincodeViewResponse>} - Success response
397
+ * @param {ServiceabilityPlatformApplicationValidator.GetZoneFromPincodeViewParam} arg
398
+ * - Arg object
399
+ *
400
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
401
+ * @param {import("../PlatformAPIClient").Options} - Options
402
+ * @returns {Promise<ServiceabilityPlatformModel.GetZoneFromPincodeViewResponse>}
403
+ * - Success response
404
+ *
405
+ * @name getZoneFromPincodeView
324
406
  * @summary: GET zone from the Pincode.
325
- * @description: This API returns zone from the Pincode View.
407
+ * @description: This API returns zone from the Pincode View. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZoneFromPincodeView/).
326
408
  */
327
- async getZoneFromPincodeView({ body } = {}) {
328
- const { error } = ServiceabilityValidator.getZoneFromPincodeView().validate(
409
+ async getZoneFromPincodeView(
410
+ { body, requestHeaders } = { requestHeaders: {} },
411
+ { responseHeaders } = { responseHeaders: false }
412
+ ) {
413
+ const {
414
+ error,
415
+ } = ServiceabilityPlatformApplicationValidator.getZoneFromPincodeView().validate(
329
416
  {
330
417
  body,
331
418
  },
@@ -338,7 +425,7 @@ class Serviceability {
338
425
  // Showing warrnings if extra unknown parameters are found
339
426
  const {
340
427
  error: warrning,
341
- } = ServiceabilityValidator.getZoneFromPincodeView().validate(
428
+ } = ServiceabilityPlatformApplicationValidator.getZoneFromPincodeView().validate(
342
429
  {
343
430
  body,
344
431
  },
@@ -347,9 +434,8 @@ class Serviceability {
347
434
  if (warrning) {
348
435
  Logger({
349
436
  level: "WARN",
350
- message: "Parameter Validation warrnings for getZoneFromPincodeView",
437
+ message: `Parameter Validation warrnings for platform > Serviceability > getZoneFromPincodeView \n ${warrning}`,
351
438
  });
352
- Logger({ level: "WARN", message: warrning });
353
439
  }
354
440
 
355
441
  const query_params = {};
@@ -359,41 +445,53 @@ class Serviceability {
359
445
  "post",
360
446
  `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/zones`,
361
447
  query_params,
362
- body
448
+ body,
449
+ requestHeaders,
450
+ { responseHeaders }
363
451
  );
364
452
 
453
+ let responseData = response;
454
+ if (responseHeaders) {
455
+ responseData = response[0];
456
+ }
457
+
365
458
  const {
366
459
  error: res_error,
367
- } = ServiceabilityModel.GetZoneFromPincodeViewResponse().validate(
368
- response,
460
+ } = ServiceabilityPlatformModel.GetZoneFromPincodeViewResponse().validate(
461
+ responseData,
369
462
  { abortEarly: false, allowUnknown: false }
370
463
  );
371
464
 
372
465
  if (res_error) {
373
466
  Logger({
374
467
  level: "WARN",
375
- message: "Response Validation Warnnings for getZoneFromPincodeView",
468
+ message: `Response Validation Warnnings for platform > Serviceability > getZoneFromPincodeView \n ${res_error}`,
376
469
  });
377
- Logger({ level: "WARN", message: res_error });
378
470
  }
379
471
 
380
472
  return response;
381
473
  }
382
474
 
383
475
  /**
384
- * @param {Object} arg - Arg object.
385
- * @param {number} [arg.pageNo] - Index of the item to start returning with
386
- * @param {number} [arg.pageSize] - Determines the items to be displayed in a page
387
- * @param {string[]} [arg.zoneId] - List of zones to query for
388
- * @param {string} [arg.q] - Search with name as a free text
389
- * @returns {Promise<GetZoneFromApplicationIdViewResponse>} - Success response
476
+ * @param {ServiceabilityPlatformApplicationValidator.GetZonesFromApplicationIdViewParam} arg
477
+ * - Arg object
478
+ *
479
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
480
+ * @param {import("../PlatformAPIClient").Options} - Options
481
+ * @returns {Promise<ServiceabilityPlatformModel.GetZoneFromApplicationIdViewResponse>}
482
+ * - Success response
483
+ *
484
+ * @name getZonesFromApplicationIdView
390
485
  * @summary: GET zones from the application_id.
391
- * @description: This API returns zones from the application_id View.
486
+ * @description: This API returns zones from the application_id View. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZonesFromApplicationIdView/).
392
487
  */
393
- async getZonesFromApplicationIdView({ pageNo, pageSize, zoneId, q } = {}) {
488
+ async getZonesFromApplicationIdView(
489
+ { pageNo, pageSize, zoneId, q, requestHeaders } = { requestHeaders: {} },
490
+ { responseHeaders } = { responseHeaders: false }
491
+ ) {
394
492
  const {
395
493
  error,
396
- } = ServiceabilityValidator.getZonesFromApplicationIdView().validate(
494
+ } = ServiceabilityPlatformApplicationValidator.getZonesFromApplicationIdView().validate(
397
495
  {
398
496
  pageNo,
399
497
  pageSize,
@@ -409,7 +507,7 @@ class Serviceability {
409
507
  // Showing warrnings if extra unknown parameters are found
410
508
  const {
411
509
  error: warrning,
412
- } = ServiceabilityValidator.getZonesFromApplicationIdView().validate(
510
+ } = ServiceabilityPlatformApplicationValidator.getZonesFromApplicationIdView().validate(
413
511
  {
414
512
  pageNo,
415
513
  pageSize,
@@ -421,10 +519,8 @@ class Serviceability {
421
519
  if (warrning) {
422
520
  Logger({
423
521
  level: "WARN",
424
- message:
425
- "Parameter Validation warrnings for getZonesFromApplicationIdView",
522
+ message: `Parameter Validation warrnings for platform > Serviceability > getZonesFromApplicationIdView \n ${warrning}`,
426
523
  });
427
- Logger({ level: "WARN", message: warrning });
428
524
  }
429
525
 
430
526
  const query_params = {};
@@ -438,39 +534,53 @@ class Serviceability {
438
534
  "get",
439
535
  `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/zones`,
440
536
  query_params,
441
- undefined
537
+ undefined,
538
+ requestHeaders,
539
+ { responseHeaders }
442
540
  );
443
541
 
542
+ let responseData = response;
543
+ if (responseHeaders) {
544
+ responseData = response[0];
545
+ }
546
+
444
547
  const {
445
548
  error: res_error,
446
- } = ServiceabilityModel.GetZoneFromApplicationIdViewResponse().validate(
447
- response,
549
+ } = ServiceabilityPlatformModel.GetZoneFromApplicationIdViewResponse().validate(
550
+ responseData,
448
551
  { abortEarly: false, allowUnknown: false }
449
552
  );
450
553
 
451
554
  if (res_error) {
452
555
  Logger({
453
556
  level: "WARN",
454
- message:
455
- "Response Validation Warnnings for getZonesFromApplicationIdView",
557
+ message: `Response Validation Warnnings for platform > Serviceability > getZonesFromApplicationIdView \n ${res_error}`,
456
558
  });
457
- Logger({ level: "WARN", message: res_error });
458
559
  }
459
560
 
460
561
  return response;
461
562
  }
462
563
 
463
564
  /**
464
- * @param {Object} arg - Arg object.
465
- * @param {SelfShipResponse} arg.body
466
- * @returns {Promise<ApplicationSelfShipConfigResponse>} - Success response
467
- * @summary: Self-ship configuration of application.
468
- * @description: This API updates Self-ship configuration of the application.
565
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateApplicationServiceabilityParam} arg
566
+ * - Arg object
567
+ *
568
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
569
+ * @param {import("../PlatformAPIClient").Options} - Options
570
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationServiceabilityConfigResponse>}
571
+ * - Success response
572
+ *
573
+ * @name updateApplicationServiceability
574
+ * @summary: Zone configuration of application.
575
+ * @description: This API updates serviceability config of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateApplicationServiceability/).
469
576
  */
470
- async patchApplicationServiceabilitySelfShipment({ body } = {}) {
577
+ async updateApplicationServiceability(
578
+ { body, requestHeaders } = { requestHeaders: {} },
579
+ { responseHeaders } = { responseHeaders: false }
580
+ ) {
471
581
  const {
472
582
  error,
473
- } = ServiceabilityValidator.patchApplicationServiceabilitySelfShipment().validate(
583
+ } = ServiceabilityPlatformApplicationValidator.updateApplicationServiceability().validate(
474
584
  {
475
585
  body,
476
586
  },
@@ -483,7 +593,7 @@ class Serviceability {
483
593
  // Showing warrnings if extra unknown parameters are found
484
594
  const {
485
595
  error: warrning,
486
- } = ServiceabilityValidator.patchApplicationServiceabilitySelfShipment().validate(
596
+ } = ServiceabilityPlatformApplicationValidator.updateApplicationServiceability().validate(
487
597
  {
488
598
  body,
489
599
  },
@@ -492,52 +602,64 @@ class Serviceability {
492
602
  if (warrning) {
493
603
  Logger({
494
604
  level: "WARN",
495
- message:
496
- "Parameter Validation warrnings for patchApplicationServiceabilitySelfShipment",
605
+ message: `Parameter Validation warrnings for platform > Serviceability > updateApplicationServiceability \n ${warrning}`,
497
606
  });
498
- Logger({ level: "WARN", message: warrning });
499
607
  }
500
608
 
501
609
  const query_params = {};
502
610
 
503
611
  const response = await PlatformAPIClient.execute(
504
612
  this.config,
505
- "patch",
506
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/selfship`,
613
+ "post",
614
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/serviceability`,
507
615
  query_params,
508
- body
616
+ body,
617
+ requestHeaders,
618
+ { responseHeaders }
509
619
  );
510
620
 
621
+ let responseData = response;
622
+ if (responseHeaders) {
623
+ responseData = response[0];
624
+ }
625
+
511
626
  const {
512
627
  error: res_error,
513
- } = ServiceabilityModel.ApplicationSelfShipConfigResponse().validate(
514
- response,
628
+ } = ServiceabilityPlatformModel.ApplicationServiceabilityConfigResponse().validate(
629
+ responseData,
515
630
  { abortEarly: false, allowUnknown: false }
516
631
  );
517
632
 
518
633
  if (res_error) {
519
634
  Logger({
520
635
  level: "WARN",
521
- message:
522
- "Response Validation Warnnings for patchApplicationServiceabilitySelfShipment",
636
+ message: `Response Validation Warnnings for platform > Serviceability > updateApplicationServiceability \n ${res_error}`,
523
637
  });
524
- Logger({ level: "WARN", message: res_error });
525
638
  }
526
639
 
527
640
  return response;
528
641
  }
529
642
 
530
643
  /**
531
- * @param {Object} arg - Arg object.
532
- * @param {PincodeMopUpdateAuditHistoryRequest} arg.body
533
- * @returns {Promise<PincodeMopUpdateAuditHistoryResponseData>} - Success response
644
+ * @param {ServiceabilityPlatformApplicationValidator.UpdatePincodeAuditHistoryParam} arg
645
+ * - Arg object
646
+ *
647
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
648
+ * @param {import("../PlatformAPIClient").Options} - Options
649
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponseData>}
650
+ * - Success response
651
+ *
652
+ * @name updatePincodeAuditHistory
534
653
  * @summary: Auditlog configuration of application.
535
- * @description: This API returns Audit logs of Pincode.
654
+ * @description: This API returns Audit logs of Pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeAuditHistory/).
536
655
  */
537
- async updatePincodeAuditHistory({ body } = {}) {
656
+ async updatePincodeAuditHistory(
657
+ { body, requestHeaders } = { requestHeaders: {} },
658
+ { responseHeaders } = { responseHeaders: false }
659
+ ) {
538
660
  const {
539
661
  error,
540
- } = ServiceabilityValidator.updatePincodeAuditHistory().validate(
662
+ } = ServiceabilityPlatformApplicationValidator.updatePincodeAuditHistory().validate(
541
663
  {
542
664
  body,
543
665
  },
@@ -550,7 +672,7 @@ class Serviceability {
550
672
  // Showing warrnings if extra unknown parameters are found
551
673
  const {
552
674
  error: warrning,
553
- } = ServiceabilityValidator.updatePincodeAuditHistory().validate(
675
+ } = ServiceabilityPlatformApplicationValidator.updatePincodeAuditHistory().validate(
554
676
  {
555
677
  body,
556
678
  },
@@ -559,9 +681,8 @@ class Serviceability {
559
681
  if (warrning) {
560
682
  Logger({
561
683
  level: "WARN",
562
- message: "Parameter Validation warrnings for updatePincodeAuditHistory",
684
+ message: `Parameter Validation warrnings for platform > Serviceability > updatePincodeAuditHistory \n ${warrning}`,
563
685
  });
564
- Logger({ level: "WARN", message: warrning });
565
686
  }
566
687
 
567
688
  const query_params = {};
@@ -571,36 +692,53 @@ class Serviceability {
571
692
  "post",
572
693
  `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/history`,
573
694
  query_params,
574
- body
695
+ body,
696
+ requestHeaders,
697
+ { responseHeaders }
575
698
  );
576
699
 
700
+ let responseData = response;
701
+ if (responseHeaders) {
702
+ responseData = response[0];
703
+ }
704
+
577
705
  const {
578
706
  error: res_error,
579
- } = ServiceabilityModel.PincodeMopUpdateAuditHistoryResponseData().validate(
580
- response,
707
+ } = ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponseData().validate(
708
+ responseData,
581
709
  { abortEarly: false, allowUnknown: false }
582
710
  );
583
711
 
584
712
  if (res_error) {
585
713
  Logger({
586
714
  level: "WARN",
587
- message: "Response Validation Warnnings for updatePincodeAuditHistory",
715
+ message: `Response Validation Warnnings for platform > Serviceability > updatePincodeAuditHistory \n ${res_error}`,
588
716
  });
589
- Logger({ level: "WARN", message: res_error });
590
717
  }
591
718
 
592
719
  return response;
593
720
  }
594
721
 
595
722
  /**
596
- * @param {Object} arg - Arg object.
597
- * @param {PincodeMopBulkData} arg.body
598
- * @returns {Promise<PincodeBulkViewResponse>} - Success response
723
+ * @param {ServiceabilityPlatformApplicationValidator.UpdatePincodeBulkViewParam} arg
724
+ * - Arg object
725
+ *
726
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
727
+ * @param {import("../PlatformAPIClient").Options} - Options
728
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeBulkViewResponse>}
729
+ * - Success response
730
+ *
731
+ * @name updatePincodeBulkView
599
732
  * @summary: Bulk Update of pincode in the application.
600
- * @description: This API constructs bulk write operations to update the MOP data for each pincode in the payload.
733
+ * @description: This API constructs bulk write operations to update the MOP data for each pincode in the payload. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeBulkView/).
601
734
  */
602
- async updatePincodeBulkView({ body } = {}) {
603
- const { error } = ServiceabilityValidator.updatePincodeBulkView().validate(
735
+ async updatePincodeBulkView(
736
+ { body, requestHeaders } = { requestHeaders: {} },
737
+ { responseHeaders } = { responseHeaders: false }
738
+ ) {
739
+ const {
740
+ error,
741
+ } = ServiceabilityPlatformApplicationValidator.updatePincodeBulkView().validate(
604
742
  {
605
743
  body,
606
744
  },
@@ -613,7 +751,7 @@ class Serviceability {
613
751
  // Showing warrnings if extra unknown parameters are found
614
752
  const {
615
753
  error: warrning,
616
- } = ServiceabilityValidator.updatePincodeBulkView().validate(
754
+ } = ServiceabilityPlatformApplicationValidator.updatePincodeBulkView().validate(
617
755
  {
618
756
  body,
619
757
  },
@@ -622,9 +760,8 @@ class Serviceability {
622
760
  if (warrning) {
623
761
  Logger({
624
762
  level: "WARN",
625
- message: "Parameter Validation warrnings for updatePincodeBulkView",
763
+ message: `Parameter Validation warrnings for platform > Serviceability > updatePincodeBulkView \n ${warrning}`,
626
764
  });
627
- Logger({ level: "WARN", message: warrning });
628
765
  }
629
766
 
630
767
  const query_params = {};
@@ -634,38 +771,53 @@ class Serviceability {
634
771
  "post",
635
772
  `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pincode-mop-bulk-update`,
636
773
  query_params,
637
- body
774
+ body,
775
+ requestHeaders,
776
+ { responseHeaders }
638
777
  );
639
778
 
779
+ let responseData = response;
780
+ if (responseHeaders) {
781
+ responseData = response[0];
782
+ }
783
+
640
784
  const {
641
785
  error: res_error,
642
- } = ServiceabilityModel.PincodeBulkViewResponse().validate(response, {
643
- abortEarly: false,
644
- allowUnknown: false,
645
- });
786
+ } = ServiceabilityPlatformModel.PincodeBulkViewResponse().validate(
787
+ responseData,
788
+ { abortEarly: false, allowUnknown: false }
789
+ );
646
790
 
647
791
  if (res_error) {
648
792
  Logger({
649
793
  level: "WARN",
650
- message: "Response Validation Warnnings for updatePincodeBulkView",
794
+ message: `Response Validation Warnnings for platform > Serviceability > updatePincodeBulkView \n ${res_error}`,
651
795
  });
652
- Logger({ level: "WARN", message: res_error });
653
796
  }
654
797
 
655
798
  return response;
656
799
  }
657
800
 
658
801
  /**
659
- * @param {Object} arg - Arg object.
660
- * @param {PincodeCodStatusListingRequest} arg.body
661
- * @returns {Promise<PincodeCodStatusListingResponse>} - Success response
802
+ * @param {ServiceabilityPlatformApplicationValidator.UpdatePincodeCoDListingParam} arg
803
+ * - Arg object
804
+ *
805
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
806
+ * @param {import("../PlatformAPIClient").Options} - Options
807
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeCodStatusListingResponse>}
808
+ * - Success response
809
+ *
810
+ * @name updatePincodeCoDListing
662
811
  * @summary: Pincode count view of application.
663
- * @description: This API returns count of active pincode.
812
+ * @description: This API returns count of active pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeCoDListing/).
664
813
  */
665
- async updatePincodeCoDListing({ body } = {}) {
814
+ async updatePincodeCoDListing(
815
+ { body, requestHeaders } = { requestHeaders: {} },
816
+ { responseHeaders } = { responseHeaders: false }
817
+ ) {
666
818
  const {
667
819
  error,
668
- } = ServiceabilityValidator.updatePincodeCoDListing().validate(
820
+ } = ServiceabilityPlatformApplicationValidator.updatePincodeCoDListing().validate(
669
821
  {
670
822
  body,
671
823
  },
@@ -678,7 +830,7 @@ class Serviceability {
678
830
  // Showing warrnings if extra unknown parameters are found
679
831
  const {
680
832
  error: warrning,
681
- } = ServiceabilityValidator.updatePincodeCoDListing().validate(
833
+ } = ServiceabilityPlatformApplicationValidator.updatePincodeCoDListing().validate(
682
834
  {
683
835
  body,
684
836
  },
@@ -687,9 +839,8 @@ class Serviceability {
687
839
  if (warrning) {
688
840
  Logger({
689
841
  level: "WARN",
690
- message: "Parameter Validation warrnings for updatePincodeCoDListing",
842
+ message: `Parameter Validation warrnings for platform > Serviceability > updatePincodeCoDListing \n ${warrning}`,
691
843
  });
692
- Logger({ level: "WARN", message: warrning });
693
844
  }
694
845
 
695
846
  const query_params = {};
@@ -699,36 +850,52 @@ class Serviceability {
699
850
  "post",
700
851
  `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pincode-mop-data`,
701
852
  query_params,
702
- body
853
+ body,
854
+ requestHeaders,
855
+ { responseHeaders }
703
856
  );
704
857
 
858
+ let responseData = response;
859
+ if (responseHeaders) {
860
+ responseData = response[0];
861
+ }
862
+
705
863
  const {
706
864
  error: res_error,
707
- } = ServiceabilityModel.PincodeCodStatusListingResponse().validate(
708
- response,
865
+ } = ServiceabilityPlatformModel.PincodeCodStatusListingResponse().validate(
866
+ responseData,
709
867
  { abortEarly: false, allowUnknown: false }
710
868
  );
711
869
 
712
870
  if (res_error) {
713
871
  Logger({
714
872
  level: "WARN",
715
- message: "Response Validation Warnnings for updatePincodeCoDListing",
873
+ message: `Response Validation Warnnings for platform > Serviceability > updatePincodeCoDListing \n ${res_error}`,
716
874
  });
717
- Logger({ level: "WARN", message: res_error });
718
875
  }
719
876
 
720
877
  return response;
721
878
  }
722
879
 
723
880
  /**
724
- * @param {Object} arg - Arg object.
725
- * @param {PincodeMopData} arg.body
726
- * @returns {Promise<PincodeMOPresponse>} - Success response
881
+ * @param {ServiceabilityPlatformApplicationValidator.UpdatePincodeMopViewParam} arg
882
+ * - Arg object
883
+ *
884
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
885
+ * @param {import("../PlatformAPIClient").Options} - Options
886
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeMOPresponse>} -
887
+ * Success response
888
+ * @name updatePincodeMopView
727
889
  * @summary: PincodeView update of MOP.
728
- * @description: This API updates Pincode method of payment.
890
+ * @description: This API updates Pincode method of payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeMopView/).
729
891
  */
730
- async updatePincodeMopView({ body } = {}) {
731
- const { error } = ServiceabilityValidator.updatePincodeMopView().validate(
892
+ async updatePincodeMopView(
893
+ { body, requestHeaders } = { requestHeaders: {} },
894
+ { responseHeaders } = { responseHeaders: false }
895
+ ) {
896
+ const {
897
+ error,
898
+ } = ServiceabilityPlatformApplicationValidator.updatePincodeMopView().validate(
732
899
  {
733
900
  body,
734
901
  },
@@ -741,7 +908,7 @@ class Serviceability {
741
908
  // Showing warrnings if extra unknown parameters are found
742
909
  const {
743
910
  error: warrning,
744
- } = ServiceabilityValidator.updatePincodeMopView().validate(
911
+ } = ServiceabilityPlatformApplicationValidator.updatePincodeMopView().validate(
745
912
  {
746
913
  body,
747
914
  },
@@ -750,9 +917,8 @@ class Serviceability {
750
917
  if (warrning) {
751
918
  Logger({
752
919
  level: "WARN",
753
- message: "Parameter Validation warrnings for updatePincodeMopView",
920
+ message: `Parameter Validation warrnings for platform > Serviceability > updatePincodeMopView \n ${warrning}`,
754
921
  });
755
- Logger({ level: "WARN", message: warrning });
756
922
  }
757
923
 
758
924
  const query_params = {};
@@ -762,38 +928,132 @@ class Serviceability {
762
928
  "post",
763
929
  `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pincode-mop-update`,
764
930
  query_params,
765
- body
931
+ body,
932
+ requestHeaders,
933
+ { responseHeaders }
766
934
  );
767
935
 
936
+ let responseData = response;
937
+ if (responseHeaders) {
938
+ responseData = response[0];
939
+ }
940
+
768
941
  const {
769
942
  error: res_error,
770
- } = ServiceabilityModel.PincodeMOPresponse().validate(response, {
771
- abortEarly: false,
772
- allowUnknown: false,
773
- });
943
+ } = ServiceabilityPlatformModel.PincodeMOPresponse().validate(
944
+ responseData,
945
+ { abortEarly: false, allowUnknown: false }
946
+ );
947
+
948
+ if (res_error) {
949
+ Logger({
950
+ level: "WARN",
951
+ message: `Response Validation Warnnings for platform > Serviceability > updatePincodeMopView \n ${res_error}`,
952
+ });
953
+ }
954
+
955
+ return response;
956
+ }
957
+
958
+ /**
959
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateSelfShipParam} arg
960
+ * - Arg object
961
+ *
962
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
963
+ * @param {import("../PlatformAPIClient").Options} - Options
964
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse>}
965
+ * - Success response
966
+ *
967
+ * @name updateSelfShip
968
+ * @summary: Self-ship configuration of application.
969
+ * @description: This API updates Self-ship configuration of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateSelfShip/).
970
+ */
971
+ async updateSelfShip(
972
+ { body, requestHeaders } = { requestHeaders: {} },
973
+ { responseHeaders } = { responseHeaders: false }
974
+ ) {
975
+ const {
976
+ error,
977
+ } = ServiceabilityPlatformApplicationValidator.updateSelfShip().validate(
978
+ {
979
+ body,
980
+ },
981
+ { abortEarly: false, allowUnknown: true }
982
+ );
983
+ if (error) {
984
+ return Promise.reject(new FDKClientValidationError(error));
985
+ }
986
+
987
+ // Showing warrnings if extra unknown parameters are found
988
+ const {
989
+ error: warrning,
990
+ } = ServiceabilityPlatformApplicationValidator.updateSelfShip().validate(
991
+ {
992
+ body,
993
+ },
994
+ { abortEarly: false, allowUnknown: false }
995
+ );
996
+ if (warrning) {
997
+ Logger({
998
+ level: "WARN",
999
+ message: `Parameter Validation warrnings for platform > Serviceability > updateSelfShip \n ${warrning}`,
1000
+ });
1001
+ }
1002
+
1003
+ const query_params = {};
1004
+
1005
+ const response = await PlatformAPIClient.execute(
1006
+ this.config,
1007
+ "patch",
1008
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/selfship`,
1009
+ query_params,
1010
+ body,
1011
+ requestHeaders,
1012
+ { responseHeaders }
1013
+ );
1014
+
1015
+ let responseData = response;
1016
+ if (responseHeaders) {
1017
+ responseData = response[0];
1018
+ }
1019
+
1020
+ const {
1021
+ error: res_error,
1022
+ } = ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse().validate(
1023
+ responseData,
1024
+ { abortEarly: false, allowUnknown: false }
1025
+ );
774
1026
 
775
1027
  if (res_error) {
776
1028
  Logger({
777
1029
  level: "WARN",
778
- message: "Response Validation Warnnings for updatePincodeMopView",
1030
+ message: `Response Validation Warnnings for platform > Serviceability > updateSelfShip \n ${res_error}`,
779
1031
  });
780
- Logger({ level: "WARN", message: res_error });
781
1032
  }
782
1033
 
783
1034
  return response;
784
1035
  }
785
1036
 
786
1037
  /**
787
- * @param {Object} arg - Arg object.
788
- * @param {DPApplicationRuleRequest} arg.body
789
- * @returns {Promise<DPApplicationRuleResponse>} - Success response
1038
+ * @param {ServiceabilityPlatformApplicationValidator.UpsertDpApplicationRulesParam} arg
1039
+ * - Arg object
1040
+ *
1041
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1042
+ * @param {import("../PlatformAPIClient").Options} - Options
1043
+ * @returns {Promise<ServiceabilityPlatformModel.DPApplicationRuleResponse>}
1044
+ * - Success response
1045
+ *
1046
+ * @name upsertDpApplicationRules
790
1047
  * @summary: Upsert of DpApplicationRules in database.
791
- * @description: This API returns response of upsert of DpApplicationRules in mongo database.
1048
+ * @description: This API returns response of upsert of DpApplicationRules in mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/upsertDpApplicationRules/).
792
1049
  */
793
- async upsertDpApplicationRules({ body } = {}) {
1050
+ async upsertDpApplicationRules(
1051
+ { body, requestHeaders } = { requestHeaders: {} },
1052
+ { responseHeaders } = { responseHeaders: false }
1053
+ ) {
794
1054
  const {
795
1055
  error,
796
- } = ServiceabilityValidator.upsertDpApplicationRules().validate(
1056
+ } = ServiceabilityPlatformApplicationValidator.upsertDpApplicationRules().validate(
797
1057
  {
798
1058
  body,
799
1059
  },
@@ -806,7 +1066,7 @@ class Serviceability {
806
1066
  // Showing warrnings if extra unknown parameters are found
807
1067
  const {
808
1068
  error: warrning,
809
- } = ServiceabilityValidator.upsertDpApplicationRules().validate(
1069
+ } = ServiceabilityPlatformApplicationValidator.upsertDpApplicationRules().validate(
810
1070
  {
811
1071
  body,
812
1072
  },
@@ -815,9 +1075,8 @@ class Serviceability {
815
1075
  if (warrning) {
816
1076
  Logger({
817
1077
  level: "WARN",
818
- message: "Parameter Validation warrnings for upsertDpApplicationRules",
1078
+ message: `Parameter Validation warrnings for platform > Serviceability > upsertDpApplicationRules \n ${warrning}`,
819
1079
  });
820
- Logger({ level: "WARN", message: warrning });
821
1080
  }
822
1081
 
823
1082
  const query_params = {};
@@ -827,22 +1086,28 @@ class Serviceability {
827
1086
  "put",
828
1087
  `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier/priority`,
829
1088
  query_params,
830
- body
1089
+ body,
1090
+ requestHeaders,
1091
+ { responseHeaders }
831
1092
  );
832
1093
 
1094
+ let responseData = response;
1095
+ if (responseHeaders) {
1096
+ responseData = response[0];
1097
+ }
1098
+
833
1099
  const {
834
1100
  error: res_error,
835
- } = ServiceabilityModel.DPApplicationRuleResponse().validate(response, {
836
- abortEarly: false,
837
- allowUnknown: false,
838
- });
1101
+ } = ServiceabilityPlatformModel.DPApplicationRuleResponse().validate(
1102
+ responseData,
1103
+ { abortEarly: false, allowUnknown: false }
1104
+ );
839
1105
 
840
1106
  if (res_error) {
841
1107
  Logger({
842
1108
  level: "WARN",
843
- message: "Response Validation Warnnings for upsertDpApplicationRules",
1109
+ message: `Response Validation Warnnings for platform > Serviceability > upsertDpApplicationRules \n ${res_error}`,
844
1110
  });
845
- Logger({ level: "WARN", message: res_error });
846
1111
  }
847
1112
 
848
1113
  return response;