@gofynd/fdk-client-javascript 1.4.13 → 1.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -53
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
  8. package/sdk/application/Cart/CartApplicationModel.js +380 -159
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
  10. package/sdk/application/Cart/CartApplicationValidator.js +34 -18
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
  16. package/sdk/application/Common/CommonApplicationClient.js +6 -5
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
  26. package/sdk/application/Content/ContentApplicationClient.js +54 -75
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
  28. package/sdk/application/Content/ContentApplicationModel.js +83 -32
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
  30. package/sdk/application/Content/ContentApplicationValidator.js +15 -10
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
  38. package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
  39. package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
  40. package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
  41. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
  42. package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +2 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  46. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  47. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
  48. package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
  49. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
  50. package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
  51. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
  52. package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
  53. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
  54. package/sdk/application/Order/OrderApplicationClient.js +96 -13
  55. package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
  56. package/sdk/application/Order/OrderApplicationModel.js +278 -73
  57. package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
  58. package/sdk/application/Order/OrderApplicationValidator.js +15 -2
  59. package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
  60. package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
  61. package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
  62. package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
  63. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  64. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  65. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
  66. package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  69. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  70. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  71. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  72. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  73. package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
  74. package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
  75. package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
  76. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
  77. package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
  78. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  79. package/sdk/application/User/UserApplicationClient.js +10 -10
  80. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  81. package/sdk/application/User/UserApplicationModel.js +16 -16
  82. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  83. package/sdk/application/User/UserApplicationValidator.js +2 -2
  84. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  85. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  86. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
  87. package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
  88. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  89. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  90. package/sdk/application/index.d.ts +1 -0
  91. package/sdk/application/index.js +2 -0
  92. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  93. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  94. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  95. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  96. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  97. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  98. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  99. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  100. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  101. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  102. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  103. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  104. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
  105. package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
  106. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  107. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
  108. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  109. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  110. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  111. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  112. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  113. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  114. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  115. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  116. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  117. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  118. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  119. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  120. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  121. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  122. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  126. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  127. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  129. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  130. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  131. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  132. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  133. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  134. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  135. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  136. package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
  137. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  138. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  139. package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
  140. package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
  142. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
  143. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
  144. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
  145. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
  146. package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
  147. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
  148. package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
  149. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  150. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  151. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  152. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  153. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  154. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  158. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  161. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  167. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  171. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  173. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  175. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  177. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  179. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  181. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  182. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  183. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  184. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  185. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  186. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  187. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  188. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  189. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  190. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  191. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  192. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  194. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  195. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  196. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  198. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  199. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  200. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  201. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  202. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  203. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  204. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  205. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  206. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  207. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
  208. package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
  209. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
  210. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  211. package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
  212. package/sdk/platform/Order/OrderPlatformClient.js +589 -229
  213. package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
  214. package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
  215. package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
  216. package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
  217. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  218. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  219. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  220. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  221. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  222. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  223. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  224. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  225. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  226. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  227. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
  228. package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
  229. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  230. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  231. package/sdk/platform/PlatformClient.d.ts +0 -2
  232. package/sdk/platform/PlatformClient.js +0 -4
  233. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  234. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  235. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  238. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  239. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
  240. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
  241. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  249. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  250. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  251. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  252. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  253. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  254. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  255. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  256. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  257. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  258. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  259. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  260. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  261. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  262. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  263. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  264. package/sdk/platform/User/UserPlatformModel.js +23 -23
  265. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  266. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  267. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  268. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  269. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  270. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  271. package/sdk/platform/index.d.ts +0 -1
  272. package/sdk/platform/index.js +0 -2
  273. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  274. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  275. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  276. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  277. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  278. package/sdk/public/Content/ContentPublicClient.js +791 -5
  279. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  280. package/sdk/public/Content/ContentPublicModel.js +649 -3
  281. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  282. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  286. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  290. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  291. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  292. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  293. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  294. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -13,14 +13,14 @@ const Joi = require("joi");
