@gofynd/fdk-client-javascript 0.1.37 → 1.0.1
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 +24 -0
- package/application.d.ts +2 -1
- package/application.js +2 -1
- package/documentation/application/CART.md +315 -289
- package/documentation/application/CATALOG.md +438 -415
- package/documentation/application/FILESTORAGE.md +2 -0
- package/documentation/application/LEAD.md +18 -18
- package/documentation/application/LOGISTIC.md +45 -45
- package/documentation/application/ORDER.md +277 -277
- package/documentation/application/PAYMENT.md +251 -251
- package/documentation/application/POSCART.md +318 -292
- package/documentation/application/REWARDS.md +1 -0
- package/documentation/application/USER.md +19 -14
- package/documentation/platform/CART.md +465 -462
- package/documentation/platform/CATALOG.md +2792 -2711
- package/documentation/platform/COMPANYPROFILE.md +200 -362
- package/documentation/platform/DISCOUNT.md +86 -0
- package/documentation/platform/FILESTORAGE.md +2 -0
- package/documentation/platform/LEAD.md +60 -60
- package/documentation/platform/ORDER.md +1451 -1654
- package/documentation/platform/PAYMENT.md +94 -94
- package/documentation/platform/REWARDS.md +145 -0
- package/documentation/platform/USER.md +24 -14
- package/index.d.ts +4 -1
- package/index.js +13 -4
- package/package.json +9 -9
- package/platform.d.ts +2 -1
- package/platform.js +3 -2
- package/public.d.ts +1 -0
- package/public.js +3 -2
- package/sdk/application/ApplicationAPIClient.js +3 -1
- package/sdk/application/ApplicationClient.d.ts +16 -16
- package/sdk/application/ApplicationClient.js +32 -16
- package/sdk/application/ApplicationConfig.js +3 -2
- package/sdk/application/ApplicationModels.d.ts +0 -832
- package/sdk/application/ApplicationModels.js +3 -10574
- package/sdk/application/{client → Cart}/CartApplicationClient.d.ts +9 -3
- package/sdk/application/{client → Cart}/CartApplicationClient.js +316 -8
- package/sdk/application/Cart/CartApplicationModel.d.ts +81 -0
- package/sdk/application/Cart/CartApplicationModel.js +1136 -0
- package/sdk/application/{models/CartValidator.js → Cart/CartApplicationValidator.js} +17 -12
- package/sdk/application/{client → Catalog}/CatalogApplicationClient.d.ts +8 -5
- package/sdk/application/{client → Catalog}/CatalogApplicationClient.js +389 -8
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +117 -0
- package/sdk/application/Catalog/CatalogApplicationModel.js +1606 -0
- package/sdk/application/{models/CatalogValidator.js → Catalog/CatalogApplicationValidator.js} +4 -1
- package/sdk/application/{client → Common}/CommonApplicationClient.js +24 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +20 -0
- package/sdk/application/Common/CommonApplicationModel.js +228 -0
- package/sdk/{platform/models/CommonValidator.js → application/Common/CommonApplicationValidator.js} +3 -1
- package/sdk/application/{client → Communication}/CommunicationApplicationClient.js +43 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +15 -0
- package/sdk/application/Communication/CommunicationApplicationModel.js +144 -0
- package/sdk/application/{models/CommunicationValidator.js → Communication/CommunicationApplicationValidator.js} +5 -3
- package/sdk/application/{client → Configuration}/ConfigurationApplicationClient.js +202 -2
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +111 -0
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1182 -0
- package/sdk/application/{models/ConfigurationValidator.js → Configuration/ConfigurationApplicationValidator.js} +4 -2
- package/sdk/application/{client → Content}/ContentApplicationClient.js +217 -2
- package/sdk/application/Content/ContentApplicationModel.d.ts +105 -0
- package/sdk/application/Content/ContentApplicationModel.js +1349 -0
- package/sdk/application/{models/ContentValidator.js → Content/ContentApplicationValidator.js} +3 -1
- package/sdk/application/{client → FileStorage}/FileStorageApplicationClient.js +35 -2
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +21 -0
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +244 -0
- package/sdk/application/{models/FileStorageValidator.js → FileStorage/FileStorageApplicationValidator.js} +6 -4
- package/sdk/application/{client → Lead}/LeadApplicationClient.js +83 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +55 -0
- package/sdk/application/Lead/LeadApplicationModel.js +690 -0
- package/sdk/application/{models/LeadValidator.js → Lead/LeadApplicationValidator.js} +6 -4
- package/sdk/application/{client → Logistic}/LogisticApplicationClient.js +46 -2
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +26 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +286 -0
- package/sdk/application/{models/LogisticValidator.js → Logistic/LogisticApplicationValidator.js} +5 -3
- package/sdk/application/{client → Order}/OrderApplicationClient.js +148 -2
- package/sdk/application/Order/OrderApplicationModel.d.ts +67 -0
- package/sdk/application/Order/OrderApplicationModel.js +872 -0
- package/sdk/application/{models/OrderValidator.js → Order/OrderApplicationValidator.js} +5 -3
- package/sdk/application/{client → Payment}/PaymentApplicationClient.js +530 -2
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +96 -0
- package/sdk/application/Payment/PaymentApplicationModel.js +1318 -0
- package/sdk/application/{models/PaymentValidator.js → Payment/PaymentApplicationValidator.js} +25 -23
- package/sdk/application/{client → PosCart}/PosCartApplicationClient.d.ts +9 -3
- package/sdk/application/{client → PosCart}/PosCartApplicationClient.js +343 -8
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +79 -0
- package/sdk/application/PosCart/PosCartApplicationModel.js +1132 -0
- package/sdk/application/{models/PosCartValidator.js → PosCart/PosCartApplicationValidator.js} +18 -13
- package/sdk/application/{client → Rewards}/RewardsApplicationClient.js +83 -2
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +23 -0
- package/sdk/application/Rewards/RewardsApplicationModel.js +276 -0
- package/sdk/application/{models/RewardsValidator.js → Rewards/RewardsApplicationValidator.js} +6 -4
- package/sdk/application/{client → Share}/ShareApplicationClient.js +89 -2
- package/sdk/application/Share/ShareApplicationModel.d.ts +16 -0
- package/sdk/application/Share/ShareApplicationModel.js +178 -0
- package/sdk/application/{models/ShareValidator.js → Share/ShareApplicationValidator.js} +4 -2
- package/sdk/application/{client → Theme}/ThemeApplicationClient.js +46 -2
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +49 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +486 -0
- package/sdk/application/{models/ThemeValidator.js → Theme/ThemeApplicationValidator.js} +3 -1
- package/sdk/application/{client → User}/UserApplicationClient.js +407 -2
- package/sdk/application/User/UserApplicationModel.d.ts +95 -0
- package/sdk/application/User/UserApplicationModel.js +998 -0
- package/sdk/application/{models/UserValidator.js → User/UserApplicationValidator.js} +31 -29
- package/sdk/application/index.d.ts +18 -0
- package/sdk/application/index.js +33 -0
- package/sdk/common/AxiosHelper.js +23 -10
- package/sdk/common/Logger.d.ts +2 -0
- package/sdk/common/Logger.js +6 -0
- package/sdk/common/curlHelper.d.ts +2 -0
- package/sdk/common/curlHelper.js +95 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +101 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +399 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +11 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +56 -0
- package/sdk/platform/{client → Analytics}/AnalyticsPlatformClient.js +60 -2
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +23 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +252 -0
- package/sdk/platform/{models/AnalyticsValidator.js → Analytics/AnalyticsPlatformValidator.js} +5 -4
- package/sdk/platform/{client → AuditTrail}/AuditTrailPlatformClient.js +48 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +18 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +144 -0
- package/sdk/platform/{models/AuditTrailValidator.js → AuditTrail/AuditTrailPlatformValidator.js} +3 -2
- package/sdk/platform/{client → Billing}/BillingPlatformClient.js +162 -2
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +65 -0
- package/sdk/platform/Billing/BillingPlatformModel.js +906 -0
- package/sdk/platform/{models/BillingValidator.js → Billing/BillingPlatformValidator.js} +6 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +293 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1001 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +20 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +138 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +104 -0
- package/sdk/platform/Cart/CartPlatformModel.js +1516 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +856 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2927 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +56 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +389 -0
- package/sdk/platform/{client → Catalog}/CatalogPlatformClient.js +1402 -349
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +317 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4702 -0
- package/sdk/platform/{models/CatalogValidator.js → Catalog/CatalogPlatformValidator.js} +92 -91
- package/sdk/platform/{client → Common}/CommonPlatformClient.js +28 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +20 -0
- package/sdk/platform/Common/CommonPlatformModel.js +228 -0
- package/sdk/{application/models/CommonValidator.js → platform/Common/CommonPlatformValidator.js} +2 -1
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +611 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2243 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +43 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +277 -0
- package/sdk/platform/{client → Communication}/CommunicationPlatformClient.js +17 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +102 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1312 -0
- package/sdk/platform/{models/CommunicationValidator.js → Communication/CommunicationPlatformValidator.js} +2 -1
- package/sdk/platform/{client → CompanyProfile}/CompanyProfilePlatformClient.d.ts +0 -9
- package/sdk/platform/{client → CompanyProfile}/CompanyProfilePlatformClient.js +176 -28
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +44 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +706 -0
- package/sdk/platform/{models/CompanyProfileValidator.d.ts → CompanyProfile/CompanyProfilePlatformValidator.d.ts} +0 -1
- package/sdk/platform/{models/CompanyProfileValidator.js → CompanyProfile/CompanyProfilePlatformValidator.js} +9 -14
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +309 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1322 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +31 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +164 -0
- package/sdk/platform/{client → Configuration}/ConfigurationPlatformClient.js +284 -2
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +185 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2072 -0
- package/sdk/platform/{models/ConfigurationValidator.js → Configuration/ConfigurationPlatformValidator.js} +9 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +781 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3074 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +71 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +422 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +105 -0
- package/sdk/platform/Content/ContentPlatformModel.js +1349 -0
- package/sdk/platform/{client → Discount}/DiscountPlatformClient.d.ts +11 -0
- package/sdk/platform/{client → Discount}/DiscountPlatformClient.js +187 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +15 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +176 -0
- package/sdk/platform/{models/DiscountValidator.d.ts → Discount/DiscountPlatformValidator.d.ts} +1 -0
- package/sdk/platform/{models/DiscountValidator.js → Discount/DiscountPlatformValidator.js} +13 -5
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +114 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +301 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +38 -0
- package/sdk/platform/{client → FileStorage}/FileStoragePlatformClient.js +78 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +21 -0
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +244 -0
- package/sdk/platform/{models/FileStorageValidator.js → FileStorage/FileStoragePlatformValidator.js} +6 -5
- package/sdk/platform/{client → Inventory}/InventoryPlatformClient.js +163 -2
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +62 -0
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1178 -0
- package/sdk/platform/{models/InventoryValidator.js → Inventory/InventoryPlatformValidator.js} +5 -4
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +138 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +559 -0
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +16 -0
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +90 -0
- package/sdk/platform/{client → Lead}/LeadPlatformClient.js +142 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +55 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +690 -0
- package/sdk/platform/{models/LeadValidator.js → Lead/LeadPlatformValidator.js} +7 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +59 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +207 -0
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +6 -0
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +37 -0
- package/sdk/platform/{client → Order}/OrderPlatformClient.d.ts +24 -55
- package/sdk/platform/{client → Order}/OrderPlatformClient.js +693 -146
- package/sdk/platform/Order/OrderPlatformModel.d.ts +222 -0
- package/sdk/platform/Order/OrderPlatformModel.js +3466 -0
- package/sdk/platform/{models/OrderValidator.d.ts → Order/OrderPlatformValidator.d.ts} +2 -3
- package/sdk/platform/{models/OrderValidator.js → Order/OrderPlatformValidator.js} +32 -48
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +30 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +100 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +7 -0
- package/sdk/platform/Partner/PartnerPlatformModel.js +54 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +108 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +498 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +14 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +73 -0
- package/sdk/platform/{client → Payment}/PaymentPlatformClient.js +141 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +44 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +552 -0
- package/sdk/platform/{models/PaymentValidator.js → Payment/PaymentPlatformValidator.js} +6 -5
- package/sdk/platform/PlatformAPIClient.js +2 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +2824 -18486
- package/sdk/platform/PlatformApplicationClient.js +3772 -13928
- package/sdk/platform/PlatformClient.d.ts +2824 -2881
- package/sdk/platform/PlatformClient.js +3710 -3145
- package/sdk/platform/PlatformConfig.js +2 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +150 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +597 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +16 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +24 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +294 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +72 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +235 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +35 -0
- package/sdk/platform/Share/SharePlatformModel.d.ts +15 -0
- package/sdk/platform/Share/SharePlatformModel.js +170 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +238 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +997 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +155 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +49 -0
- package/sdk/platform/Theme/ThemePlatformModel.js +486 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +121 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +506 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +79 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +95 -0
- package/sdk/platform/User/UserPlatformModel.js +998 -0
- package/sdk/platform/{client → Webhook}/WebhookPlatformClient.js +92 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +17 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +208 -0
- package/sdk/platform/{models/WebhookValidator.js → Webhook/WebhookPlatformValidator.js} +4 -3
- package/sdk/platform/index.d.ts +24 -0
- package/sdk/platform/index.js +45 -0
- package/sdk/public/{client → Configuration}/ConfigurationPublicClient.js +26 -1
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +20 -0
- package/sdk/public/Configuration/ConfigurationPublicModel.js +230 -0
- package/sdk/public/{models/ConfigurationValidator.js → Configuration/ConfigurationPublicValidator.js} +3 -1
- package/sdk/public/{client → Inventory}/InventoryPublicClient.js +76 -1
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +22 -0
- package/sdk/public/Inventory/InventoryPublicModel.js +334 -0
- package/sdk/public/{models/InventoryValidator.js → Inventory/InventoryPublicValidator.js} +4 -2
- package/sdk/public/PublicClient.d.ts +3 -3
- package/sdk/public/PublicClient.js +8 -3
- package/sdk/public/{client → Webhook}/WebhookPublicClient.js +30 -1
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +17 -0
- package/sdk/public/Webhook/WebhookPublicModel.js +208 -0
- package/sdk/public/{models/WebhookValidator.js → Webhook/WebhookPublicValidator.js} +4 -2
- package/sdk/public/index.d.ts +5 -0
- package/sdk/public/index.js +7 -0
- package/sdk/platform/PlatformApplicationModels.d.ts +0 -328
- package/sdk/platform/PlatformApplicationModels.js +0 -22658
- package/sdk/platform/PlatformModels.d.ts +0 -1477
- package/sdk/platform/PlatformModels.js +0 -20646
- package/sdk/platform/models/CartValidator.d.ts +0 -0
- package/sdk/platform/models/CartValidator.js +0 -0
- package/sdk/platform/models/ContentValidator.d.ts +0 -0
- package/sdk/platform/models/ContentValidator.js +0 -0
- package/sdk/platform/models/PartnerValidator.d.ts +0 -0
- package/sdk/platform/models/PartnerValidator.js +0 -0
- package/sdk/platform/models/RewardsValidator.d.ts +0 -0
- package/sdk/platform/models/RewardsValidator.js +0 -0
- package/sdk/platform/models/ShareValidator.d.ts +0 -0
- package/sdk/platform/models/ShareValidator.js +0 -0
- package/sdk/platform/models/ThemeValidator.d.ts +0 -0
- package/sdk/platform/models/ThemeValidator.js +0 -0
- package/sdk/platform/models/UserValidator.d.ts +0 -0
- package/sdk/platform/models/UserValidator.js +0 -0
- package/sdk/public/PublicModels.d.ts +0 -50
- package/sdk/public/PublicModels.js +0 -712
- package/sdk/application/{models/CartValidator.d.ts → Cart/CartApplicationValidator.d.ts} +0 -0
- package/sdk/application/{models/CatalogValidator.d.ts → Catalog/CatalogApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Common}/CommonApplicationClient.d.ts +0 -0
- package/sdk/application/{models/CommonValidator.d.ts → Common/CommonApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Communication}/CommunicationApplicationClient.d.ts +0 -0
- package/sdk/application/{models/CommunicationValidator.d.ts → Communication/CommunicationApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Configuration}/ConfigurationApplicationClient.d.ts +0 -0
- package/sdk/application/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Content}/ContentApplicationClient.d.ts +0 -0
- package/sdk/application/{models/ContentValidator.d.ts → Content/ContentApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → FileStorage}/FileStorageApplicationClient.d.ts +0 -0
- package/sdk/application/{models/FileStorageValidator.d.ts → FileStorage/FileStorageApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Lead}/LeadApplicationClient.d.ts +0 -0
- package/sdk/application/{models/LeadValidator.d.ts → Lead/LeadApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Logistic}/LogisticApplicationClient.d.ts +0 -0
- package/sdk/application/{models/LogisticValidator.d.ts → Logistic/LogisticApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Order}/OrderApplicationClient.d.ts +0 -0
- package/sdk/application/{models/OrderValidator.d.ts → Order/OrderApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Payment}/PaymentApplicationClient.d.ts +0 -0
- package/sdk/application/{models/PaymentValidator.d.ts → Payment/PaymentApplicationValidator.d.ts} +0 -0
- package/sdk/application/{models/PosCartValidator.d.ts → PosCart/PosCartApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Rewards}/RewardsApplicationClient.d.ts +0 -0
- package/sdk/application/{models/RewardsValidator.d.ts → Rewards/RewardsApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Share}/ShareApplicationClient.d.ts +0 -0
- package/sdk/application/{models/ShareValidator.d.ts → Share/ShareApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Theme}/ThemeApplicationClient.d.ts +0 -0
- package/sdk/application/{models/ThemeValidator.d.ts → Theme/ThemeApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → User}/UserApplicationClient.d.ts +0 -0
- package/sdk/application/{models/UserValidator.d.ts → User/UserApplicationValidator.d.ts} +0 -0
- package/sdk/platform/{client → Analytics}/AnalyticsPlatformClient.d.ts +0 -0
- package/sdk/platform/{models/AnalyticsValidator.d.ts → Analytics/AnalyticsPlatformValidator.d.ts} +0 -0
- package/sdk/platform/{client → AuditTrail}/AuditTrailPlatformClient.d.ts +0 -0
- package/sdk/platform/{models/AuditTrailValidator.d.ts → AuditTrail/AuditTrailPlatformValidator.d.ts} +0 -0
- package/sdk/platform/{client → Billing}/BillingPlatformClient.d.ts +0 -0
- package/sdk/platform/{models/BillingValidator.d.ts → Billing/BillingPlatformValidator.d.ts} +0 -0
- package/sdk/platform/{client → Catalog}/CatalogPlatformClient.d.ts +149 -149
- package/sdk/platform/{models/CatalogValidator.d.ts → Catalog/CatalogPlatformValidator.d.ts} +21 -21
- /package/sdk/platform/{client → Common}/CommonPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/CommonValidator.d.ts → Common/CommonPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Communication}/CommunicationPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/CommunicationValidator.d.ts → Communication/CommunicationPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Configuration}/ConfigurationPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → FileStorage}/FileStoragePlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/FileStorageValidator.d.ts → FileStorage/FileStoragePlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Inventory}/InventoryPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/InventoryValidator.d.ts → Inventory/InventoryPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Lead}/LeadPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/LeadValidator.d.ts → Lead/LeadPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Payment}/PaymentPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/PaymentValidator.d.ts → Payment/PaymentPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Webhook}/WebhookPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/WebhookValidator.d.ts → Webhook/WebhookPlatformValidator.d.ts} +0 -0
- /package/sdk/public/{client → Configuration}/ConfigurationPublicClient.d.ts +0 -0
- /package/sdk/public/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationPublicValidator.d.ts} +0 -0
- /package/sdk/public/{client → Inventory}/InventoryPublicClient.d.ts +0 -0
- /package/sdk/public/{models/InventoryValidator.d.ts → Inventory/InventoryPublicValidator.d.ts} +0 -0
- /package/sdk/public/{client → Webhook}/WebhookPublicClient.d.ts +0 -0
- /package/sdk/public/{models/WebhookValidator.d.ts → Webhook/WebhookPublicValidator.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const APIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const Paginator = require("../../common/Paginator");
|
|
3
2
|
const constructUrl = require("../constructUrl");
|
|
3
|
+
const Paginator = require("../../common/Paginator");
|
|
4
4
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
5
|
-
const CatalogValidator = require("
|
|
5
|
+
const CatalogValidator = require("./CatalogApplicationValidator");
|
|
6
6
|
|
|
7
7
|
class Catalog {
|
|
8
8
|
constructor(_conf) {
|
|
@@ -55,9 +55,9 @@ class Catalog {
|
|
|
55
55
|
getProductBundlesBySlug:
|
|
56
56
|
"/service/application/catalog/v1.0/product-grouping/",
|
|
57
57
|
getProductPriceBySlug:
|
|
58
|
-
"/service/application/catalog/
|
|
58
|
+
"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/price/",
|
|
59
59
|
getProductSellersBySlug:
|
|
60
|
-
"/service/application/catalog/
|
|
60
|
+
"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/sellers/",
|
|
61
61
|
};
|
|
62
62
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
63
63
|
(urls, [method, relativeUrl]) => {
|
|
@@ -92,6 +92,19 @@ class Catalog {
|
|
|
92
92
|
if (error) {
|
|
93
93
|
return Promise.reject(new FDKClientValidationError(error));
|
|
94
94
|
}
|
|
95
|
+
|
|
96
|
+
// Showing warrnings if extra unknown parameters are found
|
|
97
|
+
const {
|
|
98
|
+
error: warrning,
|
|
99
|
+
} = CatalogValidator.getProductDetailBySlug().validate(
|
|
100
|
+
{ slug },
|
|
101
|
+
{ abortEarly: false, allowUnknown: false }
|
|
102
|
+
);
|
|
103
|
+
if (warrning) {
|
|
104
|
+
console.log("Parameter Validation warrnings for getProductDetailBySlug");
|
|
105
|
+
console.log(warrning);
|
|
106
|
+
}
|
|
107
|
+
|
|
95
108
|
const query_params = {};
|
|
96
109
|
|
|
97
110
|
const xHeaders = {};
|
|
@@ -128,6 +141,19 @@ class Catalog {
|
|
|
128
141
|
if (error) {
|
|
129
142
|
return Promise.reject(new FDKClientValidationError(error));
|
|
130
143
|
}
|
|
144
|
+
|
|
145
|
+
// Showing warrnings if extra unknown parameters are found
|
|
146
|
+
const {
|
|
147
|
+
error: warrning,
|
|
148
|
+
} = CatalogValidator.getProductSizesBySlug().validate(
|
|
149
|
+
{ slug, storeId },
|
|
150
|
+
{ abortEarly: false, allowUnknown: false }
|
|
151
|
+
);
|
|
152
|
+
if (warrning) {
|
|
153
|
+
console.log("Parameter Validation warrnings for getProductSizesBySlug");
|
|
154
|
+
console.log(warrning);
|
|
155
|
+
}
|
|
156
|
+
|
|
131
157
|
const query_params = {};
|
|
132
158
|
query_params["store_id"] = storeId;
|
|
133
159
|
|
|
@@ -163,6 +189,21 @@ class Catalog {
|
|
|
163
189
|
if (error) {
|
|
164
190
|
return Promise.reject(new FDKClientValidationError(error));
|
|
165
191
|
}
|
|
192
|
+
|
|
193
|
+
// Showing warrnings if extra unknown parameters are found
|
|
194
|
+
const {
|
|
195
|
+
error: warrning,
|
|
196
|
+
} = CatalogValidator.getProductComparisonBySlugs().validate(
|
|
197
|
+
{ slug },
|
|
198
|
+
{ abortEarly: false, allowUnknown: false }
|
|
199
|
+
);
|
|
200
|
+
if (warrning) {
|
|
201
|
+
console.log(
|
|
202
|
+
"Parameter Validation warrnings for getProductComparisonBySlugs"
|
|
203
|
+
);
|
|
204
|
+
console.log(warrning);
|
|
205
|
+
}
|
|
206
|
+
|
|
166
207
|
const query_params = {};
|
|
167
208
|
query_params["slug"] = slug;
|
|
168
209
|
|
|
@@ -200,6 +241,21 @@ class Catalog {
|
|
|
200
241
|
if (error) {
|
|
201
242
|
return Promise.reject(new FDKClientValidationError(error));
|
|
202
243
|
}
|
|
244
|
+
|
|
245
|
+
// Showing warrnings if extra unknown parameters are found
|
|
246
|
+
const {
|
|
247
|
+
error: warrning,
|
|
248
|
+
} = CatalogValidator.getSimilarComparisonProductBySlug().validate(
|
|
249
|
+
{ slug },
|
|
250
|
+
{ abortEarly: false, allowUnknown: false }
|
|
251
|
+
);
|
|
252
|
+
if (warrning) {
|
|
253
|
+
console.log(
|
|
254
|
+
"Parameter Validation warrnings for getSimilarComparisonProductBySlug"
|
|
255
|
+
);
|
|
256
|
+
console.log(warrning);
|
|
257
|
+
}
|
|
258
|
+
|
|
203
259
|
const query_params = {};
|
|
204
260
|
|
|
205
261
|
const xHeaders = {};
|
|
@@ -236,6 +292,21 @@ class Catalog {
|
|
|
236
292
|
if (error) {
|
|
237
293
|
return Promise.reject(new FDKClientValidationError(error));
|
|
238
294
|
}
|
|
295
|
+
|
|
296
|
+
// Showing warrnings if extra unknown parameters are found
|
|
297
|
+
const {
|
|
298
|
+
error: warrning,
|
|
299
|
+
} = CatalogValidator.getComparedFrequentlyProductBySlug().validate(
|
|
300
|
+
{ slug },
|
|
301
|
+
{ abortEarly: false, allowUnknown: false }
|
|
302
|
+
);
|
|
303
|
+
if (warrning) {
|
|
304
|
+
console.log(
|
|
305
|
+
"Parameter Validation warrnings for getComparedFrequentlyProductBySlug"
|
|
306
|
+
);
|
|
307
|
+
console.log(warrning);
|
|
308
|
+
}
|
|
309
|
+
|
|
239
310
|
const query_params = {};
|
|
240
311
|
|
|
241
312
|
const xHeaders = {};
|
|
@@ -270,6 +341,21 @@ class Catalog {
|
|
|
270
341
|
if (error) {
|
|
271
342
|
return Promise.reject(new FDKClientValidationError(error));
|
|
272
343
|
}
|
|
344
|
+
|
|
345
|
+
// Showing warrnings if extra unknown parameters are found
|
|
346
|
+
const {
|
|
347
|
+
error: warrning,
|
|
348
|
+
} = CatalogValidator.getProductVariantsBySlug().validate(
|
|
349
|
+
{ slug },
|
|
350
|
+
{ abortEarly: false, allowUnknown: false }
|
|
351
|
+
);
|
|
352
|
+
if (warrning) {
|
|
353
|
+
console.log(
|
|
354
|
+
"Parameter Validation warrnings for getProductVariantsBySlug"
|
|
355
|
+
);
|
|
356
|
+
console.log(warrning);
|
|
357
|
+
}
|
|
358
|
+
|
|
273
359
|
const query_params = {};
|
|
274
360
|
|
|
275
361
|
const xHeaders = {};
|
|
@@ -310,6 +396,19 @@ class Catalog {
|
|
|
310
396
|
if (error) {
|
|
311
397
|
return Promise.reject(new FDKClientValidationError(error));
|
|
312
398
|
}
|
|
399
|
+
|
|
400
|
+
// Showing warrnings if extra unknown parameters are found
|
|
401
|
+
const {
|
|
402
|
+
error: warrning,
|
|
403
|
+
} = CatalogValidator.getProductStockByIds().validate(
|
|
404
|
+
{ itemId, alu, skuCode, ean, upc },
|
|
405
|
+
{ abortEarly: false, allowUnknown: false }
|
|
406
|
+
);
|
|
407
|
+
if (warrning) {
|
|
408
|
+
console.log("Parameter Validation warrnings for getProductStockByIds");
|
|
409
|
+
console.log(warrning);
|
|
410
|
+
}
|
|
411
|
+
|
|
313
412
|
const query_params = {};
|
|
314
413
|
query_params["item_id"] = itemId;
|
|
315
414
|
query_params["alu"] = alu;
|
|
@@ -349,6 +448,21 @@ class Catalog {
|
|
|
349
448
|
if (error) {
|
|
350
449
|
return Promise.reject(new FDKClientValidationError(error));
|
|
351
450
|
}
|
|
451
|
+
|
|
452
|
+
// Showing warrnings if extra unknown parameters are found
|
|
453
|
+
const {
|
|
454
|
+
error: warrning,
|
|
455
|
+
} = CatalogValidator.getProductStockForTimeByIds().validate(
|
|
456
|
+
{ timestamp, pageSize, pageId },
|
|
457
|
+
{ abortEarly: false, allowUnknown: false }
|
|
458
|
+
);
|
|
459
|
+
if (warrning) {
|
|
460
|
+
console.log(
|
|
461
|
+
"Parameter Validation warrnings for getProductStockForTimeByIds"
|
|
462
|
+
);
|
|
463
|
+
console.log(warrning);
|
|
464
|
+
}
|
|
465
|
+
|
|
352
466
|
const query_params = {};
|
|
353
467
|
query_params["timestamp"] = timestamp;
|
|
354
468
|
query_params["page_size"] = pageSize;
|
|
@@ -436,6 +550,17 @@ class Catalog {
|
|
|
436
550
|
if (error) {
|
|
437
551
|
return Promise.reject(new FDKClientValidationError(error));
|
|
438
552
|
}
|
|
553
|
+
|
|
554
|
+
// Showing warrnings if extra unknown parameters are found
|
|
555
|
+
const { error: warrning } = CatalogValidator.getProducts().validate(
|
|
556
|
+
{ q, f, filters, sortOn, pageId, pageSize, pageNo, pageType },
|
|
557
|
+
{ abortEarly: false, allowUnknown: false }
|
|
558
|
+
);
|
|
559
|
+
if (warrning) {
|
|
560
|
+
console.log("Parameter Validation warrnings for getProducts");
|
|
561
|
+
console.log(warrning);
|
|
562
|
+
}
|
|
563
|
+
|
|
439
564
|
const query_params = {};
|
|
440
565
|
query_params["q"] = q;
|
|
441
566
|
query_params["f"] = f;
|
|
@@ -525,6 +650,17 @@ class Catalog {
|
|
|
525
650
|
if (error) {
|
|
526
651
|
return Promise.reject(new FDKClientValidationError(error));
|
|
527
652
|
}
|
|
653
|
+
|
|
654
|
+
// Showing warrnings if extra unknown parameters are found
|
|
655
|
+
const { error: warrning } = CatalogValidator.getBrands().validate(
|
|
656
|
+
{ department, pageNo, pageSize },
|
|
657
|
+
{ abortEarly: false, allowUnknown: false }
|
|
658
|
+
);
|
|
659
|
+
if (warrning) {
|
|
660
|
+
console.log("Parameter Validation warrnings for getBrands");
|
|
661
|
+
console.log(warrning);
|
|
662
|
+
}
|
|
663
|
+
|
|
528
664
|
const query_params = {};
|
|
529
665
|
query_params["department"] = department;
|
|
530
666
|
query_params["page_no"] = pageNo;
|
|
@@ -593,6 +729,19 @@ class Catalog {
|
|
|
593
729
|
if (error) {
|
|
594
730
|
return Promise.reject(new FDKClientValidationError(error));
|
|
595
731
|
}
|
|
732
|
+
|
|
733
|
+
// Showing warrnings if extra unknown parameters are found
|
|
734
|
+
const {
|
|
735
|
+
error: warrning,
|
|
736
|
+
} = CatalogValidator.getBrandDetailBySlug().validate(
|
|
737
|
+
{ slug },
|
|
738
|
+
{ abortEarly: false, allowUnknown: false }
|
|
739
|
+
);
|
|
740
|
+
if (warrning) {
|
|
741
|
+
console.log("Parameter Validation warrnings for getBrandDetailBySlug");
|
|
742
|
+
console.log(warrning);
|
|
743
|
+
}
|
|
744
|
+
|
|
596
745
|
const query_params = {};
|
|
597
746
|
|
|
598
747
|
const xHeaders = {};
|
|
@@ -628,6 +777,17 @@ class Catalog {
|
|
|
628
777
|
if (error) {
|
|
629
778
|
return Promise.reject(new FDKClientValidationError(error));
|
|
630
779
|
}
|
|
780
|
+
|
|
781
|
+
// Showing warrnings if extra unknown parameters are found
|
|
782
|
+
const { error: warrning } = CatalogValidator.getCategories().validate(
|
|
783
|
+
{ department },
|
|
784
|
+
{ abortEarly: false, allowUnknown: false }
|
|
785
|
+
);
|
|
786
|
+
if (warrning) {
|
|
787
|
+
console.log("Parameter Validation warrnings for getCategories");
|
|
788
|
+
console.log(warrning);
|
|
789
|
+
}
|
|
790
|
+
|
|
631
791
|
const query_params = {};
|
|
632
792
|
query_params["department"] = department;
|
|
633
793
|
|
|
@@ -663,6 +823,19 @@ class Catalog {
|
|
|
663
823
|
if (error) {
|
|
664
824
|
return Promise.reject(new FDKClientValidationError(error));
|
|
665
825
|
}
|
|
826
|
+
|
|
827
|
+
// Showing warrnings if extra unknown parameters are found
|
|
828
|
+
const {
|
|
829
|
+
error: warrning,
|
|
830
|
+
} = CatalogValidator.getCategoryDetailBySlug().validate(
|
|
831
|
+
{ slug },
|
|
832
|
+
{ abortEarly: false, allowUnknown: false }
|
|
833
|
+
);
|
|
834
|
+
if (warrning) {
|
|
835
|
+
console.log("Parameter Validation warrnings for getCategoryDetailBySlug");
|
|
836
|
+
console.log(warrning);
|
|
837
|
+
}
|
|
838
|
+
|
|
666
839
|
const query_params = {};
|
|
667
840
|
|
|
668
841
|
const xHeaders = {};
|
|
@@ -699,6 +872,17 @@ class Catalog {
|
|
|
699
872
|
if (error) {
|
|
700
873
|
return Promise.reject(new FDKClientValidationError(error));
|
|
701
874
|
}
|
|
875
|
+
|
|
876
|
+
// Showing warrnings if extra unknown parameters are found
|
|
877
|
+
const { error: warrning } = CatalogValidator.getHomeProducts().validate(
|
|
878
|
+
{ sortOn, pageId, pageSize },
|
|
879
|
+
{ abortEarly: false, allowUnknown: false }
|
|
880
|
+
);
|
|
881
|
+
if (warrning) {
|
|
882
|
+
console.log("Parameter Validation warrnings for getHomeProducts");
|
|
883
|
+
console.log(warrning);
|
|
884
|
+
}
|
|
885
|
+
|
|
702
886
|
const query_params = {};
|
|
703
887
|
query_params["sort_on"] = sortOn;
|
|
704
888
|
query_params["page_id"] = pageId;
|
|
@@ -763,6 +947,17 @@ class Catalog {
|
|
|
763
947
|
if (error) {
|
|
764
948
|
return Promise.reject(new FDKClientValidationError(error));
|
|
765
949
|
}
|
|
950
|
+
|
|
951
|
+
// Showing warrnings if extra unknown parameters are found
|
|
952
|
+
const { error: warrning } = CatalogValidator.getDepartments().validate(
|
|
953
|
+
{},
|
|
954
|
+
{ abortEarly: false, allowUnknown: false }
|
|
955
|
+
);
|
|
956
|
+
if (warrning) {
|
|
957
|
+
console.log("Parameter Validation warrnings for getDepartments");
|
|
958
|
+
console.log(warrning);
|
|
959
|
+
}
|
|
960
|
+
|
|
766
961
|
const query_params = {};
|
|
767
962
|
|
|
768
963
|
const xHeaders = {};
|
|
@@ -798,6 +993,17 @@ class Catalog {
|
|
|
798
993
|
if (error) {
|
|
799
994
|
return Promise.reject(new FDKClientValidationError(error));
|
|
800
995
|
}
|
|
996
|
+
|
|
997
|
+
// Showing warrnings if extra unknown parameters are found
|
|
998
|
+
const { error: warrning } = CatalogValidator.getSearchResults().validate(
|
|
999
|
+
{ q },
|
|
1000
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1001
|
+
);
|
|
1002
|
+
if (warrning) {
|
|
1003
|
+
console.log("Parameter Validation warrnings for getSearchResults");
|
|
1004
|
+
console.log(warrning);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
801
1007
|
const query_params = {};
|
|
802
1008
|
query_params["q"] = q;
|
|
803
1009
|
|
|
@@ -834,6 +1040,17 @@ class Catalog {
|
|
|
834
1040
|
if (error) {
|
|
835
1041
|
return Promise.reject(new FDKClientValidationError(error));
|
|
836
1042
|
}
|
|
1043
|
+
|
|
1044
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1045
|
+
const { error: warrning } = CatalogValidator.getCollections().validate(
|
|
1046
|
+
{ pageNo, pageSize, tag },
|
|
1047
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1048
|
+
);
|
|
1049
|
+
if (warrning) {
|
|
1050
|
+
console.log("Parameter Validation warrnings for getCollections");
|
|
1051
|
+
console.log(warrning);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
837
1054
|
const query_params = {};
|
|
838
1055
|
query_params["page_no"] = pageNo;
|
|
839
1056
|
query_params["page_size"] = pageSize;
|
|
@@ -917,6 +1134,21 @@ class Catalog {
|
|
|
917
1134
|
if (error) {
|
|
918
1135
|
return Promise.reject(new FDKClientValidationError(error));
|
|
919
1136
|
}
|
|
1137
|
+
|
|
1138
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1139
|
+
const {
|
|
1140
|
+
error: warrning,
|
|
1141
|
+
} = CatalogValidator.getCollectionItemsBySlug().validate(
|
|
1142
|
+
{ slug, f, filters, sortOn, pageId, pageSize },
|
|
1143
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1144
|
+
);
|
|
1145
|
+
if (warrning) {
|
|
1146
|
+
console.log(
|
|
1147
|
+
"Parameter Validation warrnings for getCollectionItemsBySlug"
|
|
1148
|
+
);
|
|
1149
|
+
console.log(warrning);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
920
1152
|
const query_params = {};
|
|
921
1153
|
query_params["f"] = f;
|
|
922
1154
|
query_params["filters"] = filters;
|
|
@@ -1004,6 +1236,21 @@ class Catalog {
|
|
|
1004
1236
|
if (error) {
|
|
1005
1237
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1006
1238
|
}
|
|
1239
|
+
|
|
1240
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1241
|
+
const {
|
|
1242
|
+
error: warrning,
|
|
1243
|
+
} = CatalogValidator.getCollectionDetailBySlug().validate(
|
|
1244
|
+
{ slug },
|
|
1245
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1246
|
+
);
|
|
1247
|
+
if (warrning) {
|
|
1248
|
+
console.log(
|
|
1249
|
+
"Parameter Validation warrnings for getCollectionDetailBySlug"
|
|
1250
|
+
);
|
|
1251
|
+
console.log(warrning);
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1007
1254
|
const query_params = {};
|
|
1008
1255
|
|
|
1009
1256
|
const xHeaders = {};
|
|
@@ -1039,6 +1286,17 @@ class Catalog {
|
|
|
1039
1286
|
if (error) {
|
|
1040
1287
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1041
1288
|
}
|
|
1289
|
+
|
|
1290
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1291
|
+
const { error: warrning } = CatalogValidator.getFollowedListing().validate(
|
|
1292
|
+
{ collectionType, pageId, pageSize },
|
|
1293
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1294
|
+
);
|
|
1295
|
+
if (warrning) {
|
|
1296
|
+
console.log("Parameter Validation warrnings for getFollowedListing");
|
|
1297
|
+
console.log(warrning);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1042
1300
|
const query_params = {};
|
|
1043
1301
|
query_params["page_id"] = pageId;
|
|
1044
1302
|
query_params["page_size"] = pageSize;
|
|
@@ -1104,6 +1362,17 @@ class Catalog {
|
|
|
1104
1362
|
if (error) {
|
|
1105
1363
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1106
1364
|
}
|
|
1365
|
+
|
|
1366
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1367
|
+
const { error: warrning } = CatalogValidator.followById().validate(
|
|
1368
|
+
{ collectionType, collectionId },
|
|
1369
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1370
|
+
);
|
|
1371
|
+
if (warrning) {
|
|
1372
|
+
console.log("Parameter Validation warrnings for followById");
|
|
1373
|
+
console.log(warrning);
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1107
1376
|
const query_params = {};
|
|
1108
1377
|
|
|
1109
1378
|
const xHeaders = {};
|
|
@@ -1138,6 +1407,17 @@ class Catalog {
|
|
|
1138
1407
|
if (error) {
|
|
1139
1408
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1140
1409
|
}
|
|
1410
|
+
|
|
1411
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1412
|
+
const { error: warrning } = CatalogValidator.unfollowById().validate(
|
|
1413
|
+
{ collectionType, collectionId },
|
|
1414
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1415
|
+
);
|
|
1416
|
+
if (warrning) {
|
|
1417
|
+
console.log("Parameter Validation warrnings for unfollowById");
|
|
1418
|
+
console.log(warrning);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1141
1421
|
const query_params = {};
|
|
1142
1422
|
|
|
1143
1423
|
const xHeaders = {};
|
|
@@ -1172,6 +1452,19 @@ class Catalog {
|
|
|
1172
1452
|
if (error) {
|
|
1173
1453
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1174
1454
|
}
|
|
1455
|
+
|
|
1456
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1457
|
+
const {
|
|
1458
|
+
error: warrning,
|
|
1459
|
+
} = CatalogValidator.getFollowerCountById().validate(
|
|
1460
|
+
{ collectionType, collectionId },
|
|
1461
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1462
|
+
);
|
|
1463
|
+
if (warrning) {
|
|
1464
|
+
console.log("Parameter Validation warrnings for getFollowerCountById");
|
|
1465
|
+
console.log(warrning);
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1175
1468
|
const query_params = {};
|
|
1176
1469
|
|
|
1177
1470
|
const xHeaders = {};
|
|
@@ -1205,6 +1498,17 @@ class Catalog {
|
|
|
1205
1498
|
if (error) {
|
|
1206
1499
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1207
1500
|
}
|
|
1501
|
+
|
|
1502
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1503
|
+
const { error: warrning } = CatalogValidator.getFollowIds().validate(
|
|
1504
|
+
{ collectionType },
|
|
1505
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1506
|
+
);
|
|
1507
|
+
if (warrning) {
|
|
1508
|
+
console.log("Parameter Validation warrnings for getFollowIds");
|
|
1509
|
+
console.log(warrning);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1208
1512
|
const query_params = {};
|
|
1209
1513
|
query_params["collection_type"] = collectionType;
|
|
1210
1514
|
|
|
@@ -1248,6 +1552,17 @@ class Catalog {
|
|
|
1248
1552
|
if (error) {
|
|
1249
1553
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1250
1554
|
}
|
|
1555
|
+
|
|
1556
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1557
|
+
const { error: warrning } = CatalogValidator.getStores().validate(
|
|
1558
|
+
{ pageNo, pageSize, q, city, range, latitude, longitude },
|
|
1559
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1560
|
+
);
|
|
1561
|
+
if (warrning) {
|
|
1562
|
+
console.log("Parameter Validation warrnings for getStores");
|
|
1563
|
+
console.log(warrning);
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1251
1566
|
const query_params = {};
|
|
1252
1567
|
query_params["page_no"] = pageNo;
|
|
1253
1568
|
query_params["page_size"] = pageSize;
|
|
@@ -1344,6 +1659,17 @@ class Catalog {
|
|
|
1344
1659
|
if (error) {
|
|
1345
1660
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1346
1661
|
}
|
|
1662
|
+
|
|
1663
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1664
|
+
const { error: warrning } = CatalogValidator.getInStockLocations().validate(
|
|
1665
|
+
{ pageNo, pageSize, q, city, range, latitude, longitude },
|
|
1666
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1667
|
+
);
|
|
1668
|
+
if (warrning) {
|
|
1669
|
+
console.log("Parameter Validation warrnings for getInStockLocations");
|
|
1670
|
+
console.log(warrning);
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1347
1673
|
const query_params = {};
|
|
1348
1674
|
query_params["page_no"] = pageNo;
|
|
1349
1675
|
query_params["page_size"] = pageSize;
|
|
@@ -1429,6 +1755,19 @@ class Catalog {
|
|
|
1429
1755
|
if (error) {
|
|
1430
1756
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1431
1757
|
}
|
|
1758
|
+
|
|
1759
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1760
|
+
const {
|
|
1761
|
+
error: warrning,
|
|
1762
|
+
} = CatalogValidator.getLocationDetailsById().validate(
|
|
1763
|
+
{ locationId },
|
|
1764
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1765
|
+
);
|
|
1766
|
+
if (warrning) {
|
|
1767
|
+
console.log("Parameter Validation warrnings for getLocationDetailsById");
|
|
1768
|
+
console.log(warrning);
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1432
1771
|
const query_params = {};
|
|
1433
1772
|
|
|
1434
1773
|
const xHeaders = {};
|
|
@@ -1462,6 +1801,19 @@ class Catalog {
|
|
|
1462
1801
|
if (error) {
|
|
1463
1802
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1464
1803
|
}
|
|
1804
|
+
|
|
1805
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1806
|
+
const {
|
|
1807
|
+
error: warrning,
|
|
1808
|
+
} = CatalogValidator.getProductBundlesBySlug().validate(
|
|
1809
|
+
{ slug, id },
|
|
1810
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1811
|
+
);
|
|
1812
|
+
if (warrning) {
|
|
1813
|
+
console.log("Parameter Validation warrnings for getProductBundlesBySlug");
|
|
1814
|
+
console.log(warrning);
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1465
1817
|
const query_params = {};
|
|
1466
1818
|
query_params["slug"] = slug;
|
|
1467
1819
|
query_params["id"] = id;
|
|
@@ -1493,21 +1845,37 @@ class Catalog {
|
|
|
1493
1845
|
* product, e.g. 1,2,3.
|
|
1494
1846
|
* @param {string} [arg.pincode] - The PIN Code of the area near which the
|
|
1495
1847
|
* selling locations should be searched, e.g. 400059.
|
|
1496
|
-
* @
|
|
1848
|
+
* @param {number} [arg.moq] - An Integer indication the Minimum Order
|
|
1849
|
+
* Quantity of a product, e.g. 100.
|
|
1850
|
+
* @returns {Promise<ProductSizePriceResponseV3>} - Success response
|
|
1497
1851
|
* @summary: Get the price of a product size at a PIN Code
|
|
1498
1852
|
* @description: Prices may vary for different sizes of a product. Use this API to retrieve the price of a product size at all the selling locations near to a PIN Code.
|
|
1499
1853
|
*/
|
|
1500
|
-
getProductPriceBySlug({ slug, size, storeId, pincode } = {}) {
|
|
1854
|
+
getProductPriceBySlug({ slug, size, storeId, pincode, moq } = {}) {
|
|
1501
1855
|
const { error } = CatalogValidator.getProductPriceBySlug().validate(
|
|
1502
|
-
{ slug, size, storeId, pincode },
|
|
1856
|
+
{ slug, size, storeId, pincode, moq },
|
|
1503
1857
|
{ abortEarly: false, allowUnknown: true }
|
|
1504
1858
|
);
|
|
1505
1859
|
if (error) {
|
|
1506
1860
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1507
1861
|
}
|
|
1862
|
+
|
|
1863
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1864
|
+
const {
|
|
1865
|
+
error: warrning,
|
|
1866
|
+
} = CatalogValidator.getProductPriceBySlug().validate(
|
|
1867
|
+
{ slug, size, storeId, pincode, moq },
|
|
1868
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1869
|
+
);
|
|
1870
|
+
if (warrning) {
|
|
1871
|
+
console.log("Parameter Validation warrnings for getProductPriceBySlug");
|
|
1872
|
+
console.log(warrning);
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1508
1875
|
const query_params = {};
|
|
1509
1876
|
query_params["store_id"] = storeId;
|
|
1510
1877
|
query_params["pincode"] = pincode;
|
|
1878
|
+
query_params["moq"] = moq;
|
|
1511
1879
|
|
|
1512
1880
|
const xHeaders = {};
|
|
1513
1881
|
|
|
@@ -1539,7 +1907,7 @@ class Catalog {
|
|
|
1539
1907
|
* @param {number} [arg.pageNo] - The page number to navigate through the
|
|
1540
1908
|
* given set of results.
|
|
1541
1909
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
1542
|
-
* @returns {Promise<
|
|
1910
|
+
* @returns {Promise<ProductSizeSellersResponseV3>} - Success response
|
|
1543
1911
|
* @summary: Get the sellers of a product size at a PIN Code
|
|
1544
1912
|
* @description: A product of a particular size may be sold by multiple sellers. Use this API to fetch the sellers having the stock of a particular size at a given PIN Code.
|
|
1545
1913
|
*/
|
|
@@ -1558,6 +1926,19 @@ class Catalog {
|
|
|
1558
1926
|
if (error) {
|
|
1559
1927
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1560
1928
|
}
|
|
1929
|
+
|
|
1930
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1931
|
+
const {
|
|
1932
|
+
error: warrning,
|
|
1933
|
+
} = CatalogValidator.getProductSellersBySlug().validate(
|
|
1934
|
+
{ slug, size, pincode, strategy, pageNo, pageSize },
|
|
1935
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1936
|
+
);
|
|
1937
|
+
if (warrning) {
|
|
1938
|
+
console.log("Parameter Validation warrnings for getProductSellersBySlug");
|
|
1939
|
+
console.log(warrning);
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1561
1942
|
const query_params = {};
|
|
1562
1943
|
query_params["pincode"] = pincode;
|
|
1563
1944
|
query_params["strategy"] = strategy;
|