@gofynd/fdk-client-javascript 1.6.4 → 3.1.0-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 (290) 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 +100 -80
  6. package/sdk/application/Cart/CartApplicationClient.js +257 -126
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +3 -3
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +61 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +250 -36
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  18. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  22. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  24. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  25. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  27. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  28. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  30. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  31. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  32. package/sdk/application/User/UserApplicationClient.js +9 -57
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  36. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  37. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  41. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  42. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  43. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  44. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  45. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  46. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  47. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
  48. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
  49. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
  50. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
  51. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  52. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
  53. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  55. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  56. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  57. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  58. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  60. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  62. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  64. package/sdk/partner/PartnerClient.d.ts +6 -0
  65. package/sdk/partner/PartnerClient.js +9 -0
  66. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  67. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  68. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  69. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  70. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  71. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  73. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  74. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  75. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  76. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  77. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  78. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  79. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  80. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
  81. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  86. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  88. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  90. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  95. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  96. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  97. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  98. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  99. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  100. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  101. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
  102. package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
  103. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  104. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  105. package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
  106. package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
  107. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
  108. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
  111. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
  112. package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
  113. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
  114. package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
  115. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
  116. package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
  117. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  118. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  119. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  120. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  121. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
  122. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  125. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  126. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  127. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
  128. package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
  129. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  130. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  131. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
  132. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
  137. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  138. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  141. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  142. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  143. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
  144. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
  145. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  146. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  147. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
  148. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
  149. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  150. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  151. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  152. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  153. package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
  154. package/sdk/platform/Content/ContentPlatformModel.js +940 -599
  155. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  156. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  157. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  158. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  159. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  160. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  161. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  162. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  163. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  164. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  167. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  168. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  169. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  170. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  171. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  172. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  173. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  174. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  175. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  176. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  177. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  178. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  179. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  180. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  181. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  182. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  183. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  184. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  185. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  186. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  187. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  188. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  189. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  190. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  191. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  192. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  193. package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
  194. package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
  195. package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
  196. package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
  197. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  198. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  199. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  200. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  201. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  203. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  204. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  205. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  206. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  207. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  208. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  209. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
  210. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
  211. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  212. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  213. package/sdk/platform/PlatformClient.d.ts +2 -0
  214. package/sdk/platform/PlatformClient.js +4 -0
  215. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  216. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  220. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  221. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  222. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
  231. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  232. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  233. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  234. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  235. package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
  236. package/sdk/platform/Share/SharePlatformModel.js +5 -43
  237. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
  238. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
  239. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
  240. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
  241. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  242. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  243. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  244. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  245. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  246. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  247. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
  248. package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
  249. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
  250. package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
  251. package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
  252. package/sdk/platform/User/UserPlatformModel.js +209 -216
  253. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  254. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  255. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
  256. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
  257. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  258. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  259. package/sdk/platform/index.d.ts +1 -0
  260. package/sdk/platform/index.js +2 -0
  261. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  262. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  263. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  264. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  265. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  266. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  267. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  268. package/sdk/public/Content/ContentPublicClient.js +183 -0
  269. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  270. package/sdk/public/Content/ContentPublicModel.js +47 -1
  271. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  272. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  273. package/sdk/public/PublicClient.d.ts +0 -2
  274. package/sdk/public/PublicClient.js +0 -4
  275. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  276. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  277. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  278. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  279. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  280. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  281. package/sdk/public/index.d.ts +0 -1
  282. package/sdk/public/index.js +0 -2
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  285. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  286. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  287. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  288. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  289. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  290. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -16,25 +16,23 @@ class Serviceability {
16
16
  }
17
17
 
18
18
  /**
19
- * @param {ServiceabilityPlatformApplicationValidator.CreateCourierPartnerRuleParam} arg
19
+ * @param {ServiceabilityPlatformApplicationValidator.CreateBulkExportParam} arg
20
20
  * - Arg object
21
21
  *
22
22
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
23
23
  * @param {import("../PlatformAPIClient").Options} - Options
24
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResult>}
25
- * - Success response
26
- *
27
- * @name createCourierPartnerRule
28
- * @summary: Create courier rule
29
- * @description: Creates a rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerRule/).
24
+ * @returns {Promise<ServiceabilityPlatformModel.ZoneBulkExport>} - Success response
25
+ * @name createBulkExport
26
+ * @summary: Create Bulk Export of Zones
27
+ * @description: Export zones defined at the application level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createBulkExport/).
30
28
  */
