@gofynd/fdk-client-javascript 1.4.2-beta.7 → 1.4.4

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 (254) hide show
  1. package/README.md +1 -10
  2. package/application.d.ts +3 -3
  3. package/common.d.ts +3 -3
  4. package/index.d.ts +15 -15
  5. package/package.json +5 -3
  6. package/partner.d.ts +3 -3
  7. package/platform.d.ts +3 -3
  8. package/public.d.ts +2 -2
  9. package/sdk/application/ApplicationAPIClient.d.ts +1 -1
  10. package/sdk/application/ApplicationAPIClient.js +0 -1
  11. package/sdk/application/ApplicationClient.d.ts +17 -17
  12. package/sdk/application/ApplicationConfig.d.ts +3 -3
  13. package/sdk/application/Cart/CartApplicationClient.d.ts +58 -58
  14. package/sdk/application/Cart/CartApplicationClient.js +56 -56
  15. package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -1
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +72 -72
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +69 -69
  18. package/sdk/application/Common/CommonApplicationClient.d.ts +6 -6
  19. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  20. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +8 -8
  21. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
  22. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  23. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -34
  24. package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -32
  25. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +1 -1
  26. package/sdk/application/Content/ContentApplicationClient.d.ts +48 -48
  27. package/sdk/application/Content/ContentApplicationClient.js +45 -45
  28. package/sdk/application/Content/ContentApplicationModel.d.ts +18 -18
  29. package/sdk/application/Content/ContentApplicationModel.js +26 -26
  30. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +7 -7
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.js +15 -9
  32. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  33. package/sdk/application/Lead/LeadApplicationClient.d.ts +12 -12
  34. package/sdk/application/Lead/LeadApplicationClient.js +10 -10
  35. package/sdk/application/Lead/LeadApplicationModel.d.ts +64 -77
  36. package/sdk/application/Lead/LeadApplicationModel.js +42 -52
  37. package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -1
  38. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +24 -24
  39. package/sdk/application/Logistic/LogisticApplicationClient.js +22 -22
  40. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -1
  41. package/sdk/application/Order/OrderApplicationClient.d.ts +19 -30
  42. package/sdk/application/Order/OrderApplicationClient.js +17 -97
  43. package/sdk/application/Order/OrderApplicationValidator.d.ts +2 -16
  44. package/sdk/application/Order/OrderApplicationValidator.js +0 -13
  45. package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -91
  46. package/sdk/application/Payment/PaymentApplicationClient.js +94 -94
  47. package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -2
  48. package/sdk/application/Payment/PaymentApplicationModel.js +4 -2
  49. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +6 -6
  50. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  51. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +29 -29
  52. package/sdk/application/PosCart/PosCartApplicationClient.js +27 -27
  53. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +1 -1
  54. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +9 -9
  55. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  56. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +1 -1
  57. package/sdk/application/Share/ShareApplicationClient.d.ts +9 -9
  58. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  59. package/sdk/application/Share/ShareApplicationModel.d.ts +2 -0
  60. package/sdk/application/Share/ShareApplicationModel.js +2 -0
  61. package/sdk/application/Share/ShareApplicationValidator.d.ts +1 -1
  62. package/sdk/application/Theme/ThemeApplicationClient.d.ts +10 -10
  63. package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
  64. package/sdk/application/Theme/ThemeApplicationModel.d.ts +25 -32
  65. package/sdk/application/Theme/ThemeApplicationModel.js +30 -40
  66. package/sdk/application/User/UserApplicationClient.d.ts +76 -76
  67. package/sdk/application/User/UserApplicationClient.js +74 -74
  68. package/sdk/application/User/UserApplicationModel.d.ts +44 -13
  69. package/sdk/application/User/UserApplicationModel.js +17 -13
  70. package/sdk/application/User/UserApplicationValidator.d.ts +1 -1
  71. package/sdk/application/index.d.ts +18 -18
  72. package/sdk/common/AxiosHelper.d.ts +1 -1
  73. package/sdk/common/AxiosHelper.js +38 -17
  74. package/sdk/common/Clickstream.js +22 -16
  75. package/sdk/common/curlHelper.js +1 -3
  76. package/sdk/common/utils.d.ts +15 -0
  77. package/sdk/common/utils.js +30 -0
  78. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +3 -3
  79. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +2 -2
  80. package/sdk/partner/Lead/LeadPartnerClient.d.ts +3 -3
  81. package/sdk/partner/Lead/LeadPartnerClient.js +1 -1
  82. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +5 -5
  83. package/sdk/partner/Logistics/LogisticsPartnerClient.js +4 -4
  84. package/sdk/partner/OAuthClient.d.ts +4 -4
  85. package/sdk/partner/PartnerAPIClient.d.ts +1 -1
  86. package/sdk/partner/PartnerAPIClient.js +0 -1
  87. package/sdk/partner/PartnerClient.d.ts +6 -6
  88. package/sdk/partner/PartnerConfig.d.ts +4 -4
  89. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -20
  90. package/sdk/partner/Theme/ThemePartnerClient.js +19 -19
  91. package/sdk/partner/Theme/ThemePartnerModel.d.ts +25 -32
  92. package/sdk/partner/Theme/ThemePartnerModel.js +30 -40
  93. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +3 -3
  94. package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
  95. package/sdk/partner/index.d.ts +7 -7
  96. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -8
  97. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +6 -6
  98. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  99. package/sdk/platform/Billing/BillingPlatformClient.d.ts +25 -25
  100. package/sdk/platform/Billing/BillingPlatformClient.js +23 -23
  101. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +1 -1
  102. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +115 -115
  103. package/sdk/platform/Cart/CartPlatformApplicationClient.js +113 -113
  104. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +1 -1
  105. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +147 -146
  106. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +146 -145
  107. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1 -1
  108. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +156 -156
  109. package/sdk/platform/Catalog/CatalogPlatformClient.js +153 -153
  110. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +65 -28
  111. package/sdk/platform/Catalog/CatalogPlatformModel.js +68 -36
  112. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -1
  113. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -5
  114. package/sdk/platform/Common/CommonPlatformClient.js +3 -3
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +133 -133
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +131 -131
  117. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +1 -1
  118. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +4 -4
  119. package/sdk/platform/Communication/CommunicationPlatformClient.js +2 -2
  120. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +12 -0
  121. package/sdk/platform/Communication/CommunicationPlatformModel.js +12 -0
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +28 -28
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +25 -25
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -0
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +2 -0
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +1 -1
  127. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +52 -52
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +50 -50
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +1 -1
  130. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +31 -31
  131. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +29 -29
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -1
  133. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +128 -128
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.js +131 -131
  135. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +5 -5
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
  137. package/sdk/platform/Content/ContentPlatformClient.d.ts +33 -33
  138. package/sdk/platform/Content/ContentPlatformClient.js +37 -37
  139. package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -18
  140. package/sdk/platform/Content/ContentPlatformModel.js +26 -26
  141. package/sdk/platform/Content/ContentPlatformValidator.d.ts +5 -5
  142. package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
  143. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +24 -24
  144. package/sdk/platform/Discount/DiscountPlatformClient.js +22 -22
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +1 -1
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +24 -23
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +32 -25
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  149. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +15 -15
  150. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -19
  151. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +12 -1
  152. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +16 -2
  153. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +1 -1
  154. package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
  155. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  156. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -1
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +19 -19
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +17 -17
  159. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -1
  160. package/sdk/platform/Lead/LeadPlatformClient.d.ts +20 -20
  161. package/sdk/platform/Lead/LeadPlatformClient.js +18 -18
  162. package/sdk/platform/Lead/LeadPlatformModel.d.ts +62 -77
  163. package/sdk/platform/Lead/LeadPlatformModel.js +40 -52
  164. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -1
  165. package/sdk/platform/OAuthClient.d.ts +3 -3
  166. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +12 -12
  167. package/sdk/platform/Order/OrderPlatformApplicationClient.js +10 -10
  168. package/sdk/platform/Order/OrderPlatformClient.d.ts +111 -122
  169. package/sdk/platform/Order/OrderPlatformClient.js +109 -204
  170. package/sdk/platform/Order/OrderPlatformModel.d.ts +18 -2
  171. package/sdk/platform/Order/OrderPlatformModel.js +12 -2
  172. package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -34
  173. package/sdk/platform/Order/OrderPlatformValidator.js +0 -20
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -6
  175. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -1
  177. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +97 -97
  178. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +95 -95
  179. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -1
  180. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +13 -13
  181. package/sdk/platform/Payment/PaymentPlatformClient.js +11 -11
  182. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +7 -0
  183. package/sdk/platform/Payment/PaymentPlatformModel.js +3 -0
  184. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +1 -1
  185. package/sdk/platform/PlatformAPIClient.d.ts +1 -1
  186. package/sdk/platform/PlatformAPIClient.js +0 -1
  187. package/sdk/platform/PlatformApplicationClient.d.ts +16 -16
  188. package/sdk/platform/PlatformClient.d.ts +19 -21
  189. package/sdk/platform/PlatformClient.js +0 -4
  190. package/sdk/platform/PlatformConfig.d.ts +4 -4
  191. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +14 -14
  192. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
  193. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +42 -42
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +40 -40
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -1
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +55 -54
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +53 -52
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2 -2
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -2
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -1
  202. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  203. package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
  204. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +4 -0
  206. package/sdk/platform/Share/SharePlatformModel.js +4 -0
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +42 -112
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +40 -597
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +2 -101
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -92
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -8
  212. package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +25 -32
  214. package/sdk/platform/Theme/ThemePlatformModel.js +30 -40
  215. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +1 -1
  216. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +37 -37
  217. package/sdk/platform/User/UserPlatformApplicationClient.js +35 -35
  218. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +1 -1
  219. package/sdk/platform/User/UserPlatformModel.d.ts +48 -13
  220. package/sdk/platform/User/UserPlatformModel.js +21 -13
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +20 -19
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +18 -17
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +1 -1
  226. package/sdk/platform/index.d.ts +24 -25
  227. package/sdk/platform/index.js +0 -2
  228. package/sdk/public/Billing/BillingPublicClient.d.ts +3 -3
  229. package/sdk/public/Billing/BillingPublicClient.js +4 -4
  230. package/sdk/public/Billing/BillingPublicValidator.d.ts +2 -2
  231. package/sdk/public/Billing/BillingPublicValidator.js +2 -2
  232. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -3
  233. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
  234. package/sdk/public/Content/ContentPublicClient.d.ts +2 -2
  235. package/sdk/public/Content/ContentPublicValidator.d.ts +2 -2
  236. package/sdk/public/Content/ContentPublicValidator.js +3 -3
  237. package/sdk/public/Inventory/InventoryPublicClient.d.ts +2 -2
  238. package/sdk/public/Inventory/InventoryPublicModel.d.ts +8 -8
  239. package/sdk/public/Inventory/InventoryPublicModel.js +8 -8
  240. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +1 -1
  241. package/sdk/public/Partner/PartnerPublicClient.d.ts +3 -3
  242. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  243. package/sdk/public/PublicAPIClient.d.ts +1 -1
  244. package/sdk/public/PublicClient.d.ts +7 -7
  245. package/sdk/public/Webhook/WebhookPublicClient.d.ts +4 -4
  246. package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
  247. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -1
  248. package/sdk/public/index.d.ts +8 -8
  249. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +0 -152
  250. package/sdk/platform/Inventory/InventoryPlatformClient.js +0 -1017
  251. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +0 -1355
  252. package/sdk/platform/Inventory/InventoryPlatformModel.js +0 -1544
  253. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +0 -171
  254. package/sdk/platform/Inventory/InventoryPlatformValidator.js +0 -159
