@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +19 -793
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef BulkRegionServiceabilityTatRequest
|
|
5
5
|
* @property {string} country
|
|
6
6
|
* @property {string} region
|
|
7
7
|
* @property {string} type
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* @typedef
|
|
11
|
+
* @typedef BulkRegionServiceabilityTatResponseItemData
|
|
12
12
|
* @property {string} [country]
|
|
13
13
|
* @property {string} [region]
|
|
14
14
|
* @property {string} [type]
|
|
@@ -19,21 +19,21 @@ const Joi = require("joi");
|
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* @typedef
|
|
22
|
+
* @typedef ErrorResponse
|
|
23
23
|
* @property {string} value
|
|
24
24
|
* @property {string} message
|
|
25
25
|
* @property {string} type
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* @typedef
|
|
29
|
+
* @typedef FailureResponse
|
|
30
30
|
* @property {boolean} success
|
|
31
|
-
* @property {
|
|
31
|
+
* @property {ErrorResponse[]} error
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* @typedef
|
|
36
|
-
* @property {
|
|
35
|
+
* @typedef BulkRegionServiceabilityTatResponse
|
|
36
|
+
* @property {BulkRegionServiceabilityTatResponseItemData[]} [items]
|
|
37
37
|
* @property {Page} [page]
|
|
38
38
|
*/
|
|
39
39
|
|
|
@@ -49,180 +49,7 @@ const Joi = require("joi");
|
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* @typedef
|
|
53
|
-
* @property {RegionTatResult[]} items
|
|
54
|
-
* @property {Page} page
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @typedef RegionServiceabilityItemResult
|
|
59
|
-
* @property {RegionServiceabilityResult[]} items
|
|
60
|
-
* @property {Page} page
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @typedef ServiceabilityDetailsResult
|
|
65
|
-
* @property {boolean} [first_mile] - Boolean value indicating whether
|
|
66
|
-
* first-mile service is available or not.
|
|
67
|
-
* @property {boolean} [last_mile] - Boolean value indicating whether last-mile
|
|
68
|
-
* service is available or not.
|
|
69
|
-
* @property {number} [cod_limit] - Limit on the amount of cash on delivery
|
|
70
|
-
* (COD) payments allowed in the specified region.
|
|
71
|
-
* @property {boolean} [doorstep_return] - Indicates if doorstep return service
|
|
72
|
-
* is available. This refers to the ability to return items directly from the
|
|
73
|
-
* customer's doorstep.
|
|
74
|
-
* @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
|
|
75
|
-
* service is available. This refers to the ability to perform quality checks
|
|
76
|
-
* on items at the customer's doorstep.
|
|
77
|
-
* @property {string} [pickup_cutoff] - Time of day by which pickups must be
|
|
78
|
-
* scheduled to be processed on the same day.
|
|
79
|
-
* @property {boolean} [installation] - Boolean value indicating whether
|
|
80
|
-
* installation services are available in the specified region or not.
|
|
81
|
-
* @property {string} [id] - Unique identifier for the serviceability record.
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @typedef ServiceabilityDetails
|
|
86
|
-
* @property {boolean} [first_mile] - Boolean value indicating whether
|
|
87
|
-
* first-mile service is available or not.
|
|
88
|
-
* @property {boolean} [last_mile] - Boolean value indicating whether last-mile
|
|
89
|
-
* service is available or not.
|
|
90
|
-
* @property {number} [cod_limit] - Limit on the amount of cash on delivery
|
|
91
|
-
* (COD) payments allowed in the specified region.
|
|
92
|
-
* @property {boolean} [doorstep_return] - Indicates if doorstep return service
|
|
93
|
-
* is available. This refers to the ability to return items directly from the
|
|
94
|
-
* customer's doorstep.
|
|
95
|
-
* @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
|
|
96
|
-
* service is available. This refers to the ability to perform quality checks
|
|
97
|
-
* on items at the customer's doorstep.
|
|
98
|
-
* @property {string} [pickup_cutoff] - Time of day by which pickups must be
|
|
99
|
-
* scheduled to be processed on the same day.
|
|
100
|
-
* @property {boolean} [installation] - Boolean value indicating whether
|
|
101
|
-
* installation services are available in the specified region or not.
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @typedef RegionServiceabilityResult
|
|
106
|
-
* @property {string} country_code - ISO2 code representing the country where
|
|
107
|
-
* the serviceability is being specified.
|
|
108
|
-
* @property {string} [state_code] - Code representing the state or province
|
|
109
|
-
* within the country where the serviceability is being specified.
|
|
110
|
-
* @property {string} [city_code] - Code representing the city within the state
|
|
111
|
-
* where the serviceability is being specified.
|
|
112
|
-
* @property {string} [sector_code] - Code representing a specific sector or
|
|
113
|
-
* district within the city where the serviceability is being specified.
|
|
114
|
-
* @property {string} [pincode] - Postal or ZIP code for the specific area
|
|
115
|
-
* within the city where the serviceability is being specified.
|
|
116
|
-
* @property {boolean} [first_mile] - Boolean value indicating whether
|
|
117
|
-
* first-mile service is available or not.
|
|
118
|
-
* @property {boolean} [last_mile] - Boolean value indicating whether last-mile
|
|
119
|
-
* service is available or not.
|
|
120
|
-
* @property {number} [cod_limit] - Limit on the amount of cash on delivery
|
|
121
|
-
* (COD) payments allowed in the specified region.
|
|
122
|
-
* @property {boolean} [doorstep_return] - Indicates if doorstep return service
|
|
123
|
-
* is available. This refers to the ability to return items directly from the
|
|
124
|
-
* customer's doorstep.
|
|
125
|
-
* @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
|
|
126
|
-
* service is available. This refers to the ability to perform quality checks
|
|
127
|
-
* on items at the customer's doorstep.
|
|
128
|
-
* @property {string} [pickup_cutoff] - Time of day by which pickups must be
|
|
129
|
-
* scheduled to be processed on the same day.
|
|
130
|
-
* @property {boolean} [installation] - Boolean value indicating whether
|
|
131
|
-
* installation services are available in the specified region or not.
|
|
132
|
-
* @property {string} id - Unique identifier for the serviceability record.
|
|
133
|
-
*/
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* @typedef RegionServiceabilityDetails
|
|
137
|
-
* @property {string} country_code - ISO2 code representing the country where
|
|
138
|
-
* the serviceability is being specified.
|
|
139
|
-
* @property {string} [state_code] - Code representing the state or province
|
|
140
|
-
* within the country where the serviceability is being specified.
|
|
141
|
-
* @property {string} [city_code] - Code representing the city within the state
|
|
142
|
-
* where the serviceability is being specified.
|
|
143
|
-
* @property {string} [sector_code] - Code representing a specific sector or
|
|
144
|
-
* district within the city where the serviceability is being specified.
|
|
145
|
-
* @property {string} [pincode] - Postal or ZIP code for the specific area
|
|
146
|
-
* within the city where the serviceability is being specified.
|
|
147
|
-
* @property {boolean} [first_mile] - Boolean value indicating whether
|
|
148
|
-
* first-mile service is available or not.
|
|
149
|
-
* @property {boolean} [last_mile] - Boolean value indicating whether last-mile
|
|
150
|
-
* service is available or not.
|
|
151
|
-
* @property {number} [cod_limit] - Limit on the amount of cash on delivery
|
|
152
|
-
* (COD) payments allowed in the specified region.
|
|
153
|
-
* @property {boolean} [doorstep_return] - Indicates if doorstep return service
|
|
154
|
-
* is available. This refers to the ability to return items directly from the
|
|
155
|
-
* customer's doorstep.
|
|
156
|
-
* @property {boolean} [doorstep_qc] - Indicates if doorstep quality check
|
|
157
|
-
* service is available. This refers to the ability to perform quality checks
|
|
158
|
-
* on items at the customer's doorstep.
|
|
159
|
-
* @property {string} [pickup_cutoff] - Time of day by which pickups must be
|
|
160
|
-
* scheduled to be processed on the same day.
|
|
161
|
-
* @property {boolean} [installation] - Boolean value indicating whether
|
|
162
|
-
* installation services are available in the specified region or not.
|
|
163
|
-
*/
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* @typedef RegionTatDetails
|
|
167
|
-
* @property {string} from_country_code - ISO2 code representing the country of
|
|
168
|
-
* origin for the delivery.
|
|
169
|
-
* @property {string} [from_state_code] - Code representing the state or
|
|
170
|
-
* province of origin within the country.
|
|
171
|
-
* @property {string} [from_city_code] - Code representing the city of origin
|
|
172
|
-
* within the state.
|
|
173
|
-
* @property {string} [from_sector_code] - Code representing a specific sector
|
|
174
|
-
* or district within the city of origin.
|
|
175
|
-
* @property {string} [from_pincode] - Postal or ZIP code of the origin area.
|
|
176
|
-
* @property {string} to_country_code - ISO2 code representing the destination country.
|
|
177
|
-
* @property {string} [to_state_code] - Code representing the state or province
|
|
178
|
-
* of the destination within the country.
|
|
179
|
-
* @property {string} [to_city_code] - Code representing the city of destination
|
|
180
|
-
* within the state.
|
|
181
|
-
* @property {string} [to_sector_code] - Code representing a specific sector or
|
|
182
|
-
* district within the city of destination.
|
|
183
|
-
* @property {string} [to_pincode] - Postal or ZIP code of the destination area.
|
|
184
|
-
* @property {number} [max_delivery_time] - Maximum time required for delivery
|
|
185
|
-
* from the origin to the destination in seconds.
|
|
186
|
-
* @property {number} [min_delivery_time] - Minimum time required for delivery
|
|
187
|
-
* from the origin to the destination in seconds.
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @typedef RegionTatUpdateDetails
|
|
192
|
-
* @property {number} [max_delivery_time] - Maximum time required for delivery
|
|
193
|
-
* from the origin to the destination in seconds.
|
|
194
|
-
* @property {number} [min_delivery_time] - Minimum time required for delivery
|
|
195
|
-
* from the origin to the destination in seconds.
|
|
196
|
-
*/
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* @typedef RegionTatResult
|
|
200
|
-
* @property {string} from_country_code - ISO2 code representing the country of
|
|
201
|
-
* origin for the delivery.
|
|
202
|
-
* @property {string} [from_state_code] - Code representing the state or
|
|
203
|
-
* province of origin within the country.
|
|
204
|
-
* @property {string} [from_city_code] - Code representing the city of origin
|
|
205
|
-
* within the state.
|
|
206
|
-
* @property {string} [from_sector_code] - Code representing a specific sector
|
|
207
|
-
* or district within the city of origin.
|
|
208
|
-
* @property {string} [from_pincode] - Postal or ZIP code of the origin area.
|
|
209
|
-
* @property {string} to_country_code - ISO2 code representing the destination country.
|
|
210
|
-
* @property {string} [to_state_code] - Code representing the state or province
|
|
211
|
-
* of the destination within the country.
|
|
212
|
-
* @property {string} [to_city_code] - Code representing the city of destination
|
|
213
|
-
* within the state.
|
|
214
|
-
* @property {string} [to_sector_code] - Code representing a specific sector or
|
|
215
|
-
* district within the city of destination.
|
|
216
|
-
* @property {string} [to_pincode] - Postal or ZIP code of the destination area.
|
|
217
|
-
* @property {number} [max_delivery_time] - Maximum time required for delivery
|
|
218
|
-
* from the origin to the destination in seconds.
|
|
219
|
-
* @property {number} [min_delivery_time] - Minimum time required for delivery
|
|
220
|
-
* from the origin to the destination in seconds.
|
|
221
|
-
* @property {string} id - Unique identifier for the delivery time record.
|
|
222
|
-
*/
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* @typedef BulkRegionJobDetails
|
|
52
|
+
* @typedef BulkRegionJobSerializer
|
|
226
53
|
* @property {string} [file_path]
|
|
227
54
|
* @property {string} country
|
|
228
55
|
* @property {string} action
|
|
@@ -230,7 +57,7 @@ const Joi = require("joi");
|
|
|
230
57
|
*/
|
|
231
58
|
|
|
232
59
|
/**
|
|
233
|
-
* @typedef
|
|
60
|
+
* @typedef BulkRegionResponseItemData
|
|
234
61
|
* @property {string} file_path
|
|
235
62
|
* @property {number} [failed]
|
|
236
63
|
* @property {Object[]} [failed_records]
|
|
@@ -245,8 +72,8 @@ const Joi = require("joi");
|
|
|
245
72
|
*/
|
|
246
73
|
|
|
247
74
|
/**
|
|
248
|
-
* @typedef
|
|
249
|
-
* @property {
|
|
75
|
+
* @typedef BulkRegionResponse
|
|
76
|
+
* @property {BulkRegionResponseItemData[]} items
|
|
250
77
|
* @property {Page} page
|
|
251
78
|
*/
|
|
252
79
|
|
|
@@ -261,7 +88,7 @@ const Joi = require("joi");
|
|
|
261
88
|
*/
|
|
262
89
|
|
|
263
90
|
/**
|
|
264
|
-
* @typedef
|
|
91
|
+
* @typedef CourierAccountRequestBody
|
|
265
92
|
* @property {string} extension_id
|
|
266
93
|
* @property {string} [account_id]
|
|
267
94
|
* @property {string} scheme_id
|
|
@@ -271,19 +98,19 @@ const Joi = require("joi");
|
|
|
271
98
|
*/
|
|
272
99
|
|
|
273
100
|
/**
|
|
274
|
-
* @typedef
|
|
101
|
+
* @typedef CourierPartnerAccountFailureResponse
|
|
275
102
|
* @property {boolean} success
|
|
276
|
-
* @property {
|
|
103
|
+
* @property {ErrorResponse[]} error
|
|
277
104
|
*/
|
|
278
105
|
|
|
279
106
|
/**
|
|
280
|
-
* @typedef
|
|
281
|
-
* @property {
|
|
107
|
+
* @typedef CompanyCourierPartnerAccountListResponse
|
|
108
|
+
* @property {CourierAccountResponse[]} items
|
|
282
109
|
* @property {Page} page
|
|
283
110
|
*/
|
|
284
111
|
|
|
285
112
|
/**
|
|
286
|
-
* @typedef
|
|
113
|
+
* @typedef CourierAccountResponse
|
|
287
114
|
* @property {string} account_id
|
|
288
115
|
* @property {string} scheme_id
|
|
289
116
|
* @property {boolean} is_self_ship
|
|
@@ -307,7 +134,7 @@ const Joi = require("joi");
|
|
|
307
134
|
*/
|
|
308
135
|
|
|
309
136
|
/**
|
|
310
|
-
* @typedef
|
|
137
|
+
* @typedef CourierPartnerSchemeRequestModel
|
|
311
138
|
* @property {string} extension_id
|
|
312
139
|
* @property {string} [scheme_id]
|
|
313
140
|
* @property {string} name
|
|
@@ -322,47 +149,24 @@ const Joi = require("joi");
|
|
|
322
149
|
|
|
323
150
|
/**
|
|
324
151
|
* @typedef CourierPartnerSchemeFeatures
|
|
325
|
-
* @property {boolean} [doorstep_qc]
|
|
326
|
-
*
|
|
327
|
-
* @property {boolean} [
|
|
328
|
-
*
|
|
329
|
-
* @property {
|
|
330
|
-
*
|
|
331
|
-
* @property {boolean} [
|
|
332
|
-
*
|
|
333
|
-
* @property {
|
|
334
|
-
*
|
|
335
|
-
* @property {boolean} [
|
|
336
|
-
*
|
|
337
|
-
* @property {boolean} [
|
|
338
|
-
*
|
|
339
|
-
* @property {boolean} [
|
|
340
|
-
*
|
|
341
|
-
* @property {boolean} [
|
|
342
|
-
*
|
|
343
|
-
* @property {boolean} [doorstep_exchange] - Indicates if the courier partner
|
|
344
|
-
* supports doorstep exchange services.
|
|
345
|
-
* @property {boolean} [doorstep_return] - Specifies if the courier partner
|
|
346
|
-
* offers doorstep return services.
|
|
347
|
-
* @property {boolean} [product_installation] - Indicates if the courier partner
|
|
348
|
-
* provides product installation services upon delivery.
|
|
349
|
-
* @property {boolean} [openbox_delivery] - Specifies whether the courier
|
|
350
|
-
* partner supports open-box delivery, allowing customers to inspect goods
|
|
351
|
-
* before accepting.
|
|
352
|
-
* @property {string} [status_updates] - Describes the type of status updates
|
|
353
|
-
* provided by the courier partner (e.g., real-time, periodic).
|
|
354
|
-
* @property {boolean} [multi_pick_single_drop] - Indicates if the courier
|
|
355
|
-
* partner supports multiple pickups to a single drop location.
|
|
356
|
-
* @property {boolean} [single_pick_multi_drop] - Indicates whether the courier
|
|
357
|
-
* partner supports single pickup to multiple drop locations.
|
|
358
|
-
* @property {boolean} [multi_pick_multi_drop] - Denotes if the courier partner
|
|
359
|
-
* offers services for multiple pickups to multiple drop locations.
|
|
360
|
-
* @property {boolean} [ewaybill] - Specifies if the courier partner requires or
|
|
361
|
-
* supports the generation of e-waybills for shipments.
|
|
362
|
-
* @property {number} [qc_shipment_item_quantity] - Defines the maximum quantity
|
|
363
|
-
* of items allowed in a quality check shipment.
|
|
364
|
-
* @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
|
|
365
|
-
* quantity of items allowed in a non-quality check shipment.
|
|
152
|
+
* @property {boolean} [doorstep_qc]
|
|
153
|
+
* @property {boolean} [qr]
|
|
154
|
+
* @property {boolean} [mps]
|
|
155
|
+
* @property {boolean} [ndr]
|
|
156
|
+
* @property {number} [ndr_attempts]
|
|
157
|
+
* @property {boolean} [dangerous_goods]
|
|
158
|
+
* @property {boolean} [fragile_goods]
|
|
159
|
+
* @property {boolean} [restricted_goods]
|
|
160
|
+
* @property {boolean} [cold_storage_goods]
|
|
161
|
+
* @property {boolean} [doorstep_exchange]
|
|
162
|
+
* @property {boolean} [doorstep_return]
|
|
163
|
+
* @property {boolean} [product_installation]
|
|
164
|
+
* @property {boolean} [openbox_delivery]
|
|
165
|
+
* @property {string} [status_updates]
|
|
166
|
+
* @property {boolean} [multi_pick_single_drop]
|
|
167
|
+
* @property {boolean} [single_pick_multi_drop]
|
|
168
|
+
* @property {boolean} [multi_pick_multi_drop]
|
|
169
|
+
* @property {boolean} [ewaybill]
|
|
366
170
|
*/
|
|
367
171
|
|
|
368
172
|
/**
|
|
@@ -374,7 +178,7 @@ const Joi = require("joi");
|
|
|
374
178
|
*/
|
|
375
179
|
|
|
376
180
|
/**
|
|
377
|
-
* @typedef
|
|
181
|
+
* @typedef CourierPartnerSchemeUpdateRequest
|
|
378
182
|
* @property {string} name
|
|
379
183
|
* @property {ArithmeticOperations} weight
|
|
380
184
|
* @property {string} transport_type
|
|
@@ -405,9 +209,6 @@ const Joi = require("joi");
|
|
|
405
209
|
* @property {string} [latitude]
|
|
406
210
|
* @property {string} [longitude]
|
|
407
211
|
* @property {string} [display_name]
|
|
408
|
-
* @property {boolean} [has_next_hierarchy] - More detailed hierarchical data is
|
|
409
|
-
* available, meaning states, cities, or other regions within the country have
|
|
410
|
-
* been populated in the system.
|
|
411
212
|
*/
|
|
412
213
|
|
|
413
214
|
/**
|
|
@@ -416,20 +217,9 @@ const Joi = require("joi");
|
|
|
416
217
|
* @property {string} [slug]
|
|
417
218
|
*/
|
|
418
219
|
|
|
419
|
-
/**
|
|
420
|
-
* @typedef ValidationError
|
|
421
|
-
* @property {string} message - A brief description of the error encountered.
|
|
422
|
-
* @property {string} field - The field in the request that caused the error.
|
|
423
|
-
*/
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* @typedef StandardError
|
|
427
|
-
* @property {string} message - A brief description of the error.
|
|
428
|
-
*/
|
|
429
|
-
|
|
430
220
|
class LogisticsPartnerModel {
|
|
431
|
-
/** @returns {
|
|
432
|
-
static
|
|
221
|
+
/** @returns {BulkRegionServiceabilityTatRequest} */
|
|
222
|
+
static BulkRegionServiceabilityTatRequest() {
|
|
433
223
|
return Joi.object({
|
|
434
224
|
country: Joi.string().allow("").required(),
|
|
435
225
|
region: Joi.string().allow("").required(),
|
|
@@ -437,21 +227,21 @@ class LogisticsPartnerModel {
|
|
|
437
227
|
});
|
|
438
228
|
}
|
|
439
229
|
|
|
440
|
-
/** @returns {
|
|
441
|
-
static
|
|
230
|
+
/** @returns {BulkRegionServiceabilityTatResponseItemData} */
|
|
231
|
+
static BulkRegionServiceabilityTatResponseItemData() {
|
|
442
232
|
return Joi.object({
|
|
443
233
|
country: Joi.string().allow(""),
|
|
444
234
|
region: Joi.string().allow(""),
|
|
445
235
|
type: Joi.string().allow(""),
|
|
446
236
|
batch_id: Joi.string().allow(""),
|
|
447
237
|
status: Joi.string().allow(""),
|
|
448
|
-
failed_records: Joi.array().items(Joi.
|
|
238
|
+
failed_records: Joi.array().items(Joi.any()),
|
|
449
239
|
file_path: Joi.string().allow(""),
|
|
450
240
|
});
|
|
451
241
|
}
|
|
452
242
|
|
|
453
|
-
/** @returns {
|
|
454
|
-
static
|
|
243
|
+
/** @returns {ErrorResponse} */
|
|
244
|
+
static ErrorResponse() {
|
|
455
245
|
return Joi.object({
|
|
456
246
|
value: Joi.string().allow("").required(),
|
|
457
247
|
message: Joi.string().allow("").required(),
|
|
@@ -459,19 +249,21 @@ class LogisticsPartnerModel {
|
|
|
459
249
|
});
|
|
460
250
|
}
|
|
461
251
|
|
|
462
|
-
/** @returns {
|
|
463
|
-
static
|
|
252
|
+
/** @returns {FailureResponse} */
|
|
253
|
+
static FailureResponse() {
|
|
464
254
|
return Joi.object({
|
|
465
255
|
success: Joi.boolean().required(),
|
|
466
|
-
error: Joi.array()
|
|
256
|
+
error: Joi.array()
|
|
257
|
+
.items(LogisticsPartnerModel.ErrorResponse())
|
|
258
|
+
.required(),
|
|
467
259
|
});
|
|
468
260
|
}
|
|
469
261
|
|
|
470
|
-
/** @returns {
|
|
471
|
-
static
|
|
262
|
+
/** @returns {BulkRegionServiceabilityTatResponse} */
|
|
263
|
+
static BulkRegionServiceabilityTatResponse() {
|
|
472
264
|
return Joi.object({
|
|
473
265
|
items: Joi.array().items(
|
|
474
|
-
LogisticsPartnerModel.
|
|
266
|
+
LogisticsPartnerModel.BulkRegionServiceabilityTatResponseItemData()
|
|
475
267
|
),
|
|
476
268
|
page: LogisticsPartnerModel.Page(),
|
|
477
269
|
});
|
|
@@ -490,137 +282,8 @@ class LogisticsPartnerModel {
|
|
|
490
282
|
});
|
|
491
283
|
}
|
|
492
284
|
|
|
493
|
-
/** @returns {
|
|
494
|
-
static
|
|
495
|
-
return Joi.object({
|
|
496
|
-
items: Joi.array()
|
|
497
|
-
.items(LogisticsPartnerModel.RegionTatResult())
|
|
498
|
-
.required(),
|
|
499
|
-
page: LogisticsPartnerModel.Page().required(),
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
/** @returns {RegionServiceabilityItemResult} */
|
|
504
|
-
static RegionServiceabilityItemResult() {
|
|
505
|
-
return Joi.object({
|
|
506
|
-
items: Joi.array()
|
|
507
|
-
.items(LogisticsPartnerModel.RegionServiceabilityResult())
|
|
508
|
-
.required(),
|
|
509
|
-
page: LogisticsPartnerModel.Page().required(),
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
/** @returns {ServiceabilityDetailsResult} */
|
|
514
|
-
static ServiceabilityDetailsResult() {
|
|
515
|
-
return Joi.object({
|
|
516
|
-
first_mile: Joi.boolean(),
|
|
517
|
-
last_mile: Joi.boolean(),
|
|
518
|
-
cod_limit: Joi.number(),
|
|
519
|
-
doorstep_return: Joi.boolean(),
|
|
520
|
-
doorstep_qc: Joi.boolean(),
|
|
521
|
-
pickup_cutoff: Joi.string().allow(""),
|
|
522
|
-
installation: Joi.boolean(),
|
|
523
|
-
id: Joi.string().allow(""),
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
/** @returns {ServiceabilityDetails} */
|
|
528
|
-
static ServiceabilityDetails() {
|
|
529
|
-
return Joi.object({
|
|
530
|
-
first_mile: Joi.boolean(),
|
|
531
|
-
last_mile: Joi.boolean(),
|
|
532
|
-
cod_limit: Joi.number(),
|
|
533
|
-
doorstep_return: Joi.boolean(),
|
|
534
|
-
doorstep_qc: Joi.boolean(),
|
|
535
|
-
pickup_cutoff: Joi.string().allow(""),
|
|
536
|
-
installation: Joi.boolean(),
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
/** @returns {RegionServiceabilityResult} */
|
|
541
|
-
static RegionServiceabilityResult() {
|
|
542
|
-
return Joi.object({
|
|
543
|
-
country_code: Joi.string().allow("").required(),
|
|
544
|
-
state_code: Joi.string().allow(""),
|
|
545
|
-
city_code: Joi.string().allow(""),
|
|
546
|
-
sector_code: Joi.string().allow(""),
|
|
547
|
-
pincode: Joi.string().allow(""),
|
|
548
|
-
first_mile: Joi.boolean(),
|
|
549
|
-
last_mile: Joi.boolean(),
|
|
550
|
-
cod_limit: Joi.number(),
|
|
551
|
-
doorstep_return: Joi.boolean(),
|
|
552
|
-
doorstep_qc: Joi.boolean(),
|
|
553
|
-
pickup_cutoff: Joi.string().allow(""),
|
|
554
|
-
installation: Joi.boolean(),
|
|
555
|
-
id: Joi.string().allow("").required(),
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/** @returns {RegionServiceabilityDetails} */
|
|
560
|
-
static RegionServiceabilityDetails() {
|
|
561
|
-
return Joi.object({
|
|
562
|
-
country_code: Joi.string().allow("").required(),
|
|
563
|
-
state_code: Joi.string().allow(""),
|
|
564
|
-
city_code: Joi.string().allow(""),
|
|
565
|
-
sector_code: Joi.string().allow(""),
|
|
566
|
-
pincode: Joi.string().allow(""),
|
|
567
|
-
first_mile: Joi.boolean(),
|
|
568
|
-
last_mile: Joi.boolean(),
|
|
569
|
-
cod_limit: Joi.number(),
|
|
570
|
-
doorstep_return: Joi.boolean(),
|
|
571
|
-
doorstep_qc: Joi.boolean(),
|
|
572
|
-
pickup_cutoff: Joi.string().allow(""),
|
|
573
|
-
installation: Joi.boolean(),
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
/** @returns {RegionTatDetails} */
|
|
578
|
-
static RegionTatDetails() {
|
|
579
|
-
return Joi.object({
|
|
580
|
-
from_country_code: Joi.string().allow("").required(),
|
|
581
|
-
from_state_code: Joi.string().allow(""),
|
|
582
|
-
from_city_code: Joi.string().allow(""),
|
|
583
|
-
from_sector_code: Joi.string().allow(""),
|
|
584
|
-
from_pincode: Joi.string().allow(""),
|
|
585
|
-
to_country_code: Joi.string().allow("").required(),
|
|
586
|
-
to_state_code: Joi.string().allow(""),
|
|
587
|
-
to_city_code: Joi.string().allow(""),
|
|
588
|
-
to_sector_code: Joi.string().allow(""),
|
|
589
|
-
to_pincode: Joi.string().allow(""),
|
|
590
|
-
max_delivery_time: Joi.number(),
|
|
591
|
-
min_delivery_time: Joi.number(),
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
/** @returns {RegionTatUpdateDetails} */
|
|
596
|
-
static RegionTatUpdateDetails() {
|
|
597
|
-
return Joi.object({
|
|
598
|
-
max_delivery_time: Joi.number(),
|
|
599
|
-
min_delivery_time: Joi.number(),
|
|
600
|
-
});
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
/** @returns {RegionTatResult} */
|
|
604
|
-
static RegionTatResult() {
|
|
605
|
-
return Joi.object({
|
|
606
|
-
from_country_code: Joi.string().allow("").required(),
|
|
607
|
-
from_state_code: Joi.string().allow(""),
|
|
608
|
-
from_city_code: Joi.string().allow(""),
|
|
609
|
-
from_sector_code: Joi.string().allow(""),
|
|
610
|
-
from_pincode: Joi.string().allow(""),
|
|
611
|
-
to_country_code: Joi.string().allow("").required(),
|
|
612
|
-
to_state_code: Joi.string().allow(""),
|
|
613
|
-
to_city_code: Joi.string().allow(""),
|
|
614
|
-
to_sector_code: Joi.string().allow(""),
|
|
615
|
-
to_pincode: Joi.string().allow(""),
|
|
616
|
-
max_delivery_time: Joi.number(),
|
|
617
|
-
min_delivery_time: Joi.number(),
|
|
618
|
-
id: Joi.string().allow("").required(),
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
/** @returns {BulkRegionJobDetails} */
|
|
623
|
-
static BulkRegionJobDetails() {
|
|
285
|
+
/** @returns {BulkRegionJobSerializer} */
|
|
286
|
+
static BulkRegionJobSerializer() {
|
|
624
287
|
return Joi.object({
|
|
625
288
|
file_path: Joi.string().allow(""),
|
|
626
289
|
country: Joi.string().allow("").required(),
|
|
@@ -629,12 +292,12 @@ class LogisticsPartnerModel {
|
|
|
629
292
|
});
|
|
630
293
|
}
|
|
631
294
|
|
|
632
|
-
/** @returns {
|
|
633
|
-
static
|
|
295
|
+
/** @returns {BulkRegionResponseItemData} */
|
|
296
|
+
static BulkRegionResponseItemData() {
|
|
634
297
|
return Joi.object({
|
|
635
298
|
file_path: Joi.string().allow("").required(),
|
|
636
299
|
failed: Joi.number(),
|
|
637
|
-
failed_records: Joi.array().items(Joi.
|
|
300
|
+
failed_records: Joi.array().items(Joi.any()),
|
|
638
301
|
action: Joi.string().allow("").required(),
|
|
639
302
|
batch_id: Joi.string().allow("").required(),
|
|
640
303
|
country: Joi.string().allow("").required(),
|
|
@@ -646,11 +309,11 @@ class LogisticsPartnerModel {
|
|
|
646
309
|
});
|
|
647
310
|
}
|
|
648
311
|
|
|
649
|
-
/** @returns {
|
|
650
|
-
static
|
|
312
|
+
/** @returns {BulkRegionResponse} */
|
|
313
|
+
static BulkRegionResponse() {
|
|
651
314
|
return Joi.object({
|
|
652
315
|
items: Joi.array()
|
|
653
|
-
.items(LogisticsPartnerModel.
|
|
316
|
+
.items(LogisticsPartnerModel.BulkRegionResponseItemData())
|
|
654
317
|
.required(),
|
|
655
318
|
page: LogisticsPartnerModel.Page().required(),
|
|
656
319
|
});
|
|
@@ -668,8 +331,8 @@ class LogisticsPartnerModel {
|
|
|
668
331
|
});
|
|
669
332
|
}
|
|
670
333
|
|
|
671
|
-
/** @returns {
|
|
672
|
-
static
|
|
334
|
+
/** @returns {CourierAccountRequestBody} */
|
|
335
|
+
static CourierAccountRequestBody() {
|
|
673
336
|
return Joi.object({
|
|
674
337
|
extension_id: Joi.string().allow("").required(),
|
|
675
338
|
account_id: Joi.string().allow(""),
|
|
@@ -680,26 +343,28 @@ class LogisticsPartnerModel {
|
|
|
680
343
|
});
|
|
681
344
|
}
|
|
682
345
|
|
|
683
|
-
/** @returns {
|
|
684
|
-
static
|
|
346
|
+
/** @returns {CourierPartnerAccountFailureResponse} */
|
|
347
|
+
static CourierPartnerAccountFailureResponse() {
|
|
685
348
|
return Joi.object({
|
|
686
349
|
success: Joi.boolean().required(),
|
|
687
|
-
error: Joi.array()
|
|
350
|
+
error: Joi.array()
|
|
351
|
+
.items(LogisticsPartnerModel.ErrorResponse())
|
|
352
|
+
.required(),
|
|
688
353
|
});
|
|
689
354
|
}
|
|
690
355
|
|
|
691
|
-
/** @returns {
|
|
692
|
-
static
|
|
356
|
+
/** @returns {CompanyCourierPartnerAccountListResponse} */
|
|
357
|
+
static CompanyCourierPartnerAccountListResponse() {
|
|
693
358
|
return Joi.object({
|
|
694
359
|
items: Joi.array()
|
|
695
|
-
.items(LogisticsPartnerModel.
|
|
360
|
+
.items(LogisticsPartnerModel.CourierAccountResponse())
|
|
696
361
|
.required(),
|
|
697
362
|
page: LogisticsPartnerModel.Page().required(),
|
|
698
363
|
});
|
|
699
364
|
}
|
|
700
365
|
|
|
701
|
-
/** @returns {
|
|
702
|
-
static
|
|
366
|
+
/** @returns {CourierAccountResponse} */
|
|
367
|
+
static CourierAccountResponse() {
|
|
703
368
|
return Joi.object({
|
|
704
369
|
account_id: Joi.string().allow("").required(),
|
|
705
370
|
scheme_id: Joi.string().allow("").required(),
|
|
@@ -726,8 +391,8 @@ class LogisticsPartnerModel {
|
|
|
726
391
|
});
|
|
727
392
|
}
|
|
728
393
|
|
|
729
|
-
/** @returns {
|
|
730
|
-
static
|
|
394
|
+
/** @returns {CourierPartnerSchemeRequestModel} */
|
|
395
|
+
static CourierPartnerSchemeRequestModel() {
|
|
731
396
|
return Joi.object({
|
|
732
397
|
extension_id: Joi.string().allow("").required(),
|
|
733
398
|
scheme_id: Joi.string().allow(""),
|
|
@@ -763,8 +428,6 @@ class LogisticsPartnerModel {
|
|
|
763
428
|
single_pick_multi_drop: Joi.boolean(),
|
|
764
429
|
multi_pick_multi_drop: Joi.boolean(),
|
|
765
430
|
ewaybill: Joi.boolean(),
|
|
766
|
-
qc_shipment_item_quantity: Joi.number().allow(null),
|
|
767
|
-
non_qc_shipment_item_quantity: Joi.number().allow(null),
|
|
768
431
|
});
|
|
769
432
|
}
|
|
770
433
|
|
|
@@ -778,8 +441,8 @@ class LogisticsPartnerModel {
|
|
|
778
441
|
});
|
|
779
442
|
}
|
|
780
443
|
|
|
781
|
-
/** @returns {
|
|
782
|
-
static
|
|
444
|
+
/** @returns {CourierPartnerSchemeUpdateRequest} */
|
|
445
|
+
static CourierPartnerSchemeUpdateRequest() {
|
|
783
446
|
return Joi.object({
|
|
784
447
|
name: Joi.string().allow("").required(),
|
|
785
448
|
weight: LogisticsPartnerModel.ArithmeticOperations().required(),
|
|
@@ -817,7 +480,6 @@ class LogisticsPartnerModel {
|
|
|
817
480
|
latitude: Joi.string().allow(""),
|
|
818
481
|
longitude: Joi.string().allow(""),
|
|
819
482
|
display_name: Joi.string().allow(""),
|
|
820
|
-
has_next_hierarchy: Joi.boolean(),
|
|
821
483
|
});
|
|
822
484
|
}
|
|
823
485
|
|
|
@@ -828,20 +490,5 @@ class LogisticsPartnerModel {
|
|
|
828
490
|
slug: Joi.string().allow(""),
|
|
829
491
|
});
|
|
830
492
|
}
|
|
831
|
-
|
|
832
|
-
/** @returns {ValidationError} */
|
|
833
|
-
static ValidationError() {
|
|
834
|
-
return Joi.object({
|
|
835
|
-
message: Joi.string().allow("").required(),
|
|
836
|
-
field: Joi.string().allow("").required(),
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
/** @returns {StandardError} */
|
|
841
|
-
static StandardError() {
|
|
842
|
-
return Joi.object({
|
|
843
|
-
message: Joi.string().allow("").required(),
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
493
|
}
|
|
847
494
|
module.exports = LogisticsPartnerModel;
|