@gofynd/fdk-client-javascript 1.1.2 → 1.1.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 (120) hide show
  1. package/README.md +2 -2
  2. package/index.d.ts +7 -7
  3. package/index.js +12 -12
  4. package/package.json +1 -1
  5. package/sdk/application/ApplicationClient.d.ts +20 -20
  6. package/sdk/application/ApplicationClient.js +26 -26
  7. package/sdk/application/Cart/CartApplicationClient.d.ts +36 -6
  8. package/sdk/application/Cart/CartApplicationClient.js +105 -10
  9. package/sdk/application/Cart/CartApplicationModel.d.ts +9 -0
  10. package/sdk/application/Cart/CartApplicationModel.js +105 -1
  11. package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -0
  12. package/sdk/application/Cart/CartApplicationValidator.js +15 -1
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1 -0
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +13 -0
  15. package/sdk/application/Common/CommonApplicationModel.js +4 -0
  16. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +14 -10
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -10
  18. package/sdk/application/Configuration/ConfigurationApplicationModel.js +6 -5
  19. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
  20. package/sdk/application/Content/ContentApplicationModel.js +3 -1
  21. package/sdk/application/Lead/LeadApplicationModel.js +4 -1
  22. package/sdk/application/Logistic/LogisticApplicationModel.js +3 -2
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +2 -2
  24. package/sdk/application/Order/OrderApplicationClient.js +2 -2
  25. package/sdk/application/Order/OrderApplicationModel.js +18 -8
  26. package/sdk/application/Payment/PaymentApplicationClient.d.ts +35 -0
  27. package/sdk/application/Payment/PaymentApplicationClient.js +200 -0
  28. package/sdk/application/Payment/PaymentApplicationModel.d.ts +4 -0
  29. package/sdk/application/Payment/PaymentApplicationModel.js +58 -7
  30. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +3 -0
  31. package/sdk/application/Payment/PaymentApplicationValidator.js +19 -0
  32. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +16 -3
  33. package/sdk/application/PosCart/PosCartApplicationClient.js +39 -6
  34. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +6 -0
  35. package/sdk/application/PosCart/PosCartApplicationModel.js +63 -1
  36. package/sdk/application/PosCart/PosCartApplicationValidator.js +6 -0
  37. package/sdk/application/index.d.ts +10 -10
  38. package/sdk/application/index.js +13 -13
  39. package/sdk/common/Constant.d.ts +5 -0
  40. package/sdk/common/Constant.js +5 -0
  41. package/sdk/partner/OAuthClient.js +1 -1
  42. package/sdk/platform/Billing/BillingPlatformModel.js +6 -1
  43. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +491 -2
  44. package/sdk/platform/Cart/CartPlatformApplicationClient.js +2661 -337
  45. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +32 -0
  46. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +269 -0
  47. package/sdk/platform/Cart/CartPlatformModel.d.ts +58 -0
  48. package/sdk/platform/Cart/CartPlatformModel.js +652 -3
  49. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +8 -2
  50. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +10 -0
  51. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
  52. package/sdk/platform/Catalog/CatalogPlatformClient.js +2 -2
  53. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1 -0
  54. package/sdk/platform/Catalog/CatalogPlatformModel.js +43 -31
  55. package/sdk/platform/Common/CommonPlatformModel.js +4 -0
  56. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1 -0
  57. package/sdk/platform/Communication/CommunicationPlatformModel.js +9 -0
  58. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -2
  59. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +2 -2
  60. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +5 -4
  61. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +99 -78
  62. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +99 -78
  63. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +87 -71
  64. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +87 -71
  65. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -0
  66. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +34 -7
  67. package/sdk/platform/Content/ContentPlatformModel.js +3 -1
  68. package/sdk/platform/Finance/FinancePlatformClient.d.ts +135 -0
  69. package/sdk/platform/Finance/FinancePlatformClient.js +853 -0
  70. package/sdk/platform/Finance/FinancePlatformModel.d.ts +51 -0
  71. package/sdk/platform/Finance/FinancePlatformModel.js +342 -0
  72. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +16 -0
  73. package/sdk/platform/Finance/FinancePlatformValidator.js +84 -0
  74. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +11 -1
  75. package/sdk/platform/Order/OrderPlatformApplicationClient.js +66 -2
  76. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -0
  77. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -0
  78. package/sdk/platform/Order/OrderPlatformClient.d.ts +161 -79
  79. package/sdk/platform/Order/OrderPlatformClient.js +546 -114
  80. package/sdk/platform/Order/OrderPlatformModel.d.ts +42 -6
  81. package/sdk/platform/Order/OrderPlatformModel.js +569 -159
  82. package/sdk/platform/Order/OrderPlatformValidator.d.ts +6 -0
  83. package/sdk/platform/Order/OrderPlatformValidator.js +52 -9
  84. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +22 -0
  85. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +127 -0
  86. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +2 -0
  87. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +13 -0
  88. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +145 -0
  89. package/sdk/platform/Partner/PartnerPlatformClient.js +799 -0
  90. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +39 -0
  91. package/sdk/platform/Partner/PartnerPlatformModel.js +367 -0
  92. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +14 -0
  93. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -0
  94. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +221 -0
  95. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1476 -190
  96. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +20 -0
  97. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +126 -0
  98. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +48 -0
  99. package/sdk/platform/Payment/PaymentPlatformModel.js +452 -7
  100. package/sdk/platform/PlatformApplicationClient.d.ts +1249 -937
  101. package/sdk/platform/PlatformApplicationClient.js +1366 -1033
  102. package/sdk/platform/PlatformClient.d.ts +10979 -8771
  103. package/sdk/platform/PlatformClient.js +11874 -9197
  104. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +134 -0
  105. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +852 -0
  106. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +16 -0
  107. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +81 -0
  108. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +223 -0
  109. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1296 -0
  110. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +97 -0
  111. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +778 -0
  112. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +21 -0
  113. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +130 -0
  114. package/sdk/platform/index.d.ts +16 -14
  115. package/sdk/platform/index.js +22 -18
  116. package/sdk/public/Configuration/ConfigurationPublicModel.js +5 -0
  117. package/sdk/public/PublicClient.d.ts +2 -2
  118. package/sdk/public/PublicClient.js +4 -4
  119. package/sdk/public/index.d.ts +1 -1
  120. package/sdk/public/index.js +2 -2