package/README.md CHANGED
@@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name);
214
214
  The above code will log the curl command in the console
215
215
 
216
216
  ```bash
217
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.2-beta.7' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
217
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.4' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
218
218
  Active Theme: Emerge
219
219
  ```
220
220
 
@@ -228,12 +228,3 @@ fdk-client-javascript includes Typescript definitions.
228
228
  import { ApplicationConfig, ApplicationClient } from "fdk-client-javascript";
229
229
  ```
230
230
 
231
- ---
232
-
233
- ### Documentation
234
-
235
- - [Application Front](documentation/application/README.md)
236
- - [Partner Front](documentation/partner/README.md)
237
- - [Platform Front](documentation/platform/README.md)
238
- - [Public Front](documentation/public/README.md)
239
-
package/application.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ApplicationConfig } from "./sdk/application";
2
- import { ApplicationClient } from "./sdk/application";
3
- import { ApplicationModel } from "./sdk/application";
1
+ import { ApplicationConfig } from "sdk/output/javascript/code/sdk/application";
2
+ import { ApplicationClient } from "sdk/output/javascript/code/sdk/application";
3
+ import { ApplicationModel } from "sdk/output/javascript/code/sdk/application";
4
4
  export { ApplicationConfig, ApplicationClient, ApplicationModel };
package/common.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { fdkAxios } from "./sdk/common/AxiosHelper";
2
- import Utility = require("./sdk/common/Utility");
3
- import Constant = require("./sdk/common/Constant");
1
+ import { fdkAxios } from "sdk/output/javascript/code/sdk/common/AxiosHelper";
2
+ import Utility = require("sdk/output/javascript/code/sdk/common/Utility");
3
+ import Constant = require("sdk/output/javascript/code/sdk/common/Constant");
4
4
  export { fdkAxios as FdkAxios, Utility, Constant };
package/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { ApplicationConfig } from "./sdk/application";
2
- import { ApplicationClient } from "./sdk/application";
3
- import { ApplicationModel } from "./sdk/application";
4
- import { PartnerConfig } from "./sdk/partner";
5
- import { PartnerClient } from "./sdk/partner";
6
- import { PartnerModel } from "./sdk/partner";
7
- import { PlatformConfig } from "./sdk/platform";
8
- import { PlatformClient } from "./sdk/platform";
9
- import { PlatformModel } from "./sdk/platform";
10
- import { PublicConfig } from "./sdk/public";
11
- import { PublicClient } from "./sdk/public";
12
- import { PublicModel } from "./sdk/public";
13
- import { fdkAxios } from "./sdk/common/AxiosHelper";
14
- import Utility = require("./sdk/common/Utility");
15
- import Constant = require("./sdk/common/Constant");
1
+ import { ApplicationConfig } from "sdk/output/javascript/code/sdk/application";
2
+ import { ApplicationClient } from "sdk/output/javascript/code/sdk/application";
3
+ import { ApplicationModel } from "sdk/output/javascript/code/sdk/application";
4
+ import { PartnerConfig } from "sdk/output/javascript/code/sdk/partner";
5
+ import { PartnerClient } from "sdk/output/javascript/code/sdk/partner";
6
+ import { PartnerModel } from "sdk/output/javascript/code/sdk/partner";
7
+ import { PlatformConfig } from "sdk/output/javascript/code/sdk/platform";
8
+ import { PlatformClient } from "sdk/output/javascript/code/sdk/platform";
9
+ import { PlatformModel } from "sdk/output/javascript/code/sdk/platform";
10
+ import { PublicConfig } from "sdk/output/javascript/code/sdk/public";
11
+ import { PublicClient } from "sdk/output/javascript/code/sdk/public";
12
+ import { PublicModel } from "sdk/output/javascript/code/sdk/public";
13
+ import { fdkAxios } from "sdk/output/javascript/code/sdk/common/AxiosHelper";
14
+ import Utility = require("sdk/output/javascript/code/sdk/common/Utility");
15
+ import Constant = require("sdk/output/javascript/code/sdk/common/Constant");
16
16
  export { ApplicationConfig, ApplicationClient, ApplicationModel, PartnerConfig, PartnerClient, PartnerModel, PlatformConfig, PlatformClient, PlatformModel, PublicConfig, PublicClient, PublicModel, fdkAxios as FdkAxios, Utility, Constant };
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "1.4.2-beta.7",
3
+ "version": "1.4.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "jest --coverage",
8
+ "lint": "eslint",
8
9
  "test:standalone": "npm run build && npx cypress run",
9
10
  "build": "webpack",
10
11
  "prettier": "npx prettier -w ./sdk ./tests && npx tsc"
@@ -12,19 +13,20 @@
12
13
  "author": "Jigar Dafda<jigar.dafda@gmail.com>",
13
14
  "license": "ISC",
14
15
  "dependencies": {
15
- "axios": "^0.27.2",
16
+ "axios": "^1.6.4",
16
17
  "camelcase": "^6.3.0",
17
18
  "joi": "^17.7.0",
18
19
  "loglevel": "^1.8.1",
19
20
  "query-string": "^7.1.3",
20
21
  "@gofynd/fp-signature": "^1.0.1",
21
- "@gofynd/flick": "^1.0.3"
22
+ "@gofynd/flick": "^1.0.6"
22
23
  },
23
24
  "devDependencies": {
24
25
  "axios-cookiejar-support": "^4.0.6",
25
26
  "axios-mock-adapter": "^1.21.2",
26
27
  "clean-webpack-plugin": "^4.0.0",
27
28
  "coveralls": "^3.1.1",
29
+ "eslint": "^8.57.0",
28
30
  "cypress": "^9.2.0",
29
31
  "dotenv": "^16.0.3",
30
32
  "jest": "^29.5.0",
package/partner.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PartnerConfig } from "./sdk/partner";
2
- import { PartnerClient } from "./sdk/partner";
3
- import { PartnerModel } from "./sdk/partner";
1
+ import { PartnerConfig } from "sdk/output/javascript/code/sdk/partner";
2
+ import { PartnerClient } from "sdk/output/javascript/code/sdk/partner";
3
+ import { PartnerModel } from "sdk/output/javascript/code/sdk/partner";
4
4
  export { PartnerConfig, PartnerClient, PartnerModel };
package/platform.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PlatformConfig } from "./sdk/platform";
2
- import { PlatformClient } from "./sdk/platform";
3
- import { PlatformModel } from "./sdk/platform";
1
+ import { PlatformConfig } from "sdk/output/javascript/code/sdk/platform";
2
+ import { PlatformClient } from "sdk/output/javascript/code/sdk/platform";
3
+ import { PlatformModel } from "sdk/output/javascript/code/sdk/platform";
4
4
  export { PlatformConfig, PlatformClient, PlatformModel };
package/public.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PublicConfig } from "./sdk/public";
2
- import { PublicClient } from "./sdk/public";
1
+ import { PublicConfig } from "sdk/output/javascript/code/sdk/public";
2
+ import { PublicClient } from "sdk/output/javascript/code/sdk/public";
3
3
  export declare const PublicModel: any;
4
4
  export { PublicConfig, PublicClient };
@@ -12,7 +12,7 @@ declare class APIClient {
12
12
  * @param {object} body
13
13
  * @param {object} xHeaders
14
14
  */
15
- static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: object, options: any): any;
15
+ static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: object, options: any): Promise<import("sdk/node_modules/axios").AxiosResponse<any, any>>;
16
16
  }
17
17
  declare namespace APIClient {
18
18
  export { Options };
@@ -47,7 +47,6 @@ class APIClient {
47
47
  headers: { ...headers, ...extraHeaders, ...xHeaders },
48
48
  responseHeaders: options.responseHeaders,
49
49
  };
50
- rawRequest = JSON.parse(JSON.stringify(rawRequest));
51
50
 
52
51
  return fdkAxios.request(rawRequest);
53
52
  }
@@ -7,7 +7,7 @@ export = ApplicationClient;
7
7
  declare class ApplicationClient {
8
8
  /** @param {import("./ApplicationConfig")} config - The application configuration. */
9
9
  constructor(config: import("./ApplicationConfig"));
10
- config: import("./ApplicationConfig");
10
+ config: import("sdk/output/javascript/code/sdk/application/ApplicationConfig");
11
11
  cart: Cart;
12
12
  catalog: Catalog;
13
13
  common: Common;
@@ -56,19 +56,19 @@ declare class ApplicationClient {
56
56
  */
57
57
  setExtraHeaders(header: object): void;
58
58
  }
59
- import Cart = require("./Cart/CartApplicationClient");
60
- import Catalog = require("./Catalog/CatalogApplicationClient");
61
- import Common = require("./Common/CommonApplicationClient");
62
- import Communication = require("./Communication/CommunicationApplicationClient");
63
- import Configuration = require("./Configuration/ConfigurationApplicationClient");
64
- import Content = require("./Content/ContentApplicationClient");
65
- import FileStorage = require("./FileStorage/FileStorageApplicationClient");
66
- import Lead = require("./Lead/LeadApplicationClient");
67
- import Logistic = require("./Logistic/LogisticApplicationClient");
68
- import Order = require("./Order/OrderApplicationClient");
69
- import Payment = require("./Payment/PaymentApplicationClient");
70
- import PosCart = require("./PosCart/PosCartApplicationClient");
71
- import Rewards = require("./Rewards/RewardsApplicationClient");
72
- import Share = require("./Share/ShareApplicationClient");
73
- import Theme = require("./Theme/ThemeApplicationClient");
74
- import User = require("./User/UserApplicationClient");
59
+ import Cart = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationClient");
60
+ import Catalog = require("sdk/output/javascript/code/sdk/application/Catalog/CatalogApplicationClient");
61
+ import Common = require("sdk/output/javascript/code/sdk/application/Common/CommonApplicationClient");
62
+ import Communication = require("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationClient");
63
+ import Configuration = require("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationClient");
64
+ import Content = require("sdk/output/javascript/code/sdk/application/Content/ContentApplicationClient");
65
+ import FileStorage = require("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationClient");
66
+ import Lead = require("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationClient");
67
+ import Logistic = require("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationClient");
68
+ import Order = require("sdk/output/javascript/code/sdk/application/Order/OrderApplicationClient");
69
+ import Payment = require("sdk/output/javascript/code/sdk/application/Payment/PaymentApplicationClient");
70
+ import PosCart = require("sdk/output/javascript/code/sdk/application/PosCart/PosCartApplicationClient");
71
+ import Rewards = require("sdk/output/javascript/code/sdk/application/Rewards/RewardsApplicationClient");
72
+ import Share = require("sdk/output/javascript/code/sdk/application/Share/ShareApplicationClient");
73
+ import Theme = require("sdk/output/javascript/code/sdk/application/Theme/ThemeApplicationClient");
74
+ import User = require("sdk/output/javascript/code/sdk/application/User/UserApplicationClient");
@@ -38,7 +38,7 @@ declare class ApplicationConfig {
38
38
  applicationID: string;
39
39
  applicationToken?: string;
40
40
  domain?: string;
41
- logLevel?: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR";
41
+ logLevel?: "DEBUG" | "TRACE" | "INFO" | "WARN" | "ERROR";
42
42
  locationDetails?: LocationObject;
43
43
  currencyCode?: string;
44
44
  }, options?: {
@@ -50,7 +50,7 @@ declare class ApplicationConfig {
50
50
  strictResponseCheck: boolean;
51
51
  };
52
52
  domain: string;
53
- logLevel: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR";
53
+ logLevel: "DEBUG" | "TRACE" | "INFO" | "WARN" | "ERROR";
54
54
  extraHeaders: any[];
55
55
  locationDetails: LocationObject;
56
56
  currencyCode: string;
@@ -59,7 +59,7 @@ declare class ApplicationConfig {
59
59
  *
60
60
  * @param {logLevelEnum} level - The log level to set.
61
61
  */
62
- setLogLevel(level: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR"): void;
62
+ setLogLevel(level: "DEBUG" | "TRACE" | "INFO" | "WARN" | "ERROR"): void;
63
63
  /**
64
64
  * Sets the cookie for the application.
65
65
  *
@@ -40,8 +40,8 @@ declare class Cart {
40
40
  * @param {import("../ApplicationAPIClient").Options} - Options
41
41
  * @returns {Promise<CartApplicationModel.SaveAddressResponse>} - Success response
42
42
  * @name addAddress
43
- * @summary: Add new address.
44
- * @description: Saves a new address for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addAddress/).
43
+ * @summary: Create a new address
44
+ * @description: Customers can add a new address to their cart to save details such as name, email, contact information, and address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addAddress/).
45
45
  */
46
46
  addAddress({ body, requestHeaders }?: CartApplicationValidator.AddAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.SaveAddressResponse>;
47
47
  /**
@@ -50,8 +50,8 @@ declare class Cart {
50
50
  * @param {import("../ApplicationAPIClient").Options} - Options
51
51
  * @returns {Promise<CartApplicationModel.AddCartDetailResponse>} - Success response
52
52
  * @name addItems
53
- * @summary: Add to cart.
54
- * @description: Adds selected items to the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/).
53
+ * @summary: Add items to a cart
54
+ * @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/).
55
55
  */
56
56
  addItems({ body, i, b, areaCode, buyNow, id, requestHeaders }?: CartApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.AddCartDetailResponse>;
57
57
  /**
@@ -60,8 +60,8 @@ declare class Cart {
60
60
  * @param {import("../ApplicationAPIClient").Options} - Options
61
61
  * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
62
62
  * @name applyCoupon
63
- * @summary: Apply coupon.
64
- * @description: Applies a coupon code to get discounts on cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/).
63
+ * @summary: Apply coupon
64
+ * @description: Apply a coupon code to the customer's cart to trigger discounts on eligible items - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/).
65
65
  */
66
66
  applyCoupon({ body, i, b, p, id, buyNow, cartType, requestHeaders }?: CartApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
67
67
  /**
@@ -70,8 +70,8 @@ declare class Cart {
70
70
  * @param {import("../ApplicationAPIClient").Options} - Options
71
71
  * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
72
72
  * @name applyRewardPoints
73
- * @summary: Use reward points.
74
- * @description: Applies user’s reward points to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/).
73
+ * @summary: Use reward points
74
+ * @description: Users can redeem their accumulated reward points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/).
75
75
  */
76
76
  applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?: CartApplicationValidator.ApplyRewardPointsParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
77
77
  /**
@@ -80,8 +80,8 @@ declare class Cart {
80
80
  * @param {import("../ApplicationAPIClient").Options} - Options
81
81
  * @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
82
82
  * @name checkoutCart
83
- * @summary: Checkout cart.
84
- * @description: Initiates the checkout process for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
83
+ * @summary: Checkout cart
84
+ * @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
85
85
  */
86
86
  checkoutCart({ body, buyNow, cartType, requestHeaders }?: CartApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartCheckoutResponse>;
87
87
  /**
@@ -90,8 +90,8 @@ declare class Cart {
90
90
  * @param {import("../ApplicationAPIClient").Options} - Options
91
91
  * @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
92
92
  * @name checkoutCartV2
93
- * @summary: Enhanced cart checkout process
94
- * @description: Initiates a more secure and detailed checkout process. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
93
+ * @summary: Start cart checkout (latest)
94
+ * @description: Enhanced version of checkout process that supports multiple mode of payment(MOP). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
95
95
  */
96
96
  checkoutCartV2({ body, buyNow, cartType, requestHeaders }?: CartApplicationValidator.CheckoutCartV2Param, { responseHeaders }?: object): Promise<CartApplicationModel.CartCheckoutResponse>;
97
97
  /**
@@ -101,8 +101,8 @@ declare class Cart {
101
101
  * @returns {Promise<CartApplicationModel.DeleteCartDetailResponse>} -
102
102
  * Success response
103
103
  * @name deleteCart
104
- * @summary: Clears the cart
105
- * @description: Removes all items and resets the user's cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/).
104
+ * @summary: Delete a cart
105
+ * @description: Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/).
106
106
  */
107
107
  deleteCart({ id, requestHeaders }?: CartApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.DeleteCartDetailResponse>;
108
108
  /**
@@ -111,8 +111,8 @@ declare class Cart {
111
111
  * @param {import("../ApplicationAPIClient").Options} - Options
112
112
  * @returns {Promise<CartApplicationModel.Address>} - Success response
113
113
  * @name getAddressById
114
- * @summary: Fetch address.
115
- * @description: Retrieves a saved address using its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddressById/).
114
+ * @summary: Get a address
115
+ * @description: Retrieve a specific customer address stored in the system by providing its unique identifier. This API provides detailed information about the address, including the recipient's name, address, city, postal code, and other relevant details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddressById/).
116
116
  */
117
117
  getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: CartApplicationValidator.GetAddressByIdParam, { responseHeaders }?: object): Promise<CartApplicationModel.Address>;
118
118
  /**
@@ -121,8 +121,8 @@ declare class Cart {
121
121
  * @param {import("../ApplicationAPIClient").Options} - Options
122
122
  * @returns {Promise<CartApplicationModel.GetAddressesResponse>} - Success response
123
123
  * @name getAddresses
124
- * @summary: Get saved addresses.
125
- * @description: Retrieve all saved addresses for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddresses/).
124
+ * @summary: List customer addresses
125
+ * @description: Retrieve a list of all addresses saved by the customer, simplifying the checkout process by offering pre-saved address options for delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddresses/).
126
126
  */
127
127
  getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: CartApplicationValidator.GetAddressesParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetAddressesResponse>;
128
128
  /**
@@ -131,8 +131,8 @@ declare class Cart {
131
131
  * @param {import("../ApplicationAPIClient").Options} - Options
132
132
  * @returns {Promise<CartApplicationModel.BulkPriceResponse>} - Success response
133
133
  * @name getBulkDiscountOffers
134
- * @summary: Bulk discounts.
135
- * @description: Lists available bulk discount offers for cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/).
134
+ * @summary: List bulk discounts
135
+ * @description: Retrieve a list of offer discounts with information about quantity and seller. One offer is marked with a "best" flag, indicating it as the best offer among the list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/).
136
136
  */
137
137
  getBulkDiscountOffers({ itemId, articleId, uid, slug, requestHeaders }?: CartApplicationValidator.GetBulkDiscountOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.BulkPriceResponse>;
138
138
  /**
@@ -141,8 +141,8 @@ declare class Cart {
141
141
  * @param {import("../ApplicationAPIClient").Options} - Options
142
142
  * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
143
143
  * @name getCart
144
- * @summary: Retrieve cart details.
145
- * @description: Retrieve the current state and items in the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/).
144
+ * @summary: Get a cart
145
+ * @description: Retrieve details of a cart linked to a specific customer using either the customer's ID or a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/).
146
146
  */
147
147
  getCart({ id, i, b, c, assignCardId, areaCode, buyNow, requestHeaders }?: CartApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
148
148
  /**
@@ -151,8 +151,8 @@ declare class Cart {
151
151
  * @param {import("../ApplicationAPIClient").Options} - Options
152
152
  * @returns {Promise<any>} - Success response
153
153
  * @name getCartLastModified
154
- * @summary: Cart modification time.
155
- * @description: Gets the last modified timestamp for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartLastModified/).
154
+ * @summary: Get last modified timestamp of a cart
155
+ * @description: Retrieve the last modified timestamp of the cart using unique cart ID. It indicates the most recent update made to the cart's content or properties. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartLastModified/).
156
156
  */
157
157
  getCartLastModified({ id, requestHeaders }?: CartApplicationValidator.GetCartLastModifiedParam, { responseHeaders }?: object): Promise<any>;
158
158
  /**
@@ -162,8 +162,8 @@ declare class Cart {
162
162
  * @returns {Promise<CartApplicationModel.GetShareCartLinkResponse>} -
163
163
  * Success response
164
164
  * @name getCartShareLink
165
- * @summary: Share cart link.
166
- * @description: Generates a shareable link for the current cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartShareLink/).
165
+ * @summary: Create share cart link
166
+ * @description: Generate a unique shareable link for the customer's cart for a specific sales channel. This link enables easy sharing of the cart contents with other users, facilitating collaborative shopping experiences. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartShareLink/).
167
167
  */
168
168
  getCartShareLink({ body, requestHeaders }?: CartApplicationValidator.GetCartShareLinkParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetShareCartLinkResponse>;
169
169
  /**
@@ -172,8 +172,8 @@ declare class Cart {
172
172
  * @param {import("../ApplicationAPIClient").Options} - Options
173
173
  * @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
174
174
  * @name getCartSharedItems
175
- * @summary: Shared cart items.
176
- * @description: Retrieves items from a shared cart link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartSharedItems/).
175
+ * @summary: List shared cart items
176
+ * @description: Retrieve the cart items from the shared cart link based on unique token. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartSharedItems/).
177
177
  */
178
178
  getCartSharedItems({ token, requestHeaders }?: CartApplicationValidator.GetCartSharedItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.SharedCartResponse>;
179
179
  /**
@@ -182,8 +182,8 @@ declare class Cart {
182
182
  * @param {import("../ApplicationAPIClient").Options} - Options
183
183
  * @returns {Promise<CartApplicationModel.GetCouponResponse>} - Success response
184
184
  * @name getCoupons
185
- * @summary: List available coupons.
186
- * @description: Retrieve coupons that can be applied to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
185
+ * @summary: List available coupons
186
+ * @description: Retrieve a list of all available coupons that customer can apply to their carts. It provides details about each coupon, including its code, discount amount, and applicable conditions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
187
187
  */
188
188
  getCoupons({ id, buyNow, slug, storeId, requestHeaders }?: CartApplicationValidator.GetCouponsParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetCouponResponse>;
189
189
  /**
@@ -192,8 +192,8 @@ declare class Cart {
192
192
  * @param {import("../ApplicationAPIClient").Options} - Options
193
193
  * @returns {Promise<CartApplicationModel.CartItemCountResponse>} - Success response
194
194
  * @name getItemCount
195
- * @summary: Count cart items.
196
- * @description: Gets the total number of items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCount/).
195
+ * @summary: Get a cart items count
196
+ * @description: Retrieve the total count of items currently present in the customer's cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCount/).
197
197
  */
198
198
  getItemCount({ id, buyNow, requestHeaders }?: CartApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartItemCountResponse>;
199
199
  /**
@@ -202,8 +202,8 @@ declare class Cart {
202
202
  * @param {import("../ApplicationAPIClient").Options} - Options
203
203
  * @returns {Promise<CartApplicationModel.LadderPriceOffers>} - Success response
204
204
  * @name getLadderOffers
205
- * @summary: Fetches ladder offers.
206
- * @description: Gets tiered discounts based on cart value. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getLadderOffers/).
205
+ * @summary: List ladder offers
206
+ * @description: Retrieve ladder offers associated for the items in the cart. Ladder offers provide discounts or special pricing based on item quantity, allowing users to benefit from bulk purchases or promotional deals. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getLadderOffers/).
207
207
  */
208
208
  getLadderOffers({ slug, storeId, promotionId, pageSize, requestHeaders }?: CartApplicationValidator.GetLadderOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.LadderPriceOffers>;
209
209
  /**
@@ -212,8 +212,8 @@ declare class Cart {
212
212
  * @param {import("../ApplicationAPIClient").Options} - Options
213
213
  * @returns {Promise<CartApplicationModel.PromotionOffersResponse>} - Success response
214
214
  * @name getPromotionOffers
215
- * @summary: Retrieves promotional offers
216
- * @description: Lists all available promotional offers for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/).
215
+ * @summary: List available promotion offers
216
+ * @description: Retrieve a list of all promotional offers available for the items in the cart, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/).
217
217
  */
218
218
  getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders }?: CartApplicationValidator.GetPromotionOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.PromotionOffersResponse>;
219
219
  /**
@@ -222,8 +222,8 @@ declare class Cart {
222
222
  * @param {import("../ApplicationAPIClient").Options} - Options
223
223
  * @returns {Promise<CartApplicationModel.CartShipmentsResponse>} - Success response
224
224
  * @name getShipments
225
- * @summary: List shipments.
226
- * @description: Retrieve shipment details for items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getShipments/).
225
+ * @summary: List shipments
226
+ * @description: Retrieve shipment details for the items in a cart, specific to the selected address. Shipment details include delivery promises, seller information, item details, and other relevant information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getShipments/).
227
227
  */
228
228
  getShipments({ p, id, buyNow, addressId, areaCode, orderType, requestHeaders }?: CartApplicationValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartShipmentsResponse>;
229
229
  /**
@@ -232,8 +232,8 @@ declare class Cart {
232
232
  * @param {import("../ApplicationAPIClient").Options} - Options
233
233
  * @returns {Promise<CartApplicationModel.DeleteAddressResponse>} - Success response
234
234
  * @name removeAddress
235
- * @summary: Delete address.
236
- * @description: Removes a saved address from the user's profile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
235
+ * @summary: Delete a address
236
+ * @description: Removes an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
237
237
  */
238
238
  removeAddress({ id, requestHeaders }?: CartApplicationValidator.RemoveAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.DeleteAddressResponse>;
239
239
  /**
@@ -242,8 +242,8 @@ declare class Cart {
242
242
  * @param {import("../ApplicationAPIClient").Options} - Options
243
243
  * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
244
244
  * @name removeCoupon
245
- * @summary: Remove coupon.
246
- * @description: Removes an applied coupon from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/).
245
+ * @summary: Remove coupon
246
+ * @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/).
247
247
  */
248
248
  removeCoupon({ id, buyNow, requestHeaders }?: CartApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
249
249
  /**
@@ -252,8 +252,8 @@ declare class Cart {
252
252
  * @param {import("../ApplicationAPIClient").Options} - Options
253
253
  * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
254
254
  * @name selectAddress
255
- * @summary: Choose delivery address.
256
- * @description: Selects an address for the cart's delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectAddress/).
255
+ * @summary: Select a delivery address
256
+ * @description: Selects an address from the saved customer addresses and validates the availability of items in the cart. Additionally, it verifies and updates the delivery promise based on the selected address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectAddress/).
257
257
  */
258
258
  selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: CartApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
259
259
  /**
@@ -262,8 +262,8 @@ declare class Cart {
262
262
  * @param {import("../ApplicationAPIClient").Options} - Options
263
263
  * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
264
264
  * @name selectPaymentMode
265
- * @summary: Pick payment method.
266
- * @description: Chooses a payment mode for the checkout process. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectPaymentMode/).
265
+ * @summary: Select payment mode
266
+ * @description: Customers can select a preferred payment mode from available options during the cart checkout process to securely and efficiently complete their transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectPaymentMode/).
267
267
  */
268
268
  selectPaymentMode({ body, id, buyNow, requestHeaders }?: CartApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
269
269
  /**
@@ -272,8 +272,8 @@ declare class Cart {
272
272
  * @param {import("../ApplicationAPIClient").Options} - Options
273
273
  * @returns {Promise<CartApplicationModel.UpdateAddressResponse>} - Success response
274
274
  * @name updateAddress
275
- * @summary: Update address.
276
- * @description: Modifies a saved address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateAddress/).
275
+ * @summary: Update a address
276
+ * @description: Customer can modify the details of a previously saved addresses. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateAddress/).
277
277
  */
278
278
  updateAddress({ id, body, requestHeaders }?: CartApplicationValidator.UpdateAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.UpdateAddressResponse>;
279
279
  /**
@@ -283,8 +283,8 @@ declare class Cart {
283
283
  * @returns {Promise<CartApplicationModel.UpdateCartDetailResponse>} -
284
284
  * Success response
285
285
  * @name updateCart
286
- * @summary: Update cart.
287
- * @description: Modifies items and quantities in the existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
286
+ * @summary: Update cart items
287
+ * @description: Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
288
288
  */
289
289
  updateCart({ body, id, i, b, areaCode, buyNow, cartType, requestHeaders }?: CartApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.UpdateCartDetailResponse>;
290
290
  /**
@@ -293,8 +293,8 @@ declare class Cart {
293
293
  * @param {import("../ApplicationAPIClient").Options} - Options
294
294
  * @returns {Promise<CartApplicationModel.CartMetaResponse>} - Success response
295
295
  * @name updateCartMeta
296
- * @summary: Update cart metadata.
297
- * @description: Adds or modifies metadata for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartMeta/).
296
+ * @summary: Update cart metadata
297
+ * @description: Add or modify metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartMeta/).
298
298
  */
299
299
  updateCartMeta({ body, id, buyNow, requestHeaders }?: CartApplicationValidator.UpdateCartMetaParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartMetaResponse>;
300
300
  /**
@@ -303,8 +303,8 @@ declare class Cart {
303
303
  * @param {import("../ApplicationAPIClient").Options} - Options
304
304
  * @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
305
305
  * @name updateCartWithSharedItems
306
- * @summary: Update with shared items.
307
- * @description: Updates the cart with items from a shared link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
306
+ * @summary: Update with shared items
307
+ * @description: Customer can either merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
308
308
  */
309
309
  updateCartWithSharedItems({ token, action, requestHeaders }?: CartApplicationValidator.UpdateCartWithSharedItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.SharedCartResponse>;
310
310
  /**
@@ -313,10 +313,10 @@ declare class Cart {
313
313
  * @param {import("../ApplicationAPIClient").Options} - Options
314
314
  * @returns {Promise<CartApplicationModel.PaymentCouponValidate>} - Success response
315
315
  * @name validateCouponForPayment
316
- * @summary: Validate coupon.
317
- * @description: Checks if a coupon is valid for the selected payment mode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/validateCouponForPayment/).
316
+ * @summary: Validate applied coupon
317
+ * @description: Validate the applicability of a coupon code for the selected payment mode for the existing cart. This ensures the coupon's validity before proceeding with the payment process, enhancing user experience and preventing potential errors during transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/validateCouponForPayment/).
318
318
  */
319
319
  validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, cartType, requestHeaders, }?: CartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<CartApplicationModel.PaymentCouponValidate>;
320
320
  }
321
- import CartApplicationValidator = require("./CartApplicationValidator");
322
- import CartApplicationModel = require("./CartApplicationModel");
321
+ import CartApplicationValidator = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationValidator");
322
+ import CartApplicationModel = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationModel");