@gofynd/fdk-client-javascript 1.4.13 → 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 +1 -1
- 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 +93 -37
- package/sdk/application/Content/ContentApplicationModel.js +83 -32
- 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 +48 -17
- package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
- 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/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 +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- 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 +208 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
- package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
- 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 +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- 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 +178 -97
- package/sdk/platform/Order/OrderPlatformClient.js +589 -229
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
- package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
- package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
- 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 +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- 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
|
|
5
|
-
* @property {
|
|
4
|
+
* @typedef GetStoreResult
|
|
5
|
+
* @property {StoreItemResult[]} [items] - List of locations, each containing
|
|
6
6
|
* detailed information about individual location.
|
|
7
7
|
* @property {Page} [page]
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* @typedef
|
|
11
|
+
* @typedef StoreItemResult
|
|
12
12
|
* @property {number} [id] - A unique identifier for the location.
|
|
13
13
|
* @property {string} [store_type] - The type of store, indicating the nature of
|
|
14
14
|
* the store, such as retail or warehouse.
|
|
@@ -27,7 +27,7 @@ const Joi = require("joi");
|
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* @typedef
|
|
30
|
+
* @typedef ValidateAddressDetails
|
|
31
31
|
* @property {string} [address] - Complete address, combining address line 1,
|
|
32
32
|
* address line 2, area, landmark, sector, city, state, and pincode.
|
|
33
33
|
* @property {string} [address1] - First line of the address, typically
|
|
@@ -48,7 +48,7 @@ const Joi = require("joi");
|
|
|
48
48
|
*/
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @typedef
|
|
51
|
+
* @typedef PincodeParentsResult
|
|
52
52
|
* @property {string} [sub_type] - Specific type of locality hierarchy the
|
|
53
53
|
* pincode belongs to (e.g., city, state, country).
|
|
54
54
|
* @property {string} [display_name] - User-friendly version of the geographical
|
|
@@ -60,7 +60,7 @@ const Joi = require("joi");
|
|
|
60
60
|
*/
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* @typedef
|
|
63
|
+
* @typedef PincodeMetaResult
|
|
64
64
|
* @property {string} [zone] - Geographical region to which the pincode belongs,
|
|
65
65
|
* often used to categorize or group pincodes for regional management or
|
|
66
66
|
* postal purposes.
|
|
@@ -69,7 +69,7 @@ const Joi = require("joi");
|
|
|
69
69
|
*/
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* @typedef
|
|
72
|
+
* @typedef PincodeErrorSchemaResult
|
|
73
73
|
* @property {string} [message] - A user-readable description of the error,
|
|
74
74
|
* explaining what went wrong.
|
|
75
75
|
* @property {string} [value] - A specific code or identifier related to the
|
|
@@ -79,7 +79,7 @@ const Joi = require("joi");
|
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* @typedef
|
|
82
|
+
* @typedef CountryMetaResult
|
|
83
83
|
* @property {string} [country_code] - The ISO 3166-1 alpha-2 code representing
|
|
84
84
|
* the country (e.g., "IN" for India, "US" for the United States).
|
|
85
85
|
* @property {string} [isd_code] - The International Subscriber Dialing (ISD)
|
|
@@ -97,15 +97,15 @@ const Joi = require("joi");
|
|
|
97
97
|
*/
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
* @typedef
|
|
101
|
-
* @property {
|
|
102
|
-
*
|
|
100
|
+
* @typedef PincodeDataResult
|
|
101
|
+
* @property {PincodeParentsResult[]} [parents] - List of object representing a
|
|
102
|
+
* collection of geographical locations, each associated with specific
|
|
103
103
|
* hierarchical data such as cities, states, or countries.
|
|
104
|
-
* @property {
|
|
104
|
+
* @property {PincodeMetaResult} [meta]
|
|
105
105
|
* @property {string} [display_name] - User-friendly version of the geographical
|
|
106
106
|
* data, which may be more descriptive or formatted differently.
|
|
107
|
-
* @property {
|
|
108
|
-
* @property {
|
|
107
|
+
* @property {PincodeErrorSchemaResult} error
|
|
108
|
+
* @property {CountryMetaResult} [meta_code]
|
|
109
109
|
* @property {PincodeLatLongData} [lat_long]
|
|
110
110
|
* @property {string} [sub_type] - Indicates the specific type of locality
|
|
111
111
|
* hierarchy the pincode belongs to (e.g., city, state, country).
|
|
@@ -117,17 +117,17 @@ const Joi = require("joi");
|
|
|
117
117
|
*/
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* @typedef
|
|
120
|
+
* @typedef PincodeDetails
|
|
121
121
|
* @property {boolean} success - Indicates whether the API request was
|
|
122
122
|
* successful (true) or failed (false).
|
|
123
|
-
* @property {
|
|
123
|
+
* @property {PincodeDataResult[]} [data] - Contains the actual response data
|
|
124
124
|
* when the request is successful, providing details like pincode information
|
|
125
125
|
* or related data.
|
|
126
|
-
* @property {
|
|
126
|
+
* @property {PincodeErrorSchemaResult} error
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
|
-
* @typedef
|
|
130
|
+
* @typedef TATCategoryDetails
|
|
131
131
|
* @property {string} [level] - Specifies the hierarchical level of the category
|
|
132
132
|
* (e.g., country, state, city).
|
|
133
133
|
* @property {number} [id] - Represents the unique identifier for the category
|
|
@@ -135,8 +135,8 @@ const Joi = require("joi");
|
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
|
-
* @typedef
|
|
139
|
-
* @property {
|
|
138
|
+
* @typedef TATArticlesDetails
|
|
139
|
+
* @property {TATCategoryDetails} [category]
|
|
140
140
|
* @property {string} [manufacturing_time_unit] - The unit of measurement for
|
|
141
141
|
* the manufacturing time, such as hours or days.
|
|
142
142
|
* @property {number} [manufacturing_time] - The amount of time required to
|
|
@@ -144,17 +144,17 @@ const Joi = require("joi");
|
|
|
144
144
|
*/
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* @typedef
|
|
147
|
+
* @typedef TATLocationDetailsDetails
|
|
148
148
|
* @property {number} [fulfillment_id] - A unique identifier of the fulfilling location.
|
|
149
149
|
* @property {string} [from_pincode] - The postal code of the location from
|
|
150
150
|
* which the fulfillment originates.
|
|
151
|
-
* @property {
|
|
151
|
+
* @property {TATArticlesDetails[]} [articles] - List of articles included in
|
|
152
152
|
* the fulfillment request, which provides details about the items to be
|
|
153
153
|
* processed or shipped.
|
|
154
154
|
*/
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
|
-
* @typedef
|
|
157
|
+
* @typedef TATViewDetails
|
|
158
158
|
* @property {string} [to_pincode] - The postal code of the destination location
|
|
159
159
|
* where the fulfillment or shipment is headed.
|
|
160
160
|
* @property {string} [source] - The origin or source of the request, indicating
|
|
@@ -163,7 +163,7 @@ const Joi = require("joi");
|
|
|
163
163
|
* such as viewing, updating, or managing data.
|
|
164
164
|
* @property {string} [identifier] - A unique ID used to reference or track the
|
|
165
165
|
* specific request or item within the system.
|
|
166
|
-
* @property {
|
|
166
|
+
* @property {TATLocationDetailsDetails[]} [location_details] - Locations
|
|
167
167
|
* involved in the request, including details about both the source and destination.
|
|
168
168
|
* @property {string} [journey] - Indicates the direction of the request or
|
|
169
169
|
* shipment. It can either be "forward" (from the source to the destination)
|
|
@@ -171,7 +171,7 @@ const Joi = require("joi");
|
|
|
171
171
|
*/
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
|
-
* @typedef
|
|
174
|
+
* @typedef TATErrorSchemaResult
|
|
175
175
|
* @property {string} [message] - A user-readable description of the error,
|
|
176
176
|
* explaining what went wrong.
|
|
177
177
|
* @property {string} [value] - A specific code or identifier related to the
|
|
@@ -181,56 +181,56 @@ const Joi = require("joi");
|
|
|
181
181
|
*/
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
* @typedef
|
|
184
|
+
* @typedef TATTimestampResult
|
|
185
185
|
* @property {number} [min] - The earliest possible timestamp.
|
|
186
186
|
* @property {number} [max] - The latest possible timestamp.
|
|
187
187
|
*/
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
|
-
* @typedef
|
|
190
|
+
* @typedef TATFormattedResult
|
|
191
191
|
* @property {string} [min] - The earliest possible timestamp.
|
|
192
192
|
* @property {string} [max] - The latest possible timestamp.
|
|
193
193
|
*/
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
* @typedef
|
|
197
|
-
* @property {
|
|
198
|
-
* @property {
|
|
196
|
+
* @typedef TATPromiseResult
|
|
197
|
+
* @property {TATTimestampResult} [timestamp]
|
|
198
|
+
* @property {TATFormattedResult} [formatted]
|
|
199
199
|
*/
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
|
-
* @typedef
|
|
202
|
+
* @typedef TATArticlesResult
|
|
203
203
|
* @property {string} [manufacturing_time_unit] - The unit of measurement for
|
|
204
204
|
* the manufacturing time such as hours or days.
|
|
205
|
-
* @property {
|
|
205
|
+
* @property {TATErrorSchemaResult} [error]
|
|
206
206
|
* @property {boolean} [is_cod_available] - Indicates whether Cash on Delivery
|
|
207
207
|
* (COD) is available for the articles.
|
|
208
|
-
* @property {
|
|
208
|
+
* @property {TATPromiseResult} [promise]
|
|
209
209
|
* @property {number} [manufacturing_time] - The time required to manufacture
|
|
210
210
|
* the articles, measured in the unit specified by manufacturing_time_unit.
|
|
211
|
-
* @property {
|
|
211
|
+
* @property {TATCategoryDetails} [category]
|
|
212
212
|
* @property {number} [_manufacturing_time_seconds] - The manufacturing time
|
|
213
213
|
* converted into seconds.
|
|
214
214
|
*/
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* @typedef
|
|
217
|
+
* @typedef TATLocationDetailsResult
|
|
218
218
|
* @property {number} [fulfillment_id] - A unique identifier of the fulfilling location.
|
|
219
219
|
* @property {string} [from_pincode] - The postal code of the location from
|
|
220
220
|
* which the fulfillment originates.
|
|
221
|
-
* @property {
|
|
222
|
-
*
|
|
223
|
-
*
|
|
221
|
+
* @property {TATArticlesResult[]} [articles] - List of articles included in the
|
|
222
|
+
* fulfillment request, which provides details about the items to be processed
|
|
223
|
+
* or shipped.
|
|
224
224
|
*/
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
|
-
* @typedef
|
|
227
|
+
* @typedef TATViewResult
|
|
228
228
|
* @property {string} [to_pincode] - The postal code of the destination location
|
|
229
229
|
* where the fulfillment or shipment is headed.
|
|
230
230
|
* @property {string} [request_uuid] - A unique identifier for the request.
|
|
231
231
|
* @property {string} [payment_mode] - The mode of payment used for the transaction.
|
|
232
232
|
* @property {boolean} [success] - Whether the request was successful (true/false).
|
|
233
|
-
* @property {
|
|
233
|
+
* @property {TATErrorSchemaResult} [error]
|
|
234
234
|
* @property {boolean} [is_cod_available] - Whether Cash on Delivery (COD) is
|
|
235
235
|
* available for the request.
|
|
236
236
|
* @property {string} [source] - The origin or source of the request.
|
|
@@ -240,8 +240,8 @@ const Joi = require("joi");
|
|
|
240
240
|
* stormbreaker process.
|
|
241
241
|
* @property {string} [to_city] - The city corresponding to the destination pincode.
|
|
242
242
|
* @property {string} [identifier] - A unique identifier for the request or transaction.
|
|
243
|
-
* @property {
|
|
244
|
-
*
|
|
243
|
+
* @property {TATLocationDetailsResult[]} [location_details] - Location involved
|
|
244
|
+
* in the request.
|
|
245
245
|
* @property {string} [journey] - Type of journey, either forward or return.
|
|
246
246
|
*/
|
|
247
247
|
|
|
@@ -272,15 +272,14 @@ const Joi = require("joi");
|
|
|
272
272
|
*/
|
|
273
273
|
|
|
274
274
|
/**
|
|
275
|
-
* @typedef
|
|
276
|
-
* @property {
|
|
277
|
-
* delivery of goods.
|
|
275
|
+
* @typedef LogisticsResult
|
|
276
|
+
* @property {DP} [dp]
|
|
278
277
|
*/
|
|
279
278
|
|
|
280
279
|
/**
|
|
281
|
-
* @typedef
|
|
282
|
-
* @property {
|
|
283
|
-
* @property {
|
|
280
|
+
* @typedef CountryEntityResult
|
|
281
|
+
* @property {CountryMetaResult} [meta]
|
|
282
|
+
* @property {LogisticsResult} [logistics]
|
|
284
283
|
* @property {string} [display_name] - User-friendly version of the geographical
|
|
285
284
|
* data, which may be more descriptive or formatted differently.
|
|
286
285
|
* @property {string} [type] - Specifies the type of geographical feature or
|
|
@@ -295,20 +294,20 @@ const Joi = require("joi");
|
|
|
295
294
|
*/
|
|
296
295
|
|
|
297
296
|
/**
|
|
298
|
-
* @typedef
|
|
299
|
-
* @property {
|
|
297
|
+
* @typedef CountryListResult
|
|
298
|
+
* @property {CountryEntityResult[]} [results] - A list of country entities,
|
|
300
299
|
* each containing details about individual countries.
|
|
301
300
|
*/
|
|
302
301
|
|
|
303
302
|
/**
|
|
304
|
-
* @typedef
|
|
303
|
+
* @typedef GetZoneFromPincodeViewDetails
|
|
305
304
|
* @property {string} pincode - The postal code or ZIP code used to pinpoint a
|
|
306
305
|
* specific geographic area or location.
|
|
307
306
|
* @property {string} country - The country where the pincode is located.
|
|
308
307
|
*/
|
|
309
308
|
|
|
310
309
|
/**
|
|
311
|
-
* @typedef
|
|
310
|
+
* @typedef GetZoneFromPincodeViewResult
|
|
312
311
|
* @property {string} serviceability_type - Specifies the type of serviceability
|
|
313
312
|
* for the given pincode, indicating whether it's deliverable or serviceable
|
|
314
313
|
* under certain conditions.
|
|
@@ -317,7 +316,7 @@ const Joi = require("joi");
|
|
|
317
316
|
*/
|
|
318
317
|
|
|
319
318
|
/**
|
|
320
|
-
* @typedef
|
|
319
|
+
* @typedef ReAssignStoreDetails
|
|
321
320
|
* @property {Object} configuration - Specifies the configuration settings or
|
|
322
321
|
* parameters for the store reassignment.
|
|
323
322
|
* @property {string} to_pincode - The postal code of the destination location
|
|
@@ -330,7 +329,7 @@ const Joi = require("joi");
|
|
|
330
329
|
*/
|
|
331
330
|
|
|
332
331
|
/**
|
|
333
|
-
* @typedef
|
|
332
|
+
* @typedef ReAssignStoreResult
|
|
334
333
|
* @property {string} to_pincode - The postal code of the destination location
|
|
335
334
|
* where the fulfillment or shipment is headed.
|
|
336
335
|
* @property {string} pystormbreaker_uuid - A unique identifier for tracking the
|
|
@@ -521,6 +520,7 @@ const Joi = require("joi");
|
|
|
521
520
|
* @property {string} [name] - The actual geographical data, such as country
|
|
522
521
|
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
523
522
|
* (Dubai), or local sectors (Deira).
|
|
523
|
+
* @property {Object} [custom_meta] - Custom meta to store custom json against hierarchy.
|
|
524
524
|
* @property {string} [display_name] - User-friendly version of the geographical
|
|
525
525
|
* data, which may be more descriptive or formatted differently.
|
|
526
526
|
* @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
|
|
@@ -540,6 +540,9 @@ const Joi = require("joi");
|
|
|
540
540
|
* (Dubai), or local sectors (Deira).
|
|
541
541
|
* @property {string} [display_name] - User-friendly version of the geographical
|
|
542
542
|
* data, which may be more descriptive or formatted differently.
|
|
543
|
+
* @property {string} [code] - Code assigned to a locality, which is unique to
|
|
544
|
+
* its immediate parent.
|
|
545
|
+
* @property {Object} [custom_meta] - Custom meta to store custom json against hierarchy.
|
|
543
546
|
* @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
|
|
544
547
|
* @property {string} [type] - Specifies the category of the address component,
|
|
545
548
|
* such as pincode, state, city, country, or sector.
|
|
@@ -560,6 +563,9 @@ const Joi = require("joi");
|
|
|
560
563
|
* (Dubai), or local sectors (Deira).
|
|
561
564
|
* @property {string} [display_name] - User-friendly version of the geographical
|
|
562
565
|
* data, which may be more descriptive or formatted differently.
|
|
566
|
+
* @property {string} [code] - Code assigned to a locality, which is unique to
|
|
567
|
+
* its immediate parent.
|
|
568
|
+
* @property {Object} [custom_meta] - Custom meta to store custom json against hierarchy.
|
|
563
569
|
* @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
|
|
564
570
|
* @property {string} [type] - Specifies the category of the address component,
|
|
565
571
|
* such as pincode, state, city, country, or sector.
|
|
@@ -570,22 +576,134 @@ const Joi = require("joi");
|
|
|
570
576
|
*/
|
|
571
577
|
|
|
572
578
|
/**
|
|
573
|
-
* @typedef
|
|
579
|
+
* @typedef ShipmentsArticles
|
|
580
|
+
* @property {number} [item_id] - Unique identifier of the item.
|
|
581
|
+
* @property {number} [category_id] - Unique identifier of the category.
|
|
582
|
+
* @property {number} [brand_id] - Unique identifier of the brand.
|
|
583
|
+
* @property {number} [department_id] - Unique identifier of the department.
|
|
584
|
+
* @property {string[]} [tags] - Tags associated with the item.
|
|
585
|
+
*/
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* @typedef ShipmentDimension
|
|
589
|
+
* @property {number} height - Height of the shipment in centimeters.
|
|
590
|
+
* @property {number} length - Length of the shipment in centimeters.
|
|
591
|
+
* @property {number} width - Width of the shipment in centimeters.
|
|
592
|
+
*/
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* @typedef Shipments
|
|
596
|
+
* @property {string} [id] - Unique identifier of the shipment.
|
|
597
|
+
* @property {number} [location_id] - Unique identifier of the selling location.
|
|
598
|
+
* @property {string[]} [location_tags] - Tags associated with the selling location.
|
|
599
|
+
* @property {number} [shipment_weight] - Weight of the shipment.
|
|
600
|
+
* @property {number} [shipment_volumetric_weight] - Volumetric weight of the shipment.
|
|
601
|
+
* @property {number} [shipment_cost] - Total Cost of the shipment.
|
|
602
|
+
* @property {ShipmentDimension} [shipment_dimension]
|
|
603
|
+
* @property {string[]} [courier_partner_schemes] - A List of courier schemes.
|
|
604
|
+
* @property {ShipmentsArticles[]} [articles] - List of articles in the shipment.
|
|
605
|
+
*/
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* @typedef ShipmentCourierPartnerDetails
|
|
609
|
+
* @property {ShipmentsCourierPartnersServiceability} from_location
|
|
610
|
+
* @property {ShipmentsCourierPartnersServiceability} to_location
|
|
611
|
+
* @property {Shipments[]} [shipments] - List of shipments.
|
|
612
|
+
* @property {string} [journey] - Journey type of the shipment forward or return.
|
|
613
|
+
* @property {string} [payment_mode] - Payment mode opted for the shipment.
|
|
614
|
+
*/
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* @typedef CourierPartnerPromise
|
|
618
|
+
* @property {string} min - The earliest possible timestamp.
|
|
619
|
+
* @property {string} max - The latest possible timestamp.
|
|
620
|
+
*/
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* @typedef CourierPartners
|
|
624
|
+
* @property {string} [extension_id] - Unique identifier of courier partner extension.
|
|
625
|
+
* @property {string} [scheme_id] - Unique identifier of courier partner scheme.
|
|
626
|
+
* @property {string} [name] - Name of the courier partner.
|
|
627
|
+
* @property {CourierPartnerPromise} [delivery_promise]
|
|
628
|
+
*/
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* @typedef ShipmentCourierPartners
|
|
632
|
+
* @property {string} [id] - Unique identifier of the shipment.
|
|
633
|
+
* @property {CourierPartners[]} [courier_partners] - Courier partners of the shipment.
|
|
634
|
+
*/
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* @typedef ShipmentCourierPartnerResult
|
|
638
|
+
* @property {CourierPartners[]} [courier_partners]
|
|
639
|
+
* @property {ShipmentCourierPartners[]} [shipments]
|
|
640
|
+
*/
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* @typedef ShipmentsCourierPartnersServiceability
|
|
644
|
+
* @property {string} [pincode] - Postal code or PIN code of the address area.
|
|
645
|
+
* @property {string} [sector_code] - Specifies the sector or district code of
|
|
646
|
+
* the address if applicable.
|
|
647
|
+
* @property {string} [state_code] - Indicates the state or province code of the address.
|
|
648
|
+
* @property {string} [city_code] - Denote the city or municipality code of the address.
|
|
649
|
+
* @property {string} country_code - ISO2 code for the country of the address.
|
|
650
|
+
*/
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* @typedef ServiceabilityLocation
|
|
654
|
+
* @property {string} longitude - Geographical longitude coordinate of the location.
|
|
655
|
+
* @property {string} latitude - Geographical latitude coordinate of the location.
|
|
656
|
+
*/
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* @typedef GetPromiseDetails
|
|
660
|
+
* @property {StorePromise[]} [items] - List of delivery promises for each store.
|
|
661
|
+
* @property {Promise} [delivery_promise]
|
|
662
|
+
* @property {Page} [page]
|
|
663
|
+
*/
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* @typedef StorePromise
|
|
667
|
+
* @property {number} [uid] - Unique identifier of a store.
|
|
668
|
+
* @property {string} [code] - Code assigned to a store.
|
|
669
|
+
* @property {string} [name] - Name of a store.
|
|
670
|
+
* @property {Promise} [delivery_promise]
|
|
671
|
+
*/
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* @typedef Promise
|
|
675
|
+
* @property {string} [min] - Earliest delivery time.
|
|
676
|
+
* @property {string} [max] - Latest delivery time.
|
|
677
|
+
*/
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* @typedef ErrorResult
|
|
574
681
|
* @property {string} [error] - Error code identifying the type of error.
|
|
575
682
|
* @property {string} [message] - User-friendly explanation of what went wrong.
|
|
576
683
|
*/
|
|
577
684
|
|
|
685
|
+
/**
|
|
686
|
+
* @typedef ValidationError
|
|
687
|
+
* @property {string} message - A brief description of the error encountered.
|
|
688
|
+
* @property {string} field - The field in the request that caused the error.
|
|
689
|
+
*/
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* @typedef StandardError
|
|
693
|
+
* @property {string} message - A brief description of the error.
|
|
694
|
+
*/
|
|
695
|
+
|
|
578
696
|
class LogisticApplicationModel {
|
|
579
|
-
/** @returns {
|
|
580
|
-
static
|
|
697
|
+
/** @returns {GetStoreResult} */
|
|
698
|
+
static GetStoreResult() {
|
|
581
699
|
return Joi.object({
|
|
582
|
-
items: Joi.array().items(LogisticApplicationModel.
|
|
700
|
+
items: Joi.array().items(LogisticApplicationModel.StoreItemResult()),
|
|
583
701
|
page: LogisticApplicationModel.Page(),
|
|
584
702
|
});
|
|
585
703
|
}
|
|
586
704
|
|
|
587
|
-
/** @returns {
|
|
588
|
-
static
|
|
705
|
+
/** @returns {StoreItemResult} */
|
|
706
|
+
static StoreItemResult() {
|
|
589
707
|
return Joi.object({
|
|
590
708
|
id: Joi.number(),
|
|
591
709
|
store_type: Joi.string().allow(""),
|
|
@@ -598,8 +716,8 @@ class LogisticApplicationModel {
|
|
|
598
716
|
});
|
|
599
717
|
}
|
|
600
718
|
|
|
601
|
-
/** @returns {
|
|
602
|
-
static
|
|
719
|
+
/** @returns {ValidateAddressDetails} */
|
|
720
|
+
static ValidateAddressDetails() {
|
|
603
721
|
return Joi.object({
|
|
604
722
|
address: Joi.string().allow(""),
|
|
605
723
|
address1: Joi.string().allow(""),
|
|
@@ -616,8 +734,8 @@ class LogisticApplicationModel {
|
|
|
616
734
|
});
|
|
617
735
|
}
|
|
618
736
|
|
|
619
|
-
/** @returns {
|
|
620
|
-
static
|
|
737
|
+
/** @returns {PincodeParentsResult} */
|
|
738
|
+
static PincodeParentsResult() {
|
|
621
739
|
return Joi.object({
|
|
622
740
|
sub_type: Joi.string().allow(""),
|
|
623
741
|
display_name: Joi.string().allow(""),
|
|
@@ -626,16 +744,16 @@ class LogisticApplicationModel {
|
|
|
626
744
|
});
|
|
627
745
|
}
|
|
628
746
|
|
|
629
|
-
/** @returns {
|
|
630
|
-
static
|
|
747
|
+
/** @returns {PincodeMetaResult} */
|
|
748
|
+
static PincodeMetaResult() {
|
|
631
749
|
return Joi.object({
|
|
632
750
|
zone: Joi.string().allow(""),
|
|
633
751
|
internal_zone_id: Joi.number(),
|
|
634
752
|
});
|
|
635
753
|
}
|
|
636
754
|
|
|
637
|
-
/** @returns {
|
|
638
|
-
static
|
|
755
|
+
/** @returns {PincodeErrorSchemaResult} */
|
|
756
|
+
static PincodeErrorSchemaResult() {
|
|
639
757
|
return Joi.object({
|
|
640
758
|
message: Joi.string().allow("").allow(null),
|
|
641
759
|
value: Joi.string().allow("").allow(null),
|
|
@@ -643,8 +761,8 @@ class LogisticApplicationModel {
|
|
|
643
761
|
});
|
|
644
762
|
}
|
|
645
763
|
|
|
646
|
-
/** @returns {
|
|
647
|
-
static
|
|
764
|
+
/** @returns {CountryMetaResult} */
|
|
765
|
+
static CountryMetaResult() {
|
|
648
766
|
return Joi.object({
|
|
649
767
|
country_code: Joi.string().allow(""),
|
|
650
768
|
isd_code: Joi.string().allow(""),
|
|
@@ -659,16 +777,16 @@ class LogisticApplicationModel {
|
|
|
659
777
|
});
|
|
660
778
|
}
|
|
661
779
|
|
|
662
|
-
/** @returns {
|
|
663
|
-
static
|
|
780
|
+
/** @returns {PincodeDataResult} */
|
|
781
|
+
static PincodeDataResult() {
|
|
664
782
|
return Joi.object({
|
|
665
783
|
parents: Joi.array().items(
|
|
666
|
-
LogisticApplicationModel.
|
|
784
|
+
LogisticApplicationModel.PincodeParentsResult()
|
|
667
785
|
),
|
|
668
|
-
meta: LogisticApplicationModel.
|
|
786
|
+
meta: LogisticApplicationModel.PincodeMetaResult(),
|
|
669
787
|
display_name: Joi.string().allow(""),
|
|
670
|
-
error: LogisticApplicationModel.
|
|
671
|
-
meta_code: LogisticApplicationModel.
|
|
788
|
+
error: LogisticApplicationModel.PincodeErrorSchemaResult().required(),
|
|
789
|
+
meta_code: LogisticApplicationModel.CountryMetaResult(),
|
|
672
790
|
lat_long: LogisticApplicationModel.PincodeLatLongData(),
|
|
673
791
|
sub_type: Joi.string().allow(""),
|
|
674
792
|
name: Joi.string().allow(""),
|
|
@@ -676,59 +794,59 @@ class LogisticApplicationModel {
|
|
|
676
794
|
});
|
|
677
795
|
}
|
|
678
796
|
|
|
679
|
-
/** @returns {
|
|
680
|
-
static
|
|
797
|
+
/** @returns {PincodeDetails} */
|
|
798
|
+
static PincodeDetails() {
|
|
681
799
|
return Joi.object({
|
|
682
800
|
success: Joi.boolean().required(),
|
|
683
|
-
data: Joi.array().items(LogisticApplicationModel.
|
|
684
|
-
error: LogisticApplicationModel.
|
|
801
|
+
data: Joi.array().items(LogisticApplicationModel.PincodeDataResult()),
|
|
802
|
+
error: LogisticApplicationModel.PincodeErrorSchemaResult().required(),
|
|
685
803
|
});
|
|
686
804
|
}
|
|
687
805
|
|
|
688
|
-
/** @returns {
|
|
689
|
-
static
|
|
806
|
+
/** @returns {TATCategoryDetails} */
|
|
807
|
+
static TATCategoryDetails() {
|
|
690
808
|
return Joi.object({
|
|
691
809
|
level: Joi.string().allow(""),
|
|
692
810
|
id: Joi.number(),
|
|
693
811
|
});
|
|
694
812
|
}
|
|
695
813
|
|
|
696
|
-
/** @returns {
|
|
697
|
-
static
|
|
814
|
+
/** @returns {TATArticlesDetails} */
|
|
815
|
+
static TATArticlesDetails() {
|
|
698
816
|
return Joi.object({
|
|
699
|
-
category: LogisticApplicationModel.
|
|
817
|
+
category: LogisticApplicationModel.TATCategoryDetails(),
|
|
700
818
|
manufacturing_time_unit: Joi.string().allow(""),
|
|
701
819
|
manufacturing_time: Joi.number(),
|
|
702
820
|
});
|
|
703
821
|
}
|
|
704
822
|
|
|
705
|
-
/** @returns {
|
|
706
|
-
static
|
|
823
|
+
/** @returns {TATLocationDetailsDetails} */
|
|
824
|
+
static TATLocationDetailsDetails() {
|
|
707
825
|
return Joi.object({
|
|
708
826
|
fulfillment_id: Joi.number(),
|
|
709
827
|
from_pincode: Joi.string().allow(""),
|
|
710
828
|
articles: Joi.array().items(
|
|
711
|
-
LogisticApplicationModel.
|
|
829
|
+
LogisticApplicationModel.TATArticlesDetails()
|
|
712
830
|
),
|
|
713
831
|
});
|
|
714
832
|
}
|
|
715
833
|
|
|
716
|
-
/** @returns {
|
|
717
|
-
static
|
|
834
|
+
/** @returns {TATViewDetails} */
|
|
835
|
+
static TATViewDetails() {
|
|
718
836
|
return Joi.object({
|
|
719
837
|
to_pincode: Joi.string().allow(""),
|
|
720
838
|
source: Joi.string().allow(""),
|
|
721
839
|
action: Joi.string().allow(""),
|
|
722
840
|
identifier: Joi.string().allow(""),
|
|
723
841
|
location_details: Joi.array().items(
|
|
724
|
-
LogisticApplicationModel.
|
|
842
|
+
LogisticApplicationModel.TATLocationDetailsDetails()
|
|
725
843
|
),
|
|
726
844
|
journey: Joi.string().allow(""),
|
|
727
845
|
});
|
|
728
846
|
}
|
|
729
847
|
|
|
730
|
-
/** @returns {
|
|
731
|
-
static
|
|
848
|
+
/** @returns {TATErrorSchemaResult} */
|
|
849
|
+
static TATErrorSchemaResult() {
|
|
732
850
|
return Joi.object({
|
|
733
851
|
message: Joi.string().allow("").allow(null),
|
|
734
852
|
value: Joi.string().allow("").allow(null),
|
|
@@ -736,62 +854,60 @@ class LogisticApplicationModel {
|
|
|
736
854
|
});
|
|
737
855
|
}
|
|
738
856
|
|
|
739
|
-
/** @returns {
|
|
740
|
-
static
|
|
857
|
+
/** @returns {TATTimestampResult} */
|
|
858
|
+
static TATTimestampResult() {
|
|
741
859
|
return Joi.object({
|
|
742
860
|
min: Joi.number(),
|
|
743
861
|
max: Joi.number(),
|
|
744
862
|
});
|
|
745
863
|
}
|
|
746
864
|
|
|
747
|
-
/** @returns {
|
|
748
|
-
static
|
|
865
|
+
/** @returns {TATFormattedResult} */
|
|
866
|
+
static TATFormattedResult() {
|
|
749
867
|
return Joi.object({
|
|
750
868
|
min: Joi.string().allow(""),
|
|
751
869
|
max: Joi.string().allow(""),
|
|
752
870
|
});
|
|
753
871
|
}
|
|
754
872
|
|
|
755
|
-
/** @returns {
|
|
756
|
-
static
|
|
873
|
+
/** @returns {TATPromiseResult} */
|
|
874
|
+
static TATPromiseResult() {
|
|
757
875
|
return Joi.object({
|
|
758
|
-
timestamp: LogisticApplicationModel.
|
|
759
|
-
formatted: LogisticApplicationModel.
|
|
876
|
+
timestamp: LogisticApplicationModel.TATTimestampResult(),
|
|
877
|
+
formatted: LogisticApplicationModel.TATFormattedResult(),
|
|
760
878
|
});
|
|
761
879
|
}
|
|
762
880
|
|
|
763
|
-
/** @returns {
|
|
764
|
-
static
|
|
881
|
+
/** @returns {TATArticlesResult} */
|
|
882
|
+
static TATArticlesResult() {
|
|
765
883
|
return Joi.object({
|
|
766
884
|
manufacturing_time_unit: Joi.string().allow(""),
|
|
767
|
-
error: LogisticApplicationModel.
|
|
885
|
+
error: LogisticApplicationModel.TATErrorSchemaResult(),
|
|
768
886
|
is_cod_available: Joi.boolean(),
|
|
769
|
-
promise: LogisticApplicationModel.
|
|
887
|
+
promise: LogisticApplicationModel.TATPromiseResult(),
|
|
770
888
|
manufacturing_time: Joi.number(),
|
|
771
|
-
category: LogisticApplicationModel.
|
|
889
|
+
category: LogisticApplicationModel.TATCategoryDetails(),
|
|
772
890
|
_manufacturing_time_seconds: Joi.number(),
|
|
773
891
|
});
|
|
774
892
|
}
|
|
775
893
|
|
|
776
|
-
/** @returns {
|
|
777
|
-
static
|
|
894
|
+
/** @returns {TATLocationDetailsResult} */
|
|
895
|
+
static TATLocationDetailsResult() {
|
|
778
896
|
return Joi.object({
|
|
779
897
|
fulfillment_id: Joi.number(),
|
|
780
898
|
from_pincode: Joi.string().allow(""),
|
|
781
|
-
articles: Joi.array().items(
|
|
782
|
-
LogisticApplicationModel.TATArticlesResponse()
|
|
783
|
-
),
|
|
899
|
+
articles: Joi.array().items(LogisticApplicationModel.TATArticlesResult()),
|
|
784
900
|
});
|
|
785
901
|
}
|
|
786
902
|
|
|
787
|
-
/** @returns {
|
|
788
|
-
static
|
|
903
|
+
/** @returns {TATViewResult} */
|
|
904
|
+
static TATViewResult() {
|
|
789
905
|
return Joi.object({
|
|
790
906
|
to_pincode: Joi.string().allow(""),
|
|
791
907
|
request_uuid: Joi.string().allow(""),
|
|
792
908
|
payment_mode: Joi.string().allow(""),
|
|
793
909
|
success: Joi.boolean(),
|
|
794
|
-
error: LogisticApplicationModel.
|
|
910
|
+
error: LogisticApplicationModel.TATErrorSchemaResult(),
|
|
795
911
|
is_cod_available: Joi.boolean(),
|
|
796
912
|
source: Joi.string().allow(""),
|
|
797
913
|
action: Joi.string().allow(""),
|
|
@@ -799,7 +915,7 @@ class LogisticApplicationModel {
|
|
|
799
915
|
to_city: Joi.string().allow(""),
|
|
800
916
|
identifier: Joi.string().allow(""),
|
|
801
917
|
location_details: Joi.array().items(
|
|
802
|
-
LogisticApplicationModel.
|
|
918
|
+
LogisticApplicationModel.TATLocationDetailsResult()
|
|
803
919
|
),
|
|
804
920
|
journey: Joi.string().allow(""),
|
|
805
921
|
});
|
|
@@ -821,18 +937,18 @@ class LogisticApplicationModel {
|
|
|
821
937
|
});
|
|
822
938
|
}
|
|
823
939
|
|
|
824
|
-
/** @returns {
|
|
825
|
-
static
|
|
940
|
+
/** @returns {LogisticsResult} */
|
|
941
|
+
static LogisticsResult() {
|
|
826
942
|
return Joi.object({
|
|
827
|
-
dp:
|
|
943
|
+
dp: LogisticApplicationModel.DP(),
|
|
828
944
|
});
|
|
829
945
|
}
|
|
830
946
|
|
|
831
|
-
/** @returns {
|
|
832
|
-
static
|
|
947
|
+
/** @returns {CountryEntityResult} */
|
|
948
|
+
static CountryEntityResult() {
|
|
833
949
|
return Joi.object({
|
|
834
|
-
meta: LogisticApplicationModel.
|
|
835
|
-
logistics: LogisticApplicationModel.
|
|
950
|
+
meta: LogisticApplicationModel.CountryMetaResult(),
|
|
951
|
+
logistics: LogisticApplicationModel.LogisticsResult(),
|
|
836
952
|
display_name: Joi.string().allow(""),
|
|
837
953
|
type: Joi.string().allow(""),
|
|
838
954
|
is_active: Joi.boolean(),
|
|
@@ -843,50 +959,52 @@ class LogisticApplicationModel {
|
|
|
843
959
|
});
|
|
844
960
|
}
|
|
845
961
|
|
|
846
|
-
/** @returns {
|
|
847
|
-
static
|
|
962
|
+
/** @returns {CountryListResult} */
|
|
963
|
+
static CountryListResult() {
|
|
848
964
|
return Joi.object({
|
|
849
965
|
results: Joi.array().items(
|
|
850
|
-
LogisticApplicationModel.
|
|
966
|
+
LogisticApplicationModel.CountryEntityResult()
|
|
851
967
|
),
|
|
852
968
|
});
|
|
853
969
|
}
|
|
854
970
|
|
|
855
|
-
/** @returns {
|
|
856
|
-
static
|
|
971
|
+
/** @returns {GetZoneFromPincodeViewDetails} */
|
|
972
|
+
static GetZoneFromPincodeViewDetails() {
|
|
857
973
|
return Joi.object({
|
|
858
974
|
pincode: Joi.string().allow("").required(),
|
|
859
975
|
country: Joi.string().allow("").required(),
|
|
860
976
|
});
|
|
861
977
|
}
|
|
862
978
|
|
|
863
|
-
/** @returns {
|
|
864
|
-
static
|
|
979
|
+
/** @returns {GetZoneFromPincodeViewResult} */
|
|
980
|
+
static GetZoneFromPincodeViewResult() {
|
|
865
981
|
return Joi.object({
|
|
866
982
|
serviceability_type: Joi.string().allow("").required(),
|
|
867
983
|
zones: Joi.array().items(Joi.string().allow("")).required(),
|
|
868
984
|
});
|
|
869
985
|
}
|
|
870
986
|
|
|
871
|
-
/** @returns {
|
|
872
|
-
static
|
|
987
|
+
/** @returns {ReAssignStoreDetails} */
|
|
988
|
+
static ReAssignStoreDetails() {
|
|
873
989
|
return Joi.object({
|
|
874
|
-
configuration: Joi.any().required(),
|
|
990
|
+
configuration: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
875
991
|
to_pincode: Joi.string().allow("").required(),
|
|
876
992
|
ignored_locations: Joi.array().items(Joi.number()).required(),
|
|
877
993
|
identifier: Joi.string().allow("").required(),
|
|
878
|
-
articles: Joi.array()
|
|
994
|
+
articles: Joi.array()
|
|
995
|
+
.items(Joi.object().pattern(/\S/, Joi.any()))
|
|
996
|
+
.required(),
|
|
879
997
|
});
|
|
880
998
|
}
|
|
881
999
|
|
|
882
|
-
/** @returns {
|
|
883
|
-
static
|
|
1000
|
+
/** @returns {ReAssignStoreResult} */
|
|
1001
|
+
static ReAssignStoreResult() {
|
|
884
1002
|
return Joi.object({
|
|
885
1003
|
to_pincode: Joi.string().allow("").required(),
|
|
886
1004
|
pystormbreaker_uuid: Joi.string().allow("").required(),
|
|
887
1005
|
success: Joi.boolean().required(),
|
|
888
|
-
error: Joi.any().required(),
|
|
889
|
-
assigned_stores: Joi.array().items(Joi.any()),
|
|
1006
|
+
error: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
1007
|
+
assigned_stores: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
890
1008
|
});
|
|
891
1009
|
}
|
|
892
1010
|
|
|
@@ -1072,6 +1190,7 @@ class LogisticApplicationModel {
|
|
|
1072
1190
|
return Joi.object({
|
|
1073
1191
|
id: Joi.string().allow(""),
|
|
1074
1192
|
name: Joi.string().allow(""),
|
|
1193
|
+
custom_meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1075
1194
|
display_name: Joi.string().allow(""),
|
|
1076
1195
|
parent_ids: Joi.array().items(Joi.string().allow("")),
|
|
1077
1196
|
type: Joi.string().allow(""),
|
|
@@ -1085,6 +1204,8 @@ class LogisticApplicationModel {
|
|
|
1085
1204
|
id: Joi.string().allow(""),
|
|
1086
1205
|
name: Joi.string().allow(""),
|
|
1087
1206
|
display_name: Joi.string().allow(""),
|
|
1207
|
+
code: Joi.string().allow(""),
|
|
1208
|
+
custom_meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1088
1209
|
parent_ids: Joi.array().items(Joi.string().allow("")),
|
|
1089
1210
|
type: Joi.string().allow(""),
|
|
1090
1211
|
});
|
|
@@ -1104,18 +1225,167 @@ class LogisticApplicationModel {
|
|
|
1104
1225
|
id: Joi.string().allow(""),
|
|
1105
1226
|
name: Joi.string().allow(""),
|
|
1106
1227
|
display_name: Joi.string().allow(""),
|
|
1228
|
+
code: Joi.string().allow(""),
|
|
1229
|
+
custom_meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1107
1230
|
parent_ids: Joi.array().items(Joi.string().allow("")),
|
|
1108
1231
|
type: Joi.string().allow(""),
|
|
1109
1232
|
localities: Joi.array().items(LogisticApplicationModel.LocalityParent()),
|
|
1110
1233
|
});
|
|
1111
1234
|
}
|
|
1112
1235
|
|
|
1113
|
-
/** @returns {
|
|
1114
|
-
static
|
|
1236
|
+
/** @returns {ShipmentsArticles} */
|
|
1237
|
+
static ShipmentsArticles() {
|
|
1238
|
+
return Joi.object({
|
|
1239
|
+
item_id: Joi.number(),
|
|
1240
|
+
category_id: Joi.number(),
|
|
1241
|
+
brand_id: Joi.number(),
|
|
1242
|
+
department_id: Joi.number(),
|
|
1243
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/** @returns {ShipmentDimension} */
|
|
1248
|
+
static ShipmentDimension() {
|
|
1249
|
+
return Joi.object({
|
|
1250
|
+
height: Joi.number().required(),
|
|
1251
|
+
length: Joi.number().required(),
|
|
1252
|
+
width: Joi.number().required(),
|
|
1253
|
+
});
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
/** @returns {Shipments} */
|
|
1257
|
+
static Shipments() {
|
|
1258
|
+
return Joi.object({
|
|
1259
|
+
id: Joi.string().allow(""),
|
|
1260
|
+
location_id: Joi.number(),
|
|
1261
|
+
location_tags: Joi.array().items(Joi.string().allow("")),
|
|
1262
|
+
shipment_weight: Joi.number(),
|
|
1263
|
+
shipment_volumetric_weight: Joi.number(),
|
|
1264
|
+
shipment_cost: Joi.number(),
|
|
1265
|
+
shipment_dimension: LogisticApplicationModel.ShipmentDimension(),
|
|
1266
|
+
courier_partner_schemes: Joi.array().items(Joi.string().allow("")),
|
|
1267
|
+
articles: Joi.array().items(LogisticApplicationModel.ShipmentsArticles()),
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
/** @returns {ShipmentCourierPartnerDetails} */
|
|
1272
|
+
static ShipmentCourierPartnerDetails() {
|
|
1273
|
+
return Joi.object({
|
|
1274
|
+
from_location: LogisticApplicationModel.ShipmentsCourierPartnersServiceability().required(),
|
|
1275
|
+
to_location: LogisticApplicationModel.ShipmentsCourierPartnersServiceability().required(),
|
|
1276
|
+
shipments: Joi.array().items(LogisticApplicationModel.Shipments()),
|
|
1277
|
+
journey: Joi.string().allow(""),
|
|
1278
|
+
payment_mode: Joi.string().allow(""),
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
/** @returns {CourierPartnerPromise} */
|
|
1283
|
+
static CourierPartnerPromise() {
|
|
1284
|
+
return Joi.object({
|
|
1285
|
+
min: Joi.string().allow("").required(),
|
|
1286
|
+
max: Joi.string().allow("").required(),
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/** @returns {CourierPartners} */
|
|
1291
|
+
static CourierPartners() {
|
|
1292
|
+
return Joi.object({
|
|
1293
|
+
extension_id: Joi.string().allow(""),
|
|
1294
|
+
scheme_id: Joi.string().allow(""),
|
|
1295
|
+
name: Joi.string().allow(""),
|
|
1296
|
+
delivery_promise: LogisticApplicationModel.CourierPartnerPromise(),
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
/** @returns {ShipmentCourierPartners} */
|
|
1301
|
+
static ShipmentCourierPartners() {
|
|
1302
|
+
return Joi.object({
|
|
1303
|
+
id: Joi.string().allow(""),
|
|
1304
|
+
courier_partners: Joi.array().items(
|
|
1305
|
+
LogisticApplicationModel.CourierPartners()
|
|
1306
|
+
),
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
/** @returns {ShipmentCourierPartnerResult} */
|
|
1311
|
+
static ShipmentCourierPartnerResult() {
|
|
1312
|
+
return Joi.object({
|
|
1313
|
+
courier_partners: Joi.array().items(
|
|
1314
|
+
LogisticApplicationModel.CourierPartners()
|
|
1315
|
+
),
|
|
1316
|
+
shipments: Joi.array().items(
|
|
1317
|
+
LogisticApplicationModel.ShipmentCourierPartners()
|
|
1318
|
+
),
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
/** @returns {ShipmentsCourierPartnersServiceability} */
|
|
1323
|
+
static ShipmentsCourierPartnersServiceability() {
|
|
1324
|
+
return Joi.object({
|
|
1325
|
+
pincode: Joi.string().allow(""),
|
|
1326
|
+
sector_code: Joi.string().allow(""),
|
|
1327
|
+
state_code: Joi.string().allow(""),
|
|
1328
|
+
city_code: Joi.string().allow(""),
|
|
1329
|
+
country_code: Joi.string().allow("").required(),
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/** @returns {ServiceabilityLocation} */
|
|
1334
|
+
static ServiceabilityLocation() {
|
|
1335
|
+
return Joi.object({
|
|
1336
|
+
longitude: Joi.string().allow("").required(),
|
|
1337
|
+
latitude: Joi.string().allow("").required(),
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
/** @returns {GetPromiseDetails} */
|
|
1342
|
+
static GetPromiseDetails() {
|
|
1343
|
+
return Joi.object({
|
|
1344
|
+
items: Joi.array().items(LogisticApplicationModel.StorePromise()),
|
|
1345
|
+
delivery_promise: LogisticApplicationModel.Promise(),
|
|
1346
|
+
page: LogisticApplicationModel.Page(),
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/** @returns {StorePromise} */
|
|
1351
|
+
static StorePromise() {
|
|
1352
|
+
return Joi.object({
|
|
1353
|
+
uid: Joi.number(),
|
|
1354
|
+
code: Joi.string().allow(""),
|
|
1355
|
+
name: Joi.string().allow(""),
|
|
1356
|
+
delivery_promise: LogisticApplicationModel.Promise(),
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
/** @returns {Promise} */
|
|
1361
|
+
static Promise() {
|
|
1362
|
+
return Joi.object({
|
|
1363
|
+
min: Joi.string().allow(""),
|
|
1364
|
+
max: Joi.string().allow(""),
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/** @returns {ErrorResult} */
|
|
1369
|
+
static ErrorResult() {
|
|
1115
1370
|
return Joi.object({
|
|
1116
1371
|
error: Joi.string().allow(""),
|
|
1117
1372
|
message: Joi.string().allow(""),
|
|
1118
1373
|
});
|
|
1119
1374
|
}
|
|
1375
|
+
|
|
1376
|
+
/** @returns {ValidationError} */
|
|
1377
|
+
static ValidationError() {
|
|
1378
|
+
return Joi.object({
|
|
1379
|
+
message: Joi.string().allow("").required(),
|
|
1380
|
+
field: Joi.string().allow("").required(),
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
/** @returns {StandardError} */
|
|
1385
|
+
static StandardError() {
|
|
1386
|
+
return Joi.object({
|
|
1387
|
+
message: Joi.string().allow("").required(),
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1120
1390
|
}
|
|
1121
1391
|
module.exports = LogisticApplicationModel;
|