13
13
  */
14
14
 
15
15
  /**
16
- * @typedef SubmitCustomFormResponse
16
+ * @typedef SubmitCustomFormDetails
17
17
  * @property {string} message - Success message for form submission.
18
18
  * @property {Ticket} [ticket]
19
- * @property {FormFieldResponse} [response]
19
+ * @property {FormFieldDetails} [response]
20
20
  */
21
21
 
22
22
  /**
23
- * @typedef FormFieldResponse
23
+ * @typedef FormFieldDetails
24
24
  * @property {string} [_id] - Unique identifier for a custom form response.
25
25
  * @property {number} [__v] - Version of the form.
26
26
  * @property {string} [application_id] - Unique identifier for a Sales channel.
@@ -199,7 +199,7 @@ class LeadApplicationModel {
199
199
  /** @returns {TicketHistoryPayload} */
200
200
  static TicketHistoryPayload() {
201
201
  return Joi.object({
202
- value: Joi.any().required(),
202
+ value: Joi.object().pattern(/\S/, Joi.any()).required(),
203
203
  type: LeadApplicationModel.HistoryTypeEnum().required(),
204
204
  });
205
205
  }
@@ -212,17 +212,17 @@ class LeadApplicationModel {
212
212
  });
213
213
  }
214
214
 
