@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
- package/sdk/application/Cart/CartApplicationClient.js +108 -1199
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +2 -92
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
- package/sdk/application/Content/ContentApplicationClient.d.ts +48 -111
- package/sdk/application/Content/ContentApplicationClient.js +43 -1065
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +5 -217
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +91 -493
- package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
- package/sdk/application/Order/OrderApplicationClient.js +52 -507
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +103 -213
- package/sdk/application/Payment/PaymentApplicationClient.js +84 -2105
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
- package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +7 -309
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +44 -1820
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +157 -30
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1177 -56
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1662 -249
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +774 -162
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +141 -12
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5060 -1300
- package/sdk/platform/Cart/CartPlatformModel.js +1985 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +178 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +468 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6554 -1772
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3264 -1690
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +116 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +85 -24
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +122 -191
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +447 -831
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +174 -220
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +164 -199
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1233 -476
- package/sdk/platform/Content/ContentPlatformModel.js +514 -487
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +424 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7747 -1342
- package/sdk/platform/Order/OrderPlatformModel.js +3960 -1262
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +292 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +145 -77
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +132 -44
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +681 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2458 -650
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1266 -572
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +176 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -7
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +795 -7
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Partner/PartnerPublicClient.js +4 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +12 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
3
|
-
FDKClientValidationError,
|
|
4
|
-
FDKResponseValidationError,
|
|
5
|
-
} = require("../../common/FDKError");
|
|
6
2
|
const constructUrl = require("../constructUrl");
|
|
7
3
|
const Paginator = require("../../common/Paginator");
|
|
8
|
-
const LogisticApplicationValidator = require("./LogisticApplicationValidator");
|
|
9
|
-
const LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
|
-
const Joi = require("joi");
|
|
12
4
|
|
|
13
5
|
class Logistic {
|
|
14
6
|
constructor(_conf) {
|
|
@@ -18,6 +10,10 @@ class Logistic {
|
|
|
18
10
|
getCountries: "/service/application/logistics/v2.0/countries",
|
|
19
11
|
getCountry:
|
|
20
12
|
"/service/application/logistics/v1.0/countries/{country_iso_code}",
|
|
13
|
+
getCourierPartners:
|
|
14
|
+
"/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners",
|
|
15
|
+
getDeliveryPromise:
|
|
16
|
+
"/service/application/logistics/v1.0/delivery-promise",
|
|
21
17
|
getLocalities:
|
|
22
18
|
"/service/application/logistics/v1.0/localities/{locality_type}",
|
|
23
19
|
getLocality:
|
|
@@ -48,10 +44,9 @@ class Logistic {
|
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
/**
|
|
51
|
-
* @param {LogisticApplicationValidator.GetAllCountriesParam} arg - Arg object.
|
|
52
47
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
53
48
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
54
|
-
* @returns {Promise<
|
|
49
|
+
* @returns {Promise<CountryListResult>} - Success response
|
|
55
50
|
* @name getAllCountries
|
|
56
51
|
* @summary: Get deliverable countries
|
|
57
52
|
* @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
|
|
@@ -60,28 +55,6 @@ class Logistic {
|
|
|
60
55
|
{ requestHeaders } = { requestHeaders: {} },
|
|
61
56
|
{ responseHeaders } = { responseHeaders: false }
|
|
62
57
|
) {
|
|
63
|
-
const { error } = LogisticApplicationValidator.getAllCountries().validate(
|
|
64
|
-
{},
|
|
65
|
-
{ abortEarly: false, allowUnknown: true }
|
|
66
|
-
);
|
|
67
|
-
if (error) {
|
|
68
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// Showing warrnings if extra unknown parameters are found
|
|
72
|
-
const {
|
|
73
|
-
error: warrning,
|
|
74
|
-
} = LogisticApplicationValidator.getAllCountries().validate(
|
|
75
|
-
{},
|
|
76
|
-
{ abortEarly: false, allowUnknown: false }
|
|
77
|
-
);
|
|
78
|
-
if (warrning) {
|
|
79
|
-
Logger({
|
|
80
|
-
level: "WARN",
|
|
81
|
-
message: `Parameter Validation warrnings for application > Logistic > getAllCountries \n ${warrning}`,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
58
|
const query_params = {};
|
|
86
59
|
|
|
87
60
|
const xHeaders = {};
|
|
@@ -104,69 +77,29 @@ class Logistic {
|
|
|
104
77
|
responseData = response[0];
|
|
105
78
|
}
|
|
106
79
|
|
|
107
|
-
const {
|
|
108
|
-
error: res_error,
|
|
109
|
-
} = LogisticApplicationModel.CountryListResponse().validate(responseData, {
|
|
110
|
-
abortEarly: false,
|
|
111
|
-
allowUnknown: true,
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
if (res_error) {
|
|
115
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
116
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
117
|
-
} else {
|
|
118
|
-
Logger({
|
|
119
|
-
level: "WARN",
|
|
120
|
-
message: `Response Validation Warnings for application > Logistic > getAllCountries \n ${res_error}`,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
80
|
return response;
|
|
126
81
|
}
|
|
127
82
|
|
|
128
83
|
/**
|
|
129
|
-
* @param {LogisticApplicationValidator.GetCountriesParam} arg - Arg object.
|
|
130
84
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
131
85
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
132
|
-
* @returns {Promise<
|
|
86
|
+
* @returns {Promise<GetCountries>} - Success response
|
|
133
87
|
* @name getCountries
|
|
134
88
|
* @summary: Get countries
|
|
135
89
|
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
136
90
|
*/
|
|
137
91
|
async getCountries(
|
|
138
|
-
{ onboarding, pageNo, pageSize, q, requestHeaders } = {
|
|
92
|
+
{ onboarding, pageNo, pageSize, q, hierarchy, requestHeaders } = {
|
|
139
93
|
requestHeaders: {},
|
|
140
94
|
},
|
|
141
95
|
{ responseHeaders } = { responseHeaders: false }
|
|
142
96
|
) {
|
|
143
|
-
const { error } = LogisticApplicationValidator.getCountries().validate(
|
|
144
|
-
{ onboarding, pageNo, pageSize, q },
|
|
145
|
-
{ abortEarly: false, allowUnknown: true }
|
|
146
|
-
);
|
|
147
|
-
if (error) {
|
|
148
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// Showing warrnings if extra unknown parameters are found
|
|
152
|
-
const {
|
|
153
|
-
error: warrning,
|
|
154
|
-
} = LogisticApplicationValidator.getCountries().validate(
|
|
155
|
-
{ onboarding, pageNo, pageSize, q },
|
|
156
|
-
{ abortEarly: false, allowUnknown: false }
|
|
157
|
-
);
|
|
158
|
-
if (warrning) {
|
|
159
|
-
Logger({
|
|
160
|
-
level: "WARN",
|
|
161
|
-
message: `Parameter Validation warrnings for application > Logistic > getCountries \n ${warrning}`,
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
|
|
165
97
|
const query_params = {};
|
|
166
98
|
query_params["onboarding"] = onboarding;
|
|
167
99
|
query_params["page_no"] = pageNo;
|
|
168
100
|
query_params["page_size"] = pageSize;
|
|
169
101
|
query_params["q"] = q;
|
|
102
|
+
query_params["hierarchy"] = hierarchy;
|
|
170
103
|
|
|
171
104
|
const xHeaders = {};
|
|
172
105
|
|
|
@@ -188,32 +121,13 @@ class Logistic {
|
|
|
188
121
|
responseData = response[0];
|
|
189
122
|
}
|
|
190
123
|
|
|
191
|
-
const {
|
|
192
|
-
error: res_error,
|
|
193
|
-
} = LogisticApplicationModel.GetCountries().validate(responseData, {
|
|
194
|
-
abortEarly: false,
|
|
195
|
-
allowUnknown: true,
|
|
196
|
-
});
|
|
197
|
-
|
|
198
|
-
if (res_error) {
|
|
199
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
200
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
201
|
-
} else {
|
|
202
|
-
Logger({
|
|
203
|
-
level: "WARN",
|
|
204
|
-
message: `Response Validation Warnings for application > Logistic > getCountries \n ${res_error}`,
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
124
|
return response;
|
|
210
125
|
}
|
|
211
126
|
|
|
212
127
|
/**
|
|
213
|
-
* @param {LogisticApplicationValidator.GetCountryParam} arg - Arg object.
|
|
214
128
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
215
129
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
216
|
-
* @returns {Promise<
|
|
130
|
+
* @returns {Promise<GetCountry>} - Success response
|
|
217
131
|
* @name getCountry
|
|
218
132
|
* @summary: Get country details
|
|
219
133
|
* @description: Get details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
|
|
@@ -222,29 +136,83 @@ class Logistic {
|
|
|
222
136
|
{ countryIsoCode, requestHeaders } = { requestHeaders: {} },
|
|
223
137
|
{ responseHeaders } = { responseHeaders: false }
|
|
224
138
|
) {
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
|
|
139
|
+
const query_params = {};
|
|
140
|
+
|
|
141
|
+
const xHeaders = {};
|
|
142
|
+
|
|
143
|
+
const response = await ApplicationAPIClient.execute(
|
|
144
|
+
this._conf,
|
|
145
|
+
"get",
|
|
146
|
+
constructUrl({
|
|
147
|
+
url: this._urls["getCountry"],
|
|
148
|
+
params: { countryIsoCode },
|
|
149
|
+
}),
|
|
150
|
+
query_params,
|
|
151
|
+
undefined,
|
|
152
|
+
{ ...xHeaders, ...requestHeaders },
|
|
153
|
+
{ responseHeaders }
|
|
228
154
|
);
|
|
229
|
-
|
|
230
|
-
|
|
155
|
+
|
|
156
|
+
let responseData = response;
|
|
157
|
+
if (responseHeaders) {
|
|
158
|
+
responseData = response[0];
|
|
231
159
|
}
|
|
232
160
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
161
|
+
return response;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
166
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
167
|
+
* @returns {Promise<ShipmentCourierPartnerResult>} - Success response
|
|
168
|
+
* @name getCourierPartners
|
|
169
|
+
* @summary: Serviceable Courier Partners.
|
|
170
|
+
* @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
|
|
171
|
+
*/
|
|
172
|
+
async getCourierPartners(
|
|
173
|
+
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
174
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
175
|
+
) {
|
|
176
|
+
const query_params = {};
|
|
177
|
+
|
|
178
|
+
const xHeaders = {};
|
|
179
|
+
|
|
180
|
+
const response = await ApplicationAPIClient.execute(
|
|
181
|
+
this._conf,
|
|
182
|
+
"post",
|
|
183
|
+
constructUrl({
|
|
184
|
+
url: this._urls["getCourierPartners"],
|
|
185
|
+
params: { companyId, applicationId },
|
|
186
|
+
}),
|
|
187
|
+
query_params,
|
|
188
|
+
body,
|
|
189
|
+
{ ...xHeaders, ...requestHeaders },
|
|
190
|
+
{ responseHeaders }
|
|
239
191
|
);
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
});
|
|
192
|
+
|
|
193
|
+
let responseData = response;
|
|
194
|
+
if (responseHeaders) {
|
|
195
|
+
responseData = response[0];
|
|
245
196
|
}
|
|
246
197
|
|
|
198
|
+
return response;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
203
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
204
|
+
* @returns {Promise<GetPromiseDetails>} - Success response
|
|
205
|
+
* @name getDeliveryPromise
|
|
206
|
+
* @summary: Get delivery promise
|
|
207
|
+
* @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
|
|
208
|
+
*/
|
|
209
|
+
async getDeliveryPromise(
|
|
210
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
211
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
212
|
+
) {
|
|
247
213
|
const query_params = {};
|
|
214
|
+
query_params["page_no"] = pageNo;
|
|
215
|
+
query_params["page_size"] = pageSize;
|
|
248
216
|
|
|
249
217
|
const xHeaders = {};
|
|
250
218
|
|
|
@@ -252,8 +220,8 @@ class Logistic {
|
|
|
252
220
|
this._conf,
|
|
253
221
|
"get",
|
|
254
222
|
constructUrl({
|
|
255
|
-
url: this._urls["
|
|
256
|
-
params: {
|
|
223
|
+
url: this._urls["getDeliveryPromise"],
|
|
224
|
+
params: {},
|
|
257
225
|
}),
|
|
258
226
|
query_params,
|
|
259
227
|
undefined,
|
|
@@ -266,32 +234,13 @@ class Logistic {
|
|
|
266
234
|
responseData = response[0];
|
|
267
235
|
}
|
|
268
236
|
|
|
269
|
-
const {
|
|
270
|
-
error: res_error,
|
|
271
|
-
} = LogisticApplicationModel.GetCountry().validate(responseData, {
|
|
272
|
-
abortEarly: false,
|
|
273
|
-
allowUnknown: true,
|
|
274
|
-
});
|
|
275
|
-
|
|
276
|
-
if (res_error) {
|
|
277
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
278
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
279
|
-
} else {
|
|
280
|
-
Logger({
|
|
281
|
-
level: "WARN",
|
|
282
|
-
message: `Response Validation Warnings for application > Logistic > getCountry \n ${res_error}`,
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
237
|
return response;
|
|
288
238
|
}
|
|
289
239
|
|
|
290
240
|
/**
|
|
291
|
-
* @param {LogisticApplicationValidator.GetLocalitiesParam} arg - Arg object.
|
|
292
241
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
293
242
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
294
|
-
* @returns {Promise<
|
|
243
|
+
* @returns {Promise<GetLocalities>} - Success response
|
|
295
244
|
* @name getLocalities
|
|
296
245
|
* @summary: Get localities
|
|
297
246
|
* @description: Get geographical data for a specific type of locality based on the provided filters. For instance, obtain a list of cities for a given country and state. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
|
|
@@ -305,32 +254,11 @@ class Logistic {
|
|
|
305
254
|
pageNo,
|
|
306
255
|
pageSize,
|
|
307
256
|
q,
|
|
257
|
+
sector,
|
|
308
258
|
requestHeaders,
|
|
309
259
|
} = { requestHeaders: {} },
|
|
310
260
|
{ responseHeaders } = { responseHeaders: false }
|
|
311
261
|
) {
|
|
312
|
-
const { error } = LogisticApplicationValidator.getLocalities().validate(
|
|
313
|
-
{ localityType, country, state, city, pageNo, pageSize, q },
|
|
314
|
-
{ abortEarly: false, allowUnknown: true }
|
|
315
|
-
);
|
|
316
|
-
if (error) {
|
|
317
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
// Showing warrnings if extra unknown parameters are found
|
|
321
|
-
const {
|
|
322
|
-
error: warrning,
|
|
323
|
-
} = LogisticApplicationValidator.getLocalities().validate(
|
|
324
|
-
{ localityType, country, state, city, pageNo, pageSize, q },
|
|
325
|
-
{ abortEarly: false, allowUnknown: false }
|
|
326
|
-
);
|
|
327
|
-
if (warrning) {
|
|
328
|
-
Logger({
|
|
329
|
-
level: "WARN",
|
|
330
|
-
message: `Parameter Validation warrnings for application > Logistic > getLocalities \n ${warrning}`,
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
|
|
334
262
|
const query_params = {};
|
|
335
263
|
query_params["country"] = country;
|
|
336
264
|
query_params["state"] = state;
|
|
@@ -338,6 +266,7 @@ class Logistic {
|
|
|
338
266
|
query_params["page_no"] = pageNo;
|
|
339
267
|
query_params["page_size"] = pageSize;
|
|
340
268
|
query_params["q"] = q;
|
|
269
|
+
query_params["sector"] = sector;
|
|
341
270
|
|
|
342
271
|
const xHeaders = {};
|
|
343
272
|
|
|
@@ -359,32 +288,13 @@ class Logistic {
|
|
|
359
288
|
responseData = response[0];
|
|
360
289
|
}
|
|
361
290
|
|
|
362
|
-
const {
|
|
363
|
-
error: res_error,
|
|
364
|
-
} = LogisticApplicationModel.GetLocalities().validate(responseData, {
|
|
365
|
-
abortEarly: false,
|
|
366
|
-
allowUnknown: true,
|
|
367
|
-
});
|
|
368
|
-
|
|
369
|
-
if (res_error) {
|
|
370
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
371
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
372
|
-
} else {
|
|
373
|
-
Logger({
|
|
374
|
-
level: "WARN",
|
|
375
|
-
message: `Response Validation Warnings for application > Logistic > getLocalities \n ${res_error}`,
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
|
|
380
291
|
return response;
|
|
381
292
|
}
|
|
382
293
|
|
|
383
294
|
/**
|
|
384
|
-
* @param {LogisticApplicationValidator.GetLocalityParam} arg - Arg object.
|
|
385
295
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
386
296
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
387
|
-
* @returns {Promise<
|
|
297
|
+
* @returns {Promise<GetLocality>} - Success response
|
|
388
298
|
* @name getLocality
|
|
389
299
|
* @summary: Get locality detail
|
|
390
300
|
* @description: Get detailed geographical data for a specific locality, such as a pincode. For example, for a pincode value of 400603, the service returns its parent locations, including city, state, and country details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocality/).
|
|
@@ -395,28 +305,6 @@ class Logistic {
|
|
|
395
305
|
},
|
|
396
306
|
{ responseHeaders } = { responseHeaders: false }
|
|
397
307
|
) {
|
|
398
|
-
const { error } = LogisticApplicationValidator.getLocality().validate(
|
|
399
|
-
{ localityType, localityValue, country, state, city },
|
|
400
|
-
{ abortEarly: false, allowUnknown: true }
|
|
401
|
-
);
|
|
402
|
-
if (error) {
|
|
403
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
// Showing warrnings if extra unknown parameters are found
|
|
407
|
-
const {
|
|
408
|
-
error: warrning,
|
|
409
|
-
} = LogisticApplicationValidator.getLocality().validate(
|
|
410
|
-
{ localityType, localityValue, country, state, city },
|
|
411
|
-
{ abortEarly: false, allowUnknown: false }
|
|
412
|
-
);
|
|
413
|
-
if (warrning) {
|
|
414
|
-
Logger({
|
|
415
|
-
level: "WARN",
|
|
416
|
-
message: `Parameter Validation warrnings for application > Logistic > getLocality \n ${warrning}`,
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
|
|
420
308
|
const query_params = {};
|
|
421
309
|
query_params["country"] = country;
|
|
422
310
|
query_params["state"] = state;
|
|
@@ -442,32 +330,13 @@ class Logistic {
|
|
|
442
330
|
responseData = response[0];
|
|
443
331
|
}
|
|
444
332
|
|
|
445
|
-
const {
|
|
446
|
-
error: res_error,
|
|
447
|
-
} = LogisticApplicationModel.GetLocality().validate(responseData, {
|
|
448
|
-
abortEarly: false,
|
|
449
|
-
allowUnknown: true,
|
|
450
|
-
});
|
|
451
|
-
|
|
452
|
-
if (res_error) {
|
|
453
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
454
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
455
|
-
} else {
|
|
456
|
-
Logger({
|
|
457
|
-
level: "WARN",
|
|
458
|
-
message: `Response Validation Warnings for application > Logistic > getLocality \n ${res_error}`,
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
333
|
return response;
|
|
464
334
|
}
|
|
465
335
|
|
|
466
336
|
/**
|
|
467
|
-
* @param {LogisticApplicationValidator.GetLocationsParam} arg - Arg object.
|
|
468
337
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
469
338
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
470
|
-
* @returns {Promise<
|
|
339
|
+
* @returns {Promise<GetStoreResult>} - Success response
|
|
471
340
|
* @name getLocations
|
|
472
341
|
* @summary: Get available selling locations
|
|
473
342
|
* @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
|
|
@@ -487,48 +356,6 @@ class Logistic {
|
|
|
487
356
|
} = { requestHeaders: {} },
|
|
488
357
|
{ responseHeaders } = { responseHeaders: false }
|
|
489
358
|
) {
|
|
490
|
-
const { error } = LogisticApplicationValidator.getLocations().validate(
|
|
491
|
-
{
|
|
492
|
-
xApplicationId,
|
|
493
|
-
xApplicationData,
|
|
494
|
-
country,
|
|
495
|
-
state,
|
|
496
|
-
city,
|
|
497
|
-
pincode,
|
|
498
|
-
sector,
|
|
499
|
-
pageNo,
|
|
500
|
-
pageSize,
|
|
501
|
-
},
|
|
502
|
-
{ abortEarly: false, allowUnknown: true }
|
|
503
|
-
);
|
|
504
|
-
if (error) {
|
|
505
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
// Showing warrnings if extra unknown parameters are found
|
|
509
|
-
const {
|
|
510
|
-
error: warrning,
|
|
511
|
-
} = LogisticApplicationValidator.getLocations().validate(
|
|
512
|
-
{
|
|
513
|
-
xApplicationId,
|
|
514
|
-
xApplicationData,
|
|
515
|
-
country,
|
|
516
|
-
state,
|
|
517
|
-
city,
|
|
518
|
-
pincode,
|
|
519
|
-
sector,
|
|
520
|
-
pageNo,
|
|
521
|
-
pageSize,
|
|
522
|
-
},
|
|
523
|
-
{ abortEarly: false, allowUnknown: false }
|
|
524
|
-
);
|
|
525
|
-
if (warrning) {
|
|
526
|
-
Logger({
|
|
527
|
-
level: "WARN",
|
|
528
|
-
message: `Parameter Validation warrnings for application > Logistic > getLocations \n ${warrning}`,
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
|
|
532
359
|
const query_params = {};
|
|
533
360
|
query_params["x-application-id"] = xApplicationId;
|
|
534
361
|
query_params["x-application-data"] = xApplicationData;
|
|
@@ -560,33 +387,13 @@ class Logistic {
|
|
|
560
387
|
responseData = response[0];
|
|
561
388
|
}
|
|
562
389
|
|
|
563
|
-
const {
|
|
564
|
-
error: res_error,
|
|
565
|
-
} = LogisticApplicationModel.GetStoreResponse().validate(responseData, {
|
|
566
|
-
abortEarly: false,
|
|
567
|
-
allowUnknown: true,
|
|
568
|
-
});
|
|
569
|
-
|
|
570
|
-
if (res_error) {
|
|
571
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
572
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
573
|
-
} else {
|
|
574
|
-
Logger({
|
|
575
|
-
level: "WARN",
|
|
576
|
-
message: `Response Validation Warnings for application > Logistic > getLocations \n ${res_error}`,
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
|
|
581
390
|
return response;
|
|
582
391
|
}
|
|
583
392
|
|
|
584
393
|
/**
|
|
585
|
-
* @param {LogisticApplicationValidator.GetOptimalLocationsParam} arg - Arg object.
|
|
586
394
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
587
395
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
588
|
-
* @returns {Promise<
|
|
589
|
-
* Success response
|
|
396
|
+
* @returns {Promise<ReAssignStoreResult>} - Success response
|
|
590
397
|
* @name getOptimalLocations
|
|
591
398
|
* @summary: Get selling locations
|
|
592
399
|
* @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
|
|
@@ -595,30 +402,6 @@ class Logistic {
|
|
|
595
402
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
596
403
|
{ responseHeaders } = { responseHeaders: false }
|
|
597
404
|
) {
|
|
598
|
-
const {
|
|
599
|
-
error,
|
|
600
|
-
} = LogisticApplicationValidator.getOptimalLocations().validate(
|
|
601
|
-
{ body },
|
|
602
|
-
{ abortEarly: false, allowUnknown: true }
|
|
603
|
-
);
|
|
604
|
-
if (error) {
|
|
605
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
// Showing warrnings if extra unknown parameters are found
|
|
609
|
-
const {
|
|
610
|
-
error: warrning,
|
|
611
|
-
} = LogisticApplicationValidator.getOptimalLocations().validate(
|
|
612
|
-
{ body },
|
|
613
|
-
{ abortEarly: false, allowUnknown: false }
|
|
614
|
-
);
|
|
615
|
-
if (warrning) {
|
|
616
|
-
Logger({
|
|
617
|
-
level: "WARN",
|
|
618
|
-
message: `Parameter Validation warrnings for application > Logistic > getOptimalLocations \n ${warrning}`,
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
|
|
622
405
|
const query_params = {};
|
|
623
406
|
|
|
624
407
|
const xHeaders = {};
|
|
@@ -641,32 +424,13 @@ class Logistic {
|
|
|
641
424
|
responseData = response[0];
|
|
642
425
|
}
|
|
643
426
|
|
|
644
|
-
const {
|
|
645
|
-
error: res_error,
|
|
646
|
-
} = LogisticApplicationModel.ReAssignStoreResponse().validate(
|
|
647
|
-
responseData,
|
|
648
|
-
{ abortEarly: false, allowUnknown: true }
|
|
649
|
-
);
|
|
650
|
-
|
|
651
|
-
if (res_error) {
|
|
652
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
653
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
654
|
-
} else {
|
|
655
|
-
Logger({
|
|
656
|
-
level: "WARN",
|
|
657
|
-
message: `Response Validation Warnings for application > Logistic > getOptimalLocations \n ${res_error}`,
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
|
|
662
427
|
return response;
|
|
663
428
|
}
|
|
664
429
|
|
|
665
430
|
/**
|
|
666
|
-
* @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object.
|
|
667
431
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
668
432
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
669
|
-
* @returns {Promise<
|
|
433
|
+
* @returns {Promise<PincodeDetails>} - Success response
|
|
670
434
|
* @name getPincodeCity
|
|
671
435
|
* @summary: Get pincode details
|
|
672
436
|
* @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
|
|
@@ -675,28 +439,6 @@ class Logistic {
|
|
|
675
439
|
{ pincode, requestHeaders } = { requestHeaders: {} },
|
|
676
440
|
{ responseHeaders } = { responseHeaders: false }
|
|
677
441
|
) {
|
|
678
|
-
const { error } = LogisticApplicationValidator.getPincodeCity().validate(
|
|
679
|
-
{ pincode },
|
|
680
|
-
{ abortEarly: false, allowUnknown: true }
|
|
681
|
-
);
|
|
682
|
-
if (error) {
|
|
683
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
// Showing warrnings if extra unknown parameters are found
|
|
687
|
-
const {
|
|
688
|
-
error: warrning,
|
|
689
|
-
} = LogisticApplicationValidator.getPincodeCity().validate(
|
|
690
|
-
{ pincode },
|
|
691
|
-
{ abortEarly: false, allowUnknown: false }
|
|
692
|
-
);
|
|
693
|
-
if (warrning) {
|
|
694
|
-
Logger({
|
|
695
|
-
level: "WARN",
|
|
696
|
-
message: `Parameter Validation warrnings for application > Logistic > getPincodeCity \n ${warrning}`,
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
|
|
700
442
|
const query_params = {};
|
|
701
443
|
|
|
702
444
|
const xHeaders = {};
|
|
@@ -719,34 +461,13 @@ class Logistic {
|
|
|
719
461
|
responseData = response[0];
|
|
720
462
|
}
|
|
721
463
|
|
|
722
|
-
const {
|
|
723
|
-
error: res_error,
|
|
724
|
-
} = LogisticApplicationModel.PincodeApiResponse().validate(responseData, {
|
|
725
|
-
abortEarly: false,
|
|
726
|
-
allowUnknown: true,
|
|
727
|
-
});
|
|
728
|
-
|
|
729
|
-
if (res_error) {
|
|
730
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
731
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
732
|
-
} else {
|
|
733
|
-
Logger({
|
|
734
|
-
level: "WARN",
|
|
735
|
-
message: `Response Validation Warnings for application > Logistic > getPincodeCity \n ${res_error}`,
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
|
|
740
464
|
return response;
|
|
741
465
|
}
|
|
742
466
|
|
|
743
467
|
/**
|
|
744
|
-
* @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object.
|
|
745
468
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
746
469
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
747
|
-
* @returns {Promise<
|
|
748
|
-
* - Success response
|
|
749
|
-
*
|
|
470
|
+
* @returns {Promise<GetZoneFromPincodeViewResult>} - Success response
|
|
750
471
|
* @name getPincodeZones
|
|
751
472
|
* @summary: Get zones
|
|
752
473
|
* @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
|
|
@@ -755,28 +476,6 @@ class Logistic {
|
|
|
755
476
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
756
477
|
{ responseHeaders } = { responseHeaders: false }
|
|
757
478
|
) {
|
|
758
|
-
const { error } = LogisticApplicationValidator.getPincodeZones().validate(
|
|
759
|
-
{ body },
|
|
760
|
-
{ abortEarly: false, allowUnknown: true }
|
|
761
|
-
);
|
|
762
|
-
if (error) {
|
|
763
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
// Showing warrnings if extra unknown parameters are found
|
|
767
|
-
const {
|
|
768
|
-
error: warrning,
|
|
769
|
-
} = LogisticApplicationValidator.getPincodeZones().validate(
|
|
770
|
-
{ body },
|
|
771
|
-
{ abortEarly: false, allowUnknown: false }
|
|
772
|
-
);
|
|
773
|
-
if (warrning) {
|
|
774
|
-
Logger({
|
|
775
|
-
level: "WARN",
|
|
776
|
-
message: `Parameter Validation warrnings for application > Logistic > getPincodeZones \n ${warrning}`,
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
|
|
780
479
|
const query_params = {};
|
|
781
480
|
|
|
782
481
|
const xHeaders = {};
|
|
@@ -799,32 +498,13 @@ class Logistic {
|
|
|
799
498
|
responseData = response[0];
|
|
800
499
|
}
|
|
801
500
|
|
|
802
|
-
const {
|
|
803
|
-
error: res_error,
|
|
804
|
-
} = LogisticApplicationModel.GetZoneFromPincodeViewResponse().validate(
|
|
805
|
-
responseData,
|
|
806
|
-
{ abortEarly: false, allowUnknown: true }
|
|
807
|
-
);
|
|
808
|
-
|
|
809
|
-
if (res_error) {
|
|
810
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
811
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
812
|
-
} else {
|
|
813
|
-
Logger({
|
|
814
|
-
level: "WARN",
|
|
815
|
-
message: `Response Validation Warnings for application > Logistic > getPincodeZones \n ${res_error}`,
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
|
|
820
501
|
return response;
|
|
821
502
|
}
|
|
822
503
|
|
|
823
504
|
/**
|
|
824
|
-
* @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object.
|
|
825
505
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
826
506
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
827
|
-
* @returns {Promise<
|
|
507
|
+
* @returns {Promise<TATViewResult>} - Success response
|
|
828
508
|
* @name getTatProduct
|
|
829
509
|
* @summary: Get product's turnaround time
|
|
830
510
|
* @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
|
|
@@ -833,28 +513,6 @@ class Logistic {
|
|
|
833
513
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
834
514
|
{ responseHeaders } = { responseHeaders: false }
|
|
835
515
|
) {
|
|
836
|
-
const { error } = LogisticApplicationValidator.getTatProduct().validate(
|
|
837
|
-
{ body },
|
|
838
|
-
{ abortEarly: false, allowUnknown: true }
|
|
839
|
-
);
|
|
840
|
-
if (error) {
|
|
841
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
// Showing warrnings if extra unknown parameters are found
|
|
845
|
-
const {
|
|
846
|
-
error: warrning,
|
|
847
|
-
} = LogisticApplicationValidator.getTatProduct().validate(
|
|
848
|
-
{ body },
|
|
849
|
-
{ abortEarly: false, allowUnknown: false }
|
|
850
|
-
);
|
|
851
|
-
if (warrning) {
|
|
852
|
-
Logger({
|
|
853
|
-
level: "WARN",
|
|
854
|
-
message: `Parameter Validation warrnings for application > Logistic > getTatProduct \n ${warrning}`,
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
|
|
858
516
|
const query_params = {};
|
|
859
517
|
|
|
860
518
|
const xHeaders = {};
|
|
@@ -877,33 +535,13 @@ class Logistic {
|
|
|
877
535
|
responseData = response[0];
|
|
878
536
|
}
|
|
879
537
|
|
|
880
|
-
const {
|
|
881
|
-
error: res_error,
|
|
882
|
-
} = LogisticApplicationModel.TATViewResponse().validate(responseData, {
|
|
883
|
-
abortEarly: false,
|
|
884
|
-
allowUnknown: true,
|
|
885
|
-
});
|
|
886
|
-
|
|
887
|
-
if (res_error) {
|
|
888
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
889
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
890
|
-
} else {
|
|
891
|
-
Logger({
|
|
892
|
-
level: "WARN",
|
|
893
|
-
message: `Response Validation Warnings for application > Logistic > getTatProduct \n ${res_error}`,
|
|
894
|
-
});
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
|
|
898
538
|
return response;
|
|
899
539
|
}
|
|
900
540
|
|
|
901
541
|
/**
|
|
902
|
-
* @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object.
|
|
903
542
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
904
543
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
905
|
-
* @returns {Promise<
|
|
906
|
-
* Success response
|
|
544
|
+
* @returns {Promise<ValidateAddressDetails>} - Success response
|
|
907
545
|
* @name validateAddress
|
|
908
546
|
* @summary: Validate address
|
|
909
547
|
* @description: Validate addresses using specific templates customized for each country and tailored to various business scenarios. This validation ensures that the data conforms to the information currently stored in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/validateAddress/).
|
|
@@ -914,28 +552,6 @@ class Logistic {
|
|
|
914
552
|
},
|
|
915
553
|
{ responseHeaders } = { responseHeaders: false }
|
|
916
554
|
) {
|
|
917
|
-
const { error } = LogisticApplicationValidator.validateAddress().validate(
|
|
918
|
-
{ countryIsoCode, templateName, body },
|
|
919
|
-
{ abortEarly: false, allowUnknown: true }
|
|
920
|
-
);
|
|
921
|
-
if (error) {
|
|
922
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
// Showing warrnings if extra unknown parameters are found
|
|
926
|
-
const {
|
|
927
|
-
error: warrning,
|
|
928
|
-
} = LogisticApplicationValidator.validateAddress().validate(
|
|
929
|
-
{ countryIsoCode, templateName, body },
|
|
930
|
-
{ abortEarly: false, allowUnknown: false }
|
|
931
|
-
);
|
|
932
|
-
if (warrning) {
|
|
933
|
-
Logger({
|
|
934
|
-
level: "WARN",
|
|
935
|
-
message: `Parameter Validation warrnings for application > Logistic > validateAddress \n ${warrning}`,
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
|
|
939
555
|
const query_params = {};
|
|
940
556
|
|
|
941
557
|
const xHeaders = {};
|
|
@@ -958,24 +574,6 @@ class Logistic {
|
|
|
958
574
|
responseData = response[0];
|
|
959
575
|
}
|
|
960
576
|
|
|
961
|
-
const {
|
|
962
|
-
error: res_error,
|
|
963
|
-
} = LogisticApplicationModel.ValidateAddressRequest().validate(
|
|
964
|
-
responseData,
|
|
965
|
-
{ abortEarly: false, allowUnknown: true }
|
|
966
|
-
);
|
|
967
|
-
|
|
968
|
-
if (res_error) {
|
|
969
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
970
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
971
|
-
} else {
|
|
972
|
-
Logger({
|
|
973
|
-
level: "WARN",
|
|
974
|
-
message: `Response Validation Warnings for application > Logistic > validateAddress \n ${res_error}`,
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
|
|
979
577
|
return response;
|
|
980
578
|
}
|
|
981
579
|
}
|