@gofynd/fdk-client-javascript 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/README.md +44 -7
  2. package/package.json +1 -2
  3. package/sdk/application/ApplicationAPIClient.d.ts +3 -3
  4. package/sdk/application/ApplicationAPIClient.js +6 -4
  5. package/sdk/application/ApplicationClient.d.ts +2 -3
  6. package/sdk/application/ApplicationClient.js +1 -45
  7. package/sdk/application/ApplicationConfig.d.ts +46 -6
  8. package/sdk/application/ApplicationConfig.js +15 -16
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
  10. package/sdk/application/Cart/CartApplicationClient.js +225 -134
  11. package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
  12. package/sdk/application/Cart/CartApplicationModel.js +4 -4
  13. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
  14. package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
  15. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
  16. package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
  18. package/sdk/application/Common/CommonApplicationClient.js +13 -11
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
  20. package/sdk/application/Common/CommonApplicationModel.js +2 -58
  21. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
  22. package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
  23. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
  24. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
  25. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
  26. package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
  27. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
  28. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
  29. package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
  30. package/sdk/application/Content/ContentApplicationClient.js +159 -80
  31. package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
  32. package/sdk/application/Content/ContentApplicationModel.js +11 -763
  33. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
  34. package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
  35. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
  36. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
  38. package/sdk/application/Lead/LeadApplicationClient.js +50 -31
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
  40. package/sdk/application/Lead/LeadApplicationModel.js +21 -481
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
  43. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
  44. package/sdk/application/Order/OrderApplicationClient.js +88 -56
  45. package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
  46. package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
  47. package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
  48. package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
  49. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
  50. package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
  51. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
  52. package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
  53. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
  54. package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
  55. package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
  56. package/sdk/application/Share/ShareApplicationClient.js +51 -31
  57. package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
  58. package/sdk/application/Share/ShareApplicationModel.js +0 -38
  59. package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
  60. package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
  61. package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
  62. package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
  63. package/sdk/application/User/UserApplicationClient.d.ts +74 -35
  64. package/sdk/application/User/UserApplicationClient.js +252 -161
  65. package/sdk/application/User/UserApplicationModel.d.ts +3 -401
  66. package/sdk/application/User/UserApplicationModel.js +2 -490
  67. package/sdk/common/AxiosHelper.js +1 -2
  68. package/sdk/common/FDKError.d.ts +3 -0
  69. package/sdk/common/FDKError.js +8 -0
  70. package/sdk/common/utils.d.ts +3 -0
  71. package/sdk/common/utils.js +29 -0
  72. package/sdk/partner/PartnerAPIClient.d.ts +5 -4
  73. package/sdk/partner/PartnerAPIClient.js +7 -4
  74. package/sdk/partner/PartnerClient.d.ts +2 -0
  75. package/sdk/partner/PartnerClient.js +3 -0
  76. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  77. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  78. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  79. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  80. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  81. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  82. package/sdk/partner/index.d.ts +3 -1
  83. package/sdk/partner/index.js +3 -1
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
  87. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
  88. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
  90. package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
  91. package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
  92. package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
  93. package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
  94. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
  95. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
  96. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
  97. package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
  98. package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
  99. package/sdk/platform/Cart/CartPlatformModel.js +104 -54
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
  108. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
  109. package/sdk/platform/Common/CommonPlatformClient.js +13 -11
  110. package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
  111. package/sdk/platform/Common/CommonPlatformModel.js +23 -57
  112. package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
  113. package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
  117. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
  118. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  119. package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
  120. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
  121. package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
  132. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
  134. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
  137. package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
  139. package/sdk/platform/Content/ContentPlatformModel.js +8 -231
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
  144. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
  145. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
  148. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
  149. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
  150. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
  151. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
  152. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
  153. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
  154. package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
  155. package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
  156. package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
  157. package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
  158. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
  159. package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
  160. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
  161. package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
  162. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
  163. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
  164. package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
  165. package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
  166. package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
  167. package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
  168. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
  169. package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
  170. package/sdk/platform/OAuthClient.js +6 -2
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
  173. package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
  174. package/sdk/platform/Order/OrderPlatformClient.js +738 -205
  175. package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
  176. package/sdk/platform/Order/OrderPlatformModel.js +225 -2
  177. package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
  178. package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
  179. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
  180. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
  181. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
  182. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
  193. package/sdk/platform/PlatformAPIClient.d.ts +3 -3
  194. package/sdk/platform/PlatformAPIClient.js +2 -2
  195. package/sdk/platform/PlatformClient.d.ts +2 -2
  196. package/sdk/platform/PlatformClient.js +4 -4
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
  199. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
  200. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
  209. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
  210. package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
  211. package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
  212. package/sdk/platform/Share/SharePlatformModel.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
  214. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
  215. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
  216. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
  217. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  218. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  219. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
  220. package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
  221. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  222. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
  227. package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
  228. package/sdk/platform/User/UserPlatformModel.js +3 -899
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
  239. package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
  240. package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
  241. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  242. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  243. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  244. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  245. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  246. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  247. package/sdk/public/PublicAPIClient.d.ts +14 -1
  248. package/sdk/public/PublicAPIClient.js +7 -1
  249. package/sdk/public/PublicClient.d.ts +2 -0
  250. package/sdk/public/PublicClient.js +4 -0
  251. package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
  252. package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
  253. package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
  254. package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
  255. package/sdk/public/index.d.ts +1 -0
  256. package/sdk/public/index.js +2 -0
  257. package/sdk/application/ApplicationModels.d.ts +0 -48
  258. package/sdk/application/ApplicationModels.js +0 -38
  259. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
  260. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
  261. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
  262. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