215
- /** @returns {SubmitCustomFormResponse} */
216
- static SubmitCustomFormResponse() {
215
+ /** @returns {SubmitCustomFormDetails} */
216
+ static SubmitCustomFormDetails() {
217
217
  return Joi.object({
218
218
  message: Joi.string().allow("").required(),
219
219
  ticket: LeadApplicationModel.Ticket(),
220
- response: LeadApplicationModel.FormFieldResponse(),
220
+ response: LeadApplicationModel.FormFieldDetails(),
221
221
  });
222
222
  }
223
223
 
224
- /** @returns {FormFieldResponse} */
225
- static FormFieldResponse() {
224
+ /** @returns {FormFieldDetails} */
225
+ static FormFieldDetails() {
226
226
  return Joi.object({
227
227
  _id: Joi.string().allow(""),
228
228
  __v: Joi.number(),
@@ -278,12 +278,12 @@ class LeadApplicationModel {
278
278
  /** @returns {AddTicketPayload} */
279
279
  static AddTicketPayload() {
280
280
  return Joi.object({
281
- created_by: Joi.any(),
281
+ created_by: Joi.object().pattern(/\S/, Joi.any()),
282
282
  status: Joi.string().allow(""),
283
283
  priority: LeadApplicationModel.PriorityEnum(),
284
284
  category: Joi.string().allow("").required(),
285
285
  content: LeadApplicationModel.TicketContent().required(),
286
- _custom_json: Joi.any(),
286
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
287
287
  subscribers: Joi.array().items(Joi.string().allow("")),
288
288
  });
289
289
  }
@@ -348,9 +348,9 @@ class LeadApplicationModel {
348
348
  /** @returns {FeedbackForm} */
349
349
  static FeedbackForm() {
350
350
  return Joi.object({
351
- inputs: Joi.any(),
351
+ inputs: Joi.object().pattern(/\S/, Joi.any()),
352
352
  title: Joi.string().allow(""),
353
- timestamps: Joi.any(),
353
+ timestamps: Joi.object().pattern(/\S/, Joi.any()),
354
354
  });
355
355
  }
356
356
 
@@ -369,10 +369,10 @@ class LeadApplicationModel {
369
369
  static TicketHistory() {
370
370
  return Joi.object({
371
371
  type: Joi.string().allow("").required(),
372
- value: Joi.any().required(),
372
+ value: Joi.object().pattern(/\S/, Joi.any()).required(),
373
373
  ticket_id: Joi.string().allow("").required(),
374
374
  created_on: LeadApplicationModel.CreatedOn(),
375
- created_by: Joi.any(),
375
+ created_by: Joi.object().pattern(/\S/, Joi.any()),
376
376
  _id: Joi.string().allow("").required(),
377
377
  updated_at: Joi.string().allow(""),
378
378
  created_at: Joi.string().allow(""),
@@ -391,12 +391,12 @@ class LeadApplicationModel {
391
391
  source: LeadApplicationModel.TicketSourceEnum().required(),
392
392
  status: LeadApplicationModel.Status().required(),
393
393
  priority: LeadApplicationModel.Priority().required(),
394
- created_by: Joi.any(),
395
- assigned_to: Joi.any(),
394
+ created_by: Joi.object().pattern(/\S/, Joi.any()),
395
+ assigned_to: Joi.object().pattern(/\S/, Joi.any()),
396
396
  tags: Joi.array().items(Joi.string().allow("")),
397
- _custom_json: Joi.any(),
397
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
398
398
  is_feedback_pending: Joi.boolean(),
399
- integration: Joi.any(),
399
+ integration: Joi.object().pattern(/\S/, Joi.any()),
400
400
  _id: Joi.string().allow("").required(),
401
401
  updated_at: Joi.string().allow(""),
402
402
  created_at: Joi.string().allow(""),
@@ -6,6 +6,8 @@ declare class Logistic {
6
6
  getAllCountries: string;
7
7
  getCountries: string;
8
8
  getCountry: string;
9
+ getCourierPartners: string;
10
+ getDeliveryPromise: string;
9
11
  getLocalities: string;
10
12
  getLocality: string;
11
13
  getLocations: string;
@@ -21,12 +23,12 @@ declare class Logistic {
21
23
  * @param {LogisticApplicationValidator.GetAllCountriesParam} arg - Arg object.
22
24
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
23
25
  * @param {import("../ApplicationAPIClient").Options} - Options
24
- * @returns {Promise<LogisticApplicationModel.CountryListResponse>} - Success response
26
+ * @returns {Promise<LogisticApplicationModel.CountryListResult>} - Success response
25
27
  * @name getAllCountries
26
28
  * @summary: Get deliverable countries
27
29
  * @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
28
30
  */
29
- getAllCountries({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LogisticApplicationModel.CountryListResponse>;
31
+ getAllCountries({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LogisticApplicationModel.CountryListResult>;
30
32
  /**
31
33
  * @param {LogisticApplicationValidator.GetCountriesParam} arg - Arg object.
32
34
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -36,7 +38,7 @@ declare class Logistic {
36
38
  * @summary: Get countries
37
39
  * @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
38
40
  */
39
- getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: LogisticApplicationValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetCountries>;
41
+ getCountries({ onboarding, pageNo, pageSize, q, hierarchy, requestHeaders }?: LogisticApplicationValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetCountries>;
40
42
  /**
41
43
  * @param {LogisticApplicationValidator.GetCountryParam} arg - Arg object.
42
44
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -47,6 +49,28 @@ declare class Logistic {
47
49
  * @description: Get details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
48
50
  */
49
51
  getCountry({ countryIsoCode, requestHeaders }?: LogisticApplicationValidator.GetCountryParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetCountry>;
52
+ /**
53
+ * @param {LogisticApplicationValidator.GetCourierPartnersParam} arg - Arg object.
54
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
55
+ * @param {import("../ApplicationAPIClient").Options} - Options
56
+ * @returns {Promise<LogisticApplicationModel.ShipmentCourierPartnerResult>}
57
+ * - Success response
58
+ *
59
+ * @name getCourierPartners
60
+ * @summary: Serviceable Courier Partners.
61
+ * @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
62
+ */
63
+ getCourierPartners({ companyId, applicationId, body, requestHeaders }?: LogisticApplicationValidator.GetCourierPartnersParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ShipmentCourierPartnerResult>;
64
+ /**
65
+ * @param {LogisticApplicationValidator.GetDeliveryPromiseParam} arg - Arg object.
66
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
67
+ * @param {import("../ApplicationAPIClient").Options} - Options
68
+ * @returns {Promise<LogisticApplicationModel.GetPromiseDetails>} - Success response
69
+ * @name getDeliveryPromise
70
+ * @summary: Get delivery promise
71
+ * @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
72
+ */
73
+ getDeliveryPromise({ pageNo, pageSize, requestHeaders }?: LogisticApplicationValidator.GetDeliveryPromiseParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetPromiseDetails>;
50
74
  /**
51
75
  * @param {LogisticApplicationValidator.GetLocalitiesParam} arg - Arg object.
52
76
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -71,66 +95,65 @@ declare class Logistic {
71
95
  * @param {LogisticApplicationValidator.GetLocationsParam} arg - Arg object.
72
96
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
73
97
  * @param {import("../ApplicationAPIClient").Options} - Options
74
- * @returns {Promise<LogisticApplicationModel.GetStoreResponse>} - Success response
98
+ * @returns {Promise<LogisticApplicationModel.GetStoreResult>} - Success response
75
99
  * @name getLocations
76
100
  * @summary: Get available selling locations
77
101
  * @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
78
102
  */
79
- getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: LogisticApplicationValidator.GetLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetStoreResponse>;
103
+ getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: LogisticApplicationValidator.GetLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetStoreResult>;
80
104
  /**
81
105
  * @param {LogisticApplicationValidator.GetOptimalLocationsParam} arg - Arg object.
82
106
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
83
107
  * @param {import("../ApplicationAPIClient").Options} - Options
84
- * @returns {Promise<LogisticApplicationModel.ReAssignStoreResponse>} -
85
- * Success response
108
+ * @returns {Promise<LogisticApplicationModel.ReAssignStoreResult>} - Success response
86
109
  * @name getOptimalLocations
87
110
  * @summary: Get selling locations
88
111
  * @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
89
112
  */
90
- getOptimalLocations({ body, requestHeaders }?: LogisticApplicationValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ReAssignStoreResponse>;
113
+ getOptimalLocations({ body, requestHeaders }?: LogisticApplicationValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ReAssignStoreResult>;
91
114
  /**
92
115
  * @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object.
93
116
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
94
117
  * @param {import("../ApplicationAPIClient").Options} - Options
95
- * @returns {Promise<LogisticApplicationModel.PincodeApiResponse>} - Success response
118
+ * @returns {Promise<LogisticApplicationModel.PincodeDetails>} - Success response
96
119
  * @name getPincodeCity
97
120
  * @summary: Get pincode details
98
121
  * @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
99
122
  */
100
- getPincodeCity({ pincode, requestHeaders }?: LogisticApplicationValidator.GetPincodeCityParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.PincodeApiResponse>;
123
+ getPincodeCity({ pincode, requestHeaders }?: LogisticApplicationValidator.GetPincodeCityParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.PincodeDetails>;
101
124
  /**
102
125
  * @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object.
103
126
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
104
127
  * @param {import("../ApplicationAPIClient").Options} - Options
105
- * @returns {Promise<LogisticApplicationModel.GetZoneFromPincodeViewResponse>}
128
+ * @returns {Promise<LogisticApplicationModel.GetZoneFromPincodeViewResult>}
106
129
  * - Success response
107
130
  *
108
131
  * @name getPincodeZones
109
132
  * @summary: Get zones
110
133
  * @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
111
134
  */
112
- getPincodeZones({ body, requestHeaders }?: LogisticApplicationValidator.GetPincodeZonesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetZoneFromPincodeViewResponse>;
135
+ getPincodeZones({ body, requestHeaders }?: LogisticApplicationValidator.GetPincodeZonesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetZoneFromPincodeViewResult>;
113
136
  /**
114
137
  * @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object.
115
138
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
116
139
  * @param {import("../ApplicationAPIClient").Options} - Options
117
- * @returns {Promise<LogisticApplicationModel.TATViewResponse>} - Success response
140
+ * @returns {Promise<LogisticApplicationModel.TATViewResult>} - Success response
118
141
  * @name getTatProduct
119
142
  * @summary: Get product's turnaround time
120
143
  * @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
121
144
  */
122
- getTatProduct({ body, requestHeaders }?: LogisticApplicationValidator.GetTatProductParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.TATViewResponse>;
145
+ getTatProduct({ body, requestHeaders }?: LogisticApplicationValidator.GetTatProductParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.TATViewResult>;
123
146
  /**
124
147
  * @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object.
125
148
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
126
149
  * @param {import("../ApplicationAPIClient").Options} - Options
127
- * @returns {Promise<LogisticApplicationModel.ValidateAddressRequest>} -
150
+ * @returns {Promise<LogisticApplicationModel.ValidateAddressDetails>} -
128
151
  * Success response
129
152
  * @name validateAddress
130
153
  * @summary: Validate address
131
154
  * @description: Validate addresses using specific templates customized for each country and tailored to various business scenarios. This validation ensures that the data conforms to the information currently stored in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/validateAddress/).
132
155
  */
133
- validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: LogisticApplicationValidator.ValidateAddressParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ValidateAddressRequest>;
156
+ validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: LogisticApplicationValidator.ValidateAddressParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ValidateAddressDetails>;
134
157
  }
135
158
  import LogisticApplicationModel = require("./LogisticApplicationModel");
136
159
  import LogisticApplicationValidator = require("./LogisticApplicationValidator");
@@ -18,6 +18,10 @@ class Logistic {
18
18
  getCountries: "/service/application/logistics/v2.0/countries",
19
19
  getCountry:
20
20
  "/service/application/logistics/v1.0/countries/{country_iso_code}",
21
+ getCourierPartners:
22
+ "/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners",
23
+ getDeliveryPromise:
24
+ "/service/application/logistics/v1.0/delivery-promise",
21
25
  getLocalities:
22
26
  "/service/application/logistics/v1.0/localities/{locality_type}",
23
27
  getLocality:
@@ -51,7 +55,7 @@ class Logistic {
51
55
  * @param {LogisticApplicationValidator.GetAllCountriesParam} arg - Arg object.
52
56
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
53
57
  * @param {import("../ApplicationAPIClient").Options} - Options
54
- * @returns {Promise<LogisticApplicationModel.CountryListResponse>} - Success response
58
+ * @returns {Promise<LogisticApplicationModel.CountryListResult>} - Success response
55
59
  * @name getAllCountries
56
60
  * @summary: Get deliverable countries
57
61
  * @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
@@ -106,7 +110,7 @@ class Logistic {
106
110
 
107
111
  const {
108
112
  error: res_error,
109
- } = LogisticApplicationModel.CountryListResponse().validate(responseData, {
113
+ } = LogisticApplicationModel.CountryListResult().validate(responseData, {
110
114
  abortEarly: false,
111
115
  allowUnknown: true,
112
116
  });
@@ -135,13 +139,13 @@ class Logistic {
135
139
  * @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
136
140
  */
137
141
  async getCountries(
138
- { onboarding, pageNo, pageSize, q, requestHeaders } = {
142
+ { onboarding, pageNo, pageSize, q, hierarchy, requestHeaders } = {
139
143
  requestHeaders: {},
140
144
  },
141
145
  { responseHeaders } = { responseHeaders: false }
142
146
  ) {
143
147
  const { error } = LogisticApplicationValidator.getCountries().validate(
144
- { onboarding, pageNo, pageSize, q },
148
+ { onboarding, pageNo, pageSize, q, hierarchy },
145
149
  { abortEarly: false, allowUnknown: true }
146
150
  );
147
151
  if (error) {
@@ -152,7 +156,7 @@ class Logistic {
152
156
  const {
153
157
  error: warrning,
154
158
  } = LogisticApplicationValidator.getCountries().validate(
155
- { onboarding, pageNo, pageSize, q },
159
+ { onboarding, pageNo, pageSize, q, hierarchy },
156
160
  { abortEarly: false, allowUnknown: false }
157
161
  );
158
162
  if (warrning) {
@@ -167,6 +171,7 @@ class Logistic {
167
171
  query_params["page_no"] = pageNo;
168
172
  query_params["page_size"] = pageSize;
169
173
  query_params["q"] = q;
174
+ query_params["hierarchy"] = hierarchy;
170
175
 
171
176
  const xHeaders = {};
172
177
 
@@ -287,6 +292,170 @@ class Logistic {
287
292
  return response;
288
293
  }
289
294
 
295
+ /**
296
+ * @param {LogisticApplicationValidator.GetCourierPartnersParam} arg - Arg object.
297
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
298
+ * @param {import("../ApplicationAPIClient").Options} - Options
299
+ * @returns {Promise<LogisticApplicationModel.ShipmentCourierPartnerResult>}
300
+ * - Success response
301
+ *
302
+ * @name getCourierPartners
303
+ * @summary: Serviceable Courier Partners.
304
+ * @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
305
+ */
306
+ async getCourierPartners(
307
+ { companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
308
+ { responseHeaders } = { responseHeaders: false }
309
+ ) {
310
+ const {
311
+ error,
312
+ } = LogisticApplicationValidator.getCourierPartners().validate(
313
+ { companyId, applicationId, body },
314
+ { abortEarly: false, allowUnknown: true }
315
+ );
316
+ if (error) {
317
+ return Promise.reject(new FDKClientValidationError(error));
318
+ }
319
+
320
+ // Showing warrnings if extra unknown parameters are found
321
+ const {
322
+ error: warrning,
323
+ } = LogisticApplicationValidator.getCourierPartners().validate(
324
+ { companyId, applicationId, body },
325
+ { abortEarly: false, allowUnknown: false }
326
+ );
327
+ if (warrning) {
328
+ Logger({
329
+ level: "WARN",
330
+ message: `Parameter Validation warrnings for application > Logistic > getCourierPartners \n ${warrning}`,
331
+ });
332
+ }
333
+
334
+ const query_params = {};
335
+
336
+ const xHeaders = {};
337
+
338
+ const response = await ApplicationAPIClient.execute(
339
+ this._conf,
340
+ "post",
341
+ constructUrl({
342
+ url: this._urls["getCourierPartners"],
343
+ params: { companyId, applicationId },
344
+ }),
345
+ query_params,
346
+ body,
347
+ { ...xHeaders, ...requestHeaders },
348
+ { responseHeaders }
349
+ );
350
+
351
+ let responseData = response;
352
+ if (responseHeaders) {
353
+ responseData = response[0];
354
+ }
355
+
356
+ const {
357
+ error: res_error,
358
+ } = LogisticApplicationModel.ShipmentCourierPartnerResult().validate(
359
+ responseData,
360
+ { abortEarly: false, allowUnknown: true }
361
+ );
362
+
363
+ if (res_error) {
364
+ if (this._conf.options.strictResponseCheck === true) {
365
+ return Promise.reject(new FDKResponseValidationError(res_error));
366
+ } else {
367
+ Logger({
368
+ level: "WARN",
369
+ message: `Response Validation Warnings for application > Logistic > getCourierPartners \n ${res_error}`,
370
+ });
371
+ }
372
+ }
373
+
374
+ return response;
375
+ }
376
+
377
+ /**
378
+ * @param {LogisticApplicationValidator.GetDeliveryPromiseParam} arg - Arg object.
379
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
380
+ * @param {import("../ApplicationAPIClient").Options} - Options
381
+ * @returns {Promise<LogisticApplicationModel.GetPromiseDetails>} - Success response
382
+ * @name getDeliveryPromise
383
+ * @summary: Get delivery promise
384
+ * @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
385
+ */
386
+ async getDeliveryPromise(
387
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
388
+ { responseHeaders } = { responseHeaders: false }
389
+ ) {
390
+ const {
391
+ error,
392
+ } = LogisticApplicationValidator.getDeliveryPromise().validate(
393
+ { pageNo, pageSize },
394
+ { abortEarly: false, allowUnknown: true }
395
+ );
396
+ if (error) {
397
+ return Promise.reject(new FDKClientValidationError(error));
398
+ }
399
+
400
+ // Showing warrnings if extra unknown parameters are found
401
+ const {
402
+ error: warrning,
403
+ } = LogisticApplicationValidator.getDeliveryPromise().validate(
404
+ { pageNo, pageSize },
405
+ { abortEarly: false, allowUnknown: false }
406
+ );
407
+ if (warrning) {
408
+ Logger({
409
+ level: "WARN",
410
+ message: `Parameter Validation warrnings for application > Logistic > getDeliveryPromise \n ${warrning}`,
411
+ });
412
+ }
413
+
414
+ const query_params = {};
415
+ query_params["page_no"] = pageNo;
416
+ query_params["page_size"] = pageSize;
417
+
418
+ const xHeaders = {};
419
+
420
+ const response = await ApplicationAPIClient.execute(
421
+ this._conf,
422
+ "get",
423
+ constructUrl({
424
+ url: this._urls["getDeliveryPromise"],
425
+ params: {},
426
+ }),
427
+ query_params,
428
+ undefined,
429
+ { ...xHeaders, ...requestHeaders },
430
+ { responseHeaders }
431
+ );
432
+
433
+ let responseData = response;
434
+ if (responseHeaders) {
435
+ responseData = response[0];
436
+ }
437
+
438
+ const {
439
+ error: res_error,
440
+ } = LogisticApplicationModel.GetPromiseDetails().validate(responseData, {
441
+ abortEarly: false,
442
+ allowUnknown: true,
443
+ });
444
+
445
+ if (res_error) {
446
+ if (this._conf.options.strictResponseCheck === true) {
447
+ return Promise.reject(new FDKResponseValidationError(res_error));
448
+ } else {
449
+ Logger({
450
+ level: "WARN",
451
+ message: `Response Validation Warnings for application > Logistic > getDeliveryPromise \n ${res_error}`,
452
+ });
453
+ }
454
+ }
455
+
456
+ return response;
457
+ }
458
+
290
459
  /**
291
460
  * @param {LogisticApplicationValidator.GetLocalitiesParam} arg - Arg object.
292
461
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -467,7 +636,7 @@ class Logistic {
467
636
  * @param {LogisticApplicationValidator.GetLocationsParam} arg - Arg object.
468
637
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
469
638
  * @param {import("../ApplicationAPIClient").Options} - Options
470
- * @returns {Promise<LogisticApplicationModel.GetStoreResponse>} - Success response
639
+ * @returns {Promise<LogisticApplicationModel.GetStoreResult>} - Success response
471
640
  * @name getLocations
472
641
  * @summary: Get available selling locations
473
642
  * @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
@@ -562,7 +731,7 @@ class Logistic {
562
731
 
563
732
  const {
564
733
  error: res_error,
565
- } = LogisticApplicationModel.GetStoreResponse().validate(responseData, {
734
+ } = LogisticApplicationModel.GetStoreResult().validate(responseData, {
566
735
  abortEarly: false,
567
736
  allowUnknown: true,
568
737
  });
@@ -585,8 +754,7 @@ class Logistic {
585
754
  * @param {LogisticApplicationValidator.GetOptimalLocationsParam} arg - Arg object.
586
755
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
587
756
  * @param {import("../ApplicationAPIClient").Options} - Options
588
- * @returns {Promise<LogisticApplicationModel.ReAssignStoreResponse>} -
589
- * Success response
757
+ * @returns {Promise<LogisticApplicationModel.ReAssignStoreResult>} - Success response
590
758
  * @name getOptimalLocations
591
759
  * @summary: Get selling locations
592
760
  * @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
@@ -643,10 +811,10 @@ class Logistic {
643
811
 
644
812
  const {
645
813
  error: res_error,
646
- } = LogisticApplicationModel.ReAssignStoreResponse().validate(
647
- responseData,
648
- { abortEarly: false, allowUnknown: true }
649
- );
814
+ } = LogisticApplicationModel.ReAssignStoreResult().validate(responseData, {
815
+ abortEarly: false,
816
+ allowUnknown: true,
817
+ });
650
818
 
651
819
  if (res_error) {
652
820
  if (this._conf.options.strictResponseCheck === true) {
@@ -666,7 +834,7 @@ class Logistic {
666
834
  * @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object.
667
835
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
668
836
  * @param {import("../ApplicationAPIClient").Options} - Options
669
- * @returns {Promise<LogisticApplicationModel.PincodeApiResponse>} - Success response
837
+ * @returns {Promise<LogisticApplicationModel.PincodeDetails>} - Success response
670
838
  * @name getPincodeCity
671
839
  * @summary: Get pincode details
672
840
  * @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
@@ -721,7 +889,7 @@ class Logistic {
721
889
 
722
890
  const {
723
891
  error: res_error,
724
- } = LogisticApplicationModel.PincodeApiResponse().validate(responseData, {
892
+ } = LogisticApplicationModel.PincodeDetails().validate(responseData, {
725
893
  abortEarly: false,
726
894
  allowUnknown: true,
727
895
  });
@@ -744,7 +912,7 @@ class Logistic {
744
912
  * @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object.
745
913
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
746
914
  * @param {import("../ApplicationAPIClient").Options} - Options
747
- * @returns {Promise<LogisticApplicationModel.GetZoneFromPincodeViewResponse>}
915
+ * @returns {Promise<LogisticApplicationModel.GetZoneFromPincodeViewResult>}
748
916
  * - Success response
749
917
  *
750
918
  * @name getPincodeZones
@@ -801,7 +969,7 @@ class Logistic {
801
969
 
802
970
  const {
803
971
  error: res_error,
804
- } = LogisticApplicationModel.GetZoneFromPincodeViewResponse().validate(
972
+ } = LogisticApplicationModel.GetZoneFromPincodeViewResult().validate(
805
973
  responseData,
806
974
  { abortEarly: false, allowUnknown: true }
807
975
  );
@@ -824,7 +992,7 @@ class Logistic {
824
992
  * @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object.
825
993
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
826
994
  * @param {import("../ApplicationAPIClient").Options} - Options
827
- * @returns {Promise<LogisticApplicationModel.TATViewResponse>} - Success response
995
+ * @returns {Promise<LogisticApplicationModel.TATViewResult>} - Success response
828
996
  * @name getTatProduct
829
997
  * @summary: Get product's turnaround time
830
998
  * @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
@@ -879,7 +1047,7 @@ class Logistic {
879
1047
 
880
1048
  const {
881
1049
  error: res_error,
882
- } = LogisticApplicationModel.TATViewResponse().validate(responseData, {
1050
+ } = LogisticApplicationModel.TATViewResult().validate(responseData, {
883
1051
  abortEarly: false,
884
1052
  allowUnknown: true,
885
1053
  });
@@ -902,7 +1070,7 @@ class Logistic {
902
1070
  * @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object.
903
1071
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
904
1072
  * @param {import("../ApplicationAPIClient").Options} - Options
905
- * @returns {Promise<LogisticApplicationModel.ValidateAddressRequest>} -
1073
+ * @returns {Promise<LogisticApplicationModel.ValidateAddressDetails>} -
906
1074
  * Success response
907
1075
  * @name validateAddress
908
1076
  * @summary: Validate address
@@ -960,7 +1128,7 @@ class Logistic {
960
1128
 
961
1129
  const {
962
1130
  error: res_error,
963
- } = LogisticApplicationModel.ValidateAddressRequest().validate(
1131
+ } = LogisticApplicationModel.ValidateAddressDetails().validate(
964
1132
  responseData,
965
1133
  { abortEarly: false, allowUnknown: true }
966
1134
  );