@@ -16,8 +16,8 @@ class Configuration {
16
16
  * @param {Object} arg - Arg object.
17
17
  * @param {DomainAddRequest} arg.body
18
18
  * @returns {Promise<Domain>} - Success response
19
- * @summary: Add new domain to application
20
- * @description: Add new domain to application.
19
+ * @summary: Add new domain to current sales channel
20
+ * @description: Add a new domain to current sales channel, including pre-defined domain (free domain) or custom domain (owned by the brand)
21
21
  */
22
22
  async addDomain({ body } = {}) {
23
23
  const { error } = ConfigurationValidator.addDomain().validate(
@@ -75,8 +75,8 @@ class Configuration {
75
75
  * @param {Object} arg - Arg object.
76
76
  * @param {UpdateDomainTypeRequest} arg.body
77
77
  * @returns {Promise<DomainsResponse>} - Success response
78
- * @summary: Change domain type
79
- * @description: Change a domain to Primary or Shortlink domain
78
+ * @summary: Change the type of domain in the current sales channel
79
+ * @description: Primary domain is used as the URL of your website. Short link domain is comparatively smaller and used while generating short links. Use this API to change a domain to either Primary or a Shortlink domain.
80
80
  */
81
81
  async changeDomainType({ body } = {}) {
82
82
  const { error } = ConfigurationValidator.changeDomainType().validate(
@@ -137,8 +137,8 @@ class Configuration {
137
137
  /**
138
138
  * @param {Object} arg - Arg object.
139
139
  * @returns {Promise<TokenResponse>} - Success response
140
- * @summary: Get social tokens
141
- * @description: Get social tokens.
140
+ * @summary: Get social tokens for the sales channel
141
+ * @description: Use this API to retrieve the tokens used for integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, Google, and Facebook auth. **Note** - Token values are encrypted with AES encryption using a secret key.
142
142
  */
143
143
  async getAppApiTokens({} = {}) {
144
144
  const { error } = ConfigurationValidator.getAppApiTokens().validate(
@@ -195,8 +195,8 @@ class Configuration {
195
195
  /**
196
196
  * @param {Object} arg - Arg object.
197
197
  * @returns {Promise<ApplicationDetail>} - Success response
198
- * @summary: Get basic application details
199
- * @description: Get basic application details like name
198
+ * @summary: Get sales channel details
199
+ * @description: Shows basic sales channel details like name, description, logo, domain, company ID, and other related information.
200
200
  */
201
201
  async getAppBasicDetails({} = {}) {
202
202
  const { error } = ConfigurationValidator.getAppBasicDetails().validate(
@@ -252,12 +252,14 @@ class Configuration {
252
252
 
253
253
  /**
254
254
  * @param {Object} arg - Arg object.
255
- * @param {number} [arg.uid] - Uid of companies to be fetched
256
- * @param {number} [arg.pageNo] - Current page no
257
- * @param {number} [arg.pageSize] - Current request items count
255
+ * @param {number} [arg.uid] - UID of companies to be fetched
256
+ * @param {number} [arg.pageNo] - The current page number to navigate
257
+ * through the given set of results. Default value is 1.
258
+ * @param {number} [arg.pageSize] - The number of items to retrieve in each
259
+ * page. Default value is 10.
258
260
  * @returns {Promise<CompaniesResponse>} - Success response
259
- * @summary: Application inventory enabled companies
260
- * @description: Application inventory enabled companies.
261
+ * @summary: Get companies enabled in the sales channel inventory
262
+ * @description: Fetch info of all the companies (e.g. name, uid, and company type) whose inventory is fetched into the current sales channel application
261
263
  */
262
264
  async getAppCompanies({ uid, pageNo, pageSize } = {}) {
263
265
  const { error } = ConfigurationValidator.getAppCompanies().validate(
@@ -324,12 +326,15 @@ class Configuration {
324
326
 
325
327
  /**
326
328
  * @param {Object} arg - Arg object.
327
- * @param {string} arg.companyId - Current company id
328
- * @param {string} arg.applicationId - Current application id
329
- * @param {number} [arg.uid] - Uid of companies to be fetched
330
- * @param {number} [arg.pageSize] - Current request items count
331
- * @summary: Application inventory enabled companies
332
- * @description: Application inventory enabled companies.
329
+ * @param {string} arg.companyId - Numeric ID allotted to a business account
330
+ * on Fynd Platform
331
+ * @param {string} arg.applicationId - Alphanumeric ID allotted to an
332
+ * application (sales channel website) created within a business account
333
+ * @param {number} [arg.uid] - UID of companies to be fetched
334
+ * @param {number} [arg.pageSize] - The number of items to retrieve in each
335
+ * page. Default value is 10.
336
+ * @summary: Get companies enabled in the sales channel inventory
337
+ * @description: Fetch info of all the companies (e.g. name, uid, and company type) whose inventory is fetched into the current sales channel application
333
338
  */
334
339
  getAppCompaniesPaginator({ companyId, applicationId, uid, pageSize } = {}) {
335
340
  const paginator = new Paginator();
@@ -357,8 +362,8 @@ class Configuration {
357
362
  /**
358
363
  * @param {Object} arg - Arg object.
359
364
  * @returns {Promise<ApplicationInformation>} - Success response
360
- * @summary: Get application information
361
- * @description: Get Application Current Information. This includes information about social links, address and contact information of company/seller/brand of the application.
365
+ * @summary: Get current information of the sales channel
366
+ * @description: Fetch data such as social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the application.
362
367
  */
363
368
  async getAppContactInfo({} = {}) {
364
369
  const { error } = ConfigurationValidator.getAppContactInfo().validate(
@@ -415,8 +420,8 @@ class Configuration {
415
420
  /**
416
421
  * @param {Object} arg - Arg object.
417
422
  * @returns {Promise<AppSupportedCurrency>} - Success response
418
- * @summary: Get application enabled currency list
419
- * @description: Get application enabled currency list
423
+ * @summary: Get currencies supported in the application
424
+ * @description: Get a list of currencies supported in the current sales channel. Moreover, get the cuurency that is set as the default one in the application.
420
425
  */
421
426
  async getAppCurrencyConfig({} = {}) {
422
427
  const { error } = ConfigurationValidator.getAppCurrencyConfig().validate(
@@ -473,8 +478,8 @@ class Configuration {
473
478
  /**
474
479
  * @param {Object} arg - Arg object.
475
480
  * @returns {Promise<AppFeatureResponse>} - Success response
476
- * @summary: Get features of application
477
- * @description: Get features of application
481
+ * @summary: Get the sales channel configuration and features
482
+ * @description: Shows feature configuration of sales channel websites, such as product detail, landing page, options in the login/registration screen, home page, listing page, reward points, communication opt-in, cart options and many more.
478
483
  */
479
484
  async getAppFeatures({} = {}) {
480
485
  const { error } = ConfigurationValidator.getAppFeatures().validate(
@@ -530,11 +535,13 @@ class Configuration {
530
535
 
531
536
  /**
532
537
  * @param {Object} arg - Arg object.
533
- * @param {number} [arg.pageNo] - Current page no
534
- * @param {number} [arg.pageSize] - Current request items count
538
+ * @param {number} [arg.pageNo] - The current page number to navigate
539
+ * through the given set of results. Default value is 1.
540
+ * @param {number} [arg.pageSize] - The number of items to retrieve in each
541
+ * page. Default value is 10.
535
542
  * @returns {Promise<StoresResponse>} - Success response
536
- * @summary: Application inventory enabled stores
537
- * @description: Application inventory enabled stores.
543
+ * @summary: Get stores enabled in the sales channel inventory
544
+ * @description: Fetch info of all the companies (e.g. uid, name, display name, store type, store code and company id) whose inventory is fetched into the current sales channel application
538
545
  */
539
546
  async getAppStores({ pageNo, pageSize } = {}) {
540
547
  const { error } = ConfigurationValidator.getAppStores().validate(
@@ -596,11 +603,14 @@ class Configuration {
596
603
 
597
604
  /**
598
605
  * @param {Object} arg - Arg object.
599
- * @param {string} arg.companyId - Current company id
600
- * @param {string} arg.applicationId - Current application id
601
- * @param {number} [arg.pageSize] - Current request items count
602
- * @summary: Application inventory enabled stores
603
- * @description: Application inventory enabled stores.
606
+ * @param {string} arg.companyId - Numeric ID allotted to a business account
607
+ * on Fynd Platform
608
+ * @param {string} arg.applicationId - Alphanumeric ID allotted to an
609
+ * application (sales channel website) created within a business account
610
+ * @param {number} [arg.pageSize] - The number of items to retrieve in each
611
+ * page. Default value is 10.
612
+ * @summary: Get stores enabled in the sales channel inventory
613
+ * @description: Fetch info of all the companies (e.g. uid, name, display name, store type, store code and company id) whose inventory is fetched into the current sales channel application
604
614
  */
605
615
  getAppStoresPaginator({ companyId, applicationId, pageSize } = {}) {
606
616
  const paginator = new Paginator();
@@ -685,8 +695,8 @@ class Configuration {
685
695
  /**
686
696
  * @param {Object} arg - Arg object.
687
697
  * @returns {Promise<Application>} - Success response
688
- * @summary: Get application data from id
689
- * @description: Get application data from id
698
+ * @summary: Get sales channel data by ID
699
+ * @description: Use application ID to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, token, etc.
690
700
  */
691
701
  async getApplicationById({} = {}) {
692
702
  const { error } = ConfigurationValidator.getApplicationById().validate(
@@ -742,10 +752,11 @@ class Configuration {
742
752
 
743
753
  /**
744
754
  * @param {Object} arg - Arg object.
745
- * @param {string} arg.platformType - Current platform name
755
+ * @param {string} arg.platformType - The device platform for which the
756
+ * mobile app is built, e.g. android, ios.
746
757
  * @returns {Promise<MobileAppConfiguration>} - Success response
747
- * @summary: Get latest build config
748
- * @description: Get latest build config
758
+ * @summary: Get configuration of latest mobile build
759
+ * @description: Fetch latest build configuration, such as app name, landing page image, splash image used in a mobile build.
749
760
  */
750
761
  async getBuildConfig({ platformType } = {}) {
751
762
  const { error } = ConfigurationValidator.getBuildConfig().validate(
@@ -807,8 +818,8 @@ class Configuration {
807
818
  * @param {Object} arg - Arg object.
808
819
  * @param {DomainStatusRequest} arg.body
809
820
  * @returns {Promise<DomainStatusResponse>} - Success response
810
- * @summary: Get domain connected status.
811
- * @description: Get domain connected status. Check if domain is live and mapped to appropriate IP to fynd servers.
821
+ * @summary: Get the status of connected domain
822
+ * @description: Shows if the A records and TXT records of the domain correctly points to appropriate IP on Fynd Servers.
812
823
  */
813
824
  async getDomainStatus({ body } = {}) {
814
825
  const { error } = ConfigurationValidator.getDomainStatus().validate(
@@ -869,8 +880,8 @@ class Configuration {
869
880
  /**
870
881
  * @param {Object} arg - Arg object.
871
882
  * @returns {Promise<DomainsResponse>} - Success response
872
- * @summary: Get attached domain list
873
- * @description: Get attached domain list.
883
+ * @summary: Fetch all the domains added to an application (sales channel website), including pre-defined domain (free domain) or custom domain (owned by the brand). Know the verification status of each domain name, and find out which one is the primary domain, short link domain, or both.
884
+ * @description: Get list of domains
874
885
  */
875
886
  async getDomains({} = {}) {
876
887
  const { error } = ConfigurationValidator.getDomains().validate(
@@ -925,8 +936,8 @@ class Configuration {
925
936
  /**
926
937
  * @param {Object} arg - Arg object.
927
938
  * @returns {Promise<ApplicationInventory>} - Success response
928
- * @summary: Get application configuration
929
- * @description: Get application configuration for various features and data
939
+ * @summary: Get sales channel configuration
940
+ * @description: Use this API to fetch configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc.
930
941
  */
931
942
  async getInventoryConfig({} = {}) {
932
943
  const { error } = ConfigurationValidator.getInventoryConfig().validate(
@@ -982,12 +993,14 @@ class Configuration {
982
993
 
983
994
  /**
984
995
  * @param {Object} arg - Arg object.
985
- * @param {number} [arg.pageNo] - Current page no
986
- * @param {number} [arg.pageSize] - Current request items count
996
+ * @param {number} [arg.pageNo] - The page number to navigate through the
997
+ * given set of results. Default value is 1.
998
+ * @param {number} [arg.pageSize] - The number of items to retrieve in each
999
+ * page. Default value is 10.
987
1000
  * @param {FilterOrderingStoreRequest} arg.body
988
1001
  * @returns {Promise<OrderingStores>} - Success response
989
1002
  * @summary: Get ordering store by filter
990
- * @description: Get ordering store by filter
1003
+ * @description: Use this API to use filters and retrieve the details of the deployment stores (the selling locations where the application will be utilised for placing orders).
991
1004
  */
992
1005
  async getOrderingStoresByFilter({ body, pageNo, pageSize } = {}) {
993
1006
  const {
@@ -1055,12 +1068,15 @@ class Configuration {
1055
1068
 
1056
1069
  /**
1057
1070
  * @param {Object} arg - Arg object.
1058
- * @param {string} arg.companyId - Current company id
1059
- * @param {string} arg.applicationId - Current application id
1060
- * @param {number} [arg.pageSize] - Current request items count
1071
+ * @param {string} arg.companyId - Numeric ID allotted to a business account
1072
+ * on Fynd Platform
1073
+ * @param {string} arg.applicationId - Alphanumeric ID allotted to an
1074
+ * application (sales channel website) created within a business account
1075
+ * @param {number} [arg.pageSize] - The number of items to retrieve in each
1076
+ * page. Default value is 10.
1061
1077
  * @param {FilterOrderingStoreRequest} arg.body
1062
1078
  * @summary: Get ordering store by filter
1063
- * @description: Get ordering store by filter
1079
+ * @description: Use this API to use filters and retrieve the details of the deployment stores (the selling locations where the application will be utilised for placing orders).
1064
1080
  */
1065
1081
  getOrderingStoresByFilterPaginator({
1066
1082
  companyId,
@@ -1092,10 +1108,11 @@ class Configuration {
1092
1108
 
1093
1109
  /**
1094
1110
  * @param {Object} arg - Arg object.
1095
- * @param {string} arg.platformType - Current platform name
1111
+ * @param {string} arg.platformType - The device platform for which the
1112
+ * mobile app is built, e.g. android, ios.
1096
1113
  * @returns {Promise<BuildVersionHistory>} - Success response
1097
- * @summary: Get previous build versions
1098
- * @description: Get previous build versions
1114
+ * @summary: Get details of previous mobile builds
1115
+ * @description: Fetch version details of the app, this includes the build status, build date, version name, latest version, and a lot more.
1099
1116
  */
1100
1117
  async getPreviousVersions({ platformType } = {}) {
1101
1118
  const { error } = ConfigurationValidator.getPreviousVersions().validate(
@@ -1229,8 +1246,10 @@ class Configuration {
1229
1246
 
1230
1247
  /**
1231
1248
  * @param {Object} arg - Arg object.
1232
- * @param {string} arg.companyId - Current company id
1233
- * @param {string} arg.applicationId - Current application id
1249
+ * @param {string} arg.companyId - Numeric ID allotted to a business account
1250
+ * on Fynd Platform
1251
+ * @param {string} arg.applicationId - Alphanumeric ID allotted to an
1252
+ * application (sales channel website) created within a business account
1234
1253
  * @param {number} [arg.pageSize] - The number of items to retrieve in each
1235
1254
  * page. Default value is 10.
1236
1255
  * @param {string} [arg.q] - Store code or name of the ordering store.
@@ -1332,8 +1351,8 @@ class Configuration {
1332
1351
  * @param {Object} arg - Arg object.
1333
1352
  * @param {AppInventoryPartialUpdate} arg.body
1334
1353
  * @returns {Promise<ApplicationInventory>} - Success response
1335
- * @summary: Partially update application configuration
1336
- * @description: Partially update application configuration for various features and data
1354
+ * @summary: Partially update sales channel configuration
1355
+ * @description: Partially update the configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc.
1337
1356
  */
1338
1357
  async partiallyUpdateInventoryConfig({ body } = {}) {
1339
1358
  const {
@@ -1397,10 +1416,11 @@ class Configuration {
1397
1416
 
1398
1417
  /**
1399
1418
  * @param {Object} arg - Arg object.
1400
- * @param {string} arg.id - Domain _id
1419
+ * @param {string} arg.id - The unique identifier (24-digit Mongo Object ID)
1420
+ * of the domain
1401
1421
  * @returns {Promise<SuccessMessageResponse>} - Success response
1402
- * @summary: Remove attached domain
1403
- * @description: Remove attached domain.
1422
+ * @summary: Remove attached domain from current sales channel
1423
+ * @description: Delete a domain (secondary or shortlink domain) added to a sales channel. It will disable user's access to website, shared links, and other features associated with this domain.
1404
1424
  */
1405
1425
  async removeDomainById({ id } = {}) {
1406
1426
  const { error } = ConfigurationValidator.removeDomainById().validate(
@@ -1462,8 +1482,8 @@ class Configuration {
1462
1482
  * @param {Object} arg - Arg object.
1463
1483
  * @param {TokenResponse} arg.body
1464
1484
  * @returns {Promise<TokenResponse>} - Success response
1465
- * @summary: Add social tokens
1466
- * @description: Add social tokens.
1485
+ * @summary: Add or update social tokens for the sales channel
1486
+ * @description: Use this API to add or edit the tokens used for integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, Google and Facebook auth.
1467
1487
  */
1468
1488
  async updateAppApiTokens({ body } = {}) {
1469
1489
  const { error } = ConfigurationValidator.updateAppApiTokens().validate(
@@ -1525,8 +1545,8 @@ class Configuration {
1525
1545
  * @param {Object} arg - Arg object.
1526
1546
  * @param {ApplicationDetail} arg.body
1527
1547
  * @returns {Promise<ApplicationDetail>} - Success response
1528
- * @summary: Add or update application's basic details
1529
- * @description: Add or update application's basic details
1548
+ * @summary: Update sales channel details
1549
+ * @description: Modify sales channel details like name, description, logo, domain, company ID, and other related information.
1530
1550
  */
1531
1551
  async updateAppBasicDetails({ body } = {}) {
1532
1552
  const { error } = ConfigurationValidator.updateAppBasicDetails().validate(
@@ -1588,8 +1608,8 @@ class Configuration {
1588
1608
  * @param {Object} arg - Arg object.
1589
1609
  * @param {ApplicationInformation} arg.body
1590
1610
  * @returns {Promise<ApplicationInformation>} - Success response
1591
- * @summary: Get application information
1592
- * @description: Save Application Current Information. This includes information about social links, address and contact information of an application.
1611
+ * @summary: Save or update current information of the sales channel
1612
+ * @description: Modify the social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the application.
1593
1613
  */
1594
1614
  async updateAppContactInfo({ body } = {}) {
1595
1615
  const { error } = ConfigurationValidator.updateAppContactInfo().validate(
@@ -1651,8 +1671,8 @@ class Configuration {
1651
1671
  * @param {Object} arg - Arg object.
1652
1672
  * @param {AppSupportedCurrency} arg.body
1653
1673
  * @returns {Promise<AppSupportedCurrency>} - Success response
1654
- * @summary: Add initial application supported currency
1655
- * @description: Add initial application supported currency for various features and data. Default INR will be enabled.
1674
+ * @summary: Update initial sales channel supported currency
1675
+ * @description: Use this API to add and edit the currencies supported in the application. Initially, INR will be enabled by default.
1656
1676
  */
1657
1677
  async updateAppCurrencyConfig({ body } = {}) {
1658
1678
  const { error } = ConfigurationValidator.updateAppCurrencyConfig().validate(
@@ -1714,8 +1734,8 @@ class Configuration {
1714
1734
  * @param {Object} arg - Arg object.
1715
1735
  * @param {AppFeatureRequest} arg.body
1716
1736
  * @returns {Promise<AppFeature>} - Success response
1717
- * @summary: Update features of application
1718
- * @description: Update features of application
1737
+ * @summary: Update the sales channel configuration and features
1738
+ * @description: Modify the feature configuration of sales channel websites, such as product detail, landing page, options in the login/registration screen, home page, listing page, reward points, communication opt-in, cart options and many more.
1719
1739
  */
1720
1740
  async updateAppFeatures({ body } = {}) {
1721
1741
  const { error } = ConfigurationValidator.updateAppFeatures().validate(
@@ -1775,11 +1795,12 @@ class Configuration {
1775
1795
 
1776
1796
  /**
1777
1797
  * @param {Object} arg - Arg object.
1778
- * @param {string} arg.platformType - Current platform name
1798
+ * @param {string} arg.platformType - The device platform for which the
1799
+ * mobile app is built, e.g. android, ios.
1779
1800
  * @param {MobileAppConfigRequest} arg.body
1780
1801
  * @returns {Promise<MobileAppConfiguration>} - Success response
1781
- * @summary: Update build config for next build
1782
- * @description: Update build config for next build
1802
+ * @summary: Update the configuration for next mobile build
1803
+ * @description: Modify the existing build configuration, such as app name, landing page image, splash image used in a mobile build.
1783
1804
  */
1784
1805
  async updateBuildConfig({ platformType, body } = {}) {
1785
1806
  const { error } = ConfigurationValidator.updateBuildConfig().validate(
@@ -1843,8 +1864,8 @@ class Configuration {
1843
1864
  * @param {Object} arg - Arg object.
1844
1865
  * @param {ApplicationInventory} arg.body
1845
1866
  * @returns {Promise<ApplicationInventory>} - Success response
1846
- * @summary: Update application configuration
1847
- * @description: Update application configuration for various features and data
1867
+ * @summary: Update sales channel configuration
1868
+ * @description: Modify the configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc.
1848
1869
  */
1849
1870
  async updateInventoryConfig({ body } = {}) {
1850
1871
  const { error } = ConfigurationValidator.updateInventoryConfig().validate(
@@ -1907,7 +1928,7 @@ class Configuration {
1907
1928
  * @param {OrderingStoreConfig} arg.body
1908
1929
  * @returns {Promise<DeploymentMeta>} - Success response
1909
1930
  * @summary: Add/Update ordering store config
1910
- * @description: Add/Update ordering store config.
1931
+ * @description: Use this API to edit the details of the deployment stores (the selling locations where the application will be utilised for placing orders)
1911
1932
  */
1912
1933
  async updateOrderingStoreConfig({ body } = {}) {
1913
1934
  const {