@@ -233,6 +233,15 @@ export = CatalogApplicationModel;
233
233
  * @property {string} unit - The unit of dimension
234
234
  * @property {number} width - The width of the product
235
235
  */
236
+ /**
237
+ * @typedef DiscountMeta
238
+ * @property {string} [end] - The end time of the live discount.
239
+ * @property {string} [start] - The start time of the live discount.
240
+ * @property {number} [start_timer_in_minutes] - The time in minutes before the
241
+ * discount ends when the countdown timer should start.
242
+ * @property {boolean} timer - Determines whether the discount countdown is
243
+ * visible or not.
244
+ */
236
245
  /**
237
246
  * @typedef ErrorResponse
238
247
  * @property {string} [error]
@@ -342,10 +351,12 @@ export = CatalogApplicationModel;
342
351
  */
343
352
  /**
344
353
  * @typedef Price
345
- * @property {string} [currency_code]
346
- * @property {string} [currency_symbol]
347
- * @property {number} [max]
348
- * @property {number} [min]
354
+ * @property {string} [currency_code] - The currency code for the currency in
355
+ * which the product is available.
356
+ * @property {string} [currency_symbol] - The currency symbol for the currency
357
+ * in which the product is available.
358
+ * @property {number} [max] - The maximum price for the product across stores.
359
+ * @property {number} [min] - The minimum price for the product across stores.
349
360
  */
350
361
  /**
351
362
  * @typedef ProductBrand
@@ -491,7 +502,7 @@ export = CatalogApplicationModel;
491
502
  * @property {UserDetail} [created_by] - User details of the creator of the document
492
503
  * @property {string} created_on - Timestamp of the creation of the document
493
504
  * @property {boolean} [is_active] - Whether the product grouping is active.
494
- * @property {Object} [logo] - The URL for the logo of the product grouping.
505
+ * @property {string} [logo] - The URL for the logo of the product grouping.
495
506
  * @property {Object} [meta] - A dictionary containing metadata information.
496
507
  * @property {UserDetail} [modified_by] - User details of the last modifier of
497
508
  * the document
@@ -632,7 +643,9 @@ export = CatalogApplicationModel;
632
643
  * @typedef ProductSizePriceResponseV3
633
644
  * @property {ArticleAssignmentV3} [article_assignment]
634
645
  * @property {string} [article_id]
646
+ * @property {PromiseSchema} [delivery_promise]
635
647
  * @property {string} [discount]
648
+ * @property {DiscountMeta} [discount_meta]
636
649
  * @property {SellerGroupAttributes[]} [grouped_attributes]
637
650
  * @property {boolean} [is_cod]
638
651
  * @property {boolean} [is_gift]
@@ -655,8 +668,9 @@ export = CatalogApplicationModel;
655
668
  /**
656
669
  * @typedef ProductSizes
657
670
  * @property {string} [discount]
671
+ * @property {DiscountMeta} [discount_meta]
658
672
  * @property {boolean} [multi_size]
659
- * @property {ProductListingPrice} [price]
673
+ * @property {ProductSizesPrice} [price]
660
674
  * @property {boolean} [sellable]
661
675
  * @property {SizeChart} [size_chart]
662
676
  * @property {ProductSize[]} [sizes]
@@ -674,6 +688,12 @@ export = CatalogApplicationModel;
674
688
  * @property {Page} page
675
689
  * @property {ProductSizeSellerFilterSchemaV3[]} [sort_on]
676
690
  */
691
+ /**
692
+ * @typedef ProductSizesPrice
693
+ * @property {Price} [effective]
694
+ * @property {Price} [marked]
695
+ * @property {Price} [selling]
696
+ */
677
697
  /**
678
698
  * @typedef ProductSizeStores
679
699
  * @property {number} [count]
@@ -699,9 +719,14 @@ export = CatalogApplicationModel;
699
719
  */
700
720
  /**
701
721
  * @typedef ProductStockPriceV3
702
- * @property {string} [currency]
703
- * @property {number} [effective]
704
- * @property {number} [marked]
722
+ * @property {string} [currency_code] - The currency code for which the product
723
+ * is available
724
+ * @property {string} [currency_symbol] - The currency symbol for the currency
725
+ * in which the product is available.
726
+ * @property {number} [effective] - The effective or final price for the product
727
+ * at the given pincode.
728
+ * @property {number} [marked] - The marked price of the product.
729
+ * @property {number} [selling] - The selling price of the product.
705
730
  */
