@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -21,8 +21,8 @@ class Configuration {
|
|
|
21
21
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
22
|
* @returns {Promise<ConfigurationPlatformModel.Domain>} - Success response
|
|
23
23
|
* @name addDomain
|
|
24
|
-
* @summary:
|
|
25
|
-
* @description:
|
|
24
|
+
* @summary: Create domain
|
|
25
|
+
* @description: Creates a domain for an sales channel. Note - Only 15 domains can be added to the sales channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/addDomain/).
|
|
26
26
|
*/
|
|
27
27
|
async addDomain(
|
|
28
28
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -100,9 +100,10 @@ class Configuration {
|
|
|
100
100
|
*
|
|
101
101
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
102
102
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
103
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
103
|
+
* @returns {Promise<ConfigurationPlatformModel.DomainsResponseSchema>} -
|
|
104
|
+
* Success response
|
|
104
105
|
* @name changeDomainType
|
|
105
|
-
* @summary:
|
|
106
|
+
* @summary: Update domain
|
|
106
107
|
* @description: Modify the type of a specific domain. Primary domain is used as the URL of your website. Short link domain is comparatively smaller and used while generating short links. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/changeDomainType/).
|
|
107
108
|
*/
|
|
108
109
|
async changeDomainType(
|
|
@@ -156,10 +157,10 @@ class Configuration {
|
|
|
156
157
|
|
|
157
158
|
const {
|
|
158
159
|
error: res_error,
|
|
159
|
-
} = ConfigurationPlatformModel.
|
|
160
|
-
|
|
161
|
-
allowUnknown: true
|
|
162
|
-
|
|
160
|
+
} = ConfigurationPlatformModel.DomainsResponseSchema().validate(
|
|
161
|
+
responseData,
|
|
162
|
+
{ abortEarly: false, allowUnknown: true }
|
|
163
|
+
);
|
|
163
164
|
|
|
164
165
|
if (res_error) {
|
|
165
166
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -176,27 +177,25 @@ class Configuration {
|
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
/**
|
|
179
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
180
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppApiTokensParam} arg
|
|
180
181
|
* - Arg object
|
|
181
182
|
*
|
|
182
183
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
183
184
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
184
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
185
|
+
* @returns {Promise<ConfigurationPlatformModel.TokenResponseSchema>} -
|
|
185
186
|
* Success response
|
|
186
|
-
* @name
|
|
187
|
-
* @summary:
|
|
188
|
-
* @description:
|
|
187
|
+
* @name getAppApiTokens
|
|
188
|
+
* @summary: Get sales channel API tokens
|
|
189
|
+
* @description: Retrieve the tokens used for integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, Google, and Facebook auth. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppApiTokens/).
|
|
189
190
|
*/
|
|
190
|
-
async
|
|
191
|
-
{
|
|
191
|
+
async getAppApiTokens(
|
|
192
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
192
193
|
{ responseHeaders } = { responseHeaders: false }
|
|
193
194
|
) {
|
|
194
195
|
const {
|
|
195
196
|
error,
|
|
196
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
197
|
-
{
|
|
198
|
-
body,
|
|
199
|
-
},
|
|
197
|
+
} = ConfigurationPlatformApplicationValidator.getAppApiTokens().validate(
|
|
198
|
+
{},
|
|
200
199
|
{ abortEarly: false, allowUnknown: true }
|
|
201
200
|
);
|
|
202
201
|
if (error) {
|
|
@@ -206,16 +205,14 @@ class Configuration {
|
|
|
206
205
|
// Showing warrnings if extra unknown parameters are found
|
|
207
206
|
const {
|
|
208
207
|
error: warrning,
|
|
209
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
210
|
-
{
|
|
211
|
-
body,
|
|
212
|
-
},
|
|
208
|
+
} = ConfigurationPlatformApplicationValidator.getAppApiTokens().validate(
|
|
209
|
+
{},
|
|
213
210
|
{ abortEarly: false, allowUnknown: false }
|
|
214
211
|
);
|
|
215
212
|
if (warrning) {
|
|
216
213
|
Logger({
|
|
217
214
|
level: "WARN",
|
|
218
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
215
|
+
message: `Parameter Validation warrnings for platform > Configuration > getAppApiTokens \n ${warrning}`,
|
|
219
216
|
});
|
|
220
217
|
}
|
|
221
218
|
|
|
@@ -223,10 +220,10 @@ class Configuration {
|
|
|
223
220
|
|
|
224
221
|
const response = await PlatformAPIClient.execute(
|
|
225
222
|
this.config,
|
|
226
|
-
"
|
|
227
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
223
|
+
"get",
|
|
224
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/token`,
|
|
228
225
|
query_params,
|
|
229
|
-
|
|
226
|
+
undefined,
|
|
230
227
|
requestHeaders,
|
|
231
228
|
{ responseHeaders }
|
|
232
229
|
);
|
|
@@ -238,7 +235,7 @@ class Configuration {
|
|
|
238
235
|
|
|
239
236
|
const {
|
|
240
237
|
error: res_error,
|
|
241
|
-
} = ConfigurationPlatformModel.
|
|
238
|
+
} = ConfigurationPlatformModel.TokenResponseSchema().validate(
|
|
242
239
|
responseData,
|
|
243
240
|
{ abortEarly: false, allowUnknown: true }
|
|
244
241
|
);
|
|
@@ -249,7 +246,7 @@ class Configuration {
|
|
|
249
246
|
} else {
|
|
250
247
|
Logger({
|
|
251
248
|
level: "WARN",
|
|
252
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
249
|
+
message: `Response Validation Warnings for platform > Configuration > getAppApiTokens \n ${res_error}`,
|
|
253
250
|
});
|
|
254
251
|
}
|
|
255
252
|
}
|
|
@@ -258,23 +255,23 @@ class Configuration {
|
|
|
258
255
|
}
|
|
259
256
|
|
|
260
257
|
/**
|
|
261
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
258
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppBasicDetailsParam} arg
|
|
262
259
|
* - Arg object
|
|
263
260
|
*
|
|
264
261
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
265
262
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
266
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
267
|
-
* @name
|
|
268
|
-
* @summary:
|
|
269
|
-
* @description:
|
|
263
|
+
* @returns {Promise<ConfigurationPlatformModel.ApplicationDetail>} - Success response
|
|
264
|
+
* @name getAppBasicDetails
|
|
265
|
+
* @summary: Get sales channel
|
|
266
|
+
* @description: Shows basic sales channel details like name, description, logo, domain, company ID, and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppBasicDetails/).
|
|
270
267
|
*/
|
|
271
|
-
async
|
|
268
|
+
async getAppBasicDetails(
|
|
272
269
|
{ requestHeaders } = { requestHeaders: {} },
|
|
273
270
|
{ responseHeaders } = { responseHeaders: false }
|
|
274
271
|
) {
|
|
275
272
|
const {
|
|
276
273
|
error,
|
|
277
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
274
|
+
} = ConfigurationPlatformApplicationValidator.getAppBasicDetails().validate(
|
|
278
275
|
{},
|
|
279
276
|
{ abortEarly: false, allowUnknown: true }
|
|
280
277
|
);
|
|
@@ -285,14 +282,14 @@ class Configuration {
|
|
|
285
282
|
// Showing warrnings if extra unknown parameters are found
|
|
286
283
|
const {
|
|
287
284
|
error: warrning,
|
|
288
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
285
|
+
} = ConfigurationPlatformApplicationValidator.getAppBasicDetails().validate(
|
|
289
286
|
{},
|
|
290
287
|
{ abortEarly: false, allowUnknown: false }
|
|
291
288
|
);
|
|
292
289
|
if (warrning) {
|
|
293
290
|
Logger({
|
|
294
291
|
level: "WARN",
|
|
295
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
292
|
+
message: `Parameter Validation warrnings for platform > Configuration > getAppBasicDetails \n ${warrning}`,
|
|
296
293
|
});
|
|
297
294
|
}
|
|
298
295
|
|
|
@@ -300,8 +297,8 @@ class Configuration {
|
|
|
300
297
|
|
|
301
298
|
const response = await PlatformAPIClient.execute(
|
|
302
299
|
this.config,
|
|
303
|
-
"
|
|
304
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
300
|
+
"get",
|
|
301
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
|
|
305
302
|
query_params,
|
|
306
303
|
undefined,
|
|
307
304
|
requestHeaders,
|
|
@@ -315,7 +312,7 @@ class Configuration {
|
|
|
315
312
|
|
|
316
313
|
const {
|
|
317
314
|
error: res_error,
|
|
318
|
-
} = ConfigurationPlatformModel.
|
|
315
|
+
} = ConfigurationPlatformModel.ApplicationDetail().validate(responseData, {
|
|
319
316
|
abortEarly: false,
|
|
320
317
|
allowUnknown: true,
|
|
321
318
|
});
|
|
@@ -326,7 +323,7 @@ class Configuration {
|
|
|
326
323
|
} else {
|
|
327
324
|
Logger({
|
|
328
325
|
level: "WARN",
|
|
329
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
326
|
+
message: `Response Validation Warnings for platform > Configuration > getAppBasicDetails \n ${res_error}`,
|
|
330
327
|
});
|
|
331
328
|
}
|
|
332
329
|
}
|
|
@@ -335,25 +332,28 @@ class Configuration {
|
|
|
335
332
|
}
|
|
336
333
|
|
|
337
334
|
/**
|
|
338
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
335
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppCompaniesParam} arg
|
|
339
336
|
* - Arg object
|
|
340
337
|
*
|
|
341
338
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
342
339
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
343
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
344
|
-
*
|
|
345
|
-
* @
|
|
346
|
-
* @
|
|
340
|
+
* @returns {Promise<ConfigurationPlatformModel.CompaniesResponseSchema>} -
|
|
341
|
+
* Success response
|
|
342
|
+
* @name getAppCompanies
|
|
343
|
+
* @summary: List sales channel companies
|
|
344
|
+
* @description: Retrieve info of all the companies (e.g. name, uid, and company type) whose inventory is fetched into the current sales channel sales channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppCompanies/).
|
|
347
345
|
*/
|
|
348
|
-
async
|
|
349
|
-
{
|
|
346
|
+
async getAppCompanies(
|
|
347
|
+
{ uid, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
350
348
|
{ responseHeaders } = { responseHeaders: false }
|
|
351
349
|
) {
|
|
352
350
|
const {
|
|
353
351
|
error,
|
|
354
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
352
|
+
} = ConfigurationPlatformApplicationValidator.getAppCompanies().validate(
|
|
355
353
|
{
|
|
356
|
-
|
|
354
|
+
uid,
|
|
355
|
+
pageNo,
|
|
356
|
+
pageSize,
|
|
357
357
|
},
|
|
358
358
|
{ abortEarly: false, allowUnknown: true }
|
|
359
359
|
);
|
|
@@ -364,27 +364,32 @@ class Configuration {
|
|
|
364
364
|
// Showing warrnings if extra unknown parameters are found
|
|
365
365
|
const {
|
|
366
366
|
error: warrning,
|
|
367
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
367
|
+
} = ConfigurationPlatformApplicationValidator.getAppCompanies().validate(
|
|
368
368
|
{
|
|
369
|
-
|
|
369
|
+
uid,
|
|
370
|
+
pageNo,
|
|
371
|
+
pageSize,
|
|
370
372
|
},
|
|
371
373
|
{ abortEarly: false, allowUnknown: false }
|
|
372
374
|
);
|
|
373
375
|
if (warrning) {
|
|
374
376
|
Logger({
|
|
375
377
|
level: "WARN",
|
|
376
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
378
|
+
message: `Parameter Validation warrnings for platform > Configuration > getAppCompanies \n ${warrning}`,
|
|
377
379
|
});
|
|
378
380
|
}
|
|
379
381
|
|
|
380
382
|
const query_params = {};
|
|
383
|
+
query_params["uid"] = uid;
|
|
384
|
+
query_params["page_no"] = pageNo;
|
|
385
|
+
query_params["page_size"] = pageSize;
|
|
381
386
|
|
|
382
387
|
const response = await PlatformAPIClient.execute(
|
|
383
388
|
this.config,
|
|
384
|
-
"
|
|
385
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
389
|
+
"get",
|
|
390
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/companies`,
|
|
386
391
|
query_params,
|
|
387
|
-
|
|
392
|
+
undefined,
|
|
388
393
|
requestHeaders,
|
|
389
394
|
{ responseHeaders }
|
|
390
395
|
);
|
|
@@ -396,10 +401,10 @@ class Configuration {
|
|
|
396
401
|
|
|
397
402
|
const {
|
|
398
403
|
error: res_error,
|
|
399
|
-
} = ConfigurationPlatformModel.
|
|
400
|
-
|
|
401
|
-
allowUnknown: true
|
|
402
|
-
|
|
404
|
+
} = ConfigurationPlatformModel.CompaniesResponseSchema().validate(
|
|
405
|
+
responseData,
|
|
406
|
+
{ abortEarly: false, allowUnknown: true }
|
|
407
|
+
);
|
|
403
408
|
|
|
404
409
|
if (res_error) {
|
|
405
410
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -407,7 +412,7 @@ class Configuration {
|
|
|
407
412
|
} else {
|
|
408
413
|
Logger({
|
|
409
414
|
level: "WARN",
|
|
410
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
415
|
+
message: `Response Validation Warnings for platform > Configuration > getAppCompanies \n ${res_error}`,
|
|
411
416
|
});
|
|
412
417
|
}
|
|
413
418
|
}
|
|
@@ -416,26 +421,25 @@ class Configuration {
|
|
|
416
421
|
}
|
|
417
422
|
|
|
418
423
|
/**
|
|
419
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
424
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppContactInfoParam} arg
|
|
420
425
|
* - Arg object
|
|
421
426
|
*
|
|
422
427
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
423
428
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
424
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
425
|
-
*
|
|
426
|
-
* @
|
|
427
|
-
* @
|
|
429
|
+
* @returns {Promise<ConfigurationPlatformModel.ApplicationInformation>} -
|
|
430
|
+
* Success response
|
|
431
|
+
* @name getAppContactInfo
|
|
432
|
+
* @summary: Get sales channel contact
|
|
433
|
+
* @description: Fetch data such as social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppContactInfo/).
|
|
428
434
|
*/
|
|
429
|
-
async
|
|
430
|
-
{
|
|
435
|
+
async getAppContactInfo(
|
|
436
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
431
437
|
{ responseHeaders } = { responseHeaders: false }
|
|
432
438
|
) {
|
|
433
439
|
const {
|
|
434
440
|
error,
|
|
435
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
436
|
-
{
|
|
437
|
-
token,
|
|
438
|
-
},
|
|
441
|
+
} = ConfigurationPlatformApplicationValidator.getAppContactInfo().validate(
|
|
442
|
+
{},
|
|
439
443
|
{ abortEarly: false, allowUnknown: true }
|
|
440
444
|
);
|
|
441
445
|
if (error) {
|
|
@@ -445,16 +449,14 @@ class Configuration {
|
|
|
445
449
|
// Showing warrnings if extra unknown parameters are found
|
|
446
450
|
const {
|
|
447
451
|
error: warrning,
|
|
448
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
449
|
-
{
|
|
450
|
-
token,
|
|
451
|
-
},
|
|
452
|
+
} = ConfigurationPlatformApplicationValidator.getAppContactInfo().validate(
|
|
453
|
+
{},
|
|
452
454
|
{ abortEarly: false, allowUnknown: false }
|
|
453
455
|
);
|
|
454
456
|
if (warrning) {
|
|
455
457
|
Logger({
|
|
456
458
|
level: "WARN",
|
|
457
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
459
|
+
message: `Parameter Validation warrnings for platform > Configuration > getAppContactInfo \n ${warrning}`,
|
|
458
460
|
});
|
|
459
461
|
}
|
|
460
462
|
|
|
@@ -462,8 +464,8 @@ class Configuration {
|
|
|
462
464
|
|
|
463
465
|
const response = await PlatformAPIClient.execute(
|
|
464
466
|
this.config,
|
|
465
|
-
"
|
|
466
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
467
|
+
"get",
|
|
468
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/information`,
|
|
467
469
|
query_params,
|
|
468
470
|
undefined,
|
|
469
471
|
requestHeaders,
|
|
@@ -477,10 +479,10 @@ class Configuration {
|
|
|
477
479
|
|
|
478
480
|
const {
|
|
479
481
|
error: res_error,
|
|
480
|
-
} = ConfigurationPlatformModel.
|
|
481
|
-
|
|
482
|
-
allowUnknown: true
|
|
483
|
-
|
|
482
|
+
} = ConfigurationPlatformModel.ApplicationInformation().validate(
|
|
483
|
+
responseData,
|
|
484
|
+
{ abortEarly: false, allowUnknown: true }
|
|
485
|
+
);
|
|
484
486
|
|
|
485
487
|
if (res_error) {
|
|
486
488
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -488,7 +490,7 @@ class Configuration {
|
|
|
488
490
|
} else {
|
|
489
491
|
Logger({
|
|
490
492
|
level: "WARN",
|
|
491
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
493
|
+
message: `Response Validation Warnings for platform > Configuration > getAppContactInfo \n ${res_error}`,
|
|
492
494
|
});
|
|
493
495
|
}
|
|
494
496
|
}
|
|
@@ -497,25 +499,25 @@ class Configuration {
|
|
|
497
499
|
}
|
|
498
500
|
|
|
499
501
|
/**
|
|
500
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
502
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppCurrencyConfigParam} arg
|
|
501
503
|
* - Arg object
|
|
502
504
|
*
|
|
503
505
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
504
506
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
505
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
507
|
+
* @returns {Promise<ConfigurationPlatformModel.AppSupportedCurrency>} -
|
|
506
508
|
* Success response
|
|
507
|
-
* @name
|
|
508
|
-
* @summary:
|
|
509
|
-
* @description:
|
|
509
|
+
* @name getAppCurrencyConfig
|
|
510
|
+
* @summary: Get sales channel currency configuration
|
|
511
|
+
* @description: Retrieve a list of currencies supported in the current sales channel. Moreover, get the cuurency that is set as the default one in the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppCurrencyConfig/).
|
|
510
512
|
*/
|
|
511
|
-
async
|
|
512
|
-
{
|
|
513
|
+
async getAppCurrencyConfig(
|
|
514
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
513
515
|
{ responseHeaders } = { responseHeaders: false }
|
|
514
516
|
) {
|
|
515
517
|
const {
|
|
516
518
|
error,
|
|
517
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
518
|
-
{
|
|
519
|
+
} = ConfigurationPlatformApplicationValidator.getAppCurrencyConfig().validate(
|
|
520
|
+
{},
|
|
519
521
|
{ abortEarly: false, allowUnknown: true }
|
|
520
522
|
);
|
|
521
523
|
if (error) {
|
|
@@ -525,14 +527,14 @@ class Configuration {
|
|
|
525
527
|
// Showing warrnings if extra unknown parameters are found
|
|
526
528
|
const {
|
|
527
529
|
error: warrning,
|
|
528
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
529
|
-
{
|
|
530
|
+
} = ConfigurationPlatformApplicationValidator.getAppCurrencyConfig().validate(
|
|
531
|
+
{},
|
|
530
532
|
{ abortEarly: false, allowUnknown: false }
|
|
531
533
|
);
|
|
532
534
|
if (warrning) {
|
|
533
535
|
Logger({
|
|
534
536
|
level: "WARN",
|
|
535
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
537
|
+
message: `Parameter Validation warrnings for platform > Configuration > getAppCurrencyConfig \n ${warrning}`,
|
|
536
538
|
});
|
|
537
539
|
}
|
|
538
540
|
|
|
@@ -540,8 +542,8 @@ class Configuration {
|
|
|
540
542
|
|
|
541
543
|
const response = await PlatformAPIClient.execute(
|
|
542
544
|
this.config,
|
|
543
|
-
"
|
|
544
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
545
|
+
"get",
|
|
546
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency`,
|
|
545
547
|
query_params,
|
|
546
548
|
undefined,
|
|
547
549
|
requestHeaders,
|
|
@@ -555,7 +557,7 @@ class Configuration {
|
|
|
555
557
|
|
|
556
558
|
const {
|
|
557
559
|
error: res_error,
|
|
558
|
-
} = ConfigurationPlatformModel.
|
|
560
|
+
} = ConfigurationPlatformModel.AppSupportedCurrency().validate(
|
|
559
561
|
responseData,
|
|
560
562
|
{ abortEarly: false, allowUnknown: true }
|
|
561
563
|
);
|
|
@@ -566,7 +568,7 @@ class Configuration {
|
|
|
566
568
|
} else {
|
|
567
569
|
Logger({
|
|
568
570
|
level: "WARN",
|
|
569
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
571
|
+
message: `Response Validation Warnings for platform > Configuration > getAppCurrencyConfig \n ${res_error}`,
|
|
570
572
|
});
|
|
571
573
|
}
|
|
572
574
|
}
|
|
@@ -575,23 +577,25 @@ class Configuration {
|
|
|
575
577
|
}
|
|
576
578
|
|
|
577
579
|
/**
|
|
578
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
580
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppFeaturesParam} arg
|
|
579
581
|
* - Arg object
|
|
580
582
|
*
|
|
581
583
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
582
584
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
583
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
584
|
-
*
|
|
585
|
-
*
|
|
586
|
-
* @
|
|
585
|
+
* @returns {Promise<ConfigurationPlatformModel.AppFeatureResponseSchema>}
|
|
586
|
+
* - Success response
|
|
587
|
+
*
|
|
588
|
+
* @name getAppFeatures
|
|
589
|
+
* @summary: Get sales channel
|
|
590
|
+
* @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. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppFeatures/).
|
|
587
591
|
*/
|
|
588
|
-
async
|
|
592
|
+
async getAppFeatures(
|
|
589
593
|
{ requestHeaders } = { requestHeaders: {} },
|
|
590
594
|
{ responseHeaders } = { responseHeaders: false }
|
|
591
595
|
) {
|
|
592
596
|
const {
|
|
593
597
|
error,
|
|
594
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
598
|
+
} = ConfigurationPlatformApplicationValidator.getAppFeatures().validate(
|
|
595
599
|
{},
|
|
596
600
|
{ abortEarly: false, allowUnknown: true }
|
|
597
601
|
);
|
|
@@ -602,14 +606,14 @@ class Configuration {
|
|
|
602
606
|
// Showing warrnings if extra unknown parameters are found
|
|
603
607
|
const {
|
|
604
608
|
error: warrning,
|
|
605
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
609
|
+
} = ConfigurationPlatformApplicationValidator.getAppFeatures().validate(
|
|
606
610
|
{},
|
|
607
611
|
{ abortEarly: false, allowUnknown: false }
|
|
608
612
|
);
|
|
609
613
|
if (warrning) {
|
|
610
614
|
Logger({
|
|
611
615
|
level: "WARN",
|
|
612
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
616
|
+
message: `Parameter Validation warrnings for platform > Configuration > getAppFeatures \n ${warrning}`,
|
|
613
617
|
});
|
|
614
618
|
}
|
|
615
619
|
|
|
@@ -618,7 +622,7 @@ class Configuration {
|
|
|
618
622
|
const response = await PlatformAPIClient.execute(
|
|
619
623
|
this.config,
|
|
620
624
|
"get",
|
|
621
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
625
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
|
|
622
626
|
query_params,
|
|
623
627
|
undefined,
|
|
624
628
|
requestHeaders,
|
|
@@ -632,10 +636,10 @@ class Configuration {
|
|
|
632
636
|
|
|
633
637
|
const {
|
|
634
638
|
error: res_error,
|
|
635
|
-
} = ConfigurationPlatformModel.
|
|
636
|
-
|
|
637
|
-
allowUnknown: true
|
|
638
|
-
|
|
639
|
+
} = ConfigurationPlatformModel.AppFeatureResponseSchema().validate(
|
|
640
|
+
responseData,
|
|
641
|
+
{ abortEarly: false, allowUnknown: true }
|
|
642
|
+
);
|
|
639
643
|
|
|
640
644
|
if (res_error) {
|
|
641
645
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -643,7 +647,7 @@ class Configuration {
|
|
|
643
647
|
} else {
|
|
644
648
|
Logger({
|
|
645
649
|
level: "WARN",
|
|
646
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
650
|
+
message: `Response Validation Warnings for platform > Configuration > getAppFeatures \n ${res_error}`,
|
|
647
651
|
});
|
|
648
652
|
}
|
|
649
653
|
}
|
|
@@ -652,24 +656,28 @@ class Configuration {
|
|
|
652
656
|
}
|
|
653
657
|
|
|
654
658
|
/**
|
|
655
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
659
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppStoresParam} arg
|
|
656
660
|
* - Arg object
|
|
657
661
|
*
|
|
658
662
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
659
663
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
660
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
661
|
-
*
|
|
662
|
-
* @
|
|
663
|
-
* @
|
|
664
|
+
* @returns {Promise<ConfigurationPlatformModel.StoresResponseSchema>} -
|
|
665
|
+
* Success response
|
|
666
|
+
* @name getAppStores
|
|
667
|
+
* @summary: list sales channel stores
|
|
668
|
+
* @description: Retrieve information 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 sales channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppStores/).
|
|
664
669
|
*/
|
|
665
|
-
async
|
|
666
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
670
|
+
async getAppStores(
|
|
671
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
667
672
|
{ responseHeaders } = { responseHeaders: false }
|
|
668
673
|
) {
|
|
669
674
|
const {
|
|
670
675
|
error,
|
|
671
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
672
|
-
{
|
|
676
|
+
} = ConfigurationPlatformApplicationValidator.getAppStores().validate(
|
|
677
|
+
{
|
|
678
|
+
pageNo,
|
|
679
|
+
pageSize,
|
|
680
|
+
},
|
|
673
681
|
{ abortEarly: false, allowUnknown: true }
|
|
674
682
|
);
|
|
675
683
|
if (error) {
|
|
@@ -679,23 +687,28 @@ class Configuration {
|
|
|
679
687
|
// Showing warrnings if extra unknown parameters are found
|
|
680
688
|
const {
|
|
681
689
|
error: warrning,
|
|
682
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
683
|
-
{
|
|
690
|
+
} = ConfigurationPlatformApplicationValidator.getAppStores().validate(
|
|
691
|
+
{
|
|
692
|
+
pageNo,
|
|
693
|
+
pageSize,
|
|
694
|
+
},
|
|
684
695
|
{ abortEarly: false, allowUnknown: false }
|
|
685
696
|
);
|
|
686
697
|
if (warrning) {
|
|
687
698
|
Logger({
|
|
688
699
|
level: "WARN",
|
|
689
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
700
|
+
message: `Parameter Validation warrnings for platform > Configuration > getAppStores \n ${warrning}`,
|
|
690
701
|
});
|
|
691
702
|
}
|
|
692
703
|
|
|
693
704
|
const query_params = {};
|
|
705
|
+
query_params["page_no"] = pageNo;
|
|
706
|
+
query_params["page_size"] = pageSize;
|
|
694
707
|
|
|
695
708
|
const response = await PlatformAPIClient.execute(
|
|
696
709
|
this.config,
|
|
697
710
|
"get",
|
|
698
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
711
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/stores`,
|
|
699
712
|
query_params,
|
|
700
713
|
undefined,
|
|
701
714
|
requestHeaders,
|
|
@@ -709,10 +722,10 @@ class Configuration {
|
|
|
709
722
|
|
|
710
723
|
const {
|
|
711
724
|
error: res_error,
|
|
712
|
-
} = ConfigurationPlatformModel.
|
|
713
|
-
|
|
714
|
-
allowUnknown: true
|
|
715
|
-
|
|
725
|
+
} = ConfigurationPlatformModel.StoresResponseSchema().validate(
|
|
726
|
+
responseData,
|
|
727
|
+
{ abortEarly: false, allowUnknown: true }
|
|
728
|
+
);
|
|
716
729
|
|
|
717
730
|
if (res_error) {
|
|
718
731
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -720,7 +733,7 @@ class Configuration {
|
|
|
720
733
|
} else {
|
|
721
734
|
Logger({
|
|
722
735
|
level: "WARN",
|
|
723
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
736
|
+
message: `Response Validation Warnings for platform > Configuration > getAppStores \n ${res_error}`,
|
|
724
737
|
});
|
|
725
738
|
}
|
|
726
739
|
}
|
|
@@ -729,28 +742,26 @@ class Configuration {
|
|
|
729
742
|
}
|
|
730
743
|
|
|
731
744
|
/**
|
|
732
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
745
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppSupportedCurrencyParam} arg
|
|
733
746
|
* - Arg object
|
|
734
747
|
*
|
|
735
748
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
736
749
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
737
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
738
|
-
*
|
|
739
|
-
*
|
|
740
|
-
* @
|
|
750
|
+
* @returns {Promise<ConfigurationPlatformModel.AppCurrencyResponseSchema>}
|
|
751
|
+
* - Success response
|
|
752
|
+
*
|
|
753
|
+
* @name getAppSupportedCurrency
|
|
754
|
+
* @summary: List supported currencies
|
|
755
|
+
* @description: Retrieve a list of supported currencies for the sales channel. A list of currencies allowed in the current sales channel. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppSupportedCurrency/).
|
|
741
756
|
*/
|
|
742
|
-
async
|
|
743
|
-
{
|
|
757
|
+
async getAppSupportedCurrency(
|
|
758
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
744
759
|
{ responseHeaders } = { responseHeaders: false }
|
|
745
760
|
) {
|
|
746
761
|
const {
|
|
747
762
|
error,
|
|
748
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
749
|
-
{
|
|
750
|
-
uid,
|
|
751
|
-
pageNo,
|
|
752
|
-
pageSize,
|
|
753
|
-
},
|
|
763
|
+
} = ConfigurationPlatformApplicationValidator.getAppSupportedCurrency().validate(
|
|
764
|
+
{},
|
|
754
765
|
{ abortEarly: false, allowUnknown: true }
|
|
755
766
|
);
|
|
756
767
|
if (error) {
|
|
@@ -760,30 +771,23 @@ class Configuration {
|
|
|
760
771
|
// Showing warrnings if extra unknown parameters are found
|
|
761
772
|
const {
|
|
762
773
|
error: warrning,
|
|
763
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
764
|
-
{
|
|
765
|
-
uid,
|
|
766
|
-
pageNo,
|
|
767
|
-
pageSize,
|
|
768
|
-
},
|
|
774
|
+
} = ConfigurationPlatformApplicationValidator.getAppSupportedCurrency().validate(
|
|
775
|
+
{},
|
|
769
776
|
{ abortEarly: false, allowUnknown: false }
|
|
770
777
|
);
|
|
771
778
|
if (warrning) {
|
|
772
779
|
Logger({
|
|
773
780
|
level: "WARN",
|
|
774
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
781
|
+
message: `Parameter Validation warrnings for platform > Configuration > getAppSupportedCurrency \n ${warrning}`,
|
|
775
782
|
});
|
|
776
783
|
}
|
|
777
784
|
|
|
778
785
|
const query_params = {};
|
|
779
|
-
query_params["uid"] = uid;
|
|
780
|
-
query_params["page_no"] = pageNo;
|
|
781
|
-
query_params["page_size"] = pageSize;
|
|
782
786
|
|
|
783
787
|
const response = await PlatformAPIClient.execute(
|
|
784
788
|
this.config,
|
|
785
789
|
"get",
|
|
786
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
790
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency/supported`,
|
|
787
791
|
query_params,
|
|
788
792
|
undefined,
|
|
789
793
|
requestHeaders,
|
|
@@ -797,10 +801,10 @@ class Configuration {
|
|
|
797
801
|
|
|
798
802
|
const {
|
|
799
803
|
error: res_error,
|
|
800
|
-
} = ConfigurationPlatformModel.
|
|
801
|
-
|
|
802
|
-
allowUnknown: true
|
|
803
|
-
|
|
804
|
+
} = ConfigurationPlatformModel.AppCurrencyResponseSchema().validate(
|
|
805
|
+
responseData,
|
|
806
|
+
{ abortEarly: false, allowUnknown: true }
|
|
807
|
+
);
|
|
804
808
|
|
|
805
809
|
if (res_error) {
|
|
806
810
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -808,7 +812,7 @@ class Configuration {
|
|
|
808
812
|
} else {
|
|
809
813
|
Logger({
|
|
810
814
|
level: "WARN",
|
|
811
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
815
|
+
message: `Response Validation Warnings for platform > Configuration > getAppSupportedCurrency \n ${res_error}`,
|
|
812
816
|
});
|
|
813
817
|
}
|
|
814
818
|
}
|
|
@@ -817,60 +821,23 @@ class Configuration {
|
|
|
817
821
|
}
|
|
818
822
|
|
|
819
823
|
/**
|
|
820
|
-
* @param {
|
|
821
|
-
* @param {number} arg.companyId - Numeric ID allotted to a business account
|
|
822
|
-
* on Fynd Platform
|
|
823
|
-
* @param {string} arg.applicationId - Alphanumeric ID allotted to an
|
|
824
|
-
* application (sales channel website) created within a business account
|
|
825
|
-
* @param {number} [arg.uid] - UID of companies to be fetched
|
|
826
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
827
|
-
* page. Default value is 10.
|
|
828
|
-
* @returns {Paginator<ConfigurationPlatformModel.CompaniesResponse>}
|
|
829
|
-
* @summary: Get application companies.
|
|
830
|
-
* @description: Retrieve info of all the companies (e.g. name, uid, and company type) whose inventory is fetched into the current sales channel application
|
|
831
|
-
*/
|
|
832
|
-
getAppCompaniesPaginator({ companyId, applicationId, uid, pageSize } = {}) {
|
|
833
|
-
const paginator = new Paginator();
|
|
834
|
-
const callback = async () => {
|
|
835
|
-
const pageId = paginator.nextId;
|
|
836
|
-
const pageNo = paginator.pageNo;
|
|
837
|
-
const pageType = "number";
|
|
838
|
-
const data = await this.getAppCompanies({
|
|
839
|
-
companyId: companyId,
|
|
840
|
-
applicationId: applicationId,
|
|
841
|
-
uid: uid,
|
|
842
|
-
pageNo: pageNo,
|
|
843
|
-
pageSize: pageSize,
|
|
844
|
-
});
|
|
845
|
-
paginator.setPaginator({
|
|
846
|
-
hasNext: data.page.has_next ? true : false,
|
|
847
|
-
nextId: data.page.next_id,
|
|
848
|
-
});
|
|
849
|
-
return data;
|
|
850
|
-
};
|
|
851
|
-
paginator.setCallback(callback.bind(this));
|
|
852
|
-
return paginator;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* @param {ConfigurationPlatformApplicationValidator.GetAppContactInfoParam} arg
|
|
824
|
+
* @param {ConfigurationPlatformApplicationValidator.GetApplicationByIdParam} arg
|
|
857
825
|
* - Arg object
|
|
858
826
|
*
|
|
859
827
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
860
828
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
861
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
862
|
-
*
|
|
863
|
-
* @
|
|
864
|
-
* @
|
|
865
|
-
* @description: Fetch data such as social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppContactInfo/).
|
|
829
|
+
* @returns {Promise<ConfigurationPlatformModel.ApplicationById>} - Success response
|
|
830
|
+
* @name getApplicationById
|
|
831
|
+
* @summary: Get sales channel by id
|
|
832
|
+
* @description: Retrieve detailed information about a specific sales channel. Use sales channel ID to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, token, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getApplicationById/).
|
|
866
833
|
*/
|
|
867
|
-
async
|
|
834
|
+
async getApplicationById(
|
|
868
835
|
{ requestHeaders } = { requestHeaders: {} },
|
|
869
836
|
{ responseHeaders } = { responseHeaders: false }
|
|
870
837
|
) {
|
|
871
838
|
const {
|
|
872
839
|
error,
|
|
873
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
840
|
+
} = ConfigurationPlatformApplicationValidator.getApplicationById().validate(
|
|
874
841
|
{},
|
|
875
842
|
{ abortEarly: false, allowUnknown: true }
|
|
876
843
|
);
|
|
@@ -881,14 +848,14 @@ class Configuration {
|
|
|
881
848
|
// Showing warrnings if extra unknown parameters are found
|
|
882
849
|
const {
|
|
883
850
|
error: warrning,
|
|
884
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
851
|
+
} = ConfigurationPlatformApplicationValidator.getApplicationById().validate(
|
|
885
852
|
{},
|
|
886
853
|
{ abortEarly: false, allowUnknown: false }
|
|
887
854
|
);
|
|
888
855
|
if (warrning) {
|
|
889
856
|
Logger({
|
|
890
857
|
level: "WARN",
|
|
891
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
858
|
+
message: `Parameter Validation warrnings for platform > Configuration > getApplicationById \n ${warrning}`,
|
|
892
859
|
});
|
|
893
860
|
}
|
|
894
861
|
|
|
@@ -897,7 +864,7 @@ class Configuration {
|
|
|
897
864
|
const response = await PlatformAPIClient.execute(
|
|
898
865
|
this.config,
|
|
899
866
|
"get",
|
|
900
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}
|
|
867
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}`,
|
|
901
868
|
query_params,
|
|
902
869
|
undefined,
|
|
903
870
|
requestHeaders,
|
|
@@ -911,10 +878,10 @@ class Configuration {
|
|
|
911
878
|
|
|
912
879
|
const {
|
|
913
880
|
error: res_error,
|
|
914
|
-
} = ConfigurationPlatformModel.
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
);
|
|
881
|
+
} = ConfigurationPlatformModel.ApplicationById().validate(responseData, {
|
|
882
|
+
abortEarly: false,
|
|
883
|
+
allowUnknown: true,
|
|
884
|
+
});
|
|
918
885
|
|
|
919
886
|
if (res_error) {
|
|
920
887
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -922,7 +889,7 @@ class Configuration {
|
|
|
922
889
|
} else {
|
|
923
890
|
Logger({
|
|
924
891
|
level: "WARN",
|
|
925
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
892
|
+
message: `Response Validation Warnings for platform > Configuration > getApplicationById \n ${res_error}`,
|
|
926
893
|
});
|
|
927
894
|
}
|
|
928
895
|
}
|
|
@@ -931,25 +898,27 @@ class Configuration {
|
|
|
931
898
|
}
|
|
932
899
|
|
|
933
900
|
/**
|
|
934
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
901
|
+
* @param {ConfigurationPlatformApplicationValidator.GetBuildConfigParam} arg
|
|
935
902
|
* - Arg object
|
|
936
903
|
*
|
|
937
904
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
938
905
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
939
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
906
|
+
* @returns {Promise<ConfigurationPlatformModel.MobileAppConfiguration>} -
|
|
940
907
|
* Success response
|
|
941
|
-
* @name
|
|
942
|
-
* @summary: Get
|
|
943
|
-
* @description: Retrieve
|
|
908
|
+
* @name getBuildConfig
|
|
909
|
+
* @summary: Get Build Configuration
|
|
910
|
+
* @description: Retrieve latest build configuration, such as app name, landing page image, splash image used in a mobile build. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getBuildConfig/).
|
|
944
911
|
*/
|
|
945
|
-
async
|
|
946
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
912
|
+
async getBuildConfig(
|
|
913
|
+
{ platformType, requestHeaders } = { requestHeaders: {} },
|
|
947
914
|
{ responseHeaders } = { responseHeaders: false }
|
|
948
915
|
) {
|
|
949
916
|
const {
|
|
950
917
|
error,
|
|
951
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
952
|
-
{
|
|
918
|
+
} = ConfigurationPlatformApplicationValidator.getBuildConfig().validate(
|
|
919
|
+
{
|
|
920
|
+
platformType,
|
|
921
|
+
},
|
|
953
922
|
{ abortEarly: false, allowUnknown: true }
|
|
954
923
|
);
|
|
955
924
|
if (error) {
|
|
@@ -959,14 +928,16 @@ class Configuration {
|
|
|
959
928
|
// Showing warrnings if extra unknown parameters are found
|
|
960
929
|
const {
|
|
961
930
|
error: warrning,
|
|
962
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
963
|
-
{
|
|
931
|
+
} = ConfigurationPlatformApplicationValidator.getBuildConfig().validate(
|
|
932
|
+
{
|
|
933
|
+
platformType,
|
|
934
|
+
},
|
|
964
935
|
{ abortEarly: false, allowUnknown: false }
|
|
965
936
|
);
|
|
966
937
|
if (warrning) {
|
|
967
938
|
Logger({
|
|
968
939
|
level: "WARN",
|
|
969
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
940
|
+
message: `Parameter Validation warrnings for platform > Configuration > getBuildConfig \n ${warrning}`,
|
|
970
941
|
});
|
|
971
942
|
}
|
|
972
943
|
|
|
@@ -975,7 +946,7 @@ class Configuration {
|
|
|
975
946
|
const response = await PlatformAPIClient.execute(
|
|
976
947
|
this.config,
|
|
977
948
|
"get",
|
|
978
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
949
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/configuration`,
|
|
979
950
|
query_params,
|
|
980
951
|
undefined,
|
|
981
952
|
requestHeaders,
|
|
@@ -989,7 +960,7 @@ class Configuration {
|
|
|
989
960
|
|
|
990
961
|
const {
|
|
991
962
|
error: res_error,
|
|
992
|
-
} = ConfigurationPlatformModel.
|
|
963
|
+
} = ConfigurationPlatformModel.MobileAppConfiguration().validate(
|
|
993
964
|
responseData,
|
|
994
965
|
{ abortEarly: false, allowUnknown: true }
|
|
995
966
|
);
|
|
@@ -1000,7 +971,7 @@ class Configuration {
|
|
|
1000
971
|
} else {
|
|
1001
972
|
Logger({
|
|
1002
973
|
level: "WARN",
|
|
1003
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
974
|
+
message: `Response Validation Warnings for platform > Configuration > getBuildConfig \n ${res_error}`,
|
|
1004
975
|
});
|
|
1005
976
|
}
|
|
1006
977
|
}
|
|
@@ -1009,104 +980,27 @@ class Configuration {
|
|
|
1009
980
|
}
|
|
1010
981
|
|
|
1011
982
|
/**
|
|
1012
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
983
|
+
* @param {ConfigurationPlatformApplicationValidator.GetDomainStatusParam} arg
|
|
1013
984
|
* - Arg object
|
|
1014
985
|
*
|
|
1015
986
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1016
987
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1017
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
1018
|
-
* Success response
|
|
1019
|
-
* @name getAppFeatures
|
|
1020
|
-
* @summary: Get application features.
|
|
1021
|
-
* @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. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppFeatures/).
|
|
1022
|
-
*/
|
|
1023
|
-
async getAppFeatures(
|
|
1024
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
1025
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1026
|
-
) {
|
|
1027
|
-
const {
|
|
1028
|
-
error,
|
|
1029
|
-
} = ConfigurationPlatformApplicationValidator.getAppFeatures().validate(
|
|
1030
|
-
{},
|
|
1031
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1032
|
-
);
|
|
1033
|
-
if (error) {
|
|
1034
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1038
|
-
const {
|
|
1039
|
-
error: warrning,
|
|
1040
|
-
} = ConfigurationPlatformApplicationValidator.getAppFeatures().validate(
|
|
1041
|
-
{},
|
|
1042
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1043
|
-
);
|
|
1044
|
-
if (warrning) {
|
|
1045
|
-
Logger({
|
|
1046
|
-
level: "WARN",
|
|
1047
|
-
message: `Parameter Validation warrnings for platform > Configuration > getAppFeatures \n ${warrning}`,
|
|
1048
|
-
});
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
const query_params = {};
|
|
1052
|
-
|
|
1053
|
-
const response = await PlatformAPIClient.execute(
|
|
1054
|
-
this.config,
|
|
1055
|
-
"get",
|
|
1056
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
|
|
1057
|
-
query_params,
|
|
1058
|
-
undefined,
|
|
1059
|
-
requestHeaders,
|
|
1060
|
-
{ responseHeaders }
|
|
1061
|
-
);
|
|
1062
|
-
|
|
1063
|
-
let responseData = response;
|
|
1064
|
-
if (responseHeaders) {
|
|
1065
|
-
responseData = response[0];
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
const {
|
|
1069
|
-
error: res_error,
|
|
1070
|
-
} = ConfigurationPlatformModel.AppFeatureResponse().validate(responseData, {
|
|
1071
|
-
abortEarly: false,
|
|
1072
|
-
allowUnknown: true,
|
|
1073
|
-
});
|
|
1074
|
-
|
|
1075
|
-
if (res_error) {
|
|
1076
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1077
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1078
|
-
} else {
|
|
1079
|
-
Logger({
|
|
1080
|
-
level: "WARN",
|
|
1081
|
-
message: `Response Validation Warnings for platform > Configuration > getAppFeatures \n ${res_error}`,
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
return response;
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
/**
|
|
1090
|
-
* @param {ConfigurationPlatformApplicationValidator.GetAppStoresParam} arg
|
|
1091
|
-
* - Arg object
|
|
988
|
+
* @returns {Promise<ConfigurationPlatformModel.DomainStatusResponseSchema>}
|
|
989
|
+
* - Success response
|
|
1092
990
|
*
|
|
1093
|
-
* @
|
|
1094
|
-
* @
|
|
1095
|
-
* @
|
|
1096
|
-
* @name getAppStores
|
|
1097
|
-
* @summary: Get application stores.
|
|
1098
|
-
* @description: Retrieve information 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 - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppStores/).
|
|
991
|
+
* @name getDomainStatus
|
|
992
|
+
* @summary: Get domain status
|
|
993
|
+
* @description: Retrieve the status of a specific domain. Shows if the A records and TXT records of the domain correctly points to appropriate IP on Fynd Servers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getDomainStatus/).
|
|
1099
994
|
*/
|
|
1100
|
-
async
|
|
1101
|
-
{
|
|
995
|
+
async getDomainStatus(
|
|
996
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1102
997
|
{ responseHeaders } = { responseHeaders: false }
|
|
1103
998
|
) {
|
|
1104
999
|
const {
|
|
1105
1000
|
error,
|
|
1106
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1001
|
+
} = ConfigurationPlatformApplicationValidator.getDomainStatus().validate(
|
|
1107
1002
|
{
|
|
1108
|
-
|
|
1109
|
-
pageSize,
|
|
1003
|
+
body,
|
|
1110
1004
|
},
|
|
1111
1005
|
{ abortEarly: false, allowUnknown: true }
|
|
1112
1006
|
);
|
|
@@ -1117,30 +1011,27 @@ class Configuration {
|
|
|
1117
1011
|
// Showing warrnings if extra unknown parameters are found
|
|
1118
1012
|
const {
|
|
1119
1013
|
error: warrning,
|
|
1120
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1014
|
+
} = ConfigurationPlatformApplicationValidator.getDomainStatus().validate(
|
|
1121
1015
|
{
|
|
1122
|
-
|
|
1123
|
-
pageSize,
|
|
1016
|
+
body,
|
|
1124
1017
|
},
|
|
1125
1018
|
{ abortEarly: false, allowUnknown: false }
|
|
1126
1019
|
);
|
|
1127
1020
|
if (warrning) {
|
|
1128
1021
|
Logger({
|
|
1129
1022
|
level: "WARN",
|
|
1130
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
1023
|
+
message: `Parameter Validation warrnings for platform > Configuration > getDomainStatus \n ${warrning}`,
|
|
1131
1024
|
});
|
|
1132
1025
|
}
|
|
1133
1026
|
|
|
1134
1027
|
const query_params = {};
|
|
1135
|
-
query_params["page_no"] = pageNo;
|
|
1136
|
-
query_params["page_size"] = pageSize;
|
|
1137
1028
|
|
|
1138
1029
|
const response = await PlatformAPIClient.execute(
|
|
1139
1030
|
this.config,
|
|
1140
|
-
"
|
|
1141
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
1031
|
+
"post",
|
|
1032
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/domain-status`,
|
|
1142
1033
|
query_params,
|
|
1143
|
-
|
|
1034
|
+
body,
|
|
1144
1035
|
requestHeaders,
|
|
1145
1036
|
{ responseHeaders }
|
|
1146
1037
|
);
|
|
@@ -1152,10 +1043,10 @@ class Configuration {
|
|
|
1152
1043
|
|
|
1153
1044
|
const {
|
|
1154
1045
|
error: res_error,
|
|
1155
|
-
} = ConfigurationPlatformModel.
|
|
1156
|
-
|
|
1157
|
-
allowUnknown: true
|
|
1158
|
-
|
|
1046
|
+
} = ConfigurationPlatformModel.DomainStatusResponseSchema().validate(
|
|
1047
|
+
responseData,
|
|
1048
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1049
|
+
);
|
|
1159
1050
|
|
|
1160
1051
|
if (res_error) {
|
|
1161
1052
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1163,7 +1054,7 @@ class Configuration {
|
|
|
1163
1054
|
} else {
|
|
1164
1055
|
Logger({
|
|
1165
1056
|
level: "WARN",
|
|
1166
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
1057
|
+
message: `Response Validation Warnings for platform > Configuration > getDomainStatus \n ${res_error}`,
|
|
1167
1058
|
});
|
|
1168
1059
|
}
|
|
1169
1060
|
}
|
|
@@ -1172,58 +1063,22 @@ class Configuration {
|
|
|
1172
1063
|
}
|
|
1173
1064
|
|
|
1174
1065
|
/**
|
|
1175
|
-
* @param {
|
|
1176
|
-
* @param {number} arg.companyId - Numeric ID allotted to a business account
|
|
1177
|
-
* on Fynd Platform
|
|
1178
|
-
* @param {string} arg.applicationId - Alphanumeric ID allotted to an
|
|
1179
|
-
* application (sales channel website) created within a business account
|
|
1180
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
1181
|
-
* page. Default value is 10.
|
|
1182
|
-
* @returns {Paginator<ConfigurationPlatformModel.StoresResponse>}
|
|
1183
|
-
* @summary: Get application stores.
|
|
1184
|
-
* @description: Retrieve information 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
|
|
1185
|
-
*/
|
|
1186
|
-
getAppStoresPaginator({ companyId, applicationId, pageSize } = {}) {
|
|
1187
|
-
const paginator = new Paginator();
|
|
1188
|
-
const callback = async () => {
|
|
1189
|
-
const pageId = paginator.nextId;
|
|
1190
|
-
const pageNo = paginator.pageNo;
|
|
1191
|
-
const pageType = "number";
|
|
1192
|
-
const data = await this.getAppStores({
|
|
1193
|
-
companyId: companyId,
|
|
1194
|
-
applicationId: applicationId,
|
|
1195
|
-
pageNo: pageNo,
|
|
1196
|
-
pageSize: pageSize,
|
|
1197
|
-
});
|
|
1198
|
-
paginator.setPaginator({
|
|
1199
|
-
hasNext: data.page.has_next ? true : false,
|
|
1200
|
-
nextId: data.page.next_id,
|
|
1201
|
-
});
|
|
1202
|
-
return data;
|
|
1203
|
-
};
|
|
1204
|
-
paginator.setCallback(callback.bind(this));
|
|
1205
|
-
return paginator;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
/**
|
|
1209
|
-
* @param {ConfigurationPlatformApplicationValidator.GetAppSupportedCurrencyParam} arg
|
|
1210
|
-
* - Arg object
|
|
1211
|
-
*
|
|
1066
|
+
* @param {ConfigurationPlatformApplicationValidator.GetDomainsParam} arg - Arg object
|
|
1212
1067
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1213
1068
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1214
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
1069
|
+
* @returns {Promise<ConfigurationPlatformModel.DomainsResponseSchema>} -
|
|
1215
1070
|
* Success response
|
|
1216
|
-
* @name
|
|
1217
|
-
* @summary:
|
|
1218
|
-
* @description: Retrieve a list of
|
|
1071
|
+
* @name getDomains
|
|
1072
|
+
* @summary: List domains
|
|
1073
|
+
* @description: Retrieve a list of existing domains by its sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getDomains/).
|
|
1219
1074
|
*/
|
|
1220
|
-
async
|
|
1075
|
+
async getDomains(
|
|
1221
1076
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1222
1077
|
{ responseHeaders } = { responseHeaders: false }
|
|
1223
1078
|
) {
|
|
1224
1079
|
const {
|
|
1225
1080
|
error,
|
|
1226
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1081
|
+
} = ConfigurationPlatformApplicationValidator.getDomains().validate(
|
|
1227
1082
|
{},
|
|
1228
1083
|
{ abortEarly: false, allowUnknown: true }
|
|
1229
1084
|
);
|
|
@@ -1234,14 +1089,14 @@ class Configuration {
|
|
|
1234
1089
|
// Showing warrnings if extra unknown parameters are found
|
|
1235
1090
|
const {
|
|
1236
1091
|
error: warrning,
|
|
1237
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1092
|
+
} = ConfigurationPlatformApplicationValidator.getDomains().validate(
|
|
1238
1093
|
{},
|
|
1239
1094
|
{ abortEarly: false, allowUnknown: false }
|
|
1240
1095
|
);
|
|
1241
1096
|
if (warrning) {
|
|
1242
1097
|
Logger({
|
|
1243
1098
|
level: "WARN",
|
|
1244
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
1099
|
+
message: `Parameter Validation warrnings for platform > Configuration > getDomains \n ${warrning}`,
|
|
1245
1100
|
});
|
|
1246
1101
|
}
|
|
1247
1102
|
|
|
@@ -1250,7 +1105,7 @@ class Configuration {
|
|
|
1250
1105
|
const response = await PlatformAPIClient.execute(
|
|
1251
1106
|
this.config,
|
|
1252
1107
|
"get",
|
|
1253
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
1108
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain`,
|
|
1254
1109
|
query_params,
|
|
1255
1110
|
undefined,
|
|
1256
1111
|
requestHeaders,
|
|
@@ -1264,7 +1119,7 @@ class Configuration {
|
|
|
1264
1119
|
|
|
1265
1120
|
const {
|
|
1266
1121
|
error: res_error,
|
|
1267
|
-
} = ConfigurationPlatformModel.
|
|
1122
|
+
} = ConfigurationPlatformModel.DomainsResponseSchema().validate(
|
|
1268
1123
|
responseData,
|
|
1269
1124
|
{ abortEarly: false, allowUnknown: true }
|
|
1270
1125
|
);
|
|
@@ -1275,7 +1130,7 @@ class Configuration {
|
|
|
1275
1130
|
} else {
|
|
1276
1131
|
Logger({
|
|
1277
1132
|
level: "WARN",
|
|
1278
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
1133
|
+
message: `Response Validation Warnings for platform > Configuration > getDomains \n ${res_error}`,
|
|
1279
1134
|
});
|
|
1280
1135
|
}
|
|
1281
1136
|
}
|
|
@@ -1284,23 +1139,24 @@ class Configuration {
|
|
|
1284
1139
|
}
|
|
1285
1140
|
|
|
1286
1141
|
/**
|
|
1287
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
1142
|
+
* @param {ConfigurationPlatformApplicationValidator.GetInventoryConfigParam} arg
|
|
1288
1143
|
* - Arg object
|
|
1289
1144
|
*
|
|
1290
1145
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1291
1146
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1292
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
1293
|
-
*
|
|
1294
|
-
* @
|
|
1295
|
-
* @
|
|
1147
|
+
* @returns {Promise<ConfigurationPlatformModel.ApplicationInventory>} -
|
|
1148
|
+
* Success response
|
|
1149
|
+
* @name getInventoryConfig
|
|
1150
|
+
* @summary: Get inventory configuration
|
|
1151
|
+
* @description: Retrieve configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getInventoryConfig/).
|
|
1296
1152
|
*/
|
|
1297
|
-
async
|
|
1153
|
+
async getInventoryConfig(
|
|
1298
1154
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1299
1155
|
{ responseHeaders } = { responseHeaders: false }
|
|
1300
1156
|
) {
|
|
1301
1157
|
const {
|
|
1302
1158
|
error,
|
|
1303
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1159
|
+
} = ConfigurationPlatformApplicationValidator.getInventoryConfig().validate(
|
|
1304
1160
|
{},
|
|
1305
1161
|
{ abortEarly: false, allowUnknown: true }
|
|
1306
1162
|
);
|
|
@@ -1311,14 +1167,14 @@ class Configuration {
|
|
|
1311
1167
|
// Showing warrnings if extra unknown parameters are found
|
|
1312
1168
|
const {
|
|
1313
1169
|
error: warrning,
|
|
1314
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1170
|
+
} = ConfigurationPlatformApplicationValidator.getInventoryConfig().validate(
|
|
1315
1171
|
{},
|
|
1316
1172
|
{ abortEarly: false, allowUnknown: false }
|
|
1317
1173
|
);
|
|
1318
1174
|
if (warrning) {
|
|
1319
1175
|
Logger({
|
|
1320
1176
|
level: "WARN",
|
|
1321
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
1177
|
+
message: `Parameter Validation warrnings for platform > Configuration > getInventoryConfig \n ${warrning}`,
|
|
1322
1178
|
});
|
|
1323
1179
|
}
|
|
1324
1180
|
|
|
@@ -1327,7 +1183,7 @@ class Configuration {
|
|
|
1327
1183
|
const response = await PlatformAPIClient.execute(
|
|
1328
1184
|
this.config,
|
|
1329
1185
|
"get",
|
|
1330
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}`,
|
|
1186
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
|
|
1331
1187
|
query_params,
|
|
1332
1188
|
undefined,
|
|
1333
1189
|
requestHeaders,
|
|
@@ -1341,10 +1197,10 @@ class Configuration {
|
|
|
1341
1197
|
|
|
1342
1198
|
const {
|
|
1343
1199
|
error: res_error,
|
|
1344
|
-
} = ConfigurationPlatformModel.
|
|
1345
|
-
|
|
1346
|
-
allowUnknown: true
|
|
1347
|
-
|
|
1200
|
+
} = ConfigurationPlatformModel.ApplicationInventory().validate(
|
|
1201
|
+
responseData,
|
|
1202
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1203
|
+
);
|
|
1348
1204
|
|
|
1349
1205
|
if (res_error) {
|
|
1350
1206
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1352,7 +1208,7 @@ class Configuration {
|
|
|
1352
1208
|
} else {
|
|
1353
1209
|
Logger({
|
|
1354
1210
|
level: "WARN",
|
|
1355
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
1211
|
+
message: `Response Validation Warnings for platform > Configuration > getInventoryConfig \n ${res_error}`,
|
|
1356
1212
|
});
|
|
1357
1213
|
}
|
|
1358
1214
|
}
|
|
@@ -1361,23 +1217,24 @@ class Configuration {
|
|
|
1361
1217
|
}
|
|
1362
1218
|
|
|
1363
1219
|
/**
|
|
1364
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
1220
|
+
* @param {ConfigurationPlatformApplicationValidator.GetOrderingStoreConfigParam} arg
|
|
1365
1221
|
* - Arg object
|
|
1366
1222
|
*
|
|
1367
1223
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1368
1224
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1369
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
1370
|
-
*
|
|
1371
|
-
* @
|
|
1372
|
-
* @
|
|
1225
|
+
* @returns {Promise<ConfigurationPlatformModel.OrderingStoreConfig>} -
|
|
1226
|
+
* Success response
|
|
1227
|
+
* @name getOrderingStoreConfig
|
|
1228
|
+
* @summary: Get ordering store configuration
|
|
1229
|
+
* @description: Retrieve configuration settings for ordering stores. Retrieve the details of the deployment stores (the selling locations where the sales channel will be utilised for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoreConfig/).
|
|
1373
1230
|
*/
|
|
1374
|
-
async
|
|
1231
|
+
async getOrderingStoreConfig(
|
|
1375
1232
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1376
1233
|
{ responseHeaders } = { responseHeaders: false }
|
|
1377
1234
|
) {
|
|
1378
1235
|
const {
|
|
1379
1236
|
error,
|
|
1380
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1237
|
+
} = ConfigurationPlatformApplicationValidator.getOrderingStoreConfig().validate(
|
|
1381
1238
|
{},
|
|
1382
1239
|
{ abortEarly: false, allowUnknown: true }
|
|
1383
1240
|
);
|
|
@@ -1388,14 +1245,14 @@ class Configuration {
|
|
|
1388
1245
|
// Showing warrnings if extra unknown parameters are found
|
|
1389
1246
|
const {
|
|
1390
1247
|
error: warrning,
|
|
1391
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1248
|
+
} = ConfigurationPlatformApplicationValidator.getOrderingStoreConfig().validate(
|
|
1392
1249
|
{},
|
|
1393
1250
|
{ abortEarly: false, allowUnknown: false }
|
|
1394
1251
|
);
|
|
1395
1252
|
if (warrning) {
|
|
1396
1253
|
Logger({
|
|
1397
1254
|
level: "WARN",
|
|
1398
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
1255
|
+
message: `Parameter Validation warrnings for platform > Configuration > getOrderingStoreConfig \n ${warrning}`,
|
|
1399
1256
|
});
|
|
1400
1257
|
}
|
|
1401
1258
|
|
|
@@ -1404,7 +1261,7 @@ class Configuration {
|
|
|
1404
1261
|
const response = await PlatformAPIClient.execute(
|
|
1405
1262
|
this.config,
|
|
1406
1263
|
"get",
|
|
1407
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/
|
|
1264
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store`,
|
|
1408
1265
|
query_params,
|
|
1409
1266
|
undefined,
|
|
1410
1267
|
requestHeaders,
|
|
@@ -1418,10 +1275,10 @@ class Configuration {
|
|
|
1418
1275
|
|
|
1419
1276
|
const {
|
|
1420
1277
|
error: res_error,
|
|
1421
|
-
} = ConfigurationPlatformModel.
|
|
1422
|
-
|
|
1423
|
-
allowUnknown: true
|
|
1424
|
-
|
|
1278
|
+
} = ConfigurationPlatformModel.OrderingStoreConfig().validate(
|
|
1279
|
+
responseData,
|
|
1280
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1281
|
+
);
|
|
1425
1282
|
|
|
1426
1283
|
if (res_error) {
|
|
1427
1284
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1429,7 +1286,7 @@ class Configuration {
|
|
|
1429
1286
|
} else {
|
|
1430
1287
|
Logger({
|
|
1431
1288
|
level: "WARN",
|
|
1432
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
1289
|
+
message: `Response Validation Warnings for platform > Configuration > getOrderingStoreConfig \n ${res_error}`,
|
|
1433
1290
|
});
|
|
1434
1291
|
}
|
|
1435
1292
|
}
|
|
@@ -1438,758 +1295,27 @@ class Configuration {
|
|
|
1438
1295
|
}
|
|
1439
1296
|
|
|
1440
1297
|
/**
|
|
1441
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
1298
|
+
* @param {ConfigurationPlatformApplicationValidator.GetOrderingStoreCookieParam} arg
|
|
1442
1299
|
* - Arg object
|
|
1443
1300
|
*
|
|
1444
1301
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1445
1302
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1446
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
1447
|
-
* - Success response
|
|
1448
|
-
*
|
|
1449
|
-
* @name
|
|
1450
|
-
* @summary: Get
|
|
1451
|
-
* @description:
|
|
1452
|
-
*/
|
|
1453
|
-
async getApplicationDomainAvailibility(
|
|
1454
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1455
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1456
|
-
) {
|
|
1457
|
-
const {
|
|
1458
|
-
error,
|
|
1459
|
-
} = ConfigurationPlatformApplicationValidator.getApplicationDomainAvailibility().validate(
|
|
1460
|
-
{
|
|
1461
|
-
body,
|
|
1462
|
-
},
|
|
1463
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1464
|
-
);
|
|
1465
|
-
if (error) {
|
|
1466
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1470
|
-
const {
|
|
1471
|
-
error: warrning,
|
|
1472
|
-
} = ConfigurationPlatformApplicationValidator.getApplicationDomainAvailibility().validate(
|
|
1473
|
-
{
|
|
1474
|
-
body,
|
|
1475
|
-
},
|
|
1476
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1477
|
-
);
|
|
1478
|
-
if (warrning) {
|
|
1479
|
-
Logger({
|
|
1480
|
-
level: "WARN",
|
|
1481
|
-
message: `Parameter Validation warrnings for platform > Configuration > getApplicationDomainAvailibility \n ${warrning}`,
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
const query_params = {};
|
|
1486
|
-
|
|
1487
|
-
const response = await PlatformAPIClient.execute(
|
|
1488
|
-
this.config,
|
|
1489
|
-
"post",
|
|
1490
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/suggestions`,
|
|
1491
|
-
query_params,
|
|
1492
|
-
body,
|
|
1493
|
-
requestHeaders,
|
|
1494
|
-
{ responseHeaders }
|
|
1495
|
-
);
|
|
1496
|
-
|
|
1497
|
-
let responseData = response;
|
|
1498
|
-
if (responseHeaders) {
|
|
1499
|
-
responseData = response[0];
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
const {
|
|
1503
|
-
error: res_error,
|
|
1504
|
-
} = ConfigurationPlatformModel.DomainSuggestionsResponse().validate(
|
|
1505
|
-
responseData,
|
|
1506
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1507
|
-
);
|
|
1508
|
-
|
|
1509
|
-
if (res_error) {
|
|
1510
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1511
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1512
|
-
} else {
|
|
1513
|
-
Logger({
|
|
1514
|
-
level: "WARN",
|
|
1515
|
-
message: `Response Validation Warnings for platform > Configuration > getApplicationDomainAvailibility \n ${res_error}`,
|
|
1516
|
-
});
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
return response;
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
/**
|
|
1524
|
-
* @param {ConfigurationPlatformApplicationValidator.GetDomainStatusParam} arg
|
|
1525
|
-
* - Arg object
|
|
1526
|
-
*
|
|
1527
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1528
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1529
|
-
* @returns {Promise<ConfigurationPlatformModel.DomainStatusResponse>} -
|
|
1530
|
-
* Success response
|
|
1531
|
-
* @name getDomainStatus
|
|
1532
|
-
* @summary: Get domain status.
|
|
1533
|
-
* @description: Retrieve the status of a specific domain. Shows if the A records and TXT records of the domain correctly points to appropriate IP on Fynd Servers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getDomainStatus/).
|
|
1534
|
-
*/
|
|
1535
|
-
async getDomainStatus(
|
|
1536
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1537
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1538
|
-
) {
|
|
1539
|
-
const {
|
|
1540
|
-
error,
|
|
1541
|
-
} = ConfigurationPlatformApplicationValidator.getDomainStatus().validate(
|
|
1542
|
-
{
|
|
1543
|
-
body,
|
|
1544
|
-
},
|
|
1545
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1546
|
-
);
|
|
1547
|
-
if (error) {
|
|
1548
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1549
|
-
}
|
|
1550
|
-
|
|
1551
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1552
|
-
const {
|
|
1553
|
-
error: warrning,
|
|
1554
|
-
} = ConfigurationPlatformApplicationValidator.getDomainStatus().validate(
|
|
1555
|
-
{
|
|
1556
|
-
body,
|
|
1557
|
-
},
|
|
1558
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1559
|
-
);
|
|
1560
|
-
if (warrning) {
|
|
1561
|
-
Logger({
|
|
1562
|
-
level: "WARN",
|
|
1563
|
-
message: `Parameter Validation warrnings for platform > Configuration > getDomainStatus \n ${warrning}`,
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
const query_params = {};
|
|
1568
|
-
|
|
1569
|
-
const response = await PlatformAPIClient.execute(
|
|
1570
|
-
this.config,
|
|
1571
|
-
"post",
|
|
1572
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/domain-status`,
|
|
1573
|
-
query_params,
|
|
1574
|
-
body,
|
|
1575
|
-
requestHeaders,
|
|
1576
|
-
{ responseHeaders }
|
|
1577
|
-
);
|
|
1578
|
-
|
|
1579
|
-
let responseData = response;
|
|
1580
|
-
if (responseHeaders) {
|
|
1581
|
-
responseData = response[0];
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
|
-
const {
|
|
1585
|
-
error: res_error,
|
|
1586
|
-
} = ConfigurationPlatformModel.DomainStatusResponse().validate(
|
|
1587
|
-
responseData,
|
|
1588
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1589
|
-
);
|
|
1590
|
-
|
|
1591
|
-
if (res_error) {
|
|
1592
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1593
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1594
|
-
} else {
|
|
1595
|
-
Logger({
|
|
1596
|
-
level: "WARN",
|
|
1597
|
-
message: `Response Validation Warnings for platform > Configuration > getDomainStatus \n ${res_error}`,
|
|
1598
|
-
});
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
return response;
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
/**
|
|
1606
|
-
* @param {ConfigurationPlatformApplicationValidator.GetDomainsParam} arg - Arg object
|
|
1607
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1608
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1609
|
-
* @returns {Promise<ConfigurationPlatformModel.DomainsResponse>} - Success response
|
|
1610
|
-
* @name getDomains
|
|
1611
|
-
* @summary: Get domains.
|
|
1612
|
-
* @description: Get list of domains. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getDomains/).
|
|
1613
|
-
*/
|
|
1614
|
-
async getDomains(
|
|
1615
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
1616
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1617
|
-
) {
|
|
1618
|
-
const {
|
|
1619
|
-
error,
|
|
1620
|
-
} = ConfigurationPlatformApplicationValidator.getDomains().validate(
|
|
1621
|
-
{},
|
|
1622
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1623
|
-
);
|
|
1624
|
-
if (error) {
|
|
1625
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1629
|
-
const {
|
|
1630
|
-
error: warrning,
|
|
1631
|
-
} = ConfigurationPlatformApplicationValidator.getDomains().validate(
|
|
1632
|
-
{},
|
|
1633
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1634
|
-
);
|
|
1635
|
-
if (warrning) {
|
|
1636
|
-
Logger({
|
|
1637
|
-
level: "WARN",
|
|
1638
|
-
message: `Parameter Validation warrnings for platform > Configuration > getDomains \n ${warrning}`,
|
|
1639
|
-
});
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
const query_params = {};
|
|
1643
|
-
|
|
1644
|
-
const response = await PlatformAPIClient.execute(
|
|
1645
|
-
this.config,
|
|
1646
|
-
"get",
|
|
1647
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain`,
|
|
1648
|
-
query_params,
|
|
1649
|
-
undefined,
|
|
1650
|
-
requestHeaders,
|
|
1651
|
-
{ responseHeaders }
|
|
1652
|
-
);
|
|
1653
|
-
|
|
1654
|
-
let responseData = response;
|
|
1655
|
-
if (responseHeaders) {
|
|
1656
|
-
responseData = response[0];
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
const {
|
|
1660
|
-
error: res_error,
|
|
1661
|
-
} = ConfigurationPlatformModel.DomainsResponse().validate(responseData, {
|
|
1662
|
-
abortEarly: false,
|
|
1663
|
-
allowUnknown: true,
|
|
1664
|
-
});
|
|
1665
|
-
|
|
1666
|
-
if (res_error) {
|
|
1667
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1668
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1669
|
-
} else {
|
|
1670
|
-
Logger({
|
|
1671
|
-
level: "WARN",
|
|
1672
|
-
message: `Response Validation Warnings for platform > Configuration > getDomains \n ${res_error}`,
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
return response;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
/**
|
|
1681
|
-
* @param {ConfigurationPlatformApplicationValidator.GetInventoryConfigParam} arg
|
|
1682
|
-
* - Arg object
|
|
1683
|
-
*
|
|
1684
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1685
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1686
|
-
* @returns {Promise<ConfigurationPlatformModel.ApplicationInventory>} -
|
|
1687
|
-
* Success response
|
|
1688
|
-
* @name getInventoryConfig
|
|
1689
|
-
* @summary: Get inventory configuration.
|
|
1690
|
-
* @description: Retrieve configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getInventoryConfig/).
|
|
1691
|
-
*/
|
|
1692
|
-
async getInventoryConfig(
|
|
1693
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
1694
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1695
|
-
) {
|
|
1696
|
-
const {
|
|
1697
|
-
error,
|
|
1698
|
-
} = ConfigurationPlatformApplicationValidator.getInventoryConfig().validate(
|
|
1699
|
-
{},
|
|
1700
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1701
|
-
);
|
|
1702
|
-
if (error) {
|
|
1703
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1707
|
-
const {
|
|
1708
|
-
error: warrning,
|
|
1709
|
-
} = ConfigurationPlatformApplicationValidator.getInventoryConfig().validate(
|
|
1710
|
-
{},
|
|
1711
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1712
|
-
);
|
|
1713
|
-
if (warrning) {
|
|
1714
|
-
Logger({
|
|
1715
|
-
level: "WARN",
|
|
1716
|
-
message: `Parameter Validation warrnings for platform > Configuration > getInventoryConfig \n ${warrning}`,
|
|
1717
|
-
});
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
const query_params = {};
|
|
1721
|
-
|
|
1722
|
-
const response = await PlatformAPIClient.execute(
|
|
1723
|
-
this.config,
|
|
1724
|
-
"get",
|
|
1725
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
|
|
1726
|
-
query_params,
|
|
1727
|
-
undefined,
|
|
1728
|
-
requestHeaders,
|
|
1729
|
-
{ responseHeaders }
|
|
1730
|
-
);
|
|
1731
|
-
|
|
1732
|
-
let responseData = response;
|
|
1733
|
-
if (responseHeaders) {
|
|
1734
|
-
responseData = response[0];
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
const {
|
|
1738
|
-
error: res_error,
|
|
1739
|
-
} = ConfigurationPlatformModel.ApplicationInventory().validate(
|
|
1740
|
-
responseData,
|
|
1741
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1742
|
-
);
|
|
1743
|
-
|
|
1744
|
-
if (res_error) {
|
|
1745
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1746
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1747
|
-
} else {
|
|
1748
|
-
Logger({
|
|
1749
|
-
level: "WARN",
|
|
1750
|
-
message: `Response Validation Warnings for platform > Configuration > getInventoryConfig \n ${res_error}`,
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
return response;
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
/**
|
|
1759
|
-
* @param {ConfigurationPlatformApplicationValidator.GetOrderingStoreConfigParam} arg
|
|
1760
|
-
* - Arg object
|
|
1761
|
-
*
|
|
1762
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1763
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1764
|
-
* @returns {Promise<ConfigurationPlatformModel.OrderingStoreConfig>} -
|
|
1765
|
-
* Success response
|
|
1766
|
-
* @name getOrderingStoreConfig
|
|
1767
|
-
* @summary: Get ordering store configuration.
|
|
1768
|
-
* @description: Retrieve configuration settings for ordering stores. Retrieve the details of the deployment stores (the selling locations where the application will be utilised for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoreConfig/).
|
|
1769
|
-
*/
|
|
1770
|
-
async getOrderingStoreConfig(
|
|
1771
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
1772
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1773
|
-
) {
|
|
1774
|
-
const {
|
|
1775
|
-
error,
|
|
1776
|
-
} = ConfigurationPlatformApplicationValidator.getOrderingStoreConfig().validate(
|
|
1777
|
-
{},
|
|
1778
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1779
|
-
);
|
|
1780
|
-
if (error) {
|
|
1781
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1785
|
-
const {
|
|
1786
|
-
error: warrning,
|
|
1787
|
-
} = ConfigurationPlatformApplicationValidator.getOrderingStoreConfig().validate(
|
|
1788
|
-
{},
|
|
1789
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1790
|
-
);
|
|
1791
|
-
if (warrning) {
|
|
1792
|
-
Logger({
|
|
1793
|
-
level: "WARN",
|
|
1794
|
-
message: `Parameter Validation warrnings for platform > Configuration > getOrderingStoreConfig \n ${warrning}`,
|
|
1795
|
-
});
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
const query_params = {};
|
|
1799
|
-
|
|
1800
|
-
const response = await PlatformAPIClient.execute(
|
|
1801
|
-
this.config,
|
|
1802
|
-
"get",
|
|
1803
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store`,
|
|
1804
|
-
query_params,
|
|
1805
|
-
undefined,
|
|
1806
|
-
requestHeaders,
|
|
1807
|
-
{ responseHeaders }
|
|
1808
|
-
);
|
|
1809
|
-
|
|
1810
|
-
let responseData = response;
|
|
1811
|
-
if (responseHeaders) {
|
|
1812
|
-
responseData = response[0];
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
const {
|
|
1816
|
-
error: res_error,
|
|
1817
|
-
} = ConfigurationPlatformModel.OrderingStoreConfig().validate(
|
|
1818
|
-
responseData,
|
|
1819
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1820
|
-
);
|
|
1821
|
-
|
|
1822
|
-
if (res_error) {
|
|
1823
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1824
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1825
|
-
} else {
|
|
1826
|
-
Logger({
|
|
1827
|
-
level: "WARN",
|
|
1828
|
-
message: `Response Validation Warnings for platform > Configuration > getOrderingStoreConfig \n ${res_error}`,
|
|
1829
|
-
});
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
return response;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* @param {ConfigurationPlatformApplicationValidator.GetOrderingStoreCookieParam} arg
|
|
1838
|
-
* - Arg object
|
|
1839
|
-
*
|
|
1840
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1841
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1842
|
-
* @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponse>} -
|
|
1843
|
-
* Success response
|
|
1844
|
-
* @name getOrderingStoreCookie
|
|
1845
|
-
* @summary: Get an Ordering Store signed cookie on selection of ordering store.
|
|
1846
|
-
* @description: Use this API to get an Ordering Store signed cookie upon selecting an ordering store. This will be used by the cart service to verify a coupon against the selected ordering store in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoreCookie/).
|
|
1847
|
-
*/
|
|
1848
|
-
async getOrderingStoreCookie(
|
|
1849
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1850
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1851
|
-
) {
|
|
1852
|
-
const {
|
|
1853
|
-
error,
|
|
1854
|
-
} = ConfigurationPlatformApplicationValidator.getOrderingStoreCookie().validate(
|
|
1855
|
-
{
|
|
1856
|
-
body,
|
|
1857
|
-
},
|
|
1858
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1859
|
-
);
|
|
1860
|
-
if (error) {
|
|
1861
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1865
|
-
const {
|
|
1866
|
-
error: warrning,
|
|
1867
|
-
} = ConfigurationPlatformApplicationValidator.getOrderingStoreCookie().validate(
|
|
1868
|
-
{
|
|
1869
|
-
body,
|
|
1870
|
-
},
|
|
1871
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1872
|
-
);
|
|
1873
|
-
if (warrning) {
|
|
1874
|
-
Logger({
|
|
1875
|
-
level: "WARN",
|
|
1876
|
-
message: `Parameter Validation warrnings for platform > Configuration > getOrderingStoreCookie \n ${warrning}`,
|
|
1877
|
-
});
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
const query_params = {};
|
|
1881
|
-
|
|
1882
|
-
const response = await PlatformAPIClient.execute(
|
|
1883
|
-
this.config,
|
|
1884
|
-
"post",
|
|
1885
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/select`,
|
|
1886
|
-
query_params,
|
|
1887
|
-
body,
|
|
1888
|
-
requestHeaders,
|
|
1889
|
-
{ responseHeaders }
|
|
1890
|
-
);
|
|
1891
|
-
|
|
1892
|
-
let responseData = response;
|
|
1893
|
-
if (responseHeaders) {
|
|
1894
|
-
responseData = response[0];
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
const {
|
|
1898
|
-
error: res_error,
|
|
1899
|
-
} = ConfigurationPlatformModel.SuccessMessageResponse().validate(
|
|
1900
|
-
responseData,
|
|
1901
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1902
|
-
);
|
|
1903
|
-
|
|
1904
|
-
if (res_error) {
|
|
1905
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1906
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1907
|
-
} else {
|
|
1908
|
-
Logger({
|
|
1909
|
-
level: "WARN",
|
|
1910
|
-
message: `Response Validation Warnings for platform > Configuration > getOrderingStoreCookie \n ${res_error}`,
|
|
1911
|
-
});
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
return response;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
/**
|
|
1919
|
-
* @param {ConfigurationPlatformApplicationValidator.GetOrderingStoresParam} arg
|
|
1920
|
-
* - Arg object
|
|
1921
|
-
*
|
|
1922
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1923
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1924
|
-
* @returns {Promise<ConfigurationPlatformModel.OrderingStores>} - Success response
|
|
1925
|
-
* @name getOrderingStores
|
|
1926
|
-
* @summary: Get all deployment stores
|
|
1927
|
-
* @description: Use this API to retrieve the details of all the deployment stores (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStores/).
|
|
1928
|
-
*/
|
|
1929
|
-
async getOrderingStores(
|
|
1930
|
-
{ pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
|
|
1931
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1932
|
-
) {
|
|
1933
|
-
const {
|
|
1934
|
-
error,
|
|
1935
|
-
} = ConfigurationPlatformApplicationValidator.getOrderingStores().validate(
|
|
1936
|
-
{
|
|
1937
|
-
pageNo,
|
|
1938
|
-
pageSize,
|
|
1939
|
-
q,
|
|
1940
|
-
},
|
|
1941
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1942
|
-
);
|
|
1943
|
-
if (error) {
|
|
1944
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1948
|
-
const {
|
|
1949
|
-
error: warrning,
|
|
1950
|
-
} = ConfigurationPlatformApplicationValidator.getOrderingStores().validate(
|
|
1951
|
-
{
|
|
1952
|
-
pageNo,
|
|
1953
|
-
pageSize,
|
|
1954
|
-
q,
|
|
1955
|
-
},
|
|
1956
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1957
|
-
);
|
|
1958
|
-
if (warrning) {
|
|
1959
|
-
Logger({
|
|
1960
|
-
level: "WARN",
|
|
1961
|
-
message: `Parameter Validation warrnings for platform > Configuration > getOrderingStores \n ${warrning}`,
|
|
1962
|
-
});
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1965
|
-
const query_params = {};
|
|
1966
|
-
query_params["page_no"] = pageNo;
|
|
1967
|
-
query_params["page_size"] = pageSize;
|
|
1968
|
-
query_params["q"] = q;
|
|
1969
|
-
|
|
1970
|
-
const response = await PlatformAPIClient.execute(
|
|
1971
|
-
this.config,
|
|
1972
|
-
"get",
|
|
1973
|
-
`/service/platform/configuration/v2.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/stores`,
|
|
1974
|
-
query_params,
|
|
1975
|
-
undefined,
|
|
1976
|
-
requestHeaders,
|
|
1977
|
-
{ responseHeaders }
|
|
1978
|
-
);
|
|
1979
|
-
|
|
1980
|
-
let responseData = response;
|
|
1981
|
-
if (responseHeaders) {
|
|
1982
|
-
responseData = response[0];
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
const {
|
|
1986
|
-
error: res_error,
|
|
1987
|
-
} = ConfigurationPlatformModel.OrderingStores().validate(responseData, {
|
|
1988
|
-
abortEarly: false,
|
|
1989
|
-
allowUnknown: true,
|
|
1990
|
-
});
|
|
1991
|
-
|
|
1992
|
-
if (res_error) {
|
|
1993
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1994
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1995
|
-
} else {
|
|
1996
|
-
Logger({
|
|
1997
|
-
level: "WARN",
|
|
1998
|
-
message: `Response Validation Warnings for platform > Configuration > getOrderingStores \n ${res_error}`,
|
|
1999
|
-
});
|
|
2000
|
-
}
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
|
-
return response;
|
|
2004
|
-
}
|
|
2005
|
-
|
|
2006
|
-
/**
|
|
2007
|
-
* @param {Object} arg - Arg object.
|
|
2008
|
-
* @param {number} arg.companyId - Numeric ID allotted to a business account
|
|
2009
|
-
* on Fynd Platform
|
|
2010
|
-
* @param {string} arg.applicationId - Alphanumeric ID allotted to an
|
|
2011
|
-
* application (sales channel website) created within a business account
|
|
2012
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
2013
|
-
* page. Default value is 10.
|
|
2014
|
-
* @param {string} [arg.q] - Store code or name of the ordering store.
|
|
2015
|
-
* @returns {Paginator<ConfigurationPlatformModel.OrderingStores>}
|
|
2016
|
-
* @summary: Get all deployment stores
|
|
2017
|
-
* @description: Use this API to retrieve the details of all the deployment stores (the selling locations where the application will be utilized for placing orders).
|
|
2018
|
-
*/
|
|
2019
|
-
getOrderingStoresPaginator({ companyId, applicationId, pageSize, q } = {}) {
|
|
2020
|
-
const paginator = new Paginator();
|
|
2021
|
-
const callback = async () => {
|
|
2022
|
-
const pageId = paginator.nextId;
|
|
2023
|
-
const pageNo = paginator.pageNo;
|
|
2024
|
-
const pageType = "number";
|
|
2025
|
-
const data = await this.getOrderingStores({
|
|
2026
|
-
companyId: companyId,
|
|
2027
|
-
applicationId: applicationId,
|
|
2028
|
-
pageNo: pageNo,
|
|
2029
|
-
pageSize: pageSize,
|
|
2030
|
-
q: q,
|
|
2031
|
-
});
|
|
2032
|
-
paginator.setPaginator({
|
|
2033
|
-
hasNext: data.page.has_next ? true : false,
|
|
2034
|
-
nextId: data.page.next_id,
|
|
2035
|
-
});
|
|
2036
|
-
return data;
|
|
2037
|
-
};
|
|
2038
|
-
paginator.setCallback(callback.bind(this));
|
|
2039
|
-
return paginator;
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
/**
|
|
2043
|
-
* @param {ConfigurationPlatformApplicationValidator.GetOrderingStoresByFilterParam} arg
|
|
2044
|
-
* - Arg object
|
|
2045
|
-
*
|
|
2046
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2047
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2048
|
-
* @returns {Promise<ConfigurationPlatformModel.OrderingStores>} - Success response
|
|
2049
|
-
* @name getOrderingStoresByFilter
|
|
2050
|
-
* @summary: Get ordering store by filter
|
|
2051
|
-
* @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). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoresByFilter/).
|
|
2052
|
-
*/
|
|
2053
|
-
async getOrderingStoresByFilter(
|
|
2054
|
-
{ body, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
2055
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
2056
|
-
) {
|
|
2057
|
-
const {
|
|
2058
|
-
error,
|
|
2059
|
-
} = ConfigurationPlatformApplicationValidator.getOrderingStoresByFilter().validate(
|
|
2060
|
-
{
|
|
2061
|
-
body,
|
|
2062
|
-
pageNo,
|
|
2063
|
-
pageSize,
|
|
2064
|
-
},
|
|
2065
|
-
{ abortEarly: false, allowUnknown: true }
|
|
2066
|
-
);
|
|
2067
|
-
if (error) {
|
|
2068
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
// Showing warrnings if extra unknown parameters are found
|
|
2072
|
-
const {
|
|
2073
|
-
error: warrning,
|
|
2074
|
-
} = ConfigurationPlatformApplicationValidator.getOrderingStoresByFilter().validate(
|
|
2075
|
-
{
|
|
2076
|
-
body,
|
|
2077
|
-
pageNo,
|
|
2078
|
-
pageSize,
|
|
2079
|
-
},
|
|
2080
|
-
{ abortEarly: false, allowUnknown: false }
|
|
2081
|
-
);
|
|
2082
|
-
if (warrning) {
|
|
2083
|
-
Logger({
|
|
2084
|
-
level: "WARN",
|
|
2085
|
-
message: `Parameter Validation warrnings for platform > Configuration > getOrderingStoresByFilter \n ${warrning}`,
|
|
2086
|
-
});
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
const query_params = {};
|
|
2090
|
-
query_params["page_no"] = pageNo;
|
|
2091
|
-
query_params["page_size"] = pageSize;
|
|
2092
|
-
|
|
2093
|
-
const response = await PlatformAPIClient.execute(
|
|
2094
|
-
this.config,
|
|
2095
|
-
"post",
|
|
2096
|
-
`/service/platform/configuration/v2.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/stores/filter`,
|
|
2097
|
-
query_params,
|
|
2098
|
-
body,
|
|
2099
|
-
requestHeaders,
|
|
2100
|
-
{ responseHeaders }
|
|
2101
|
-
);
|
|
2102
|
-
|
|
2103
|
-
let responseData = response;
|
|
2104
|
-
if (responseHeaders) {
|
|
2105
|
-
responseData = response[0];
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
const {
|
|
2109
|
-
error: res_error,
|
|
2110
|
-
} = ConfigurationPlatformModel.OrderingStores().validate(responseData, {
|
|
2111
|
-
abortEarly: false,
|
|
2112
|
-
allowUnknown: true,
|
|
2113
|
-
});
|
|
2114
|
-
|
|
2115
|
-
if (res_error) {
|
|
2116
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
2117
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2118
|
-
} else {
|
|
2119
|
-
Logger({
|
|
2120
|
-
level: "WARN",
|
|
2121
|
-
message: `Response Validation Warnings for platform > Configuration > getOrderingStoresByFilter \n ${res_error}`,
|
|
2122
|
-
});
|
|
2123
|
-
}
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
return response;
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
/**
|
|
2130
|
-
* @param {Object} arg - Arg object.
|
|
2131
|
-
* @param {number} arg.companyId - Numeric ID allotted to a business account
|
|
2132
|
-
* on Fynd Platform
|
|
2133
|
-
* @param {string} arg.applicationId - Alphanumeric ID allotted to an
|
|
2134
|
-
* application (sales channel website) created within a business account
|
|
2135
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
2136
|
-
* page. Default value is 10.
|
|
2137
|
-
* @param {ConfigurationPlatformModel.FilterOrderingStoreRequest} arg.body
|
|
2138
|
-
* @returns {Paginator<ConfigurationPlatformModel.OrderingStores>}
|
|
2139
|
-
* @summary: Get ordering store by filter
|
|
2140
|
-
* @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).
|
|
2141
|
-
*/
|
|
2142
|
-
getOrderingStoresByFilterPaginator({
|
|
2143
|
-
companyId,
|
|
2144
|
-
applicationId,
|
|
2145
|
-
pageSize,
|
|
2146
|
-
body,
|
|
2147
|
-
} = {}) {
|
|
2148
|
-
const paginator = new Paginator();
|
|
2149
|
-
const callback = async () => {
|
|
2150
|
-
const pageId = paginator.nextId;
|
|
2151
|
-
const pageNo = paginator.pageNo;
|
|
2152
|
-
const pageType = "number";
|
|
2153
|
-
const data = await this.getOrderingStoresByFilter({
|
|
2154
|
-
companyId: companyId,
|
|
2155
|
-
applicationId: applicationId,
|
|
2156
|
-
body: body,
|
|
2157
|
-
pageNo: pageNo,
|
|
2158
|
-
pageSize: pageSize,
|
|
2159
|
-
});
|
|
2160
|
-
paginator.setPaginator({
|
|
2161
|
-
hasNext: data.page.has_next ? true : false,
|
|
2162
|
-
nextId: data.page.next_id,
|
|
2163
|
-
});
|
|
2164
|
-
return data;
|
|
2165
|
-
};
|
|
2166
|
-
paginator.setCallback(callback.bind(this));
|
|
2167
|
-
return paginator;
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
/**
|
|
2171
|
-
* @param {ConfigurationPlatformApplicationValidator.GetStaffOrderingStoresParam} arg
|
|
2172
|
-
* - Arg object
|
|
2173
|
-
*
|
|
2174
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2175
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2176
|
-
* @returns {Promise<ConfigurationPlatformModel.OrderingStoresResponse>} -
|
|
2177
|
-
* Success response
|
|
2178
|
-
* @name getStaffOrderingStores
|
|
2179
|
-
* @summary: Get deployment stores
|
|
2180
|
-
* @description: Use this API to retrieve the details of all stores access given to the staff member (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getStaffOrderingStores/).
|
|
1303
|
+
* @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponseSchema>}
|
|
1304
|
+
* - Success response
|
|
1305
|
+
*
|
|
1306
|
+
* @name getOrderingStoreCookie
|
|
1307
|
+
* @summary: Get ordering store signed cookie
|
|
1308
|
+
* @description: Use this API to get an Ordering Store signed cookie upon selecting an ordering store. This will be used by the cart service to verify a coupon against the selected ordering store in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoreCookie/).
|
|
2181
1309
|
*/
|
|
2182
|
-
async
|
|
2183
|
-
{
|
|
1310
|
+
async getOrderingStoreCookie(
|
|
1311
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2184
1312
|
{ responseHeaders } = { responseHeaders: false }
|
|
2185
1313
|
) {
|
|
2186
1314
|
const {
|
|
2187
1315
|
error,
|
|
2188
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1316
|
+
} = ConfigurationPlatformApplicationValidator.getOrderingStoreCookie().validate(
|
|
2189
1317
|
{
|
|
2190
|
-
|
|
2191
|
-
pageSize,
|
|
2192
|
-
q,
|
|
1318
|
+
body,
|
|
2193
1319
|
},
|
|
2194
1320
|
{ abortEarly: false, allowUnknown: true }
|
|
2195
1321
|
);
|
|
@@ -2200,32 +1326,27 @@ class Configuration {
|
|
|
2200
1326
|
// Showing warrnings if extra unknown parameters are found
|
|
2201
1327
|
const {
|
|
2202
1328
|
error: warrning,
|
|
2203
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1329
|
+
} = ConfigurationPlatformApplicationValidator.getOrderingStoreCookie().validate(
|
|
2204
1330
|
{
|
|
2205
|
-
|
|
2206
|
-
pageSize,
|
|
2207
|
-
q,
|
|
1331
|
+
body,
|
|
2208
1332
|
},
|
|
2209
1333
|
{ abortEarly: false, allowUnknown: false }
|
|
2210
1334
|
);
|
|
2211
1335
|
if (warrning) {
|
|
2212
1336
|
Logger({
|
|
2213
1337
|
level: "WARN",
|
|
2214
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
1338
|
+
message: `Parameter Validation warrnings for platform > Configuration > getOrderingStoreCookie \n ${warrning}`,
|
|
2215
1339
|
});
|
|
2216
1340
|
}
|
|
2217
1341
|
|
|
2218
1342
|
const query_params = {};
|
|
2219
|
-
query_params["page_no"] = pageNo;
|
|
2220
|
-
query_params["page_size"] = pageSize;
|
|
2221
|
-
query_params["q"] = q;
|
|
2222
1343
|
|
|
2223
1344
|
const response = await PlatformAPIClient.execute(
|
|
2224
1345
|
this.config,
|
|
2225
|
-
"
|
|
2226
|
-
`/service/platform/configuration/
|
|
1346
|
+
"post",
|
|
1347
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/select`,
|
|
2227
1348
|
query_params,
|
|
2228
|
-
|
|
1349
|
+
body,
|
|
2229
1350
|
requestHeaders,
|
|
2230
1351
|
{ responseHeaders }
|
|
2231
1352
|
);
|
|
@@ -2237,7 +1358,7 @@ class Configuration {
|
|
|
2237
1358
|
|
|
2238
1359
|
const {
|
|
2239
1360
|
error: res_error,
|
|
2240
|
-
} = ConfigurationPlatformModel.
|
|
1361
|
+
} = ConfigurationPlatformModel.SuccessMessageResponseSchema().validate(
|
|
2241
1362
|
responseData,
|
|
2242
1363
|
{ abortEarly: false, allowUnknown: true }
|
|
2243
1364
|
);
|
|
@@ -2248,7 +1369,7 @@ class Configuration {
|
|
|
2248
1369
|
} else {
|
|
2249
1370
|
Logger({
|
|
2250
1371
|
level: "WARN",
|
|
2251
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
1372
|
+
message: `Response Validation Warnings for platform > Configuration > getOrderingStoreCookie \n ${res_error}`,
|
|
2252
1373
|
});
|
|
2253
1374
|
}
|
|
2254
1375
|
}
|
|
@@ -2257,66 +1378,27 @@ class Configuration {
|
|
|
2257
1378
|
}
|
|
2258
1379
|
|
|
2259
1380
|
/**
|
|
2260
|
-
* @param {
|
|
2261
|
-
* @param {number} arg.companyId - Numeric ID allotted to a business account
|
|
2262
|
-
* on Fynd Platform
|
|
2263
|
-
* @param {string} arg.applicationId - Alphanumeric ID allotted to an
|
|
2264
|
-
* application (sales channel website) created within a business account
|
|
2265
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
2266
|
-
* page. Default value is 10.
|
|
2267
|
-
* @param {string} [arg.q] - Store code or name of the ordering store.
|
|
2268
|
-
* @returns {Paginator<ConfigurationPlatformModel.OrderingStoresResponse>}
|
|
2269
|
-
* @summary: Get deployment stores
|
|
2270
|
-
* @description: Use this API to retrieve the details of all stores access given to the staff member (the selling locations where the application will be utilized for placing orders).
|
|
2271
|
-
*/
|
|
2272
|
-
getStaffOrderingStoresPaginator({
|
|
2273
|
-
companyId,
|
|
2274
|
-
applicationId,
|
|
2275
|
-
pageSize,
|
|
2276
|
-
q,
|
|
2277
|
-
} = {}) {
|
|
2278
|
-
const paginator = new Paginator();
|
|
2279
|
-
const callback = async () => {
|
|
2280
|
-
const pageId = paginator.nextId;
|
|
2281
|
-
const pageNo = paginator.pageNo;
|
|
2282
|
-
const pageType = "number";
|
|
2283
|
-
const data = await this.getStaffOrderingStores({
|
|
2284
|
-
companyId: companyId,
|
|
2285
|
-
applicationId: applicationId,
|
|
2286
|
-
pageNo: pageNo,
|
|
2287
|
-
pageSize: pageSize,
|
|
2288
|
-
q: q,
|
|
2289
|
-
});
|
|
2290
|
-
paginator.setPaginator({
|
|
2291
|
-
hasNext: data.page.has_next ? true : false,
|
|
2292
|
-
nextId: data.page.next_id,
|
|
2293
|
-
});
|
|
2294
|
-
return data;
|
|
2295
|
-
};
|
|
2296
|
-
paginator.setCallback(callback.bind(this));
|
|
2297
|
-
return paginator;
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
/**
|
|
2301
|
-
* @param {ConfigurationPlatformApplicationValidator.GetStoreDetailByIdParam} arg
|
|
1381
|
+
* @param {ConfigurationPlatformApplicationValidator.GetOrderingStoresByFilterParam} arg
|
|
2302
1382
|
* - Arg object
|
|
2303
1383
|
*
|
|
2304
1384
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2305
1385
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2306
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
2307
|
-
* @name
|
|
2308
|
-
* @summary:
|
|
2309
|
-
* @description: Use
|
|
1386
|
+
* @returns {Promise<ConfigurationPlatformModel.OrderingStores>} - Success response
|
|
1387
|
+
* @name getOrderingStoresByFilter
|
|
1388
|
+
* @summary: List ordering stores
|
|
1389
|
+
* @description: Retrieve ordering stores based on specified filters. Use filters and retrieve the details of the deployment stores (the selling locations where the sales channel will be utilised for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoresByFilter/).
|
|
2310
1390
|
*/
|
|
2311
|
-
async
|
|
2312
|
-
{
|
|
1391
|
+
async getOrderingStoresByFilter(
|
|
1392
|
+
{ body, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
2313
1393
|
{ responseHeaders } = { responseHeaders: false }
|
|
2314
1394
|
) {
|
|
2315
1395
|
const {
|
|
2316
1396
|
error,
|
|
2317
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1397
|
+
} = ConfigurationPlatformApplicationValidator.getOrderingStoresByFilter().validate(
|
|
2318
1398
|
{
|
|
2319
|
-
|
|
1399
|
+
body,
|
|
1400
|
+
pageNo,
|
|
1401
|
+
pageSize,
|
|
2320
1402
|
},
|
|
2321
1403
|
{ abortEarly: false, allowUnknown: true }
|
|
2322
1404
|
);
|
|
@@ -2327,27 +1409,31 @@ class Configuration {
|
|
|
2327
1409
|
// Showing warrnings if extra unknown parameters are found
|
|
2328
1410
|
const {
|
|
2329
1411
|
error: warrning,
|
|
2330
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1412
|
+
} = ConfigurationPlatformApplicationValidator.getOrderingStoresByFilter().validate(
|
|
2331
1413
|
{
|
|
2332
|
-
|
|
1414
|
+
body,
|
|
1415
|
+
pageNo,
|
|
1416
|
+
pageSize,
|
|
2333
1417
|
},
|
|
2334
1418
|
{ abortEarly: false, allowUnknown: false }
|
|
2335
1419
|
);
|
|
2336
1420
|
if (warrning) {
|
|
2337
1421
|
Logger({
|
|
2338
1422
|
level: "WARN",
|
|
2339
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
1423
|
+
message: `Parameter Validation warrnings for platform > Configuration > getOrderingStoresByFilter \n ${warrning}`,
|
|
2340
1424
|
});
|
|
2341
1425
|
}
|
|
2342
1426
|
|
|
2343
1427
|
const query_params = {};
|
|
1428
|
+
query_params["page_no"] = pageNo;
|
|
1429
|
+
query_params["page_size"] = pageSize;
|
|
2344
1430
|
|
|
2345
1431
|
const response = await PlatformAPIClient.execute(
|
|
2346
1432
|
this.config,
|
|
2347
|
-
"
|
|
2348
|
-
`/service/platform/configuration/v2.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/stores
|
|
1433
|
+
"post",
|
|
1434
|
+
`/service/platform/configuration/v2.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/stores/filter`,
|
|
2349
1435
|
query_params,
|
|
2350
|
-
|
|
1436
|
+
body,
|
|
2351
1437
|
requestHeaders,
|
|
2352
1438
|
{ responseHeaders }
|
|
2353
1439
|
);
|
|
@@ -2359,7 +1445,7 @@ class Configuration {
|
|
|
2359
1445
|
|
|
2360
1446
|
const {
|
|
2361
1447
|
error: res_error,
|
|
2362
|
-
} = ConfigurationPlatformModel.
|
|
1448
|
+
} = ConfigurationPlatformModel.OrderingStores().validate(responseData, {
|
|
2363
1449
|
abortEarly: false,
|
|
2364
1450
|
allowUnknown: true,
|
|
2365
1451
|
});
|
|
@@ -2370,7 +1456,7 @@ class Configuration {
|
|
|
2370
1456
|
} else {
|
|
2371
1457
|
Logger({
|
|
2372
1458
|
level: "WARN",
|
|
2373
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
1459
|
+
message: `Response Validation Warnings for platform > Configuration > getOrderingStoresByFilter \n ${res_error}`,
|
|
2374
1460
|
});
|
|
2375
1461
|
}
|
|
2376
1462
|
}
|
|
@@ -2379,25 +1465,26 @@ class Configuration {
|
|
|
2379
1465
|
}
|
|
2380
1466
|
|
|
2381
1467
|
/**
|
|
2382
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
1468
|
+
* @param {ConfigurationPlatformApplicationValidator.GetPreviousVersionsParam} arg
|
|
2383
1469
|
* - Arg object
|
|
2384
1470
|
*
|
|
2385
1471
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2386
1472
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2387
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
2388
|
-
*
|
|
2389
|
-
* @
|
|
2390
|
-
* @
|
|
1473
|
+
* @returns {Promise<ConfigurationPlatformModel.BuildVersionHistory>} -
|
|
1474
|
+
* Success response
|
|
1475
|
+
* @name getPreviousVersions
|
|
1476
|
+
* @summary: Get previous versions
|
|
1477
|
+
* @description: Retrieve version details of the app, this includes the build status, build date, version name, latest version, and a lot more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getPreviousVersions/).
|
|
2391
1478
|
*/
|
|
2392
|
-
async
|
|
2393
|
-
{
|
|
1479
|
+
async getPreviousVersions(
|
|
1480
|
+
{ platformType, requestHeaders } = { requestHeaders: {} },
|
|
2394
1481
|
{ responseHeaders } = { responseHeaders: false }
|
|
2395
1482
|
) {
|
|
2396
1483
|
const {
|
|
2397
1484
|
error,
|
|
2398
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1485
|
+
} = ConfigurationPlatformApplicationValidator.getPreviousVersions().validate(
|
|
2399
1486
|
{
|
|
2400
|
-
|
|
1487
|
+
platformType,
|
|
2401
1488
|
},
|
|
2402
1489
|
{ abortEarly: false, allowUnknown: true }
|
|
2403
1490
|
);
|
|
@@ -2408,16 +1495,16 @@ class Configuration {
|
|
|
2408
1495
|
// Showing warrnings if extra unknown parameters are found
|
|
2409
1496
|
const {
|
|
2410
1497
|
error: warrning,
|
|
2411
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
1498
|
+
} = ConfigurationPlatformApplicationValidator.getPreviousVersions().validate(
|
|
2412
1499
|
{
|
|
2413
|
-
|
|
1500
|
+
platformType,
|
|
2414
1501
|
},
|
|
2415
1502
|
{ abortEarly: false, allowUnknown: false }
|
|
2416
1503
|
);
|
|
2417
1504
|
if (warrning) {
|
|
2418
1505
|
Logger({
|
|
2419
1506
|
level: "WARN",
|
|
2420
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
1507
|
+
message: `Parameter Validation warrnings for platform > Configuration > getPreviousVersions \n ${warrning}`,
|
|
2421
1508
|
});
|
|
2422
1509
|
}
|
|
2423
1510
|
|
|
@@ -2426,7 +1513,7 @@ class Configuration {
|
|
|
2426
1513
|
const response = await PlatformAPIClient.execute(
|
|
2427
1514
|
this.config,
|
|
2428
1515
|
"get",
|
|
2429
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
1516
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/versions`,
|
|
2430
1517
|
query_params,
|
|
2431
1518
|
undefined,
|
|
2432
1519
|
requestHeaders,
|
|
@@ -2440,10 +1527,10 @@ class Configuration {
|
|
|
2440
1527
|
|
|
2441
1528
|
const {
|
|
2442
1529
|
error: res_error,
|
|
2443
|
-
} = ConfigurationPlatformModel.
|
|
2444
|
-
|
|
2445
|
-
allowUnknown: true
|
|
2446
|
-
|
|
1530
|
+
} = ConfigurationPlatformModel.BuildVersionHistory().validate(
|
|
1531
|
+
responseData,
|
|
1532
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1533
|
+
);
|
|
2447
1534
|
|
|
2448
1535
|
if (res_error) {
|
|
2449
1536
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2451,7 +1538,7 @@ class Configuration {
|
|
|
2451
1538
|
} else {
|
|
2452
1539
|
Logger({
|
|
2453
1540
|
level: "WARN",
|
|
2454
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
1541
|
+
message: `Response Validation Warnings for platform > Configuration > getPreviousVersions \n ${res_error}`,
|
|
2455
1542
|
});
|
|
2456
1543
|
}
|
|
2457
1544
|
}
|
|
@@ -2460,25 +1547,30 @@ class Configuration {
|
|
|
2460
1547
|
}
|
|
2461
1548
|
|
|
2462
1549
|
/**
|
|
2463
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
1550
|
+
* @param {ConfigurationPlatformApplicationValidator.GetStaffOrderingStoresParam} arg
|
|
2464
1551
|
* - Arg object
|
|
2465
1552
|
*
|
|
2466
1553
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2467
1554
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2468
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
2469
|
-
* Success response
|
|
2470
|
-
*
|
|
2471
|
-
* @
|
|
2472
|
-
* @
|
|
1555
|
+
* @returns {Promise<ConfigurationPlatformModel.OrderingStoresResponseSchema>}
|
|
1556
|
+
* - Success response
|
|
1557
|
+
*
|
|
1558
|
+
* @name getStaffOrderingStores
|
|
1559
|
+
* @summary: Get staff ordering stores
|
|
1560
|
+
* @description: Retrieve ordering stores accessible to staff members. Retrieve the details of all stores access given to the staff member (the selling locations where the sales channel will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getStaffOrderingStores/).
|
|
2473
1561
|
*/
|
|
2474
|
-
async
|
|
2475
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
1562
|
+
async getStaffOrderingStores(
|
|
1563
|
+
{ pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
|
|
2476
1564
|
{ responseHeaders } = { responseHeaders: false }
|
|
2477
1565
|
) {
|
|
2478
1566
|
const {
|
|
2479
1567
|
error,
|
|
2480
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
2481
|
-
{
|
|
1568
|
+
} = ConfigurationPlatformApplicationValidator.getStaffOrderingStores().validate(
|
|
1569
|
+
{
|
|
1570
|
+
pageNo,
|
|
1571
|
+
pageSize,
|
|
1572
|
+
q,
|
|
1573
|
+
},
|
|
2482
1574
|
{ abortEarly: false, allowUnknown: true }
|
|
2483
1575
|
);
|
|
2484
1576
|
if (error) {
|
|
@@ -2488,23 +1580,30 @@ class Configuration {
|
|
|
2488
1580
|
// Showing warrnings if extra unknown parameters are found
|
|
2489
1581
|
const {
|
|
2490
1582
|
error: warrning,
|
|
2491
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
2492
|
-
{
|
|
1583
|
+
} = ConfigurationPlatformApplicationValidator.getStaffOrderingStores().validate(
|
|
1584
|
+
{
|
|
1585
|
+
pageNo,
|
|
1586
|
+
pageSize,
|
|
1587
|
+
q,
|
|
1588
|
+
},
|
|
2493
1589
|
{ abortEarly: false, allowUnknown: false }
|
|
2494
1590
|
);
|
|
2495
1591
|
if (warrning) {
|
|
2496
1592
|
Logger({
|
|
2497
1593
|
level: "WARN",
|
|
2498
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
1594
|
+
message: `Parameter Validation warrnings for platform > Configuration > getStaffOrderingStores \n ${warrning}`,
|
|
2499
1595
|
});
|
|
2500
1596
|
}
|
|
2501
1597
|
|
|
2502
1598
|
const query_params = {};
|
|
1599
|
+
query_params["page_no"] = pageNo;
|
|
1600
|
+
query_params["page_size"] = pageSize;
|
|
1601
|
+
query_params["q"] = q;
|
|
2503
1602
|
|
|
2504
1603
|
const response = await PlatformAPIClient.execute(
|
|
2505
1604
|
this.config,
|
|
2506
1605
|
"get",
|
|
2507
|
-
`/service/platform/configuration/
|
|
1606
|
+
`/service/platform/configuration/v2.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/staff-stores`,
|
|
2508
1607
|
query_params,
|
|
2509
1608
|
undefined,
|
|
2510
1609
|
requestHeaders,
|
|
@@ -2518,7 +1617,7 @@ class Configuration {
|
|
|
2518
1617
|
|
|
2519
1618
|
const {
|
|
2520
1619
|
error: res_error,
|
|
2521
|
-
} = ConfigurationPlatformModel.
|
|
1620
|
+
} = ConfigurationPlatformModel.OrderingStoresResponseSchema().validate(
|
|
2522
1621
|
responseData,
|
|
2523
1622
|
{ abortEarly: false, allowUnknown: true }
|
|
2524
1623
|
);
|
|
@@ -2529,7 +1628,7 @@ class Configuration {
|
|
|
2529
1628
|
} else {
|
|
2530
1629
|
Logger({
|
|
2531
1630
|
level: "WARN",
|
|
2532
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
1631
|
+
message: `Response Validation Warnings for platform > Configuration > getStaffOrderingStores \n ${res_error}`,
|
|
2533
1632
|
});
|
|
2534
1633
|
}
|
|
2535
1634
|
}
|
|
@@ -2545,8 +1644,8 @@ class Configuration {
|
|
|
2545
1644
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2546
1645
|
* @returns {Promise<ConfigurationPlatformModel.AppFeature>} - Success response
|
|
2547
1646
|
* @name modifyAppFeatures
|
|
2548
|
-
* @summary:
|
|
2549
|
-
* @description:
|
|
1647
|
+
* @summary: update sales channel features
|
|
1648
|
+
* @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. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/modifyAppFeatures/).
|
|
2550
1649
|
*/
|
|
2551
1650
|
async modifyAppFeatures(
|
|
2552
1651
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -2627,8 +1726,8 @@ class Configuration {
|
|
|
2627
1726
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationInventory>} -
|
|
2628
1727
|
* Success response
|
|
2629
1728
|
* @name partiallyUpdateInventoryConfig
|
|
2630
|
-
* @summary: Partially update inventory configuration
|
|
2631
|
-
* @description:
|
|
1729
|
+
* @summary: Partially update inventory configuration
|
|
1730
|
+
* @description: Modify the configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/partiallyUpdateInventoryConfig/).
|
|
2632
1731
|
*/
|
|
2633
1732
|
async partiallyUpdateInventoryConfig(
|
|
2634
1733
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -2706,21 +1805,22 @@ class Configuration {
|
|
|
2706
1805
|
*
|
|
2707
1806
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2708
1807
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2709
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
2710
|
-
* Success response
|
|
1808
|
+
* @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponseSchema>}
|
|
1809
|
+
* - Success response
|
|
1810
|
+
*
|
|
2711
1811
|
* @name removeDomainById
|
|
2712
|
-
* @summary: Remove domain
|
|
2713
|
-
* @description: Delete a specific domain from the
|
|
1812
|
+
* @summary: Remove domain
|
|
1813
|
+
* @description: Delete a specific domain from the sales channel. 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. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/removeDomainById/).
|
|
2714
1814
|
*/
|
|
2715
1815
|
async removeDomainById(
|
|
2716
|
-
{
|
|
1816
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
2717
1817
|
{ responseHeaders } = { responseHeaders: false }
|
|
2718
1818
|
) {
|
|
2719
1819
|
const {
|
|
2720
1820
|
error,
|
|
2721
1821
|
} = ConfigurationPlatformApplicationValidator.removeDomainById().validate(
|
|
2722
1822
|
{
|
|
2723
|
-
|
|
1823
|
+
id,
|
|
2724
1824
|
},
|
|
2725
1825
|
{ abortEarly: false, allowUnknown: true }
|
|
2726
1826
|
);
|
|
@@ -2733,7 +1833,7 @@ class Configuration {
|
|
|
2733
1833
|
error: warrning,
|
|
2734
1834
|
} = ConfigurationPlatformApplicationValidator.removeDomainById().validate(
|
|
2735
1835
|
{
|
|
2736
|
-
|
|
1836
|
+
id,
|
|
2737
1837
|
},
|
|
2738
1838
|
{ abortEarly: false, allowUnknown: false }
|
|
2739
1839
|
);
|
|
@@ -2749,7 +1849,7 @@ class Configuration {
|
|
|
2749
1849
|
const response = await PlatformAPIClient.execute(
|
|
2750
1850
|
this.config,
|
|
2751
1851
|
"delete",
|
|
2752
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/${
|
|
1852
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/${id}`,
|
|
2753
1853
|
query_params,
|
|
2754
1854
|
undefined,
|
|
2755
1855
|
requestHeaders,
|
|
@@ -2763,7 +1863,7 @@ class Configuration {
|
|
|
2763
1863
|
|
|
2764
1864
|
const {
|
|
2765
1865
|
error: res_error,
|
|
2766
|
-
} = ConfigurationPlatformModel.
|
|
1866
|
+
} = ConfigurationPlatformModel.SuccessMessageResponseSchema().validate(
|
|
2767
1867
|
responseData,
|
|
2768
1868
|
{ abortEarly: false, allowUnknown: true }
|
|
2769
1869
|
);
|
|
@@ -2788,10 +1888,11 @@ class Configuration {
|
|
|
2788
1888
|
*
|
|
2789
1889
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2790
1890
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2791
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
2792
|
-
* Success response
|
|
1891
|
+
* @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponseSchema>}
|
|
1892
|
+
* - Success response
|
|
1893
|
+
*
|
|
2793
1894
|
* @name removeOrderingStoreCookie
|
|
2794
|
-
* @summary:
|
|
1895
|
+
* @summary: Delete Ordering Store signed cookie
|
|
2795
1896
|
* @description: Use this API to unset the Ordering Store cookie upon changing the sales channel, by its domain URL, in the Universal Fynd Store app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/removeOrderingStoreCookie/).
|
|
2796
1897
|
*/
|
|
2797
1898
|
async removeOrderingStoreCookie(
|
|
@@ -2841,7 +1942,7 @@ class Configuration {
|
|
|
2841
1942
|
|
|
2842
1943
|
const {
|
|
2843
1944
|
error: res_error,
|
|
2844
|
-
} = ConfigurationPlatformModel.
|
|
1945
|
+
} = ConfigurationPlatformModel.SuccessMessageResponseSchema().validate(
|
|
2845
1946
|
responseData,
|
|
2846
1947
|
{ abortEarly: false, allowUnknown: true }
|
|
2847
1948
|
);
|
|
@@ -2866,10 +1967,11 @@ class Configuration {
|
|
|
2866
1967
|
*
|
|
2867
1968
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2868
1969
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2869
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
1970
|
+
* @returns {Promise<ConfigurationPlatformModel.TokenResponseSchema>} -
|
|
1971
|
+
* Success response
|
|
2870
1972
|
* @name updateAppApiTokens
|
|
2871
|
-
* @summary: Update
|
|
2872
|
-
* @description: Add
|
|
1973
|
+
* @summary: Update sales channel API tokens
|
|
1974
|
+
* @description: Add and edit the tokens used for integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, Google and Facebook auth. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppApiTokens/).
|
|
2873
1975
|
*/
|
|
2874
1976
|
async updateAppApiTokens(
|
|
2875
1977
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -2922,10 +2024,10 @@ class Configuration {
|
|
|
2922
2024
|
|
|
2923
2025
|
const {
|
|
2924
2026
|
error: res_error,
|
|
2925
|
-
} = ConfigurationPlatformModel.
|
|
2926
|
-
|
|
2927
|
-
allowUnknown: true
|
|
2928
|
-
|
|
2027
|
+
} = ConfigurationPlatformModel.TokenResponseSchema().validate(
|
|
2028
|
+
responseData,
|
|
2029
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2030
|
+
);
|
|
2929
2031
|
|
|
2930
2032
|
if (res_error) {
|
|
2931
2033
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2949,7 +2051,7 @@ class Configuration {
|
|
|
2949
2051
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2950
2052
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationDetail>} - Success response
|
|
2951
2053
|
* @name updateAppBasicDetails
|
|
2952
|
-
* @summary: Update
|
|
2054
|
+
* @summary: Update sales channel basic details
|
|
2953
2055
|
* @description: Modify sales channel details like name, description, logo, domain, company ID, and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppBasicDetails/).
|
|
2954
2056
|
*/
|
|
2955
2057
|
async updateAppBasicDetails(
|
|
@@ -3031,8 +2133,8 @@ class Configuration {
|
|
|
3031
2133
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationInformation>} -
|
|
3032
2134
|
* Success response
|
|
3033
2135
|
* @name updateAppContactInfo
|
|
3034
|
-
* @summary: Update
|
|
3035
|
-
* @description: Modify the social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the
|
|
2136
|
+
* @summary: Update sales channel contact
|
|
2137
|
+
* @description: Modify the social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppContactInfo/).
|
|
3036
2138
|
*/
|
|
3037
2139
|
async updateAppContactInfo(
|
|
3038
2140
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -3113,8 +2215,8 @@ class Configuration {
|
|
|
3113
2215
|
* @returns {Promise<ConfigurationPlatformModel.AppSupportedCurrency>} -
|
|
3114
2216
|
* Success response
|
|
3115
2217
|
* @name updateAppCurrencyConfig
|
|
3116
|
-
* @summary: Update
|
|
3117
|
-
* @description: Modify currency configuration settings for the
|
|
2218
|
+
* @summary: Update sales channel currency configuration
|
|
2219
|
+
* @description: Modify currency configuration settings for the sales channel. Add and edit the currencies supported in the sales channel. Initially, INR will be enabled by default. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppCurrencyConfig/).
|
|
3118
2220
|
*/
|
|
3119
2221
|
async updateAppCurrencyConfig(
|
|
3120
2222
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -3152,7 +2254,7 @@ class Configuration {
|
|
|
3152
2254
|
|
|
3153
2255
|
const response = await PlatformAPIClient.execute(
|
|
3154
2256
|
this.config,
|
|
3155
|
-
"
|
|
2257
|
+
"post",
|
|
3156
2258
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency`,
|
|
3157
2259
|
query_params,
|
|
3158
2260
|
body,
|
|
@@ -3194,7 +2296,7 @@ class Configuration {
|
|
|
3194
2296
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3195
2297
|
* @returns {Promise<ConfigurationPlatformModel.AppFeature>} - Success response
|
|
3196
2298
|
* @name updateAppFeatures
|
|
3197
|
-
* @summary: Update
|
|
2299
|
+
* @summary: Update sales channel
|
|
3198
2300
|
* @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. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppFeatures/).
|
|
3199
2301
|
*/
|
|
3200
2302
|
async updateAppFeatures(
|
|
@@ -3268,24 +2370,26 @@ class Configuration {
|
|
|
3268
2370
|
}
|
|
3269
2371
|
|
|
3270
2372
|
/**
|
|
3271
|
-
* @param {ConfigurationPlatformApplicationValidator.
|
|
2373
|
+
* @param {ConfigurationPlatformApplicationValidator.UpdateBuildConfigParam} arg
|
|
3272
2374
|
* - Arg object
|
|
3273
2375
|
*
|
|
3274
2376
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3275
2377
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3276
|
-
* @returns {Promise<ConfigurationPlatformModel.
|
|
3277
|
-
*
|
|
3278
|
-
* @
|
|
3279
|
-
* @
|
|
2378
|
+
* @returns {Promise<ConfigurationPlatformModel.MobileAppConfiguration>} -
|
|
2379
|
+
* Success response
|
|
2380
|
+
* @name updateBuildConfig
|
|
2381
|
+
* @summary: Update build configuration
|
|
2382
|
+
* @description: Modify the existing build configuration, such as app name, landing page image, splash image used in a mobile build. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateBuildConfig/).
|
|
3280
2383
|
*/
|
|
3281
|
-
async
|
|
3282
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2384
|
+
async updateBuildConfig(
|
|
2385
|
+
{ platformType, body, requestHeaders } = { requestHeaders: {} },
|
|
3283
2386
|
{ responseHeaders } = { responseHeaders: false }
|
|
3284
2387
|
) {
|
|
3285
2388
|
const {
|
|
3286
2389
|
error,
|
|
3287
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
2390
|
+
} = ConfigurationPlatformApplicationValidator.updateBuildConfig().validate(
|
|
3288
2391
|
{
|
|
2392
|
+
platformType,
|
|
3289
2393
|
body,
|
|
3290
2394
|
},
|
|
3291
2395
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -3297,8 +2401,9 @@ class Configuration {
|
|
|
3297
2401
|
// Showing warrnings if extra unknown parameters are found
|
|
3298
2402
|
const {
|
|
3299
2403
|
error: warrning,
|
|
3300
|
-
} = ConfigurationPlatformApplicationValidator.
|
|
2404
|
+
} = ConfigurationPlatformApplicationValidator.updateBuildConfig().validate(
|
|
3301
2405
|
{
|
|
2406
|
+
platformType,
|
|
3302
2407
|
body,
|
|
3303
2408
|
},
|
|
3304
2409
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -3306,7 +2411,7 @@ class Configuration {
|
|
|
3306
2411
|
if (warrning) {
|
|
3307
2412
|
Logger({
|
|
3308
2413
|
level: "WARN",
|
|
3309
|
-
message: `Parameter Validation warrnings for platform > Configuration >
|
|
2414
|
+
message: `Parameter Validation warrnings for platform > Configuration > updateBuildConfig \n ${warrning}`,
|
|
3310
2415
|
});
|
|
3311
2416
|
}
|
|
3312
2417
|
|
|
@@ -3315,7 +2420,7 @@ class Configuration {
|
|
|
3315
2420
|
const response = await PlatformAPIClient.execute(
|
|
3316
2421
|
this.config,
|
|
3317
2422
|
"put",
|
|
3318
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}`,
|
|
2423
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/configuration`,
|
|
3319
2424
|
query_params,
|
|
3320
2425
|
body,
|
|
3321
2426
|
requestHeaders,
|
|
@@ -3329,91 +2434,10 @@ class Configuration {
|
|
|
3329
2434
|
|
|
3330
2435
|
const {
|
|
3331
2436
|
error: res_error,
|
|
3332
|
-
} = ConfigurationPlatformModel.
|
|
3333
|
-
|
|
3334
|
-
allowUnknown: true,
|
|
3335
|
-
});
|
|
3336
|
-
|
|
3337
|
-
if (res_error) {
|
|
3338
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
3339
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3340
|
-
} else {
|
|
3341
|
-
Logger({
|
|
3342
|
-
level: "WARN",
|
|
3343
|
-
message: `Response Validation Warnings for platform > Configuration > updateApplication \n ${res_error}`,
|
|
3344
|
-
});
|
|
3345
|
-
}
|
|
3346
|
-
}
|
|
3347
|
-
|
|
3348
|
-
return response;
|
|
3349
|
-
}
|
|
3350
|
-
|
|
3351
|
-
/**
|
|
3352
|
-
* @param {ConfigurationPlatformApplicationValidator.UpdateApplicationVersionParam} arg
|
|
3353
|
-
* - Arg object
|
|
3354
|
-
*
|
|
3355
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3356
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3357
|
-
* @returns {Promise<ConfigurationPlatformModel.PlatformVersion>} - Success response
|
|
3358
|
-
* @name updateApplicationVersion
|
|
3359
|
-
* @summary: Update Application Version
|
|
3360
|
-
* @description: Updates the version details of an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateApplicationVersion/).
|
|
3361
|
-
*/
|
|
3362
|
-
async updateApplicationVersion(
|
|
3363
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
3364
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
3365
|
-
) {
|
|
3366
|
-
const {
|
|
3367
|
-
error,
|
|
3368
|
-
} = ConfigurationPlatformApplicationValidator.updateApplicationVersion().validate(
|
|
3369
|
-
{
|
|
3370
|
-
body,
|
|
3371
|
-
},
|
|
2437
|
+
} = ConfigurationPlatformModel.MobileAppConfiguration().validate(
|
|
2438
|
+
responseData,
|
|
3372
2439
|
{ abortEarly: false, allowUnknown: true }
|
|
3373
2440
|
);
|
|
3374
|
-
if (error) {
|
|
3375
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
3376
|
-
}
|
|
3377
|
-
|
|
3378
|
-
// Showing warrnings if extra unknown parameters are found
|
|
3379
|
-
const {
|
|
3380
|
-
error: warrning,
|
|
3381
|
-
} = ConfigurationPlatformApplicationValidator.updateApplicationVersion().validate(
|
|
3382
|
-
{
|
|
3383
|
-
body,
|
|
3384
|
-
},
|
|
3385
|
-
{ abortEarly: false, allowUnknown: false }
|
|
3386
|
-
);
|
|
3387
|
-
if (warrning) {
|
|
3388
|
-
Logger({
|
|
3389
|
-
level: "WARN",
|
|
3390
|
-
message: `Parameter Validation warrnings for platform > Configuration > updateApplicationVersion \n ${warrning}`,
|
|
3391
|
-
});
|
|
3392
|
-
}
|
|
3393
|
-
|
|
3394
|
-
const query_params = {};
|
|
3395
|
-
|
|
3396
|
-
const response = await PlatformAPIClient.execute(
|
|
3397
|
-
this.config,
|
|
3398
|
-
"put",
|
|
3399
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/version`,
|
|
3400
|
-
query_params,
|
|
3401
|
-
body,
|
|
3402
|
-
requestHeaders,
|
|
3403
|
-
{ responseHeaders }
|
|
3404
|
-
);
|
|
3405
|
-
|
|
3406
|
-
let responseData = response;
|
|
3407
|
-
if (responseHeaders) {
|
|
3408
|
-
responseData = response[0];
|
|
3409
|
-
}
|
|
3410
|
-
|
|
3411
|
-
const {
|
|
3412
|
-
error: res_error,
|
|
3413
|
-
} = ConfigurationPlatformModel.PlatformVersion().validate(responseData, {
|
|
3414
|
-
abortEarly: false,
|
|
3415
|
-
allowUnknown: true,
|
|
3416
|
-
});
|
|
3417
2441
|
|
|
3418
2442
|
if (res_error) {
|
|
3419
2443
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3421,7 +2445,7 @@ class Configuration {
|
|
|
3421
2445
|
} else {
|
|
3422
2446
|
Logger({
|
|
3423
2447
|
level: "WARN",
|
|
3424
|
-
message: `Response Validation Warnings for platform > Configuration >
|
|
2448
|
+
message: `Response Validation Warnings for platform > Configuration > updateBuildConfig \n ${res_error}`,
|
|
3425
2449
|
});
|
|
3426
2450
|
}
|
|
3427
2451
|
}
|
|
@@ -3438,7 +2462,7 @@ class Configuration {
|
|
|
3438
2462
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationInventory>} -
|
|
3439
2463
|
* Success response
|
|
3440
2464
|
* @name updateInventoryConfig
|
|
3441
|
-
* @summary: Update inventory configuration
|
|
2465
|
+
* @summary: Update inventory configuration
|
|
3442
2466
|
* @description: Modify the configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateInventoryConfig/).
|
|
3443
2467
|
*/
|
|
3444
2468
|
async updateInventoryConfig(
|
|
@@ -3519,8 +2543,8 @@ class Configuration {
|
|
|
3519
2543
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3520
2544
|
* @returns {Promise<ConfigurationPlatformModel.DeploymentMeta>} - Success response
|
|
3521
2545
|
* @name updateOrderingStoreConfig
|
|
3522
|
-
* @summary: Update ordering store configuration
|
|
3523
|
-
* @description: Modify configuration settings for ordering stores. Edit the details of the deployment stores (the selling locations where the
|
|
2546
|
+
* @summary: Update ordering store configuration
|
|
2547
|
+
* @description: Modify configuration settings for ordering stores. Edit the details of the deployment stores (the selling locations where the sales channel will be utilised for placing orders) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateOrderingStoreConfig/).
|
|
3524
2548
|
*/
|
|
3525
2549
|
async updateOrderingStoreConfig(
|
|
3526
2550
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -3591,91 +2615,6 @@ class Configuration {
|
|
|
3591
2615
|
|
|
3592
2616
|
return response;
|
|
3593
2617
|
}
|
|
3594
|
-
|
|
3595
|
-
/**
|
|
3596
|
-
* @param {ConfigurationPlatformApplicationValidator.UpdateUrlRedirectionParam} arg
|
|
3597
|
-
* - Arg object
|
|
3598
|
-
*
|
|
3599
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3600
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3601
|
-
* @returns {Promise<ConfigurationPlatformModel.UrlRedirection>} - Success response
|
|
3602
|
-
* @name updateUrlRedirection
|
|
3603
|
-
* @summary: Update a URL redirection
|
|
3604
|
-
* @description: Update a new URL redirection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateUrlRedirection/).
|
|
3605
|
-
*/
|
|
3606
|
-
async updateUrlRedirection(
|
|
3607
|
-
{ redirectionDomainId, body, requestHeaders } = { requestHeaders: {} },
|
|
3608
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
3609
|
-
) {
|
|
3610
|
-
const {
|
|
3611
|
-
error,
|
|
3612
|
-
} = ConfigurationPlatformApplicationValidator.updateUrlRedirection().validate(
|
|
3613
|
-
{
|
|
3614
|
-
redirectionDomainId,
|
|
3615
|
-
|
|
3616
|
-
body,
|
|
3617
|
-
},
|
|
3618
|
-
{ abortEarly: false, allowUnknown: true }
|
|
3619
|
-
);
|
|
3620
|
-
if (error) {
|
|
3621
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
3622
|
-
}
|
|
3623
|
-
|
|
3624
|
-
// Showing warrnings if extra unknown parameters are found
|
|
3625
|
-
const {
|
|
3626
|
-
error: warrning,
|
|
3627
|
-
} = ConfigurationPlatformApplicationValidator.updateUrlRedirection().validate(
|
|
3628
|
-
{
|
|
3629
|
-
redirectionDomainId,
|
|
3630
|
-
|
|
3631
|
-
body,
|
|
3632
|
-
},
|
|
3633
|
-
{ abortEarly: false, allowUnknown: false }
|
|
3634
|
-
);
|
|
3635
|
-
if (warrning) {
|
|
3636
|
-
Logger({
|
|
3637
|
-
level: "WARN",
|
|
3638
|
-
message: `Parameter Validation warrnings for platform > Configuration > updateUrlRedirection \n ${warrning}`,
|
|
3639
|
-
});
|
|
3640
|
-
}
|
|
3641
|
-
|
|
3642
|
-
const query_params = {};
|
|
3643
|
-
|
|
3644
|
-
const response = await PlatformAPIClient.execute(
|
|
3645
|
-
this.config,
|
|
3646
|
-
"put",
|
|
3647
|
-
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/url-redirection/${redirectionDomainId}`,
|
|
3648
|
-
query_params,
|
|
3649
|
-
body,
|
|
3650
|
-
requestHeaders,
|
|
3651
|
-
{ responseHeaders }
|
|
3652
|
-
);
|
|
3653
|
-
|
|
3654
|
-
let responseData = response;
|
|
3655
|
-
if (responseHeaders) {
|
|
3656
|
-
responseData = response[0];
|
|
3657
|
-
}
|
|
3658
|
-
|
|
3659
|
-
const {
|
|
3660
|
-
error: res_error,
|
|
3661
|
-
} = ConfigurationPlatformModel.UrlRedirection().validate(responseData, {
|
|
3662
|
-
abortEarly: false,
|
|
3663
|
-
allowUnknown: true,
|
|
3664
|
-
});
|
|
3665
|
-
|
|
3666
|
-
if (res_error) {
|
|
3667
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
3668
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3669
|
-
} else {
|
|
3670
|
-
Logger({
|
|
3671
|
-
level: "WARN",
|
|
3672
|
-
message: `Response Validation Warnings for platform > Configuration > updateUrlRedirection \n ${res_error}`,
|
|
3673
|
-
});
|
|
3674
|
-
}
|
|
3675
|
-
}
|
|
3676
|
-
|
|
3677
|
-
return response;
|
|
3678
|
-
}
|
|
3679
2618
|
}
|
|
3680
2619
|
|
|
3681
2620
|
module.exports = Configuration;
|