@gofynd/fdk-client-javascript 1.4.12 → 1.4.14
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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
- package/sdk/application/Content/ContentApplicationModel.js +88 -34
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
- package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/common/Clickstream.js +12 -0
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
- package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
- package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
- package/sdk/platform/Content/ContentPlatformModel.js +526 -392
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
- package/sdk/platform/Order/OrderPlatformClient.js +267 -203
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
- package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
- package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
- package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- 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/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef BulkRegionServiceabilityTatDetails
|
|
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 BulkRegionServiceabilityTatResultItemData
|
|
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 ErrorResult
|
|
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 FailureResult
|
|
30
30
|
* @property {boolean} success
|
|
31
|
-
* @property {
|
|
31
|
+
* @property {ErrorResult[]} error
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* @typedef
|
|
36
|
-
* @property {
|
|
35
|
+
* @typedef BulkRegionServiceabilityTatResult
|
|
36
|
+
* @property {BulkRegionServiceabilityTatResultItemData[]} [items]
|
|
37
37
|
* @property {Page} [page]
|
|
38
38
|
*/
|
|
39
39
|
|
|
@@ -49,7 +49,180 @@ const Joi = require("joi");
|
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* @typedef
|
|
52
|
+
* @typedef RegionTatItemResult
|
|
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
|
|
53
226
|
* @property {string} [file_path]
|
|
54
227
|
* @property {string} country
|
|
55
228
|
* @property {string} action
|
|
@@ -57,7 +230,7 @@ const Joi = require("joi");
|
|
|
57
230
|
*/
|
|
58
231
|
|
|
59
232
|
/**
|
|
60
|
-
* @typedef
|
|
233
|
+
* @typedef BulkRegionResultItemData
|
|
61
234
|
* @property {string} file_path
|
|
62
235
|
* @property {number} [failed]
|
|
63
236
|
* @property {Object[]} [failed_records]
|
|
@@ -72,8 +245,8 @@ const Joi = require("joi");
|
|
|
72
245
|
*/
|
|
73
246
|
|
|
74
247
|
/**
|
|
75
|
-
* @typedef
|
|
76
|
-
* @property {
|
|
248
|
+
* @typedef BulkRegionResult
|
|
249
|
+
* @property {BulkRegionResultItemData[]} items
|
|
77
250
|
* @property {Page} page
|
|
78
251
|
*/
|
|
79
252
|
|
|
@@ -88,7 +261,7 @@ const Joi = require("joi");
|
|
|
88
261
|
*/
|
|
89
262
|
|
|
90
263
|
/**
|
|
91
|
-
* @typedef
|
|
264
|
+
* @typedef CourierAccountDetailsBody
|
|
92
265
|
* @property {string} extension_id
|
|
93
266
|
* @property {string} [account_id]
|
|
94
267
|
* @property {string} scheme_id
|
|
@@ -98,19 +271,19 @@ const Joi = require("joi");
|
|
|
98
271
|
*/
|
|
99
272
|
|
|
100
273
|
/**
|
|
101
|
-
* @typedef
|
|
274
|
+
* @typedef CourierPartnerAccountFailureResult
|
|
102
275
|
* @property {boolean} success
|
|
103
|
-
* @property {
|
|
276
|
+
* @property {ErrorResult[]} error
|
|
104
277
|
*/
|
|
105
278
|
|
|
106
279
|
/**
|
|
107
|
-
* @typedef
|
|
108
|
-
* @property {
|
|
280
|
+
* @typedef CompanyCourierPartnerAccountListResult
|
|
281
|
+
* @property {CourierAccountResult[]} items
|
|
109
282
|
* @property {Page} page
|
|
110
283
|
*/
|
|
111
284
|
|
|
112
285
|
/**
|
|
113
|
-
* @typedef
|
|
286
|
+
* @typedef CourierAccountResult
|
|
114
287
|
* @property {string} account_id
|
|
115
288
|
* @property {string} scheme_id
|
|
116
289
|
* @property {boolean} is_self_ship
|
|
@@ -134,7 +307,7 @@ const Joi = require("joi");
|
|
|
134
307
|
*/
|
|
135
308
|
|
|
136
309
|
/**
|
|
137
|
-
* @typedef
|
|
310
|
+
* @typedef CourierPartnerSchemeDetailsModel
|
|
138
311
|
* @property {string} extension_id
|
|
139
312
|
* @property {string} [scheme_id]
|
|
140
313
|
* @property {string} name
|
|
@@ -149,24 +322,47 @@ const Joi = require("joi");
|
|
|
149
322
|
|
|
150
323
|
/**
|
|
151
324
|
* @typedef CourierPartnerSchemeFeatures
|
|
152
|
-
* @property {boolean} [doorstep_qc]
|
|
153
|
-
*
|
|
154
|
-
* @property {boolean} [
|
|
155
|
-
*
|
|
156
|
-
* @property {
|
|
157
|
-
*
|
|
158
|
-
* @property {boolean} [
|
|
159
|
-
*
|
|
160
|
-
* @property {
|
|
161
|
-
*
|
|
162
|
-
* @property {boolean} [
|
|
163
|
-
*
|
|
164
|
-
* @property {boolean} [
|
|
165
|
-
*
|
|
166
|
-
* @property {boolean} [
|
|
167
|
-
*
|
|
168
|
-
* @property {boolean} [
|
|
169
|
-
*
|
|
325
|
+
* @property {boolean} [doorstep_qc] - Indicates if the courier partner offers
|
|
326
|
+
* doorstep quality check services.
|
|
327
|
+
* @property {boolean} [qr] - Specifies whether the courier partner supports QR
|
|
328
|
+
* code-based operations.
|
|
329
|
+
* @property {boolean} [mps] - Denotes if the courier partner supports
|
|
330
|
+
* multi-part shipment services.
|
|
331
|
+
* @property {boolean} [ndr] - Indicates if the Non-Delivery Report (NDR)
|
|
332
|
+
* feature is supported by the courier partner.
|
|
333
|
+
* @property {number} [ndr_attempts] - Number of attempts allowed for resolving
|
|
334
|
+
* Non-Delivery Reports (NDR).
|
|
335
|
+
* @property {boolean} [dangerous_goods] - Specifies if the courier partner
|
|
336
|
+
* handles the transportation of dangerous goods.
|
|
337
|
+
* @property {boolean} [fragile_goods] - Indicates whether the courier partner
|
|
338
|
+
* manages the shipment of fragile goods.
|
|
339
|
+
* @property {boolean} [restricted_goods] - Indicates if the courier partner
|
|
340
|
+
* handles restricted goods, as per regulatory guidelines.
|
|
341
|
+
* @property {boolean} [cold_storage_goods] - Denotes if the courier partner
|
|
342
|
+
* provides cold storage facilities for goods.
|
|
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.
|
|
170
366
|
*/
|
|
171
367
|
|
|
172
368
|
/**
|
|
@@ -178,7 +374,7 @@ const Joi = require("joi");
|
|
|
178
374
|
*/
|
|
179
375
|
|
|
180
376
|
/**
|
|
181
|
-
* @typedef
|
|
377
|
+
* @typedef CourierPartnerSchemeUpdateDetails
|
|
182
378
|
* @property {string} name
|
|
183
379
|
* @property {ArithmeticOperations} weight
|
|
184
380
|
* @property {string} transport_type
|
|
@@ -209,6 +405,9 @@ const Joi = require("joi");
|
|
|
209
405
|
* @property {string} [latitude]
|
|
210
406
|
* @property {string} [longitude]
|
|
211
407
|
* @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.
|
|
212
411
|
*/
|
|
213
412
|
|
|
214
413
|
/**
|
|
@@ -217,9 +416,20 @@ const Joi = require("joi");
|
|
|
217
416
|
* @property {string} [slug]
|
|
218
417
|
*/
|
|
219
418
|
|
|
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
|
+
|
|
220
430
|
class LogisticsPartnerModel {
|
|
221
|
-
/** @returns {
|
|
222
|
-
static
|
|
431
|
+
/** @returns {BulkRegionServiceabilityTatDetails} */
|
|
432
|
+
static BulkRegionServiceabilityTatDetails() {
|
|
223
433
|
return Joi.object({
|
|
224
434
|
country: Joi.string().allow("").required(),
|
|
225
435
|
region: Joi.string().allow("").required(),
|
|
@@ -227,21 +437,21 @@ class LogisticsPartnerModel {
|
|
|
227
437
|
});
|
|
228
438
|
}
|
|
229
439
|
|
|
230
|
-
/** @returns {
|
|
231
|
-
static
|
|
440
|
+
/** @returns {BulkRegionServiceabilityTatResultItemData} */
|
|
441
|
+
static BulkRegionServiceabilityTatResultItemData() {
|
|
232
442
|
return Joi.object({
|
|
233
443
|
country: Joi.string().allow(""),
|
|
234
444
|
region: Joi.string().allow(""),
|
|
235
445
|
type: Joi.string().allow(""),
|
|
236
446
|
batch_id: Joi.string().allow(""),
|
|
237
447
|
status: Joi.string().allow(""),
|
|
238
|
-
failed_records: Joi.array().items(Joi.any()),
|
|
448
|
+
failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
239
449
|
file_path: Joi.string().allow(""),
|
|
240
450
|
});
|
|
241
451
|
}
|
|
242
452
|
|
|
243
|
-
/** @returns {
|
|
244
|
-
static
|
|
453
|
+
/** @returns {ErrorResult} */
|
|
454
|
+
static ErrorResult() {
|
|
245
455
|
return Joi.object({
|
|
246
456
|
value: Joi.string().allow("").required(),
|
|
247
457
|
message: Joi.string().allow("").required(),
|
|
@@ -249,21 +459,19 @@ class LogisticsPartnerModel {
|
|
|
249
459
|
});
|
|
250
460
|
}
|
|
251
461
|
|
|
252
|
-
/** @returns {
|
|
253
|
-
static
|
|
462
|
+
/** @returns {FailureResult} */
|
|
463
|
+
static FailureResult() {
|
|
254
464
|
return Joi.object({
|
|
255
465
|
success: Joi.boolean().required(),
|
|
256
|
-
error: Joi.array()
|
|
257
|
-
.items(LogisticsPartnerModel.ErrorResponse())
|
|
258
|
-
.required(),
|
|
466
|
+
error: Joi.array().items(LogisticsPartnerModel.ErrorResult()).required(),
|
|
259
467
|
});
|
|
260
468
|
}
|
|
261
469
|
|
|
262
|
-
/** @returns {
|
|
263
|
-
static
|
|
470
|
+
/** @returns {BulkRegionServiceabilityTatResult} */
|
|
471
|
+
static BulkRegionServiceabilityTatResult() {
|
|
264
472
|
return Joi.object({
|
|
265
473
|
items: Joi.array().items(
|
|
266
|
-
LogisticsPartnerModel.
|
|
474
|
+
LogisticsPartnerModel.BulkRegionServiceabilityTatResultItemData()
|
|
267
475
|
),
|
|
268
476
|
page: LogisticsPartnerModel.Page(),
|
|
269
477
|
});
|
|
@@ -282,8 +490,137 @@ class LogisticsPartnerModel {
|
|
|
282
490
|
});
|
|
283
491
|
}
|
|
284
492
|
|
|
285
|
-
/** @returns {
|
|
286
|
-
static
|
|
493
|
+
/** @returns {RegionTatItemResult} */
|
|
494
|
+
static RegionTatItemResult() {
|
|
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() {
|
|
287
624
|
return Joi.object({
|
|
288
625
|
file_path: Joi.string().allow(""),
|
|
289
626
|
country: Joi.string().allow("").required(),
|
|
@@ -292,12 +629,12 @@ class LogisticsPartnerModel {
|
|
|
292
629
|
});
|
|
293
630
|
}
|
|
294
631
|
|
|
295
|
-
/** @returns {
|
|
296
|
-
static
|
|
632
|
+
/** @returns {BulkRegionResultItemData} */
|
|
633
|
+
static BulkRegionResultItemData() {
|
|
297
634
|
return Joi.object({
|
|
298
635
|
file_path: Joi.string().allow("").required(),
|
|
299
636
|
failed: Joi.number(),
|
|
300
|
-
failed_records: Joi.array().items(Joi.any()),
|
|
637
|
+
failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
301
638
|
action: Joi.string().allow("").required(),
|
|
302
639
|
batch_id: Joi.string().allow("").required(),
|
|
303
640
|
country: Joi.string().allow("").required(),
|
|
@@ -309,11 +646,11 @@ class LogisticsPartnerModel {
|
|
|
309
646
|
});
|
|
310
647
|
}
|
|
311
648
|
|
|
312
|
-
/** @returns {
|
|
313
|
-
static
|
|
649
|
+
/** @returns {BulkRegionResult} */
|
|
650
|
+
static BulkRegionResult() {
|
|
314
651
|
return Joi.object({
|
|
315
652
|
items: Joi.array()
|
|
316
|
-
.items(LogisticsPartnerModel.
|
|
653
|
+
.items(LogisticsPartnerModel.BulkRegionResultItemData())
|
|
317
654
|
.required(),
|
|
318
655
|
page: LogisticsPartnerModel.Page().required(),
|
|
319
656
|
});
|
|
@@ -331,8 +668,8 @@ class LogisticsPartnerModel {
|
|
|
331
668
|
});
|
|
332
669
|
}
|
|
333
670
|
|
|
334
|
-
/** @returns {
|
|
335
|
-
static
|
|
671
|
+
/** @returns {CourierAccountDetailsBody} */
|
|
672
|
+
static CourierAccountDetailsBody() {
|
|
336
673
|
return Joi.object({
|
|
337
674
|
extension_id: Joi.string().allow("").required(),
|
|
338
675
|
account_id: Joi.string().allow(""),
|
|
@@ -343,28 +680,26 @@ class LogisticsPartnerModel {
|
|
|
343
680
|
});
|
|
344
681
|
}
|
|
345
682
|
|
|
346
|
-
/** @returns {
|
|
347
|
-
static
|
|
683
|
+
/** @returns {CourierPartnerAccountFailureResult} */
|
|
684
|
+
static CourierPartnerAccountFailureResult() {
|
|
348
685
|
return Joi.object({
|
|
349
686
|
success: Joi.boolean().required(),
|
|
350
|
-
error: Joi.array()
|
|
351
|
-
.items(LogisticsPartnerModel.ErrorResponse())
|
|
352
|
-
.required(),
|
|
687
|
+
error: Joi.array().items(LogisticsPartnerModel.ErrorResult()).required(),
|
|
353
688
|
});
|
|
354
689
|
}
|
|
355
690
|
|
|
356
|
-
/** @returns {
|
|
357
|
-
static
|
|
691
|
+
/** @returns {CompanyCourierPartnerAccountListResult} */
|
|
692
|
+
static CompanyCourierPartnerAccountListResult() {
|
|
358
693
|
return Joi.object({
|
|
359
694
|
items: Joi.array()
|
|
360
|
-
.items(LogisticsPartnerModel.
|
|
695
|
+
.items(LogisticsPartnerModel.CourierAccountResult())
|
|
361
696
|
.required(),
|
|
362
697
|
page: LogisticsPartnerModel.Page().required(),
|
|
363
698
|
});
|
|
364
699
|
}
|
|
365
700
|
|
|
366
|
-
/** @returns {
|
|
367
|
-
static
|
|
701
|
+
/** @returns {CourierAccountResult} */
|
|
702
|
+
static CourierAccountResult() {
|
|
368
703
|
return Joi.object({
|
|
369
704
|
account_id: Joi.string().allow("").required(),
|
|
370
705
|
scheme_id: Joi.string().allow("").required(),
|
|
@@ -391,8 +726,8 @@ class LogisticsPartnerModel {
|
|
|
391
726
|
});
|
|
392
727
|
}
|
|
393
728
|
|
|
394
|
-
/** @returns {
|
|
395
|
-
static
|
|
729
|
+
/** @returns {CourierPartnerSchemeDetailsModel} */
|
|
730
|
+
static CourierPartnerSchemeDetailsModel() {
|
|
396
731
|
return Joi.object({
|
|
397
732
|
extension_id: Joi.string().allow("").required(),
|
|
398
733
|
scheme_id: Joi.string().allow(""),
|
|
@@ -428,6 +763,8 @@ class LogisticsPartnerModel {
|
|
|
428
763
|
single_pick_multi_drop: Joi.boolean(),
|
|
429
764
|
multi_pick_multi_drop: Joi.boolean(),
|
|
430
765
|
ewaybill: Joi.boolean(),
|
|
766
|
+
qc_shipment_item_quantity: Joi.number().allow(null),
|
|
767
|
+
non_qc_shipment_item_quantity: Joi.number().allow(null),
|
|
431
768
|
});
|
|
432
769
|
}
|
|
433
770
|
|
|
@@ -441,8 +778,8 @@ class LogisticsPartnerModel {
|
|
|
441
778
|
});
|
|
442
779
|
}
|
|
443
780
|
|
|
444
|
-
/** @returns {
|
|
445
|
-
static
|
|
781
|
+
/** @returns {CourierPartnerSchemeUpdateDetails} */
|
|
782
|
+
static CourierPartnerSchemeUpdateDetails() {
|
|
446
783
|
return Joi.object({
|
|
447
784
|
name: Joi.string().allow("").required(),
|
|
448
785
|
weight: LogisticsPartnerModel.ArithmeticOperations().required(),
|
|
@@ -480,6 +817,7 @@ class LogisticsPartnerModel {
|
|
|
480
817
|
latitude: Joi.string().allow(""),
|
|
481
818
|
longitude: Joi.string().allow(""),
|
|
482
819
|
display_name: Joi.string().allow(""),
|
|
820
|
+
has_next_hierarchy: Joi.boolean(),
|
|
483
821
|
});
|
|
484
822
|
}
|
|
485
823
|
|
|
@@ -490,5 +828,20 @@ class LogisticsPartnerModel {
|
|
|
490
828
|
slug: Joi.string().allow(""),
|
|
491
829
|
});
|
|
492
830
|
}
|
|
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
|
+
}
|
|
493
846
|
}
|
|
494
847
|
module.exports = LogisticsPartnerModel;
|