706
731
  /**
707
732
  * @typedef ProductStockStatusItem
@@ -758,6 +783,11 @@ export = CatalogApplicationModel;
758
783
  * @typedef ProductVariantsResponse
759
784
  * @property {ProductVariantResponse[]} [variants]
760
785
  */
786
+ /**
787
+ * @typedef PromiseSchema
788
+ * @property {string} [max]
789
+ * @property {string} [min]
790
+ */
761
791
  /**
762
792
  * @typedef ReturnConfigSchemaV3
763
793
  * @property {boolean} [returnable]
@@ -937,7 +967,7 @@ export = CatalogApplicationModel;
937
967
  declare class CatalogApplicationModel {
938
968
  }
939
969
  declare namespace CatalogApplicationModel {
940
- export { ApplicationItemMOQ, ApplicationItemSEO, ApplicationStoreListing, AppStore, ArticleAssignmentV3, AttributeDetail, AttributeMetadata, AutocompleteItem, AutoCompleteResponse, BrandDetailResponse, BrandItem, BrandListingResponse, CategoryBanner, CategoryItems, CategoryListingResponse, CategoryMetaResponse, Child, CollectionDetailResponse, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, ColumnHeader, ColumnHeaders, CompanyDetail, CompanyStore, CustomMetaFields, Department, DepartmentCategoryTree, DepartmentIdentifier, DepartmentResponse, DetailsSchemaV3, Dimension, ErrorResponse, FollowerCountResponse, FollowIdsData, FollowIdsResponse, FollowPostResponse, GetCollectionDetailNest, GetCollectionListingResponse, GetFollowListingResponse, HomeListingResponse, ImageUrls, LatLong, MarketPlaceSttributesSchemaV3, Media, Meta, NetQuantity, Page, Price, ProductBrand, ProductBundle, ProductCategoryMap, ProductCompareResponse, ProductDetail, ProductDetailAttribute, ProductDetailCustomOrder, ProductDetailGroupedAttribute, ProductDetails, ProductFilters, ProductFiltersKey, ProductFiltersValue, ProductFrequentlyComparedSimilarResponse, ProductGroupingModel, ProductGroupPrice, ProductInGroup, ProductListingAction, ProductListingActionPage, ProductListingDetail, ProductListingPrice, ProductListingResponse, ProductsComparisonResponse, ProductSetDistributionSizeV3, ProductSetDistributionV3, ProductSetV3, ProductSize, ProductSizePriceResponseV3, ProductSizes, ProductSizeSellerFilterSchemaV3, ProductSizeSellersResponseV3, ProductSizeStores, ProductSortOn, ProductStockPolling, ProductStockPrice, ProductStockPriceV3, ProductStockStatusItem, ProductStockStatusResponse, ProductStockUnitPriceV3, ProductVariantItemResponse, ProductVariantListingResponse, ProductVariantResponse, ProductVariantsResponse, ReturnConfigSchemaV3, SecondLevelChild, Seller, SellerGroupAttributes, SellerPhoneNumber, SellerV3, Size, SizeChart, SizeChartValues, Store, StoreAddressSerializer, StoreDepartments, StoreDetail, StoreDetails, StoreListingResponse, StoreManagerSerializer, StoreTiming, StoreV3, StrategyWiseListingSchemaV3, ThirdLevelChild, Time, UserDetail, Weight };
970
+ export { ApplicationItemMOQ, ApplicationItemSEO, ApplicationStoreListing, AppStore, ArticleAssignmentV3, AttributeDetail, AttributeMetadata, AutocompleteItem, AutoCompleteResponse, BrandDetailResponse, BrandItem, BrandListingResponse, CategoryBanner, CategoryItems, CategoryListingResponse, CategoryMetaResponse, Child, CollectionDetailResponse, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, ColumnHeader, ColumnHeaders, CompanyDetail, CompanyStore, CustomMetaFields, Department, DepartmentCategoryTree, DepartmentIdentifier, DepartmentResponse, DetailsSchemaV3, Dimension, DiscountMeta, ErrorResponse, FollowerCountResponse, FollowIdsData, FollowIdsResponse, FollowPostResponse, GetCollectionDetailNest, GetCollectionListingResponse, GetFollowListingResponse, HomeListingResponse, ImageUrls, LatLong, MarketPlaceSttributesSchemaV3, Media, Meta, NetQuantity, Page, Price, ProductBrand, ProductBundle, ProductCategoryMap, ProductCompareResponse, ProductDetail, ProductDetailAttribute, ProductDetailCustomOrder, ProductDetailGroupedAttribute, ProductDetails, ProductFilters, ProductFiltersKey, ProductFiltersValue, ProductFrequentlyComparedSimilarResponse, ProductGroupingModel, ProductGroupPrice, ProductInGroup, ProductListingAction, ProductListingActionPage, ProductListingDetail, ProductListingPrice, ProductListingResponse, ProductsComparisonResponse, ProductSetDistributionSizeV3, ProductSetDistributionV3, ProductSetV3, ProductSize, ProductSizePriceResponseV3, ProductSizes, ProductSizeSellerFilterSchemaV3, ProductSizeSellersResponseV3, ProductSizesPrice, ProductSizeStores, ProductSortOn, ProductStockPolling, ProductStockPrice, ProductStockPriceV3, ProductStockStatusItem, ProductStockStatusResponse, ProductStockUnitPriceV3, ProductVariantItemResponse, ProductVariantListingResponse, ProductVariantResponse, ProductVariantsResponse, PromiseSchema, ReturnConfigSchemaV3, SecondLevelChild, Seller, SellerGroupAttributes, SellerPhoneNumber, SellerV3, Size, SizeChart, SizeChartValues, Store, StoreAddressSerializer, StoreDepartments, StoreDetail, StoreDetails, StoreListingResponse, StoreManagerSerializer, StoreTiming, StoreV3, StrategyWiseListingSchemaV3, ThirdLevelChild, Time, UserDetail, Weight };
941
971
  }
942
972
  /** @returns {ApplicationItemMOQ} */
