@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +19 -793
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
1
|
const {
|
|
3
2
|
FDKClientValidationError,
|
|
4
3
|
FDKResponseValidationError,
|
|
5
4
|
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
6
7
|
const constructUrl = require("../constructUrl");
|
|
7
8
|
const Paginator = require("../../common/Paginator");
|
|
8
|
-
const
|
|
9
|
-
const LeadApplicationModel = require("./LeadApplicationModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
|
-
const Joi = require("joi");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
12
10
|
|
|
13
11
|
class Lead {
|
|
14
12
|
constructor(_conf) {
|
|
@@ -37,10 +35,9 @@ class Lead {
|
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
/**
|
|
40
|
-
* @param {LeadApplicationValidator.CreateHistoryParam} arg - Arg object.
|
|
41
38
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
42
39
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
43
|
-
* @returns {Promise<
|
|
40
|
+
* @returns {Promise<TicketHistory>} - Success response
|
|
44
41
|
* @name createHistory
|
|
45
42
|
* @summary: Log ticket history
|
|
46
43
|
* @description: Create a history entry for a specific support ticket. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/createHistory/).
|
|
@@ -49,26 +46,13 @@ class Lead {
|
|
|
49
46
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
50
47
|
{ responseHeaders } = { responseHeaders: false }
|
|
51
48
|
) {
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Showing warrnings if extra unknown parameters are found
|
|
61
|
-
const {
|
|
62
|
-
error: warrning,
|
|
63
|
-
} = LeadApplicationValidator.createHistory().validate(
|
|
64
|
-
{ id, body },
|
|
65
|
-
{ abortEarly: false, allowUnknown: false }
|
|
66
|
-
);
|
|
67
|
-
if (warrning) {
|
|
68
|
-
Logger({
|
|
69
|
-
level: "WARN",
|
|
70
|
-
message: `Parameter Validation warrnings for application > Lead > createHistory \n ${warrning}`,
|
|
49
|
+
const errors = validateRequiredParams(arguments[0], ["id"]);
|
|
50
|
+
if (errors.length > 0) {
|
|
51
|
+
const error = new FDKClientValidationError({
|
|
52
|
+
message: "Missing required field",
|
|
53
|
+
details: errors,
|
|
71
54
|
});
|
|
55
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
72
56
|
}
|
|
73
57
|
|
|
74
58
|
const query_params = {};
|
|
@@ -93,32 +77,13 @@ class Lead {
|
|
|
93
77
|
responseData = response[0];
|
|
94
78
|
}
|
|
95
79
|
|
|
96
|
-
const {
|
|
97
|
-
error: res_error,
|
|
98
|
-
} = LeadApplicationModel.TicketHistory().validate(responseData, {
|
|
99
|
-
abortEarly: false,
|
|
100
|
-
allowUnknown: true,
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
if (res_error) {
|
|
104
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
105
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
106
|
-
} else {
|
|
107
|
-
Logger({
|
|
108
|
-
level: "WARN",
|
|
109
|
-
message: `Response Validation Warnings for application > Lead > createHistory \n ${res_error}`,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
80
|
return response;
|
|
115
81
|
}
|
|
116
82
|
|
|
117
83
|
/**
|
|
118
|
-
* @param {LeadApplicationValidator.CreateTicketParam} arg - Arg object.
|
|
119
84
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
120
85
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
121
|
-
* @returns {Promise<
|
|
86
|
+
* @returns {Promise<Ticket>} - Success response
|
|
122
87
|
* @name createTicket
|
|
123
88
|
* @summary: Creates a ticket
|
|
124
89
|
* @description: Create a new customer support ticket for a user query. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/createTicket/).
|
|
@@ -127,28 +92,6 @@ class Lead {
|
|
|
127
92
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
128
93
|
{ responseHeaders } = { responseHeaders: false }
|
|
129
94
|
) {
|
|
130
|
-
const { error } = LeadApplicationValidator.createTicket().validate(
|
|
131
|
-
{ body },
|
|
132
|
-
{ abortEarly: false, allowUnknown: true }
|
|
133
|
-
);
|
|
134
|
-
if (error) {
|
|
135
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// Showing warrnings if extra unknown parameters are found
|
|
139
|
-
const {
|
|
140
|
-
error: warrning,
|
|
141
|
-
} = LeadApplicationValidator.createTicket().validate(
|
|
142
|
-
{ body },
|
|
143
|
-
{ abortEarly: false, allowUnknown: false }
|
|
144
|
-
);
|
|
145
|
-
if (warrning) {
|
|
146
|
-
Logger({
|
|
147
|
-
level: "WARN",
|
|
148
|
-
message: `Parameter Validation warrnings for application > Lead > createTicket \n ${warrning}`,
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
|
|
152
95
|
const query_params = {};
|
|
153
96
|
|
|
154
97
|
const xHeaders = {};
|
|
@@ -171,32 +114,13 @@ class Lead {
|
|
|
171
114
|
responseData = response[0];
|
|
172
115
|
}
|
|
173
116
|
|
|
174
|
-
const {
|
|
175
|
-
error: res_error,
|
|
176
|
-
} = LeadApplicationModel.Ticket().validate(responseData, {
|
|
177
|
-
abortEarly: false,
|
|
178
|
-
allowUnknown: true,
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
if (res_error) {
|
|
182
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
183
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
184
|
-
} else {
|
|
185
|
-
Logger({
|
|
186
|
-
level: "WARN",
|
|
187
|
-
message: `Response Validation Warnings for application > Lead > createTicket \n ${res_error}`,
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
117
|
return response;
|
|
193
118
|
}
|
|
194
119
|
|
|
195
120
|
/**
|
|
196
|
-
* @param {LeadApplicationValidator.GetCustomFormParam} arg - Arg object.
|
|
197
121
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
198
122
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
199
|
-
* @returns {Promise<
|
|
123
|
+
* @returns {Promise<CustomForm>} - Success response
|
|
200
124
|
* @name getCustomForm
|
|
201
125
|
* @summary: Get custom form
|
|
202
126
|
* @description: Get a customizable form template for data collection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/getCustomForm/).
|
|
@@ -205,26 +129,13 @@ class Lead {
|
|
|
205
129
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
206
130
|
{ responseHeaders } = { responseHeaders: false }
|
|
207
131
|
) {
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// Showing warrnings if extra unknown parameters are found
|
|
217
|
-
const {
|
|
218
|
-
error: warrning,
|
|
219
|
-
} = LeadApplicationValidator.getCustomForm().validate(
|
|
220
|
-
{ slug },
|
|
221
|
-
{ abortEarly: false, allowUnknown: false }
|
|
222
|
-
);
|
|
223
|
-
if (warrning) {
|
|
224
|
-
Logger({
|
|
225
|
-
level: "WARN",
|
|
226
|
-
message: `Parameter Validation warrnings for application > Lead > getCustomForm \n ${warrning}`,
|
|
132
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
133
|
+
if (errors.length > 0) {
|
|
134
|
+
const error = new FDKClientValidationError({
|
|
135
|
+
message: "Missing required field",
|
|
136
|
+
details: errors,
|
|
227
137
|
});
|
|
138
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
228
139
|
}
|
|
229
140
|
|
|
230
141
|
const query_params = {};
|
|
@@ -249,32 +160,13 @@ class Lead {
|
|
|
249
160
|
responseData = response[0];
|
|
250
161
|
}
|
|
251
162
|
|
|
252
|
-
const {
|
|
253
|
-
error: res_error,
|
|
254
|
-
} = LeadApplicationModel.CustomForm().validate(responseData, {
|
|
255
|
-
abortEarly: false,
|
|
256
|
-
allowUnknown: true,
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
if (res_error) {
|
|
260
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
261
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
262
|
-
} else {
|
|
263
|
-
Logger({
|
|
264
|
-
level: "WARN",
|
|
265
|
-
message: `Response Validation Warnings for application > Lead > getCustomForm \n ${res_error}`,
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
163
|
return response;
|
|
271
164
|
}
|
|
272
165
|
|
|
273
166
|
/**
|
|
274
|
-
* @param {LeadApplicationValidator.GetTicketParam} arg - Arg object.
|
|
275
167
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
276
168
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
277
|
-
* @returns {Promise<
|
|
169
|
+
* @returns {Promise<Ticket>} - Success response
|
|
278
170
|
* @name getTicket
|
|
279
171
|
* @summary: Get a support ticket
|
|
280
172
|
* @description: Get details of a specific customer support ticket. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/getTicket/).
|
|
@@ -283,24 +175,13 @@ class Lead {
|
|
|
283
175
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
284
176
|
{ responseHeaders } = { responseHeaders: false }
|
|
285
177
|
) {
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
// Showing warrnings if extra unknown parameters are found
|
|
295
|
-
const { error: warrning } = LeadApplicationValidator.getTicket().validate(
|
|
296
|
-
{ id },
|
|
297
|
-
{ abortEarly: false, allowUnknown: false }
|
|
298
|
-
);
|
|
299
|
-
if (warrning) {
|
|
300
|
-
Logger({
|
|
301
|
-
level: "WARN",
|
|
302
|
-
message: `Parameter Validation warrnings for application > Lead > getTicket \n ${warrning}`,
|
|
178
|
+
const errors = validateRequiredParams(arguments[0], ["id"]);
|
|
179
|
+
if (errors.length > 0) {
|
|
180
|
+
const error = new FDKClientValidationError({
|
|
181
|
+
message: "Missing required field",
|
|
182
|
+
details: errors,
|
|
303
183
|
});
|
|
184
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
304
185
|
}
|
|
305
186
|
|
|
306
187
|
const query_params = {};
|
|
@@ -325,32 +206,13 @@ class Lead {
|
|
|
325
206
|
responseData = response[0];
|
|
326
207
|
}
|
|
327
208
|
|
|
328
|
-
const {
|
|
329
|
-
error: res_error,
|
|
330
|
-
} = LeadApplicationModel.Ticket().validate(responseData, {
|
|
331
|
-
abortEarly: false,
|
|
332
|
-
allowUnknown: true,
|
|
333
|
-
});
|
|
334
|
-
|
|
335
|
-
if (res_error) {
|
|
336
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
337
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
338
|
-
} else {
|
|
339
|
-
Logger({
|
|
340
|
-
level: "WARN",
|
|
341
|
-
message: `Response Validation Warnings for application > Lead > getTicket \n ${res_error}`,
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
209
|
return response;
|
|
347
210
|
}
|
|
348
211
|
|
|
349
212
|
/**
|
|
350
|
-
* @param {LeadApplicationValidator.SubmitCustomFormParam} arg - Arg object.
|
|
351
213
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
352
214
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
353
|
-
* @returns {Promise<
|
|
215
|
+
* @returns {Promise<SubmitCustomFormResponse>} - Success response
|
|
354
216
|
* @name submitCustomForm
|
|
355
217
|
* @summary: Submits form data
|
|
356
218
|
* @description: Create user-entered data from a custom form for processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/submitCustomForm/).
|
|
@@ -359,26 +221,13 @@ class Lead {
|
|
|
359
221
|
{ slug, body, requestHeaders } = { requestHeaders: {} },
|
|
360
222
|
{ responseHeaders } = { responseHeaders: false }
|
|
361
223
|
) {
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
// Showing warrnings if extra unknown parameters are found
|
|
371
|
-
const {
|
|
372
|
-
error: warrning,
|
|
373
|
-
} = LeadApplicationValidator.submitCustomForm().validate(
|
|
374
|
-
{ slug, body },
|
|
375
|
-
{ abortEarly: false, allowUnknown: false }
|
|
376
|
-
);
|
|
377
|
-
if (warrning) {
|
|
378
|
-
Logger({
|
|
379
|
-
level: "WARN",
|
|
380
|
-
message: `Parameter Validation warrnings for application > Lead > submitCustomForm \n ${warrning}`,
|
|
224
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
225
|
+
if (errors.length > 0) {
|
|
226
|
+
const error = new FDKClientValidationError({
|
|
227
|
+
message: "Missing required field",
|
|
228
|
+
details: errors,
|
|
381
229
|
});
|
|
230
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
382
231
|
}
|
|
383
232
|
|
|
384
233
|
const query_params = {};
|
|
@@ -403,24 +252,6 @@ class Lead {
|
|
|
403
252
|
responseData = response[0];
|
|
404
253
|
}
|
|
405
254
|
|
|
406
|
-
const {
|
|
407
|
-
error: res_error,
|
|
408
|
-
} = LeadApplicationModel.SubmitCustomFormDetails().validate(responseData, {
|
|
409
|
-
abortEarly: false,
|
|
410
|
-
allowUnknown: true,
|
|
411
|
-
});
|
|
412
|
-
|
|
413
|
-
if (res_error) {
|
|
414
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
415
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
416
|
-
} else {
|
|
417
|
-
Logger({
|
|
418
|
-
level: "WARN",
|
|
419
|
-
message: `Response Validation Warnings for application > Lead > submitCustomForm \n ${res_error}`,
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
|
|
424
255
|
return response;
|
|
425
256
|
}
|
|
426
257
|
}
|
|
@@ -6,8 +6,6 @@ declare class Logistic {
|
|
|
6
6
|
getAllCountries: string;
|
|
7
7
|
getCountries: string;
|
|
8
8
|
getCountry: string;
|
|
9
|
-
getCourierPartners: string;
|
|
10
|
-
getDeliveryPromise: string;
|
|
11
9
|
getLocalities: string;
|
|
12
10
|
getLocality: string;
|
|
13
11
|
getLocations: string;
|
|
@@ -20,140 +18,102 @@ declare class Logistic {
|
|
|
20
18
|
_urls: {};
|
|
21
19
|
updateUrls(urls: any): void;
|
|
22
20
|
/**
|
|
23
|
-
* @param {LogisticApplicationValidator.GetAllCountriesParam} arg - Arg object.
|
|
24
21
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
25
22
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
26
|
-
* @returns {Promise<
|
|
23
|
+
* @returns {Promise<CountryListResponse>} - Success response
|
|
27
24
|
* @name getAllCountries
|
|
28
25
|
* @summary: Get deliverable countries
|
|
29
26
|
* @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/).
|
|
30
27
|
*/
|
|
31
|
-
getAllCountries({ requestHeaders }?:
|
|
28
|
+
getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CountryListResponse>;
|
|
32
29
|
/**
|
|
33
|
-
* @param {LogisticApplicationValidator.GetCountriesParam} arg - Arg object.
|
|
34
30
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
35
31
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
36
|
-
* @returns {Promise<
|
|
32
|
+
* @returns {Promise<GetCountries>} - Success response
|
|
37
33
|
* @name getCountries
|
|
38
34
|
* @summary: Get countries
|
|
39
35
|
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
40
36
|
*/
|
|
41
|
-
getCountries({ onboarding, pageNo, pageSize, q,
|
|
37
|
+
getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountries>;
|
|
42
38
|
/**
|
|
43
|
-
* @param {LogisticApplicationValidator.GetCountryParam} arg - Arg object.
|
|
44
39
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
45
40
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
46
|
-
* @returns {Promise<
|
|
41
|
+
* @returns {Promise<GetCountry>} - Success response
|
|
47
42
|
* @name getCountry
|
|
48
43
|
* @summary: Get country details
|
|
49
44
|
* @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/).
|
|
50
45
|
*/
|
|
51
|
-
getCountry({ countryIsoCode, requestHeaders }?:
|
|
46
|
+
getCountry({ countryIsoCode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetCountry>;
|
|
52
47
|
/**
|
|
53
|
-
* @param {LogisticApplicationValidator.GetCourierPartnersParam} arg - Arg object.
|
|
54
48
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
55
49
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
56
|
-
* @returns {Promise<
|
|
57
|
-
* - Success response
|
|
58
|
-
*
|
|
59
|
-
* @name getCourierPartners
|
|
60
|
-
* @summary: Serviceable Courier Partners.
|
|
61
|
-
* @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/).
|
|
62
|
-
*/
|
|
63
|
-
getCourierPartners({ companyId, applicationId, body, requestHeaders }?: LogisticApplicationValidator.GetCourierPartnersParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ShipmentCourierPartnerResult>;
|
|
64
|
-
/**
|
|
65
|
-
* @param {LogisticApplicationValidator.GetDeliveryPromiseParam} arg - Arg object.
|
|
66
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
67
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
68
|
-
* @returns {Promise<LogisticApplicationModel.GetPromiseDetails>} - Success response
|
|
69
|
-
* @name getDeliveryPromise
|
|
70
|
-
* @summary: Get delivery promise
|
|
71
|
-
* @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/).
|
|
72
|
-
*/
|
|
73
|
-
getDeliveryPromise({ pageNo, pageSize, requestHeaders }?: LogisticApplicationValidator.GetDeliveryPromiseParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetPromiseDetails>;
|
|
74
|
-
/**
|
|
75
|
-
* @param {LogisticApplicationValidator.GetLocalitiesParam} arg - Arg object.
|
|
76
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
77
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
78
|
-
* @returns {Promise<LogisticApplicationModel.GetLocalities>} - Success response
|
|
50
|
+
* @returns {Promise<GetLocalities>} - Success response
|
|
79
51
|
* @name getLocalities
|
|
80
52
|
* @summary: Get localities
|
|
81
53
|
* @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/).
|
|
82
54
|
*/
|
|
83
|
-
getLocalities({ localityType, country, state, city, pageNo, pageSize, q, requestHeaders, }?:
|
|
55
|
+
getLocalities({ localityType, country, state, city, pageNo, pageSize, q, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetLocalities>;
|
|
84
56
|
/**
|
|
85
|
-
* @param {LogisticApplicationValidator.GetLocalityParam} arg - Arg object.
|
|
86
57
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
87
58
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
88
|
-
* @returns {Promise<
|
|
59
|
+
* @returns {Promise<GetLocality>} - Success response
|
|
89
60
|
* @name getLocality
|
|
90
61
|
* @summary: Get locality detail
|
|
91
62
|
* @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/).
|
|
92
63
|
*/
|
|
93
|
-
getLocality({ localityType, localityValue, country, state, city, requestHeaders }?:
|
|
64
|
+
getLocality({ localityType, localityValue, country, state, city, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetLocality>;
|
|
94
65
|
/**
|
|
95
|
-
* @param {LogisticApplicationValidator.GetLocationsParam} arg - Arg object.
|
|
96
66
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
97
67
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
98
|
-
* @returns {Promise<
|
|
68
|
+
* @returns {Promise<GetStoreResponse>} - Success response
|
|
99
69
|
* @name getLocations
|
|
100
70
|
* @summary: Get available selling locations
|
|
101
71
|
* @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/).
|
|
102
72
|
*/
|
|
103
|
-
getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?:
|
|
73
|
+
getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetStoreResponse>;
|
|
104
74
|
/**
|
|
105
|
-
* @param {LogisticApplicationValidator.GetOptimalLocationsParam} arg - Arg object.
|
|
106
75
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
107
76
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
108
|
-
* @returns {Promise<
|
|
77
|
+
* @returns {Promise<ReAssignStoreResponse>} - Success response
|
|
109
78
|
* @name getOptimalLocations
|
|
110
79
|
* @summary: Get selling locations
|
|
111
80
|
* @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/).
|
|
112
81
|
*/
|
|
113
|
-
getOptimalLocations({ body, requestHeaders }?:
|
|
82
|
+
getOptimalLocations({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ReAssignStoreResponse>;
|
|
114
83
|
/**
|
|
115
|
-
* @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object.
|
|
116
84
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
117
85
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
118
|
-
* @returns {Promise<
|
|
86
|
+
* @returns {Promise<PincodeApiResponse>} - Success response
|
|
119
87
|
* @name getPincodeCity
|
|
120
88
|
* @summary: Get pincode details
|
|
121
89
|
* @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/).
|
|
122
90
|
*/
|
|
123
|
-
getPincodeCity({ pincode, requestHeaders }?:
|
|
91
|
+
getPincodeCity({ pincode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<PincodeApiResponse>;
|
|
124
92
|
/**
|
|
125
|
-
* @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object.
|
|
126
93
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
127
94
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
128
|
-
* @returns {Promise<
|
|
129
|
-
* - Success response
|
|
130
|
-
*
|
|
95
|
+
* @returns {Promise<GetZoneFromPincodeViewResponse>} - Success response
|
|
131
96
|
* @name getPincodeZones
|
|
132
97
|
* @summary: Get zones
|
|
133
98
|
* @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
|
|
134
99
|
*/
|
|
135
|
-
getPincodeZones({ body, requestHeaders }?:
|
|
100
|
+
getPincodeZones({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetZoneFromPincodeViewResponse>;
|
|
136
101
|
/**
|
|
137
|
-
* @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object.
|
|
138
102
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
139
103
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
140
|
-
* @returns {Promise<
|
|
104
|
+
* @returns {Promise<TATViewResponse>} - Success response
|
|
141
105
|
* @name getTatProduct
|
|
142
106
|
* @summary: Get product's turnaround time
|
|
143
107
|
* @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/).
|
|
144
108
|
*/
|
|
145
|
-
getTatProduct({ body, requestHeaders }?:
|
|
109
|
+
getTatProduct({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<TATViewResponse>;
|
|
146
110
|
/**
|
|
147
|
-
* @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object.
|
|
148
111
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
149
112
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
150
|
-
* @returns {Promise<
|
|
151
|
-
* Success response
|
|
113
|
+
* @returns {Promise<ValidateAddressRequest>} - Success response
|
|
152
114
|
* @name validateAddress
|
|
153
115
|
* @summary: Validate address
|
|
154
116
|
* @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/).
|
|
155
117
|
*/
|
|
156
|
-
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?:
|
|
118
|
+
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ValidateAddressRequest>;
|
|
157
119
|
}
|
|
158
|
-
import LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
159
|
-
import LogisticApplicationValidator = require("./LogisticApplicationValidator");
|