@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,7 +1,7 @@
|
|
|
1
1
|
const Paginator = require("../../common/Paginator");
|
|
2
|
-
const PlatformAPIClient = require("../PlatformAPIClient");
|
|
3
2
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
4
|
-
const
|
|
3
|
+
const PlatformAPIClient = require("../PlatformAPIClient");
|
|
4
|
+
const OrderValidator = require("./OrderPlatformValidator");
|
|
5
5
|
class Order {
|
|
6
6
|
constructor(config) {
|
|
7
7
|
this.config = config;
|
|
@@ -80,6 +80,36 @@ class Order {
|
|
|
80
80
|
return Promise.reject(new FDKClientValidationError(error));
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
// Showing warrnings if extra unknown parameters are found
|
|
84
|
+
const { error: warrning } = OrderValidator.getShipments().validate(
|
|
85
|
+
{
|
|
86
|
+
lane,
|
|
87
|
+
searchType,
|
|
88
|
+
searchValue,
|
|
89
|
+
searchId,
|
|
90
|
+
fromDate,
|
|
91
|
+
toDate,
|
|
92
|
+
dpIds,
|
|
93
|
+
orderingCompanyId,
|
|
94
|
+
stores,
|
|
95
|
+
salesChannel,
|
|
96
|
+
requestByExt,
|
|
97
|
+
pageNo,
|
|
98
|
+
pageSize,
|
|
99
|
+
isPrioritySort,
|
|
100
|
+
excludeLockedShipments,
|
|
101
|
+
paymentMethods,
|
|
102
|
+
channelShipmentId,
|
|
103
|
+
channelOrderId,
|
|
104
|
+
customMeta,
|
|
105
|
+
},
|
|
106
|
+
{ abortEarly: false, allowUnknown: false }
|
|
107
|
+
);
|
|
108
|
+
if (warrning) {
|
|
109
|
+
console.log("Parameter Validation warrnings for getShipments");
|
|
110
|
+
console.log(warrning);
|
|
111
|
+
}
|
|
112
|
+
|
|
83
113
|
const query_params = {};
|
|
84
114
|
query_params["lane"] = lane;
|
|
85
115
|
query_params["search_type"] = searchType;
|
|
@@ -141,6 +171,21 @@ class Order {
|
|
|
141
171
|
return Promise.reject(new FDKClientValidationError(error));
|
|
142
172
|
}
|
|
143
173
|
|
|
174
|
+
// Showing warrnings if extra unknown parameters are found
|
|
175
|
+
const { error: warrning } = OrderValidator.getShipmentById().validate(
|
|
176
|
+
{
|
|
177
|
+
channelShipmentId,
|
|
178
|
+
shipmentId,
|
|
179
|
+
orderingCompanyId,
|
|
180
|
+
requestByExt,
|
|
181
|
+
},
|
|
182
|
+
{ abortEarly: false, allowUnknown: false }
|
|
183
|
+
);
|
|
184
|
+
if (warrning) {
|
|
185
|
+
console.log("Parameter Validation warrnings for getShipmentById");
|
|
186
|
+
console.log(warrning);
|
|
187
|
+
}
|
|
188
|
+
|
|
144
189
|
const query_params = {};
|
|
145
190
|
query_params["channel_shipment_id"] = channelShipmentId;
|
|
146
191
|
query_params["shipment_id"] = shipmentId;
|
|
@@ -176,6 +221,18 @@ class Order {
|
|
|
176
221
|
return Promise.reject(new FDKClientValidationError(error));
|
|
177
222
|
}
|
|
178
223
|
|
|
224
|
+
// Showing warrnings if extra unknown parameters are found
|
|
225
|
+
const { error: warrning } = OrderValidator.getOrderById().validate(
|
|
226
|
+
{
|
|
227
|
+
orderId,
|
|
228
|
+
},
|
|
229
|
+
{ abortEarly: false, allowUnknown: false }
|
|
230
|
+
);
|
|
231
|
+
if (warrning) {
|
|
232
|
+
console.log("Parameter Validation warrnings for getOrderById");
|
|
233
|
+
console.log(warrning);
|
|
234
|
+
}
|
|
235
|
+
|
|
179
236
|
const query_params = {};
|
|
180
237
|
query_params["order_id"] = orderId;
|
|
181
238
|
|
|
@@ -234,6 +291,26 @@ class Order {
|
|
|
234
291
|
return Promise.reject(new FDKClientValidationError(error));
|
|
235
292
|
}
|
|
236
293
|
|
|
294
|
+
// Showing warrnings if extra unknown parameters are found
|
|
295
|
+
const { error: warrning } = OrderValidator.getLaneConfig().validate(
|
|
296
|
+
{
|
|
297
|
+
superLane,
|
|
298
|
+
groupEntity,
|
|
299
|
+
fromDate,
|
|
300
|
+
toDate,
|
|
301
|
+
dpIds,
|
|
302
|
+
stores,
|
|
303
|
+
salesChannel,
|
|
304
|
+
paymentMode,
|
|
305
|
+
bagStatus,
|
|
306
|
+
},
|
|
307
|
+
{ abortEarly: false, allowUnknown: false }
|
|
308
|
+
);
|
|
309
|
+
if (warrning) {
|
|
310
|
+
console.log("Parameter Validation warrnings for getLaneConfig");
|
|
311
|
+
console.log(warrning);
|
|
312
|
+
}
|
|
313
|
+
|
|
237
314
|
const query_params = {};
|
|
238
315
|
query_params["super_lane"] = superLane;
|
|
239
316
|
query_params["group_entity"] = groupEntity;
|
|
@@ -261,6 +338,10 @@ class Order {
|
|
|
261
338
|
* @param {Object} arg - Arg object.
|
|
262
339
|
* @param {string} [arg.lane] -
|
|
263
340
|
* @param {string} [arg.searchType] -
|
|
341
|
+
* @param {string} [arg.bagStatus] -
|
|
342
|
+
* @param {string} [arg.timeToDispatch] -
|
|
343
|
+
* @param {string} [arg.paymentMethods] -
|
|
344
|
+
* @param {string} [arg.tags] -
|
|
264
345
|
* @param {string} [arg.searchValue] -
|
|
265
346
|
* @param {string} [arg.fromDate] -
|
|
266
347
|
* @param {string} [arg.toDate] -
|
|
@@ -277,6 +358,10 @@ class Order {
|
|
|
277
358
|
getOrders({
|
|
278
359
|
lane,
|
|
279
360
|
searchType,
|
|
361
|
+
bagStatus,
|
|
362
|
+
timeToDispatch,
|
|
363
|
+
paymentMethods,
|
|
364
|
+
tags,
|
|
280
365
|
searchValue,
|
|
281
366
|
fromDate,
|
|
282
367
|
toDate,
|
|
@@ -292,6 +377,10 @@ class Order {
|
|
|
292
377
|
{
|
|
293
378
|
lane,
|
|
294
379
|
searchType,
|
|
380
|
+
bagStatus,
|
|
381
|
+
timeToDispatch,
|
|
382
|
+
paymentMethods,
|
|
383
|
+
tags,
|
|
295
384
|
searchValue,
|
|
296
385
|
fromDate,
|
|
297
386
|
toDate,
|
|
@@ -309,9 +398,40 @@ class Order {
|
|
|
309
398
|
return Promise.reject(new FDKClientValidationError(error));
|
|
310
399
|
}
|
|
311
400
|
|
|
401
|
+
// Showing warrnings if extra unknown parameters are found
|
|
402
|
+
const { error: warrning } = OrderValidator.getOrders().validate(
|
|
403
|
+
{
|
|
404
|
+
lane,
|
|
405
|
+
searchType,
|
|
406
|
+
bagStatus,
|
|
407
|
+
timeToDispatch,
|
|
408
|
+
paymentMethods,
|
|
409
|
+
tags,
|
|
410
|
+
searchValue,
|
|
411
|
+
fromDate,
|
|
412
|
+
toDate,
|
|
413
|
+
dpIds,
|
|
414
|
+
stores,
|
|
415
|
+
salesChannel,
|
|
416
|
+
pageNo,
|
|
417
|
+
pageSize,
|
|
418
|
+
isPrioritySort,
|
|
419
|
+
customMeta,
|
|
420
|
+
},
|
|
421
|
+
{ abortEarly: false, allowUnknown: false }
|
|
422
|
+
);
|
|
423
|
+
if (warrning) {
|
|
424
|
+
console.log("Parameter Validation warrnings for getOrders");
|
|
425
|
+
console.log(warrning);
|
|
426
|
+
}
|
|
427
|
+
|
|
312
428
|
const query_params = {};
|
|
313
429
|
query_params["lane"] = lane;
|
|
314
430
|
query_params["search_type"] = searchType;
|
|
431
|
+
query_params["bag_status"] = bagStatus;
|
|
432
|
+
query_params["time_to_dispatch"] = timeToDispatch;
|
|
433
|
+
query_params["payment_methods"] = paymentMethods;
|
|
434
|
+
query_params["tags"] = tags;
|
|
315
435
|
query_params["search_value"] = searchValue;
|
|
316
436
|
query_params["from_date"] = fromDate;
|
|
317
437
|
query_params["to_date"] = toDate;
|
|
@@ -354,6 +474,19 @@ class Order {
|
|
|
354
474
|
return Promise.reject(new FDKClientValidationError(error));
|
|
355
475
|
}
|
|
356
476
|
|
|
477
|
+
// Showing warrnings if extra unknown parameters are found
|
|
478
|
+
const { error: warrning } = OrderValidator.getMetricCount().validate(
|
|
479
|
+
{
|
|
480
|
+
fromDate,
|
|
481
|
+
toDate,
|
|
482
|
+
},
|
|
483
|
+
{ abortEarly: false, allowUnknown: false }
|
|
484
|
+
);
|
|
485
|
+
if (warrning) {
|
|
486
|
+
console.log("Parameter Validation warrnings for getMetricCount");
|
|
487
|
+
console.log(warrning);
|
|
488
|
+
}
|
|
489
|
+
|
|
357
490
|
const query_params = {};
|
|
358
491
|
query_params["from_date"] = fromDate;
|
|
359
492
|
query_params["to_date"] = toDate;
|
|
@@ -389,6 +522,19 @@ class Order {
|
|
|
389
522
|
return Promise.reject(new FDKClientValidationError(error));
|
|
390
523
|
}
|
|
391
524
|
|
|
525
|
+
// Showing warrnings if extra unknown parameters are found
|
|
526
|
+
const { error: warrning } = OrderValidator.getfilters().validate(
|
|
527
|
+
{
|
|
528
|
+
view,
|
|
529
|
+
groupEntity,
|
|
530
|
+
},
|
|
531
|
+
{ abortEarly: false, allowUnknown: false }
|
|
532
|
+
);
|
|
533
|
+
if (warrning) {
|
|
534
|
+
console.log("Parameter Validation warrnings for getfilters");
|
|
535
|
+
console.log(warrning);
|
|
536
|
+
}
|
|
537
|
+
|
|
392
538
|
const query_params = {};
|
|
393
539
|
query_params["view"] = view;
|
|
394
540
|
query_params["group_entity"] = groupEntity;
|
|
@@ -424,6 +570,19 @@ class Order {
|
|
|
424
570
|
return Promise.reject(new FDKClientValidationError(error));
|
|
425
571
|
}
|
|
426
572
|
|
|
573
|
+
// Showing warrnings if extra unknown parameters are found
|
|
574
|
+
const { error: warrning } = OrderValidator.createShipmentReport().validate(
|
|
575
|
+
{
|
|
576
|
+
fromDate,
|
|
577
|
+
toDate,
|
|
578
|
+
},
|
|
579
|
+
{ abortEarly: false, allowUnknown: false }
|
|
580
|
+
);
|
|
581
|
+
if (warrning) {
|
|
582
|
+
console.log("Parameter Validation warrnings for createShipmentReport");
|
|
583
|
+
console.log(warrning);
|
|
584
|
+
}
|
|
585
|
+
|
|
427
586
|
const query_params = {};
|
|
428
587
|
query_params["from_date"] = fromDate;
|
|
429
588
|
query_params["to_date"] = toDate;
|
|
@@ -459,6 +618,23 @@ class Order {
|
|
|
459
618
|
return Promise.reject(new FDKClientValidationError(error));
|
|
460
619
|
}
|
|
461
620
|
|
|
621
|
+
// Showing warrnings if extra unknown parameters are found
|
|
622
|
+
const {
|
|
623
|
+
error: warrning,
|
|
624
|
+
} = OrderValidator.getReportsShipmentListing().validate(
|
|
625
|
+
{
|
|
626
|
+
pageNo,
|
|
627
|
+
pageSize,
|
|
628
|
+
},
|
|
629
|
+
{ abortEarly: false, allowUnknown: false }
|
|
630
|
+
);
|
|
631
|
+
if (warrning) {
|
|
632
|
+
console.log(
|
|
633
|
+
"Parameter Validation warrnings for getReportsShipmentListing"
|
|
634
|
+
);
|
|
635
|
+
console.log(warrning);
|
|
636
|
+
}
|
|
637
|
+
|
|
462
638
|
const query_params = {};
|
|
463
639
|
query_params["page_no"] = pageNo;
|
|
464
640
|
query_params["page_size"] = pageSize;
|
|
@@ -492,6 +668,18 @@ class Order {
|
|
|
492
668
|
return Promise.reject(new FDKClientValidationError(error));
|
|
493
669
|
}
|
|
494
670
|
|
|
671
|
+
// Showing warrnings if extra unknown parameters are found
|
|
672
|
+
const { error: warrning } = OrderValidator.upsertJioCode().validate(
|
|
673
|
+
{
|
|
674
|
+
body,
|
|
675
|
+
},
|
|
676
|
+
{ abortEarly: false, allowUnknown: false }
|
|
677
|
+
);
|
|
678
|
+
if (warrning) {
|
|
679
|
+
console.log("Parameter Validation warrnings for upsertJioCode");
|
|
680
|
+
console.log(warrning);
|
|
681
|
+
}
|
|
682
|
+
|
|
495
683
|
const query_params = {};
|
|
496
684
|
|
|
497
685
|
const xHeaders = {};
|
|
@@ -525,6 +713,19 @@ class Order {
|
|
|
525
713
|
return Promise.reject(new FDKClientValidationError(error));
|
|
526
714
|
}
|
|
527
715
|
|
|
716
|
+
// Showing warrnings if extra unknown parameters are found
|
|
717
|
+
const { error: warrning } = OrderValidator.getBulkInvoice().validate(
|
|
718
|
+
{
|
|
719
|
+
batchId,
|
|
720
|
+
docType,
|
|
721
|
+
},
|
|
722
|
+
{ abortEarly: false, allowUnknown: false }
|
|
723
|
+
);
|
|
724
|
+
if (warrning) {
|
|
725
|
+
console.log("Parameter Validation warrnings for getBulkInvoice");
|
|
726
|
+
console.log(warrning);
|
|
727
|
+
}
|
|
728
|
+
|
|
528
729
|
const query_params = {};
|
|
529
730
|
query_params["batch_id"] = batchId;
|
|
530
731
|
query_params["doc_type"] = docType;
|
|
@@ -558,6 +759,18 @@ class Order {
|
|
|
558
759
|
return Promise.reject(new FDKClientValidationError(error));
|
|
559
760
|
}
|
|
560
761
|
|
|
762
|
+
// Showing warrnings if extra unknown parameters are found
|
|
763
|
+
const { error: warrning } = OrderValidator.getBulkInvoiceLabel().validate(
|
|
764
|
+
{
|
|
765
|
+
batchId,
|
|
766
|
+
},
|
|
767
|
+
{ abortEarly: false, allowUnknown: false }
|
|
768
|
+
);
|
|
769
|
+
if (warrning) {
|
|
770
|
+
console.log("Parameter Validation warrnings for getBulkInvoiceLabel");
|
|
771
|
+
console.log(warrning);
|
|
772
|
+
}
|
|
773
|
+
|
|
561
774
|
const query_params = {};
|
|
562
775
|
query_params["batch_id"] = batchId;
|
|
563
776
|
|
|
@@ -631,6 +844,35 @@ class Order {
|
|
|
631
844
|
return Promise.reject(new FDKClientValidationError(error));
|
|
632
845
|
}
|
|
633
846
|
|
|
847
|
+
// Showing warrnings if extra unknown parameters are found
|
|
848
|
+
const {
|
|
849
|
+
error: warrning,
|
|
850
|
+
} = OrderValidator.getBulkShipmentExcelFile().validate(
|
|
851
|
+
{
|
|
852
|
+
lane,
|
|
853
|
+
searchType,
|
|
854
|
+
searchId,
|
|
855
|
+
fromDate,
|
|
856
|
+
toDate,
|
|
857
|
+
dpIds,
|
|
858
|
+
orderingCompanyId,
|
|
859
|
+
stores,
|
|
860
|
+
salesChannel,
|
|
861
|
+
requestByExt,
|
|
862
|
+
pageNo,
|
|
863
|
+
pageSize,
|
|
864
|
+
customerId,
|
|
865
|
+
isPrioritySort,
|
|
866
|
+
},
|
|
867
|
+
{ abortEarly: false, allowUnknown: false }
|
|
868
|
+
);
|
|
869
|
+
if (warrning) {
|
|
870
|
+
console.log(
|
|
871
|
+
"Parameter Validation warrnings for getBulkShipmentExcelFile"
|
|
872
|
+
);
|
|
873
|
+
console.log(warrning);
|
|
874
|
+
}
|
|
875
|
+
|
|
634
876
|
const query_params = {};
|
|
635
877
|
query_params["lane"] = lane;
|
|
636
878
|
query_params["search_type"] = searchType;
|
|
@@ -717,6 +959,31 @@ class Order {
|
|
|
717
959
|
return Promise.reject(new FDKClientValidationError(error));
|
|
718
960
|
}
|
|
719
961
|
|
|
962
|
+
// Showing warrnings if extra unknown parameters are found
|
|
963
|
+
const { error: warrning } = OrderValidator.getBulkList().validate(
|
|
964
|
+
{
|
|
965
|
+
lane,
|
|
966
|
+
searchType,
|
|
967
|
+
searchId,
|
|
968
|
+
fromDate,
|
|
969
|
+
toDate,
|
|
970
|
+
dpIds,
|
|
971
|
+
orderingCompanyId,
|
|
972
|
+
stores,
|
|
973
|
+
salesChannel,
|
|
974
|
+
requestByExt,
|
|
975
|
+
pageNo,
|
|
976
|
+
pageSize,
|
|
977
|
+
customerId,
|
|
978
|
+
isPrioritySort,
|
|
979
|
+
},
|
|
980
|
+
{ abortEarly: false, allowUnknown: false }
|
|
981
|
+
);
|
|
982
|
+
if (warrning) {
|
|
983
|
+
console.log("Parameter Validation warrnings for getBulkList");
|
|
984
|
+
console.log(warrning);
|
|
985
|
+
}
|
|
986
|
+
|
|
720
987
|
const query_params = {};
|
|
721
988
|
query_params["lane"] = lane;
|
|
722
989
|
query_params["search_type"] = searchType;
|
|
@@ -738,135 +1005,7 @@ class Order {
|
|
|
738
1005
|
return PlatformAPIClient.execute(
|
|
739
1006
|
this.config,
|
|
740
1007
|
"get",
|
|
741
|
-
`/service/platform/orders/v1.0/company/${this.config.companyId}/bulk-action/listing`,
|
|
742
|
-
query_params,
|
|
743
|
-
undefined,
|
|
744
|
-
xHeaders
|
|
745
|
-
);
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* @param {Object} arg - Arg object.
|
|
750
|
-
* @param {string} [arg.status] -
|
|
751
|
-
* @param {number} [arg.storeId] -
|
|
752
|
-
* @param {number} [arg.pageNo] -
|
|
753
|
-
* @param {number} [arg.pageSize] -
|
|
754
|
-
* @param {string} [arg.searchValue] -
|
|
755
|
-
* @param {string} [arg.fromDate] -
|
|
756
|
-
* @param {string} [arg.toDate] -
|
|
757
|
-
* @summary:
|
|
758
|
-
* @description:
|
|
759
|
-
*/
|
|
760
|
-
getManifestList({
|
|
761
|
-
status,
|
|
762
|
-
storeId,
|
|
763
|
-
pageNo,
|
|
764
|
-
pageSize,
|
|
765
|
-
searchValue,
|
|
766
|
-
fromDate,
|
|
767
|
-
toDate,
|
|
768
|
-
} = {}) {
|
|
769
|
-
const { error } = OrderValidator.getManifestList().validate(
|
|
770
|
-
{
|
|
771
|
-
status,
|
|
772
|
-
storeId,
|
|
773
|
-
pageNo,
|
|
774
|
-
pageSize,
|
|
775
|
-
searchValue,
|
|
776
|
-
fromDate,
|
|
777
|
-
toDate,
|
|
778
|
-
},
|
|
779
|
-
{ abortEarly: false, allowUnknown: true }
|
|
780
|
-
);
|
|
781
|
-
if (error) {
|
|
782
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
const query_params = {};
|
|
786
|
-
query_params["status"] = status;
|
|
787
|
-
query_params["store_id"] = storeId;
|
|
788
|
-
query_params["page_no"] = pageNo;
|
|
789
|
-
query_params["page_size"] = pageSize;
|
|
790
|
-
query_params["search_value"] = searchValue;
|
|
791
|
-
query_params["from_date"] = fromDate;
|
|
792
|
-
query_params["to_date"] = toDate;
|
|
793
|
-
|
|
794
|
-
const xHeaders = {};
|
|
795
|
-
|
|
796
|
-
return PlatformAPIClient.execute(
|
|
797
|
-
this.config,
|
|
798
|
-
"get",
|
|
799
|
-
`/service/platform/orders/v1.0/company/${this.config.companyId}/generated-manifests`,
|
|
800
|
-
query_params,
|
|
801
|
-
undefined,
|
|
802
|
-
xHeaders
|
|
803
|
-
);
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* @param {Object} arg - Arg object.
|
|
808
|
-
* @param {string} arg.manifestId -
|
|
809
|
-
* @param {string} [arg.fromDate] -
|
|
810
|
-
* @param {string} [arg.toDate] -
|
|
811
|
-
* @param {number} arg.storeId -
|
|
812
|
-
* @param {number} [arg.page] -
|
|
813
|
-
* @param {number} [arg.pageSize] -
|
|
814
|
-
* @param {string} [arg.lane] -
|
|
815
|
-
* @param {number} [arg.dpIds] -
|
|
816
|
-
* @param {string} [arg.searchType] -
|
|
817
|
-
* @param {string} [arg.searchValue] -
|
|
818
|
-
* @summary:
|
|
819
|
-
* @description:
|
|
820
|
-
*/
|
|
821
|
-
getManifestDetailsWithShipments({
|
|
822
|
-
manifestId,
|
|
823
|
-
storeId,
|
|
824
|
-
fromDate,
|
|
825
|
-
toDate,
|
|
826
|
-
page,
|
|
827
|
-
pageSize,
|
|
828
|
-
lane,
|
|
829
|
-
dpIds,
|
|
830
|
-
searchType,
|
|
831
|
-
searchValue,
|
|
832
|
-
} = {}) {
|
|
833
|
-
const { error } = OrderValidator.getManifestDetailsWithShipments().validate(
|
|
834
|
-
{
|
|
835
|
-
manifestId,
|
|
836
|
-
storeId,
|
|
837
|
-
fromDate,
|
|
838
|
-
toDate,
|
|
839
|
-
page,
|
|
840
|
-
pageSize,
|
|
841
|
-
lane,
|
|
842
|
-
dpIds,
|
|
843
|
-
searchType,
|
|
844
|
-
searchValue,
|
|
845
|
-
},
|
|
846
|
-
{ abortEarly: false, allowUnknown: true }
|
|
847
|
-
);
|
|
848
|
-
if (error) {
|
|
849
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
const query_params = {};
|
|
853
|
-
query_params["manifest_id"] = manifestId;
|
|
854
|
-
query_params["from_date"] = fromDate;
|
|
855
|
-
query_params["to_date"] = toDate;
|
|
856
|
-
query_params["store_id"] = storeId;
|
|
857
|
-
query_params["page"] = page;
|
|
858
|
-
query_params["page_size"] = pageSize;
|
|
859
|
-
query_params["lane"] = lane;
|
|
860
|
-
query_params["dp_ids"] = dpIds;
|
|
861
|
-
query_params["search_type"] = searchType;
|
|
862
|
-
query_params["search_value"] = searchValue;
|
|
863
|
-
|
|
864
|
-
const xHeaders = {};
|
|
865
|
-
|
|
866
|
-
return PlatformAPIClient.execute(
|
|
867
|
-
this.config,
|
|
868
|
-
"get",
|
|
869
|
-
`/service/platform/orders/v1.0/company/${this.config.companyId}/manifest-details`,
|
|
1008
|
+
`/service/platform/orders/v1.0/company/${this.config.companyId}/bulk-action/listing`,
|
|
870
1009
|
query_params,
|
|
871
1010
|
undefined,
|
|
872
1011
|
xHeaders
|
|
@@ -892,6 +1031,23 @@ class Order {
|
|
|
892
1031
|
return Promise.reject(new FDKClientValidationError(error));
|
|
893
1032
|
}
|
|
894
1033
|
|
|
1034
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1035
|
+
const {
|
|
1036
|
+
error: warrning,
|
|
1037
|
+
} = OrderValidator.getBulkActionFailedReport().validate(
|
|
1038
|
+
{
|
|
1039
|
+
batchId,
|
|
1040
|
+
reportType,
|
|
1041
|
+
},
|
|
1042
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1043
|
+
);
|
|
1044
|
+
if (warrning) {
|
|
1045
|
+
console.log(
|
|
1046
|
+
"Parameter Validation warrnings for getBulkActionFailedReport"
|
|
1047
|
+
);
|
|
1048
|
+
console.log(warrning);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
895
1051
|
const query_params = {};
|
|
896
1052
|
query_params["batch_id"] = batchId;
|
|
897
1053
|
query_params["report_type"] = reportType;
|
|
@@ -932,6 +1088,20 @@ class Order {
|
|
|
932
1088
|
return Promise.reject(new FDKClientValidationError(error));
|
|
933
1089
|
}
|
|
934
1090
|
|
|
1091
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1092
|
+
const { error: warrning } = OrderValidator.getShipmentReasons().validate(
|
|
1093
|
+
{
|
|
1094
|
+
shipmentId,
|
|
1095
|
+
bagId,
|
|
1096
|
+
state,
|
|
1097
|
+
},
|
|
1098
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1099
|
+
);
|
|
1100
|
+
if (warrning) {
|
|
1101
|
+
console.log("Parameter Validation warrnings for getShipmentReasons");
|
|
1102
|
+
console.log(warrning);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
935
1105
|
const query_params = {};
|
|
936
1106
|
|
|
937
1107
|
const xHeaders = {};
|
|
@@ -963,6 +1133,22 @@ class Order {
|
|
|
963
1133
|
return Promise.reject(new FDKClientValidationError(error));
|
|
964
1134
|
}
|
|
965
1135
|
|
|
1136
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1137
|
+
const {
|
|
1138
|
+
error: warrning,
|
|
1139
|
+
} = OrderValidator.bulkActionProcessXlsxFile().validate(
|
|
1140
|
+
{
|
|
1141
|
+
body,
|
|
1142
|
+
},
|
|
1143
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1144
|
+
);
|
|
1145
|
+
if (warrning) {
|
|
1146
|
+
console.log(
|
|
1147
|
+
"Parameter Validation warrnings for bulkActionProcessXlsxFile"
|
|
1148
|
+
);
|
|
1149
|
+
console.log(warrning);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
966
1152
|
const query_params = {};
|
|
967
1153
|
|
|
968
1154
|
const xHeaders = {};
|
|
@@ -994,6 +1180,18 @@ class Order {
|
|
|
994
1180
|
return Promise.reject(new FDKClientValidationError(error));
|
|
995
1181
|
}
|
|
996
1182
|
|
|
1183
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1184
|
+
const { error: warrning } = OrderValidator.bulkActionDetails().validate(
|
|
1185
|
+
{
|
|
1186
|
+
batchId,
|
|
1187
|
+
},
|
|
1188
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1189
|
+
);
|
|
1190
|
+
if (warrning) {
|
|
1191
|
+
console.log("Parameter Validation warrnings for bulkActionDetails");
|
|
1192
|
+
console.log(warrning);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
997
1195
|
const query_params = {};
|
|
998
1196
|
|
|
999
1197
|
const xHeaders = {};
|
|
@@ -1029,6 +1227,20 @@ class Order {
|
|
|
1029
1227
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1030
1228
|
}
|
|
1031
1229
|
|
|
1230
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1231
|
+
const { error: warrning } = OrderValidator.getBagById().validate(
|
|
1232
|
+
{
|
|
1233
|
+
bagId,
|
|
1234
|
+
channelBagId,
|
|
1235
|
+
channelId,
|
|
1236
|
+
},
|
|
1237
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1238
|
+
);
|
|
1239
|
+
if (warrning) {
|
|
1240
|
+
console.log("Parameter Validation warrnings for getBagById");
|
|
1241
|
+
console.log(warrning);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1032
1244
|
const query_params = {};
|
|
1033
1245
|
query_params["bag_id"] = bagId;
|
|
1034
1246
|
query_params["channel_bag_id"] = channelBagId;
|
|
@@ -1089,6 +1301,26 @@ class Order {
|
|
|
1089
1301
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1090
1302
|
}
|
|
1091
1303
|
|
|
1304
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1305
|
+
const { error: warrning } = OrderValidator.getBags().validate(
|
|
1306
|
+
{
|
|
1307
|
+
bagIds,
|
|
1308
|
+
shipmentIds,
|
|
1309
|
+
orderIds,
|
|
1310
|
+
channelBagIds,
|
|
1311
|
+
channelShipmentIds,
|
|
1312
|
+
channelOrderIds,
|
|
1313
|
+
channelId,
|
|
1314
|
+
pageNo,
|
|
1315
|
+
pageSize,
|
|
1316
|
+
},
|
|
1317
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1318
|
+
);
|
|
1319
|
+
if (warrning) {
|
|
1320
|
+
console.log("Parameter Validation warrnings for getBags");
|
|
1321
|
+
console.log(warrning);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1092
1324
|
const query_params = {};
|
|
1093
1325
|
query_params["bag_ids"] = bagIds;
|
|
1094
1326
|
query_params["shipment_ids"] = shipmentIds;
|
|
@@ -1129,6 +1361,20 @@ class Order {
|
|
|
1129
1361
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1130
1362
|
}
|
|
1131
1363
|
|
|
1364
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1365
|
+
const {
|
|
1366
|
+
error: warrning,
|
|
1367
|
+
} = OrderValidator.invalidateShipmentCache().validate(
|
|
1368
|
+
{
|
|
1369
|
+
body,
|
|
1370
|
+
},
|
|
1371
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1372
|
+
);
|
|
1373
|
+
if (warrning) {
|
|
1374
|
+
console.log("Parameter Validation warrnings for invalidateShipmentCache");
|
|
1375
|
+
console.log(warrning);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1132
1378
|
const query_params = {};
|
|
1133
1379
|
|
|
1134
1380
|
const xHeaders = {};
|
|
@@ -1160,6 +1406,18 @@ class Order {
|
|
|
1160
1406
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1161
1407
|
}
|
|
1162
1408
|
|
|
1409
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1410
|
+
const { error: warrning } = OrderValidator.reassignLocation().validate(
|
|
1411
|
+
{
|
|
1412
|
+
body,
|
|
1413
|
+
},
|
|
1414
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1415
|
+
);
|
|
1416
|
+
if (warrning) {
|
|
1417
|
+
console.log("Parameter Validation warrnings for reassignLocation");
|
|
1418
|
+
console.log(warrning);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1163
1421
|
const query_params = {};
|
|
1164
1422
|
|
|
1165
1423
|
const xHeaders = {};
|
|
@@ -1191,6 +1449,18 @@ class Order {
|
|
|
1191
1449
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1192
1450
|
}
|
|
1193
1451
|
|
|
1452
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1453
|
+
const { error: warrning } = OrderValidator.updateShipmentLock().validate(
|
|
1454
|
+
{
|
|
1455
|
+
body,
|
|
1456
|
+
},
|
|
1457
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1458
|
+
);
|
|
1459
|
+
if (warrning) {
|
|
1460
|
+
console.log("Parameter Validation warrnings for updateShipmentLock");
|
|
1461
|
+
console.log(warrning);
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1194
1464
|
const query_params = {};
|
|
1195
1465
|
|
|
1196
1466
|
const xHeaders = {};
|
|
@@ -1222,6 +1492,18 @@ class Order {
|
|
|
1222
1492
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1223
1493
|
}
|
|
1224
1494
|
|
|
1495
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1496
|
+
const { error: warrning } = OrderValidator.getAnnouncements().validate(
|
|
1497
|
+
{
|
|
1498
|
+
date,
|
|
1499
|
+
},
|
|
1500
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1501
|
+
);
|
|
1502
|
+
if (warrning) {
|
|
1503
|
+
console.log("Parameter Validation warrnings for getAnnouncements");
|
|
1504
|
+
console.log(warrning);
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1225
1507
|
const query_params = {};
|
|
1226
1508
|
query_params["date"] = date;
|
|
1227
1509
|
|
|
@@ -1289,6 +1571,29 @@ class Order {
|
|
|
1289
1571
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1290
1572
|
}
|
|
1291
1573
|
|
|
1574
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1575
|
+
const { error: warrning } = OrderValidator.updateAddress().validate(
|
|
1576
|
+
{
|
|
1577
|
+
shipmentId,
|
|
1578
|
+
addressCategory,
|
|
1579
|
+
name,
|
|
1580
|
+
address,
|
|
1581
|
+
addressType,
|
|
1582
|
+
pincode,
|
|
1583
|
+
phone,
|
|
1584
|
+
email,
|
|
1585
|
+
landmark,
|
|
1586
|
+
city,
|
|
1587
|
+
state,
|
|
1588
|
+
country,
|
|
1589
|
+
},
|
|
1590
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1591
|
+
);
|
|
1592
|
+
if (warrning) {
|
|
1593
|
+
console.log("Parameter Validation warrnings for updateAddress");
|
|
1594
|
+
console.log(warrning);
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1292
1597
|
const query_params = {};
|
|
1293
1598
|
query_params["shipment_id"] = shipmentId;
|
|
1294
1599
|
query_params["name"] = name;
|
|
@@ -1340,6 +1645,22 @@ class Order {
|
|
|
1340
1645
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1341
1646
|
}
|
|
1342
1647
|
|
|
1648
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1649
|
+
const { error: warrning } = OrderValidator.click2Call().validate(
|
|
1650
|
+
{
|
|
1651
|
+
caller,
|
|
1652
|
+
receiver,
|
|
1653
|
+
bagId,
|
|
1654
|
+
callingTo,
|
|
1655
|
+
callerId,
|
|
1656
|
+
},
|
|
1657
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1658
|
+
);
|
|
1659
|
+
if (warrning) {
|
|
1660
|
+
console.log("Parameter Validation warrnings for click2Call");
|
|
1661
|
+
console.log(warrning);
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1343
1664
|
const query_params = {};
|
|
1344
1665
|
query_params["caller"] = caller;
|
|
1345
1666
|
query_params["receiver"] = receiver;
|
|
@@ -1376,6 +1697,18 @@ class Order {
|
|
|
1376
1697
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1377
1698
|
}
|
|
1378
1699
|
|
|
1700
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1701
|
+
const { error: warrning } = OrderValidator.updateShipmentStatus().validate(
|
|
1702
|
+
{
|
|
1703
|
+
body,
|
|
1704
|
+
},
|
|
1705
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1706
|
+
);
|
|
1707
|
+
if (warrning) {
|
|
1708
|
+
console.log("Parameter Validation warrnings for updateShipmentStatus");
|
|
1709
|
+
console.log(warrning);
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1379
1712
|
const query_params = {};
|
|
1380
1713
|
|
|
1381
1714
|
const xHeaders = {};
|
|
@@ -1407,6 +1740,18 @@ class Order {
|
|
|
1407
1740
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1408
1741
|
}
|
|
1409
1742
|
|
|
1743
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1744
|
+
const { error: warrning } = OrderValidator.processManifest().validate(
|
|
1745
|
+
{
|
|
1746
|
+
body,
|
|
1747
|
+
},
|
|
1748
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1749
|
+
);
|
|
1750
|
+
if (warrning) {
|
|
1751
|
+
console.log("Parameter Validation warrnings for processManifest");
|
|
1752
|
+
console.log(warrning);
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1410
1755
|
const query_params = {};
|
|
1411
1756
|
|
|
1412
1757
|
const xHeaders = {};
|
|
@@ -1438,6 +1783,18 @@ class Order {
|
|
|
1438
1783
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1439
1784
|
}
|
|
1440
1785
|
|
|
1786
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1787
|
+
const { error: warrning } = OrderValidator.dispatchManifest().validate(
|
|
1788
|
+
{
|
|
1789
|
+
body,
|
|
1790
|
+
},
|
|
1791
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1792
|
+
);
|
|
1793
|
+
if (warrning) {
|
|
1794
|
+
console.log("Parameter Validation warrnings for dispatchManifest");
|
|
1795
|
+
console.log(warrning);
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1441
1798
|
const query_params = {};
|
|
1442
1799
|
|
|
1443
1800
|
const xHeaders = {};
|
|
@@ -1466,6 +1823,16 @@ class Order {
|
|
|
1466
1823
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1467
1824
|
}
|
|
1468
1825
|
|
|
1826
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1827
|
+
const { error: warrning } = OrderValidator.getRoleBasedActions().validate(
|
|
1828
|
+
{},
|
|
1829
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1830
|
+
);
|
|
1831
|
+
if (warrning) {
|
|
1832
|
+
console.log("Parameter Validation warrnings for getRoleBasedActions");
|
|
1833
|
+
console.log(warrning);
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1469
1836
|
const query_params = {};
|
|
1470
1837
|
|
|
1471
1838
|
const xHeaders = {};
|
|
@@ -1499,6 +1866,19 @@ class Order {
|
|
|
1499
1866
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1500
1867
|
}
|
|
1501
1868
|
|
|
1869
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1870
|
+
const { error: warrning } = OrderValidator.getShipmentHistory().validate(
|
|
1871
|
+
{
|
|
1872
|
+
shipmentId,
|
|
1873
|
+
bagId,
|
|
1874
|
+
},
|
|
1875
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1876
|
+
);
|
|
1877
|
+
if (warrning) {
|
|
1878
|
+
console.log("Parameter Validation warrnings for getShipmentHistory");
|
|
1879
|
+
console.log(warrning);
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1502
1882
|
const query_params = {};
|
|
1503
1883
|
query_params["shipment_id"] = shipmentId;
|
|
1504
1884
|
query_params["bag_id"] = bagId;
|
|
@@ -1515,6 +1895,49 @@ class Order {
|
|
|
1515
1895
|
);
|
|
1516
1896
|
}
|
|
1517
1897
|
|
|
1898
|
+
/**
|
|
1899
|
+
* @param {Object} arg - Arg object.
|
|
1900
|
+
* @param {PostShipmentHistory} arg.body
|
|
1901
|
+
* @summary:
|
|
1902
|
+
* @description:
|
|
1903
|
+
*/
|
|
1904
|
+
postShipmentHistory({ body } = {}) {
|
|
1905
|
+
const { error } = OrderValidator.postShipmentHistory().validate(
|
|
1906
|
+
{
|
|
1907
|
+
body,
|
|
1908
|
+
},
|
|
1909
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1910
|
+
);
|
|
1911
|
+
if (error) {
|
|
1912
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1916
|
+
const { error: warrning } = OrderValidator.postShipmentHistory().validate(
|
|
1917
|
+
{
|
|
1918
|
+
body,
|
|
1919
|
+
},
|
|
1920
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1921
|
+
);
|
|
1922
|
+
if (warrning) {
|
|
1923
|
+
console.log("Parameter Validation warrnings for postShipmentHistory");
|
|
1924
|
+
console.log(warrning);
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
const query_params = {};
|
|
1928
|
+
|
|
1929
|
+
const xHeaders = {};
|
|
1930
|
+
|
|
1931
|
+
return PlatformAPIClient.execute(
|
|
1932
|
+
this.config,
|
|
1933
|
+
"post",
|
|
1934
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/shipment/history`,
|
|
1935
|
+
query_params,
|
|
1936
|
+
body,
|
|
1937
|
+
xHeaders
|
|
1938
|
+
);
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1518
1941
|
/**
|
|
1519
1942
|
* @param {Object} arg - Arg object.
|
|
1520
1943
|
* @param {SendSmsPayload} arg.body
|
|
@@ -1532,6 +1955,18 @@ class Order {
|
|
|
1532
1955
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1533
1956
|
}
|
|
1534
1957
|
|
|
1958
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1959
|
+
const { error: warrning } = OrderValidator.sendSmsNinja().validate(
|
|
1960
|
+
{
|
|
1961
|
+
body,
|
|
1962
|
+
},
|
|
1963
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1964
|
+
);
|
|
1965
|
+
if (warrning) {
|
|
1966
|
+
console.log("Parameter Validation warrnings for sendSmsNinja");
|
|
1967
|
+
console.log(warrning);
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1535
1970
|
const query_params = {};
|
|
1536
1971
|
|
|
1537
1972
|
const xHeaders = {};
|
|
@@ -1565,6 +2000,22 @@ class Order {
|
|
|
1565
2000
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1566
2001
|
}
|
|
1567
2002
|
|
|
2003
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2004
|
+
const {
|
|
2005
|
+
error: warrning,
|
|
2006
|
+
} = OrderValidator.platformManualAssignDPToShipment().validate(
|
|
2007
|
+
{
|
|
2008
|
+
body,
|
|
2009
|
+
},
|
|
2010
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2011
|
+
);
|
|
2012
|
+
if (warrning) {
|
|
2013
|
+
console.log(
|
|
2014
|
+
"Parameter Validation warrnings for platformManualAssignDPToShipment"
|
|
2015
|
+
);
|
|
2016
|
+
console.log(warrning);
|
|
2017
|
+
}
|
|
2018
|
+
|
|
1568
2019
|
const query_params = {};
|
|
1569
2020
|
|
|
1570
2021
|
const xHeaders = {};
|
|
@@ -1596,6 +2047,22 @@ class Order {
|
|
|
1596
2047
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1597
2048
|
}
|
|
1598
2049
|
|
|
2050
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2051
|
+
const {
|
|
2052
|
+
error: warrning,
|
|
2053
|
+
} = OrderValidator.updatePackagingDimensions().validate(
|
|
2054
|
+
{
|
|
2055
|
+
body,
|
|
2056
|
+
},
|
|
2057
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2058
|
+
);
|
|
2059
|
+
if (warrning) {
|
|
2060
|
+
console.log(
|
|
2061
|
+
"Parameter Validation warrnings for updatePackagingDimensions"
|
|
2062
|
+
);
|
|
2063
|
+
console.log(warrning);
|
|
2064
|
+
}
|
|
2065
|
+
|
|
1599
2066
|
const query_params = {};
|
|
1600
2067
|
|
|
1601
2068
|
const xHeaders = {};
|
|
@@ -1627,6 +2094,18 @@ class Order {
|
|
|
1627
2094
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1628
2095
|
}
|
|
1629
2096
|
|
|
2097
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2098
|
+
const { error: warrning } = OrderValidator.createOrder().validate(
|
|
2099
|
+
{
|
|
2100
|
+
body,
|
|
2101
|
+
},
|
|
2102
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2103
|
+
);
|
|
2104
|
+
if (warrning) {
|
|
2105
|
+
console.log("Parameter Validation warrnings for createOrder");
|
|
2106
|
+
console.log(warrning);
|
|
2107
|
+
}
|
|
2108
|
+
|
|
1630
2109
|
const query_params = {};
|
|
1631
2110
|
|
|
1632
2111
|
const xHeaders = {};
|
|
@@ -1643,59 +2122,81 @@ class Order {
|
|
|
1643
2122
|
|
|
1644
2123
|
/**
|
|
1645
2124
|
* @param {Object} arg - Arg object.
|
|
1646
|
-
* @param {CreateChannelConfigData} arg.body
|
|
1647
2125
|
* @summary:
|
|
1648
|
-
* @description:
|
|
2126
|
+
* @description: getChannelConfig
|
|
1649
2127
|
*/
|
|
1650
|
-
|
|
1651
|
-
const { error } = OrderValidator.
|
|
1652
|
-
{
|
|
1653
|
-
body,
|
|
1654
|
-
},
|
|
2128
|
+
getChannelConfig({} = {}) {
|
|
2129
|
+
const { error } = OrderValidator.getChannelConfig().validate(
|
|
2130
|
+
{},
|
|
1655
2131
|
{ abortEarly: false, allowUnknown: true }
|
|
1656
2132
|
);
|
|
1657
2133
|
if (error) {
|
|
1658
2134
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1659
2135
|
}
|
|
1660
2136
|
|
|
2137
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2138
|
+
const { error: warrning } = OrderValidator.getChannelConfig().validate(
|
|
2139
|
+
{},
|
|
2140
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2141
|
+
);
|
|
2142
|
+
if (warrning) {
|
|
2143
|
+
console.log("Parameter Validation warrnings for getChannelConfig");
|
|
2144
|
+
console.log(warrning);
|
|
2145
|
+
}
|
|
2146
|
+
|
|
1661
2147
|
const query_params = {};
|
|
1662
2148
|
|
|
1663
2149
|
const xHeaders = {};
|
|
1664
2150
|
|
|
1665
2151
|
return PlatformAPIClient.execute(
|
|
1666
2152
|
this.config,
|
|
1667
|
-
"
|
|
2153
|
+
"get",
|
|
1668
2154
|
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/order-config`,
|
|
1669
2155
|
query_params,
|
|
1670
|
-
|
|
2156
|
+
undefined,
|
|
1671
2157
|
xHeaders
|
|
1672
2158
|
);
|
|
1673
2159
|
}
|
|
1674
2160
|
|
|
1675
2161
|
/**
|
|
1676
2162
|
* @param {Object} arg - Arg object.
|
|
2163
|
+
* @param {CreateChannelConfigData} arg.body
|
|
1677
2164
|
* @summary:
|
|
1678
|
-
* @description:
|
|
2165
|
+
* @description: createChannelConfig
|
|
1679
2166
|
*/
|
|
1680
|
-
|
|
1681
|
-
const { error } = OrderValidator.
|
|
1682
|
-
{
|
|
2167
|
+
createChannelConfig({ body } = {}) {
|
|
2168
|
+
const { error } = OrderValidator.createChannelConfig().validate(
|
|
2169
|
+
{
|
|
2170
|
+
body,
|
|
2171
|
+
},
|
|
1683
2172
|
{ abortEarly: false, allowUnknown: true }
|
|
1684
2173
|
);
|
|
1685
2174
|
if (error) {
|
|
1686
2175
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1687
2176
|
}
|
|
1688
2177
|
|
|
2178
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2179
|
+
const { error: warrning } = OrderValidator.createChannelConfig().validate(
|
|
2180
|
+
{
|
|
2181
|
+
body,
|
|
2182
|
+
},
|
|
2183
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2184
|
+
);
|
|
2185
|
+
if (warrning) {
|
|
2186
|
+
console.log("Parameter Validation warrnings for createChannelConfig");
|
|
2187
|
+
console.log(warrning);
|
|
2188
|
+
}
|
|
2189
|
+
|
|
1689
2190
|
const query_params = {};
|
|
1690
2191
|
|
|
1691
2192
|
const xHeaders = {};
|
|
1692
2193
|
|
|
1693
2194
|
return PlatformAPIClient.execute(
|
|
1694
2195
|
this.config,
|
|
1695
|
-
"
|
|
2196
|
+
"post",
|
|
1696
2197
|
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/order-config`,
|
|
1697
2198
|
query_params,
|
|
1698
|
-
|
|
2199
|
+
body,
|
|
1699
2200
|
xHeaders
|
|
1700
2201
|
);
|
|
1701
2202
|
}
|
|
@@ -1717,6 +2218,18 @@ class Order {
|
|
|
1717
2218
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1718
2219
|
}
|
|
1719
2220
|
|
|
2221
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2222
|
+
const { error: warrning } = OrderValidator.uploadConsent().validate(
|
|
2223
|
+
{
|
|
2224
|
+
body,
|
|
2225
|
+
},
|
|
2226
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2227
|
+
);
|
|
2228
|
+
if (warrning) {
|
|
2229
|
+
console.log("Parameter Validation warrnings for uploadConsent");
|
|
2230
|
+
console.log(warrning);
|
|
2231
|
+
}
|
|
2232
|
+
|
|
1720
2233
|
const query_params = {};
|
|
1721
2234
|
|
|
1722
2235
|
const xHeaders = {};
|
|
@@ -1748,6 +2261,18 @@ class Order {
|
|
|
1748
2261
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1749
2262
|
}
|
|
1750
2263
|
|
|
2264
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2265
|
+
const { error: warrning } = OrderValidator.orderUpdate().validate(
|
|
2266
|
+
{
|
|
2267
|
+
body,
|
|
2268
|
+
},
|
|
2269
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2270
|
+
);
|
|
2271
|
+
if (warrning) {
|
|
2272
|
+
console.log("Parameter Validation warrnings for orderUpdate");
|
|
2273
|
+
console.log(warrning);
|
|
2274
|
+
}
|
|
2275
|
+
|
|
1751
2276
|
const query_params = {};
|
|
1752
2277
|
|
|
1753
2278
|
const xHeaders = {};
|
|
@@ -1779,6 +2304,18 @@ class Order {
|
|
|
1779
2304
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1780
2305
|
}
|
|
1781
2306
|
|
|
2307
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2308
|
+
const { error: warrning } = OrderValidator.checkOrderStatus().validate(
|
|
2309
|
+
{
|
|
2310
|
+
body,
|
|
2311
|
+
},
|
|
2312
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2313
|
+
);
|
|
2314
|
+
if (warrning) {
|
|
2315
|
+
console.log("Parameter Validation warrnings for checkOrderStatus");
|
|
2316
|
+
console.log(warrning);
|
|
2317
|
+
}
|
|
2318
|
+
|
|
1782
2319
|
const query_params = {};
|
|
1783
2320
|
|
|
1784
2321
|
const xHeaders = {};
|
|
@@ -1807,6 +2344,16 @@ class Order {
|
|
|
1807
2344
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1808
2345
|
}
|
|
1809
2346
|
|
|
2347
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2348
|
+
const { error: warrning } = OrderValidator.sendSmsNinjaPlatform().validate(
|
|
2349
|
+
{},
|
|
2350
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2351
|
+
);
|
|
2352
|
+
if (warrning) {
|
|
2353
|
+
console.log("Parameter Validation warrnings for sendSmsNinjaPlatform");
|
|
2354
|
+
console.log(warrning);
|
|
2355
|
+
}
|
|
2356
|
+
|
|
1810
2357
|
const query_params = {};
|
|
1811
2358
|
|
|
1812
2359
|
const xHeaders = {};
|