943
973
  declare function ApplicationItemMOQ(): ApplicationItemMOQ;
@@ -1242,6 +1272,28 @@ type Dimension = {
1242
1272
  */
1243
1273
  width: number;
1244
1274
  };
1275
+ /** @returns {DiscountMeta} */
1276
+ declare function DiscountMeta(): DiscountMeta;
1277
+ type DiscountMeta = {
1278
+ /**
1279
+ * - The end time of the live discount.
1280
+ */
1281
+ end?: string;
1282
+ /**
1283
+ * - The start time of the live discount.
1284
+ */
1285
+ start?: string;
1286
+ /**
1287
+ * - The time in minutes before the
1288
+ * discount ends when the countdown timer should start.
1289
+ */
1290
+ start_timer_in_minutes?: number;
1291
+ /**
1292
+ * - Determines whether the discount countdown is
1293
+ * visible or not.
1294
+ */
1295
+ timer: boolean;
1296
+ };
1245
1297
  /** @returns {ErrorResponse} */
1246
1298
  declare function ErrorResponse(): ErrorResponse;
1247
1299
  type ErrorResponse = {
@@ -1374,9 +1426,23 @@ type Page = {
1374
1426
  /** @returns {Price} */
1375
1427
  declare function Price(): Price;
1376
1428
  type Price = {
1429
+ /**
1430
+ * - The currency code for the currency in
1431
+ * which the product is available.
1432
+ */
1377
1433
  currency_code?: string;
1434
+ /**
1435
+ * - The currency symbol for the currency
1436
+ * in which the product is available.
1437
+ */
1378
1438
  currency_symbol?: string;
1439
+ /**
1440
+ * - The maximum price for the product across stores.
1441
+ */
1379
1442
  max?: number;
1443
+ /**
1444
+ * - The minimum price for the product across stores.
1445
+ */
1380
1446
  min?: number;
1381
1447
  };
1382
1448
  /** @returns {ProductBrand} */
@@ -1618,7 +1684,7 @@ type ProductGroupingModel = {
1618
1684
  /**
1619
1685
  * - The URL for the logo of the product grouping.
1620
1686
  */
1621
- logo?: any;
1687
+ logo?: string;
1622
1688
  /**
1623
1689
  * - A dictionary containing metadata information.
1624
1690
  */
@@ -1844,7 +1910,9 @@ declare function ProductSizePriceResponseV3(): ProductSizePriceResponseV3;
1844
1910
  type ProductSizePriceResponseV3 = {
1845
1911
  article_assignment?: ArticleAssignmentV3;
1846
1912
  article_id?: string;
1913
+ delivery_promise?: PromiseSchema;
1847
1914
  discount?: string;
1915
+ discount_meta?: DiscountMeta;
1848
1916
  grouped_attributes?: SellerGroupAttributes[];
1849
1917
  is_cod?: boolean;
1850
1918
  is_gift?: boolean;
@@ -1868,8 +1936,9 @@ type ProductSizePriceResponseV3 = {
1868
1936
  declare function ProductSizes(): ProductSizes;
1869
1937
  type ProductSizes = {
1870
1938
  discount?: string;
1939
+ discount_meta?: DiscountMeta;
1871
1940
  multi_size?: boolean;
1872
- price?: ProductListingPrice;
1941
+ price?: ProductSizesPrice;
1873
1942
  sellable?: boolean;
1874
1943
  size_chart?: SizeChart;
1875
1944
  sizes?: ProductSize[];
@@ -1889,6 +1958,13 @@ type ProductSizeSellersResponseV3 = {
1889
1958
  page: Page;
1890
1959
  sort_on?: ProductSizeSellerFilterSchemaV3[];
1891
1960
  };
1961
+ /** @returns {ProductSizesPrice} */
1962
+ declare function ProductSizesPrice(): ProductSizesPrice;
1963
+ type ProductSizesPrice = {
1964
+ effective?: Price;
1965
+ marked?: Price;
1966
+ selling?: Price;
1967
+ };
1892
1968
  /** @returns {ProductSizeStores} */
1893
1969
  declare function ProductSizeStores(): ProductSizeStores;
1894
1970
  type ProductSizeStores = {
@@ -1919,9 +1995,29 @@ type ProductStockPrice = {
1919
1995
  /** @returns {ProductStockPriceV3} */
1920
1996
  declare function ProductStockPriceV3(): ProductStockPriceV3;
1921
1997
  type ProductStockPriceV3 = {
1922
- currency?: string;
1998
+ /**
1999
+ * - The currency code for which the product
2000
+ * is available
2001
+ */
2002
+ currency_code?: string;
2003
+ /**
2004
+ * - The currency symbol for the currency
2005
+ * in which the product is available.
2006
+ */
2007
+ currency_symbol?: string;
2008
+ /**
2009
+ * - The effective or final price for the product
2010
+ * at the given pincode.
2011
+ */
1923
2012
  effective?: number;
2013
+ /**
2014
+ * - The marked price of the product.
2015
+ */
1924
2016
  marked?: number;
2017
+ /**
2018
+ * - The selling price of the product.
2019
+ */
2020
+ selling?: number;
1925
2021
  };
1926
2022
  /** @returns {ProductStockStatusItem} */
1927
2023
  declare function ProductStockStatusItem(): ProductStockStatusItem;
@@ -1985,6 +2081,12 @@ declare function ProductVariantsResponse(): ProductVariantsResponse;
1985
2081
  type ProductVariantsResponse = {
1986
2082
  variants?: ProductVariantResponse[];
1987
2083
  };
2084
+ /** @returns {PromiseSchema} */
2085
+ declare function PromiseSchema(): PromiseSchema;
2086
+ type PromiseSchema = {
2087
+ max?: string;
2088
+ min?: string;
2089
+ };
1988
2090
  /** @returns {ReturnConfigSchemaV3} */
1989
2091
  declare function ReturnConfigSchemaV3(): ReturnConfigSchemaV3;
1990
2092
  type ReturnConfigSchemaV3 = {
@@ -267,6 +267,16 @@ const Joi = require("joi");
267
267
  * @property {number} width - The width of the product
268
268
  */
269
269
 
270
+ /**
271
+ * @typedef DiscountMeta
272
+ * @property {string} [end] - The end time of the live discount.
273
+ * @property {string} [start] - The start time of the live discount.
274
+ * @property {number} [start_timer_in_minutes] - The time in minutes before the
275
+ * discount ends when the countdown timer should start.
276
+ * @property {boolean} timer - Determines whether the discount countdown is
277
+ * visible or not.
278
+ */
279
+
270
280
  /**
271
281
  * @typedef ErrorResponse
272
282
  * @property {string} [error]
@@ -392,10 +402,12 @@ const Joi = require("joi");
392
402
 
393
403
  /**
394
404
  * @typedef Price
395
- * @property {string} [currency_code]
396
- * @property {string} [currency_symbol]
397
- * @property {number} [max]
398
- * @property {number} [min]
405
+ * @property {string} [currency_code] - The currency code for the currency in
406
+ * which the product is available.
407
+ * @property {string} [currency_symbol] - The currency symbol for the currency
408
+ * in which the product is available.
409
+ * @property {number} [max] - The maximum price for the product across stores.
410
+ * @property {number} [min] - The minimum price for the product across stores.
399
411
  */
400
412
 
401
413
  /**
@@ -555,7 +567,7 @@ const Joi = require("joi");
555
567
  * @property {UserDetail} [created_by] - User details of the creator of the document
556
568
  * @property {string} created_on - Timestamp of the creation of the document
557
569
  * @property {boolean} [is_active] - Whether the product grouping is active.
558
- * @property {Object} [logo] - The URL for the logo of the product grouping.
570
+ * @property {string} [logo] - The URL for the logo of the product grouping.
559
571
  * @property {Object} [meta] - A dictionary containing metadata information.
560
572
  * @property {UserDetail} [modified_by] - User details of the last modifier of
561
573
  * the document
@@ -709,7 +721,9 @@ const Joi = require("joi");
709
721
  * @typedef ProductSizePriceResponseV3
710
722
  * @property {ArticleAssignmentV3} [article_assignment]
711
723
  * @property {string} [article_id]
724
+ * @property {PromiseSchema} [delivery_promise]
712
725
  * @property {string} [discount]
726
+ * @property {DiscountMeta} [discount_meta]
713
727
  * @property {SellerGroupAttributes[]} [grouped_attributes]
714
728
  * @property {boolean} [is_cod]
715
729
  * @property {boolean} [is_gift]
@@ -733,8 +747,9 @@ const Joi = require("joi");
733
747
  /**
734
748
  * @typedef ProductSizes
735
749
  * @property {string} [discount]
750
+ * @property {DiscountMeta} [discount_meta]
736
751
  * @property {boolean} [multi_size]
737
- * @property {ProductListingPrice} [price]
752
+ * @property {ProductSizesPrice} [price]
738
753
  * @property {boolean} [sellable]
739
754
  * @property {SizeChart} [size_chart]
740
755
  * @property {ProductSize[]} [sizes]
@@ -755,6 +770,13 @@ const Joi = require("joi");
755
770
  * @property {ProductSizeSellerFilterSchemaV3[]} [sort_on]
756
771
  */
757
772
 
773
+ /**
774
+ * @typedef ProductSizesPrice
775
+ * @property {Price} [effective]
776
+ * @property {Price} [marked]
777
+ * @property {Price} [selling]
778
+ */
779
+
758
780
  /**
759
781
  * @typedef ProductSizeStores
760
782
  * @property {number} [count]
@@ -784,9 +806,14 @@ const Joi = require("joi");
784
806
 
785
807
  /**
786
808
  * @typedef ProductStockPriceV3
787
- * @property {string} [currency]
788
- * @property {number} [effective]
789
- * @property {number} [marked]
809
+ * @property {string} [currency_code] - The currency code for which the product
810
+ * is available
811
+ * @property {string} [currency_symbol] - The currency symbol for the currency
812
+ * in which the product is available.
813
+ * @property {number} [effective] - The effective or final price for the product
814
+ * at the given pincode.
815
+ * @property {number} [marked] - The marked price of the product.
816
+ * @property {number} [selling] - The selling price of the product.
790
817
  */
791
818
 
792
819
  /**
@@ -851,6 +878,12 @@ const Joi = require("joi");
851
878
  * @property {ProductVariantResponse[]} [variants]
852
879
  */
853
880
 
881
+ /**
882
+ * @typedef PromiseSchema
883
+ * @property {string} [max]
884
+ * @property {string} [min]
885
+ */
886
+
854
887
  /**
855
888
  * @typedef ReturnConfigSchemaV3
856
889
  * @property {boolean} [returnable]
@@ -1393,6 +1426,16 @@ class CatalogApplicationModel {
1393
1426
  });
1394
1427
  }
1395
1428
 
1429
+ /** @returns {DiscountMeta} */
1430
+ static DiscountMeta() {
1431
+ return Joi.object({
1432
+ end: Joi.string().allow(""),
1433
+ start: Joi.string().allow(""),
1434
+ start_timer_in_minutes: Joi.number(),
1435
+ timer: Joi.boolean().required(),
1436
+ });
1437
+ }
1438
+
1396
1439
  /** @returns {ErrorResponse} */
1397
1440
  static ErrorResponse() {
1398
1441
  return Joi.object({
@@ -1755,7 +1798,7 @@ class CatalogApplicationModel {
1755
1798
  created_by: CatalogApplicationModel.UserDetail(),
1756
1799
  created_on: Joi.string().allow("").required(),
1757
1800
  is_active: Joi.boolean(),
1758
- logo: Joi.any(),
1801
+ logo: Joi.string().allow("").allow(null),
1759
1802
  meta: Joi.any(),
1760
1803
  modified_by: CatalogApplicationModel.UserDetail(),
1761
1804
  modified_on: Joi.string().allow("").required(),
@@ -1937,7 +1980,9 @@ class CatalogApplicationModel {
1937
1980
  return Joi.object({
1938
1981
  article_assignment: CatalogApplicationModel.ArticleAssignmentV3(),
1939
1982
  article_id: Joi.string().allow(""),
1983
+ delivery_promise: CatalogApplicationModel.PromiseSchema(),
1940
1984
  discount: Joi.string().allow(""),
1985
+ discount_meta: CatalogApplicationModel.DiscountMeta(),
1941
1986
  grouped_attributes: Joi.array().items(
1942
1987
  CatalogApplicationModel.SellerGroupAttributes()
1943
1988
  ),
@@ -1969,8 +2014,9 @@ class CatalogApplicationModel {
1969
2014
  static ProductSizes() {
1970
2015
  return Joi.object({
1971
2016
  discount: Joi.string().allow(""),
2017
+ discount_meta: CatalogApplicationModel.DiscountMeta(),
1972
2018
  multi_size: Joi.boolean(),
1973
- price: CatalogApplicationModel.ProductListingPrice(),
2019
+ price: CatalogApplicationModel.ProductSizesPrice(),
1974
2020
  sellable: Joi.boolean(),
1975
2021
  size_chart: CatalogApplicationModel.SizeChart(),
1976
2022
  sizes: Joi.array().items(CatalogApplicationModel.ProductSize()),
@@ -2000,6 +2046,15 @@ class CatalogApplicationModel {
2000
2046
  });
2001
2047
  }
2002
2048
 
2049
+ /** @returns {ProductSizesPrice} */
2050
+ static ProductSizesPrice() {
2051
+ return Joi.object({
2052
+ effective: CatalogApplicationModel.Price(),
2053
+ marked: CatalogApplicationModel.Price(),
2054
+ selling: CatalogApplicationModel.Price(),
2055
+ });
2056
+ }
2057
+
2003
2058
  /** @returns {ProductSizeStores} */
2004
2059
  static ProductSizeStores() {
2005
2060
  return Joi.object({
@@ -2040,9 +2095,11 @@ class CatalogApplicationModel {
2040
2095
  /** @returns {ProductStockPriceV3} */
2041
2096
  static ProductStockPriceV3() {
2042
2097
  return Joi.object({
2043
- currency: Joi.string().allow(""),
2098
+ currency_code: Joi.string().allow(""),
2099
+ currency_symbol: Joi.string().allow(""),
2044
2100
  effective: Joi.number(),
2045
2101
  marked: Joi.number(),
2102
+ selling: Joi.number(),
2046
2103
  });
2047
2104
  }
2048
2105
 
@@ -2132,6 +2189,14 @@ class CatalogApplicationModel {
2132
2189
  });
2133
2190
  }
2134
2191
 
2192
+ /** @returns {PromiseSchema} */
2193
+ static PromiseSchema() {
2194
+ return Joi.object({
2195
+ max: Joi.string().allow(""),
2196
+ min: Joi.string().allow(""),
2197
+ });
2198
+ }
2199
+
2135
2200
  /** @returns {ReturnConfigSchemaV3} */
2136
2201
  static ReturnConfigSchemaV3() {
2137
2202
  return Joi.object({
@@ -10,22 +10,24 @@ declare class Common {
10
10
  updateUrls(urls: any): void;
11
11
  /**
12
12
  * @param {CommonApplicationValidator.GetLocationsParam} arg - Arg object.
13
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
13
14
  * @param {import("../ApplicationAPIClient").Options} - Options
14
15
  * @returns {Promise<CommonApplicationModel.Locations>} - Success response
15
16
  * @name getLocations
16
17
  * @summary: Get countries, states, cities
17
- * @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/common/getLocations/).
18
+ * @description: Get countries, states, cities - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/common/getLocations/).
18
19
  */
19
- getLocations({ locationType, id }?: CommonApplicationValidator.GetLocationsParam, { headers }?: import("../ApplicationAPIClient").Options): Promise<CommonApplicationModel.Locations>;
20
+ getLocations({ locationType, id, requestHeaders }?: CommonApplicationValidator.GetLocationsParam, { responseHeaders }?: object): Promise<CommonApplicationModel.Locations>;
20
21
  /**
21
22
  * @param {CommonApplicationValidator.SearchApplicationParam} arg - Arg object.
23
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
22
24
  * @param {import("../ApplicationAPIClient").Options} - Options
23
25
  * @returns {Promise<CommonApplicationModel.ApplicationResponse>} - Success response
24
26
  * @name searchApplication
25
27
  * @summary: Search Application
26
28
  * @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/common/searchApplication/).
27
29
  */
28
- searchApplication({ authorization, query }?: CommonApplicationValidator.SearchApplicationParam, { headers }?: import("../ApplicationAPIClient").Options): Promise<CommonApplicationModel.ApplicationResponse>;
30
+ searchApplication({ authorization, query, requestHeaders }?: CommonApplicationValidator.SearchApplicationParam, { responseHeaders }?: object): Promise<CommonApplicationModel.ApplicationResponse>;
29
31
  }
30
32
  import CommonApplicationValidator = require("./CommonApplicationValidator");
31
33
  import CommonApplicationModel = require("./CommonApplicationModel");
@@ -33,15 +33,16 @@ class Common {
33
33
 
34
34
  /**
35
35
  * @param {CommonApplicationValidator.GetLocationsParam} arg - Arg object.
36
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
36
37
  * @param {import("../ApplicationAPIClient").Options} - Options
37
38
  * @returns {Promise<CommonApplicationModel.Locations>} - Success response
38
39
  * @name getLocations
39
40
  * @summary: Get countries, states, cities
40
- * @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/common/getLocations/).
41
+ * @description: Get countries, states, cities - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/common/getLocations/).
41
42
  */
42
43
  async getLocations(
43
- { locationType, id } = {},
44
- { headers } = { headers: false }
44
+ { locationType, id, requestHeaders } = { requestHeaders: {} },
45
+ { responseHeaders } = { responseHeaders: false }
45
46
  ) {
46
47
  const { error } = CommonApplicationValidator.getLocations().validate(
47
48
  { locationType, id },
@@ -80,12 +81,12 @@ class Common {
80
81
  }),
81
82
  query_params,
82
83
  undefined,
83
- xHeaders,
84
- { headers }
84
+ { ...xHeaders, ...requestHeaders },
85
+ { responseHeaders }
85
86
  );
86
87
 
87
88
  let responseData = response;
88
- if (headers) {
89
+ if (responseHeaders) {
89
90
  responseData = response[0];
90
91
  }
91
92
 
@@ -108,6 +109,7 @@ class Common {
108
109
 
109
110
  /**
110
111
  * @param {CommonApplicationValidator.SearchApplicationParam} arg - Arg object.
112
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
111
113
  * @param {import("../ApplicationAPIClient").Options} - Options
112
114
  * @returns {Promise<CommonApplicationModel.ApplicationResponse>} - Success response
113
115
  * @name searchApplication
@@ -115,8 +117,8 @@ class Common {
115
117
  * @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/common/searchApplication/).
116
118
  */
117
119
  async searchApplication(
118
- { authorization, query } = {},
119
- { headers } = { headers: false }
120
+ { authorization, query, requestHeaders } = { requestHeaders: {} },
121
+ { responseHeaders } = { responseHeaders: false }
120
122
  ) {
121
123
  const { error } = CommonApplicationValidator.searchApplication().validate(
122
124
  { authorization, query },
@@ -155,12 +157,12 @@ class Common {
155
157
  }),
156
158
  query_params,
157
159
  undefined,
158
- xHeaders,
159
- { headers }
160
+ { ...xHeaders, ...requestHeaders },
161
+ { responseHeaders }
160
162
  );
161
163
 
162
164
  let responseData = response;
163
- if (headers) {
165
+ if (responseHeaders) {
164
166
  responseData = response[0];
165
167
  }
166
168
 
@@ -73,23 +73,6 @@ export = CommonApplicationModel;
73
73
  * @typedef BadRequest
74
74
  * @property {string} [message] - Failure message (in a string format)
75
75
  */
76
- /**
77
- * @typedef Currency
78
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
79
- * of the current sales channel supported currency
80
- * @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
81
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel support
82
- * currency creation
83
- * @property {number} [decimal_digits] - Acceptable decimal limits for a given
84
- * currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
85
- * value of a currency.
86
- * @property {boolean} [is_active] - Shows currency is enabled or not in current
87
- * sales channel
88
- * @property {string} [name] - Name of the currency, e.g. Indian Rupee
89
- * @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
90
- * @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
91
- * currency updation
92
- */
93
76
  /**
94
77
  * @typedef Domain
95
78
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
@@ -135,22 +118,12 @@ export = CommonApplicationModel;
135
118
  */
136
119
  /**
137
120
  * @typedef Locations
138
- * @property {Object[]} [items]
121
+ * @property {LocationCountry[]} [items]
139
122
  */
140
123
  /**
141
124
  * @typedef NotFound
142
125
  * @property {string} [message] - Response message for not found
143
126
  */
144
- /**
145
- * @typedef Page
146
- * @property {number} [current]
147
- * @property {boolean} [has_next]
148
- * @property {boolean} [has_previous]
149
- * @property {number} [item_total]
150
- * @property {string} [next_id]
151
- * @property {number} [size]
152
- * @property {string} type
153
- */
154
127
  /**
155
128
  * @typedef SecureUrl
156
129
  * @property {string} [secure_url] - Hosted URL of the image
@@ -158,7 +131,7 @@ export = CommonApplicationModel;
158
131
  declare class CommonApplicationModel {
159
132
  }
160
133
  declare namespace CommonApplicationModel {
161
- export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Currency, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, Page, SecureUrl };
134
+ export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, SecureUrl };
162
135
  }
163
136
  /** @returns {Application} */
164
137
  declare function Application(): Application;
@@ -311,48 +284,6 @@ type BadRequest = {
311
284
  */
312
285
  message?: string;
313
286
  };
314
- /** @returns {Currency} */
315
- declare function Currency(): Currency;
316
- type Currency = {
317
- /**
318
- * - The unique identifier (24-digit Mongo Object ID)
319
- * of the current sales channel supported currency
320
- */
321
- _id?: string;
322
- /**
323
- * - 3-character currency code, e.g. INR, USD, EUR.
324
- */
325
- code?: string;
326
- /**
327
- * - ISO 8601 timestamp of sales channel support
328
- * currency creation
329
- */
330
- created_at?: string;
331
- /**
332
- * - Acceptable decimal limits for a given
333
- * currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
334
- * value of a currency.
335
- */
336
- decimal_digits?: number;
337
- /**
338
- * - Shows currency is enabled or not in current
339
- * sales channel
340
- */
341
- is_active?: boolean;
342
- /**
343
- * - Name of the currency, e.g. Indian Rupee
344
- */
345
- name?: string;
346
- /**
347
- * - Unique symbol for identifying the currency, e.g. ₹
348
- */
349
- symbol?: string;
350
- /**
351
- * - ISO 8601 timestamp of sales channel support
352
- * currency updation
353
- */
354
- updated_at?: string;
355
- };
356
287
  /** @returns {Domain} */
357
288
  declare function Domain(): Domain;
358
289
  type Domain = {
@@ -418,7 +349,7 @@ type LocationDefaultLanguage = {
418
349
  /** @returns {Locations} */
419
350
  declare function Locations(): Locations;
420
351
  type Locations = {
421
- items?: any[];
352
+ items?: LocationCountry[];
422
353
  };
423
354
  /** @returns {NotFound} */
424
355
  declare function NotFound(): NotFound;
@@ -428,17 +359,6 @@ type NotFound = {
428
359
  */
429
360
  message?: string;
430
361
  };
431
- /** @returns {Page} */
432
- declare function Page(): Page;
433
- type Page = {
434
- current?: number;
435
- has_next?: boolean;
436
- has_previous?: boolean;
437
- item_total?: number;
438
- next_id?: string;
439
- size?: number;
440
- type: string;
441
- };
442
362
  /** @returns {SecureUrl} */
443
363
  declare function SecureUrl(): SecureUrl;
444
364
  type SecureUrl = {