@gofynd/fdk-client-javascript 1.1.6 → 1.3.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 +52 -3
- package/index.js +0 -3
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +12 -3
- package/sdk/application/ApplicationClient.d.ts +36 -6
- package/sdk/application/ApplicationClient.js +30 -43
- package/sdk/application/ApplicationConfig.d.ts +92 -12
- package/sdk/application/ApplicationConfig.js +48 -14
- package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
- package/sdk/application/Cart/CartApplicationClient.js +711 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
- package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
- package/sdk/application/Common/CommonApplicationClient.js +52 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
- package/sdk/application/Common/CommonApplicationModel.js +192 -40
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
- package/sdk/application/Content/ContentApplicationClient.js +489 -278
- package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
- package/sdk/application/Content/ContentApplicationModel.js +737 -396
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
- package/sdk/application/Lead/LeadApplicationClient.js +188 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
- package/sdk/application/Lead/LeadApplicationModel.js +330 -244
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
- package/sdk/application/Order/OrderApplicationClient.js +329 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
- package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
- package/sdk/application/Share/ShareApplicationClient.js +185 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
- package/sdk/application/Share/ShareApplicationModel.js +131 -31
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +260 -305
- package/sdk/application/User/UserApplicationClient.js +910 -522
- package/sdk/application/User/UserApplicationModel.d.ts +992 -101
- package/sdk/application/User/UserApplicationModel.js +699 -248
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +7 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +16 -1
- package/sdk/partner/PartnerAPIClient.js +12 -2
- package/sdk/partner/PartnerClient.d.ts +22 -3
- package/sdk/partner/PartnerClient.js +20 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
- package/sdk/platform/Common/CommonPlatformClient.js +50 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
- package/sdk/platform/Common/CommonPlatformModel.js +214 -40
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
- package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
- package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
- package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
- package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +31 -12581
- package/sdk/platform/PlatformClient.js +30 -15089
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
- package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +167 -19
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
- package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
- package/sdk/platform/User/UserPlatformModel.js +467 -424
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
- package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +21 -3
- package/sdk/public/PublicClient.js +20 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -3
- package/sdk/application/ApplicationModels.js +0 -20
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
|
@@ -2,8 +2,8 @@ const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
|
2
2
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
3
3
|
const constructUrl = require("../constructUrl");
|
|
4
4
|
const Paginator = require("../../common/Paginator");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const ConfigurationApplicationValidator = require("./ConfigurationApplicationValidator");
|
|
6
|
+
const ConfigurationApplicationModel = require("./ConfigurationApplicationModel");
|
|
7
7
|
const { Logger } = require("./../../common/Logger");
|
|
8
8
|
const Joi = require("joi");
|
|
9
9
|
|
|
@@ -49,13 +49,22 @@ class Configuration {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* @param {
|
|
53
|
-
* @
|
|
52
|
+
* @param {ConfigurationApplicationValidator.GetAppCurrenciesParam} arg - Arg object.
|
|
53
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
54
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
55
|
+
* @returns {Promise<ConfigurationApplicationModel.AppCurrencyResponse>} -
|
|
56
|
+
* Success response
|
|
57
|
+
* @name getAppCurrencies
|
|
54
58
|
* @summary: Get currencies enabled in the application
|
|
55
|
-
* @description: Use this API to get a list of currencies allowed in the current application. Moreover, get the name, code, symbol, and the decimal digits of the currencies.
|
|
59
|
+
* @description: Use this API to get a list of currencies allowed in the current application. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppCurrencies/).
|
|
56
60
|
*/
|
|
57
|
-
async getAppCurrencies(
|
|
58
|
-
|
|
61
|
+
async getAppCurrencies(
|
|
62
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
63
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
64
|
+
) {
|
|
65
|
+
const {
|
|
66
|
+
error,
|
|
67
|
+
} = ConfigurationApplicationValidator.getAppCurrencies().validate(
|
|
59
68
|
{},
|
|
60
69
|
{ abortEarly: false, allowUnknown: true }
|
|
61
70
|
);
|
|
@@ -66,16 +75,15 @@ class Configuration {
|
|
|
66
75
|
// Showing warrnings if extra unknown parameters are found
|
|
67
76
|
const {
|
|
68
77
|
error: warrning,
|
|
69
|
-
} =
|
|
78
|
+
} = ConfigurationApplicationValidator.getAppCurrencies().validate(
|
|
70
79
|
{},
|
|
71
80
|
{ abortEarly: false, allowUnknown: false }
|
|
72
81
|
);
|
|
73
82
|
if (warrning) {
|
|
74
83
|
Logger({
|
|
75
84
|
level: "WARN",
|
|
76
|
-
message:
|
|
85
|
+
message: `Parameter Validation warrnings for application > Configuration > getAppCurrencies \n ${warrning}`,
|
|
77
86
|
});
|
|
78
|
-
Logger({ level: "WARN", message: warrning });
|
|
79
87
|
}
|
|
80
88
|
|
|
81
89
|
const query_params = {};
|
|
@@ -91,51 +99,57 @@ class Configuration {
|
|
|
91
99
|
}),
|
|
92
100
|
query_params,
|
|
93
101
|
undefined,
|
|
94
|
-
xHeaders
|
|
102
|
+
{ ...xHeaders, ...requestHeaders },
|
|
103
|
+
{ responseHeaders }
|
|
95
104
|
);
|
|
96
105
|
|
|
106
|
+
let responseData = response;
|
|
107
|
+
if (responseHeaders) {
|
|
108
|
+
responseData = response[0];
|
|
109
|
+
}
|
|
110
|
+
|
|
97
111
|
const {
|
|
98
112
|
error: res_error,
|
|
99
|
-
} =
|
|
100
|
-
|
|
101
|
-
allowUnknown: false
|
|
102
|
-
|
|
113
|
+
} = ConfigurationApplicationModel.AppCurrencyResponse().validate(
|
|
114
|
+
responseData,
|
|
115
|
+
{ abortEarly: false, allowUnknown: false }
|
|
116
|
+
);
|
|
103
117
|
|
|
104
118
|
if (res_error) {
|
|
105
119
|
Logger({
|
|
106
120
|
level: "WARN",
|
|
107
|
-
message:
|
|
121
|
+
message: `Response Validation Warnnings for application > Configuration > getAppCurrencies \n ${res_error}`,
|
|
108
122
|
});
|
|
109
|
-
Logger({ level: "WARN", message: res_error });
|
|
110
123
|
}
|
|
111
124
|
|
|
112
125
|
return response;
|
|
113
126
|
}
|
|
114
127
|
|
|
115
128
|
/**
|
|
116
|
-
* @param {
|
|
117
|
-
* @param {
|
|
118
|
-
* @param {
|
|
119
|
-
* @
|
|
120
|
-
*
|
|
121
|
-
* @
|
|
122
|
-
* retrieving staff members working at a particular ordering store.
|
|
123
|
-
* @param {string} [arg.user] - Mongo ID of the staff. Helps in retrieving
|
|
124
|
-
* the details of a particular staff member.
|
|
125
|
-
* @param {string} [arg.userName] - User name of the member
|
|
126
|
-
* @returns {Promise<AppStaffListResponse>} - Success response
|
|
129
|
+
* @param {ConfigurationApplicationValidator.GetAppStaffListParam} arg - Arg object.
|
|
130
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
131
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
132
|
+
* @returns {Promise<ConfigurationApplicationModel.AppStaffListResponse>} -
|
|
133
|
+
* Success response
|
|
134
|
+
* @name getAppStaffList
|
|
127
135
|
* @summary: Get a list of staff.
|
|
128
|
-
* @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application.
|
|
136
|
+
* @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffList/).
|
|
129
137
|
*/
|
|
130
|
-
async getAppStaffList(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
async getAppStaffList(
|
|
139
|
+
{
|
|
140
|
+
pageNo,
|
|
141
|
+
pageSize,
|
|
142
|
+
orderIncent,
|
|
143
|
+
orderingStore,
|
|
144
|
+
user,
|
|
145
|
+
userName,
|
|
146
|
+
requestHeaders,
|
|
147
|
+
} = { requestHeaders: {} },
|
|
148
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
149
|
+
) {
|
|
150
|
+
const {
|
|
151
|
+
error,
|
|
152
|
+
} = ConfigurationApplicationValidator.getAppStaffList().validate(
|
|
139
153
|
{ pageNo, pageSize, orderIncent, orderingStore, user, userName },
|
|
140
154
|
{ abortEarly: false, allowUnknown: true }
|
|
141
155
|
);
|
|
@@ -146,16 +160,15 @@ class Configuration {
|
|
|
146
160
|
// Showing warrnings if extra unknown parameters are found
|
|
147
161
|
const {
|
|
148
162
|
error: warrning,
|
|
149
|
-
} =
|
|
163
|
+
} = ConfigurationApplicationValidator.getAppStaffList().validate(
|
|
150
164
|
{ pageNo, pageSize, orderIncent, orderingStore, user, userName },
|
|
151
165
|
{ abortEarly: false, allowUnknown: false }
|
|
152
166
|
);
|
|
153
167
|
if (warrning) {
|
|
154
168
|
Logger({
|
|
155
169
|
level: "WARN",
|
|
156
|
-
message:
|
|
170
|
+
message: `Parameter Validation warrnings for application > Configuration > getAppStaffList \n ${warrning}`,
|
|
157
171
|
});
|
|
158
|
-
Logger({ level: "WARN", message: warrning });
|
|
159
172
|
}
|
|
160
173
|
|
|
161
174
|
const query_params = {};
|
|
@@ -177,22 +190,27 @@ class Configuration {
|
|
|
177
190
|
}),
|
|
178
191
|
query_params,
|
|
179
192
|
undefined,
|
|
180
|
-
xHeaders
|
|
193
|
+
{ ...xHeaders, ...requestHeaders },
|
|
194
|
+
{ responseHeaders }
|
|
181
195
|
);
|
|
182
196
|
|
|
197
|
+
let responseData = response;
|
|
198
|
+
if (responseHeaders) {
|
|
199
|
+
responseData = response[0];
|
|
200
|
+
}
|
|
201
|
+
|
|
183
202
|
const {
|
|
184
203
|
error: res_error,
|
|
185
|
-
} =
|
|
186
|
-
|
|
187
|
-
allowUnknown: false
|
|
188
|
-
|
|
204
|
+
} = ConfigurationApplicationModel.AppStaffListResponse().validate(
|
|
205
|
+
responseData,
|
|
206
|
+
{ abortEarly: false, allowUnknown: false }
|
|
207
|
+
);
|
|
189
208
|
|
|
190
209
|
if (res_error) {
|
|
191
210
|
Logger({
|
|
192
211
|
level: "WARN",
|
|
193
|
-
message:
|
|
212
|
+
message: `Response Validation Warnnings for application > Configuration > getAppStaffList \n ${res_error}`,
|
|
194
213
|
});
|
|
195
|
-
Logger({ level: "WARN", message: res_error });
|
|
196
214
|
}
|
|
197
215
|
|
|
198
216
|
return response;
|
|
@@ -208,6 +226,7 @@ class Configuration {
|
|
|
208
226
|
* @param {string} [arg.user] - Mongo ID of the staff. Helps in retrieving
|
|
209
227
|
* the details of a particular staff member.
|
|
210
228
|
* @param {string} [arg.userName] - User name of the member
|
|
229
|
+
* @returns {Paginator<ConfigurationApplicationModel.AppStaffListResponse>}
|
|
211
230
|
* @summary: Get a list of staff.
|
|
212
231
|
* @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application.
|
|
213
232
|
*/
|
|
@@ -242,19 +261,22 @@ class Configuration {
|
|
|
242
261
|
}
|
|
243
262
|
|
|
244
263
|
/**
|
|
245
|
-
* @param {
|
|
246
|
-
* @param {
|
|
247
|
-
*
|
|
248
|
-
* @
|
|
249
|
-
*
|
|
250
|
-
* @
|
|
251
|
-
* the details of a particular staff member.
|
|
252
|
-
* @returns {Promise<AppStaffResponse>} - Success response
|
|
264
|
+
* @param {ConfigurationApplicationValidator.GetAppStaffsParam} arg - Arg object.
|
|
265
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
266
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
267
|
+
* @returns {Promise<ConfigurationApplicationModel.AppStaffResponse>} -
|
|
268
|
+
* Success response
|
|
269
|
+
* @name getAppStaffs
|
|
253
270
|
* @summary: Get a list of staff.
|
|
254
|
-
* @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application.
|
|
271
|
+
* @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffs/).
|
|
255
272
|
*/
|
|
256
|
-
async getAppStaffs(
|
|
257
|
-
|
|
273
|
+
async getAppStaffs(
|
|
274
|
+
{ orderIncent, orderingStore, user, requestHeaders } = {
|
|
275
|
+
requestHeaders: {},
|
|
276
|
+
},
|
|
277
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
278
|
+
) {
|
|
279
|
+
const { error } = ConfigurationApplicationValidator.getAppStaffs().validate(
|
|
258
280
|
{ orderIncent, orderingStore, user },
|
|
259
281
|
{ abortEarly: false, allowUnknown: true }
|
|
260
282
|
);
|
|
@@ -263,16 +285,17 @@ class Configuration {
|
|
|
263
285
|
}
|
|
264
286
|
|
|
265
287
|
// Showing warrnings if extra unknown parameters are found
|
|
266
|
-
const {
|
|
288
|
+
const {
|
|
289
|
+
error: warrning,
|
|
290
|
+
} = ConfigurationApplicationValidator.getAppStaffs().validate(
|
|
267
291
|
{ orderIncent, orderingStore, user },
|
|
268
292
|
{ abortEarly: false, allowUnknown: false }
|
|
269
293
|
);
|
|
270
294
|
if (warrning) {
|
|
271
295
|
Logger({
|
|
272
296
|
level: "WARN",
|
|
273
|
-
message:
|
|
297
|
+
message: `Parameter Validation warrnings for application > Configuration > getAppStaffs \n ${warrning}`,
|
|
274
298
|
});
|
|
275
|
-
Logger({ level: "WARN", message: warrning });
|
|
276
299
|
}
|
|
277
300
|
|
|
278
301
|
const query_params = {};
|
|
@@ -291,35 +314,48 @@ class Configuration {
|
|
|
291
314
|
}),
|
|
292
315
|
query_params,
|
|
293
316
|
undefined,
|
|
294
|
-
xHeaders
|
|
317
|
+
{ ...xHeaders, ...requestHeaders },
|
|
318
|
+
{ responseHeaders }
|
|
295
319
|
);
|
|
296
320
|
|
|
321
|
+
let responseData = response;
|
|
322
|
+
if (responseHeaders) {
|
|
323
|
+
responseData = response[0];
|
|
324
|
+
}
|
|
325
|
+
|
|
297
326
|
const {
|
|
298
327
|
error: res_error,
|
|
299
|
-
} =
|
|
300
|
-
|
|
301
|
-
allowUnknown: false
|
|
302
|
-
|
|
328
|
+
} = ConfigurationApplicationModel.AppStaffResponse().validate(
|
|
329
|
+
responseData,
|
|
330
|
+
{ abortEarly: false, allowUnknown: false }
|
|
331
|
+
);
|
|
303
332
|
|
|
304
333
|
if (res_error) {
|
|
305
334
|
Logger({
|
|
306
335
|
level: "WARN",
|
|
307
|
-
message:
|
|
336
|
+
message: `Response Validation Warnnings for application > Configuration > getAppStaffs \n ${res_error}`,
|
|
308
337
|
});
|
|
309
|
-
Logger({ level: "WARN", message: res_error });
|
|
310
338
|
}
|
|
311
339
|
|
|
312
340
|
return response;
|
|
313
341
|
}
|
|
314
342
|
|
|
315
343
|
/**
|
|
316
|
-
* @param {
|
|
317
|
-
* @
|
|
344
|
+
* @param {ConfigurationApplicationValidator.GetApplicationParam} arg - Arg object.
|
|
345
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
346
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
347
|
+
* @returns {Promise<ConfigurationApplicationModel.Application>} - Success response
|
|
348
|
+
* @name getApplication
|
|
318
349
|
* @summary: Get current sales channel details
|
|
319
|
-
* @description: Use this API to get the current sales channel details which includes configurations that indicate the status of the website, domain, ID, tokens, images, etc.
|
|
350
|
+
* @description: Use this API to get the current sales channel details which includes configurations that indicate the status of the website, domain, ID, tokens, images, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getApplication/).
|
|
320
351
|
*/
|
|
321
|
-
async getApplication(
|
|
322
|
-
|
|
352
|
+
async getApplication(
|
|
353
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
354
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
355
|
+
) {
|
|
356
|
+
const {
|
|
357
|
+
error,
|
|
358
|
+
} = ConfigurationApplicationValidator.getApplication().validate(
|
|
323
359
|
{},
|
|
324
360
|
{ abortEarly: false, allowUnknown: true }
|
|
325
361
|
);
|
|
@@ -330,16 +366,15 @@ class Configuration {
|
|
|
330
366
|
// Showing warrnings if extra unknown parameters are found
|
|
331
367
|
const {
|
|
332
368
|
error: warrning,
|
|
333
|
-
} =
|
|
369
|
+
} = ConfigurationApplicationValidator.getApplication().validate(
|
|
334
370
|
{},
|
|
335
371
|
{ abortEarly: false, allowUnknown: false }
|
|
336
372
|
);
|
|
337
373
|
if (warrning) {
|
|
338
374
|
Logger({
|
|
339
375
|
level: "WARN",
|
|
340
|
-
message:
|
|
376
|
+
message: `Parameter Validation warrnings for application > Configuration > getApplication \n ${warrning}`,
|
|
341
377
|
});
|
|
342
|
-
Logger({ level: "WARN", message: warrning });
|
|
343
378
|
}
|
|
344
379
|
|
|
345
380
|
const query_params = {};
|
|
@@ -355,12 +390,18 @@ class Configuration {
|
|
|
355
390
|
}),
|
|
356
391
|
query_params,
|
|
357
392
|
undefined,
|
|
358
|
-
xHeaders
|
|
393
|
+
{ ...xHeaders, ...requestHeaders },
|
|
394
|
+
{ responseHeaders }
|
|
359
395
|
);
|
|
360
396
|
|
|
397
|
+
let responseData = response;
|
|
398
|
+
if (responseHeaders) {
|
|
399
|
+
responseData = response[0];
|
|
400
|
+
}
|
|
401
|
+
|
|
361
402
|
const {
|
|
362
403
|
error: res_error,
|
|
363
|
-
} =
|
|
404
|
+
} = ConfigurationApplicationModel.Application().validate(responseData, {
|
|
364
405
|
abortEarly: false,
|
|
365
406
|
allowUnknown: false,
|
|
366
407
|
});
|
|
@@ -368,22 +409,30 @@ class Configuration {
|
|
|
368
409
|
if (res_error) {
|
|
369
410
|
Logger({
|
|
370
411
|
level: "WARN",
|
|
371
|
-
message:
|
|
412
|
+
message: `Response Validation Warnnings for application > Configuration > getApplication \n ${res_error}`,
|
|
372
413
|
});
|
|
373
|
-
Logger({ level: "WARN", message: res_error });
|
|
374
414
|
}
|
|
375
415
|
|
|
376
416
|
return response;
|
|
377
417
|
}
|
|
378
418
|
|
|
379
419
|
/**
|
|
380
|
-
* @param {
|
|
381
|
-
* @
|
|
420
|
+
* @param {ConfigurationApplicationValidator.GetBasicDetailsParam} arg - Arg object.
|
|
421
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
422
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
423
|
+
* @returns {Promise<ConfigurationApplicationModel.ApplicationDetail>} -
|
|
424
|
+
* Success response
|
|
425
|
+
* @name getBasicDetails
|
|
382
426
|
* @summary: Get basic details of the application
|
|
383
|
-
* @description: Use this API to retrieve only the basic details of the application which includes channel name, description, banner, logo, favicon, domain details, etc.
|
|
427
|
+
* @description: Use this API to retrieve only the basic details of the application which includes channel name, description, banner, logo, favicon, domain details, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getBasicDetails/).
|
|
384
428
|
*/
|
|
385
|
-
async getBasicDetails(
|
|
386
|
-
|
|
429
|
+
async getBasicDetails(
|
|
430
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
431
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
432
|
+
) {
|
|
433
|
+
const {
|
|
434
|
+
error,
|
|
435
|
+
} = ConfigurationApplicationValidator.getBasicDetails().validate(
|
|
387
436
|
{},
|
|
388
437
|
{ abortEarly: false, allowUnknown: true }
|
|
389
438
|
);
|
|
@@ -394,16 +443,15 @@ class Configuration {
|
|
|
394
443
|
// Showing warrnings if extra unknown parameters are found
|
|
395
444
|
const {
|
|
396
445
|
error: warrning,
|
|
397
|
-
} =
|
|
446
|
+
} = ConfigurationApplicationValidator.getBasicDetails().validate(
|
|
398
447
|
{},
|
|
399
448
|
{ abortEarly: false, allowUnknown: false }
|
|
400
449
|
);
|
|
401
450
|
if (warrning) {
|
|
402
451
|
Logger({
|
|
403
452
|
level: "WARN",
|
|
404
|
-
message:
|
|
453
|
+
message: `Parameter Validation warrnings for application > Configuration > getBasicDetails \n ${warrning}`,
|
|
405
454
|
});
|
|
406
|
-
Logger({ level: "WARN", message: warrning });
|
|
407
455
|
}
|
|
408
456
|
|
|
409
457
|
const query_params = {};
|
|
@@ -419,35 +467,50 @@ class Configuration {
|
|
|
419
467
|
}),
|
|
420
468
|
query_params,
|
|
421
469
|
undefined,
|
|
422
|
-
xHeaders
|
|
470
|
+
{ ...xHeaders, ...requestHeaders },
|
|
471
|
+
{ responseHeaders }
|
|
423
472
|
);
|
|
424
473
|
|
|
474
|
+
let responseData = response;
|
|
475
|
+
if (responseHeaders) {
|
|
476
|
+
responseData = response[0];
|
|
477
|
+
}
|
|
478
|
+
|
|
425
479
|
const {
|
|
426
480
|
error: res_error,
|
|
427
|
-
} =
|
|
428
|
-
|
|
429
|
-
allowUnknown: false
|
|
430
|
-
|
|
481
|
+
} = ConfigurationApplicationModel.ApplicationDetail().validate(
|
|
482
|
+
responseData,
|
|
483
|
+
{ abortEarly: false, allowUnknown: false }
|
|
484
|
+
);
|
|
431
485
|
|
|
432
486
|
if (res_error) {
|
|
433
487
|
Logger({
|
|
434
488
|
level: "WARN",
|
|
435
|
-
message:
|
|
489
|
+
message: `Response Validation Warnnings for application > Configuration > getBasicDetails \n ${res_error}`,
|
|
436
490
|
});
|
|
437
|
-
Logger({ level: "WARN", message: res_error });
|
|
438
491
|
}
|
|
439
492
|
|
|
440
493
|
return response;
|
|
441
494
|
}
|
|
442
495
|
|
|
443
496
|
/**
|
|
444
|
-
* @param {
|
|
445
|
-
* @
|
|
497
|
+
* @param {ConfigurationApplicationValidator.GetContactInfoParam} arg - Arg object.
|
|
498
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
499
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
500
|
+
* @returns {Promise<ConfigurationApplicationModel.ApplicationInformation>}
|
|
501
|
+
* - Success response
|
|
502
|
+
*
|
|
503
|
+
* @name getContactInfo
|
|
446
504
|
* @summary: Get application information
|
|
447
|
-
* @description: Use this API to retrieve information about the social links, address and contact information of the company/seller/brand operating the application.
|
|
505
|
+
* @description: Use this API to retrieve information about the social links, address and contact information of the company/seller/brand operating the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getContactInfo/).
|
|
448
506
|
*/
|
|
449
|
-
async getContactInfo(
|
|
450
|
-
|
|
507
|
+
async getContactInfo(
|
|
508
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
509
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
510
|
+
) {
|
|
511
|
+
const {
|
|
512
|
+
error,
|
|
513
|
+
} = ConfigurationApplicationValidator.getContactInfo().validate(
|
|
451
514
|
{},
|
|
452
515
|
{ abortEarly: false, allowUnknown: true }
|
|
453
516
|
);
|
|
@@ -458,16 +521,15 @@ class Configuration {
|
|
|
458
521
|
// Showing warrnings if extra unknown parameters are found
|
|
459
522
|
const {
|
|
460
523
|
error: warrning,
|
|
461
|
-
} =
|
|
524
|
+
} = ConfigurationApplicationValidator.getContactInfo().validate(
|
|
462
525
|
{},
|
|
463
526
|
{ abortEarly: false, allowUnknown: false }
|
|
464
527
|
);
|
|
465
528
|
if (warrning) {
|
|
466
529
|
Logger({
|
|
467
530
|
level: "WARN",
|
|
468
|
-
message:
|
|
531
|
+
message: `Parameter Validation warrnings for application > Configuration > getContactInfo \n ${warrning}`,
|
|
469
532
|
});
|
|
470
|
-
Logger({ level: "WARN", message: warrning });
|
|
471
533
|
}
|
|
472
534
|
|
|
473
535
|
const query_params = {};
|
|
@@ -483,35 +545,49 @@ class Configuration {
|
|
|
483
545
|
}),
|
|
484
546
|
query_params,
|
|
485
547
|
undefined,
|
|
486
|
-
xHeaders
|
|
548
|
+
{ ...xHeaders, ...requestHeaders },
|
|
549
|
+
{ responseHeaders }
|
|
487
550
|
);
|
|
488
551
|
|
|
552
|
+
let responseData = response;
|
|
553
|
+
if (responseHeaders) {
|
|
554
|
+
responseData = response[0];
|
|
555
|
+
}
|
|
556
|
+
|
|
489
557
|
const {
|
|
490
558
|
error: res_error,
|
|
491
|
-
} =
|
|
492
|
-
|
|
493
|
-
allowUnknown: false
|
|
494
|
-
|
|
559
|
+
} = ConfigurationApplicationModel.ApplicationInformation().validate(
|
|
560
|
+
responseData,
|
|
561
|
+
{ abortEarly: false, allowUnknown: false }
|
|
562
|
+
);
|
|
495
563
|
|
|
496
564
|
if (res_error) {
|
|
497
565
|
Logger({
|
|
498
566
|
level: "WARN",
|
|
499
|
-
message:
|
|
567
|
+
message: `Response Validation Warnnings for application > Configuration > getContactInfo \n ${res_error}`,
|
|
500
568
|
});
|
|
501
|
-
Logger({ level: "WARN", message: res_error });
|
|
502
569
|
}
|
|
503
570
|
|
|
504
571
|
return response;
|
|
505
572
|
}
|
|
506
573
|
|
|
507
574
|
/**
|
|
508
|
-
* @param {
|
|
509
|
-
* @
|
|
575
|
+
* @param {ConfigurationApplicationValidator.GetCurrenciesParam} arg - Arg object.
|
|
576
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
577
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
578
|
+
* @returns {Promise<ConfigurationApplicationModel.CurrenciesResponse>} -
|
|
579
|
+
* Success response
|
|
580
|
+
* @name getCurrencies
|
|
510
581
|
* @summary: Get all currencies list
|
|
511
|
-
* @description: Use this API to get a list of currencies available. Moreover, get the name, code, symbol, and the decimal digits of the currencies.
|
|
582
|
+
* @description: Use this API to get a list of currencies available. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencies/).
|
|
512
583
|
*/
|
|
513
|
-
async getCurrencies(
|
|
514
|
-
|
|
584
|
+
async getCurrencies(
|
|
585
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
586
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
587
|
+
) {
|
|
588
|
+
const {
|
|
589
|
+
error,
|
|
590
|
+
} = ConfigurationApplicationValidator.getCurrencies().validate(
|
|
515
591
|
{},
|
|
516
592
|
{ abortEarly: false, allowUnknown: true }
|
|
517
593
|
);
|
|
@@ -520,16 +596,17 @@ class Configuration {
|
|
|
520
596
|
}
|
|
521
597
|
|
|
522
598
|
// Showing warrnings if extra unknown parameters are found
|
|
523
|
-
const {
|
|
599
|
+
const {
|
|
600
|
+
error: warrning,
|
|
601
|
+
} = ConfigurationApplicationValidator.getCurrencies().validate(
|
|
524
602
|
{},
|
|
525
603
|
{ abortEarly: false, allowUnknown: false }
|
|
526
604
|
);
|
|
527
605
|
if (warrning) {
|
|
528
606
|
Logger({
|
|
529
607
|
level: "WARN",
|
|
530
|
-
message:
|
|
608
|
+
message: `Parameter Validation warrnings for application > Configuration > getCurrencies \n ${warrning}`,
|
|
531
609
|
});
|
|
532
|
-
Logger({ level: "WARN", message: warrning });
|
|
533
610
|
}
|
|
534
611
|
|
|
535
612
|
const query_params = {};
|
|
@@ -545,36 +622,48 @@ class Configuration {
|
|
|
545
622
|
}),
|
|
546
623
|
query_params,
|
|
547
624
|
undefined,
|
|
548
|
-
xHeaders
|
|
625
|
+
{ ...xHeaders, ...requestHeaders },
|
|
626
|
+
{ responseHeaders }
|
|
549
627
|
);
|
|
550
628
|
|
|
629
|
+
let responseData = response;
|
|
630
|
+
if (responseHeaders) {
|
|
631
|
+
responseData = response[0];
|
|
632
|
+
}
|
|
633
|
+
|
|
551
634
|
const {
|
|
552
635
|
error: res_error,
|
|
553
|
-
} =
|
|
554
|
-
|
|
555
|
-
allowUnknown: false
|
|
556
|
-
|
|
636
|
+
} = ConfigurationApplicationModel.CurrenciesResponse().validate(
|
|
637
|
+
responseData,
|
|
638
|
+
{ abortEarly: false, allowUnknown: false }
|
|
639
|
+
);
|
|
557
640
|
|
|
558
641
|
if (res_error) {
|
|
559
642
|
Logger({
|
|
560
643
|
level: "WARN",
|
|
561
|
-
message:
|
|
644
|
+
message: `Response Validation Warnnings for application > Configuration > getCurrencies \n ${res_error}`,
|
|
562
645
|
});
|
|
563
|
-
Logger({ level: "WARN", message: res_error });
|
|
564
646
|
}
|
|
565
647
|
|
|
566
648
|
return response;
|
|
567
649
|
}
|
|
568
650
|
|
|
569
651
|
/**
|
|
570
|
-
* @param {
|
|
571
|
-
* @param {
|
|
572
|
-
* @
|
|
652
|
+
* @param {ConfigurationApplicationValidator.GetCurrencyByIdParam} arg - Arg object.
|
|
653
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
654
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
655
|
+
* @returns {Promise<ConfigurationApplicationModel.Currency>} - Success response
|
|
656
|
+
* @name getCurrencyById
|
|
573
657
|
* @summary: Get currency by its ID
|
|
574
|
-
* @description: Use this API to retrieve a currency using its ID.
|
|
658
|
+
* @description: Use this API to retrieve a currency using its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencyById/).
|
|
575
659
|
*/
|
|
576
|
-
async getCurrencyById(
|
|
577
|
-
|
|
660
|
+
async getCurrencyById(
|
|
661
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
662
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
663
|
+
) {
|
|
664
|
+
const {
|
|
665
|
+
error,
|
|
666
|
+
} = ConfigurationApplicationValidator.getCurrencyById().validate(
|
|
578
667
|
{ id },
|
|
579
668
|
{ abortEarly: false, allowUnknown: true }
|
|
580
669
|
);
|
|
@@ -585,16 +674,15 @@ class Configuration {
|
|
|
585
674
|
// Showing warrnings if extra unknown parameters are found
|
|
586
675
|
const {
|
|
587
676
|
error: warrning,
|
|
588
|
-
} =
|
|
677
|
+
} = ConfigurationApplicationValidator.getCurrencyById().validate(
|
|
589
678
|
{ id },
|
|
590
679
|
{ abortEarly: false, allowUnknown: false }
|
|
591
680
|
);
|
|
592
681
|
if (warrning) {
|
|
593
682
|
Logger({
|
|
594
683
|
level: "WARN",
|
|
595
|
-
message:
|
|
684
|
+
message: `Parameter Validation warrnings for application > Configuration > getCurrencyById \n ${warrning}`,
|
|
596
685
|
});
|
|
597
|
-
Logger({ level: "WARN", message: warrning });
|
|
598
686
|
}
|
|
599
687
|
|
|
600
688
|
const query_params = {};
|
|
@@ -610,12 +698,18 @@ class Configuration {
|
|
|
610
698
|
}),
|
|
611
699
|
query_params,
|
|
612
700
|
undefined,
|
|
613
|
-
xHeaders
|
|
701
|
+
{ ...xHeaders, ...requestHeaders },
|
|
702
|
+
{ responseHeaders }
|
|
614
703
|
);
|
|
615
704
|
|
|
705
|
+
let responseData = response;
|
|
706
|
+
if (responseHeaders) {
|
|
707
|
+
responseData = response[0];
|
|
708
|
+
}
|
|
709
|
+
|
|
616
710
|
const {
|
|
617
711
|
error: res_error,
|
|
618
|
-
} =
|
|
712
|
+
} = ConfigurationApplicationModel.Currency().validate(responseData, {
|
|
619
713
|
abortEarly: false,
|
|
620
714
|
allowUnknown: false,
|
|
621
715
|
});
|
|
@@ -623,22 +717,28 @@ class Configuration {
|
|
|
623
717
|
if (res_error) {
|
|
624
718
|
Logger({
|
|
625
719
|
level: "WARN",
|
|
626
|
-
message:
|
|
720
|
+
message: `Response Validation Warnnings for application > Configuration > getCurrencyById \n ${res_error}`,
|
|
627
721
|
});
|
|
628
|
-
Logger({ level: "WARN", message: res_error });
|
|
629
722
|
}
|
|
630
723
|
|
|
631
724
|
return response;
|
|
632
725
|
}
|
|
633
726
|
|
|
634
727
|
/**
|
|
635
|
-
* @param {
|
|
636
|
-
* @
|
|
728
|
+
* @param {ConfigurationApplicationValidator.GetFeaturesParam} arg - Arg object.
|
|
729
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
730
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
731
|
+
* @returns {Promise<ConfigurationApplicationModel.AppFeatureResponse>} -
|
|
732
|
+
* Success response
|
|
733
|
+
* @name getFeatures
|
|
637
734
|
* @summary: Get features of application
|
|
638
|
-
* @description: Use this API to retrieve the configuration of features such as product detail, landing page, options in the login/registration screen, communication opt-in, cart options and many more.
|
|
735
|
+
* @description: Use this API to retrieve the configuration of features such as product detail, landing page, options in the login/registration screen, communication opt-in, cart options and many more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getFeatures/).
|
|
639
736
|
*/
|
|
640
|
-
async getFeatures(
|
|
641
|
-
|
|
737
|
+
async getFeatures(
|
|
738
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
739
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
740
|
+
) {
|
|
741
|
+
const { error } = ConfigurationApplicationValidator.getFeatures().validate(
|
|
642
742
|
{},
|
|
643
743
|
{ abortEarly: false, allowUnknown: true }
|
|
644
744
|
);
|
|
@@ -647,16 +747,17 @@ class Configuration {
|
|
|
647
747
|
}
|
|
648
748
|
|
|
649
749
|
// Showing warrnings if extra unknown parameters are found
|
|
650
|
-
const {
|
|
750
|
+
const {
|
|
751
|
+
error: warrning,
|
|
752
|
+
} = ConfigurationApplicationValidator.getFeatures().validate(
|
|
651
753
|
{},
|
|
652
754
|
{ abortEarly: false, allowUnknown: false }
|
|
653
755
|
);
|
|
654
756
|
if (warrning) {
|
|
655
757
|
Logger({
|
|
656
758
|
level: "WARN",
|
|
657
|
-
message:
|
|
759
|
+
message: `Parameter Validation warrnings for application > Configuration > getFeatures \n ${warrning}`,
|
|
658
760
|
});
|
|
659
|
-
Logger({ level: "WARN", message: warrning });
|
|
660
761
|
}
|
|
661
762
|
|
|
662
763
|
const query_params = {};
|
|
@@ -672,35 +773,51 @@ class Configuration {
|
|
|
672
773
|
}),
|
|
673
774
|
query_params,
|
|
674
775
|
undefined,
|
|
675
|
-
xHeaders
|
|
776
|
+
{ ...xHeaders, ...requestHeaders },
|
|
777
|
+
{ responseHeaders }
|
|
676
778
|
);
|
|
677
779
|
|
|
780
|
+
let responseData = response;
|
|
781
|
+
if (responseHeaders) {
|
|
782
|
+
responseData = response[0];
|
|
783
|
+
}
|
|
784
|
+
|
|
678
785
|
const {
|
|
679
786
|
error: res_error,
|
|
680
|
-
} =
|
|
681
|
-
|
|
682
|
-
allowUnknown: false
|
|
683
|
-
|
|
787
|
+
} = ConfigurationApplicationModel.AppFeatureResponse().validate(
|
|
788
|
+
responseData,
|
|
789
|
+
{ abortEarly: false, allowUnknown: false }
|
|
790
|
+
);
|
|
684
791
|
|
|
685
792
|
if (res_error) {
|
|
686
793
|
Logger({
|
|
687
794
|
level: "WARN",
|
|
688
|
-
message:
|
|
795
|
+
message: `Response Validation Warnnings for application > Configuration > getFeatures \n ${res_error}`,
|
|
689
796
|
});
|
|
690
|
-
Logger({ level: "WARN", message: res_error });
|
|
691
797
|
}
|
|
692
798
|
|
|
693
799
|
return response;
|
|
694
800
|
}
|
|
695
801
|
|
|
696
802
|
/**
|
|
697
|
-
* @param {
|
|
698
|
-
*
|
|
803
|
+
* @param {ConfigurationApplicationValidator.GetIntegrationTokensParam} arg
|
|
804
|
+
* - Arg object.
|
|
805
|
+
*
|
|
806
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
807
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
808
|
+
* @returns {Promise<ConfigurationApplicationModel.AppTokenResponse>} -
|
|
809
|
+
* Success response
|
|
810
|
+
* @name getIntegrationTokens
|
|
699
811
|
* @summary: Get integration tokens
|
|
700
|
-
* @description: Use this API to retrieve the tokens used while integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map and Facebook. **Note** - Token values are encrypted with AES encryption using a secret key. Kindly reach out to the developers for obtaining the secret key.
|
|
812
|
+
* @description: Use this API to retrieve the tokens used while integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map and Facebook. **Note** - Token values are encrypted with AES encryption using a secret key. Kindly reach out to the developers for obtaining the secret key. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getIntegrationTokens/).
|
|
701
813
|
*/
|
|
702
|
-
async getIntegrationTokens(
|
|
703
|
-
|
|
814
|
+
async getIntegrationTokens(
|
|
815
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
816
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
817
|
+
) {
|
|
818
|
+
const {
|
|
819
|
+
error,
|
|
820
|
+
} = ConfigurationApplicationValidator.getIntegrationTokens().validate(
|
|
704
821
|
{},
|
|
705
822
|
{ abortEarly: false, allowUnknown: true }
|
|
706
823
|
);
|
|
@@ -711,16 +828,15 @@ class Configuration {
|
|
|
711
828
|
// Showing warrnings if extra unknown parameters are found
|
|
712
829
|
const {
|
|
713
830
|
error: warrning,
|
|
714
|
-
} =
|
|
831
|
+
} = ConfigurationApplicationValidator.getIntegrationTokens().validate(
|
|
715
832
|
{},
|
|
716
833
|
{ abortEarly: false, allowUnknown: false }
|
|
717
834
|
);
|
|
718
835
|
if (warrning) {
|
|
719
836
|
Logger({
|
|
720
837
|
level: "WARN",
|
|
721
|
-
message:
|
|
838
|
+
message: `Parameter Validation warrnings for application > Configuration > getIntegrationTokens \n ${warrning}`,
|
|
722
839
|
});
|
|
723
|
-
Logger({ level: "WARN", message: warrning });
|
|
724
840
|
}
|
|
725
841
|
|
|
726
842
|
const query_params = {};
|
|
@@ -736,35 +852,47 @@ class Configuration {
|
|
|
736
852
|
}),
|
|
737
853
|
query_params,
|
|
738
854
|
undefined,
|
|
739
|
-
xHeaders
|
|
855
|
+
{ ...xHeaders, ...requestHeaders },
|
|
856
|
+
{ responseHeaders }
|
|
740
857
|
);
|
|
741
858
|
|
|
859
|
+
let responseData = response;
|
|
860
|
+
if (responseHeaders) {
|
|
861
|
+
responseData = response[0];
|
|
862
|
+
}
|
|
863
|
+
|
|
742
864
|
const {
|
|
743
865
|
error: res_error,
|
|
744
|
-
} =
|
|
745
|
-
|
|
746
|
-
allowUnknown: false
|
|
747
|
-
|
|
866
|
+
} = ConfigurationApplicationModel.AppTokenResponse().validate(
|
|
867
|
+
responseData,
|
|
868
|
+
{ abortEarly: false, allowUnknown: false }
|
|
869
|
+
);
|
|
748
870
|
|
|
749
871
|
if (res_error) {
|
|
750
872
|
Logger({
|
|
751
873
|
level: "WARN",
|
|
752
|
-
message:
|
|
874
|
+
message: `Response Validation Warnnings for application > Configuration > getIntegrationTokens \n ${res_error}`,
|
|
753
875
|
});
|
|
754
|
-
Logger({ level: "WARN", message: res_error });
|
|
755
876
|
}
|
|
756
877
|
|
|
757
878
|
return response;
|
|
758
879
|
}
|
|
759
880
|
|
|
760
881
|
/**
|
|
761
|
-
* @param {
|
|
762
|
-
* @
|
|
882
|
+
* @param {ConfigurationApplicationValidator.GetLanguagesParam} arg - Arg object.
|
|
883
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
884
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
885
|
+
* @returns {Promise<ConfigurationApplicationModel.LanguageResponse>} -
|
|
886
|
+
* Success response
|
|
887
|
+
* @name getLanguages
|
|
763
888
|
* @summary: Get list of languages
|
|
764
|
-
* @description: Use this API to get a list of languages supported in the application
|
|
889
|
+
* @description: Use this API to get a list of languages supported in the application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getLanguages/).
|
|
765
890
|
*/
|
|
766
|
-
async getLanguages(
|
|
767
|
-
|
|
891
|
+
async getLanguages(
|
|
892
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
893
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
894
|
+
) {
|
|
895
|
+
const { error } = ConfigurationApplicationValidator.getLanguages().validate(
|
|
768
896
|
{},
|
|
769
897
|
{ abortEarly: false, allowUnknown: true }
|
|
770
898
|
);
|
|
@@ -773,16 +901,17 @@ class Configuration {
|
|
|
773
901
|
}
|
|
774
902
|
|
|
775
903
|
// Showing warrnings if extra unknown parameters are found
|
|
776
|
-
const {
|
|
904
|
+
const {
|
|
905
|
+
error: warrning,
|
|
906
|
+
} = ConfigurationApplicationValidator.getLanguages().validate(
|
|
777
907
|
{},
|
|
778
908
|
{ abortEarly: false, allowUnknown: false }
|
|
779
909
|
);
|
|
780
910
|
if (warrning) {
|
|
781
911
|
Logger({
|
|
782
912
|
level: "WARN",
|
|
783
|
-
message:
|
|
913
|
+
message: `Parameter Validation warrnings for application > Configuration > getLanguages \n ${warrning}`,
|
|
784
914
|
});
|
|
785
|
-
Logger({ level: "WARN", message: warrning });
|
|
786
915
|
}
|
|
787
916
|
|
|
788
917
|
const query_params = {};
|
|
@@ -798,36 +927,52 @@ class Configuration {
|
|
|
798
927
|
}),
|
|
799
928
|
query_params,
|
|
800
929
|
undefined,
|
|
801
|
-
xHeaders
|
|
930
|
+
{ ...xHeaders, ...requestHeaders },
|
|
931
|
+
{ responseHeaders }
|
|
802
932
|
);
|
|
803
933
|
|
|
934
|
+
let responseData = response;
|
|
935
|
+
if (responseHeaders) {
|
|
936
|
+
responseData = response[0];
|
|
937
|
+
}
|
|
938
|
+
|
|
804
939
|
const {
|
|
805
940
|
error: res_error,
|
|
806
|
-
} =
|
|
807
|
-
|
|
808
|
-
allowUnknown: false
|
|
809
|
-
|
|
941
|
+
} = ConfigurationApplicationModel.LanguageResponse().validate(
|
|
942
|
+
responseData,
|
|
943
|
+
{ abortEarly: false, allowUnknown: false }
|
|
944
|
+
);
|
|
810
945
|
|
|
811
946
|
if (res_error) {
|
|
812
947
|
Logger({
|
|
813
948
|
level: "WARN",
|
|
814
|
-
message:
|
|
949
|
+
message: `Response Validation Warnnings for application > Configuration > getLanguages \n ${res_error}`,
|
|
815
950
|
});
|
|
816
|
-
Logger({ level: "WARN", message: res_error });
|
|
817
951
|
}
|
|
818
952
|
|
|
819
953
|
return response;
|
|
820
954
|
}
|
|
821
955
|
|
|
822
956
|
/**
|
|
823
|
-
* @param {
|
|
824
|
-
*
|
|
825
|
-
*
|
|
957
|
+
* @param {ConfigurationApplicationValidator.GetOrderingStoreCookieParam} arg
|
|
958
|
+
* - Arg object.
|
|
959
|
+
*
|
|
960
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
961
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
962
|
+
* @returns {Promise<ConfigurationApplicationModel.SuccessMessageResponse>}
|
|
963
|
+
* - Success response
|
|
964
|
+
*
|
|
965
|
+
* @name getOrderingStoreCookie
|
|
826
966
|
* @summary: Get an Ordering Store signed cookie on selection of ordering store.
|
|
827
|
-
* @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.
|
|
967
|
+
* @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/application/configuration/getOrderingStoreCookie/).
|
|
828
968
|
*/
|
|
829
|
-
async getOrderingStoreCookie(
|
|
830
|
-
|
|
969
|
+
async getOrderingStoreCookie(
|
|
970
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
971
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
972
|
+
) {
|
|
973
|
+
const {
|
|
974
|
+
error,
|
|
975
|
+
} = ConfigurationApplicationValidator.getOrderingStoreCookie().validate(
|
|
831
976
|
{ body },
|
|
832
977
|
{ abortEarly: false, allowUnknown: true }
|
|
833
978
|
);
|
|
@@ -838,16 +983,15 @@ class Configuration {
|
|
|
838
983
|
// Showing warrnings if extra unknown parameters are found
|
|
839
984
|
const {
|
|
840
985
|
error: warrning,
|
|
841
|
-
} =
|
|
986
|
+
} = ConfigurationApplicationValidator.getOrderingStoreCookie().validate(
|
|
842
987
|
{ body },
|
|
843
988
|
{ abortEarly: false, allowUnknown: false }
|
|
844
989
|
);
|
|
845
990
|
if (warrning) {
|
|
846
991
|
Logger({
|
|
847
992
|
level: "WARN",
|
|
848
|
-
message:
|
|
993
|
+
message: `Parameter Validation warrnings for application > Configuration > getOrderingStoreCookie \n ${warrning}`,
|
|
849
994
|
});
|
|
850
|
-
Logger({ level: "WARN", message: warrning });
|
|
851
995
|
}
|
|
852
996
|
|
|
853
997
|
const query_params = {};
|
|
@@ -863,40 +1007,48 @@ class Configuration {
|
|
|
863
1007
|
}),
|
|
864
1008
|
query_params,
|
|
865
1009
|
body,
|
|
866
|
-
xHeaders
|
|
1010
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1011
|
+
{ responseHeaders }
|
|
867
1012
|
);
|
|
868
1013
|
|
|
1014
|
+
let responseData = response;
|
|
1015
|
+
if (responseHeaders) {
|
|
1016
|
+
responseData = response[0];
|
|
1017
|
+
}
|
|
1018
|
+
|
|
869
1019
|
const {
|
|
870
1020
|
error: res_error,
|
|
871
|
-
} =
|
|
872
|
-
|
|
873
|
-
allowUnknown: false
|
|
874
|
-
|
|
1021
|
+
} = ConfigurationApplicationModel.SuccessMessageResponse().validate(
|
|
1022
|
+
responseData,
|
|
1023
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1024
|
+
);
|
|
875
1025
|
|
|
876
1026
|
if (res_error) {
|
|
877
1027
|
Logger({
|
|
878
1028
|
level: "WARN",
|
|
879
|
-
message:
|
|
1029
|
+
message: `Response Validation Warnnings for application > Configuration > getOrderingStoreCookie \n ${res_error}`,
|
|
880
1030
|
});
|
|
881
|
-
Logger({ level: "WARN", message: res_error });
|
|
882
1031
|
}
|
|
883
1032
|
|
|
884
1033
|
return response;
|
|
885
1034
|
}
|
|
886
1035
|
|
|
887
1036
|
/**
|
|
888
|
-
* @param {
|
|
889
|
-
* @param {
|
|
890
|
-
*
|
|
891
|
-
* @
|
|
892
|
-
*
|
|
893
|
-
* @param {string} [arg.q] - Store code or name of the ordering store.
|
|
894
|
-
* @returns {Promise<OrderingStores>} - Success response
|
|
1037
|
+
* @param {ConfigurationApplicationValidator.GetOrderingStoresParam} arg - Arg object.
|
|
1038
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1039
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1040
|
+
* @returns {Promise<ConfigurationApplicationModel.OrderingStores>} - Success response
|
|
1041
|
+
* @name getOrderingStores
|
|
895
1042
|
* @summary: Get all deployment stores
|
|
896
|
-
* @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).
|
|
1043
|
+
* @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/application/configuration/getOrderingStores/).
|
|
897
1044
|
*/
|
|
898
|
-
async getOrderingStores(
|
|
899
|
-
|
|
1045
|
+
async getOrderingStores(
|
|
1046
|
+
{ pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
|
|
1047
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1048
|
+
) {
|
|
1049
|
+
const {
|
|
1050
|
+
error,
|
|
1051
|
+
} = ConfigurationApplicationValidator.getOrderingStores().validate(
|
|
900
1052
|
{ pageNo, pageSize, q },
|
|
901
1053
|
{ abortEarly: false, allowUnknown: true }
|
|
902
1054
|
);
|
|
@@ -907,16 +1059,15 @@ class Configuration {
|
|
|
907
1059
|
// Showing warrnings if extra unknown parameters are found
|
|
908
1060
|
const {
|
|
909
1061
|
error: warrning,
|
|
910
|
-
} =
|
|
1062
|
+
} = ConfigurationApplicationValidator.getOrderingStores().validate(
|
|
911
1063
|
{ pageNo, pageSize, q },
|
|
912
1064
|
{ abortEarly: false, allowUnknown: false }
|
|
913
1065
|
);
|
|
914
1066
|
if (warrning) {
|
|
915
1067
|
Logger({
|
|
916
1068
|
level: "WARN",
|
|
917
|
-
message:
|
|
1069
|
+
message: `Parameter Validation warrnings for application > Configuration > getOrderingStores \n ${warrning}`,
|
|
918
1070
|
});
|
|
919
|
-
Logger({ level: "WARN", message: warrning });
|
|
920
1071
|
}
|
|
921
1072
|
|
|
922
1073
|
const query_params = {};
|
|
@@ -935,12 +1086,18 @@ class Configuration {
|
|
|
935
1086
|
}),
|
|
936
1087
|
query_params,
|
|
937
1088
|
undefined,
|
|
938
|
-
xHeaders
|
|
1089
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1090
|
+
{ responseHeaders }
|
|
939
1091
|
);
|
|
940
1092
|
|
|
1093
|
+
let responseData = response;
|
|
1094
|
+
if (responseHeaders) {
|
|
1095
|
+
responseData = response[0];
|
|
1096
|
+
}
|
|
1097
|
+
|
|
941
1098
|
const {
|
|
942
1099
|
error: res_error,
|
|
943
|
-
} =
|
|
1100
|
+
} = ConfigurationApplicationModel.OrderingStores().validate(responseData, {
|
|
944
1101
|
abortEarly: false,
|
|
945
1102
|
allowUnknown: false,
|
|
946
1103
|
});
|
|
@@ -948,9 +1105,8 @@ class Configuration {
|
|
|
948
1105
|
if (res_error) {
|
|
949
1106
|
Logger({
|
|
950
1107
|
level: "WARN",
|
|
951
|
-
message:
|
|
1108
|
+
message: `Response Validation Warnnings for application > Configuration > getOrderingStores \n ${res_error}`,
|
|
952
1109
|
});
|
|
953
|
-
Logger({ level: "WARN", message: res_error });
|
|
954
1110
|
}
|
|
955
1111
|
|
|
956
1112
|
return response;
|
|
@@ -961,6 +1117,7 @@ class Configuration {
|
|
|
961
1117
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
962
1118
|
* page. Default value is 10.
|
|
963
1119
|
* @param {string} [arg.q] - Store code or name of the ordering store.
|
|
1120
|
+
* @returns {Paginator<ConfigurationApplicationModel.OrderingStores>}
|
|
964
1121
|
* @summary: Get all deployment stores
|
|
965
1122
|
* @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).
|
|
966
1123
|
*/
|
|
@@ -986,13 +1143,21 @@ class Configuration {
|
|
|
986
1143
|
}
|
|
987
1144
|
|
|
988
1145
|
/**
|
|
989
|
-
* @param {
|
|
990
|
-
* @
|
|
1146
|
+
* @param {ConfigurationApplicationValidator.GetOwnerInfoParam} arg - Arg object.
|
|
1147
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1148
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1149
|
+
* @returns {Promise<ConfigurationApplicationModel.ApplicationAboutResponse>}
|
|
1150
|
+
* - Success response
|
|
1151
|
+
*
|
|
1152
|
+
* @name getOwnerInfo
|
|
991
1153
|
* @summary: Get sales channel, owner and seller information
|
|
992
|
-
* @description: Use this API to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, etc. This API also retrieves the seller and owner information such as address, email address, and phone number.
|
|
1154
|
+
* @description: Use this API to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, etc. This API also retrieves the seller and owner information such as address, email address, and phone number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOwnerInfo/).
|
|
993
1155
|
*/
|
|
994
|
-
async getOwnerInfo(
|
|
995
|
-
|
|
1156
|
+
async getOwnerInfo(
|
|
1157
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
1158
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1159
|
+
) {
|
|
1160
|
+
const { error } = ConfigurationApplicationValidator.getOwnerInfo().validate(
|
|
996
1161
|
{},
|
|
997
1162
|
{ abortEarly: false, allowUnknown: true }
|
|
998
1163
|
);
|
|
@@ -1001,16 +1166,17 @@ class Configuration {
|
|
|
1001
1166
|
}
|
|
1002
1167
|
|
|
1003
1168
|
// Showing warrnings if extra unknown parameters are found
|
|
1004
|
-
const {
|
|
1169
|
+
const {
|
|
1170
|
+
error: warrning,
|
|
1171
|
+
} = ConfigurationApplicationValidator.getOwnerInfo().validate(
|
|
1005
1172
|
{},
|
|
1006
1173
|
{ abortEarly: false, allowUnknown: false }
|
|
1007
1174
|
);
|
|
1008
1175
|
if (warrning) {
|
|
1009
1176
|
Logger({
|
|
1010
1177
|
level: "WARN",
|
|
1011
|
-
message:
|
|
1178
|
+
message: `Parameter Validation warrnings for application > Configuration > getOwnerInfo \n ${warrning}`,
|
|
1012
1179
|
});
|
|
1013
|
-
Logger({ level: "WARN", message: warrning });
|
|
1014
1180
|
}
|
|
1015
1181
|
|
|
1016
1182
|
const query_params = {};
|
|
@@ -1026,36 +1192,49 @@ class Configuration {
|
|
|
1026
1192
|
}),
|
|
1027
1193
|
query_params,
|
|
1028
1194
|
undefined,
|
|
1029
|
-
xHeaders
|
|
1195
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1196
|
+
{ responseHeaders }
|
|
1030
1197
|
);
|
|
1031
1198
|
|
|
1199
|
+
let responseData = response;
|
|
1200
|
+
if (responseHeaders) {
|
|
1201
|
+
responseData = response[0];
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1032
1204
|
const {
|
|
1033
1205
|
error: res_error,
|
|
1034
|
-
} =
|
|
1035
|
-
|
|
1036
|
-
allowUnknown: false
|
|
1037
|
-
|
|
1206
|
+
} = ConfigurationApplicationModel.ApplicationAboutResponse().validate(
|
|
1207
|
+
responseData,
|
|
1208
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1209
|
+
);
|
|
1038
1210
|
|
|
1039
1211
|
if (res_error) {
|
|
1040
1212
|
Logger({
|
|
1041
1213
|
level: "WARN",
|
|
1042
|
-
message:
|
|
1214
|
+
message: `Response Validation Warnnings for application > Configuration > getOwnerInfo \n ${res_error}`,
|
|
1043
1215
|
});
|
|
1044
|
-
Logger({ level: "WARN", message: res_error });
|
|
1045
1216
|
}
|
|
1046
1217
|
|
|
1047
1218
|
return response;
|
|
1048
1219
|
}
|
|
1049
1220
|
|
|
1050
1221
|
/**
|
|
1051
|
-
* @param {
|
|
1052
|
-
*
|
|
1053
|
-
* @
|
|
1222
|
+
* @param {ConfigurationApplicationValidator.GetStoreDetailByIdParam} arg -
|
|
1223
|
+
* Arg object.
|
|
1224
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1225
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1226
|
+
* @returns {Promise<ConfigurationApplicationModel.OrderingStore>} - Success response
|
|
1227
|
+
* @name getStoreDetailById
|
|
1054
1228
|
* @summary: Get ordering store details
|
|
1055
|
-
* @description: Use this API to retrieve the details of given stores uid (the selling locations where the application will be utilized for placing orders).
|
|
1229
|
+
* @description: Use this API to retrieve the details of given stores uid (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getStoreDetailById/).
|
|
1056
1230
|
*/
|
|
1057
|
-
async getStoreDetailById(
|
|
1058
|
-
|
|
1231
|
+
async getStoreDetailById(
|
|
1232
|
+
{ storeId, requestHeaders } = { requestHeaders: {} },
|
|
1233
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1234
|
+
) {
|
|
1235
|
+
const {
|
|
1236
|
+
error,
|
|
1237
|
+
} = ConfigurationApplicationValidator.getStoreDetailById().validate(
|
|
1059
1238
|
{ storeId },
|
|
1060
1239
|
{ abortEarly: false, allowUnknown: true }
|
|
1061
1240
|
);
|
|
@@ -1066,16 +1245,15 @@ class Configuration {
|
|
|
1066
1245
|
// Showing warrnings if extra unknown parameters are found
|
|
1067
1246
|
const {
|
|
1068
1247
|
error: warrning,
|
|
1069
|
-
} =
|
|
1248
|
+
} = ConfigurationApplicationValidator.getStoreDetailById().validate(
|
|
1070
1249
|
{ storeId },
|
|
1071
1250
|
{ abortEarly: false, allowUnknown: false }
|
|
1072
1251
|
);
|
|
1073
1252
|
if (warrning) {
|
|
1074
1253
|
Logger({
|
|
1075
1254
|
level: "WARN",
|
|
1076
|
-
message:
|
|
1255
|
+
message: `Parameter Validation warrnings for application > Configuration > getStoreDetailById \n ${warrning}`,
|
|
1077
1256
|
});
|
|
1078
|
-
Logger({ level: "WARN", message: warrning });
|
|
1079
1257
|
}
|
|
1080
1258
|
|
|
1081
1259
|
const query_params = {};
|
|
@@ -1091,12 +1269,18 @@ class Configuration {
|
|
|
1091
1269
|
}),
|
|
1092
1270
|
query_params,
|
|
1093
1271
|
undefined,
|
|
1094
|
-
xHeaders
|
|
1272
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1273
|
+
{ responseHeaders }
|
|
1095
1274
|
);
|
|
1096
1275
|
|
|
1276
|
+
let responseData = response;
|
|
1277
|
+
if (responseHeaders) {
|
|
1278
|
+
responseData = response[0];
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1097
1281
|
const {
|
|
1098
1282
|
error: res_error,
|
|
1099
|
-
} =
|
|
1283
|
+
} = ConfigurationApplicationModel.OrderingStore().validate(responseData, {
|
|
1100
1284
|
abortEarly: false,
|
|
1101
1285
|
allowUnknown: false,
|
|
1102
1286
|
});
|
|
@@ -1104,24 +1288,33 @@ class Configuration {
|
|
|
1104
1288
|
if (res_error) {
|
|
1105
1289
|
Logger({
|
|
1106
1290
|
level: "WARN",
|
|
1107
|
-
message:
|
|
1291
|
+
message: `Response Validation Warnnings for application > Configuration > getStoreDetailById \n ${res_error}`,
|
|
1108
1292
|
});
|
|
1109
|
-
Logger({ level: "WARN", message: res_error });
|
|
1110
1293
|
}
|
|
1111
1294
|
|
|
1112
1295
|
return response;
|
|
1113
1296
|
}
|
|
1114
1297
|
|
|
1115
1298
|
/**
|
|
1116
|
-
* @param {
|
|
1117
|
-
*
|
|
1299
|
+
* @param {ConfigurationApplicationValidator.RemoveOrderingStoreCookieParam} arg
|
|
1300
|
+
* - Arg object.
|
|
1301
|
+
*
|
|
1302
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1303
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1304
|
+
* @returns {Promise<ConfigurationApplicationModel.SuccessMessageResponse>}
|
|
1305
|
+
* - Success response
|
|
1306
|
+
*
|
|
1307
|
+
* @name removeOrderingStoreCookie
|
|
1118
1308
|
* @summary: Unset the Ordering Store signed cookie.
|
|
1119
|
-
* @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.
|
|
1309
|
+
* @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/application/configuration/removeOrderingStoreCookie/).
|
|
1120
1310
|
*/
|
|
1121
|
-
async removeOrderingStoreCookie(
|
|
1311
|
+
async removeOrderingStoreCookie(
|
|
1312
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
1313
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1314
|
+
) {
|
|
1122
1315
|
const {
|
|
1123
1316
|
error,
|
|
1124
|
-
} =
|
|
1317
|
+
} = ConfigurationApplicationValidator.removeOrderingStoreCookie().validate(
|
|
1125
1318
|
{},
|
|
1126
1319
|
{ abortEarly: false, allowUnknown: true }
|
|
1127
1320
|
);
|
|
@@ -1132,16 +1325,15 @@ class Configuration {
|
|
|
1132
1325
|
// Showing warrnings if extra unknown parameters are found
|
|
1133
1326
|
const {
|
|
1134
1327
|
error: warrning,
|
|
1135
|
-
} =
|
|
1328
|
+
} = ConfigurationApplicationValidator.removeOrderingStoreCookie().validate(
|
|
1136
1329
|
{},
|
|
1137
1330
|
{ abortEarly: false, allowUnknown: false }
|
|
1138
1331
|
);
|
|
1139
1332
|
if (warrning) {
|
|
1140
1333
|
Logger({
|
|
1141
1334
|
level: "WARN",
|
|
1142
|
-
message:
|
|
1335
|
+
message: `Parameter Validation warrnings for application > Configuration > removeOrderingStoreCookie \n ${warrning}`,
|
|
1143
1336
|
});
|
|
1144
|
-
Logger({ level: "WARN", message: warrning });
|
|
1145
1337
|
}
|
|
1146
1338
|
|
|
1147
1339
|
const query_params = {};
|
|
@@ -1157,22 +1349,27 @@ class Configuration {
|
|
|
1157
1349
|
}),
|
|
1158
1350
|
query_params,
|
|
1159
1351
|
undefined,
|
|
1160
|
-
xHeaders
|
|
1352
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1353
|
+
{ responseHeaders }
|
|
1161
1354
|
);
|
|
1162
1355
|
|
|
1356
|
+
let responseData = response;
|
|
1357
|
+
if (responseHeaders) {
|
|
1358
|
+
responseData = response[0];
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1163
1361
|
const {
|
|
1164
1362
|
error: res_error,
|
|
1165
|
-
} =
|
|
1166
|
-
|
|
1167
|
-
allowUnknown: false
|
|
1168
|
-
|
|
1363
|
+
} = ConfigurationApplicationModel.SuccessMessageResponse().validate(
|
|
1364
|
+
responseData,
|
|
1365
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1366
|
+
);
|
|
1169
1367
|
|
|
1170
1368
|
if (res_error) {
|
|
1171
1369
|
Logger({
|
|
1172
1370
|
level: "WARN",
|
|
1173
|
-
message:
|
|
1371
|
+
message: `Response Validation Warnnings for application > Configuration > removeOrderingStoreCookie \n ${res_error}`,
|
|
1174
1372
|
});
|
|
1175
|
-
Logger({ level: "WARN", message: res_error });
|
|
1176
1373
|
}
|
|
1177
1374
|
|
|
1178
1375
|
return response;
|