@gofynd/fdk-client-javascript 1.6.4 → 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 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- 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 +4103 -9109
- package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
- 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 +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- 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
|
@@ -2,92 +2,48 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* @typedef BulkServiceabilityParam
|
|
7
|
-
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
8
|
-
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
9
|
-
* @property {ServiceabilityPlatformModel.BulkRegionJobDetails} body
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @typedef BulkTatParam
|
|
14
|
-
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
15
|
-
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
16
|
-
* @property {ServiceabilityPlatformModel.BulkRegionJobDetails} body
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
5
|
/**
|
|
20
6
|
* @typedef CreateCourierPartnerAccountParam
|
|
21
|
-
* @property {ServiceabilityPlatformModel.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @typedef CreateCourierPartnerSchemeParam
|
|
26
|
-
* @property {ServiceabilityPlatformModel.CourierPartnerSchemeV2DetailsModel} body
|
|
7
|
+
* @property {ServiceabilityPlatformModel.CourierAccount} body
|
|
27
8
|
*/
|
|
28
9
|
|
|
29
10
|
/**
|
|
30
11
|
* @typedef CreatePackageMaterialParam
|
|
12
|
+
* @property {number} [pageNo] - Index of the item to start returning with
|
|
31
13
|
* @property {ServiceabilityPlatformModel.PackageMaterial} body
|
|
32
14
|
*/
|
|
33
15
|
|
|
34
16
|
/**
|
|
35
17
|
* @typedef CreatePackageMaterialRuleParam
|
|
36
|
-
* @property {ServiceabilityPlatformModel.
|
|
18
|
+
* @property {ServiceabilityPlatformModel.PackageRuleRequest} body
|
|
37
19
|
*/
|
|
38
20
|
|
|
39
|
-
/**
|
|
40
|
-
* @typedef CreateZoneParam
|
|
41
|
-
* @property {ServiceabilityPlatformModel.CreateZoneData} body
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/** @typedef GetAllStoresParam */
|
|
21
|
+
/** @typedef GetCompanyConfigurationParam */
|
|
45
22
|
|
|
46
|
-
/**
|
|
47
|
-
* @typedef GetBulkServiceabilityParam
|
|
48
|
-
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
49
|
-
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
50
|
-
* @property {number} [pageNo] - Index of the item to start returning with
|
|
51
|
-
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
52
|
-
* @property {string} [batchId] - Unique identifier of bulk job
|
|
53
|
-
* @property {string} [action] - Import or export bulk type
|
|
54
|
-
* @property {string} [status] - Status of the bulk actions
|
|
55
|
-
* @property {string} [country] - Country for which bulk job is initiated
|
|
56
|
-
* @property {string} [region] - Region for which bulk job is initiated
|
|
57
|
-
* @property {string} [startDate] - Fetch job history after a particule date
|
|
58
|
-
* @property {string} [endDate] - Fetch job history before a particule date
|
|
59
|
-
*/
|
|
23
|
+
/** @typedef GetCompanySelfShipParam */
|
|
60
24
|
|
|
61
25
|
/**
|
|
62
|
-
* @typedef
|
|
63
|
-
* @property {
|
|
64
|
-
*
|
|
65
|
-
* @property {number} [pageNo] -
|
|
66
|
-
*
|
|
67
|
-
* @property {
|
|
68
|
-
*
|
|
69
|
-
* @property {string} [
|
|
70
|
-
* @property {string} [
|
|
71
|
-
*
|
|
72
|
-
* @property {string} [startDate] - Fetch job history after a particule date
|
|
73
|
-
* @property {string} [endDate] - Fetch job history before a particule date
|
|
26
|
+
* @typedef GetCountriesParam
|
|
27
|
+
* @property {boolean} [onboard] - Only fetch countries which allowed for
|
|
28
|
+
* onboard on Platform.
|
|
29
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
30
|
+
* set of results. Default value is 1.
|
|
31
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
32
|
+
* Default value is 12
|
|
33
|
+
* @property {string} [q] - The search string to search in the list of countries by name.
|
|
34
|
+
* @property {string} [hierarchy] - The search filter to filter countries based
|
|
35
|
+
* on their available hierarchy.
|
|
74
36
|
*/
|
|
75
37
|
|
|
76
|
-
/** @typedef GetCompanyConfigurationParam */
|
|
77
|
-
|
|
78
38
|
/**
|
|
79
|
-
* @typedef
|
|
80
|
-
* @property {
|
|
81
|
-
*
|
|
82
|
-
* @property {number} [pageNo] - Page number.
|
|
83
|
-
* @property {number} [pageSize] - Page size.
|
|
84
|
-
* @property {string} [q] - Search.
|
|
85
|
-
* @property {string} [hierarchy] - Fetch countries that has certain heirarchy present.
|
|
39
|
+
* @typedef GetCountryParam
|
|
40
|
+
* @property {string} countryIsoCode - The `country_iso_code` is ISO-2 (alpha-2)
|
|
41
|
+
* code for the country.
|
|
86
42
|
*/
|
|
87
43
|
|
|
88
44
|
/**
|
|
89
45
|
* @typedef GetCourierPartnerAccountParam
|
|
90
|
-
* @property {string} accountId - Unique ID of courier
|
|
46
|
+
* @property {string} accountId - Unique ID of courier account
|
|
91
47
|
*/
|
|
92
48
|
|
|
93
49
|
/**
|
|
@@ -97,27 +53,59 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
97
53
|
* @property {string} [stage] - Stage of the account. enabled/disabled
|
|
98
54
|
* @property {string} [paymentMode] - Filters dp accounts based on payment mode
|
|
99
55
|
* @property {string} [transportType] - Filters dp accounts based on transport_type
|
|
56
|
+
* @property {string[]} [accountIds] - Filters dp accounts based on their ids
|
|
57
|
+
* @property {boolean} [selfShip] - To filter self ship/non self ship dp accounts
|
|
58
|
+
* @property {boolean} [ownAccount] - Filters seller owned or admin owned dp accounts
|
|
59
|
+
* @property {string} [q] - Filters dp accounts based on case sensitive partial
|
|
60
|
+
* account name
|
|
100
61
|
*/
|
|
101
62
|
|
|
102
63
|
/**
|
|
103
|
-
* @typedef
|
|
104
|
-
* @property {
|
|
64
|
+
* @typedef GetInstalledCourierPartnerExtensionsParam
|
|
65
|
+
* @property {number} [pageNo] - Index of the item to start returning with
|
|
66
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
67
|
+
* @property {string} [isInstalled] - Filter to get installed extensions only
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @typedef GetListPackageMaterialRuleDetailsParam
|
|
72
|
+
* @property {number} [pageNo] - Index of the item to start returning with
|
|
73
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
74
|
+
* @property {string} [isActive] - Filters items based on given is_active
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @typedef GetLocalitiesParam
|
|
79
|
+
* @property {string} localityType - A `locality_type` contains unique
|
|
80
|
+
* geographical division.
|
|
81
|
+
* @property {string} [country] - A `country` contains a specific value of the
|
|
82
|
+
* country iso2 code.
|
|
83
|
+
* @property {string} [state] - A `state` contains a specific value of the
|
|
84
|
+
* state, province.
|
|
85
|
+
* @property {string} [city] - A `city` contains a specific value of the city.
|
|
86
|
+
* @property {number} [pageNo] - Page number.
|
|
87
|
+
* @property {number} [pageSize] - Page size.
|
|
88
|
+
* @property {string} [q] - Search.
|
|
89
|
+
* @property {string} [name] - Search for localities. Either provide a full name
|
|
90
|
+
* or a search term.
|
|
105
91
|
*/
|
|
106
92
|
|
|
107
93
|
/**
|
|
108
|
-
* @typedef
|
|
109
|
-
* @property {string}
|
|
110
|
-
*
|
|
111
|
-
* @property {string}
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
94
|
+
* @typedef GetLocalityParam
|
|
95
|
+
* @property {string} localityType - A `locality_type` contains value
|
|
96
|
+
* geographical division.
|
|
97
|
+
* @property {string} localityValue - A `locality_value` contains a specific
|
|
98
|
+
* name of the locality.
|
|
99
|
+
* @property {string} [country] - A `country` contains a specific value of the
|
|
100
|
+
* country iso2 code.
|
|
101
|
+
* @property {string} [state] - A `state` contains a specific value of the
|
|
102
|
+
* state, province.
|
|
103
|
+
* @property {string} [city] - A `city` contains a specific value of the city.
|
|
116
104
|
*/
|
|
117
105
|
|
|
118
106
|
/**
|
|
119
107
|
* @typedef GetOptimalLocationsParam
|
|
120
|
-
* @property {ServiceabilityPlatformModel.
|
|
108
|
+
* @property {ServiceabilityPlatformModel.OptimlLocationsRequestSchema} body
|
|
121
109
|
*/
|
|
122
110
|
|
|
123
111
|
/**
|
|
@@ -136,7 +124,9 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
136
124
|
*/
|
|
137
125
|
|
|
138
126
|
/**
|
|
139
|
-
* @typedef
|
|
127
|
+
* @typedef GetPackageMaterialRuleDetailsParam
|
|
128
|
+
* @property {string} ruleId - A `package_material_rule_id` is a unique
|
|
129
|
+
* identifier for a Package Material Rule
|
|
140
130
|
* @property {number} [pageNo] - Index of the item to start returning with
|
|
141
131
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
142
132
|
* @property {string} [isActive] - Filters items based on given is_active
|
|
@@ -144,127 +134,59 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
144
134
|
|
|
145
135
|
/**
|
|
146
136
|
* @typedef GetPackageMaterialsParam
|
|
147
|
-
* @property {string} packageMaterialId -
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @typedef GetSampleFileServiceabilityStatusParam
|
|
152
|
-
* @property {number} [pageNo] - Index of the item to start returning with
|
|
153
|
-
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
154
|
-
* @property {string} [batchId] - Batch id of the execution
|
|
155
|
-
*/
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* @typedef GetServiceabilityParam
|
|
159
|
-
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
160
|
-
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
161
|
-
* @property {string} regionId - Unique identifier of a region
|
|
162
|
-
*/
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @typedef GetZoneByIdParam
|
|
166
|
-
* @property {string} zoneId - A `zone_id` is a unique identifier for a particular zone.
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* @typedef GetZonesParam
|
|
171
|
-
* @property {number} [pageNo] - Index of the item to start returning with
|
|
172
|
-
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
173
|
-
* @property {boolean} [isActive] - Status of Zone (either active or inactive)
|
|
174
|
-
* @property {string} [channelId] - Zones filtered by an application
|
|
175
|
-
* @property {string} [q] - Search with name as a free text
|
|
176
|
-
* @property {string} [countryIsoCode] - ISO2 code of the country
|
|
177
|
-
* @property {string} [state] - State name
|
|
178
|
-
* @property {string} [city] - City name
|
|
179
|
-
* @property {string} [pincode] - Pincode value to search zones
|
|
180
|
-
* @property {string} [sector] - Sector value to search zones
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* @typedef SampleFileServiceabilityParam
|
|
185
|
-
* @property {ServiceabilityPlatformModel.BulkRegionServiceabilityTatDetails} body
|
|
137
|
+
* @property {string} packageMaterialId - A `package_material_id` is a unique
|
|
138
|
+
* identifier for a Package Material
|
|
186
139
|
*/
|
|
187
140
|
|
|
188
141
|
/**
|
|
189
142
|
* @typedef UpdateCompanyConfigurationParam
|
|
190
|
-
* @property {ServiceabilityPlatformModel.
|
|
143
|
+
* @property {ServiceabilityPlatformModel.CompanyConfigurationShema} body
|
|
191
144
|
*/
|
|
192
145
|
|
|
193
146
|
/**
|
|
194
|
-
* @typedef
|
|
195
|
-
* @property {
|
|
196
|
-
* @property {ServiceabilityPlatformModel.CourierAccountUpdateDetails} body
|
|
147
|
+
* @typedef UpdateCompanySelfShipParam
|
|
148
|
+
* @property {ServiceabilityPlatformModel.CompanySelfShip} body
|
|
197
149
|
*/
|
|
198
150
|
|
|
199
151
|
/**
|
|
200
|
-
* @typedef
|
|
201
|
-
* @property {string}
|
|
202
|
-
* @property {ServiceabilityPlatformModel.
|
|
152
|
+
* @typedef UpdateCourierPartnerAccountParam
|
|
153
|
+
* @property {string} accountId - Unique ID of courier account
|
|
154
|
+
* @property {ServiceabilityPlatformModel.CourierAccount} body
|
|
203
155
|
*/
|
|
204
156
|
|
|
205
157
|
/**
|
|
206
158
|
* @typedef UpdatePackageMaterialRuleParam
|
|
207
159
|
* @property {string} ruleId - A `package_material_rule_id` is a unique
|
|
208
160
|
* identifier for a Package Material Rule
|
|
209
|
-
* @property {ServiceabilityPlatformModel.
|
|
161
|
+
* @property {ServiceabilityPlatformModel.PackageRuleRequest} body
|
|
210
162
|
*/
|
|
211
163
|
|
|
212
164
|
/**
|
|
213
165
|
* @typedef UpdatePackageMaterialsParam
|
|
214
|
-
* @property {string} packageMaterialId -
|
|
166
|
+
* @property {string} packageMaterialId - A `package_material_id` is a unique
|
|
167
|
+
* identifier for a Package Material
|
|
215
168
|
* @property {ServiceabilityPlatformModel.PackageMaterial} body
|
|
216
169
|
*/
|
|
217
170
|
|
|
218
171
|
/**
|
|
219
|
-
* @typedef
|
|
220
|
-
* @property {string}
|
|
221
|
-
* @property {string}
|
|
222
|
-
* @property {
|
|
223
|
-
* @property {ServiceabilityPlatformModel.ServiceabilityModel} body
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @typedef UpdateZoneByIdParam
|
|
228
|
-
* @property {string} zoneId - A `zone_id` is a unique identifier for a particular zone.
|
|
229
|
-
* @property {ServiceabilityPlatformModel.UpdateZoneData} body
|
|
172
|
+
* @typedef ValidateAddressParam
|
|
173
|
+
* @property {string} countryIsoCode - The ISO code of the country.
|
|
174
|
+
* @property {string} templateName - The type of address form.
|
|
175
|
+
* @property {ServiceabilityPlatformModel.ValidateAddressRequest} body
|
|
230
176
|
*/
|
|
231
177
|
|
|
232
178
|
class ServiceabilityPlatformValidator {
|
|
233
|
-
/** @returns {BulkServiceabilityParam} */
|
|
234
|
-
static bulkServiceability() {
|
|
235
|
-
return Joi.object({
|
|
236
|
-
extensionId: Joi.string().allow("").required(),
|
|
237
|
-
schemeId: Joi.string().allow("").required(),
|
|
238
|
-
body: ServiceabilityPlatformModel.BulkRegionJobDetails().required(),
|
|
239
|
-
}).required();
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/** @returns {BulkTatParam} */
|
|
243
|
-
static bulkTat() {
|
|
244
|
-
return Joi.object({
|
|
245
|
-
extensionId: Joi.string().allow("").required(),
|
|
246
|
-
schemeId: Joi.string().allow("").required(),
|
|
247
|
-
body: ServiceabilityPlatformModel.BulkRegionJobDetails().required(),
|
|
248
|
-
}).required();
|
|
249
|
-
}
|
|
250
|
-
|
|
251
179
|
/** @returns {CreateCourierPartnerAccountParam} */
|
|
252
180
|
static createCourierPartnerAccount() {
|
|
253
181
|
return Joi.object({
|
|
254
|
-
body: ServiceabilityPlatformModel.
|
|
255
|
-
}).required();
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/** @returns {CreateCourierPartnerSchemeParam} */
|
|
259
|
-
static createCourierPartnerScheme() {
|
|
260
|
-
return Joi.object({
|
|
261
|
-
body: ServiceabilityPlatformModel.CourierPartnerSchemeV2DetailsModel().required(),
|
|
182
|
+
body: ServiceabilityPlatformModel.CourierAccount().required(),
|
|
262
183
|
}).required();
|
|
263
184
|
}
|
|
264
185
|
|
|
265
186
|
/** @returns {CreatePackageMaterialParam} */
|
|
266
187
|
static createPackageMaterial() {
|
|
267
188
|
return Joi.object({
|
|
189
|
+
pageNo: Joi.number(),
|
|
268
190
|
body: ServiceabilityPlatformModel.PackageMaterial().required(),
|
|
269
191
|
}).required();
|
|
270
192
|
}
|
|
@@ -272,65 +194,24 @@ class ServiceabilityPlatformValidator {
|
|
|
272
194
|
/** @returns {CreatePackageMaterialRuleParam} */
|
|
273
195
|
static createPackageMaterialRule() {
|
|
274
196
|
return Joi.object({
|
|
275
|
-
body: ServiceabilityPlatformModel.
|
|
276
|
-
}).required();
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/** @returns {CreateZoneParam} */
|
|
280
|
-
static createZone() {
|
|
281
|
-
return Joi.object({
|
|
282
|
-
body: ServiceabilityPlatformModel.CreateZoneData().required(),
|
|
197
|
+
body: ServiceabilityPlatformModel.PackageRuleRequest().required(),
|
|
283
198
|
}).required();
|
|
284
199
|
}
|
|
285
200
|
|
|
286
|
-
/** @returns {
|
|
287
|
-
static
|
|
201
|
+
/** @returns {GetCompanyConfigurationParam} */
|
|
202
|
+
static getCompanyConfiguration() {
|
|
288
203
|
return Joi.object({}).required();
|
|
289
204
|
}
|
|
290
205
|
|
|
291
|
-
/** @returns {
|
|
292
|
-
static
|
|
293
|
-
return Joi.object({
|
|
294
|
-
extensionId: Joi.string().allow("").required(),
|
|
295
|
-
schemeId: Joi.string().allow("").required(),
|
|
296
|
-
pageNo: Joi.number(),
|
|
297
|
-
pageSize: Joi.number(),
|
|
298
|
-
batchId: Joi.string().allow(""),
|
|
299
|
-
action: Joi.string().allow(""),
|
|
300
|
-
status: Joi.string().allow(""),
|
|
301
|
-
country: Joi.string().allow(""),
|
|
302
|
-
region: Joi.string().allow(""),
|
|
303
|
-
startDate: Joi.string().allow(""),
|
|
304
|
-
endDate: Joi.string().allow(""),
|
|
305
|
-
}).required();
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
/** @returns {GetBulkTatParam} */
|
|
309
|
-
static getBulkTat() {
|
|
310
|
-
return Joi.object({
|
|
311
|
-
extensionId: Joi.string().allow("").required(),
|
|
312
|
-
schemeId: Joi.string().allow("").required(),
|
|
313
|
-
pageNo: Joi.number(),
|
|
314
|
-
pageSize: Joi.number(),
|
|
315
|
-
batchId: Joi.string().allow(""),
|
|
316
|
-
action: Joi.string().allow(""),
|
|
317
|
-
status: Joi.string().allow(""),
|
|
318
|
-
country: Joi.string().allow(""),
|
|
319
|
-
region: Joi.string().allow(""),
|
|
320
|
-
startDate: Joi.string().allow(""),
|
|
321
|
-
endDate: Joi.string().allow(""),
|
|
322
|
-
}).required();
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/** @returns {GetCompanyConfigurationParam} */
|
|
326
|
-
static getCompanyConfiguration() {
|
|
206
|
+
/** @returns {GetCompanySelfShipParam} */
|
|
207
|
+
static getCompanySelfShip() {
|
|
327
208
|
return Joi.object({}).required();
|
|
328
209
|
}
|
|
329
210
|
|
|
330
211
|
/** @returns {GetCountriesParam} */
|
|
331
212
|
static getCountries() {
|
|
332
213
|
return Joi.object({
|
|
333
|
-
|
|
214
|
+
onboard: Joi.boolean(),
|
|
334
215
|
pageNo: Joi.number(),
|
|
335
216
|
pageSize: Joi.number(),
|
|
336
217
|
q: Joi.string().allow(""),
|
|
@@ -338,6 +219,13 @@ class ServiceabilityPlatformValidator {
|
|
|
338
219
|
}).required();
|
|
339
220
|
}
|
|
340
221
|
|
|
222
|
+
/** @returns {GetCountryParam} */
|
|
223
|
+
static getCountry() {
|
|
224
|
+
return Joi.object({
|
|
225
|
+
countryIsoCode: Joi.string().allow("").required(),
|
|
226
|
+
}).required();
|
|
227
|
+
}
|
|
228
|
+
|
|
341
229
|
/** @returns {GetCourierPartnerAccountParam} */
|
|
342
230
|
static getCourierPartnerAccount() {
|
|
343
231
|
return Joi.object({
|
|
@@ -353,30 +241,60 @@ class ServiceabilityPlatformValidator {
|
|
|
353
241
|
stage: Joi.string().allow(""),
|
|
354
242
|
paymentMode: Joi.string().allow(""),
|
|
355
243
|
transportType: Joi.string().allow(""),
|
|
244
|
+
accountIds: Joi.array().items(Joi.string().allow("")),
|
|
245
|
+
selfShip: Joi.boolean(),
|
|
246
|
+
ownAccount: Joi.boolean(),
|
|
247
|
+
q: Joi.string().allow(""),
|
|
356
248
|
}).required();
|
|
357
249
|
}
|
|
358
250
|
|
|
359
|
-
/** @returns {
|
|
360
|
-
static
|
|
251
|
+
/** @returns {GetInstalledCourierPartnerExtensionsParam} */
|
|
252
|
+
static getInstalledCourierPartnerExtensions() {
|
|
361
253
|
return Joi.object({
|
|
362
|
-
|
|
254
|
+
pageNo: Joi.number(),
|
|
255
|
+
pageSize: Joi.number(),
|
|
256
|
+
isInstalled: Joi.string().allow(""),
|
|
363
257
|
}).required();
|
|
364
258
|
}
|
|
365
259
|
|
|
366
|
-
/** @returns {
|
|
367
|
-
static
|
|
260
|
+
/** @returns {GetListPackageMaterialRuleDetailsParam} */
|
|
261
|
+
static getListPackageMaterialRuleDetails() {
|
|
368
262
|
return Joi.object({
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
263
|
+
pageNo: Joi.number(),
|
|
264
|
+
pageSize: Joi.number(),
|
|
265
|
+
isActive: Joi.string().allow(""),
|
|
266
|
+
}).required();
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/** @returns {GetLocalitiesParam} */
|
|
270
|
+
static getLocalities() {
|
|
271
|
+
return Joi.object({
|
|
272
|
+
localityType: Joi.string().allow("").required(),
|
|
273
|
+
country: Joi.string().allow(""),
|
|
274
|
+
state: Joi.string().allow(""),
|
|
275
|
+
city: Joi.string().allow(""),
|
|
276
|
+
pageNo: Joi.number(),
|
|
277
|
+
pageSize: Joi.number(),
|
|
278
|
+
q: Joi.string().allow(""),
|
|
279
|
+
name: Joi.string().allow(""),
|
|
280
|
+
}).required();
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/** @returns {GetLocalityParam} */
|
|
284
|
+
static getLocality() {
|
|
285
|
+
return Joi.object({
|
|
286
|
+
localityType: Joi.string().allow("").required(),
|
|
287
|
+
localityValue: Joi.string().allow("").required(),
|
|
288
|
+
country: Joi.string().allow(""),
|
|
289
|
+
state: Joi.string().allow(""),
|
|
290
|
+
city: Joi.string().allow(""),
|
|
373
291
|
}).required();
|
|
374
292
|
}
|
|
375
293
|
|
|
376
294
|
/** @returns {GetOptimalLocationsParam} */
|
|
377
295
|
static getOptimalLocations() {
|
|
378
296
|
return Joi.object({
|
|
379
|
-
body: ServiceabilityPlatformModel.
|
|
297
|
+
body: ServiceabilityPlatformModel.OptimlLocationsRequestSchema().required(),
|
|
380
298
|
}).required();
|
|
381
299
|
}
|
|
382
300
|
|
|
@@ -398,9 +316,10 @@ class ServiceabilityPlatformValidator {
|
|
|
398
316
|
}).required();
|
|
399
317
|
}
|
|
400
318
|
|
|
401
|
-
/** @returns {
|
|
402
|
-
static
|
|
319
|
+
/** @returns {GetPackageMaterialRuleDetailsParam} */
|
|
320
|
+
static getPackageMaterialRuleDetails() {
|
|
403
321
|
return Joi.object({
|
|
322
|
+
ruleId: Joi.string().allow("").required(),
|
|
404
323
|
pageNo: Joi.number(),
|
|
405
324
|
pageSize: Joi.number(),
|
|
406
325
|
isActive: Joi.string().allow(""),
|
|
@@ -414,58 +333,17 @@ class ServiceabilityPlatformValidator {
|
|
|
414
333
|
}).required();
|
|
415
334
|
}
|
|
416
335
|
|
|
417
|
-
/** @returns {
|
|
418
|
-
static
|
|
419
|
-
return Joi.object({
|
|
420
|
-
pageNo: Joi.number(),
|
|
421
|
-
pageSize: Joi.number(),
|
|
422
|
-
batchId: Joi.string().allow(""),
|
|
423
|
-
}).required();
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/** @returns {GetServiceabilityParam} */
|
|
427
|
-
static getServiceability() {
|
|
428
|
-
return Joi.object({
|
|
429
|
-
extensionId: Joi.string().allow("").required(),
|
|
430
|
-
schemeId: Joi.string().allow("").required(),
|
|
431
|
-
regionId: Joi.string().allow("").required(),
|
|
432
|
-
}).required();
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
/** @returns {GetZoneByIdParam} */
|
|
436
|
-
static getZoneById() {
|
|
437
|
-
return Joi.object({
|
|
438
|
-
zoneId: Joi.string().allow("").required(),
|
|
439
|
-
}).required();
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
/** @returns {GetZonesParam} */
|
|
443
|
-
static getZones() {
|
|
336
|
+
/** @returns {UpdateCompanyConfigurationParam} */
|
|
337
|
+
static updateCompanyConfiguration() {
|
|
444
338
|
return Joi.object({
|
|
445
|
-
|
|
446
|
-
pageSize: Joi.number(),
|
|
447
|
-
isActive: Joi.boolean(),
|
|
448
|
-
channelId: Joi.string().allow(""),
|
|
449
|
-
q: Joi.string().allow(""),
|
|
450
|
-
countryIsoCode: Joi.string().allow(""),
|
|
451
|
-
state: Joi.string().allow(""),
|
|
452
|
-
city: Joi.string().allow(""),
|
|
453
|
-
pincode: Joi.string().allow(""),
|
|
454
|
-
sector: Joi.string().allow(""),
|
|
339
|
+
body: ServiceabilityPlatformModel.CompanyConfigurationShema().required(),
|
|
455
340
|
}).required();
|
|
456
341
|
}
|
|
457
342
|
|
|
458
|
-
/** @returns {
|
|
459
|
-
static
|
|
343
|
+
/** @returns {UpdateCompanySelfShipParam} */
|
|
344
|
+
static updateCompanySelfShip() {
|
|
460
345
|
return Joi.object({
|
|
461
|
-
body: ServiceabilityPlatformModel.
|
|
462
|
-
}).required();
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/** @returns {UpdateCompanyConfigurationParam} */
|
|
466
|
-
static updateCompanyConfiguration() {
|
|
467
|
-
return Joi.object({
|
|
468
|
-
body: ServiceabilityPlatformModel.CompanyConfig().required(),
|
|
346
|
+
body: ServiceabilityPlatformModel.CompanySelfShip().required(),
|
|
469
347
|
}).required();
|
|
470
348
|
}
|
|
471
349
|
|
|
@@ -473,15 +351,7 @@ class ServiceabilityPlatformValidator {
|
|
|
473
351
|
static updateCourierPartnerAccount() {
|
|
474
352
|
return Joi.object({
|
|
475
353
|
accountId: Joi.string().allow("").required(),
|
|
476
|
-
body: ServiceabilityPlatformModel.
|
|
477
|
-
}).required();
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
/** @returns {UpdateCourierPartnerSchemeParam} */
|
|
481
|
-
static updateCourierPartnerScheme() {
|
|
482
|
-
return Joi.object({
|
|
483
|
-
schemeId: Joi.string().allow("").required(),
|
|
484
|
-
body: ServiceabilityPlatformModel.CourierPartnerSchemeV2UpdateDetails().required(),
|
|
354
|
+
body: ServiceabilityPlatformModel.CourierAccount().required(),
|
|
485
355
|
}).required();
|
|
486
356
|
}
|
|
487
357
|
|
|
@@ -489,7 +359,7 @@ class ServiceabilityPlatformValidator {
|
|
|
489
359
|
static updatePackageMaterialRule() {
|
|
490
360
|
return Joi.object({
|
|
491
361
|
ruleId: Joi.string().allow("").required(),
|
|
492
|
-
body: ServiceabilityPlatformModel.
|
|
362
|
+
body: ServiceabilityPlatformModel.PackageRuleRequest().required(),
|
|
493
363
|
}).required();
|
|
494
364
|
}
|
|
495
365
|
|
|
@@ -501,21 +371,12 @@ class ServiceabilityPlatformValidator {
|
|
|
501
371
|
}).required();
|
|
502
372
|
}
|
|
503
373
|
|
|
504
|
-
/** @returns {
|
|
505
|
-
static
|
|
506
|
-
return Joi.object({
|
|
507
|
-
extensionId: Joi.string().allow("").required(),
|
|
508
|
-
schemeId: Joi.string().allow("").required(),
|
|
509
|
-
regionId: Joi.string().allow("").required(),
|
|
510
|
-
body: ServiceabilityPlatformModel.ServiceabilityModel().required(),
|
|
511
|
-
}).required();
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
/** @returns {UpdateZoneByIdParam} */
|
|
515
|
-
static updateZoneById() {
|
|
374
|
+
/** @returns {ValidateAddressParam} */
|
|
375
|
+
static validateAddress() {
|
|
516
376
|
return Joi.object({
|
|
517
|
-
|
|
518
|
-
|
|
377
|
+
countryIsoCode: Joi.string().allow("").required(),
|
|
378
|
+
templateName: Joi.string().allow("").required(),
|
|
379
|
+
body: ServiceabilityPlatformModel.ValidateAddressRequest().required(),
|
|
519
380
|
}).required();
|
|
520
381
|
}
|
|
521
382
|
}
|
|
@@ -9,7 +9,7 @@ declare class Share {
|
|
|
9
9
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
10
10
|
* @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
|
|
11
11
|
* @name createShortLink
|
|
12
|
-
* @summary: Create short link
|
|
12
|
+
* @summary: Create short link.
|
|
13
13
|
* @description: Generate a shortened URL link for sharing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/createShortLink/).
|
|
14
14
|
*/
|
|
15
15
|
createShortLink({ body, requestHeaders }?: SharePlatformApplicationValidator.CreateShortLinkParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkRes>;
|
|
@@ -19,29 +19,17 @@ declare class Share {
|
|
|
19
19
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
20
20
|
* @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
|
|
21
21
|
* @name getShortLinkByHash
|
|
22
|
-
* @summary: Get short link by hash
|
|
22
|
+
* @summary: Get short link by hash.
|
|
23
23
|
* @description: Retrieve a specific short link by its unique hash. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkByHash/).
|
|
24
24
|
*/
|
|
25
25
|
getShortLinkByHash({ hash, requestHeaders }?: SharePlatformApplicationValidator.GetShortLinkByHashParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkRes>;
|
|
26
|
-
/**
|
|
27
|
-
* @param {SharePlatformApplicationValidator.GetShortLinkClickStatsParam} arg
|
|
28
|
-
* - Arg object
|
|
29
|
-
*
|
|
30
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
31
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
32
|
-
* @returns {Promise<SharePlatformModel.ClickStatsResult>} - Success response
|
|
33
|
-
* @name getShortLinkClickStats
|
|
34
|
-
* @summary: Get short link click statistics
|
|
35
|
-
* @description: Retrieve statistics and analytics for clicks on a short link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkClickStats/).
|
|
36
|
-
*/
|
|
37
|
-
getShortLinkClickStats({ surlId, requestHeaders }?: SharePlatformApplicationValidator.GetShortLinkClickStatsParam, { responseHeaders }?: object): Promise<SharePlatformModel.ClickStatsResult>;
|
|
38
26
|
/**
|
|
39
27
|
* @param {SharePlatformApplicationValidator.GetShortLinksParam} arg - Arg object
|
|
40
28
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
41
29
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
42
30
|
* @returns {Promise<SharePlatformModel.ShortLinkList>} - Success response
|
|
43
31
|
* @name getShortLinks
|
|
44
|
-
* @summary: Get short links
|
|
32
|
+
* @summary: Get short links.
|
|
45
33
|
* @description: Retrieve a list of all generated short links. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinks/).
|
|
46
34
|
*/
|
|
47
35
|
getShortLinks({ pageNo, pageSize, createdBy, active, shortUrl, originalUrl, title, requestHeaders, }?: SharePlatformApplicationValidator.GetShortLinksParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkList>;
|
|
@@ -53,7 +41,7 @@ declare class Share {
|
|
|
53
41
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
54
42
|
* @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
|
|
55
43
|
* @name updateShortLinkById
|
|
56
|
-
* @summary: Update short link
|
|
44
|
+
* @summary: Update short link by ID.
|
|
57
45
|
* @description: Update details of a specific short link by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/updateShortLinkById/).
|
|
58
46
|
*/
|
|
59
47
|
updateShortLinkById({ id, body, requestHeaders }?: SharePlatformApplicationValidator.UpdateShortLinkByIdParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkRes>;
|