@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- 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 +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
- package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- 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 +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- 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 +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
- package/sdk/platform/User/UserPlatformModel.js +204 -65
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -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/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -11,24 +11,21 @@ class Logistic {
|
|
|
11
11
|
constructor(_conf) {
|
|
12
12
|
this._conf = _conf;
|
|
13
13
|
this._relativeUrls = {
|
|
14
|
+
createShipments:
|
|
15
|
+
"/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipments",
|
|
14
16
|
getAllCountries: "/service/application/logistics/v1.0/country-list",
|
|
15
17
|
getCountries: "/service/application/logistics/v2.0/countries",
|
|
16
18
|
getCountry:
|
|
17
19
|
"/service/application/logistics/v1.0/countries/{country_iso_code}",
|
|
18
|
-
|
|
19
|
-
"/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/
|
|
20
|
-
getDeliveryPromise:
|
|
21
|
-
"/service/application/logistics/v1.0/delivery-promise",
|
|
20
|
+
getGeoAreas:
|
|
21
|
+
"/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/geoareas",
|
|
22
22
|
getLocalities:
|
|
23
23
|
"/service/application/logistics/v1.0/localities/{locality_type}",
|
|
24
24
|
getLocality:
|
|
25
25
|
"/service/application/logistics/v1.0/localities/{locality_type}/{locality_value}",
|
|
26
|
-
getLocations: "/service/application/logistics/v1.0/locations",
|
|
27
|
-
getOptimalLocations:
|
|
28
|
-
"/service/application/logistics/v1.0/reassign_stores",
|
|
29
26
|
getPincodeCity: "/service/application/logistics/v1.0/pincode/{pincode}",
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
getZones:
|
|
28
|
+
"/service/application/logistics/v2.0/company/{company_id}/application/{application_id}/zones",
|
|
32
29
|
validateAddress:
|
|
33
30
|
"/service/application/logistics/v1.0/country/{country_iso_code}/address/templates/{template_name}/validate",
|
|
34
31
|
};
|
|
@@ -51,7 +48,65 @@ class Logistic {
|
|
|
51
48
|
/**
|
|
52
49
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
53
50
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
54
|
-
* @returns {Promise<
|
|
51
|
+
* @returns {Promise<GenerateShipmentsAndCourierPartnerResponse>} - Success response
|
|
52
|
+
* @name createShipments
|
|
53
|
+
* @summary: Create and return shipments.
|
|
54
|
+
* @description: Create and return shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/createShipments/).
|
|
55
|
+
*/
|
|
56
|
+
async createShipments(
|
|
57
|
+
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
58
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
59
|
+
) {
|
|
60
|
+
let invalidInput = [];
|
|
61
|
+
|
|
62
|
+
if (!companyId) {
|
|
63
|
+
invalidInput.push({
|
|
64
|
+
message: `The 'companyId' field is required.`,
|
|
65
|
+
path: ["companyId"],
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (!applicationId) {
|
|
69
|
+
invalidInput.push({
|
|
70
|
+
message: `The 'applicationId' field is required.`,
|
|
71
|
+
path: ["applicationId"],
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
if (invalidInput.length) {
|
|
75
|
+
const error = new Error();
|
|
76
|
+
error.message = "Missing required field";
|
|
77
|
+
error.details = invalidInput;
|
|
78
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const query_params = {};
|
|
82
|
+
|
|
83
|
+
const xHeaders = {};
|
|
84
|
+
|
|
85
|
+
const response = await ApplicationAPIClient.execute(
|
|
86
|
+
this._conf,
|
|
87
|
+
"post",
|
|
88
|
+
constructUrl({
|
|
89
|
+
url: this._urls["createShipments"],
|
|
90
|
+
params: { companyId, applicationId },
|
|
91
|
+
}),
|
|
92
|
+
query_params,
|
|
93
|
+
body,
|
|
94
|
+
{ ...xHeaders, ...requestHeaders },
|
|
95
|
+
{ responseHeaders }
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
let responseData = response;
|
|
99
|
+
if (responseHeaders) {
|
|
100
|
+
responseData = response[0];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return response;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
108
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
109
|
+
* @returns {Promise<CountryListResponse>} - Success response
|
|
55
110
|
* @name getAllCountries
|
|
56
111
|
* @summary: Get deliverable countries
|
|
57
112
|
* @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/).
|
|
@@ -98,19 +153,13 @@ class Logistic {
|
|
|
98
153
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
99
154
|
* @returns {Promise<GetCountries>} - Success response
|
|
100
155
|
* @name getCountries
|
|
101
|
-
* @summary: Get countries
|
|
102
|
-
* @description:
|
|
156
|
+
* @summary: Get all countries and associated data.
|
|
157
|
+
* @description: Retrieve a list of countries for logistical purposes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
103
158
|
*/
|
|
104
159
|
async getCountries(
|
|
105
|
-
{
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
pageSize,
|
|
109
|
-
q,
|
|
110
|
-
hierarchy,
|
|
111
|
-
phoneCode,
|
|
112
|
-
requestHeaders,
|
|
113
|
-
} = { requestHeaders: {} },
|
|
160
|
+
{ onboard, pageNo, pageSize, q, hierarchy, requestHeaders } = {
|
|
161
|
+
requestHeaders: {},
|
|
162
|
+
},
|
|
114
163
|
{ responseHeaders } = { responseHeaders: false }
|
|
115
164
|
) {
|
|
116
165
|
let invalidInput = [];
|
|
@@ -122,12 +171,11 @@ class Logistic {
|
|
|
122
171
|
}
|
|
123
172
|
|
|
124
173
|
const query_params = {};
|
|
125
|
-
query_params["
|
|
174
|
+
query_params["onboard"] = onboard;
|
|
126
175
|
query_params["page_no"] = pageNo;
|
|
127
176
|
query_params["page_size"] = pageSize;
|
|
128
177
|
query_params["q"] = q;
|
|
129
178
|
query_params["hierarchy"] = hierarchy;
|
|
130
|
-
query_params["phone_code"] = phoneCode;
|
|
131
179
|
|
|
132
180
|
const xHeaders = {};
|
|
133
181
|
|
|
@@ -152,6 +200,43 @@ class Logistic {
|
|
|
152
200
|
return response;
|
|
153
201
|
}
|
|
154
202
|
|
|
203
|
+
/**
|
|
204
|
+
* @param {Object} arg - Arg object.
|
|
205
|
+
* @param {boolean} [arg.onboard] - Only fetch countries which allowed for
|
|
206
|
+
* onboard on Platform.
|
|
207
|
+
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
208
|
+
* page. Default value is 12
|
|
209
|
+
* @param {string} [arg.q] - The search string to search in the list of
|
|
210
|
+
* countries by name.
|
|
211
|
+
* @param {string} [arg.hierarchy] - The search filter to filter countries
|
|
212
|
+
* based on their available hierarchy.
|
|
213
|
+
* @returns {Paginator<GetCountries>}
|
|
214
|
+
* @summary: Get all countries and associated data.
|
|
215
|
+
* @description: Retrieve a list of countries for logistical purposes.
|
|
216
|
+
*/
|
|
217
|
+
getCountriesPaginator({ onboard, pageSize, q, hierarchy } = {}) {
|
|
218
|
+
const paginator = new Paginator();
|
|
219
|
+
const callback = async () => {
|
|
220
|
+
const pageId = paginator.nextId;
|
|
221
|
+
const pageNo = paginator.pageNo;
|
|
222
|
+
const pageType = "number";
|
|
223
|
+
const data = await this.getCountries({
|
|
224
|
+
onboard: onboard,
|
|
225
|
+
pageNo: pageNo,
|
|
226
|
+
pageSize: pageSize,
|
|
227
|
+
q: q,
|
|
228
|
+
hierarchy: hierarchy,
|
|
229
|
+
});
|
|
230
|
+
paginator.setPaginator({
|
|
231
|
+
hasNext: data.page.has_next ? true : false,
|
|
232
|
+
nextId: data.page.next_id,
|
|
233
|
+
});
|
|
234
|
+
return data;
|
|
235
|
+
};
|
|
236
|
+
paginator.setCallback(callback.bind(this));
|
|
237
|
+
return paginator;
|
|
238
|
+
}
|
|
239
|
+
|
|
155
240
|
/**
|
|
156
241
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
157
242
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -207,74 +292,43 @@ class Logistic {
|
|
|
207
292
|
/**
|
|
208
293
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
209
294
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
210
|
-
* @returns {Promise<
|
|
211
|
-
* @name
|
|
212
|
-
* @summary:
|
|
213
|
-
* @description:
|
|
295
|
+
* @returns {Promise<GeoAreaGetResponseBody>} - Success response
|
|
296
|
+
* @name getGeoAreas
|
|
297
|
+
* @summary: Get all geoareas in the current application.
|
|
298
|
+
* @description: Retrieves a listing view of created GeoAreas. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getGeoAreas/).
|
|
214
299
|
*/
|
|
215
|
-
async
|
|
216
|
-
{
|
|
300
|
+
async getGeoAreas(
|
|
301
|
+
{
|
|
302
|
+
applicationId,
|
|
303
|
+
companyId,
|
|
304
|
+
pageSize,
|
|
305
|
+
pageNo,
|
|
306
|
+
type,
|
|
307
|
+
isActive,
|
|
308
|
+
q,
|
|
309
|
+
countryIsoCode,
|
|
310
|
+
state,
|
|
311
|
+
city,
|
|
312
|
+
pincode,
|
|
313
|
+
sector,
|
|
314
|
+
requestHeaders,
|
|
315
|
+
} = { requestHeaders: {} },
|
|
217
316
|
{ responseHeaders } = { responseHeaders: false }
|
|
218
317
|
) {
|
|
219
318
|
let invalidInput = [];
|
|
220
319
|
|
|
221
|
-
if (!companyId) {
|
|
222
|
-
invalidInput.push({
|
|
223
|
-
message: `The 'companyId' field is required.`,
|
|
224
|
-
path: ["companyId"],
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
320
|
if (!applicationId) {
|
|
228
321
|
invalidInput.push({
|
|
229
322
|
message: `The 'applicationId' field is required.`,
|
|
230
323
|
path: ["applicationId"],
|
|
231
324
|
});
|
|
232
325
|
}
|
|
233
|
-
if (
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
const query_params = {};
|
|
241
|
-
|
|
242
|
-
const xHeaders = {};
|
|
243
|
-
|
|
244
|
-
const response = await ApplicationAPIClient.execute(
|
|
245
|
-
this._conf,
|
|
246
|
-
"post",
|
|
247
|
-
constructUrl({
|
|
248
|
-
url: this._urls["getCourierPartners"],
|
|
249
|
-
params: { companyId, applicationId },
|
|
250
|
-
}),
|
|
251
|
-
query_params,
|
|
252
|
-
body,
|
|
253
|
-
{ ...xHeaders, ...requestHeaders },
|
|
254
|
-
{ responseHeaders }
|
|
255
|
-
);
|
|
256
|
-
|
|
257
|
-
let responseData = response;
|
|
258
|
-
if (responseHeaders) {
|
|
259
|
-
responseData = response[0];
|
|
326
|
+
if (!companyId) {
|
|
327
|
+
invalidInput.push({
|
|
328
|
+
message: `The 'companyId' field is required.`,
|
|
329
|
+
path: ["companyId"],
|
|
330
|
+
});
|
|
260
331
|
}
|
|
261
|
-
|
|
262
|
-
return response;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
267
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
268
|
-
* @returns {Promise<GetPromiseDetails>} - Success response
|
|
269
|
-
* @name getDeliveryPromise
|
|
270
|
-
* @summary: Get delivery promise
|
|
271
|
-
* @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/).
|
|
272
|
-
*/
|
|
273
|
-
async getDeliveryPromise(
|
|
274
|
-
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
275
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
276
|
-
) {
|
|
277
|
-
let invalidInput = [];
|
|
278
332
|
if (invalidInput.length) {
|
|
279
333
|
const error = new Error();
|
|
280
334
|
error.message = "Missing required field";
|
|
@@ -283,8 +337,16 @@ class Logistic {
|
|
|
283
337
|
}
|
|
284
338
|
|
|
285
339
|
const query_params = {};
|
|
286
|
-
query_params["page_no"] = pageNo;
|
|
287
340
|
query_params["page_size"] = pageSize;
|
|
341
|
+
query_params["page_no"] = pageNo;
|
|
342
|
+
query_params["type"] = type;
|
|
343
|
+
query_params["is_active"] = isActive;
|
|
344
|
+
query_params["q"] = q;
|
|
345
|
+
query_params["country_iso_code"] = countryIsoCode;
|
|
346
|
+
query_params["state"] = state;
|
|
347
|
+
query_params["city"] = city;
|
|
348
|
+
query_params["pincode"] = pincode;
|
|
349
|
+
query_params["sector"] = sector;
|
|
288
350
|
|
|
289
351
|
const xHeaders = {};
|
|
290
352
|
|
|
@@ -292,8 +354,8 @@ class Logistic {
|
|
|
292
354
|
this._conf,
|
|
293
355
|
"get",
|
|
294
356
|
constructUrl({
|
|
295
|
-
url: this._urls["
|
|
296
|
-
params: {},
|
|
357
|
+
url: this._urls["getGeoAreas"],
|
|
358
|
+
params: { applicationId, companyId },
|
|
297
359
|
}),
|
|
298
360
|
query_params,
|
|
299
361
|
undefined,
|
|
@@ -314,7 +376,7 @@ class Logistic {
|
|
|
314
376
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
315
377
|
* @returns {Promise<GetLocalities>} - Success response
|
|
316
378
|
* @name getLocalities
|
|
317
|
-
* @summary: Get
|
|
379
|
+
* @summary: Get Localities
|
|
318
380
|
* @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/).
|
|
319
381
|
*/
|
|
320
382
|
async getLocalities(
|
|
@@ -326,7 +388,7 @@ class Logistic {
|
|
|
326
388
|
pageNo,
|
|
327
389
|
pageSize,
|
|
328
390
|
q,
|
|
329
|
-
|
|
391
|
+
name,
|
|
330
392
|
requestHeaders,
|
|
331
393
|
} = { requestHeaders: {} },
|
|
332
394
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -353,7 +415,7 @@ class Logistic {
|
|
|
353
415
|
query_params["page_no"] = pageNo;
|
|
354
416
|
query_params["page_size"] = pageSize;
|
|
355
417
|
query_params["q"] = q;
|
|
356
|
-
query_params["
|
|
418
|
+
query_params["name"] = name;
|
|
357
419
|
|
|
358
420
|
const xHeaders = {};
|
|
359
421
|
|
|
@@ -378,6 +440,55 @@ class Logistic {
|
|
|
378
440
|
return response;
|
|
379
441
|
}
|
|
380
442
|
|
|
443
|
+
/**
|
|
444
|
+
* @param {Object} arg - Arg object.
|
|
445
|
+
* @param {string} arg.localityType - Unique geographical division.
|
|
446
|
+
* @param {string} [arg.country] - Country name.
|
|
447
|
+
* @param {string} [arg.state] - State or the province.
|
|
448
|
+
* @param {string} [arg.city] - City.
|
|
449
|
+
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
450
|
+
* page. Default value is 12.
|
|
451
|
+
* @param {string} [arg.q] - This parameter is used to filter or search the records.
|
|
452
|
+
* @param {string} [arg.name] - Search for localities. Either provide a full
|
|
453
|
+
* name or a search term.
|
|
454
|
+
* @returns {Paginator<GetLocalities>}
|
|
455
|
+
* @summary: Get Localities
|
|
456
|
+
* @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.
|
|
457
|
+
*/
|
|
458
|
+
getLocalitiesPaginator({
|
|
459
|
+
localityType,
|
|
460
|
+
country,
|
|
461
|
+
state,
|
|
462
|
+
city,
|
|
463
|
+
pageSize,
|
|
464
|
+
q,
|
|
465
|
+
name,
|
|
466
|
+
} = {}) {
|
|
467
|
+
const paginator = new Paginator();
|
|
468
|
+
const callback = async () => {
|
|
469
|
+
const pageId = paginator.nextId;
|
|
470
|
+
const pageNo = paginator.pageNo;
|
|
471
|
+
const pageType = "number";
|
|
472
|
+
const data = await this.getLocalities({
|
|
473
|
+
localityType: localityType,
|
|
474
|
+
country: country,
|
|
475
|
+
state: state,
|
|
476
|
+
city: city,
|
|
477
|
+
pageNo: pageNo,
|
|
478
|
+
pageSize: pageSize,
|
|
479
|
+
q: q,
|
|
480
|
+
name: name,
|
|
481
|
+
});
|
|
482
|
+
paginator.setPaginator({
|
|
483
|
+
hasNext: data.page.has_next ? true : false,
|
|
484
|
+
nextId: data.page.next_id,
|
|
485
|
+
});
|
|
486
|
+
return data;
|
|
487
|
+
};
|
|
488
|
+
paginator.setCallback(callback.bind(this));
|
|
489
|
+
return paginator;
|
|
490
|
+
}
|
|
491
|
+
|
|
381
492
|
/**
|
|
382
493
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
383
494
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -444,132 +555,9 @@ class Logistic {
|
|
|
444
555
|
/**
|
|
445
556
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
446
557
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
447
|
-
* @returns {Promise<
|
|
448
|
-
* @name getLocations
|
|
449
|
-
* @summary: Get available selling locations
|
|
450
|
-
* @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/).
|
|
451
|
-
*/
|
|
452
|
-
async getLocations(
|
|
453
|
-
{
|
|
454
|
-
xApplicationId,
|
|
455
|
-
xApplicationData,
|
|
456
|
-
country,
|
|
457
|
-
state,
|
|
458
|
-
city,
|
|
459
|
-
pincode,
|
|
460
|
-
sector,
|
|
461
|
-
pageNo,
|
|
462
|
-
pageSize,
|
|
463
|
-
requestHeaders,
|
|
464
|
-
} = { requestHeaders: {} },
|
|
465
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
466
|
-
) {
|
|
467
|
-
let invalidInput = [];
|
|
468
|
-
|
|
469
|
-
if (!xApplicationId) {
|
|
470
|
-
invalidInput.push({
|
|
471
|
-
message: `The 'xApplicationId' field is required.`,
|
|
472
|
-
path: ["xApplicationId"],
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
if (!xApplicationData) {
|
|
476
|
-
invalidInput.push({
|
|
477
|
-
message: `The 'xApplicationData' field is required.`,
|
|
478
|
-
path: ["xApplicationData"],
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
if (invalidInput.length) {
|
|
482
|
-
const error = new Error();
|
|
483
|
-
error.message = "Missing required field";
|
|
484
|
-
error.details = invalidInput;
|
|
485
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
const query_params = {};
|
|
489
|
-
query_params["x-application-id"] = xApplicationId;
|
|
490
|
-
query_params["x-application-data"] = xApplicationData;
|
|
491
|
-
query_params["country"] = country;
|
|
492
|
-
query_params["state"] = state;
|
|
493
|
-
query_params["city"] = city;
|
|
494
|
-
query_params["pincode"] = pincode;
|
|
495
|
-
query_params["sector"] = sector;
|
|
496
|
-
query_params["page_no"] = pageNo;
|
|
497
|
-
query_params["page_size"] = pageSize;
|
|
498
|
-
|
|
499
|
-
const xHeaders = {};
|
|
500
|
-
|
|
501
|
-
const response = await ApplicationAPIClient.execute(
|
|
502
|
-
this._conf,
|
|
503
|
-
"get",
|
|
504
|
-
constructUrl({
|
|
505
|
-
url: this._urls["getLocations"],
|
|
506
|
-
params: {},
|
|
507
|
-
}),
|
|
508
|
-
query_params,
|
|
509
|
-
undefined,
|
|
510
|
-
{ ...xHeaders, ...requestHeaders },
|
|
511
|
-
{ responseHeaders }
|
|
512
|
-
);
|
|
513
|
-
|
|
514
|
-
let responseData = response;
|
|
515
|
-
if (responseHeaders) {
|
|
516
|
-
responseData = response[0];
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
return response;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
524
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
525
|
-
* @returns {Promise<ReAssignStoreResult>} - Success response
|
|
526
|
-
* @name getOptimalLocations
|
|
527
|
-
* @summary: Get selling locations
|
|
528
|
-
* @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/).
|
|
529
|
-
*/
|
|
530
|
-
async getOptimalLocations(
|
|
531
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
532
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
533
|
-
) {
|
|
534
|
-
let invalidInput = [];
|
|
535
|
-
if (invalidInput.length) {
|
|
536
|
-
const error = new Error();
|
|
537
|
-
error.message = "Missing required field";
|
|
538
|
-
error.details = invalidInput;
|
|
539
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
const query_params = {};
|
|
543
|
-
|
|
544
|
-
const xHeaders = {};
|
|
545
|
-
|
|
546
|
-
const response = await ApplicationAPIClient.execute(
|
|
547
|
-
this._conf,
|
|
548
|
-
"post",
|
|
549
|
-
constructUrl({
|
|
550
|
-
url: this._urls["getOptimalLocations"],
|
|
551
|
-
params: {},
|
|
552
|
-
}),
|
|
553
|
-
query_params,
|
|
554
|
-
body,
|
|
555
|
-
{ ...xHeaders, ...requestHeaders },
|
|
556
|
-
{ responseHeaders }
|
|
557
|
-
);
|
|
558
|
-
|
|
559
|
-
let responseData = response;
|
|
560
|
-
if (responseHeaders) {
|
|
561
|
-
responseData = response[0];
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
return response;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
569
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
570
|
-
* @returns {Promise<PincodeDetails>} - Success response
|
|
558
|
+
* @returns {Promise<PincodeApiResponse>} - Success response
|
|
571
559
|
* @name getPincodeCity
|
|
572
|
-
* @summary: Get
|
|
560
|
+
* @summary: Get Pincode API
|
|
573
561
|
* @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/).
|
|
574
562
|
*/
|
|
575
563
|
async getPincodeCity(
|
|
@@ -619,61 +607,44 @@ class Logistic {
|
|
|
619
607
|
/**
|
|
620
608
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
621
609
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
622
|
-
* @returns {Promise<
|
|
623
|
-
* @name
|
|
624
|
-
* @summary:
|
|
625
|
-
* @description:
|
|
610
|
+
* @returns {Promise<ListViewResponseV2>} - Success response
|
|
611
|
+
* @name getZones
|
|
612
|
+
* @summary: Shows zones defined at the application level
|
|
613
|
+
* @description: Displays the list of zones defined at the application level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getZones/).
|
|
626
614
|
*/
|
|
627
|
-
async
|
|
628
|
-
{
|
|
615
|
+
async getZones(
|
|
616
|
+
{
|
|
617
|
+
companyId,
|
|
618
|
+
applicationId,
|
|
619
|
+
stage,
|
|
620
|
+
type,
|
|
621
|
+
pageSize,
|
|
622
|
+
pageNo,
|
|
623
|
+
isActive,
|
|
624
|
+
q,
|
|
625
|
+
countryIsoCode,
|
|
626
|
+
pincode,
|
|
627
|
+
state,
|
|
628
|
+
city,
|
|
629
|
+
sector,
|
|
630
|
+
requestHeaders,
|
|
631
|
+
} = { requestHeaders: {} },
|
|
629
632
|
{ responseHeaders } = { responseHeaders: false }
|
|
630
633
|
) {
|
|
631
634
|
let invalidInput = [];
|
|
632
|
-
if (invalidInput.length) {
|
|
633
|
-
const error = new Error();
|
|
634
|
-
error.message = "Missing required field";
|
|
635
|
-
error.details = invalidInput;
|
|
636
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
const query_params = {};
|
|
640
|
-
|
|
641
|
-
const xHeaders = {};
|
|
642
|
-
|
|
643
|
-
const response = await ApplicationAPIClient.execute(
|
|
644
|
-
this._conf,
|
|
645
|
-
"post",
|
|
646
|
-
constructUrl({
|
|
647
|
-
url: this._urls["getPincodeZones"],
|
|
648
|
-
params: {},
|
|
649
|
-
}),
|
|
650
|
-
query_params,
|
|
651
|
-
body,
|
|
652
|
-
{ ...xHeaders, ...requestHeaders },
|
|
653
|
-
{ responseHeaders }
|
|
654
|
-
);
|
|
655
635
|
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
636
|
+
if (!companyId) {
|
|
637
|
+
invalidInput.push({
|
|
638
|
+
message: `The 'companyId' field is required.`,
|
|
639
|
+
path: ["companyId"],
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
if (!applicationId) {
|
|
643
|
+
invalidInput.push({
|
|
644
|
+
message: `The 'applicationId' field is required.`,
|
|
645
|
+
path: ["applicationId"],
|
|
646
|
+
});
|
|
659
647
|
}
|
|
660
|
-
|
|
661
|
-
return response;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
666
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
667
|
-
* @returns {Promise<TATViewResult>} - Success response
|
|
668
|
-
* @name getTatProduct
|
|
669
|
-
* @summary: Get product's turnaround time
|
|
670
|
-
* @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/).
|
|
671
|
-
*/
|
|
672
|
-
async getTatProduct(
|
|
673
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
674
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
675
|
-
) {
|
|
676
|
-
let invalidInput = [];
|
|
677
648
|
if (invalidInput.length) {
|
|
678
649
|
const error = new Error();
|
|
679
650
|
error.message = "Missing required field";
|
|
@@ -682,18 +653,29 @@ class Logistic {
|
|
|
682
653
|
}
|
|
683
654
|
|
|
684
655
|
const query_params = {};
|
|
656
|
+
query_params["stage"] = stage;
|
|
657
|
+
query_params["type"] = type;
|
|
658
|
+
query_params["page_size"] = pageSize;
|
|
659
|
+
query_params["page_no"] = pageNo;
|
|
660
|
+
query_params["is_active"] = isActive;
|
|
661
|
+
query_params["q"] = q;
|
|
662
|
+
query_params["country_iso_code"] = countryIsoCode;
|
|
663
|
+
query_params["pincode"] = pincode;
|
|
664
|
+
query_params["state"] = state;
|
|
665
|
+
query_params["city"] = city;
|
|
666
|
+
query_params["sector"] = sector;
|
|
685
667
|
|
|
686
668
|
const xHeaders = {};
|
|
687
669
|
|
|
688
670
|
const response = await ApplicationAPIClient.execute(
|
|
689
671
|
this._conf,
|
|
690
|
-
"
|
|
672
|
+
"get",
|
|
691
673
|
constructUrl({
|
|
692
|
-
url: this._urls["
|
|
693
|
-
params: {},
|
|
674
|
+
url: this._urls["getZones"],
|
|
675
|
+
params: { companyId, applicationId },
|
|
694
676
|
}),
|
|
695
677
|
query_params,
|
|
696
|
-
|
|
678
|
+
undefined,
|
|
697
679
|
{ ...xHeaders, ...requestHeaders },
|
|
698
680
|
{ responseHeaders }
|
|
699
681
|
);
|
|
@@ -709,7 +691,7 @@ class Logistic {
|
|
|
709
691
|
/**
|
|
710
692
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
711
693
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
712
|
-
* @returns {Promise<
|
|
694
|
+
* @returns {Promise<ValidateAddressRequest>} - Success response
|
|
713
695
|
* @name validateAddress
|
|
714
696
|
* @summary: Validate address
|
|
715
697
|
* @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/).
|