31
- async createCourierPartnerRule(
29
+ async createBulkExport(
32
30
  { body, requestHeaders } = { requestHeaders: {} },
33
31
  { responseHeaders } = { responseHeaders: false }
34
32
  ) {
35
33
  const {
36
34
  error,
37
- } = ServiceabilityPlatformApplicationValidator.createCourierPartnerRule().validate(
35
+ } = ServiceabilityPlatformApplicationValidator.createBulkExport().validate(
38
36
  {
39
37
  body,
40
38
  },
@@ -47,7 +45,7 @@ class Serviceability {
47
45
  // Showing warrnings if extra unknown parameters are found
48
46
  const {
49
47
  error: warrning,
50
- } = ServiceabilityPlatformApplicationValidator.createCourierPartnerRule().validate(
48
+ } = ServiceabilityPlatformApplicationValidator.createBulkExport().validate(
51
49
  {
52
50
  body,
53
51
  },
@@ -56,7 +54,7 @@ class Serviceability {
56
54
  if (warrning) {
57
55
  Logger({
58
56
  level: "WARN",
59
- message: `Parameter Validation warrnings for platform > Serviceability > createCourierPartnerRule \n ${warrning}`,
57
+ message: `Parameter Validation warrnings for platform > Serviceability > createBulkExport \n ${warrning}`,
60
58
  });
61
59
  }
62
60
 
@@ -65,7 +63,7 @@ class Serviceability {
65
63
  const response = await PlatformAPIClient.execute(
66
64
  this.config,
67
65
  "post",
68
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules`,
66
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/bulk/export`,
69
67
  query_params,
70
68
  body,
71
69
  requestHeaders,
@@ -79,10 +77,10 @@ class Serviceability {
79
77
 
80
78
  const {
81
79
  error: res_error,
82
- } = ServiceabilityPlatformModel.CourierPartnerRuleResult().validate(
83
- responseData,
84
- { abortEarly: false, allowUnknown: true }
85
- );
80
+ } = ServiceabilityPlatformModel.ZoneBulkExport().validate(responseData, {
81
+ abortEarly: false,
82
+ allowUnknown: true,
83
+ });
86
84
 
87
85
  if (res_error) {
88
86
  if (this.config.options.strictResponseCheck === true) {
@@ -90,7 +88,7 @@ class Serviceability {
90
88
  } else {
91
89
  Logger({
92
90
  level: "WARN",
93
- message: `Response Validation Warnings for platform > Serviceability > createCourierPartnerRule \n ${res_error}`,
91
+ message: `Response Validation Warnings for platform > Serviceability > createBulkExport \n ${res_error}`,
94
92
  });
95
93
  }
96
94
  }
@@ -99,24 +97,24 @@ class Serviceability {
99
97
  }
100
98
 
101
99
  /**
102
- * @param {ServiceabilityPlatformApplicationValidator.CreateStoreRulesParam} arg
100
+ * @param {ServiceabilityPlatformApplicationValidator.CreateBulkGeoAreaParam} arg
103
101
  * - Arg object
104
102
  *
105
103
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
106
104
  * @param {import("../PlatformAPIClient").Options} - Options
107
- * @returns {Promise<ServiceabilityPlatformModel.StoreRuleResultSchema>} -
105
+ * @returns {Promise<ServiceabilityPlatformModel.BulkGeoAreaResult>} -
108
106
  * Success response
109
- * @name createStoreRules
110
- * @summary: Create store rule
111
- * @description: Create a rule within the order routing rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createStoreRules/).
107
+ * @name createBulkGeoArea
108
+ * @summary: Bulk Creation of GeoArea Regions
109
+ * @description: Allows to create and manage GeoAreas, representing groups of geographic regions in bulk. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createBulkGeoArea/).
112
110
  */
113
- async createStoreRules(
111
+ async createBulkGeoArea(
114
112
  { body, requestHeaders } = { requestHeaders: {} },
115
113
  { responseHeaders } = { responseHeaders: false }
116
114
  ) {
117
115
  const {
118
116
  error,
119
- } = ServiceabilityPlatformApplicationValidator.createStoreRules().validate(
117
+ } = ServiceabilityPlatformApplicationValidator.createBulkGeoArea().validate(
120
118
  {
121
119
  body,
122
120
  },
@@ -129,7 +127,7 @@ class Serviceability {
129
127
  // Showing warrnings if extra unknown parameters are found
130
128
  const {
131
129
  error: warrning,
132
- } = ServiceabilityPlatformApplicationValidator.createStoreRules().validate(
130
+ } = ServiceabilityPlatformApplicationValidator.createBulkGeoArea().validate(
133
131
  {
134
132
  body,
135
133
  },
@@ -138,7 +136,7 @@ class Serviceability {
138
136
  if (warrning) {
139
137
  Logger({
140
138
  level: "WARN",
141
- message: `Parameter Validation warrnings for platform > Serviceability > createStoreRules \n ${warrning}`,
139
+ message: `Parameter Validation warrnings for platform > Serviceability > createBulkGeoArea \n ${warrning}`,
142
140
  });
143
141
  }
144
142
 
@@ -147,7 +145,7 @@ class Serviceability {
147
145
  const response = await PlatformAPIClient.execute(
148
146
  this.config,
149
147
  "post",
150
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules`,
148
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/geoareas/regions/bulk`,
151
149
  query_params,
152
150
  body,
153
151
  requestHeaders,
@@ -161,10 +159,10 @@ class Serviceability {
161
159
 
162
160
  const {
163
161
  error: res_error,
164
- } = ServiceabilityPlatformModel.StoreRuleResultSchema().validate(
165
- responseData,
166
- { abortEarly: false, allowUnknown: true }
167
- );
162
+ } = ServiceabilityPlatformModel.BulkGeoAreaResult().validate(responseData, {
163
+ abortEarly: false,
164
+ allowUnknown: true,
165
+ });
168
166
 
169
167
  if (res_error) {
170
168
  if (this.config.options.strictResponseCheck === true) {
@@ -172,7 +170,7 @@ class Serviceability {
172
170
  } else {
173
171
  Logger({
174
172
  level: "WARN",
175
- message: `Response Validation Warnings for platform > Serviceability > createStoreRules \n ${res_error}`,
173
+ message: `Response Validation Warnings for platform > Serviceability > createBulkGeoArea \n ${res_error}`,
176
174
  });
177
175
  }
178
176
  }
@@ -181,25 +179,27 @@ class Serviceability {
181
179
  }
182
180
 
183
181
  /**
184
- * @param {ServiceabilityPlatformApplicationValidator.GetApplicationConfigParam} arg
182
+ * @param {ServiceabilityPlatformApplicationValidator.CreateBulkZoneParam} arg
185
183
  * - Arg object
186
184
  *
187
185
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
188
186
  * @param {import("../PlatformAPIClient").Options} - Options
189
- * @returns {Promise<ServiceabilityPlatformModel.StoreRuleConfigData>} -
187
+ * @returns {Promise<ServiceabilityPlatformModel.CreateBulkZoneResponse>} -
190
188
  * Success response
191
- * @name getApplicationConfig
192
- * @summary: Get store rule configuration
193
- * @description: Retrieves information about the order routing setup for a single application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationConfig/).
189
+ * @name createBulkZone
190
+ * @summary: Create bulk zones.
191
+ * @description: Creates bulk zones defined at the application level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createBulkZone/).
194
192
  */
195
- async getApplicationConfig(
196
- { requestHeaders } = { requestHeaders: {} },
193
+ async createBulkZone(
194
+ { body, requestHeaders } = { requestHeaders: {} },
197
195
  { responseHeaders } = { responseHeaders: false }
198
196
  ) {
199
197
  const {
200
198
  error,
201
- } = ServiceabilityPlatformApplicationValidator.getApplicationConfig().validate(
202
- {},
199
+ } = ServiceabilityPlatformApplicationValidator.createBulkZone().validate(
200
+ {
201
+ body,
202
+ },
203
203
  { abortEarly: false, allowUnknown: true }
204
204
  );
205
205
  if (error) {
@@ -209,14 +209,16 @@ class Serviceability {
209
209
  // Showing warrnings if extra unknown parameters are found
210
210
  const {
211
211
  error: warrning,
212
- } = ServiceabilityPlatformApplicationValidator.getApplicationConfig().validate(
213
- {},
212
+ } = ServiceabilityPlatformApplicationValidator.createBulkZone().validate(
213
+ {
214
+ body,
215
+ },
214
216
  { abortEarly: false, allowUnknown: false }
215
217
  );
216
218
  if (warrning) {
217
219
  Logger({
218
220
  level: "WARN",
219
- message: `Parameter Validation warrnings for platform > Serviceability > getApplicationConfig \n ${warrning}`,
221
+ message: `Parameter Validation warrnings for platform > Serviceability > createBulkZone \n ${warrning}`,
220
222
  });
221
223
  }
222
224
 
@@ -224,10 +226,10 @@ class Serviceability {
224
226
 
225
227
  const response = await PlatformAPIClient.execute(
226
228
  this.config,
227
- "get",
228
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/configuration`,
229
+ "post",
230
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/bulk`,
229
231
  query_params,
230
- undefined,
232
+ body,
231
233
  requestHeaders,
232
234
  { responseHeaders }
233
235
  );
@@ -239,7 +241,7 @@ class Serviceability {
239
241
 
240
242
  const {
241
243
  error: res_error,
242
- } = ServiceabilityPlatformModel.StoreRuleConfigData().validate(
244
+ } = ServiceabilityPlatformModel.CreateBulkZoneResponse().validate(
243
245
  responseData,
244
246
  { abortEarly: false, allowUnknown: true }
245
247
  );
@@ -250,7 +252,7 @@ class Serviceability {
250
252
  } else {
251
253
  Logger({
252
254
  level: "WARN",
253
- message: `Response Validation Warnings for platform > Serviceability > getApplicationConfig \n ${res_error}`,
255
+ message: `Response Validation Warnings for platform > Serviceability > createBulkZone \n ${res_error}`,
254
256
  });
255
257
  }
256
258
  }
@@ -259,25 +261,28 @@ class Serviceability {
259
261
  }
260
262
 
261
263
  /**
262
- * @param {ServiceabilityPlatformApplicationValidator.GetApplicationConfigurationParam} arg
264
+ * @param {ServiceabilityPlatformApplicationValidator.CreateCourierPartnerRuleParam} arg
263
265
  * - Arg object
264
266
  *
265
267
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
266
268
  * @param {import("../PlatformAPIClient").Options} - Options
267
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfig>} -
268
- * Success response
269
- * @name getApplicationConfiguration
270
- * @summary: Get delivery configuration
271
- * @description: Retrieves information about the delivery setup for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationConfiguration/).
269
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema>}
270
+ * - Success response
271
+ *
272
+ * @name createCourierPartnerRule
273
+ * @summary: Create courier rule
274
+ * @description: Creates a rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerRule/).
272
275
  */
273
- async getApplicationConfiguration(
274
- { requestHeaders } = { requestHeaders: {} },
276
+ async createCourierPartnerRule(
277
+ { body, requestHeaders } = { requestHeaders: {} },
275
278
  { responseHeaders } = { responseHeaders: false }
276
279
  ) {
277
280
  const {
278
281
  error,
279
- } = ServiceabilityPlatformApplicationValidator.getApplicationConfiguration().validate(
280
- {},
282
+ } = ServiceabilityPlatformApplicationValidator.createCourierPartnerRule().validate(
283
+ {
284
+ body,
285
+ },
281
286
  { abortEarly: false, allowUnknown: true }
282
287
  );
283
288
  if (error) {
@@ -287,14 +292,16 @@ class Serviceability {
287
292
  // Showing warrnings if extra unknown parameters are found
288
293
  const {
289
294
  error: warrning,
290
- } = ServiceabilityPlatformApplicationValidator.getApplicationConfiguration().validate(
291
- {},
295
+ } = ServiceabilityPlatformApplicationValidator.createCourierPartnerRule().validate(
296
+ {
297
+ body,
298
+ },
292
299
  { abortEarly: false, allowUnknown: false }
293
300
  );
294
301
  if (warrning) {
295
302
  Logger({
296
303
  level: "WARN",
297
- message: `Parameter Validation warrnings for platform > Serviceability > getApplicationConfiguration \n ${warrning}`,
304
+ message: `Parameter Validation warrnings for platform > Serviceability > createCourierPartnerRule \n ${warrning}`,
298
305
  });
299
306
  }
300
307
 
@@ -302,10 +309,10 @@ class Serviceability {
302
309
 
303
310
  const response = await PlatformAPIClient.execute(
304
311
  this.config,
305
- "get",
306
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
312
+ "post",
313
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules`,
307
314
  query_params,
308
- undefined,
315
+ body,
309
316
  requestHeaders,
310
317
  { responseHeaders }
311
318
  );
@@ -317,10 +324,10 @@ class Serviceability {
317
324
 
318
325
  const {
319
326
  error: res_error,
320
- } = ServiceabilityPlatformModel.ApplicationConfig().validate(responseData, {
321
- abortEarly: false,
322
- allowUnknown: true,
323
- });
327
+ } = ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema().validate(
328
+ responseData,
329
+ { abortEarly: false, allowUnknown: true }
330
+ );
324
331
 
325
332
  if (res_error) {
326
333
  if (this.config.options.strictResponseCheck === true) {
@@ -328,7 +335,7 @@ class Serviceability {
328
335
  } else {
329
336
  Logger({
330
337
  level: "WARN",
331
- message: `Response Validation Warnings for platform > Serviceability > getApplicationConfiguration \n ${res_error}`,
338
+ message: `Response Validation Warnings for platform > Serviceability > createCourierPartnerRule \n ${res_error}`,
332
339
  });
333
340
  }
334
341
  }
@@ -337,26 +344,27 @@ class Serviceability {
337
344
  }
338
345
 
339
346
  /**
340
- * @param {ServiceabilityPlatformApplicationValidator.GetApplicationServiceabilitySelfShipmentParam} arg
347
+ * @param {ServiceabilityPlatformApplicationValidator.CreateGeoAreaParam} arg
341
348
  * - Arg object
342
349
  *
343
350
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
344
351
  * @param {import("../PlatformAPIClient").Options} - Options
345
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResult>}
346
- * - Success response
347
- *
348
- * @name getApplicationServiceabilitySelfShipment
349
- * @summary: Get self ship configuration
350
- * @description: Retrieves the self ship setup for a single application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationServiceabilitySelfShipment/).
352
+ * @returns {Promise<ServiceabilityPlatformModel.GeoAreaResponseBody>} -
353
+ * Success response
354
+ * @name createGeoArea
355
+ * @summary: Creation of GeoArea
356
+ * @description: Allows to create and manage GeoAreas, representing groups of geographic regions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createGeoArea/).
351
357
  */
352
- async getApplicationServiceabilitySelfShipment(
353
- { requestHeaders } = { requestHeaders: {} },
358
+ async createGeoArea(
359
+ { body, requestHeaders } = { requestHeaders: {} },
354
360
  { responseHeaders } = { responseHeaders: false }
355
361
  ) {
356
362
  const {
357
363
  error,
358
- } = ServiceabilityPlatformApplicationValidator.getApplicationServiceabilitySelfShipment().validate(
359
- {},
364
+ } = ServiceabilityPlatformApplicationValidator.createGeoArea().validate(
365
+ {
366
+ body,
367
+ },
360
368
  { abortEarly: false, allowUnknown: true }
361
369
  );
362
370
  if (error) {
@@ -366,14 +374,16 @@ class Serviceability {
366
374
  // Showing warrnings if extra unknown parameters are found
367
375
  const {
368
376
  error: warrning,
369
- } = ServiceabilityPlatformApplicationValidator.getApplicationServiceabilitySelfShipment().validate(
370
- {},
377
+ } = ServiceabilityPlatformApplicationValidator.createGeoArea().validate(
378
+ {
379
+ body,
380
+ },
371
381
  { abortEarly: false, allowUnknown: false }
372
382
  );
373
383
  if (warrning) {
374
384
  Logger({
375
385
  level: "WARN",
376
- message: `Parameter Validation warrnings for platform > Serviceability > getApplicationServiceabilitySelfShipment \n ${warrning}`,
386
+ message: `Parameter Validation warrnings for platform > Serviceability > createGeoArea \n ${warrning}`,
377
387
  });
378
388
  }
379
389
 
@@ -381,10 +391,10 @@ class Serviceability {
381
391
 
382
392
  const response = await PlatformAPIClient.execute(
383
393
  this.config,
384
- "get",
385
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/selfship`,
394
+ "post",
395
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/geoareas`,
386
396
  query_params,
387
- undefined,
397
+ body,
388
398
  requestHeaders,
389
399
  { responseHeaders }
390
400
  );
@@ -396,7 +406,7 @@ class Serviceability {
396
406
 
397
407
  const {
398
408
  error: res_error,
399
- } = ServiceabilityPlatformModel.ApplicationSelfShipConfigResult().validate(
409
+ } = ServiceabilityPlatformModel.GeoAreaResponseBody().validate(
400
410
  responseData,
401
411
  { abortEarly: false, allowUnknown: true }
402
412
  );
@@ -407,7 +417,7 @@ class Serviceability {
407
417
  } else {
408
418
  Logger({
409
419
  level: "WARN",
410
- message: `Response Validation Warnings for platform > Serviceability > getApplicationServiceabilitySelfShipment \n ${res_error}`,
420
+ message: `Response Validation Warnings for platform > Serviceability > createGeoArea \n ${res_error}`,
411
421
  });
412
422
  }
413
423
  }
@@ -416,27 +426,27 @@ class Serviceability {
416
426
  }
417
427
 
418
428
  /**
419
- * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRuleParam} arg
429
+ * @param {ServiceabilityPlatformApplicationValidator.CreateGeoAreaExportJobParam} arg
420
430
  * - Arg object
421
431
  *
422
432
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
423
433
  * @param {import("../PlatformAPIClient").Options} - Options
424
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResult>}
434
+ * @returns {Promise<ServiceabilityPlatformModel.GeoAreaBulkCreationResult>}
425
435
  * - Success response
426
436
  *
427
- * @name getCourierPartnerRule
428
- * @summary: Get courier rule
429
- * @description: Retrieves a single rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRule/).
437
+ * @name createGeoAreaExportJob
438
+ * @summary: Create job for exporting Geoarea regions
439
+ * @description: Create the job for exporting the regions in Geoarea in CSV format. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createGeoAreaExportJob/).
430
440
  */
431
- async getCourierPartnerRule(
432
- { ruleId, requestHeaders } = { requestHeaders: {} },
441
+ async createGeoAreaExportJob(
442
+ { geoareaId, requestHeaders } = { requestHeaders: {} },
433
443
  { responseHeaders } = { responseHeaders: false }
434
444
  ) {
435
445
  const {
436
446
  error,
437
- } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRule().validate(
447
+ } = ServiceabilityPlatformApplicationValidator.createGeoAreaExportJob().validate(
438
448
  {
439
- ruleId,
449
+ geoareaId,
440
450
  },
441
451
  { abortEarly: false, allowUnknown: true }
442
452
  );
@@ -447,16 +457,16 @@ class Serviceability {
447
457
  // Showing warrnings if extra unknown parameters are found
448
458
  const {
449
459
  error: warrning,
450
- } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRule().validate(
460
+ } = ServiceabilityPlatformApplicationValidator.createGeoAreaExportJob().validate(
451
461
  {
452
- ruleId,
462
+ geoareaId,
453
463
  },
454
464
  { abortEarly: false, allowUnknown: false }
455
465
  );
456
466
  if (warrning) {
457
467
  Logger({
458
468
  level: "WARN",
459
- message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerRule \n ${warrning}`,
469
+ message: `Parameter Validation warrnings for platform > Serviceability > createGeoAreaExportJob \n ${warrning}`,
460
470
  });
461
471
  }
462
472
 
@@ -464,8 +474,8 @@ class Serviceability {
464
474
 
465
475
  const response = await PlatformAPIClient.execute(
466
476
  this.config,
467
- "get",
468
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/${ruleId}`,
477
+ "post",
478
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/geoareas/bulk/export/${geoareaId}`,
469
479
  query_params,
470
480
  undefined,
471
481
  requestHeaders,
@@ -479,7 +489,7 @@ class Serviceability {
479
489
 
480
490
  const {
481
491
  error: res_error,
482
- } = ServiceabilityPlatformModel.CourierPartnerRuleResult().validate(
492
+ } = ServiceabilityPlatformModel.GeoAreaBulkCreationResult().validate(
483
493
  responseData,
484
494
  { abortEarly: false, allowUnknown: true }
485
495
  );
@@ -490,7 +500,7 @@ class Serviceability {
490
500
  } else {
491
501
  Logger({
492
502
  level: "WARN",
493
- message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerRule \n ${res_error}`,
503
+ message: `Response Validation Warnings for platform > Serviceability > createGeoAreaExportJob \n ${res_error}`,
494
504
  });
495
505
  }
496
506
  }
@@ -499,29 +509,27 @@ class Serviceability {
499
509
  }
500
510
 
501
511
  /**
502
- * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRulesParam} arg
512
+ * @param {ServiceabilityPlatformApplicationValidator.CreateStoreRulesParam} arg
503
513
  * - Arg object
504
514
  *
505
515
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
506
516
  * @param {import("../PlatformAPIClient").Options} - Options
507
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRulesListResult>}
517
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleResponseSchema>}
508
518
  * - Success response
509
519
  *
510
- * @name getCourierPartnerRules
511
- * @summary: Get courier rules
512
- * @description: Retrieve a list of rules within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRules/).
520
+ * @name createStoreRules
521
+ * @summary: Create store rule
522
+ * @description: Create a rule within the order routing rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createStoreRules/).
513
523
  */
514
- async getCourierPartnerRules(
515
- { pageNo, pageSize, status, requestHeaders } = { requestHeaders: {} },
524
+ async createStoreRules(
525
+ { body, requestHeaders } = { requestHeaders: {} },
516
526
  { responseHeaders } = { responseHeaders: false }
517
527
  ) {
518
528
  const {
519
529
  error,
520
- } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRules().validate(
530
+ } = ServiceabilityPlatformApplicationValidator.createStoreRules().validate(
521
531
  {
522
- pageNo,
523
- pageSize,
524
- status,
532
+ body,
525
533
  },
526
534
  { abortEarly: false, allowUnknown: true }
527
535
  );
@@ -532,32 +540,27 @@ class Serviceability {
532
540
  // Showing warrnings if extra unknown parameters are found
533
541
  const {
534
542
  error: warrning,
535
- } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRules().validate(
543
+ } = ServiceabilityPlatformApplicationValidator.createStoreRules().validate(
536
544
  {
537
- pageNo,
538
- pageSize,
539
- status,
545
+ body,
540
546
  },
541
547
  { abortEarly: false, allowUnknown: false }
542
548
  );
543
549
  if (warrning) {
544
550
  Logger({
545
551
  level: "WARN",
546
- message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerRules \n ${warrning}`,
552
+ message: `Parameter Validation warrnings for platform > Serviceability > createStoreRules \n ${warrning}`,
547
553
  });
548
554
  }
549
555
 
550
556
  const query_params = {};
551
- query_params["page_no"] = pageNo;
552
- query_params["page_size"] = pageSize;
553
- query_params["status"] = status;
554
557
 
555
558
  const response = await PlatformAPIClient.execute(
556
559
  this.config,
557
- "get",
558
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules`,
560
+ "post",
561
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules`,
559
562
  query_params,
560
- undefined,
563
+ body,
561
564
  requestHeaders,
562
565
  { responseHeaders }
563
566
  );
@@ -569,7 +572,7 @@ class Serviceability {
569
572
 
570
573
  const {
571
574
  error: res_error,
572
- } = ServiceabilityPlatformModel.CourierPartnerRulesListResult().validate(
575
+ } = ServiceabilityPlatformModel.StoreRuleResponseSchema().validate(
573
576
  responseData,
574
577
  { abortEarly: false, allowUnknown: true }
575
578
  );
@@ -580,7 +583,7 @@ class Serviceability {
580
583
  } else {
581
584
  Logger({
582
585
  level: "WARN",
583
- message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerRules \n ${res_error}`,
586
+ message: `Response Validation Warnings for platform > Serviceability > createStoreRules \n ${res_error}`,
584
587
  });
585
588
  }
586
589
  }
@@ -589,25 +592,23 @@ class Serviceability {
589
592
  }
590
593
 
591
594
  /**
592
- * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnersParam} arg
595
+ * @param {ServiceabilityPlatformApplicationValidator.CreateZoneParam} arg
593
596
  * - Arg object
594
597
  *
595
598
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
596
599
  * @param {import("../PlatformAPIClient").Options} - Options
597
- * @returns {Promise<ServiceabilityPlatformModel.ShipmentCourierPartnerResult>}
598
- * - Success response
599
- *
600
- * @name getCourierPartners
601
- * @summary: Serviceable Courier Partners.
602
- * @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartners/).
600
+ * @returns {Promise<ServiceabilityPlatformModel.ZoneResponseV2>} - Success response
601
+ * @name createZone
602
+ * @summary: Create zone
603
+ * @description: Creates a delivery zone. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createZone/).
603
604
  */
604
- async getCourierPartners(
605
+ async createZone(
605
606
  { body, requestHeaders } = { requestHeaders: {} },
606
607
  { responseHeaders } = { responseHeaders: false }
607
608
  ) {
608
609
  const {
609
610
  error,
610
- } = ServiceabilityPlatformApplicationValidator.getCourierPartners().validate(
611
+ } = ServiceabilityPlatformApplicationValidator.createZone().validate(
611
612
  {
612
613
  body,
613
614
  },
@@ -620,7 +621,7 @@ class Serviceability {
620
621
  // Showing warrnings if extra unknown parameters are found
621
622
  const {
622
623
  error: warrning,
623
- } = ServiceabilityPlatformApplicationValidator.getCourierPartners().validate(
624
+ } = ServiceabilityPlatformApplicationValidator.createZone().validate(
624
625
  {
625
626
  body,
626
627
  },
@@ -629,7 +630,7 @@ class Serviceability {
629
630
  if (warrning) {
630
631
  Logger({
631
632
  level: "WARN",
632
- message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartners \n ${warrning}`,
633
+ message: `Parameter Validation warrnings for platform > Serviceability > createZone \n ${warrning}`,
633
634
  });
634
635
  }
635
636
 
@@ -638,7 +639,7 @@ class Serviceability {
638
639
  const response = await PlatformAPIClient.execute(
639
640
  this.config,
640
641
  "post",
641
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/shipment/courier-partners`,
642
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones`,
642
643
  query_params,
643
644
  body,
644
645
  requestHeaders,
@@ -652,10 +653,10 @@ class Serviceability {
652
653
 
653
654
  const {
654
655
  error: res_error,
655
- } = ServiceabilityPlatformModel.ShipmentCourierPartnerResult().validate(
656
- responseData,
657
- { abortEarly: false, allowUnknown: true }
658
- );
656
+ } = ServiceabilityPlatformModel.ZoneResponseV2().validate(responseData, {
657
+ abortEarly: false,
658
+ allowUnknown: true,
659
+ });
659
660
 
660
661
  if (res_error) {
661
662
  if (this.config.options.strictResponseCheck === true) {
@@ -663,7 +664,7 @@ class Serviceability {
663
664
  } else {
664
665
  Logger({
665
666
  level: "WARN",
666
- message: `Response Validation Warnings for platform > Serviceability > getCourierPartners \n ${res_error}`,
667
+ message: `Response Validation Warnings for platform > Serviceability > createZone \n ${res_error}`,
667
668
  });
668
669
  }
669
670
  }
@@ -672,26 +673,27 @@ class Serviceability {
672
673
  }
673
674
 
674
675
  /**
675
- * @param {ServiceabilityPlatformApplicationValidator.GetStoreRuleParam} arg
676
+ * @param {ServiceabilityPlatformApplicationValidator.DeleteZoneParam} arg
676
677
  * - Arg object
677
678
  *
678
679
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
679
680
  * @param {import("../PlatformAPIClient").Options} - Options
680
- * @returns {Promise<ServiceabilityPlatformModel.StoreRuleDataSchema>} -
681
- * Success response
682
- * @name getStoreRule
683
- * @summary: Get store rule
684
- * @description: Retrieves a single rule within the order routing rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStoreRule/).
681
+ * @returns {Promise<ServiceabilityPlatformModel.ZoneDeleteSuccessResponse>}
682
+ * - Success response
683
+ *
684
+ * @name deleteZone
685
+ * @summary: Delete a Specific Zone
686
+ * @description: Delete a Zone under that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/deleteZone/).
685
687
  */
686
- async getStoreRule(
687
- { ruleUid, requestHeaders } = { requestHeaders: {} },
688
+ async deleteZone(
689
+ { zoneId, requestHeaders } = { requestHeaders: {} },
688
690
  { responseHeaders } = { responseHeaders: false }
689
691
  ) {
690
692
  const {
691
693
  error,
692
- } = ServiceabilityPlatformApplicationValidator.getStoreRule().validate(
694
+ } = ServiceabilityPlatformApplicationValidator.deleteZone().validate(
693
695
  {
694
- ruleUid,
696
+ zoneId,
695
697
  },
696
698
  { abortEarly: false, allowUnknown: true }
697
699
  );
@@ -702,16 +704,16 @@ class Serviceability {
702
704
  // Showing warrnings if extra unknown parameters are found
703
705
  const {
704
706
  error: warrning,
705
- } = ServiceabilityPlatformApplicationValidator.getStoreRule().validate(
707
+ } = ServiceabilityPlatformApplicationValidator.deleteZone().validate(
706
708
  {
707
- ruleUid,
709
+ zoneId,
708
710
  },
709
711
  { abortEarly: false, allowUnknown: false }
710
712
  );
711
713
  if (warrning) {
712
714
  Logger({
713
715
  level: "WARN",
714
- message: `Parameter Validation warrnings for platform > Serviceability > getStoreRule \n ${warrning}`,
716
+ message: `Parameter Validation warrnings for platform > Serviceability > deleteZone \n ${warrning}`,
715
717
  });
716
718
  }
717
719
 
@@ -719,8 +721,8 @@ class Serviceability {
719
721
 
720
722
  const response = await PlatformAPIClient.execute(
721
723
  this.config,
722
- "get",
723
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules/${ruleUid}`,
724
+ "delete",
725
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/${zoneId}`,
724
726
  query_params,
725
727
  undefined,
726
728
  requestHeaders,
@@ -734,7 +736,7 @@ class Serviceability {
734
736
 
735
737
  const {
736
738
  error: res_error,
737
- } = ServiceabilityPlatformModel.StoreRuleDataSchema().validate(
739
+ } = ServiceabilityPlatformModel.ZoneDeleteSuccessResponse().validate(
738
740
  responseData,
739
741
  { abortEarly: false, allowUnknown: true }
740
742
  );
@@ -745,7 +747,7 @@ class Serviceability {
745
747
  } else {
746
748
  Logger({
747
749
  level: "WARN",
748
- message: `Response Validation Warnings for platform > Serviceability > getStoreRule \n ${res_error}`,
750
+ message: `Response Validation Warnings for platform > Serviceability > deleteZone \n ${res_error}`,
749
751
  });
750
752
  }
751
753
  }
@@ -754,29 +756,24 @@ class Serviceability {
754
756
  }
755
757
 
756
758
  /**
757
- * @param {ServiceabilityPlatformApplicationValidator.GetStoreRulesParam} arg
759
+ * @param {ServiceabilityPlatformApplicationValidator.DownloadGeoareaSampleFileParam} arg
758
760
  * - Arg object
759
761
  *
760
762
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
761
763
  * @param {import("../PlatformAPIClient").Options} - Options
762
- * @returns {Promise<ServiceabilityPlatformModel.GetStoreRulesApiResult>} -
763
- * Success response
764
- * @name getStoreRules
765
- * @summary: Get store rules
766
- * @description: Retrieves an existing order routing setup for a single application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStoreRules/).
764
+ * @returns {Promise<string>} - Success response
765
+ * @name downloadGeoareaSampleFile
766
+ * @summary: Download geoarea sample file.
767
+ * @description: Download a sample file for geoarea data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/downloadGeoareaSampleFile/).
767
768
  */
768
- async getStoreRules(
769
- { pageNo, pageSize, status, requestHeaders } = { requestHeaders: {} },
769
+ async downloadGeoareaSampleFile(
770
+ { requestHeaders } = { requestHeaders: {} },
770
771
  { responseHeaders } = { responseHeaders: false }
771
772
  ) {
772
773
  const {
773
774
  error,
774
- } = ServiceabilityPlatformApplicationValidator.getStoreRules().validate(
775
- {
776
- pageNo,
777
- pageSize,
778
- status,
779
- },
775
+ } = ServiceabilityPlatformApplicationValidator.downloadGeoareaSampleFile().validate(
776
+ {},
780
777
  { abortEarly: false, allowUnknown: true }
781
778
  );
782
779
  if (error) {
@@ -786,30 +783,23 @@ class Serviceability {
786
783
  // Showing warrnings if extra unknown parameters are found
787
784
  const {
788
785
  error: warrning,
789
- } = ServiceabilityPlatformApplicationValidator.getStoreRules().validate(
790
- {
791
- pageNo,
792
- pageSize,
793
- status,
794
- },
786
+ } = ServiceabilityPlatformApplicationValidator.downloadGeoareaSampleFile().validate(
787
+ {},
795
788
  { abortEarly: false, allowUnknown: false }
796
789
  );
797
790
  if (warrning) {
798
791
  Logger({
799
792
  level: "WARN",
800
- message: `Parameter Validation warrnings for platform > Serviceability > getStoreRules \n ${warrning}`,
793
+ message: `Parameter Validation warrnings for platform > Serviceability > downloadGeoareaSampleFile \n ${warrning}`,
801
794
  });
802
795
  }
803
796
 
804
797
  const query_params = {};
805
- query_params["page_no"] = pageNo;
806
- query_params["page_size"] = pageSize;
807
- query_params["status"] = status;
808
798
 
809
799
  const response = await PlatformAPIClient.execute(
810
800
  this.config,
811
801
  "get",
812
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules`,
802
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/geoareas/regions/bulk/sample`,
813
803
  query_params,
814
804
  undefined,
815
805
  requestHeaders,
@@ -821,12 +811,9 @@ class Serviceability {
821
811
  responseData = response[0];
822
812
  }
823
813
 
824
- const {
825
- error: res_error,
826
- } = ServiceabilityPlatformModel.GetStoreRulesApiResult().validate(
827
- responseData,
828
- { abortEarly: false, allowUnknown: true }
829
- );
814
+ const { error: res_error } = Joi.string()
815
+ .allow("")
816
+ .validate(responseData, { abortEarly: false, allowUnknown: true });
830
817
 
831
818
  if (res_error) {
832
819
  if (this.config.options.strictResponseCheck === true) {
@@ -834,7 +821,7 @@ class Serviceability {
834
821
  } else {
835
822
  Logger({
836
823
  level: "WARN",
837
- message: `Response Validation Warnings for platform > Serviceability > getStoreRules \n ${res_error}`,
824
+ message: `Response Validation Warnings for platform > Serviceability > downloadGeoareaSampleFile \n ${res_error}`,
838
825
  });
839
826
  }
840
827
  }
@@ -843,24 +830,1759 @@ class Serviceability {
843
830
  }
844
831
 
845
832
  /**
846
- * @param {ServiceabilityPlatformApplicationValidator.InsertApplicationConfigParam} arg
833
+ * @param {ServiceabilityPlatformApplicationValidator.DownloadZoneSampleFileParam} arg
847
834
  * - Arg object
848
835
  *
849
836
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
850
837
  * @param {import("../PlatformAPIClient").Options} - Options
851
- * @returns {Promise<ServiceabilityPlatformModel.StoreRuleConfigData>} -
852
- * Success response
853
- * @name insertApplicationConfig
854
- * @summary: Create store rule configuration
855
- * @description: Creates a order routing setup for an application, which involves updating sorting settings or rule priorities. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/insertApplicationConfig/).
838
+ * @returns {Promise<string>} - Success response
839
+ * @name downloadZoneSampleFile
840
+ * @summary: Download Sample Delivery Zone Product Type file.
841
+ * @description: Download a sample file for Delivery Zone with specified product type column (i.e. category, department, Item IDs or tags). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/downloadZoneSampleFile/).
842
+ */
843
+ async downloadZoneSampleFile(
844
+ { productType, requestHeaders } = { requestHeaders: {} },
845
+ { responseHeaders } = { responseHeaders: false }
846
+ ) {
847
+ const {
848
+ error,
849
+ } = ServiceabilityPlatformApplicationValidator.downloadZoneSampleFile().validate(
850
+ {
851
+ productType,
852
+ },
853
+ { abortEarly: false, allowUnknown: true }
854
+ );
855
+ if (error) {
856
+ return Promise.reject(new FDKClientValidationError(error));
857
+ }
858
+
859
+ // Showing warrnings if extra unknown parameters are found
860
+ const {
861
+ error: warrning,
862
+ } = ServiceabilityPlatformApplicationValidator.downloadZoneSampleFile().validate(
863
+ {
864
+ productType,
865
+ },
866
+ { abortEarly: false, allowUnknown: false }
867
+ );
868
+ if (warrning) {
869
+ Logger({
870
+ level: "WARN",
871
+ message: `Parameter Validation warrnings for platform > Serviceability > downloadZoneSampleFile \n ${warrning}`,
872
+ });
873
+ }
874
+
875
+ const query_params = {};
876
+
877
+ const response = await PlatformAPIClient.execute(
878
+ this.config,
879
+ "get",
880
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/bulk/sample/${productType}`,
881
+ query_params,
882
+ undefined,
883
+ requestHeaders,
884
+ { responseHeaders }
885
+ );
886
+
887
+ let responseData = response;
888
+ if (responseHeaders) {
889
+ responseData = response[0];
890
+ }
891
+
892
+ const { error: res_error } = Joi.string()
893
+ .allow("")
894
+ .validate(responseData, { abortEarly: false, allowUnknown: true });
895
+
896
+ if (res_error) {
897
+ if (this.config.options.strictResponseCheck === true) {
898
+ return Promise.reject(new FDKResponseValidationError(res_error));
899
+ } else {
900
+ Logger({
901
+ level: "WARN",
902
+ message: `Response Validation Warnings for platform > Serviceability > downloadZoneSampleFile \n ${res_error}`,
903
+ });
904
+ }
905
+ }
906
+
907
+ return response;
908
+ }
909
+
910
+ /**
911
+ * @param {ServiceabilityPlatformApplicationValidator.GetApplicationConfigParam} arg
912
+ * - Arg object
913
+ *
914
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
915
+ * @param {import("../PlatformAPIClient").Options} - Options
916
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleConfigData>} -
917
+ * Success response
918
+ * @name getApplicationConfig
919
+ * @summary: Get store rule configuration
920
+ * @description: Retrieves information about the order routing setup for a single application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationConfig/).
921
+ */
922
+ async getApplicationConfig(
923
+ { requestHeaders } = { requestHeaders: {} },
924
+ { responseHeaders } = { responseHeaders: false }
925
+ ) {
926
+ const {
927
+ error,
928
+ } = ServiceabilityPlatformApplicationValidator.getApplicationConfig().validate(
929
+ {},
930
+ { abortEarly: false, allowUnknown: true }
931
+ );
932
+ if (error) {
933
+ return Promise.reject(new FDKClientValidationError(error));
934
+ }
935
+
936
+ // Showing warrnings if extra unknown parameters are found
937
+ const {
938
+ error: warrning,
939
+ } = ServiceabilityPlatformApplicationValidator.getApplicationConfig().validate(
940
+ {},
941
+ { abortEarly: false, allowUnknown: false }
942
+ );
943
+ if (warrning) {
944
+ Logger({
945
+ level: "WARN",
946
+ message: `Parameter Validation warrnings for platform > Serviceability > getApplicationConfig \n ${warrning}`,
947
+ });
948
+ }
949
+
950
+ const query_params = {};
951
+
952
+ const response = await PlatformAPIClient.execute(
953
+ this.config,
954
+ "get",
955
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/configuration`,
956
+ query_params,
957
+ undefined,
958
+ requestHeaders,
959
+ { responseHeaders }
960
+ );
961
+
962
+ let responseData = response;
963
+ if (responseHeaders) {
964
+ responseData = response[0];
965
+ }
966
+
967
+ const {
968
+ error: res_error,
969
+ } = ServiceabilityPlatformModel.StoreRuleConfigData().validate(
970
+ responseData,
971
+ { abortEarly: false, allowUnknown: true }
972
+ );
973
+
974
+ if (res_error) {
975
+ if (this.config.options.strictResponseCheck === true) {
976
+ return Promise.reject(new FDKResponseValidationError(res_error));
977
+ } else {
978
+ Logger({
979
+ level: "WARN",
980
+ message: `Response Validation Warnings for platform > Serviceability > getApplicationConfig \n ${res_error}`,
981
+ });
982
+ }
983
+ }
984
+
985
+ return response;
986
+ }
987
+
988
+ /**
989
+ * @param {ServiceabilityPlatformApplicationValidator.GetApplicationConfigurationParam} arg
990
+ * - Arg object
991
+ *
992
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
993
+ * @param {import("../PlatformAPIClient").Options} - Options
994
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfigGetResponse>}
995
+ * - Success response
996
+ *
997
+ * @name getApplicationConfiguration
998
+ * @summary: Get delivery configuration
999
+ * @description: This API returns all the Application config that has been applied to the given company and application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationConfiguration/).
1000
+ */
1001
+ async getApplicationConfiguration(
1002
+ { requestHeaders } = { requestHeaders: {} },
1003
+ { responseHeaders } = { responseHeaders: false }
1004
+ ) {
1005
+ const {
1006
+ error,
1007
+ } = ServiceabilityPlatformApplicationValidator.getApplicationConfiguration().validate(
1008
+ {},
1009
+ { abortEarly: false, allowUnknown: true }
1010
+ );
1011
+ if (error) {
1012
+ return Promise.reject(new FDKClientValidationError(error));
1013
+ }
1014
+
1015
+ // Showing warrnings if extra unknown parameters are found
1016
+ const {
1017
+ error: warrning,
1018
+ } = ServiceabilityPlatformApplicationValidator.getApplicationConfiguration().validate(
1019
+ {},
1020
+ { abortEarly: false, allowUnknown: false }
1021
+ );
1022
+ if (warrning) {
1023
+ Logger({
1024
+ level: "WARN",
1025
+ message: `Parameter Validation warrnings for platform > Serviceability > getApplicationConfiguration \n ${warrning}`,
1026
+ });
1027
+ }
1028
+
1029
+ const query_params = {};
1030
+
1031
+ const response = await PlatformAPIClient.execute(
1032
+ this.config,
1033
+ "get",
1034
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
1035
+ query_params,
1036
+ undefined,
1037
+ requestHeaders,
1038
+ { responseHeaders }
1039
+ );
1040
+
1041
+ let responseData = response;
1042
+ if (responseHeaders) {
1043
+ responseData = response[0];
1044
+ }
1045
+
1046
+ const {
1047
+ error: res_error,
1048
+ } = ServiceabilityPlatformModel.ApplicationConfigGetResponse().validate(
1049
+ responseData,
1050
+ { abortEarly: false, allowUnknown: true }
1051
+ );
1052
+
1053
+ if (res_error) {
1054
+ if (this.config.options.strictResponseCheck === true) {
1055
+ return Promise.reject(new FDKResponseValidationError(res_error));
1056
+ } else {
1057
+ Logger({
1058
+ level: "WARN",
1059
+ message: `Response Validation Warnings for platform > Serviceability > getApplicationConfiguration \n ${res_error}`,
1060
+ });
1061
+ }
1062
+ }
1063
+
1064
+ return response;
1065
+ }
1066
+
1067
+ /**
1068
+ * @param {ServiceabilityPlatformApplicationValidator.GetBulkExportParam} arg
1069
+ * - Arg object
1070
+ *
1071
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1072
+ * @param {import("../PlatformAPIClient").Options} - Options
1073
+ * @returns {Promise<ServiceabilityPlatformModel.GetZoneBulkExport>} -
1074
+ * Success response
1075
+ * @name getBulkExport
1076
+ * @summary: Get Bulk Export of Zones
1077
+ * @description: Get specific zone which is exported at the application level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getBulkExport/).
1078
+ */
1079
+ async getBulkExport(
1080
+ { batchId, requestHeaders } = { requestHeaders: {} },
1081
+ { responseHeaders } = { responseHeaders: false }
1082
+ ) {
1083
+ const {
1084
+ error,
1085
+ } = ServiceabilityPlatformApplicationValidator.getBulkExport().validate(
1086
+ {
1087
+ batchId,
1088
+ },
1089
+ { abortEarly: false, allowUnknown: true }
1090
+ );
1091
+ if (error) {
1092
+ return Promise.reject(new FDKClientValidationError(error));
1093
+ }
1094
+
1095
+ // Showing warrnings if extra unknown parameters are found
1096
+ const {
1097
+ error: warrning,
1098
+ } = ServiceabilityPlatformApplicationValidator.getBulkExport().validate(
1099
+ {
1100
+ batchId,
1101
+ },
1102
+ { abortEarly: false, allowUnknown: false }
1103
+ );
1104
+ if (warrning) {
1105
+ Logger({
1106
+ level: "WARN",
1107
+ message: `Parameter Validation warrnings for platform > Serviceability > getBulkExport \n ${warrning}`,
1108
+ });
1109
+ }
1110
+
1111
+ const query_params = {};
1112
+
1113
+ const response = await PlatformAPIClient.execute(
1114
+ this.config,
1115
+ "get",
1116
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/bulk/export/${batchId}`,
1117
+ query_params,
1118
+ undefined,
1119
+ requestHeaders,
1120
+ { responseHeaders }
1121
+ );
1122
+
1123
+ let responseData = response;
1124
+ if (responseHeaders) {
1125
+ responseData = response[0];
1126
+ }
1127
+
1128
+ const {
1129
+ error: res_error,
1130
+ } = ServiceabilityPlatformModel.GetZoneBulkExport().validate(responseData, {
1131
+ abortEarly: false,
1132
+ allowUnknown: true,
1133
+ });
1134
+
1135
+ if (res_error) {
1136
+ if (this.config.options.strictResponseCheck === true) {
1137
+ return Promise.reject(new FDKResponseValidationError(res_error));
1138
+ } else {
1139
+ Logger({
1140
+ level: "WARN",
1141
+ message: `Response Validation Warnings for platform > Serviceability > getBulkExport \n ${res_error}`,
1142
+ });
1143
+ }
1144
+ }
1145
+
1146
+ return response;
1147
+ }
1148
+
1149
+ /**
1150
+ * @param {ServiceabilityPlatformApplicationValidator.GetBulkGeoAreaParam} arg
1151
+ * - Arg object
1152
+ *
1153
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1154
+ * @param {import("../PlatformAPIClient").Options} - Options
1155
+ * @returns {Promise<ServiceabilityPlatformModel.BulkGeoAreaGetResponse>} -
1156
+ * Success response
1157
+ * @name getBulkGeoArea
1158
+ * @summary: Get status of GeoAreas created in bulk
1159
+ * @description: Allows to Get GeoArea status which is created, representing groups of geographic regions in bulk. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getBulkGeoArea/).
1160
+ */
1161
+ async getBulkGeoArea(
1162
+ { geoareaId, requestHeaders } = { requestHeaders: {} },
1163
+ { responseHeaders } = { responseHeaders: false }
1164
+ ) {
1165
+ const {
1166
+ error,
1167
+ } = ServiceabilityPlatformApplicationValidator.getBulkGeoArea().validate(
1168
+ {
1169
+ geoareaId,
1170
+ },
1171
+ { abortEarly: false, allowUnknown: true }
1172
+ );
1173
+ if (error) {
1174
+ return Promise.reject(new FDKClientValidationError(error));
1175
+ }
1176
+
1177
+ // Showing warrnings if extra unknown parameters are found
1178
+ const {
1179
+ error: warrning,
1180
+ } = ServiceabilityPlatformApplicationValidator.getBulkGeoArea().validate(
1181
+ {
1182
+ geoareaId,
1183
+ },
1184
+ { abortEarly: false, allowUnknown: false }
1185
+ );
1186
+ if (warrning) {
1187
+ Logger({
1188
+ level: "WARN",
1189
+ message: `Parameter Validation warrnings for platform > Serviceability > getBulkGeoArea \n ${warrning}`,
1190
+ });
1191
+ }
1192
+
1193
+ const query_params = {};
1194
+
1195
+ const response = await PlatformAPIClient.execute(
1196
+ this.config,
1197
+ "get",
1198
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/geoareas/regions/bulk/${geoareaId}`,
1199
+ query_params,
1200
+ undefined,
1201
+ requestHeaders,
1202
+ { responseHeaders }
1203
+ );
1204
+
1205
+ let responseData = response;
1206
+ if (responseHeaders) {
1207
+ responseData = response[0];
1208
+ }
1209
+
1210
+ const {
1211
+ error: res_error,
1212
+ } = ServiceabilityPlatformModel.BulkGeoAreaGetResponse().validate(
1213
+ responseData,
1214
+ { abortEarly: false, allowUnknown: true }
1215
+ );
1216
+
1217
+ if (res_error) {
1218
+ if (this.config.options.strictResponseCheck === true) {
1219
+ return Promise.reject(new FDKResponseValidationError(res_error));
1220
+ } else {
1221
+ Logger({
1222
+ level: "WARN",
1223
+ message: `Response Validation Warnings for platform > Serviceability > getBulkGeoArea \n ${res_error}`,
1224
+ });
1225
+ }
1226
+ }
1227
+
1228
+ return response;
1229
+ }
1230
+
1231
+ /**
1232
+ * @param {ServiceabilityPlatformApplicationValidator.GetBulkZoneParam} arg
1233
+ * - Arg object
1234
+ *
1235
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1236
+ * @param {import("../PlatformAPIClient").Options} - Options
1237
+ * @returns {Promise<ServiceabilityPlatformModel.GetBulkZoneHistory>} -
1238
+ * Success response
1239
+ * @name getBulkZone
1240
+ * @summary: Get bulk zones.
1241
+ * @description: Fetch bulk zones created at the application level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getBulkZone/).
1242
+ */
1243
+ async getBulkZone(
1244
+ { requestHeaders } = { requestHeaders: {} },
1245
+ { responseHeaders } = { responseHeaders: false }
1246
+ ) {
1247
+ const {
1248
+ error,
1249
+ } = ServiceabilityPlatformApplicationValidator.getBulkZone().validate(
1250
+ {},
1251
+ { abortEarly: false, allowUnknown: true }
1252
+ );
1253
+ if (error) {
1254
+ return Promise.reject(new FDKClientValidationError(error));
1255
+ }
1256
+
1257
+ // Showing warrnings if extra unknown parameters are found
1258
+ const {
1259
+ error: warrning,
1260
+ } = ServiceabilityPlatformApplicationValidator.getBulkZone().validate(
1261
+ {},
1262
+ { abortEarly: false, allowUnknown: false }
1263
+ );
1264
+ if (warrning) {
1265
+ Logger({
1266
+ level: "WARN",
1267
+ message: `Parameter Validation warrnings for platform > Serviceability > getBulkZone \n ${warrning}`,
1268
+ });
1269
+ }
1270
+
1271
+ const query_params = {};
1272
+
1273
+ const response = await PlatformAPIClient.execute(
1274
+ this.config,
1275
+ "get",
1276
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/bulk/history`,
1277
+ query_params,
1278
+ undefined,
1279
+ requestHeaders,
1280
+ { responseHeaders }
1281
+ );
1282
+
1283
+ let responseData = response;
1284
+ if (responseHeaders) {
1285
+ responseData = response[0];
1286
+ }
1287
+
1288
+ const {
1289
+ error: res_error,
1290
+ } = ServiceabilityPlatformModel.GetBulkZoneHistory().validate(
1291
+ responseData,
1292
+ { abortEarly: false, allowUnknown: true }
1293
+ );
1294
+
1295
+ if (res_error) {
1296
+ if (this.config.options.strictResponseCheck === true) {
1297
+ return Promise.reject(new FDKResponseValidationError(res_error));
1298
+ } else {
1299
+ Logger({
1300
+ level: "WARN",
1301
+ message: `Response Validation Warnings for platform > Serviceability > getBulkZone \n ${res_error}`,
1302
+ });
1303
+ }
1304
+ }
1305
+
1306
+ return response;
1307
+ }
1308
+
1309
+ /**
1310
+ * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRuleParam} arg
1311
+ * - Arg object
1312
+ *
1313
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1314
+ * @param {import("../PlatformAPIClient").Options} - Options
1315
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema>}
1316
+ * - Success response
1317
+ *
1318
+ * @name getCourierPartnerRule
1319
+ * @summary: Get courier rule
1320
+ * @description: Retrieves a single rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRule/).
1321
+ */
1322
+ async getCourierPartnerRule(
1323
+ { ruleUid, requestHeaders } = { requestHeaders: {} },
1324
+ { responseHeaders } = { responseHeaders: false }
1325
+ ) {
1326
+ const {
1327
+ error,
1328
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRule().validate(
1329
+ {
1330
+ ruleUid,
1331
+ },
1332
+ { abortEarly: false, allowUnknown: true }
1333
+ );
1334
+ if (error) {
1335
+ return Promise.reject(new FDKClientValidationError(error));
1336
+ }
1337
+
1338
+ // Showing warrnings if extra unknown parameters are found
1339
+ const {
1340
+ error: warrning,
1341
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRule().validate(
1342
+ {
1343
+ ruleUid,
1344
+ },
1345
+ { abortEarly: false, allowUnknown: false }
1346
+ );
1347
+ if (warrning) {
1348
+ Logger({
1349
+ level: "WARN",
1350
+ message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerRule \n ${warrning}`,
1351
+ });
1352
+ }
1353
+
1354
+ const query_params = {};
1355
+
1356
+ const response = await PlatformAPIClient.execute(
1357
+ this.config,
1358
+ "get",
1359
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/${ruleUid}`,
1360
+ query_params,
1361
+ undefined,
1362
+ requestHeaders,
1363
+ { responseHeaders }
1364
+ );
1365
+
1366
+ let responseData = response;
1367
+ if (responseHeaders) {
1368
+ responseData = response[0];
1369
+ }
1370
+
1371
+ const {
1372
+ error: res_error,
1373
+ } = ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema().validate(
1374
+ responseData,
1375
+ { abortEarly: false, allowUnknown: true }
1376
+ );
1377
+
1378
+ if (res_error) {
1379
+ if (this.config.options.strictResponseCheck === true) {
1380
+ return Promise.reject(new FDKResponseValidationError(res_error));
1381
+ } else {
1382
+ Logger({
1383
+ level: "WARN",
1384
+ message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerRule \n ${res_error}`,
1385
+ });
1386
+ }
1387
+ }
1388
+
1389
+ return response;
1390
+ }
1391
+
1392
+ /**
1393
+ * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRuleDetailsParam} arg
1394
+ * - Arg object
1395
+ *
1396
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1397
+ * @param {import("../PlatformAPIClient").Options} - Options
1398
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponseDetailSchema>}
1399
+ * - Success response
1400
+ *
1401
+ * @name getCourierPartnerRuleDetails
1402
+ * @summary: Get courier rule
1403
+ * @description: Retrieves details for a courier partner rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRuleDetails/).
1404
+ */
1405
+ async getCourierPartnerRuleDetails(
1406
+ { ruleUid, requestHeaders } = { requestHeaders: {} },
1407
+ { responseHeaders } = { responseHeaders: false }
1408
+ ) {
1409
+ const {
1410
+ error,
1411
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRuleDetails().validate(
1412
+ {
1413
+ ruleUid,
1414
+ },
1415
+ { abortEarly: false, allowUnknown: true }
1416
+ );
1417
+ if (error) {
1418
+ return Promise.reject(new FDKClientValidationError(error));
1419
+ }
1420
+
1421
+ // Showing warrnings if extra unknown parameters are found
1422
+ const {
1423
+ error: warrning,
1424
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRuleDetails().validate(
1425
+ {
1426
+ ruleUid,
1427
+ },
1428
+ { abortEarly: false, allowUnknown: false }
1429
+ );
1430
+ if (warrning) {
1431
+ Logger({
1432
+ level: "WARN",
1433
+ message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerRuleDetails \n ${warrning}`,
1434
+ });
1435
+ }
1436
+
1437
+ const query_params = {};
1438
+
1439
+ const response = await PlatformAPIClient.execute(
1440
+ this.config,
1441
+ "get",
1442
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/${ruleUid}/details`,
1443
+ query_params,
1444
+ undefined,
1445
+ requestHeaders,
1446
+ { responseHeaders }
1447
+ );
1448
+
1449
+ let responseData = response;
1450
+ if (responseHeaders) {
1451
+ responseData = response[0];
1452
+ }
1453
+
1454
+ const {
1455
+ error: res_error,
1456
+ } = ServiceabilityPlatformModel.CourierPartnerRuleResponseDetailSchema().validate(
1457
+ responseData,
1458
+ { abortEarly: false, allowUnknown: true }
1459
+ );
1460
+
1461
+ if (res_error) {
1462
+ if (this.config.options.strictResponseCheck === true) {
1463
+ return Promise.reject(new FDKResponseValidationError(res_error));
1464
+ } else {
1465
+ Logger({
1466
+ level: "WARN",
1467
+ message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerRuleDetails \n ${res_error}`,
1468
+ });
1469
+ }
1470
+ }
1471
+
1472
+ return response;
1473
+ }
1474
+
1475
+ /**
1476
+ * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRulesParam} arg
1477
+ * - Arg object
1478
+ *
1479
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1480
+ * @param {import("../PlatformAPIClient").Options} - Options
1481
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRulesListResponse>}
1482
+ * - Success response
1483
+ *
1484
+ * @name getCourierPartnerRules
1485
+ * @summary: Get courier rules
1486
+ * @description: Retrieve a list of rules within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRules/).
1487
+ */
1488
+ async getCourierPartnerRules(
1489
+ { pageNo, pageSize, status, requestHeaders } = { requestHeaders: {} },
1490
+ { responseHeaders } = { responseHeaders: false }
1491
+ ) {
1492
+ const {
1493
+ error,
1494
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRules().validate(
1495
+ {
1496
+ pageNo,
1497
+ pageSize,
1498
+ status,
1499
+ },
1500
+ { abortEarly: false, allowUnknown: true }
1501
+ );
1502
+ if (error) {
1503
+ return Promise.reject(new FDKClientValidationError(error));
1504
+ }
1505
+
1506
+ // Showing warrnings if extra unknown parameters are found
1507
+ const {
1508
+ error: warrning,
1509
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRules().validate(
1510
+ {
1511
+ pageNo,
1512
+ pageSize,
1513
+ status,
1514
+ },
1515
+ { abortEarly: false, allowUnknown: false }
1516
+ );
1517
+ if (warrning) {
1518
+ Logger({
1519
+ level: "WARN",
1520
+ message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerRules \n ${warrning}`,
1521
+ });
1522
+ }
1523
+
1524
+ const query_params = {};
1525
+ query_params["page_no"] = pageNo;
1526
+ query_params["page_size"] = pageSize;
1527
+ query_params["status"] = status;
1528
+
1529
+ const response = await PlatformAPIClient.execute(
1530
+ this.config,
1531
+ "get",
1532
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules`,
1533
+ query_params,
1534
+ undefined,
1535
+ requestHeaders,
1536
+ { responseHeaders }
1537
+ );
1538
+
1539
+ let responseData = response;
1540
+ if (responseHeaders) {
1541
+ responseData = response[0];
1542
+ }
1543
+
1544
+ const {
1545
+ error: res_error,
1546
+ } = ServiceabilityPlatformModel.CourierPartnerRulesListResponse().validate(
1547
+ responseData,
1548
+ { abortEarly: false, allowUnknown: true }
1549
+ );
1550
+
1551
+ if (res_error) {
1552
+ if (this.config.options.strictResponseCheck === true) {
1553
+ return Promise.reject(new FDKResponseValidationError(res_error));
1554
+ } else {
1555
+ Logger({
1556
+ level: "WARN",
1557
+ message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerRules \n ${res_error}`,
1558
+ });
1559
+ }
1560
+ }
1561
+
1562
+ return response;
1563
+ }
1564
+
1565
+ /**
1566
+ * @param {ServiceabilityPlatformApplicationValidator.GetGeoAreaParam} arg
1567
+ * - Arg object
1568
+ *
1569
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1570
+ * @param {import("../PlatformAPIClient").Options} - Options
1571
+ * @returns {Promise<ServiceabilityPlatformModel.GeoAreaResponse>} - Success response
1572
+ * @name getGeoArea
1573
+ * @summary: Get details of the specific geoarea
1574
+ * @description: This API Returns the data of the specific GeoArea which exists on the platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getGeoArea/).
1575
+ */
1576
+ async getGeoArea(
1577
+ { geoareaId, requestHeaders } = { requestHeaders: {} },
1578
+ { responseHeaders } = { responseHeaders: false }
1579
+ ) {
1580
+ const {
1581
+ error,
1582
+ } = ServiceabilityPlatformApplicationValidator.getGeoArea().validate(
1583
+ {
1584
+ geoareaId,
1585
+ },
1586
+ { abortEarly: false, allowUnknown: true }
1587
+ );
1588
+ if (error) {
1589
+ return Promise.reject(new FDKClientValidationError(error));
1590
+ }
1591
+
1592
+ // Showing warrnings if extra unknown parameters are found
1593
+ const {
1594
+ error: warrning,
1595
+ } = ServiceabilityPlatformApplicationValidator.getGeoArea().validate(
1596
+ {
1597
+ geoareaId,
1598
+ },
1599
+ { abortEarly: false, allowUnknown: false }
1600
+ );
1601
+ if (warrning) {
1602
+ Logger({
1603
+ level: "WARN",
1604
+ message: `Parameter Validation warrnings for platform > Serviceability > getGeoArea \n ${warrning}`,
1605
+ });
1606
+ }
1607
+
1608
+ const query_params = {};
1609
+
1610
+ const response = await PlatformAPIClient.execute(
1611
+ this.config,
1612
+ "get",
1613
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/geoareas/${geoareaId}`,
1614
+ query_params,
1615
+ undefined,
1616
+ requestHeaders,
1617
+ { responseHeaders }
1618
+ );
1619
+
1620
+ let responseData = response;
1621
+ if (responseHeaders) {
1622
+ responseData = response[0];
1623
+ }
1624
+
1625
+ const {
1626
+ error: res_error,
1627
+ } = ServiceabilityPlatformModel.GeoAreaResponse().validate(responseData, {
1628
+ abortEarly: false,
1629
+ allowUnknown: true,
1630
+ });
1631
+
1632
+ if (res_error) {
1633
+ if (this.config.options.strictResponseCheck === true) {
1634
+ return Promise.reject(new FDKResponseValidationError(res_error));
1635
+ } else {
1636
+ Logger({
1637
+ level: "WARN",
1638
+ message: `Response Validation Warnings for platform > Serviceability > getGeoArea \n ${res_error}`,
1639
+ });
1640
+ }
1641
+ }
1642
+
1643
+ return response;
1644
+ }
1645
+
1646
+ /**
1647
+ * @param {ServiceabilityPlatformApplicationValidator.GetGeoAreaExportJobStatusParam} arg
1648
+ * - Arg object
1649
+ *
1650
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1651
+ * @param {import("../PlatformAPIClient").Options} - Options
1652
+ * @returns {Promise<ServiceabilityPlatformModel.GeoAreaBulkExportResult>}
1653
+ * - Success response
1654
+ *
1655
+ * @name getGeoAreaExportJobStatus
1656
+ * @summary: Get status of Geoarea export job
1657
+ * @description: Get the status and details of the Geoarea bulk export process. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getGeoAreaExportJobStatus/).
1658
+ */
1659
+ async getGeoAreaExportJobStatus(
1660
+ { geoareaId, requestHeaders } = { requestHeaders: {} },
1661
+ { responseHeaders } = { responseHeaders: false }
1662
+ ) {
1663
+ const {
1664
+ error,
1665
+ } = ServiceabilityPlatformApplicationValidator.getGeoAreaExportJobStatus().validate(
1666
+ {
1667
+ geoareaId,
1668
+ },
1669
+ { abortEarly: false, allowUnknown: true }
1670
+ );
1671
+ if (error) {
1672
+ return Promise.reject(new FDKClientValidationError(error));
1673
+ }
1674
+
1675
+ // Showing warrnings if extra unknown parameters are found
1676
+ const {
1677
+ error: warrning,
1678
+ } = ServiceabilityPlatformApplicationValidator.getGeoAreaExportJobStatus().validate(
1679
+ {
1680
+ geoareaId,
1681
+ },
1682
+ { abortEarly: false, allowUnknown: false }
1683
+ );
1684
+ if (warrning) {
1685
+ Logger({
1686
+ level: "WARN",
1687
+ message: `Parameter Validation warrnings for platform > Serviceability > getGeoAreaExportJobStatus \n ${warrning}`,
1688
+ });
1689
+ }
1690
+
1691
+ const query_params = {};
1692
+
1693
+ const response = await PlatformAPIClient.execute(
1694
+ this.config,
1695
+ "get",
1696
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/geoareas/bulk/export/${geoareaId}`,
1697
+ query_params,
1698
+ undefined,
1699
+ requestHeaders,
1700
+ { responseHeaders }
1701
+ );
1702
+
1703
+ let responseData = response;
1704
+ if (responseHeaders) {
1705
+ responseData = response[0];
1706
+ }
1707
+
1708
+ const {
1709
+ error: res_error,
1710
+ } = ServiceabilityPlatformModel.GeoAreaBulkExportResult().validate(
1711
+ responseData,
1712
+ { abortEarly: false, allowUnknown: true }
1713
+ );
1714
+
1715
+ if (res_error) {
1716
+ if (this.config.options.strictResponseCheck === true) {
1717
+ return Promise.reject(new FDKResponseValidationError(res_error));
1718
+ } else {
1719
+ Logger({
1720
+ level: "WARN",
1721
+ message: `Response Validation Warnings for platform > Serviceability > getGeoAreaExportJobStatus \n ${res_error}`,
1722
+ });
1723
+ }
1724
+ }
1725
+
1726
+ return response;
1727
+ }
1728
+
1729
+ /**
1730
+ * @param {ServiceabilityPlatformApplicationValidator.GetGeoAreasParam} arg
1731
+ * - Arg object
1732
+ *
1733
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1734
+ * @param {import("../PlatformAPIClient").Options} - Options
1735
+ * @returns {Promise<ServiceabilityPlatformModel.GeoAreaGetResponseBody>} -
1736
+ * Success response
1737
+ * @name getGeoAreas
1738
+ * @summary: Get all geoareas in the current application.
1739
+ * @description: Retrieves a listing view of created GeoAreas. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getGeoAreas/).
1740
+ */
1741
+ async getGeoAreas(
1742
+ {
1743
+ pageSize,
1744
+ isActive,
1745
+ pageNo,
1746
+ type,
1747
+ q,
1748
+ countryIsoCode,
1749
+ state,
1750
+ city,
1751
+ pincode,
1752
+ sector,
1753
+ requestHeaders,
1754
+ } = { requestHeaders: {} },
1755
+ { responseHeaders } = { responseHeaders: false }
1756
+ ) {
1757
+ const {
1758
+ error,
1759
+ } = ServiceabilityPlatformApplicationValidator.getGeoAreas().validate(
1760
+ {
1761
+ pageSize,
1762
+ isActive,
1763
+ pageNo,
1764
+ type,
1765
+ q,
1766
+ countryIsoCode,
1767
+ state,
1768
+ city,
1769
+ pincode,
1770
+ sector,
1771
+ },
1772
+ { abortEarly: false, allowUnknown: true }
1773
+ );
1774
+ if (error) {
1775
+ return Promise.reject(new FDKClientValidationError(error));
1776
+ }
1777
+
1778
+ // Showing warrnings if extra unknown parameters are found
1779
+ const {
1780
+ error: warrning,
1781
+ } = ServiceabilityPlatformApplicationValidator.getGeoAreas().validate(
1782
+ {
1783
+ pageSize,
1784
+ isActive,
1785
+ pageNo,
1786
+ type,
1787
+ q,
1788
+ countryIsoCode,
1789
+ state,
1790
+ city,
1791
+ pincode,
1792
+ sector,
1793
+ },
1794
+ { abortEarly: false, allowUnknown: false }
1795
+ );
1796
+ if (warrning) {
1797
+ Logger({
1798
+ level: "WARN",
1799
+ message: `Parameter Validation warrnings for platform > Serviceability > getGeoAreas \n ${warrning}`,
1800
+ });
1801
+ }
1802
+
1803
+ const query_params = {};
1804
+ query_params["page_size"] = pageSize;
1805
+ query_params["is_active"] = isActive;
1806
+ query_params["page_no"] = pageNo;
1807
+ query_params["type"] = type;
1808
+ query_params["q"] = q;
1809
+ query_params["country_iso_code"] = countryIsoCode;
1810
+ query_params["state"] = state;
1811
+ query_params["city"] = city;
1812
+ query_params["pincode"] = pincode;
1813
+ query_params["sector"] = sector;
1814
+
1815
+ const response = await PlatformAPIClient.execute(
1816
+ this.config,
1817
+ "get",
1818
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/geoareas`,
1819
+ query_params,
1820
+ undefined,
1821
+ requestHeaders,
1822
+ { responseHeaders }
1823
+ );
1824
+
1825
+ let responseData = response;
1826
+ if (responseHeaders) {
1827
+ responseData = response[0];
1828
+ }
1829
+
1830
+ const {
1831
+ error: res_error,
1832
+ } = ServiceabilityPlatformModel.GeoAreaGetResponseBody().validate(
1833
+ responseData,
1834
+ { abortEarly: false, allowUnknown: true }
1835
+ );
1836
+
1837
+ if (res_error) {
1838
+ if (this.config.options.strictResponseCheck === true) {
1839
+ return Promise.reject(new FDKResponseValidationError(res_error));
1840
+ } else {
1841
+ Logger({
1842
+ level: "WARN",
1843
+ message: `Response Validation Warnings for platform > Serviceability > getGeoAreas \n ${res_error}`,
1844
+ });
1845
+ }
1846
+ }
1847
+
1848
+ return response;
1849
+ }
1850
+
1851
+ /**
1852
+ * @param {ServiceabilityPlatformApplicationValidator.GetStoreRuleParam} arg
1853
+ * - Arg object
1854
+ *
1855
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1856
+ * @param {import("../PlatformAPIClient").Options} - Options
1857
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleDataSchema>} -
1858
+ * Success response
1859
+ * @name getStoreRule
1860
+ * @summary: Get store rule
1861
+ * @description: Retrieves a single rule within the order routing rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStoreRule/).
1862
+ */
1863
+ async getStoreRule(
1864
+ { ruleUid, requestHeaders } = { requestHeaders: {} },
1865
+ { responseHeaders } = { responseHeaders: false }
1866
+ ) {
1867
+ const {
1868
+ error,
1869
+ } = ServiceabilityPlatformApplicationValidator.getStoreRule().validate(
1870
+ {
1871
+ ruleUid,
1872
+ },
1873
+ { abortEarly: false, allowUnknown: true }
1874
+ );
1875
+ if (error) {
1876
+ return Promise.reject(new FDKClientValidationError(error));
1877
+ }
1878
+
1879
+ // Showing warrnings if extra unknown parameters are found
1880
+ const {
1881
+ error: warrning,
1882
+ } = ServiceabilityPlatformApplicationValidator.getStoreRule().validate(
1883
+ {
1884
+ ruleUid,
1885
+ },
1886
+ { abortEarly: false, allowUnknown: false }
1887
+ );
1888
+ if (warrning) {
1889
+ Logger({
1890
+ level: "WARN",
1891
+ message: `Parameter Validation warrnings for platform > Serviceability > getStoreRule \n ${warrning}`,
1892
+ });
1893
+ }
1894
+
1895
+ const query_params = {};
1896
+
1897
+ const response = await PlatformAPIClient.execute(
1898
+ this.config,
1899
+ "get",
1900
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules/${ruleUid}`,
1901
+ query_params,
1902
+ undefined,
1903
+ requestHeaders,
1904
+ { responseHeaders }
1905
+ );
1906
+
1907
+ let responseData = response;
1908
+ if (responseHeaders) {
1909
+ responseData = response[0];
1910
+ }
1911
+
1912
+ const {
1913
+ error: res_error,
1914
+ } = ServiceabilityPlatformModel.StoreRuleDataSchema().validate(
1915
+ responseData,
1916
+ { abortEarly: false, allowUnknown: true }
1917
+ );
1918
+
1919
+ if (res_error) {
1920
+ if (this.config.options.strictResponseCheck === true) {
1921
+ return Promise.reject(new FDKResponseValidationError(res_error));
1922
+ } else {
1923
+ Logger({
1924
+ level: "WARN",
1925
+ message: `Response Validation Warnings for platform > Serviceability > getStoreRule \n ${res_error}`,
1926
+ });
1927
+ }
1928
+ }
1929
+
1930
+ return response;
1931
+ }
1932
+
1933
+ /**
1934
+ * @param {ServiceabilityPlatformApplicationValidator.GetStoreRuleDetailsParam} arg
1935
+ * - Arg object
1936
+ *
1937
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1938
+ * @param {import("../PlatformAPIClient").Options} - Options
1939
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleDataDetailsSchema>}
1940
+ * - Success response
1941
+ *
1942
+ * @name getStoreRuleDetails
1943
+ * @summary: Get store rule Details
1944
+ * @description: Retrieves details of a order routing rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStoreRuleDetails/).
1945
+ */
1946
+ async getStoreRuleDetails(
1947
+ { ruleUid, requestHeaders } = { requestHeaders: {} },
1948
+ { responseHeaders } = { responseHeaders: false }
1949
+ ) {
1950
+ const {
1951
+ error,
1952
+ } = ServiceabilityPlatformApplicationValidator.getStoreRuleDetails().validate(
1953
+ {
1954
+ ruleUid,
1955
+ },
1956
+ { abortEarly: false, allowUnknown: true }
1957
+ );
1958
+ if (error) {
1959
+ return Promise.reject(new FDKClientValidationError(error));
1960
+ }
1961
+
1962
+ // Showing warrnings if extra unknown parameters are found
1963
+ const {
1964
+ error: warrning,
1965
+ } = ServiceabilityPlatformApplicationValidator.getStoreRuleDetails().validate(
1966
+ {
1967
+ ruleUid,
1968
+ },
1969
+ { abortEarly: false, allowUnknown: false }
1970
+ );
1971
+ if (warrning) {
1972
+ Logger({
1973
+ level: "WARN",
1974
+ message: `Parameter Validation warrnings for platform > Serviceability > getStoreRuleDetails \n ${warrning}`,
1975
+ });
1976
+ }
1977
+
1978
+ const query_params = {};
1979
+
1980
+ const response = await PlatformAPIClient.execute(
1981
+ this.config,
1982
+ "get",
1983
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules/${ruleUid}/details`,
1984
+ query_params,
1985
+ undefined,
1986
+ requestHeaders,
1987
+ { responseHeaders }
1988
+ );
1989
+
1990
+ let responseData = response;
1991
+ if (responseHeaders) {
1992
+ responseData = response[0];
1993
+ }
1994
+
1995
+ const {
1996
+ error: res_error,
1997
+ } = ServiceabilityPlatformModel.StoreRuleDataDetailsSchema().validate(
1998
+ responseData,
1999
+ { abortEarly: false, allowUnknown: true }
2000
+ );
2001
+
2002
+ if (res_error) {
2003
+ if (this.config.options.strictResponseCheck === true) {
2004
+ return Promise.reject(new FDKResponseValidationError(res_error));
2005
+ } else {
2006
+ Logger({
2007
+ level: "WARN",
2008
+ message: `Response Validation Warnings for platform > Serviceability > getStoreRuleDetails \n ${res_error}`,
2009
+ });
2010
+ }
2011
+ }
2012
+
2013
+ return response;
2014
+ }
2015
+
2016
+ /**
2017
+ * @param {ServiceabilityPlatformApplicationValidator.GetStoreRulesParam} arg
2018
+ * - Arg object
2019
+ *
2020
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2021
+ * @param {import("../PlatformAPIClient").Options} - Options
2022
+ * @returns {Promise<ServiceabilityPlatformModel.GetStoreRulesApiResponse>}
2023
+ * - Success response
2024
+ *
2025
+ * @name getStoreRules
2026
+ * @summary: Get store rules
2027
+ * @description: Retrieves an existing order routing setup for a single application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStoreRules/).
2028
+ */
2029
+ async getStoreRules(
2030
+ { pageNo, pageSize, status, requestHeaders } = { requestHeaders: {} },
2031
+ { responseHeaders } = { responseHeaders: false }
2032
+ ) {
2033
+ const {
2034
+ error,
2035
+ } = ServiceabilityPlatformApplicationValidator.getStoreRules().validate(
2036
+ {
2037
+ pageNo,
2038
+ pageSize,
2039
+ status,
2040
+ },
2041
+ { abortEarly: false, allowUnknown: true }
2042
+ );
2043
+ if (error) {
2044
+ return Promise.reject(new FDKClientValidationError(error));
2045
+ }
2046
+
2047
+ // Showing warrnings if extra unknown parameters are found
2048
+ const {
2049
+ error: warrning,
2050
+ } = ServiceabilityPlatformApplicationValidator.getStoreRules().validate(
2051
+ {
2052
+ pageNo,
2053
+ pageSize,
2054
+ status,
2055
+ },
2056
+ { abortEarly: false, allowUnknown: false }
2057
+ );
2058
+ if (warrning) {
2059
+ Logger({
2060
+ level: "WARN",
2061
+ message: `Parameter Validation warrnings for platform > Serviceability > getStoreRules \n ${warrning}`,
2062
+ });
2063
+ }
2064
+
2065
+ const query_params = {};
2066
+ query_params["page_no"] = pageNo;
2067
+ query_params["page_size"] = pageSize;
2068
+ query_params["status"] = status;
2069
+
2070
+ const response = await PlatformAPIClient.execute(
2071
+ this.config,
2072
+ "get",
2073
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules`,
2074
+ query_params,
2075
+ undefined,
2076
+ requestHeaders,
2077
+ { responseHeaders }
2078
+ );
2079
+
2080
+ let responseData = response;
2081
+ if (responseHeaders) {
2082
+ responseData = response[0];
2083
+ }
2084
+
2085
+ const {
2086
+ error: res_error,
2087
+ } = ServiceabilityPlatformModel.GetStoreRulesApiResponse().validate(
2088
+ responseData,
2089
+ { abortEarly: false, allowUnknown: true }
2090
+ );
2091
+
2092
+ if (res_error) {
2093
+ if (this.config.options.strictResponseCheck === true) {
2094
+ return Promise.reject(new FDKResponseValidationError(res_error));
2095
+ } else {
2096
+ Logger({
2097
+ level: "WARN",
2098
+ message: `Response Validation Warnings for platform > Serviceability > getStoreRules \n ${res_error}`,
2099
+ });
2100
+ }
2101
+ }
2102
+
2103
+ return response;
2104
+ }
2105
+
2106
+ /**
2107
+ * @param {ServiceabilityPlatformApplicationValidator.GetZoneParam} arg - Arg object
2108
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2109
+ * @param {import("../PlatformAPIClient").Options} - Options
2110
+ * @returns {Promise<ServiceabilityPlatformModel.GetZoneByIdSchema>} -
2111
+ * Success response
2112
+ * @name getZone
2113
+ * @summary: Get zone details
2114
+ * @description: Retrieves a single delivery zone - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZone/).
2115
+ */
2116
+ async getZone(
2117
+ { zoneId, requestHeaders } = { requestHeaders: {} },
2118
+ { responseHeaders } = { responseHeaders: false }
2119
+ ) {
2120
+ const {
2121
+ error,
2122
+ } = ServiceabilityPlatformApplicationValidator.getZone().validate(
2123
+ {
2124
+ zoneId,
2125
+ },
2126
+ { abortEarly: false, allowUnknown: true }
2127
+ );
2128
+ if (error) {
2129
+ return Promise.reject(new FDKClientValidationError(error));
2130
+ }
2131
+
2132
+ // Showing warrnings if extra unknown parameters are found
2133
+ const {
2134
+ error: warrning,
2135
+ } = ServiceabilityPlatformApplicationValidator.getZone().validate(
2136
+ {
2137
+ zoneId,
2138
+ },
2139
+ { abortEarly: false, allowUnknown: false }
2140
+ );
2141
+ if (warrning) {
2142
+ Logger({
2143
+ level: "WARN",
2144
+ message: `Parameter Validation warrnings for platform > Serviceability > getZone \n ${warrning}`,
2145
+ });
2146
+ }
2147
+
2148
+ const query_params = {};
2149
+
2150
+ const response = await PlatformAPIClient.execute(
2151
+ this.config,
2152
+ "get",
2153
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/${zoneId}`,
2154
+ query_params,
2155
+ undefined,
2156
+ requestHeaders,
2157
+ { responseHeaders }
2158
+ );
2159
+
2160
+ let responseData = response;
2161
+ if (responseHeaders) {
2162
+ responseData = response[0];
2163
+ }
2164
+
2165
+ const {
2166
+ error: res_error,
2167
+ } = ServiceabilityPlatformModel.GetZoneByIdSchema().validate(responseData, {
2168
+ abortEarly: false,
2169
+ allowUnknown: true,
2170
+ });
2171
+
2172
+ if (res_error) {
2173
+ if (this.config.options.strictResponseCheck === true) {
2174
+ return Promise.reject(new FDKResponseValidationError(res_error));
2175
+ } else {
2176
+ Logger({
2177
+ level: "WARN",
2178
+ message: `Response Validation Warnings for platform > Serviceability > getZone \n ${res_error}`,
2179
+ });
2180
+ }
2181
+ }
2182
+
2183
+ return response;
2184
+ }
2185
+
2186
+ /**
2187
+ * @param {ServiceabilityPlatformApplicationValidator.GetZoneDetailsParam} arg
2188
+ * - Arg object
2189
+ *
2190
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2191
+ * @param {import("../PlatformAPIClient").Options} - Options
2192
+ * @returns {Promise<ServiceabilityPlatformModel.GetZoneByIdDetailsSchema>}
2193
+ * - Success response
2194
+ *
2195
+ * @name getZoneDetails
2196
+ * @summary: Get details of a delivery zone
2197
+ * @description: Get details of a single delivery zone along with product, store and region details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZoneDetails/).
2198
+ */
2199
+ async getZoneDetails(
2200
+ { zoneId, requestHeaders } = { requestHeaders: {} },
2201
+ { responseHeaders } = { responseHeaders: false }
2202
+ ) {
2203
+ const {
2204
+ error,
2205
+ } = ServiceabilityPlatformApplicationValidator.getZoneDetails().validate(
2206
+ {
2207
+ zoneId,
2208
+ },
2209
+ { abortEarly: false, allowUnknown: true }
2210
+ );
2211
+ if (error) {
2212
+ return Promise.reject(new FDKClientValidationError(error));
2213
+ }
2214
+
2215
+ // Showing warrnings if extra unknown parameters are found
2216
+ const {
2217
+ error: warrning,
2218
+ } = ServiceabilityPlatformApplicationValidator.getZoneDetails().validate(
2219
+ {
2220
+ zoneId,
2221
+ },
2222
+ { abortEarly: false, allowUnknown: false }
2223
+ );
2224
+ if (warrning) {
2225
+ Logger({
2226
+ level: "WARN",
2227
+ message: `Parameter Validation warrnings for platform > Serviceability > getZoneDetails \n ${warrning}`,
2228
+ });
2229
+ }
2230
+
2231
+ const query_params = {};
2232
+
2233
+ const response = await PlatformAPIClient.execute(
2234
+ this.config,
2235
+ "get",
2236
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/${zoneId}/details`,
2237
+ query_params,
2238
+ undefined,
2239
+ requestHeaders,
2240
+ { responseHeaders }
2241
+ );
2242
+
2243
+ let responseData = response;
2244
+ if (responseHeaders) {
2245
+ responseData = response[0];
2246
+ }
2247
+
2248
+ const {
2249
+ error: res_error,
2250
+ } = ServiceabilityPlatformModel.GetZoneByIdDetailsSchema().validate(
2251
+ responseData,
2252
+ { abortEarly: false, allowUnknown: true }
2253
+ );
2254
+
2255
+ if (res_error) {
2256
+ if (this.config.options.strictResponseCheck === true) {
2257
+ return Promise.reject(new FDKResponseValidationError(res_error));
2258
+ } else {
2259
+ Logger({
2260
+ level: "WARN",
2261
+ message: `Response Validation Warnings for platform > Serviceability > getZoneDetails \n ${res_error}`,
2262
+ });
2263
+ }
2264
+ }
2265
+
2266
+ return response;
2267
+ }
2268
+
2269
+ /**
2270
+ * @param {ServiceabilityPlatformApplicationValidator.GetZonesParam} arg - Arg object
2271
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2272
+ * @param {import("../PlatformAPIClient").Options} - Options
2273
+ * @returns {Promise<ServiceabilityPlatformModel.ListViewResponseV2>} -
2274
+ * Success response
2275
+ * @name getZones
2276
+ * @summary: Get zones
2277
+ * @description: Retrieves a list of delivery zones. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZones/).
2278
+ */
2279
+ async getZones(
2280
+ {
2281
+ stage,
2282
+ type,
2283
+ accessLevel,
2284
+ status,
2285
+ pageSize,
2286
+ pageNo,
2287
+ isActive,
2288
+ q,
2289
+ countryIsoCode,
2290
+ pincode,
2291
+ state,
2292
+ city,
2293
+ sector,
2294
+ requestHeaders,
2295
+ } = { requestHeaders: {} },
2296
+ { responseHeaders } = { responseHeaders: false }
2297
+ ) {
2298
+ const {
2299
+ error,
2300
+ } = ServiceabilityPlatformApplicationValidator.getZones().validate(
2301
+ {
2302
+ stage,
2303
+ type,
2304
+ accessLevel,
2305
+ status,
2306
+ pageSize,
2307
+ pageNo,
2308
+ isActive,
2309
+ q,
2310
+ countryIsoCode,
2311
+ pincode,
2312
+ state,
2313
+ city,
2314
+ sector,
2315
+ },
2316
+ { abortEarly: false, allowUnknown: true }
2317
+ );
2318
+ if (error) {
2319
+ return Promise.reject(new FDKClientValidationError(error));
2320
+ }
2321
+
2322
+ // Showing warrnings if extra unknown parameters are found
2323
+ const {
2324
+ error: warrning,
2325
+ } = ServiceabilityPlatformApplicationValidator.getZones().validate(
2326
+ {
2327
+ stage,
2328
+ type,
2329
+ accessLevel,
2330
+ status,
2331
+ pageSize,
2332
+ pageNo,
2333
+ isActive,
2334
+ q,
2335
+ countryIsoCode,
2336
+ pincode,
2337
+ state,
2338
+ city,
2339
+ sector,
2340
+ },
2341
+ { abortEarly: false, allowUnknown: false }
2342
+ );
2343
+ if (warrning) {
2344
+ Logger({
2345
+ level: "WARN",
2346
+ message: `Parameter Validation warrnings for platform > Serviceability > getZones \n ${warrning}`,
2347
+ });
2348
+ }
2349
+
2350
+ const query_params = {};
2351
+ query_params["stage"] = stage;
2352
+ query_params["type"] = type;
2353
+ query_params["access_level"] = accessLevel;
2354
+ query_params["status"] = status;
2355
+ query_params["page_size"] = pageSize;
2356
+ query_params["page_no"] = pageNo;
2357
+ query_params["is_active"] = isActive;
2358
+ query_params["q"] = q;
2359
+ query_params["country_iso_code"] = countryIsoCode;
2360
+ query_params["pincode"] = pincode;
2361
+ query_params["state"] = state;
2362
+ query_params["city"] = city;
2363
+ query_params["sector"] = sector;
2364
+
2365
+ const response = await PlatformAPIClient.execute(
2366
+ this.config,
2367
+ "get",
2368
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones`,
2369
+ query_params,
2370
+ undefined,
2371
+ requestHeaders,
2372
+ { responseHeaders }
2373
+ );
2374
+
2375
+ let responseData = response;
2376
+ if (responseHeaders) {
2377
+ responseData = response[0];
2378
+ }
2379
+
2380
+ const {
2381
+ error: res_error,
2382
+ } = ServiceabilityPlatformModel.ListViewResponseV2().validate(
2383
+ responseData,
2384
+ { abortEarly: false, allowUnknown: true }
2385
+ );
2386
+
2387
+ if (res_error) {
2388
+ if (this.config.options.strictResponseCheck === true) {
2389
+ return Promise.reject(new FDKResponseValidationError(res_error));
2390
+ } else {
2391
+ Logger({
2392
+ level: "WARN",
2393
+ message: `Response Validation Warnings for platform > Serviceability > getZones \n ${res_error}`,
2394
+ });
2395
+ }
2396
+ }
2397
+
2398
+ return response;
2399
+ }
2400
+
2401
+ /**
2402
+ * @param {ServiceabilityPlatformApplicationValidator.InsertApplicationConfigParam} arg
2403
+ * - Arg object
2404
+ *
2405
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2406
+ * @param {import("../PlatformAPIClient").Options} - Options
2407
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleConfigData>} -
2408
+ * Success response
2409
+ * @name insertApplicationConfig
2410
+ * @summary: Create store rule configuration
2411
+ * @description: Creates a order routing setup for an application, which involves updating sorting settings or rule priorities. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/insertApplicationConfig/).
2412
+ */
2413
+ async insertApplicationConfig(
2414
+ { body, requestHeaders } = { requestHeaders: {} },
2415
+ { responseHeaders } = { responseHeaders: false }
2416
+ ) {
2417
+ const {
2418
+ error,
2419
+ } = ServiceabilityPlatformApplicationValidator.insertApplicationConfig().validate(
2420
+ {
2421
+ body,
2422
+ },
2423
+ { abortEarly: false, allowUnknown: true }
2424
+ );
2425
+ if (error) {
2426
+ return Promise.reject(new FDKClientValidationError(error));
2427
+ }
2428
+
2429
+ // Showing warrnings if extra unknown parameters are found
2430
+ const {
2431
+ error: warrning,
2432
+ } = ServiceabilityPlatformApplicationValidator.insertApplicationConfig().validate(
2433
+ {
2434
+ body,
2435
+ },
2436
+ { abortEarly: false, allowUnknown: false }
2437
+ );
2438
+ if (warrning) {
2439
+ Logger({
2440
+ level: "WARN",
2441
+ message: `Parameter Validation warrnings for platform > Serviceability > insertApplicationConfig \n ${warrning}`,
2442
+ });
2443
+ }
2444
+
2445
+ const query_params = {};
2446
+
2447
+ const response = await PlatformAPIClient.execute(
2448
+ this.config,
2449
+ "post",
2450
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/configuration`,
2451
+ query_params,
2452
+ body,
2453
+ requestHeaders,
2454
+ { responseHeaders }
2455
+ );
2456
+
2457
+ let responseData = response;
2458
+ if (responseHeaders) {
2459
+ responseData = response[0];
2460
+ }
2461
+
2462
+ const {
2463
+ error: res_error,
2464
+ } = ServiceabilityPlatformModel.StoreRuleConfigData().validate(
2465
+ responseData,
2466
+ { abortEarly: false, allowUnknown: true }
2467
+ );
2468
+
2469
+ if (res_error) {
2470
+ if (this.config.options.strictResponseCheck === true) {
2471
+ return Promise.reject(new FDKResponseValidationError(res_error));
2472
+ } else {
2473
+ Logger({
2474
+ level: "WARN",
2475
+ message: `Response Validation Warnings for platform > Serviceability > insertApplicationConfig \n ${res_error}`,
2476
+ });
2477
+ }
2478
+ }
2479
+
2480
+ return response;
2481
+ }
2482
+
2483
+ /**
2484
+ * @param {ServiceabilityPlatformApplicationValidator.PatchApplicationConfigurationParam} arg
2485
+ * - Arg object
2486
+ *
2487
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2488
+ * @param {import("../PlatformAPIClient").Options} - Options
2489
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfigPatchResponse>}
2490
+ * - Success response
2491
+ *
2492
+ * @name patchApplicationConfiguration
2493
+ * @summary: To patch any config which can be applied to application.
2494
+ * @description: Apply configs to application. Supports patching for buybox rule config and promise config. For reference, refer to examples - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/patchApplicationConfiguration/).
2495
+ */
2496
+ async patchApplicationConfiguration(
2497
+ { body, requestHeaders } = { requestHeaders: {} },
2498
+ { responseHeaders } = { responseHeaders: false }
2499
+ ) {
2500
+ const {
2501
+ error,
2502
+ } = ServiceabilityPlatformApplicationValidator.patchApplicationConfiguration().validate(
2503
+ {
2504
+ body,
2505
+ },
2506
+ { abortEarly: false, allowUnknown: true }
2507
+ );
2508
+ if (error) {
2509
+ return Promise.reject(new FDKClientValidationError(error));
2510
+ }
2511
+
2512
+ // Showing warrnings if extra unknown parameters are found
2513
+ const {
2514
+ error: warrning,
2515
+ } = ServiceabilityPlatformApplicationValidator.patchApplicationConfiguration().validate(
2516
+ {
2517
+ body,
2518
+ },
2519
+ { abortEarly: false, allowUnknown: false }
2520
+ );
2521
+ if (warrning) {
2522
+ Logger({
2523
+ level: "WARN",
2524
+ message: `Parameter Validation warrnings for platform > Serviceability > patchApplicationConfiguration \n ${warrning}`,
2525
+ });
2526
+ }
2527
+
2528
+ const query_params = {};
2529
+
2530
+ const response = await PlatformAPIClient.execute(
2531
+ this.config,
2532
+ "patch",
2533
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
2534
+ query_params,
2535
+ body,
2536
+ requestHeaders,
2537
+ { responseHeaders }
2538
+ );
2539
+
2540
+ let responseData = response;
2541
+ if (responseHeaders) {
2542
+ responseData = response[0];
2543
+ }
2544
+
2545
+ const {
2546
+ error: res_error,
2547
+ } = ServiceabilityPlatformModel.ApplicationConfigPatchResponse().validate(
2548
+ responseData,
2549
+ { abortEarly: false, allowUnknown: true }
2550
+ );
2551
+
2552
+ if (res_error) {
2553
+ if (this.config.options.strictResponseCheck === true) {
2554
+ return Promise.reject(new FDKResponseValidationError(res_error));
2555
+ } else {
2556
+ Logger({
2557
+ level: "WARN",
2558
+ message: `Response Validation Warnings for platform > Serviceability > patchApplicationConfiguration \n ${res_error}`,
2559
+ });
2560
+ }
2561
+ }
2562
+
2563
+ return response;
2564
+ }
2565
+
2566
+ /**
2567
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateApplicationConfigurationParam} arg
2568
+ * - Arg object
2569
+ *
2570
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2571
+ * @param {import("../PlatformAPIClient").Options} - Options
2572
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfigPutResponse>}
2573
+ * - Success response
2574
+ *
2575
+ * @name updateApplicationConfiguration
2576
+ * @summary: Apply configuration to an application
2577
+ * @description: Apply configuration to application to set DP rules and Zone configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateApplicationConfiguration/).
856
2578
  */
857
- async insertApplicationConfig(
2579
+ async updateApplicationConfiguration(
858
2580
  { body, requestHeaders } = { requestHeaders: {} },
859
2581
  { responseHeaders } = { responseHeaders: false }
860
2582
  ) {
861
2583
  const {
862
2584
  error,
863
- } = ServiceabilityPlatformApplicationValidator.insertApplicationConfig().validate(
2585
+ } = ServiceabilityPlatformApplicationValidator.updateApplicationConfiguration().validate(
864
2586
  {
865
2587
  body,
866
2588
  },
@@ -873,7 +2595,7 @@ class Serviceability {
873
2595
  // Showing warrnings if extra unknown parameters are found
874
2596
  const {
875
2597
  error: warrning,
876
- } = ServiceabilityPlatformApplicationValidator.insertApplicationConfig().validate(
2598
+ } = ServiceabilityPlatformApplicationValidator.updateApplicationConfiguration().validate(
877
2599
  {
878
2600
  body,
879
2601
  },
@@ -882,7 +2604,7 @@ class Serviceability {
882
2604
  if (warrning) {
883
2605
  Logger({
884
2606
  level: "WARN",
885
- message: `Parameter Validation warrnings for platform > Serviceability > insertApplicationConfig \n ${warrning}`,
2607
+ message: `Parameter Validation warrnings for platform > Serviceability > updateApplicationConfiguration \n ${warrning}`,
886
2608
  });
887
2609
  }
888
2610
 
@@ -890,8 +2612,8 @@ class Serviceability {
890
2612
 
891
2613
  const response = await PlatformAPIClient.execute(
892
2614
  this.config,
893
- "post",
894
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/configuration`,
2615
+ "put",
2616
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
895
2617
  query_params,
896
2618
  body,
897
2619
  requestHeaders,
@@ -905,7 +2627,7 @@ class Serviceability {
905
2627
 
906
2628
  const {
907
2629
  error: res_error,
908
- } = ServiceabilityPlatformModel.StoreRuleConfigData().validate(
2630
+ } = ServiceabilityPlatformModel.ApplicationConfigPutResponse().validate(
909
2631
  responseData,
910
2632
  { abortEarly: false, allowUnknown: true }
911
2633
  );
@@ -916,7 +2638,7 @@ class Serviceability {
916
2638
  } else {
917
2639
  Logger({
918
2640
  level: "WARN",
919
- message: `Response Validation Warnings for platform > Serviceability > insertApplicationConfig \n ${res_error}`,
2641
+ message: `Response Validation Warnings for platform > Serviceability > updateApplicationConfiguration \n ${res_error}`,
920
2642
  });
921
2643
  }
922
2644
  }
@@ -925,26 +2647,26 @@ class Serviceability {
925
2647
  }
926
2648
 
927
2649
  /**
928
- * @param {ServiceabilityPlatformApplicationValidator.PatchApplicationServiceabilitySelfShipmentParam} arg
2650
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateBulkGeoAreaParam} arg
929
2651
  * - Arg object
930
2652
  *
931
2653
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
932
2654
  * @param {import("../PlatformAPIClient").Options} - Options
933
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResult>}
934
- * - Success response
935
- *
936
- * @name patchApplicationServiceabilitySelfShipment
937
- * @summary: Update self ship configuration
938
- * @description: Updates self ship setup for an existing application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/patchApplicationServiceabilitySelfShipment/).
2655
+ * @returns {Promise<ServiceabilityPlatformModel.BulkGeoAreaResult>} -
2656
+ * Success response
2657
+ * @name updateBulkGeoArea
2658
+ * @summary: Update geoareas and their associated regions in bulk.
2659
+ * @description: Update geoarea details and their associated regions through a CSV file in bulk. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateBulkGeoArea/).
939
2660
  */
940
- async patchApplicationServiceabilitySelfShipment(
941
- { body, requestHeaders } = { requestHeaders: {} },
2661
+ async updateBulkGeoArea(
2662
+ { geoareaId, body, requestHeaders } = { requestHeaders: {} },
942
2663
  { responseHeaders } = { responseHeaders: false }
943
2664
  ) {
944
2665
  const {
945
2666
  error,
946
- } = ServiceabilityPlatformApplicationValidator.patchApplicationServiceabilitySelfShipment().validate(
2667
+ } = ServiceabilityPlatformApplicationValidator.updateBulkGeoArea().validate(
947
2668
  {
2669
+ geoareaId,
948
2670
  body,
949
2671
  },
950
2672
  { abortEarly: false, allowUnknown: true }
@@ -956,8 +2678,9 @@ class Serviceability {
956
2678
  // Showing warrnings if extra unknown parameters are found
957
2679
  const {
958
2680
  error: warrning,
959
- } = ServiceabilityPlatformApplicationValidator.patchApplicationServiceabilitySelfShipment().validate(
2681
+ } = ServiceabilityPlatformApplicationValidator.updateBulkGeoArea().validate(
960
2682
  {
2683
+ geoareaId,
961
2684
  body,
962
2685
  },
963
2686
  { abortEarly: false, allowUnknown: false }
@@ -965,7 +2688,7 @@ class Serviceability {
965
2688
  if (warrning) {
966
2689
  Logger({
967
2690
  level: "WARN",
968
- message: `Parameter Validation warrnings for platform > Serviceability > patchApplicationServiceabilitySelfShipment \n ${warrning}`,
2691
+ message: `Parameter Validation warrnings for platform > Serviceability > updateBulkGeoArea \n ${warrning}`,
969
2692
  });
970
2693
  }
971
2694
 
@@ -973,8 +2696,8 @@ class Serviceability {
973
2696
 
974
2697
  const response = await PlatformAPIClient.execute(
975
2698
  this.config,
976
- "patch",
977
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/selfship`,
2699
+ "put",
2700
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/geoareas/regions/bulk/${geoareaId}`,
978
2701
  query_params,
979
2702
  body,
980
2703
  requestHeaders,
@@ -988,10 +2711,10 @@ class Serviceability {
988
2711
 
989
2712
  const {
990
2713
  error: res_error,
991
- } = ServiceabilityPlatformModel.ApplicationSelfShipConfigResult().validate(
992
- responseData,
993
- { abortEarly: false, allowUnknown: true }
994
- );
2714
+ } = ServiceabilityPlatformModel.BulkGeoAreaResult().validate(responseData, {
2715
+ abortEarly: false,
2716
+ allowUnknown: true,
2717
+ });
995
2718
 
996
2719
  if (res_error) {
997
2720
  if (this.config.options.strictResponseCheck === true) {
@@ -999,7 +2722,7 @@ class Serviceability {
999
2722
  } else {
1000
2723
  Logger({
1001
2724
  level: "WARN",
1002
- message: `Response Validation Warnings for platform > Serviceability > patchApplicationServiceabilitySelfShipment \n ${res_error}`,
2725
+ message: `Response Validation Warnings for platform > Serviceability > updateBulkGeoArea \n ${res_error}`,
1003
2726
  });
1004
2727
  }
1005
2728
  }
@@ -1008,24 +2731,24 @@ class Serviceability {
1008
2731
  }
1009
2732
 
1010
2733
  /**
1011
- * @param {ServiceabilityPlatformApplicationValidator.UpdateApplicationConfigurationParam} arg
2734
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateCourierPartnerRulePriorityParam} arg
1012
2735
  * - Arg object
1013
2736
  *
1014
2737
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1015
2738
  * @param {import("../PlatformAPIClient").Options} - Options
1016
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfig>} -
2739
+ * @returns {Promise<ServiceabilityPlatformModel.RulePriorityResponse>} -
1017
2740
  * Success response
1018
- * @name updateApplicationConfiguration
1019
- * @summary: Update delivery configuration
1020
- * @description: Updates an existing delivery setup for an application, which involves updating sorting settings or rule priorities. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateApplicationConfiguration/).
2741
+ * @name updateCourierPartnerRulePriority
2742
+ * @summary: Update courier partner rule priority
2743
+ * @description: Updates a courier partner rule priority for a single application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierPartnerRulePriority/).
1021
2744
  */
1022
- async updateApplicationConfiguration(
2745
+ async updateCourierPartnerRulePriority(
1023
2746
  { body, requestHeaders } = { requestHeaders: {} },
1024
2747
  { responseHeaders } = { responseHeaders: false }
1025
2748
  ) {
1026
2749
  const {
1027
2750
  error,
1028
- } = ServiceabilityPlatformApplicationValidator.updateApplicationConfiguration().validate(
2751
+ } = ServiceabilityPlatformApplicationValidator.updateCourierPartnerRulePriority().validate(
1029
2752
  {
1030
2753
  body,
1031
2754
  },
@@ -1038,7 +2761,7 @@ class Serviceability {
1038
2761
  // Showing warrnings if extra unknown parameters are found
1039
2762
  const {
1040
2763
  error: warrning,
1041
- } = ServiceabilityPlatformApplicationValidator.updateApplicationConfiguration().validate(
2764
+ } = ServiceabilityPlatformApplicationValidator.updateCourierPartnerRulePriority().validate(
1042
2765
  {
1043
2766
  body,
1044
2767
  },
@@ -1047,7 +2770,7 @@ class Serviceability {
1047
2770
  if (warrning) {
1048
2771
  Logger({
1049
2772
  level: "WARN",
1050
- message: `Parameter Validation warrnings for platform > Serviceability > updateApplicationConfiguration \n ${warrning}`,
2773
+ message: `Parameter Validation warrnings for platform > Serviceability > updateCourierPartnerRulePriority \n ${warrning}`,
1051
2774
  });
1052
2775
  }
1053
2776
 
@@ -1056,7 +2779,7 @@ class Serviceability {
1056
2779
  const response = await PlatformAPIClient.execute(
1057
2780
  this.config,
1058
2781
  "put",
1059
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
2782
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/priority`,
1060
2783
  query_params,
1061
2784
  body,
1062
2785
  requestHeaders,
@@ -1070,10 +2793,10 @@ class Serviceability {
1070
2793
 
1071
2794
  const {
1072
2795
  error: res_error,
1073
- } = ServiceabilityPlatformModel.ApplicationConfig().validate(responseData, {
1074
- abortEarly: false,
1075
- allowUnknown: true,
1076
- });
2796
+ } = ServiceabilityPlatformModel.RulePriorityResponse().validate(
2797
+ responseData,
2798
+ { abortEarly: false, allowUnknown: true }
2799
+ );
1077
2800
 
1078
2801
  if (res_error) {
1079
2802
  if (this.config.options.strictResponseCheck === true) {
@@ -1081,7 +2804,7 @@ class Serviceability {
1081
2804
  } else {
1082
2805
  Logger({
1083
2806
  level: "WARN",
1084
- message: `Response Validation Warnings for platform > Serviceability > updateApplicationConfiguration \n ${res_error}`,
2807
+ message: `Response Validation Warnings for platform > Serviceability > updateCourierPartnerRulePriority \n ${res_error}`,
1085
2808
  });
1086
2809
  }
1087
2810
  }
@@ -1090,25 +2813,27 @@ class Serviceability {
1090
2813
  }
1091
2814
 
1092
2815
  /**
1093
- * @param {ServiceabilityPlatformApplicationValidator.UpdateCourierPartnerRulePriorityParam} arg
2816
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateCourierRuleParam} arg
1094
2817
  * - Arg object
1095
2818
  *
1096
2819
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1097
2820
  * @param {import("../PlatformAPIClient").Options} - Options
1098
- * @returns {Promise<ServiceabilityPlatformModel.RulePriorityResult>} -
1099
- * Success response
1100
- * @name updateCourierPartnerRulePriority
1101
- * @summary: Update courier partner rule priority
1102
- * @description: Updates a courier partner rule priority for a single application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierPartnerRulePriority/).
2821
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema>}
2822
+ * - Success response
2823
+ *
2824
+ * @name updateCourierRule
2825
+ * @summary: Update courier rule
2826
+ * @description: Updates an existing rule within the delivery configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierRule/).
1103
2827
  */
1104
- async updateCourierPartnerRulePriority(
1105
- { body, requestHeaders } = { requestHeaders: {} },
2828
+ async updateCourierRule(
2829
+ { ruleUid, body, requestHeaders } = { requestHeaders: {} },
1106
2830
  { responseHeaders } = { responseHeaders: false }
1107
2831
  ) {
1108
2832
  const {
1109
2833
  error,
1110
- } = ServiceabilityPlatformApplicationValidator.updateCourierPartnerRulePriority().validate(
2834
+ } = ServiceabilityPlatformApplicationValidator.updateCourierRule().validate(
1111
2835
  {
2836
+ ruleUid,
1112
2837
  body,
1113
2838
  },
1114
2839
  { abortEarly: false, allowUnknown: true }
@@ -1120,8 +2845,9 @@ class Serviceability {
1120
2845
  // Showing warrnings if extra unknown parameters are found
1121
2846
  const {
1122
2847
  error: warrning,
1123
- } = ServiceabilityPlatformApplicationValidator.updateCourierPartnerRulePriority().validate(
2848
+ } = ServiceabilityPlatformApplicationValidator.updateCourierRule().validate(
1124
2849
  {
2850
+ ruleUid,
1125
2851
  body,
1126
2852
  },
1127
2853
  { abortEarly: false, allowUnknown: false }
@@ -1129,7 +2855,7 @@ class Serviceability {
1129
2855
  if (warrning) {
1130
2856
  Logger({
1131
2857
  level: "WARN",
1132
- message: `Parameter Validation warrnings for platform > Serviceability > updateCourierPartnerRulePriority \n ${warrning}`,
2858
+ message: `Parameter Validation warrnings for platform > Serviceability > updateCourierRule \n ${warrning}`,
1133
2859
  });
1134
2860
  }
1135
2861
 
@@ -1138,7 +2864,7 @@ class Serviceability {
1138
2864
  const response = await PlatformAPIClient.execute(
1139
2865
  this.config,
1140
2866
  "put",
1141
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/priority`,
2867
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/${ruleUid}`,
1142
2868
  query_params,
1143
2869
  body,
1144
2870
  requestHeaders,
@@ -1152,7 +2878,7 @@ class Serviceability {
1152
2878
 
1153
2879
  const {
1154
2880
  error: res_error,
1155
- } = ServiceabilityPlatformModel.RulePriorityResult().validate(
2881
+ } = ServiceabilityPlatformModel.CourierPartnerRuleResponseSchema().validate(
1156
2882
  responseData,
1157
2883
  { abortEarly: false, allowUnknown: true }
1158
2884
  );
@@ -1163,7 +2889,7 @@ class Serviceability {
1163
2889
  } else {
1164
2890
  Logger({
1165
2891
  level: "WARN",
1166
- message: `Response Validation Warnings for platform > Serviceability > updateCourierPartnerRulePriority \n ${res_error}`,
2892
+ message: `Response Validation Warnings for platform > Serviceability > updateCourierRule \n ${res_error}`,
1167
2893
  });
1168
2894
  }
1169
2895
  }
@@ -1172,27 +2898,27 @@ class Serviceability {
1172
2898
  }
1173
2899
 
1174
2900
  /**
1175
- * @param {ServiceabilityPlatformApplicationValidator.UpdateCourierRuleParam} arg
2901
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateGeoAreaParam} arg
1176
2902
  * - Arg object
1177
2903
  *
1178
2904
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1179
2905
  * @param {import("../PlatformAPIClient").Options} - Options
1180
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRuleResult>}
1181
- * - Success response
1182
- *
1183
- * @name updateCourierRule
1184
- * @summary: Update courier rule
1185
- * @description: Updates an existing rule within the delivery configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierRule/).
2906
+ * @returns {Promise<ServiceabilityPlatformModel.GeoAreaPutResponseBody>} -
2907
+ * Success response
2908
+ * @name updateGeoArea
2909
+ * @summary: Update the details of existing GeoArea
2910
+ * @description: Updates the GeoArea with a new name, regions, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateGeoArea/).
1186
2911
  */
1187
- async updateCourierRule(
1188
- { ruleId, body, requestHeaders } = { requestHeaders: {} },
2912
+ async updateGeoArea(
2913
+ { geoareaId, body, requestHeaders } = { requestHeaders: {} },
1189
2914
  { responseHeaders } = { responseHeaders: false }
1190
2915
  ) {
1191
2916
  const {
1192
2917
  error,
1193
- } = ServiceabilityPlatformApplicationValidator.updateCourierRule().validate(
2918
+ } = ServiceabilityPlatformApplicationValidator.updateGeoArea().validate(
1194
2919
  {
1195
- ruleId,
2920
+ geoareaId,
2921
+
1196
2922
  body,
1197
2923
  },
1198
2924
  { abortEarly: false, allowUnknown: true }
@@ -1204,9 +2930,10 @@ class Serviceability {
1204
2930
  // Showing warrnings if extra unknown parameters are found
1205
2931
  const {
1206
2932
  error: warrning,
1207
- } = ServiceabilityPlatformApplicationValidator.updateCourierRule().validate(
2933
+ } = ServiceabilityPlatformApplicationValidator.updateGeoArea().validate(
1208
2934
  {
1209
- ruleId,
2935
+ geoareaId,
2936
+
1210
2937
  body,
1211
2938
  },
1212
2939
  { abortEarly: false, allowUnknown: false }
@@ -1214,7 +2941,7 @@ class Serviceability {
1214
2941
  if (warrning) {
1215
2942
  Logger({
1216
2943
  level: "WARN",
1217
- message: `Parameter Validation warrnings for platform > Serviceability > updateCourierRule \n ${warrning}`,
2944
+ message: `Parameter Validation warrnings for platform > Serviceability > updateGeoArea \n ${warrning}`,
1218
2945
  });
1219
2946
  }
1220
2947
 
@@ -1223,7 +2950,7 @@ class Serviceability {
1223
2950
  const response = await PlatformAPIClient.execute(
1224
2951
  this.config,
1225
2952
  "put",
1226
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/${ruleId}`,
2953
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/geoareas/${geoareaId}`,
1227
2954
  query_params,
1228
2955
  body,
1229
2956
  requestHeaders,
@@ -1237,7 +2964,7 @@ class Serviceability {
1237
2964
 
1238
2965
  const {
1239
2966
  error: res_error,
1240
- } = ServiceabilityPlatformModel.CourierPartnerRuleResult().validate(
2967
+ } = ServiceabilityPlatformModel.GeoAreaPutResponseBody().validate(
1241
2968
  responseData,
1242
2969
  { abortEarly: false, allowUnknown: true }
1243
2970
  );
@@ -1248,7 +2975,7 @@ class Serviceability {
1248
2975
  } else {
1249
2976
  Logger({
1250
2977
  level: "WARN",
1251
- message: `Response Validation Warnings for platform > Serviceability > updateCourierRule \n ${res_error}`,
2978
+ message: `Response Validation Warnings for platform > Serviceability > updateGeoArea \n ${res_error}`,
1252
2979
  });
1253
2980
  }
1254
2981
  }
@@ -1262,7 +2989,7 @@ class Serviceability {
1262
2989
  *
1263
2990
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1264
2991
  * @param {import("../PlatformAPIClient").Options} - Options
1265
- * @returns {Promise<ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResultData>}
2992
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponseData>}
1266
2993
  * - Success response
1267
2994
  *
1268
2995
  * @name updatePincodeAuditHistory
@@ -1270,7 +2997,7 @@ class Serviceability {
1270
2997
  * @description: Retrieves the history of changes made to cash on delivery settings for pincodes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeAuditHistory/).
1271
2998
  */
1272
2999
  async updatePincodeAuditHistory(
1273
- { body, pageNumber, pageSize, requestHeaders } = { requestHeaders: {} },
3000
+ { body, requestHeaders } = { requestHeaders: {} },
1274
3001
  { responseHeaders } = { responseHeaders: false }
1275
3002
  ) {
1276
3003
  const {
@@ -1278,8 +3005,6 @@ class Serviceability {
1278
3005
  } = ServiceabilityPlatformApplicationValidator.updatePincodeAuditHistory().validate(
1279
3006
  {
1280
3007
  body,
1281
- pageNumber,
1282
- pageSize,
1283
3008
  },
1284
3009
  { abortEarly: false, allowUnknown: true }
1285
3010
  );
@@ -1293,8 +3018,6 @@ class Serviceability {
1293
3018
  } = ServiceabilityPlatformApplicationValidator.updatePincodeAuditHistory().validate(
1294
3019
  {
1295
3020
  body,
1296
- pageNumber,
1297
- pageSize,
1298
3021
  },
1299
3022
  { abortEarly: false, allowUnknown: false }
1300
3023
  );
@@ -1306,8 +3029,6 @@ class Serviceability {
1306
3029
  }
1307
3030
 
1308
3031
  const query_params = {};
1309
- query_params["page_number"] = pageNumber;
1310
- query_params["page_size"] = pageSize;
1311
3032
 
1312
3033
  const response = await PlatformAPIClient.execute(
1313
3034
  this.config,
@@ -1326,7 +3047,7 @@ class Serviceability {
1326
3047
 
1327
3048
  const {
1328
3049
  error: res_error,
1329
- } = ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResultData().validate(
3050
+ } = ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponseData().validate(
1330
3051
  responseData,
1331
3052
  { abortEarly: false, allowUnknown: true }
1332
3053
  );
@@ -1351,8 +3072,9 @@ class Serviceability {
1351
3072
  *
1352
3073
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1353
3074
  * @param {import("../PlatformAPIClient").Options} - Options
1354
- * @returns {Promise<ServiceabilityPlatformModel.PincodeBulkViewResult>} -
1355
- * Success response
3075
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeBulkViewResponse>}
3076
+ * - Success response
3077
+ *
1356
3078
  * @name updatePincodeBulkView
1357
3079
  * @summary: Bulk update pincode COD support
1358
3080
  * @description: Updates the cash on delivery settings for multiple specified pin codes simultaneously. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeBulkView/).
@@ -1408,7 +3130,7 @@ class Serviceability {
1408
3130
 
1409
3131
  const {
1410
3132
  error: res_error,
1411
- } = ServiceabilityPlatformModel.PincodeBulkViewResult().validate(
3133
+ } = ServiceabilityPlatformModel.PincodeBulkViewResponse().validate(
1412
3134
  responseData,
1413
3135
  { abortEarly: false, allowUnknown: true }
1414
3136
  );
@@ -1433,7 +3155,7 @@ class Serviceability {
1433
3155
  *
1434
3156
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1435
3157
  * @param {import("../PlatformAPIClient").Options} - Options
1436
- * @returns {Promise<ServiceabilityPlatformModel.PincodeCodStatusListingResult>}
3158
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeCodStatusListingResponse>}
1437
3159
  * - Success response
1438
3160
  *
1439
3161
  * @name updatePincodeCoDListing
@@ -1441,7 +3163,7 @@ class Serviceability {
1441
3163
  * @description: Retrieves a list of pincodes along with the count based on whether cash on delivery settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeCoDListing/).
1442
3164
  */
1443
3165
  async updatePincodeCoDListing(
1444
- { body, pageNumber, pageSize, requestHeaders } = { requestHeaders: {} },
3166
+ { body, requestHeaders } = { requestHeaders: {} },
1445
3167
  { responseHeaders } = { responseHeaders: false }
1446
3168
  ) {
1447
3169
  const {
@@ -1449,8 +3171,6 @@ class Serviceability {
1449
3171
  } = ServiceabilityPlatformApplicationValidator.updatePincodeCoDListing().validate(
1450
3172
  {
1451
3173
  body,
1452
- pageNumber,
1453
- pageSize,
1454
3174
  },
1455
3175
  { abortEarly: false, allowUnknown: true }
1456
3176
  );
@@ -1464,8 +3184,6 @@ class Serviceability {
1464
3184
  } = ServiceabilityPlatformApplicationValidator.updatePincodeCoDListing().validate(
1465
3185
  {
1466
3186
  body,
1467
- pageNumber,
1468
- pageSize,
1469
3187
  },
1470
3188
  { abortEarly: false, allowUnknown: false }
1471
3189
  );
@@ -1477,8 +3195,6 @@ class Serviceability {
1477
3195
  }
1478
3196
 
1479
3197
  const query_params = {};
1480
- query_params["page_number"] = pageNumber;
1481
- query_params["page_size"] = pageSize;
1482
3198
 
1483
3199
  const response = await PlatformAPIClient.execute(
1484
3200
  this.config,
@@ -1497,7 +3213,7 @@ class Serviceability {
1497
3213
 
1498
3214
  const {
1499
3215
  error: res_error,
1500
- } = ServiceabilityPlatformModel.PincodeCodStatusListingResult().validate(
3216
+ } = ServiceabilityPlatformModel.PincodeCodStatusListingResponse().validate(
1501
3217
  responseData,
1502
3218
  { abortEarly: false, allowUnknown: true }
1503
3219
  );
@@ -1522,7 +3238,8 @@ class Serviceability {
1522
3238
  *
1523
3239
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1524
3240
  * @param {import("../PlatformAPIClient").Options} - Options
1525
- * @returns {Promise<ServiceabilityPlatformModel.PincodeMOPResult>} - Success response
3241
+ * @returns {Promise<ServiceabilityPlatformModel.PincodeMOPresponse>} -
3242
+ * Success response
1526
3243
  * @name updatePincodeMopView
1527
3244
  * @summary: Update pincode COD support
1528
3245
  * @description: Modify and update views related to pincode MOP (Mode of Payment). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeMopView/).
@@ -1578,10 +3295,10 @@ class Serviceability {
1578
3295
 
1579
3296
  const {
1580
3297
  error: res_error,
1581
- } = ServiceabilityPlatformModel.PincodeMOPResult().validate(responseData, {
1582
- abortEarly: false,
1583
- allowUnknown: true,
1584
- });
3298
+ } = ServiceabilityPlatformModel.PincodeMOPresponse().validate(
3299
+ responseData,
3300
+ { abortEarly: false, allowUnknown: true }
3301
+ );
1585
3302
 
1586
3303
  if (res_error) {
1587
3304
  if (this.config.options.strictResponseCheck === true) {
@@ -1597,13 +3314,95 @@ class Serviceability {
1597
3314
  return response;
1598
3315
  }
1599
3316
 
3317
+ /**
3318
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateStoreRulePriorityParam} arg
3319
+ * - Arg object
3320
+ *
3321
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3322
+ * @param {import("../PlatformAPIClient").Options} - Options
3323
+ * @returns {Promise<ServiceabilityPlatformModel.RulePriorityResponse>} -
3324
+ * Success response
3325
+ * @name updateStoreRulePriority
3326
+ * @summary: Update Store Rule priority
3327
+ * @description: Update Store Rule priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateStoreRulePriority/).
3328
+ */
3329
+ async updateStoreRulePriority(
3330
+ { body, requestHeaders } = { requestHeaders: {} },
3331
+ { responseHeaders } = { responseHeaders: false }
3332
+ ) {
3333
+ const {
3334
+ error,
3335
+ } = ServiceabilityPlatformApplicationValidator.updateStoreRulePriority().validate(
3336
+ {
3337
+ body,
3338
+ },
3339
+ { abortEarly: false, allowUnknown: true }
3340
+ );
3341
+ if (error) {
3342
+ return Promise.reject(new FDKClientValidationError(error));
3343
+ }
3344
+
3345
+ // Showing warrnings if extra unknown parameters are found
3346
+ const {
3347
+ error: warrning,
3348
+ } = ServiceabilityPlatformApplicationValidator.updateStoreRulePriority().validate(
3349
+ {
3350
+ body,
3351
+ },
3352
+ { abortEarly: false, allowUnknown: false }
3353
+ );
3354
+ if (warrning) {
3355
+ Logger({
3356
+ level: "WARN",
3357
+ message: `Parameter Validation warrnings for platform > Serviceability > updateStoreRulePriority \n ${warrning}`,
3358
+ });
3359
+ }
3360
+
3361
+ const query_params = {};
3362
+
3363
+ const response = await PlatformAPIClient.execute(
3364
+ this.config,
3365
+ "put",
3366
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules/priority`,
3367
+ query_params,
3368
+ body,
3369
+ requestHeaders,
3370
+ { responseHeaders }
3371
+ );
3372
+
3373
+ let responseData = response;
3374
+ if (responseHeaders) {
3375
+ responseData = response[0];
3376
+ }
3377
+
3378
+ const {
3379
+ error: res_error,
3380
+ } = ServiceabilityPlatformModel.RulePriorityResponse().validate(
3381
+ responseData,
3382
+ { abortEarly: false, allowUnknown: true }
3383
+ );
3384
+
3385
+ if (res_error) {
3386
+ if (this.config.options.strictResponseCheck === true) {
3387
+ return Promise.reject(new FDKResponseValidationError(res_error));
3388
+ } else {
3389
+ Logger({
3390
+ level: "WARN",
3391
+ message: `Response Validation Warnings for platform > Serviceability > updateStoreRulePriority \n ${res_error}`,
3392
+ });
3393
+ }
3394
+ }
3395
+
3396
+ return response;
3397
+ }
3398
+
1600
3399
  /**
1601
3400
  * @param {ServiceabilityPlatformApplicationValidator.UpdateStoreRulesParam} arg
1602
3401
  * - Arg object
1603
3402
  *
1604
3403
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1605
3404
  * @param {import("../PlatformAPIClient").Options} - Options
1606
- * @returns {Promise<ServiceabilityPlatformModel.StoreRuleUpdateResultSchema>}
3405
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleUpdateResponseSchema>}
1607
3406
  * - Success response
1608
3407
  *
1609
3408
  * @name updateStoreRules
@@ -1663,7 +3462,7 @@ class Serviceability {
1663
3462
 
1664
3463
  const {
1665
3464
  error: res_error,
1666
- } = ServiceabilityPlatformModel.StoreRuleUpdateResultSchema().validate(
3465
+ } = ServiceabilityPlatformModel.StoreRuleUpdateResponseSchema().validate(
1667
3466
  responseData,
1668
3467
  { abortEarly: false, allowUnknown: true }
1669
3468
  );
@@ -1763,6 +3562,93 @@ class Serviceability {
1763
3562
 
1764
3563
  return response;
1765
3564
  }
3565
+
3566
+ /**
3567
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateZoneParam} arg
3568
+ * - Arg object
3569
+ *
3570
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3571
+ * @param {import("../PlatformAPIClient").Options} - Options
3572
+ * @returns {Promise<ServiceabilityPlatformModel.ZoneUpdateSuccessResponse>}
3573
+ * - Success response
3574
+ *
3575
+ * @name updateZone
3576
+ * @summary: Update details of a Zone to enable or disable.
3577
+ * @description: Enable or Disable a Zone under that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateZone/).
3578
+ */
3579
+ async updateZone(
3580
+ { zoneId, body, requestHeaders } = { requestHeaders: {} },
3581
+ { responseHeaders } = { responseHeaders: false }
3582
+ ) {
3583
+ const {
3584
+ error,
3585
+ } = ServiceabilityPlatformApplicationValidator.updateZone().validate(
3586
+ {
3587
+ zoneId,
3588
+
3589
+ body,
3590
+ },
3591
+ { abortEarly: false, allowUnknown: true }
3592
+ );
3593
+ if (error) {
3594
+ return Promise.reject(new FDKClientValidationError(error));
3595
+ }
3596
+
3597
+ // Showing warrnings if extra unknown parameters are found
3598
+ const {
3599
+ error: warrning,
3600
+ } = ServiceabilityPlatformApplicationValidator.updateZone().validate(
3601
+ {
3602
+ zoneId,
3603
+
3604
+ body,
3605
+ },
3606
+ { abortEarly: false, allowUnknown: false }
3607
+ );
3608
+ if (warrning) {
3609
+ Logger({
3610
+ level: "WARN",
3611
+ message: `Parameter Validation warrnings for platform > Serviceability > updateZone \n ${warrning}`,
3612
+ });
3613
+ }
3614
+
3615
+ const query_params = {};
3616
+
3617
+ const response = await PlatformAPIClient.execute(
3618
+ this.config,
3619
+ "patch",
3620
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/application/${this.applicationId}/zones/${zoneId}`,
3621
+ query_params,
3622
+ body,
3623
+ requestHeaders,
3624
+ { responseHeaders }
3625
+ );
3626
+
3627
+ let responseData = response;
3628
+ if (responseHeaders) {
3629
+ responseData = response[0];
3630
+ }
3631
+
3632
+ const {
3633
+ error: res_error,
3634
+ } = ServiceabilityPlatformModel.ZoneUpdateSuccessResponse().validate(
3635
+ responseData,
3636
+ { abortEarly: false, allowUnknown: true }
3637
+ );
3638
+
3639
+ if (res_error) {
3640
+ if (this.config.options.strictResponseCheck === true) {
3641
+ return Promise.reject(new FDKResponseValidationError(res_error));
3642
+ } else {
3643
+ Logger({
3644
+ level: "WARN",
3645
+ message: `Response Validation Warnings for platform > Serviceability > updateZone \n ${res_error}`,
3646
+ });
3647
+ }
3648
+ }
3649
+
3650
+ return response;
3651
+ }
1766
3652
  }
1767
3653
 
1768
3654
  module.exports = Serviceability;