@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- 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 +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- 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 +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +19 -793
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
1
|
const {
|
|
3
2
|
FDKClientValidationError,
|
|
4
3
|
FDKResponseValidationError,
|
|
5
4
|
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
6
7
|
const constructUrl = require("../constructUrl");
|
|
7
8
|
const Paginator = require("../../common/Paginator");
|
|
8
|
-
const
|
|
9
|
-
const ConfigurationApplicationModel = require("./ConfigurationApplicationModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
|
-
const Joi = require("joi");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
12
10
|
|
|
13
11
|
class Configuration {
|
|
14
12
|
constructor(_conf) {
|
|
@@ -52,12 +50,9 @@ class Configuration {
|
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
/**
|
|
55
|
-
* @param {ConfigurationApplicationValidator.GetAppCurrenciesParam} arg - Arg object.
|
|
56
53
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
57
54
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
58
|
-
* @returns {Promise<
|
|
59
|
-
* - Success response
|
|
60
|
-
*
|
|
55
|
+
* @returns {Promise<AppCurrencyResponse>} - Success response
|
|
61
56
|
* @name getAppCurrencies
|
|
62
57
|
* @summary: Get currency configuration
|
|
63
58
|
* @description: Get currency configuration of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppCurrencies/).
|
|
@@ -66,30 +61,6 @@ class Configuration {
|
|
|
66
61
|
{ requestHeaders } = { requestHeaders: {} },
|
|
67
62
|
{ responseHeaders } = { responseHeaders: false }
|
|
68
63
|
) {
|
|
69
|
-
const {
|
|
70
|
-
error,
|
|
71
|
-
} = ConfigurationApplicationValidator.getAppCurrencies().validate(
|
|
72
|
-
{},
|
|
73
|
-
{ abortEarly: false, allowUnknown: true }
|
|
74
|
-
);
|
|
75
|
-
if (error) {
|
|
76
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// Showing warrnings if extra unknown parameters are found
|
|
80
|
-
const {
|
|
81
|
-
error: warrning,
|
|
82
|
-
} = ConfigurationApplicationValidator.getAppCurrencies().validate(
|
|
83
|
-
{},
|
|
84
|
-
{ abortEarly: false, allowUnknown: false }
|
|
85
|
-
);
|
|
86
|
-
if (warrning) {
|
|
87
|
-
Logger({
|
|
88
|
-
level: "WARN",
|
|
89
|
-
message: `Parameter Validation warrnings for application > Configuration > getAppCurrencies \n ${warrning}`,
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
64
|
const query_params = {};
|
|
94
65
|
|
|
95
66
|
const xHeaders = {};
|
|
@@ -112,34 +83,13 @@ class Configuration {
|
|
|
112
83
|
responseData = response[0];
|
|
113
84
|
}
|
|
114
85
|
|
|
115
|
-
const {
|
|
116
|
-
error: res_error,
|
|
117
|
-
} = ConfigurationApplicationModel.AppCurrencyResponseSchema().validate(
|
|
118
|
-
responseData,
|
|
119
|
-
{ abortEarly: false, allowUnknown: true }
|
|
120
|
-
);
|
|
121
|
-
|
|
122
|
-
if (res_error) {
|
|
123
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
124
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
125
|
-
} else {
|
|
126
|
-
Logger({
|
|
127
|
-
level: "WARN",
|
|
128
|
-
message: `Response Validation Warnings for application > Configuration > getAppCurrencies \n ${res_error}`,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
86
|
return response;
|
|
134
87
|
}
|
|
135
88
|
|
|
136
89
|
/**
|
|
137
|
-
* @param {ConfigurationApplicationValidator.GetAppStaffListParam} arg - Arg object.
|
|
138
90
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
139
91
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
140
|
-
* @returns {Promise<
|
|
141
|
-
* - Success response
|
|
142
|
-
*
|
|
92
|
+
* @returns {Promise<AppStaffListResponse>} - Success response
|
|
143
93
|
* @name getAppStaffList
|
|
144
94
|
* @summary: List staff members
|
|
145
95
|
* @description: List all staff members of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffList/).
|
|
@@ -156,30 +106,6 @@ class Configuration {
|
|
|
156
106
|
} = { requestHeaders: {} },
|
|
157
107
|
{ responseHeaders } = { responseHeaders: false }
|
|
158
108
|
) {
|
|
159
|
-
const {
|
|
160
|
-
error,
|
|
161
|
-
} = ConfigurationApplicationValidator.getAppStaffList().validate(
|
|
162
|
-
{ pageNo, pageSize, orderIncent, orderingStore, user, userName },
|
|
163
|
-
{ abortEarly: false, allowUnknown: true }
|
|
164
|
-
);
|
|
165
|
-
if (error) {
|
|
166
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// Showing warrnings if extra unknown parameters are found
|
|
170
|
-
const {
|
|
171
|
-
error: warrning,
|
|
172
|
-
} = ConfigurationApplicationValidator.getAppStaffList().validate(
|
|
173
|
-
{ pageNo, pageSize, orderIncent, orderingStore, user, userName },
|
|
174
|
-
{ abortEarly: false, allowUnknown: false }
|
|
175
|
-
);
|
|
176
|
-
if (warrning) {
|
|
177
|
-
Logger({
|
|
178
|
-
level: "WARN",
|
|
179
|
-
message: `Parameter Validation warrnings for application > Configuration > getAppStaffList \n ${warrning}`,
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
|
|
183
109
|
const query_params = {};
|
|
184
110
|
query_params["page_no"] = pageNo;
|
|
185
111
|
query_params["page_size"] = pageSize;
|
|
@@ -208,34 +134,13 @@ class Configuration {
|
|
|
208
134
|
responseData = response[0];
|
|
209
135
|
}
|
|
210
136
|
|
|
211
|
-
const {
|
|
212
|
-
error: res_error,
|
|
213
|
-
} = ConfigurationApplicationModel.AppStaffListResponseSchema().validate(
|
|
214
|
-
responseData,
|
|
215
|
-
{ abortEarly: false, allowUnknown: true }
|
|
216
|
-
);
|
|
217
|
-
|
|
218
|
-
if (res_error) {
|
|
219
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
220
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
221
|
-
} else {
|
|
222
|
-
Logger({
|
|
223
|
-
level: "WARN",
|
|
224
|
-
message: `Response Validation Warnings for application > Configuration > getAppStaffList \n ${res_error}`,
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
137
|
return response;
|
|
230
138
|
}
|
|
231
139
|
|
|
232
140
|
/**
|
|
233
|
-
* @param {ConfigurationApplicationValidator.GetAppStaffsParam} arg - Arg object.
|
|
234
141
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
235
142
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
236
|
-
* @returns {Promise<
|
|
237
|
-
* - Success response
|
|
238
|
-
*
|
|
143
|
+
* @returns {Promise<AppStaffResponse>} - Success response
|
|
239
144
|
* @name getAppStaffs
|
|
240
145
|
* @summary: Get staff member
|
|
241
146
|
* @description: Get a staff user including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffs/).
|
|
@@ -246,28 +151,6 @@ class Configuration {
|
|
|
246
151
|
},
|
|
247
152
|
{ responseHeaders } = { responseHeaders: false }
|
|
248
153
|
) {
|
|
249
|
-
const { error } = ConfigurationApplicationValidator.getAppStaffs().validate(
|
|
250
|
-
{ orderIncent, orderingStore, user },
|
|
251
|
-
{ abortEarly: false, allowUnknown: true }
|
|
252
|
-
);
|
|
253
|
-
if (error) {
|
|
254
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
// Showing warrnings if extra unknown parameters are found
|
|
258
|
-
const {
|
|
259
|
-
error: warrning,
|
|
260
|
-
} = ConfigurationApplicationValidator.getAppStaffs().validate(
|
|
261
|
-
{ orderIncent, orderingStore, user },
|
|
262
|
-
{ abortEarly: false, allowUnknown: false }
|
|
263
|
-
);
|
|
264
|
-
if (warrning) {
|
|
265
|
-
Logger({
|
|
266
|
-
level: "WARN",
|
|
267
|
-
message: `Parameter Validation warrnings for application > Configuration > getAppStaffs \n ${warrning}`,
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
|
|
271
154
|
const query_params = {};
|
|
272
155
|
query_params["order_incent"] = orderIncent;
|
|
273
156
|
query_params["ordering_store"] = orderingStore;
|
|
@@ -293,32 +176,13 @@ class Configuration {
|
|
|
293
176
|
responseData = response[0];
|
|
294
177
|
}
|
|
295
178
|
|
|
296
|
-
const {
|
|
297
|
-
error: res_error,
|
|
298
|
-
} = ConfigurationApplicationModel.AppStaffResponseSchema().validate(
|
|
299
|
-
responseData,
|
|
300
|
-
{ abortEarly: false, allowUnknown: true }
|
|
301
|
-
);
|
|
302
|
-
|
|
303
|
-
if (res_error) {
|
|
304
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
305
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
306
|
-
} else {
|
|
307
|
-
Logger({
|
|
308
|
-
level: "WARN",
|
|
309
|
-
message: `Response Validation Warnings for application > Configuration > getAppStaffs \n ${res_error}`,
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
179
|
return response;
|
|
315
180
|
}
|
|
316
181
|
|
|
317
182
|
/**
|
|
318
|
-
* @param {ConfigurationApplicationValidator.GetApplicationParam} arg - Arg object.
|
|
319
183
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
320
184
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
321
|
-
* @returns {Promise<
|
|
185
|
+
* @returns {Promise<Application>} - Success response
|
|
322
186
|
* @name getApplication
|
|
323
187
|
* @summary: Get sales channel
|
|
324
188
|
* @description: Get details of the current sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getApplication/).
|
|
@@ -327,30 +191,6 @@ class Configuration {
|
|
|
327
191
|
{ requestHeaders } = { requestHeaders: {} },
|
|
328
192
|
{ responseHeaders } = { responseHeaders: false }
|
|
329
193
|
) {
|
|
330
|
-
const {
|
|
331
|
-
error,
|
|
332
|
-
} = ConfigurationApplicationValidator.getApplication().validate(
|
|
333
|
-
{},
|
|
334
|
-
{ abortEarly: false, allowUnknown: true }
|
|
335
|
-
);
|
|
336
|
-
if (error) {
|
|
337
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// Showing warrnings if extra unknown parameters are found
|
|
341
|
-
const {
|
|
342
|
-
error: warrning,
|
|
343
|
-
} = ConfigurationApplicationValidator.getApplication().validate(
|
|
344
|
-
{},
|
|
345
|
-
{ abortEarly: false, allowUnknown: false }
|
|
346
|
-
);
|
|
347
|
-
if (warrning) {
|
|
348
|
-
Logger({
|
|
349
|
-
level: "WARN",
|
|
350
|
-
message: `Parameter Validation warrnings for application > Configuration > getApplication \n ${warrning}`,
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
|
|
354
194
|
const query_params = {};
|
|
355
195
|
|
|
356
196
|
const xHeaders = {};
|
|
@@ -373,33 +213,13 @@ class Configuration {
|
|
|
373
213
|
responseData = response[0];
|
|
374
214
|
}
|
|
375
215
|
|
|
376
|
-
const {
|
|
377
|
-
error: res_error,
|
|
378
|
-
} = ConfigurationApplicationModel.Application().validate(responseData, {
|
|
379
|
-
abortEarly: false,
|
|
380
|
-
allowUnknown: true,
|
|
381
|
-
});
|
|
382
|
-
|
|
383
|
-
if (res_error) {
|
|
384
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
385
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
386
|
-
} else {
|
|
387
|
-
Logger({
|
|
388
|
-
level: "WARN",
|
|
389
|
-
message: `Response Validation Warnings for application > Configuration > getApplication \n ${res_error}`,
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
216
|
return response;
|
|
395
217
|
}
|
|
396
218
|
|
|
397
219
|
/**
|
|
398
|
-
* @param {ConfigurationApplicationValidator.GetBasicDetailsParam} arg - Arg object.
|
|
399
220
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
400
221
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
401
|
-
* @returns {Promise<
|
|
402
|
-
* Success response
|
|
222
|
+
* @returns {Promise<ApplicationDetail>} - Success response
|
|
403
223
|
* @name getBasicDetails
|
|
404
224
|
* @summary: Get Sales channel
|
|
405
225
|
* @description: Get basic details of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getBasicDetails/).
|
|
@@ -408,30 +228,6 @@ class Configuration {
|
|
|
408
228
|
{ requestHeaders } = { requestHeaders: {} },
|
|
409
229
|
{ responseHeaders } = { responseHeaders: false }
|
|
410
230
|
) {
|
|
411
|
-
const {
|
|
412
|
-
error,
|
|
413
|
-
} = ConfigurationApplicationValidator.getBasicDetails().validate(
|
|
414
|
-
{},
|
|
415
|
-
{ abortEarly: false, allowUnknown: true }
|
|
416
|
-
);
|
|
417
|
-
if (error) {
|
|
418
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
// Showing warrnings if extra unknown parameters are found
|
|
422
|
-
const {
|
|
423
|
-
error: warrning,
|
|
424
|
-
} = ConfigurationApplicationValidator.getBasicDetails().validate(
|
|
425
|
-
{},
|
|
426
|
-
{ abortEarly: false, allowUnknown: false }
|
|
427
|
-
);
|
|
428
|
-
if (warrning) {
|
|
429
|
-
Logger({
|
|
430
|
-
level: "WARN",
|
|
431
|
-
message: `Parameter Validation warrnings for application > Configuration > getBasicDetails \n ${warrning}`,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
|
|
435
231
|
const query_params = {};
|
|
436
232
|
|
|
437
233
|
const xHeaders = {};
|
|
@@ -454,34 +250,13 @@ class Configuration {
|
|
|
454
250
|
responseData = response[0];
|
|
455
251
|
}
|
|
456
252
|
|
|
457
|
-
const {
|
|
458
|
-
error: res_error,
|
|
459
|
-
} = ConfigurationApplicationModel.ApplicationDetail().validate(
|
|
460
|
-
responseData,
|
|
461
|
-
{ abortEarly: false, allowUnknown: true }
|
|
462
|
-
);
|
|
463
|
-
|
|
464
|
-
if (res_error) {
|
|
465
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
466
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
467
|
-
} else {
|
|
468
|
-
Logger({
|
|
469
|
-
level: "WARN",
|
|
470
|
-
message: `Response Validation Warnings for application > Configuration > getBasicDetails \n ${res_error}`,
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
253
|
return response;
|
|
476
254
|
}
|
|
477
255
|
|
|
478
256
|
/**
|
|
479
|
-
* @param {ConfigurationApplicationValidator.GetContactInfoParam} arg - Arg object.
|
|
480
257
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
481
258
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
482
|
-
* @returns {Promise<
|
|
483
|
-
* - Success response
|
|
484
|
-
*
|
|
259
|
+
* @returns {Promise<ApplicationInformation>} - Success response
|
|
485
260
|
* @name getContactInfo
|
|
486
261
|
* @summary: Get sales channel contact
|
|
487
262
|
* @description: Get contact details of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getContactInfo/).
|
|
@@ -490,30 +265,6 @@ class Configuration {
|
|
|
490
265
|
{ requestHeaders } = { requestHeaders: {} },
|
|
491
266
|
{ responseHeaders } = { responseHeaders: false }
|
|
492
267
|
) {
|
|
493
|
-
const {
|
|
494
|
-
error,
|
|
495
|
-
} = ConfigurationApplicationValidator.getContactInfo().validate(
|
|
496
|
-
{},
|
|
497
|
-
{ abortEarly: false, allowUnknown: true }
|
|
498
|
-
);
|
|
499
|
-
if (error) {
|
|
500
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
// Showing warrnings if extra unknown parameters are found
|
|
504
|
-
const {
|
|
505
|
-
error: warrning,
|
|
506
|
-
} = ConfigurationApplicationValidator.getContactInfo().validate(
|
|
507
|
-
{},
|
|
508
|
-
{ abortEarly: false, allowUnknown: false }
|
|
509
|
-
);
|
|
510
|
-
if (warrning) {
|
|
511
|
-
Logger({
|
|
512
|
-
level: "WARN",
|
|
513
|
-
message: `Parameter Validation warrnings for application > Configuration > getContactInfo \n ${warrning}`,
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
|
|
517
268
|
const query_params = {};
|
|
518
269
|
|
|
519
270
|
const xHeaders = {};
|
|
@@ -536,34 +287,13 @@ class Configuration {
|
|
|
536
287
|
responseData = response[0];
|
|
537
288
|
}
|
|
538
289
|
|
|
539
|
-
const {
|
|
540
|
-
error: res_error,
|
|
541
|
-
} = ConfigurationApplicationModel.ApplicationInformation().validate(
|
|
542
|
-
responseData,
|
|
543
|
-
{ abortEarly: false, allowUnknown: true }
|
|
544
|
-
);
|
|
545
|
-
|
|
546
|
-
if (res_error) {
|
|
547
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
548
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
549
|
-
} else {
|
|
550
|
-
Logger({
|
|
551
|
-
level: "WARN",
|
|
552
|
-
message: `Response Validation Warnings for application > Configuration > getContactInfo \n ${res_error}`,
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
|
|
557
290
|
return response;
|
|
558
291
|
}
|
|
559
292
|
|
|
560
293
|
/**
|
|
561
|
-
* @param {ConfigurationApplicationValidator.GetCurrenciesParam} arg - Arg object.
|
|
562
294
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
563
295
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
564
|
-
* @returns {Promise<
|
|
565
|
-
* - Success response
|
|
566
|
-
*
|
|
296
|
+
* @returns {Promise<CurrenciesResponse>} - Success response
|
|
567
297
|
* @name getCurrencies
|
|
568
298
|
* @summary: List currencies
|
|
569
299
|
* @description: List available currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencies/).
|
|
@@ -572,30 +302,6 @@ class Configuration {
|
|
|
572
302
|
{ requestHeaders } = { requestHeaders: {} },
|
|
573
303
|
{ responseHeaders } = { responseHeaders: false }
|
|
574
304
|
) {
|
|
575
|
-
const {
|
|
576
|
-
error,
|
|
577
|
-
} = ConfigurationApplicationValidator.getCurrencies().validate(
|
|
578
|
-
{},
|
|
579
|
-
{ abortEarly: false, allowUnknown: true }
|
|
580
|
-
);
|
|
581
|
-
if (error) {
|
|
582
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
// Showing warrnings if extra unknown parameters are found
|
|
586
|
-
const {
|
|
587
|
-
error: warrning,
|
|
588
|
-
} = ConfigurationApplicationValidator.getCurrencies().validate(
|
|
589
|
-
{},
|
|
590
|
-
{ abortEarly: false, allowUnknown: false }
|
|
591
|
-
);
|
|
592
|
-
if (warrning) {
|
|
593
|
-
Logger({
|
|
594
|
-
level: "WARN",
|
|
595
|
-
message: `Parameter Validation warrnings for application > Configuration > getCurrencies \n ${warrning}`,
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
|
|
599
305
|
const query_params = {};
|
|
600
306
|
|
|
601
307
|
const xHeaders = {};
|
|
@@ -618,32 +324,13 @@ class Configuration {
|
|
|
618
324
|
responseData = response[0];
|
|
619
325
|
}
|
|
620
326
|
|
|
621
|
-
const {
|
|
622
|
-
error: res_error,
|
|
623
|
-
} = ConfigurationApplicationModel.CurrenciesResponseSchema().validate(
|
|
624
|
-
responseData,
|
|
625
|
-
{ abortEarly: false, allowUnknown: true }
|
|
626
|
-
);
|
|
627
|
-
|
|
628
|
-
if (res_error) {
|
|
629
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
630
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
631
|
-
} else {
|
|
632
|
-
Logger({
|
|
633
|
-
level: "WARN",
|
|
634
|
-
message: `Response Validation Warnings for application > Configuration > getCurrencies \n ${res_error}`,
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
|
|
639
327
|
return response;
|
|
640
328
|
}
|
|
641
329
|
|
|
642
330
|
/**
|
|
643
|
-
* @param {ConfigurationApplicationValidator.GetCurrencyByIdParam} arg - Arg object.
|
|
644
331
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
645
332
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
646
|
-
* @returns {Promise<
|
|
333
|
+
* @returns {Promise<Currency>} - Success response
|
|
647
334
|
* @name getCurrencyById
|
|
648
335
|
* @summary: Get a currency
|
|
649
336
|
* @description: Get details of the currency. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencyById/).
|
|
@@ -652,28 +339,13 @@ class Configuration {
|
|
|
652
339
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
653
340
|
{ responseHeaders } = { responseHeaders: false }
|
|
654
341
|
) {
|
|
655
|
-
const
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
);
|
|
661
|
-
if (error) {
|
|
662
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
// Showing warrnings if extra unknown parameters are found
|
|
666
|
-
const {
|
|
667
|
-
error: warrning,
|
|
668
|
-
} = ConfigurationApplicationValidator.getCurrencyById().validate(
|
|
669
|
-
{ id },
|
|
670
|
-
{ abortEarly: false, allowUnknown: false }
|
|
671
|
-
);
|
|
672
|
-
if (warrning) {
|
|
673
|
-
Logger({
|
|
674
|
-
level: "WARN",
|
|
675
|
-
message: `Parameter Validation warrnings for application > Configuration > getCurrencyById \n ${warrning}`,
|
|
342
|
+
const errors = validateRequiredParams(arguments[0], ["id"]);
|
|
343
|
+
if (errors.length > 0) {
|
|
344
|
+
const error = new FDKClientValidationError({
|
|
345
|
+
message: "Missing required field",
|
|
346
|
+
details: errors,
|
|
676
347
|
});
|
|
348
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
677
349
|
}
|
|
678
350
|
|
|
679
351
|
const query_params = {};
|
|
@@ -698,34 +370,13 @@ class Configuration {
|
|
|
698
370
|
responseData = response[0];
|
|
699
371
|
}
|
|
700
372
|
|
|
701
|
-
const {
|
|
702
|
-
error: res_error,
|
|
703
|
-
} = ConfigurationApplicationModel.Currency().validate(responseData, {
|
|
704
|
-
abortEarly: false,
|
|
705
|
-
allowUnknown: true,
|
|
706
|
-
});
|
|
707
|
-
|
|
708
|
-
if (res_error) {
|
|
709
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
710
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
711
|
-
} else {
|
|
712
|
-
Logger({
|
|
713
|
-
level: "WARN",
|
|
714
|
-
message: `Response Validation Warnings for application > Configuration > getCurrencyById \n ${res_error}`,
|
|
715
|
-
});
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
|
|
719
373
|
return response;
|
|
720
374
|
}
|
|
721
375
|
|
|
722
376
|
/**
|
|
723
|
-
* @param {ConfigurationApplicationValidator.GetFeaturesParam} arg - Arg object.
|
|
724
377
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
725
378
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
726
|
-
* @returns {Promise<
|
|
727
|
-
* - Success response
|
|
728
|
-
*
|
|
379
|
+
* @returns {Promise<AppFeatureResponse>} - Success response
|
|
729
380
|
* @name getFeatures
|
|
730
381
|
* @summary: Get sales channel features
|
|
731
382
|
* @description: Get configuration of the features of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getFeatures/).
|
|
@@ -734,28 +385,6 @@ class Configuration {
|
|
|
734
385
|
{ requestHeaders } = { requestHeaders: {} },
|
|
735
386
|
{ responseHeaders } = { responseHeaders: false }
|
|
736
387
|
) {
|
|
737
|
-
const { error } = ConfigurationApplicationValidator.getFeatures().validate(
|
|
738
|
-
{},
|
|
739
|
-
{ abortEarly: false, allowUnknown: true }
|
|
740
|
-
);
|
|
741
|
-
if (error) {
|
|
742
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
// Showing warrnings if extra unknown parameters are found
|
|
746
|
-
const {
|
|
747
|
-
error: warrning,
|
|
748
|
-
} = ConfigurationApplicationValidator.getFeatures().validate(
|
|
749
|
-
{},
|
|
750
|
-
{ abortEarly: false, allowUnknown: false }
|
|
751
|
-
);
|
|
752
|
-
if (warrning) {
|
|
753
|
-
Logger({
|
|
754
|
-
level: "WARN",
|
|
755
|
-
message: `Parameter Validation warrnings for application > Configuration > getFeatures \n ${warrning}`,
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
|
-
|
|
759
388
|
const query_params = {};
|
|
760
389
|
|
|
761
390
|
const xHeaders = {};
|
|
@@ -778,36 +407,13 @@ class Configuration {
|
|
|
778
407
|
responseData = response[0];
|
|
779
408
|
}
|
|
780
409
|
|
|
781
|
-
const {
|
|
782
|
-
error: res_error,
|
|
783
|
-
} = ConfigurationApplicationModel.AppFeatureResponseSchema().validate(
|
|
784
|
-
responseData,
|
|
785
|
-
{ abortEarly: false, allowUnknown: true }
|
|
786
|
-
);
|
|
787
|
-
|
|
788
|
-
if (res_error) {
|
|
789
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
790
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
791
|
-
} else {
|
|
792
|
-
Logger({
|
|
793
|
-
level: "WARN",
|
|
794
|
-
message: `Response Validation Warnings for application > Configuration > getFeatures \n ${res_error}`,
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
|
|
799
410
|
return response;
|
|
800
411
|
}
|
|
801
412
|
|
|
802
413
|
/**
|
|
803
|
-
* @param {ConfigurationApplicationValidator.GetIntegrationTokensParam} arg
|
|
804
|
-
* - Arg object.
|
|
805
|
-
*
|
|
806
414
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
807
415
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
808
|
-
* @returns {Promise<
|
|
809
|
-
* - Success response
|
|
810
|
-
*
|
|
416
|
+
* @returns {Promise<AppTokenResponse>} - Success response
|
|
811
417
|
* @name getIntegrationTokens
|
|
812
418
|
* @summary: Get API tokens
|
|
813
419
|
* @description: Get tools integration token of the sales channel. For example, Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, and Facebook. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getIntegrationTokens/).
|
|
@@ -816,30 +422,6 @@ class Configuration {
|
|
|
816
422
|
{ requestHeaders } = { requestHeaders: {} },
|
|
817
423
|
{ responseHeaders } = { responseHeaders: false }
|
|
818
424
|
) {
|
|
819
|
-
const {
|
|
820
|
-
error,
|
|
821
|
-
} = ConfigurationApplicationValidator.getIntegrationTokens().validate(
|
|
822
|
-
{},
|
|
823
|
-
{ abortEarly: false, allowUnknown: true }
|
|
824
|
-
);
|
|
825
|
-
if (error) {
|
|
826
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
// Showing warrnings if extra unknown parameters are found
|
|
830
|
-
const {
|
|
831
|
-
error: warrning,
|
|
832
|
-
} = ConfigurationApplicationValidator.getIntegrationTokens().validate(
|
|
833
|
-
{},
|
|
834
|
-
{ abortEarly: false, allowUnknown: false }
|
|
835
|
-
);
|
|
836
|
-
if (warrning) {
|
|
837
|
-
Logger({
|
|
838
|
-
level: "WARN",
|
|
839
|
-
message: `Parameter Validation warrnings for application > Configuration > getIntegrationTokens \n ${warrning}`,
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
|
|
843
425
|
const query_params = {};
|
|
844
426
|
|
|
845
427
|
const xHeaders = {};
|
|
@@ -862,34 +444,13 @@ class Configuration {
|
|
|
862
444
|
responseData = response[0];
|
|
863
445
|
}
|
|
864
446
|
|
|
865
|
-
const {
|
|
866
|
-
error: res_error,
|
|
867
|
-
} = ConfigurationApplicationModel.AppTokenResponseSchema().validate(
|
|
868
|
-
responseData,
|
|
869
|
-
{ abortEarly: false, allowUnknown: true }
|
|
870
|
-
);
|
|
871
|
-
|
|
872
|
-
if (res_error) {
|
|
873
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
874
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
875
|
-
} else {
|
|
876
|
-
Logger({
|
|
877
|
-
level: "WARN",
|
|
878
|
-
message: `Response Validation Warnings for application > Configuration > getIntegrationTokens \n ${res_error}`,
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
|
|
883
447
|
return response;
|
|
884
448
|
}
|
|
885
449
|
|
|
886
450
|
/**
|
|
887
|
-
* @param {ConfigurationApplicationValidator.GetLanguagesParam} arg - Arg object.
|
|
888
451
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
889
452
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
890
|
-
* @returns {Promise<
|
|
891
|
-
* - Success response
|
|
892
|
-
*
|
|
453
|
+
* @returns {Promise<LanguageResponse>} - Success response
|
|
893
454
|
* @name getLanguages
|
|
894
455
|
* @summary: List languages
|
|
895
456
|
* @description: List available languages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getLanguages/).
|
|
@@ -898,28 +459,6 @@ class Configuration {
|
|
|
898
459
|
{ requestHeaders } = { requestHeaders: {} },
|
|
899
460
|
{ responseHeaders } = { responseHeaders: false }
|
|
900
461
|
) {
|
|
901
|
-
const { error } = ConfigurationApplicationValidator.getLanguages().validate(
|
|
902
|
-
{},
|
|
903
|
-
{ abortEarly: false, allowUnknown: true }
|
|
904
|
-
);
|
|
905
|
-
if (error) {
|
|
906
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
// Showing warrnings if extra unknown parameters are found
|
|
910
|
-
const {
|
|
911
|
-
error: warrning,
|
|
912
|
-
} = ConfigurationApplicationValidator.getLanguages().validate(
|
|
913
|
-
{},
|
|
914
|
-
{ abortEarly: false, allowUnknown: false }
|
|
915
|
-
);
|
|
916
|
-
if (warrning) {
|
|
917
|
-
Logger({
|
|
918
|
-
level: "WARN",
|
|
919
|
-
message: `Parameter Validation warrnings for application > Configuration > getLanguages \n ${warrning}`,
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
|
-
|
|
923
462
|
const query_params = {};
|
|
924
463
|
|
|
925
464
|
const xHeaders = {};
|
|
@@ -942,36 +481,13 @@ class Configuration {
|
|
|
942
481
|
responseData = response[0];
|
|
943
482
|
}
|
|
944
483
|
|
|
945
|
-
const {
|
|
946
|
-
error: res_error,
|
|
947
|
-
} = ConfigurationApplicationModel.LanguageResponseSchema().validate(
|
|
948
|
-
responseData,
|
|
949
|
-
{ abortEarly: false, allowUnknown: true }
|
|
950
|
-
);
|
|
951
|
-
|
|
952
|
-
if (res_error) {
|
|
953
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
954
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
955
|
-
} else {
|
|
956
|
-
Logger({
|
|
957
|
-
level: "WARN",
|
|
958
|
-
message: `Response Validation Warnings for application > Configuration > getLanguages \n ${res_error}`,
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
|
|
963
484
|
return response;
|
|
964
485
|
}
|
|
965
486
|
|
|
966
487
|
/**
|
|
967
|
-
* @param {ConfigurationApplicationValidator.GetOrderingStoreCookieParam} arg
|
|
968
|
-
* - Arg object.
|
|
969
|
-
*
|
|
970
488
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
971
489
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
972
|
-
* @returns {Promise<
|
|
973
|
-
* - Success response
|
|
974
|
-
*
|
|
490
|
+
* @returns {Promise<SuccessMessageResponse>} - Success response
|
|
975
491
|
* @name getOrderingStoreCookie
|
|
976
492
|
* @summary: Create cookies
|
|
977
493
|
* @description: Reset cookie of ordering store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOrderingStoreCookie/).
|
|
@@ -980,30 +496,6 @@ class Configuration {
|
|
|
980
496
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
981
497
|
{ responseHeaders } = { responseHeaders: false }
|
|
982
498
|
) {
|
|
983
|
-
const {
|
|
984
|
-
error,
|
|
985
|
-
} = ConfigurationApplicationValidator.getOrderingStoreCookie().validate(
|
|
986
|
-
{ body },
|
|
987
|
-
{ abortEarly: false, allowUnknown: true }
|
|
988
|
-
);
|
|
989
|
-
if (error) {
|
|
990
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
// Showing warrnings if extra unknown parameters are found
|
|
994
|
-
const {
|
|
995
|
-
error: warrning,
|
|
996
|
-
} = ConfigurationApplicationValidator.getOrderingStoreCookie().validate(
|
|
997
|
-
{ body },
|
|
998
|
-
{ abortEarly: false, allowUnknown: false }
|
|
999
|
-
);
|
|
1000
|
-
if (warrning) {
|
|
1001
|
-
Logger({
|
|
1002
|
-
level: "WARN",
|
|
1003
|
-
message: `Parameter Validation warrnings for application > Configuration > getOrderingStoreCookie \n ${warrning}`,
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
499
|
const query_params = {};
|
|
1008
500
|
|
|
1009
501
|
const xHeaders = {};
|
|
@@ -1026,32 +518,13 @@ class Configuration {
|
|
|
1026
518
|
responseData = response[0];
|
|
1027
519
|
}
|
|
1028
520
|
|
|
1029
|
-
const {
|
|
1030
|
-
error: res_error,
|
|
1031
|
-
} = ConfigurationApplicationModel.SuccessMessageResponseSchema().validate(
|
|
1032
|
-
responseData,
|
|
1033
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1034
|
-
);
|
|
1035
|
-
|
|
1036
|
-
if (res_error) {
|
|
1037
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
1038
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1039
|
-
} else {
|
|
1040
|
-
Logger({
|
|
1041
|
-
level: "WARN",
|
|
1042
|
-
message: `Response Validation Warnings for application > Configuration > getOrderingStoreCookie \n ${res_error}`,
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
521
|
return response;
|
|
1048
522
|
}
|
|
1049
523
|
|
|
1050
524
|
/**
|
|
1051
|
-
* @param {ConfigurationApplicationValidator.GetOrderingStoresParam} arg - Arg object.
|
|
1052
525
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1053
526
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1054
|
-
* @returns {Promise<
|
|
527
|
+
* @returns {Promise<OrderingStores>} - Success response
|
|
1055
528
|
* @name getOrderingStores
|
|
1056
529
|
* @summary: List order-enabled selling locations
|
|
1057
530
|
* @description: Get details of all the deployment store locations where the sales channel will be used for order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOrderingStores/).
|
|
@@ -1060,30 +533,6 @@ class Configuration {
|
|
|
1060
533
|
{ pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
|
|
1061
534
|
{ responseHeaders } = { responseHeaders: false }
|
|
1062
535
|
) {
|
|
1063
|
-
const {
|
|
1064
|
-
error,
|
|
1065
|
-
} = ConfigurationApplicationValidator.getOrderingStores().validate(
|
|
1066
|
-
{ pageNo, pageSize, q },
|
|
1067
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1068
|
-
);
|
|
1069
|
-
if (error) {
|
|
1070
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1074
|
-
const {
|
|
1075
|
-
error: warrning,
|
|
1076
|
-
} = ConfigurationApplicationValidator.getOrderingStores().validate(
|
|
1077
|
-
{ pageNo, pageSize, q },
|
|
1078
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1079
|
-
);
|
|
1080
|
-
if (warrning) {
|
|
1081
|
-
Logger({
|
|
1082
|
-
level: "WARN",
|
|
1083
|
-
message: `Parameter Validation warrnings for application > Configuration > getOrderingStores \n ${warrning}`,
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
536
|
const query_params = {};
|
|
1088
537
|
query_params["page_no"] = pageNo;
|
|
1089
538
|
query_params["page_size"] = pageSize;
|
|
@@ -1109,34 +558,13 @@ class Configuration {
|
|
|
1109
558
|
responseData = response[0];
|
|
1110
559
|
}
|
|
1111
560
|
|
|
1112
|
-
const {
|
|
1113
|
-
error: res_error,
|
|
1114
|
-
} = ConfigurationApplicationModel.OrderingStores().validate(responseData, {
|
|
1115
|
-
abortEarly: false,
|
|
1116
|
-
allowUnknown: true,
|
|
1117
|
-
});
|
|
1118
|
-
|
|
1119
|
-
if (res_error) {
|
|
1120
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
1121
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1122
|
-
} else {
|
|
1123
|
-
Logger({
|
|
1124
|
-
level: "WARN",
|
|
1125
|
-
message: `Response Validation Warnings for application > Configuration > getOrderingStores \n ${res_error}`,
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
561
|
return response;
|
|
1131
562
|
}
|
|
1132
563
|
|
|
1133
564
|
/**
|
|
1134
|
-
* @param {ConfigurationApplicationValidator.GetOwnerInfoParam} arg - Arg object.
|
|
1135
565
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1136
566
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1137
|
-
* @returns {Promise<
|
|
1138
|
-
* - Success response
|
|
1139
|
-
*
|
|
567
|
+
* @returns {Promise<ApplicationAboutResponse>} - Success response
|
|
1140
568
|
* @name getOwnerInfo
|
|
1141
569
|
* @summary: Get sales channel owner
|
|
1142
570
|
* @description: Get details of the sales channel owner. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOwnerInfo/).
|
|
@@ -1145,28 +573,6 @@ class Configuration {
|
|
|
1145
573
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1146
574
|
{ responseHeaders } = { responseHeaders: false }
|
|
1147
575
|
) {
|
|
1148
|
-
const { error } = ConfigurationApplicationValidator.getOwnerInfo().validate(
|
|
1149
|
-
{},
|
|
1150
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1151
|
-
);
|
|
1152
|
-
if (error) {
|
|
1153
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1157
|
-
const {
|
|
1158
|
-
error: warrning,
|
|
1159
|
-
} = ConfigurationApplicationValidator.getOwnerInfo().validate(
|
|
1160
|
-
{},
|
|
1161
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1162
|
-
);
|
|
1163
|
-
if (warrning) {
|
|
1164
|
-
Logger({
|
|
1165
|
-
level: "WARN",
|
|
1166
|
-
message: `Parameter Validation warrnings for application > Configuration > getOwnerInfo \n ${warrning}`,
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
576
|
const query_params = {};
|
|
1171
577
|
|
|
1172
578
|
const xHeaders = {};
|
|
@@ -1189,33 +595,13 @@ class Configuration {
|
|
|
1189
595
|
responseData = response[0];
|
|
1190
596
|
}
|
|
1191
597
|
|
|
1192
|
-
const {
|
|
1193
|
-
error: res_error,
|
|
1194
|
-
} = ConfigurationApplicationModel.ApplicationAboutResponseSchema().validate(
|
|
1195
|
-
responseData,
|
|
1196
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1197
|
-
);
|
|
1198
|
-
|
|
1199
|
-
if (res_error) {
|
|
1200
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
1201
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1202
|
-
} else {
|
|
1203
|
-
Logger({
|
|
1204
|
-
level: "WARN",
|
|
1205
|
-
message: `Response Validation Warnings for application > Configuration > getOwnerInfo \n ${res_error}`,
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
598
|
return response;
|
|
1211
599
|
}
|
|
1212
600
|
|
|
1213
601
|
/**
|
|
1214
|
-
* @param {ConfigurationApplicationValidator.GetStoreDetailByIdParam} arg -
|
|
1215
|
-
* Arg object.
|
|
1216
602
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1217
603
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1218
|
-
* @returns {Promise<
|
|
604
|
+
* @returns {Promise<OrderingStore>} - Success response
|
|
1219
605
|
* @name getStoreDetailById
|
|
1220
606
|
* @summary: Get a selling location
|
|
1221
607
|
* @description: Get details of a selling location (store) by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getStoreDetailById/).
|
|
@@ -1224,28 +610,13 @@ class Configuration {
|
|
|
1224
610
|
{ storeId, requestHeaders } = { requestHeaders: {} },
|
|
1225
611
|
{ responseHeaders } = { responseHeaders: false }
|
|
1226
612
|
) {
|
|
1227
|
-
const
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
);
|
|
1233
|
-
if (error) {
|
|
1234
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1238
|
-
const {
|
|
1239
|
-
error: warrning,
|
|
1240
|
-
} = ConfigurationApplicationValidator.getStoreDetailById().validate(
|
|
1241
|
-
{ storeId },
|
|
1242
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1243
|
-
);
|
|
1244
|
-
if (warrning) {
|
|
1245
|
-
Logger({
|
|
1246
|
-
level: "WARN",
|
|
1247
|
-
message: `Parameter Validation warrnings for application > Configuration > getStoreDetailById \n ${warrning}`,
|
|
613
|
+
const errors = validateRequiredParams(arguments[0], ["storeId"]);
|
|
614
|
+
if (errors.length > 0) {
|
|
615
|
+
const error = new FDKClientValidationError({
|
|
616
|
+
message: "Missing required field",
|
|
617
|
+
details: errors,
|
|
1248
618
|
});
|
|
619
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1249
620
|
}
|
|
1250
621
|
|
|
1251
622
|
const query_params = {};
|
|
@@ -1270,36 +641,13 @@ class Configuration {
|
|
|
1270
641
|
responseData = response[0];
|
|
1271
642
|
}
|
|
1272
643
|
|
|
1273
|
-
const {
|
|
1274
|
-
error: res_error,
|
|
1275
|
-
} = ConfigurationApplicationModel.OrderingStore().validate(responseData, {
|
|
1276
|
-
abortEarly: false,
|
|
1277
|
-
allowUnknown: true,
|
|
1278
|
-
});
|
|
1279
|
-
|
|
1280
|
-
if (res_error) {
|
|
1281
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
1282
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1283
|
-
} else {
|
|
1284
|
-
Logger({
|
|
1285
|
-
level: "WARN",
|
|
1286
|
-
message: `Response Validation Warnings for application > Configuration > getStoreDetailById \n ${res_error}`,
|
|
1287
|
-
});
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
644
|
return response;
|
|
1292
645
|
}
|
|
1293
646
|
|
|
1294
647
|
/**
|
|
1295
|
-
* @param {ConfigurationApplicationValidator.RemoveOrderingStoreCookieParam} arg
|
|
1296
|
-
* - Arg object.
|
|
1297
|
-
*
|
|
1298
648
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1299
649
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1300
|
-
* @returns {Promise<
|
|
1301
|
-
* - Success response
|
|
1302
|
-
*
|
|
650
|
+
* @returns {Promise<SuccessMessageResponse>} - Success response
|
|
1303
651
|
* @name removeOrderingStoreCookie
|
|
1304
652
|
* @summary: Delete store cookie
|
|
1305
653
|
* @description: Delete store cookie. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/removeOrderingStoreCookie/).
|
|
@@ -1308,30 +656,6 @@ class Configuration {
|
|
|
1308
656
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1309
657
|
{ responseHeaders } = { responseHeaders: false }
|
|
1310
658
|
) {
|
|
1311
|
-
const {
|
|
1312
|
-
error,
|
|
1313
|
-
} = ConfigurationApplicationValidator.removeOrderingStoreCookie().validate(
|
|
1314
|
-
{},
|
|
1315
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1316
|
-
);
|
|
1317
|
-
if (error) {
|
|
1318
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
// Showing warrnings if extra unknown parameters are found
|
|
1322
|
-
const {
|
|
1323
|
-
error: warrning,
|
|
1324
|
-
} = ConfigurationApplicationValidator.removeOrderingStoreCookie().validate(
|
|
1325
|
-
{},
|
|
1326
|
-
{ abortEarly: false, allowUnknown: false }
|
|
1327
|
-
);
|
|
1328
|
-
if (warrning) {
|
|
1329
|
-
Logger({
|
|
1330
|
-
level: "WARN",
|
|
1331
|
-
message: `Parameter Validation warrnings for application > Configuration > removeOrderingStoreCookie \n ${warrning}`,
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
659
|
const query_params = {};
|
|
1336
660
|
|
|
1337
661
|
const xHeaders = {};
|
|
@@ -1354,24 +678,6 @@ class Configuration {
|
|
|
1354
678
|
responseData = response[0];
|
|
1355
679
|
}
|
|
1356
680
|
|
|
1357
|
-
const {
|
|
1358
|
-
error: res_error,
|
|
1359
|
-
} = ConfigurationApplicationModel.SuccessMessageResponseSchema().validate(
|
|
1360
|
-
responseData,
|
|
1361
|
-
{ abortEarly: false, allowUnknown: true }
|
|
1362
|
-
);
|
|
1363
|
-
|
|
1364
|
-
if (res_error) {
|
|
1365
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
1366
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1367
|
-
} else {
|
|
1368
|
-
Logger({
|
|
1369
|
-
level: "WARN",
|
|
1370
|
-
message: `Response Validation Warnings for application > Configuration > removeOrderingStoreCookie \n ${res_error}`,
|
|
1371
|
-
});
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
681
|
return response;
|
|
1376
682
|
}
|
|
1377
683
|
}
|