@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.
- package/README.md +2 -2
- package/index.d.ts +7 -7
- package/index.js +12 -12
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +20 -20
- package/sdk/application/ApplicationClient.js +26 -26
- package/sdk/application/Cart/CartApplicationClient.d.ts +36 -6
- package/sdk/application/Cart/CartApplicationClient.js +105 -10
- package/sdk/application/Cart/CartApplicationModel.d.ts +9 -0
- package/sdk/application/Cart/CartApplicationModel.js +105 -1
- package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -0
- package/sdk/application/Cart/CartApplicationValidator.js +15 -1
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1 -0
- package/sdk/application/Catalog/CatalogApplicationModel.js +13 -0
- package/sdk/application/Common/CommonApplicationModel.js +4 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +14 -10
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -10
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +6 -5
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
- package/sdk/application/Content/ContentApplicationModel.js +3 -1
- package/sdk/application/Lead/LeadApplicationModel.js +4 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +3 -2
- package/sdk/application/Order/OrderApplicationClient.d.ts +2 -2
- package/sdk/application/Order/OrderApplicationClient.js +2 -2
- package/sdk/application/Order/OrderApplicationModel.js +18 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +35 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +200 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +4 -0
- package/sdk/application/Payment/PaymentApplicationModel.js +58 -7
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +3 -0
- package/sdk/application/Payment/PaymentApplicationValidator.js +19 -0
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +16 -3
- package/sdk/application/PosCart/PosCartApplicationClient.js +39 -6
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +6 -0
- package/sdk/application/PosCart/PosCartApplicationModel.js +63 -1
- package/sdk/application/PosCart/PosCartApplicationValidator.js +6 -0
- package/sdk/application/index.d.ts +10 -10
- package/sdk/application/index.js +13 -13
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -0
- package/sdk/partner/OAuthClient.js +1 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +6 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +491 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +2661 -337
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +32 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +269 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +58 -0
- package/sdk/platform/Cart/CartPlatformModel.js +652 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +8 -2
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +10 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +43 -31
- package/sdk/platform/Common/CommonPlatformModel.js +4 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.js +9 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +2 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +5 -4
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +99 -78
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +99 -78
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +87 -71
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +87 -71
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +34 -7
- package/sdk/platform/Content/ContentPlatformModel.js +3 -1
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +135 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +853 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +51 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +342 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +16 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +84 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +66 -2
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +161 -79
- package/sdk/platform/Order/OrderPlatformClient.js +546 -114
- package/sdk/platform/Order/OrderPlatformModel.d.ts +42 -6
- package/sdk/platform/Order/OrderPlatformModel.js +569 -159
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +6 -0
- package/sdk/platform/Order/OrderPlatformValidator.js +52 -9
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +22 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +127 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +13 -0
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +145 -0
- package/sdk/platform/Partner/PartnerPlatformClient.js +799 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +39 -0
- package/sdk/platform/Partner/PartnerPlatformModel.js +367 -0
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +14 -0
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +221 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1476 -190
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +20 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +126 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +48 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +452 -7
- package/sdk/platform/PlatformApplicationClient.d.ts +1249 -937
- package/sdk/platform/PlatformApplicationClient.js +1366 -1033
- package/sdk/platform/PlatformClient.d.ts +10979 -8771
- package/sdk/platform/PlatformClient.js +11874 -9197
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +134 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +852 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +16 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +81 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +223 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1296 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +97 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +778 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +21 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +130 -0
- package/sdk/platform/index.d.ts +16 -14
- package/sdk/platform/index.js +22 -18
- package/sdk/public/Configuration/ConfigurationPublicModel.js +5 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- 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
|
|
20
|
-
* @description: Add new domain to
|
|
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
|
|
79
|
-
* @description:
|
|
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:
|
|
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
|
|
199
|
-
* @description:
|
|
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] -
|
|
256
|
-
* @param {number} [arg.pageNo] -
|
|
257
|
-
*
|
|
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:
|
|
260
|
-
* @description:
|
|
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 -
|
|
328
|
-
*
|
|
329
|
-
* @param {
|
|
330
|
-
*
|
|
331
|
-
* @
|
|
332
|
-
* @
|
|
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
|
|
361
|
-
* @description:
|
|
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
|
|
419
|
-
* @description: Get
|
|
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
|
|
477
|
-
* @description:
|
|
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] -
|
|
534
|
-
*
|
|
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:
|
|
537
|
-
* @description:
|
|
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 -
|
|
600
|
-
*
|
|
601
|
-
* @param {
|
|
602
|
-
*
|
|
603
|
-
* @
|
|
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
|
|
689
|
-
* @description:
|
|
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 -
|
|
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
|
|
748
|
-
* @description:
|
|
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
|
|
811
|
-
* @description:
|
|
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:
|
|
873
|
-
* @description: Get
|
|
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
|
|
929
|
-
* @description:
|
|
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] -
|
|
986
|
-
*
|
|
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:
|
|
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 -
|
|
1059
|
-
*
|
|
1060
|
-
* @param {
|
|
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:
|
|
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 -
|
|
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
|
|
1098
|
-
* @description:
|
|
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 -
|
|
1233
|
-
*
|
|
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
|
|
1336
|
-
* @description: Partially update
|
|
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 -
|
|
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:
|
|
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:
|
|
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:
|
|
1529
|
-
* @description:
|
|
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:
|
|
1592
|
-
* @description:
|
|
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:
|
|
1655
|
-
* @description:
|
|
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
|
|
1718
|
-
* @description:
|
|
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 -
|
|
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
|
|
1782
|
-
* @description:
|
|
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
|
|
1847
|
-
* @description:
|
|
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:
|
|
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 {
|