@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef PincodeParentsResponse
|
|
5
|
+
* @property {string} [sub_type]
|
|
5
6
|
* @property {string} [display_name]
|
|
6
|
-
* @property {boolean} [is_active]
|
|
7
|
-
* @property {LogisticsResponse} [logistics]
|
|
8
|
-
* @property {CountryMetaResponse} [meta]
|
|
9
7
|
* @property {string} [name]
|
|
10
|
-
* @property {string} [parent_id]
|
|
11
|
-
* @property {string} [sub_type]
|
|
12
|
-
* @property {string} [type]
|
|
13
8
|
* @property {string} [uid]
|
|
14
9
|
*/
|
|
15
10
|
|
|
16
11
|
/**
|
|
17
|
-
* @typedef
|
|
18
|
-
* @property {string} [
|
|
19
|
-
* @property {
|
|
12
|
+
* @typedef PincodeMetaResponse
|
|
13
|
+
* @property {string} [zone]
|
|
14
|
+
* @property {number} [internal_zone_id]
|
|
20
15
|
*/
|
|
21
16
|
|
|
22
17
|
/**
|
|
23
|
-
* @typedef
|
|
24
|
-
* @property {
|
|
18
|
+
* @typedef PincodeErrorSchemaResponse
|
|
19
|
+
* @property {string} [message]
|
|
20
|
+
* @property {string} [value]
|
|
21
|
+
* @property {string} [type]
|
|
25
22
|
*/
|
|
26
23
|
|
|
27
24
|
/**
|
|
@@ -31,196 +28,133 @@ const Joi = require("joi");
|
|
|
31
28
|
*/
|
|
32
29
|
|
|
33
30
|
/**
|
|
34
|
-
* @typedef
|
|
35
|
-
* @property {CurrencyObject} [currency]
|
|
36
|
-
* @property {string} [display_name]
|
|
37
|
-
* @property {CountryHierarchy[]} [hierarchy]
|
|
38
|
-
* @property {string} [id]
|
|
39
|
-
* @property {string} [iso2]
|
|
40
|
-
* @property {string} [iso3]
|
|
41
|
-
* @property {string} [latitude]
|
|
42
|
-
* @property {string} [longitude]
|
|
43
|
-
* @property {string} [name]
|
|
44
|
-
* @property {string} [phone_code]
|
|
45
|
-
* @property {string[]} [timezones]
|
|
46
|
-
* @property {string} [type]
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @typedef CurrencyObject
|
|
51
|
-
* @property {string} [code]
|
|
52
|
-
* @property {string} [name]
|
|
53
|
-
* @property {string} [symbol]
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @typedef DP
|
|
58
|
-
* @property {string} [area_code]
|
|
59
|
-
* @property {boolean} [assign_dp_from_sb]
|
|
60
|
-
* @property {string} [external_account_id]
|
|
61
|
-
* @property {number} fm_priority
|
|
62
|
-
* @property {string} [internal_account_id]
|
|
63
|
-
* @property {number} lm_priority
|
|
64
|
-
* @property {string[]} operations
|
|
65
|
-
* @property {string} payment_mode
|
|
66
|
-
* @property {number} rvp_priority
|
|
67
|
-
* @property {string} [transport_mode]
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @typedef ErrorResponse
|
|
72
|
-
* @property {string} [error]
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @typedef FieldValidation
|
|
77
|
-
* @property {FieldValidationRegex} [regex]
|
|
31
|
+
* @typedef PincodeLatLongData
|
|
78
32
|
* @property {string} [type]
|
|
33
|
+
* @property {string[]} [coordinates]
|
|
79
34
|
*/
|
|
80
35
|
|
|
81
36
|
/**
|
|
82
|
-
* @typedef
|
|
83
|
-
* @property {
|
|
84
|
-
* @property {
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @typedef GetCountries
|
|
89
|
-
* @property {CountryObject[]} [items]
|
|
90
|
-
* @property {Page} [page]
|
|
91
|
-
*/
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @typedef GetCountry
|
|
95
|
-
* @property {CurrencyObject} [currency]
|
|
37
|
+
* @typedef PincodeDataResponse
|
|
38
|
+
* @property {PincodeParentsResponse[]} [parents]
|
|
39
|
+
* @property {PincodeMetaResponse} [meta]
|
|
96
40
|
* @property {string} [display_name]
|
|
97
|
-
* @property {
|
|
98
|
-
* @property {
|
|
99
|
-
* @property {
|
|
100
|
-
* @property {string} [
|
|
101
|
-
* @property {string} [iso3]
|
|
102
|
-
* @property {string} [latitude]
|
|
103
|
-
* @property {string} [longitude]
|
|
41
|
+
* @property {PincodeErrorSchemaResponse} error
|
|
42
|
+
* @property {CountryMetaResponse} [meta_code]
|
|
43
|
+
* @property {PincodeLatLongData} [lat_long]
|
|
44
|
+
* @property {string} [sub_type]
|
|
104
45
|
* @property {string} [name]
|
|
105
|
-
* @property {string} [
|
|
106
|
-
* @property {string[]} [timezones]
|
|
107
|
-
* @property {string} [type]
|
|
46
|
+
* @property {string} [uid]
|
|
108
47
|
*/
|
|
109
48
|
|
|
110
49
|
/**
|
|
111
|
-
* @typedef
|
|
112
|
-
* @property {
|
|
113
|
-
* @property {
|
|
114
|
-
* @property {
|
|
50
|
+
* @typedef PincodeApiResponse
|
|
51
|
+
* @property {boolean} success
|
|
52
|
+
* @property {PincodeDataResponse[]} [data]
|
|
53
|
+
* @property {PincodeErrorSchemaResponse} error
|
|
115
54
|
*/
|
|
116
55
|
|
|
117
56
|
/**
|
|
118
|
-
* @typedef
|
|
119
|
-
* @property {string}
|
|
120
|
-
* @property {
|
|
121
|
-
* @property {string} [error_text]
|
|
122
|
-
* @property {string} input
|
|
123
|
-
* @property {boolean} required
|
|
124
|
-
* @property {string} slug
|
|
125
|
-
* @property {FieldValidation} [validation]
|
|
126
|
-
* @property {GetCountryFieldsAddressValues} [values]
|
|
57
|
+
* @typedef TATCategoryRequest
|
|
58
|
+
* @property {string} [level]
|
|
59
|
+
* @property {number} [id]
|
|
127
60
|
*/
|
|
128
61
|
|
|
129
62
|
/**
|
|
130
|
-
* @typedef
|
|
131
|
-
* @property {
|
|
132
|
-
* @property {string}
|
|
133
|
-
* @property {
|
|
63
|
+
* @typedef TATArticlesRequest
|
|
64
|
+
* @property {TATCategoryRequest} [category]
|
|
65
|
+
* @property {string} [manufacturing_time_unit]
|
|
66
|
+
* @property {number} [manufacturing_time]
|
|
134
67
|
*/
|
|
135
68
|
|
|
136
69
|
/**
|
|
137
|
-
* @typedef
|
|
138
|
-
* @property {
|
|
139
|
-
* @property {
|
|
70
|
+
* @typedef TATLocationDetailsRequest
|
|
71
|
+
* @property {number} [fulfillment_id]
|
|
72
|
+
* @property {string} [from_pincode]
|
|
73
|
+
* @property {TATArticlesRequest[]} [articles]
|
|
140
74
|
*/
|
|
141
75
|
|
|
142
76
|
/**
|
|
143
|
-
* @typedef
|
|
144
|
-
* @property {
|
|
145
|
-
* @property {
|
|
77
|
+
* @typedef TATViewRequest
|
|
78
|
+
* @property {string} [to_pincode]
|
|
79
|
+
* @property {string} [source]
|
|
80
|
+
* @property {string} [action]
|
|
81
|
+
* @property {string} [identifier]
|
|
82
|
+
* @property {TATLocationDetailsRequest[]} [location_details]
|
|
83
|
+
* @property {string} [journey]
|
|
146
84
|
*/
|
|
147
85
|
|
|
148
86
|
/**
|
|
149
|
-
* @typedef
|
|
150
|
-
* @property {string} [
|
|
151
|
-
* @property {string} [
|
|
152
|
-
* @property {LocalityParent[]} [localities]
|
|
153
|
-
* @property {string} [name]
|
|
154
|
-
* @property {string[]} [parent_ids]
|
|
87
|
+
* @typedef TATErrorSchemaResponse
|
|
88
|
+
* @property {string} [message]
|
|
89
|
+
* @property {string} [value]
|
|
155
90
|
* @property {string} [type]
|
|
156
91
|
*/
|
|
157
92
|
|
|
158
93
|
/**
|
|
159
|
-
* @typedef
|
|
160
|
-
* @property {
|
|
161
|
-
* @property {
|
|
162
|
-
*/
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @typedef GetOneOrAllParams
|
|
166
|
-
* @property {GetOneOrAllPath} [path]
|
|
167
|
-
* @property {GetOneOrAllQuery} [query]
|
|
168
|
-
*/
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* @typedef GetOneOrAllPath
|
|
172
|
-
* @property {string} [locality_type]
|
|
173
|
-
* @property {string} [locality_value]
|
|
174
|
-
*/
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @typedef GetOneOrAllQuery
|
|
178
|
-
* @property {string} [city]
|
|
179
|
-
* @property {string} [country]
|
|
180
|
-
* @property {string} [sector]
|
|
181
|
-
* @property {string} [state]
|
|
94
|
+
* @typedef TATTimestampResponse
|
|
95
|
+
* @property {number} [min]
|
|
96
|
+
* @property {number} [max]
|
|
182
97
|
*/
|
|
183
98
|
|
|
184
99
|
/**
|
|
185
|
-
* @typedef
|
|
186
|
-
* @property {
|
|
187
|
-
* @property {
|
|
100
|
+
* @typedef TATFormattedResponse
|
|
101
|
+
* @property {string} [min]
|
|
102
|
+
* @property {string} [max]
|
|
188
103
|
*/
|
|
189
104
|
|
|
190
105
|
/**
|
|
191
|
-
* @typedef
|
|
192
|
-
* @property {
|
|
193
|
-
* @property {
|
|
106
|
+
* @typedef TATPromiseResponse
|
|
107
|
+
* @property {TATTimestampResponse} [timestamp]
|
|
108
|
+
* @property {TATFormattedResponse} [formatted]
|
|
194
109
|
*/
|
|
195
110
|
|
|
196
111
|
/**
|
|
197
|
-
* @typedef
|
|
198
|
-
* @property {string}
|
|
199
|
-
* @property {
|
|
112
|
+
* @typedef TATArticlesResponse
|
|
113
|
+
* @property {string} [manufacturing_time_unit]
|
|
114
|
+
* @property {TATErrorSchemaResponse} [error]
|
|
115
|
+
* @property {boolean} [is_cod_available]
|
|
116
|
+
* @property {TATPromiseResponse} [promise]
|
|
117
|
+
* @property {number} [manufacturing_time]
|
|
118
|
+
* @property {TATCategoryRequest} [category]
|
|
119
|
+
* @property {number} [_manufacturing_time_seconds]
|
|
200
120
|
*/
|
|
201
121
|
|
|
202
122
|
/**
|
|
203
|
-
* @typedef
|
|
204
|
-
* @property {number} [
|
|
205
|
-
* @property {
|
|
123
|
+
* @typedef TATLocationDetailsResponse
|
|
124
|
+
* @property {number} [fulfillment_id]
|
|
125
|
+
* @property {string} [from_pincode]
|
|
126
|
+
* @property {TATArticlesResponse[]} [articles]
|
|
206
127
|
*/
|
|
207
128
|
|
|
208
129
|
/**
|
|
209
|
-
* @typedef
|
|
210
|
-
* @property {string} [
|
|
211
|
-
* @property {string} [
|
|
212
|
-
* @property {string} [
|
|
213
|
-
* @property {
|
|
214
|
-
* @property {
|
|
130
|
+
* @typedef TATViewResponse
|
|
131
|
+
* @property {string} [to_pincode]
|
|
132
|
+
* @property {string} [request_uuid]
|
|
133
|
+
* @property {string} [payment_mode]
|
|
134
|
+
* @property {boolean} [success]
|
|
135
|
+
* @property {TATErrorSchemaResponse} [error]
|
|
136
|
+
* @property {boolean} [is_cod_available]
|
|
137
|
+
* @property {string} [source]
|
|
138
|
+
* @property {string} [action]
|
|
139
|
+
* @property {string} [stormbreaker_uuid]
|
|
140
|
+
* @property {string} [to_city]
|
|
141
|
+
* @property {string} [identifier]
|
|
142
|
+
* @property {TATLocationDetailsResponse[]} [location_details]
|
|
143
|
+
* @property {string} [journey]
|
|
215
144
|
*/
|
|
216
145
|
|
|
217
146
|
/**
|
|
218
|
-
* @typedef
|
|
219
|
-
* @property {
|
|
220
|
-
* @property {
|
|
221
|
-
* @property {
|
|
222
|
-
* @property {string
|
|
223
|
-
* @property {string}
|
|
147
|
+
* @typedef DP
|
|
148
|
+
* @property {number} fm_priority
|
|
149
|
+
* @property {number} lm_priority
|
|
150
|
+
* @property {number} rvp_priority
|
|
151
|
+
* @property {string} payment_mode
|
|
152
|
+
* @property {string[]} operations
|
|
153
|
+
* @property {string} [area_code]
|
|
154
|
+
* @property {boolean} [assign_dp_from_sb]
|
|
155
|
+
* @property {string} [internal_account_id]
|
|
156
|
+
* @property {string} [external_account_id]
|
|
157
|
+
* @property {string} [transport_mode]
|
|
224
158
|
*/
|
|
225
159
|
|
|
226
160
|
/**
|
|
@@ -229,239 +163,78 @@ const Joi = require("joi");
|
|
|
229
163
|
*/
|
|
230
164
|
|
|
231
165
|
/**
|
|
232
|
-
* @typedef
|
|
233
|
-
* @property {
|
|
234
|
-
* @property {
|
|
235
|
-
* @property {boolean} [has_previous]
|
|
236
|
-
* @property {number} [item_total]
|
|
237
|
-
* @property {string} [next_id]
|
|
238
|
-
* @property {number} [size]
|
|
239
|
-
* @property {string} type
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* @typedef PincodeApiResponse
|
|
244
|
-
* @property {PincodeDataResponse[]} [data]
|
|
245
|
-
* @property {PincodeErrorSchemaResponse} error
|
|
246
|
-
* @property {boolean} success
|
|
247
|
-
*/
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* @typedef PincodeDataResponse
|
|
166
|
+
* @typedef CountryEntityResponse
|
|
167
|
+
* @property {CountryMetaResponse} [meta]
|
|
168
|
+
* @property {LogisticsResponse} [logistics]
|
|
251
169
|
* @property {string} [display_name]
|
|
252
|
-
* @property {
|
|
253
|
-
* @property {
|
|
254
|
-
* @property {
|
|
255
|
-
* @property {CountryMetaResponse} [meta_code]
|
|
256
|
-
* @property {string} [name]
|
|
257
|
-
* @property {PincodeParentsResponse[]} [parents]
|
|
170
|
+
* @property {string} [type]
|
|
171
|
+
* @property {boolean} [is_active]
|
|
172
|
+
* @property {string} [parent_id]
|
|
258
173
|
* @property {string} [sub_type]
|
|
174
|
+
* @property {string} [name]
|
|
259
175
|
* @property {string} [uid]
|
|
260
176
|
*/
|
|
261
177
|
|
|
262
178
|
/**
|
|
263
|
-
* @typedef
|
|
264
|
-
* @property {
|
|
265
|
-
* @property {string} [type]
|
|
266
|
-
* @property {string} [value]
|
|
267
|
-
*/
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* @typedef PincodeLatLongData
|
|
271
|
-
* @property {string[]} [coordinates]
|
|
272
|
-
* @property {string} [type]
|
|
179
|
+
* @typedef CountryListResponse
|
|
180
|
+
* @property {CountryEntityResponse[]} [results]
|
|
273
181
|
*/
|
|
274
182
|
|
|
275
183
|
/**
|
|
276
|
-
* @typedef
|
|
277
|
-
* @property {
|
|
278
|
-
* @property {string}
|
|
184
|
+
* @typedef GetZoneFromPincodeViewRequest
|
|
185
|
+
* @property {string} pincode
|
|
186
|
+
* @property {string} country
|
|
279
187
|
*/
|
|
280
188
|
|
|
281
189
|
/**
|
|
282
|
-
* @typedef
|
|
283
|
-
* @property {string}
|
|
284
|
-
* @property {string}
|
|
285
|
-
* @property {string} [sub_type]
|
|
286
|
-
* @property {string} [uid]
|
|
190
|
+
* @typedef GetZoneFromPincodeViewResponse
|
|
191
|
+
* @property {string} serviceability_type
|
|
192
|
+
* @property {string[]} zones
|
|
287
193
|
*/
|
|
288
194
|
|
|
289
195
|
/**
|
|
290
196
|
* @typedef ReAssignStoreRequest
|
|
291
|
-
* @property {Object[]} articles
|
|
292
197
|
* @property {Object} configuration
|
|
293
|
-
* @property {string} identifier
|
|
294
|
-
* @property {number[]} ignored_locations
|
|
295
198
|
* @property {string} to_pincode
|
|
199
|
+
* @property {number[]} ignored_locations
|
|
200
|
+
* @property {string} identifier
|
|
201
|
+
* @property {Object[]} articles
|
|
296
202
|
*/
|
|
297
203
|
|
|
298
204
|
/**
|
|
299
205
|
* @typedef ReAssignStoreResponse
|
|
300
|
-
* @property {
|
|
301
|
-
* @property {Object} error
|
|
206
|
+
* @property {string} to_pincode
|
|
302
207
|
* @property {string} pystormbreaker_uuid
|
|
303
208
|
* @property {boolean} success
|
|
304
|
-
* @property {
|
|
209
|
+
* @property {Object} error
|
|
210
|
+
* @property {Object[]} [assigned_stores]
|
|
305
211
|
*/
|
|
306
212
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
*/
|
|
213
|
+
class LogisticApplicationModel {
|
|
214
|
+
/** @returns {PincodeParentsResponse} */
|
|
215
|
+
static PincodeParentsResponse() {
|
|
216
|
+
return Joi.object({
|
|
217
|
+
sub_type: Joi.string().allow(""),
|
|
218
|
+
display_name: Joi.string().allow(""),
|
|
219
|
+
name: Joi.string().allow(""),
|
|
220
|
+
uid: Joi.string().allow(""),
|
|
221
|
+
});
|
|
222
|
+
}
|
|
318
223
|
|
|
319
|
-
/**
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
224
|
+
/** @returns {PincodeMetaResponse} */
|
|
225
|
+
static PincodeMetaResponse() {
|
|
226
|
+
return Joi.object({
|
|
227
|
+
zone: Joi.string().allow(""),
|
|
228
|
+
internal_zone_id: Joi.number(),
|
|
229
|
+
});
|
|
230
|
+
}
|
|
325
231
|
|
|
326
|
-
/**
|
|
327
|
-
|
|
328
|
-
* @property {number} [_manufacturing_time_seconds]
|
|
329
|
-
* @property {TATCategoryRequest} [category]
|
|
330
|
-
* @property {TATErrorSchemaResponse} [error]
|
|
331
|
-
* @property {boolean} [is_cod_available]
|
|
332
|
-
* @property {number} [manufacturing_time]
|
|
333
|
-
* @property {string} [manufacturing_time_unit]
|
|
334
|
-
* @property {TATPromiseResponse} [promise]
|
|
335
|
-
*/
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* @typedef TATCategoryRequest
|
|
339
|
-
* @property {number} [id]
|
|
340
|
-
* @property {string} [level]
|
|
341
|
-
*/
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @typedef TATErrorSchemaResponse
|
|
345
|
-
* @property {string} [message]
|
|
346
|
-
* @property {string} [type]
|
|
347
|
-
* @property {string} [value]
|
|
348
|
-
*/
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* @typedef TATFormattedResponse
|
|
352
|
-
* @property {string} [max]
|
|
353
|
-
* @property {string} [min]
|
|
354
|
-
*/
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* @typedef TATLocationDetailsRequest
|
|
358
|
-
* @property {TATArticlesRequest[]} [articles]
|
|
359
|
-
* @property {string} [from_pincode]
|
|
360
|
-
* @property {number} [fulfillment_id]
|
|
361
|
-
*/
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* @typedef TATLocationDetailsResponse
|
|
365
|
-
* @property {TATArticlesResponse[]} [articles]
|
|
366
|
-
* @property {string} [from_pincode]
|
|
367
|
-
* @property {number} [fulfillment_id]
|
|
368
|
-
*/
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* @typedef TATPromiseResponse
|
|
372
|
-
* @property {TATFormattedResponse} [formatted]
|
|
373
|
-
* @property {TATTimestampResponse} [timestamp]
|
|
374
|
-
*/
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* @typedef TATTimestampResponse
|
|
378
|
-
* @property {number} [max]
|
|
379
|
-
* @property {number} [min]
|
|
380
|
-
*/
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* @typedef TATViewRequest
|
|
384
|
-
* @property {string} [action]
|
|
385
|
-
* @property {string} [identifier]
|
|
386
|
-
* @property {string} [journey]
|
|
387
|
-
* @property {TATLocationDetailsRequest[]} [location_details]
|
|
388
|
-
* @property {string} [source]
|
|
389
|
-
* @property {string} [to_pincode]
|
|
390
|
-
*/
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* @typedef TATViewResponse
|
|
394
|
-
* @property {string} [action]
|
|
395
|
-
* @property {TATErrorSchemaResponse} [error]
|
|
396
|
-
* @property {string} [identifier]
|
|
397
|
-
* @property {boolean} [is_cod_available]
|
|
398
|
-
* @property {string} [journey]
|
|
399
|
-
* @property {TATLocationDetailsResponse[]} [location_details]
|
|
400
|
-
* @property {string} [payment_mode]
|
|
401
|
-
* @property {string} [request_uuid]
|
|
402
|
-
* @property {string} [source]
|
|
403
|
-
* @property {string} [stormbreaker_uuid]
|
|
404
|
-
* @property {boolean} [success]
|
|
405
|
-
* @property {string} [to_city]
|
|
406
|
-
* @property {string} [to_pincode]
|
|
407
|
-
*/
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* @typedef ValidateAddressRequest
|
|
411
|
-
* @property {string} [address] - A string representing the complete address,
|
|
412
|
-
* combining address line 1, address line 2, area, landmark, sector, city,
|
|
413
|
-
* state, and pincode. This provides a comprehensive view of the address details.
|
|
414
|
-
* @property {string} [address1] - A string representing the first line of the
|
|
415
|
-
* address, typically containing street or building information.
|
|
416
|
-
* @property {string} [address2] - A string representing the second line of the
|
|
417
|
-
* address, which can be used for additional address details if needed.
|
|
418
|
-
* @property {string} [area] - A string specifying the locality or area
|
|
419
|
-
* associated with the address.
|
|
420
|
-
* @property {string} [city] - A string denoting the city or municipality of the address.
|
|
421
|
-
* @property {string} [email] - A string containing the recipient's email address.
|
|
422
|
-
* @property {string} [landmark] - A string representing a prominent nearby
|
|
423
|
-
* landmark that aids in locating the address.
|
|
424
|
-
* @property {string} [name] - A string representing the recipient's name or the
|
|
425
|
-
* organization name associated with the address.
|
|
426
|
-
* @property {string} [phone] - An integer representing the recipient's contact
|
|
427
|
-
* phone number.
|
|
428
|
-
* @property {string} [pincode] - A string indicating the postal code or PIN
|
|
429
|
-
* code of the address area.
|
|
430
|
-
* @property {string} [sector] - A string specifying the sector or district of
|
|
431
|
-
* the address if applicable.
|
|
432
|
-
* @property {string} [state] - A string indicating the state or province of the address.
|
|
433
|
-
*/
|
|
434
|
-
|
|
435
|
-
class LogisticApplicationModel {
|
|
436
|
-
/** @returns {CountryEntityResponse} */
|
|
437
|
-
static CountryEntityResponse() {
|
|
438
|
-
return Joi.object({
|
|
439
|
-
display_name: Joi.string().allow(""),
|
|
440
|
-
is_active: Joi.boolean(),
|
|
441
|
-
logistics: LogisticApplicationModel.LogisticsResponse(),
|
|
442
|
-
meta: LogisticApplicationModel.CountryMetaResponse(),
|
|
443
|
-
name: Joi.string().allow(""),
|
|
444
|
-
parent_id: Joi.string().allow(""),
|
|
445
|
-
sub_type: Joi.string().allow(""),
|
|
446
|
-
type: Joi.string().allow(""),
|
|
447
|
-
uid: Joi.string().allow(""),
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
/** @returns {CountryHierarchy} */
|
|
452
|
-
static CountryHierarchy() {
|
|
453
|
-
return Joi.object({
|
|
454
|
-
name: Joi.string().allow(""),
|
|
455
|
-
slug: Joi.string().allow(""),
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/** @returns {CountryListResponse} */
|
|
460
|
-
static CountryListResponse() {
|
|
232
|
+
/** @returns {PincodeErrorSchemaResponse} */
|
|
233
|
+
static PincodeErrorSchemaResponse() {
|
|
461
234
|
return Joi.object({
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
),
|
|
235
|
+
message: Joi.string().allow("").allow(null),
|
|
236
|
+
value: Joi.string().allow("").allow(null),
|
|
237
|
+
type: Joi.string().allow("").allow(null),
|
|
465
238
|
});
|
|
466
239
|
}
|
|
467
240
|
|
|
@@ -473,248 +246,173 @@ class LogisticApplicationModel {
|
|
|
473
246
|
});
|
|
474
247
|
}
|
|
475
248
|
|
|
476
|
-
/** @returns {
|
|
477
|
-
static
|
|
478
|
-
return Joi.object({
|
|
479
|
-
currency: LogisticApplicationModel.CurrencyObject(),
|
|
480
|
-
display_name: Joi.string().allow(""),
|
|
481
|
-
hierarchy: Joi.array().items(LogisticApplicationModel.CountryHierarchy()),
|
|
482
|
-
id: Joi.string().allow(""),
|
|
483
|
-
iso2: Joi.string().allow(""),
|
|
484
|
-
iso3: Joi.string().allow(""),
|
|
485
|
-
latitude: Joi.string().allow(""),
|
|
486
|
-
longitude: Joi.string().allow(""),
|
|
487
|
-
name: Joi.string().allow(""),
|
|
488
|
-
phone_code: Joi.string().allow(""),
|
|
489
|
-
timezones: Joi.array().items(Joi.string().allow("")),
|
|
490
|
-
type: Joi.string().allow(""),
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
/** @returns {CurrencyObject} */
|
|
495
|
-
static CurrencyObject() {
|
|
496
|
-
return Joi.object({
|
|
497
|
-
code: Joi.string().allow(""),
|
|
498
|
-
name: Joi.string().allow(""),
|
|
499
|
-
symbol: Joi.string().allow(""),
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
/** @returns {DP} */
|
|
504
|
-
static DP() {
|
|
505
|
-
return Joi.object({
|
|
506
|
-
area_code: Joi.string().allow("").allow(null),
|
|
507
|
-
assign_dp_from_sb: Joi.boolean(),
|
|
508
|
-
external_account_id: Joi.string().allow("").allow(null),
|
|
509
|
-
fm_priority: Joi.number().required(),
|
|
510
|
-
internal_account_id: Joi.string().allow(""),
|
|
511
|
-
lm_priority: Joi.number().required(),
|
|
512
|
-
operations: Joi.array().items(Joi.string().allow("")).required(),
|
|
513
|
-
payment_mode: Joi.string().allow("").required(),
|
|
514
|
-
rvp_priority: Joi.number().required(),
|
|
515
|
-
transport_mode: Joi.string().allow(""),
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
/** @returns {ErrorResponse} */
|
|
520
|
-
static ErrorResponse() {
|
|
521
|
-
return Joi.object({
|
|
522
|
-
error: Joi.string().allow(""),
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
/** @returns {FieldValidation} */
|
|
527
|
-
static FieldValidation() {
|
|
249
|
+
/** @returns {PincodeLatLongData} */
|
|
250
|
+
static PincodeLatLongData() {
|
|
528
251
|
return Joi.object({
|
|
529
|
-
regex: LogisticApplicationModel.FieldValidationRegex(),
|
|
530
252
|
type: Joi.string().allow(""),
|
|
253
|
+
coordinates: Joi.array().items(Joi.string().allow("")),
|
|
531
254
|
});
|
|
532
255
|
}
|
|
533
256
|
|
|
534
|
-
/** @returns {
|
|
535
|
-
static
|
|
536
|
-
return Joi.object({
|
|
537
|
-
length: LogisticApplicationModel.LengthValidation(),
|
|
538
|
-
value: Joi.string().allow(""),
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
/** @returns {GetCountries} */
|
|
543
|
-
static GetCountries() {
|
|
544
|
-
return Joi.object({
|
|
545
|
-
items: Joi.array().items(LogisticApplicationModel.CountryObject()),
|
|
546
|
-
page: LogisticApplicationModel.Page(),
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
/** @returns {GetCountry} */
|
|
551
|
-
static GetCountry() {
|
|
257
|
+
/** @returns {PincodeDataResponse} */
|
|
258
|
+
static PincodeDataResponse() {
|
|
552
259
|
return Joi.object({
|
|
553
|
-
|
|
260
|
+
parents: Joi.array().items(
|
|
261
|
+
LogisticApplicationModel.PincodeParentsResponse()
|
|
262
|
+
),
|
|
263
|
+
meta: LogisticApplicationModel.PincodeMetaResponse(),
|
|
554
264
|
display_name: Joi.string().allow(""),
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
iso3: Joi.string().allow(""),
|
|
560
|
-
latitude: Joi.string().allow(""),
|
|
561
|
-
longitude: Joi.string().allow(""),
|
|
265
|
+
error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
|
|
266
|
+
meta_code: LogisticApplicationModel.CountryMetaResponse(),
|
|
267
|
+
lat_long: LogisticApplicationModel.PincodeLatLongData(),
|
|
268
|
+
sub_type: Joi.string().allow(""),
|
|
562
269
|
name: Joi.string().allow(""),
|
|
563
|
-
|
|
564
|
-
timezones: Joi.array().items(Joi.string().allow("")),
|
|
565
|
-
type: Joi.string().allow(""),
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/** @returns {GetCountryFields} */
|
|
570
|
-
static GetCountryFields() {
|
|
571
|
-
return Joi.object({
|
|
572
|
-
address: Joi.array()
|
|
573
|
-
.items(LogisticApplicationModel.GetCountryFieldsAddress())
|
|
574
|
-
.required(),
|
|
575
|
-
address_template: LogisticApplicationModel.GetCountryFieldsAddressTemplate().required(),
|
|
576
|
-
serviceability_fields: Joi.array()
|
|
577
|
-
.items(Joi.string().allow(""))
|
|
578
|
-
.required(),
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/** @returns {GetCountryFieldsAddress} */
|
|
583
|
-
static GetCountryFieldsAddress() {
|
|
584
|
-
return Joi.object({
|
|
585
|
-
display_name: Joi.string().allow("").required(),
|
|
586
|
-
edit: Joi.boolean(),
|
|
587
|
-
error_text: Joi.string().allow("").allow(null),
|
|
588
|
-
input: Joi.string().allow("").required(),
|
|
589
|
-
required: Joi.boolean().required(),
|
|
590
|
-
slug: Joi.string().allow("").required(),
|
|
591
|
-
validation: LogisticApplicationModel.FieldValidation(),
|
|
592
|
-
values: LogisticApplicationModel.GetCountryFieldsAddressValues(),
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
/** @returns {GetCountryFieldsAddressTemplate} */
|
|
597
|
-
static GetCountryFieldsAddressTemplate() {
|
|
598
|
-
return Joi.object({
|
|
599
|
-
checkout_form: Joi.string().allow("").required(),
|
|
600
|
-
default_display: Joi.string().allow("").required(),
|
|
601
|
-
store_os_form: Joi.string().allow("").required(),
|
|
270
|
+
uid: Joi.string().allow(""),
|
|
602
271
|
});
|
|
603
272
|
}
|
|
604
273
|
|
|
605
|
-
/** @returns {
|
|
606
|
-
static
|
|
274
|
+
/** @returns {PincodeApiResponse} */
|
|
275
|
+
static PincodeApiResponse() {
|
|
607
276
|
return Joi.object({
|
|
608
|
-
|
|
609
|
-
|
|
277
|
+
success: Joi.boolean().required(),
|
|
278
|
+
data: Joi.array().items(LogisticApplicationModel.PincodeDataResponse()),
|
|
279
|
+
error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
|
|
610
280
|
});
|
|
611
281
|
}
|
|
612
282
|
|
|
613
|
-
/** @returns {
|
|
614
|
-
static
|
|
283
|
+
/** @returns {TATCategoryRequest} */
|
|
284
|
+
static TATCategoryRequest() {
|
|
615
285
|
return Joi.object({
|
|
616
|
-
|
|
617
|
-
|
|
286
|
+
level: Joi.string().allow(""),
|
|
287
|
+
id: Joi.number(),
|
|
618
288
|
});
|
|
619
289
|
}
|
|
620
290
|
|
|
621
|
-
/** @returns {
|
|
622
|
-
static
|
|
291
|
+
/** @returns {TATArticlesRequest} */
|
|
292
|
+
static TATArticlesRequest() {
|
|
623
293
|
return Joi.object({
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
name: Joi.string().allow(""),
|
|
628
|
-
parent_ids: Joi.array().items(Joi.string().allow("")),
|
|
629
|
-
type: Joi.string().allow(""),
|
|
294
|
+
category: LogisticApplicationModel.TATCategoryRequest(),
|
|
295
|
+
manufacturing_time_unit: Joi.string().allow(""),
|
|
296
|
+
manufacturing_time: Joi.number(),
|
|
630
297
|
});
|
|
631
298
|
}
|
|
632
299
|
|
|
633
|
-
/** @returns {
|
|
634
|
-
static
|
|
300
|
+
/** @returns {TATLocationDetailsRequest} */
|
|
301
|
+
static TATLocationDetailsRequest() {
|
|
635
302
|
return Joi.object({
|
|
636
|
-
|
|
637
|
-
|
|
303
|
+
fulfillment_id: Joi.number(),
|
|
304
|
+
from_pincode: Joi.string().allow(""),
|
|
305
|
+
articles: Joi.array().items(
|
|
306
|
+
LogisticApplicationModel.TATArticlesRequest()
|
|
307
|
+
),
|
|
638
308
|
});
|
|
639
309
|
}
|
|
640
310
|
|
|
641
|
-
/** @returns {
|
|
642
|
-
static
|
|
311
|
+
/** @returns {TATViewRequest} */
|
|
312
|
+
static TATViewRequest() {
|
|
643
313
|
return Joi.object({
|
|
644
|
-
|
|
645
|
-
|
|
314
|
+
to_pincode: Joi.string().allow(""),
|
|
315
|
+
source: Joi.string().allow(""),
|
|
316
|
+
action: Joi.string().allow(""),
|
|
317
|
+
identifier: Joi.string().allow(""),
|
|
318
|
+
location_details: Joi.array().items(
|
|
319
|
+
LogisticApplicationModel.TATLocationDetailsRequest()
|
|
320
|
+
),
|
|
321
|
+
journey: Joi.string().allow(""),
|
|
646
322
|
});
|
|
647
323
|
}
|
|
648
324
|
|
|
649
|
-
/** @returns {
|
|
650
|
-
static
|
|
325
|
+
/** @returns {TATErrorSchemaResponse} */
|
|
326
|
+
static TATErrorSchemaResponse() {
|
|
651
327
|
return Joi.object({
|
|
652
|
-
|
|
653
|
-
|
|
328
|
+
message: Joi.string().allow("").allow(null),
|
|
329
|
+
value: Joi.string().allow("").allow(null),
|
|
330
|
+
type: Joi.string().allow("").allow(null),
|
|
654
331
|
});
|
|
655
332
|
}
|
|
656
333
|
|
|
657
|
-
/** @returns {
|
|
658
|
-
static
|
|
334
|
+
/** @returns {TATTimestampResponse} */
|
|
335
|
+
static TATTimestampResponse() {
|
|
659
336
|
return Joi.object({
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
sector: Joi.string().allow("").allow(null),
|
|
663
|
-
state: Joi.string().allow("").allow(null),
|
|
337
|
+
min: Joi.number(),
|
|
338
|
+
max: Joi.number(),
|
|
664
339
|
});
|
|
665
340
|
}
|
|
666
341
|
|
|
667
|
-
/** @returns {
|
|
668
|
-
static
|
|
342
|
+
/** @returns {TATFormattedResponse} */
|
|
343
|
+
static TATFormattedResponse() {
|
|
669
344
|
return Joi.object({
|
|
670
|
-
|
|
671
|
-
|
|
345
|
+
min: Joi.string().allow(""),
|
|
346
|
+
max: Joi.string().allow(""),
|
|
672
347
|
});
|
|
673
348
|
}
|
|
674
349
|
|
|
675
|
-
/** @returns {
|
|
676
|
-
static
|
|
350
|
+
/** @returns {TATPromiseResponse} */
|
|
351
|
+
static TATPromiseResponse() {
|
|
677
352
|
return Joi.object({
|
|
678
|
-
|
|
679
|
-
|
|
353
|
+
timestamp: LogisticApplicationModel.TATTimestampResponse(),
|
|
354
|
+
formatted: LogisticApplicationModel.TATFormattedResponse(),
|
|
680
355
|
});
|
|
681
356
|
}
|
|
682
357
|
|
|
683
|
-
/** @returns {
|
|
684
|
-
static
|
|
358
|
+
/** @returns {TATArticlesResponse} */
|
|
359
|
+
static TATArticlesResponse() {
|
|
685
360
|
return Joi.object({
|
|
686
|
-
|
|
687
|
-
|
|
361
|
+
manufacturing_time_unit: Joi.string().allow(""),
|
|
362
|
+
error: LogisticApplicationModel.TATErrorSchemaResponse(),
|
|
363
|
+
is_cod_available: Joi.boolean(),
|
|
364
|
+
promise: LogisticApplicationModel.TATPromiseResponse(),
|
|
365
|
+
manufacturing_time: Joi.number(),
|
|
366
|
+
category: LogisticApplicationModel.TATCategoryRequest(),
|
|
367
|
+
_manufacturing_time_seconds: Joi.number(),
|
|
688
368
|
});
|
|
689
369
|
}
|
|
690
370
|
|
|
691
|
-
/** @returns {
|
|
692
|
-
static
|
|
371
|
+
/** @returns {TATLocationDetailsResponse} */
|
|
372
|
+
static TATLocationDetailsResponse() {
|
|
693
373
|
return Joi.object({
|
|
694
|
-
|
|
695
|
-
|
|
374
|
+
fulfillment_id: Joi.number(),
|
|
375
|
+
from_pincode: Joi.string().allow(""),
|
|
376
|
+
articles: Joi.array().items(
|
|
377
|
+
LogisticApplicationModel.TATArticlesResponse()
|
|
378
|
+
),
|
|
696
379
|
});
|
|
697
380
|
}
|
|
698
381
|
|
|
699
|
-
/** @returns {
|
|
700
|
-
static
|
|
382
|
+
/** @returns {TATViewResponse} */
|
|
383
|
+
static TATViewResponse() {
|
|
701
384
|
return Joi.object({
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
385
|
+
to_pincode: Joi.string().allow(""),
|
|
386
|
+
request_uuid: Joi.string().allow(""),
|
|
387
|
+
payment_mode: Joi.string().allow(""),
|
|
388
|
+
success: Joi.boolean(),
|
|
389
|
+
error: LogisticApplicationModel.TATErrorSchemaResponse(),
|
|
390
|
+
is_cod_available: Joi.boolean(),
|
|
391
|
+
source: Joi.string().allow(""),
|
|
392
|
+
action: Joi.string().allow(""),
|
|
393
|
+
stormbreaker_uuid: Joi.string().allow(""),
|
|
394
|
+
to_city: Joi.string().allow(""),
|
|
395
|
+
identifier: Joi.string().allow(""),
|
|
396
|
+
location_details: Joi.array().items(
|
|
397
|
+
LogisticApplicationModel.TATLocationDetailsResponse()
|
|
398
|
+
),
|
|
399
|
+
journey: Joi.string().allow(""),
|
|
707
400
|
});
|
|
708
401
|
}
|
|
709
402
|
|
|
710
|
-
/** @returns {
|
|
711
|
-
static
|
|
403
|
+
/** @returns {DP} */
|
|
404
|
+
static DP() {
|
|
712
405
|
return Joi.object({
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
406
|
+
fm_priority: Joi.number().required(),
|
|
407
|
+
lm_priority: Joi.number().required(),
|
|
408
|
+
rvp_priority: Joi.number().required(),
|
|
409
|
+
payment_mode: Joi.string().allow("").required(),
|
|
410
|
+
operations: Joi.array().items(Joi.string().allow("")).required(),
|
|
411
|
+
area_code: Joi.string().allow("").allow(null),
|
|
412
|
+
assign_dp_from_sb: Joi.boolean(),
|
|
413
|
+
internal_account_id: Joi.string().allow(""),
|
|
414
|
+
external_account_id: Joi.string().allow("").allow(null),
|
|
415
|
+
transport_mode: Joi.string().allow(""),
|
|
718
416
|
});
|
|
719
417
|
}
|
|
720
418
|
|
|
@@ -725,251 +423,65 @@ class LogisticApplicationModel {
|
|
|
725
423
|
});
|
|
726
424
|
}
|
|
727
425
|
|
|
728
|
-
/** @returns {
|
|
729
|
-
static
|
|
730
|
-
return Joi.object({
|
|
731
|
-
current: Joi.number(),
|
|
732
|
-
has_next: Joi.boolean(),
|
|
733
|
-
has_previous: Joi.boolean(),
|
|
734
|
-
item_total: Joi.number(),
|
|
735
|
-
next_id: Joi.string().allow(""),
|
|
736
|
-
size: Joi.number(),
|
|
737
|
-
type: Joi.string().allow("").required(),
|
|
738
|
-
});
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
/** @returns {PincodeApiResponse} */
|
|
742
|
-
static PincodeApiResponse() {
|
|
743
|
-
return Joi.object({
|
|
744
|
-
data: Joi.array().items(LogisticApplicationModel.PincodeDataResponse()),
|
|
745
|
-
error: LogisticApplicationModel.PincodeErrorSchemaResponse().required(),
|
|
746
|
-
success: Joi.boolean().required(),
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
/** @returns {PincodeDataResponse} */
|
|
751
|
-
static PincodeDataResponse() {
|
|
426
|
+
/** @returns {CountryEntityResponse} */
|
|
427
|
+
static CountryEntityResponse() {
|
|
752
428
|
return Joi.object({
|
|
429
|
+
meta: LogisticApplicationModel.CountryMetaResponse(),
|
|
430
|
+
logistics: LogisticApplicationModel.LogisticsResponse(),
|
|
753
431
|
display_name: Joi.string().allow(""),
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
meta_code: LogisticApplicationModel.CountryMetaResponse(),
|
|
758
|
-
name: Joi.string().allow(""),
|
|
759
|
-
parents: Joi.array().items(
|
|
760
|
-
LogisticApplicationModel.PincodeParentsResponse()
|
|
761
|
-
),
|
|
432
|
+
type: Joi.string().allow(""),
|
|
433
|
+
is_active: Joi.boolean(),
|
|
434
|
+
parent_id: Joi.string().allow(""),
|
|
762
435
|
sub_type: Joi.string().allow(""),
|
|
436
|
+
name: Joi.string().allow(""),
|
|
763
437
|
uid: Joi.string().allow(""),
|
|
764
438
|
});
|
|
765
439
|
}
|
|
766
440
|
|
|
767
|
-
/** @returns {
|
|
768
|
-
static
|
|
769
|
-
return Joi.object({
|
|
770
|
-
message: Joi.string().allow("").allow(null),
|
|
771
|
-
type: Joi.string().allow("").allow(null),
|
|
772
|
-
value: Joi.string().allow("").allow(null),
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
/** @returns {PincodeLatLongData} */
|
|
777
|
-
static PincodeLatLongData() {
|
|
441
|
+
/** @returns {CountryListResponse} */
|
|
442
|
+
static CountryListResponse() {
|
|
778
443
|
return Joi.object({
|
|
779
|
-
|
|
780
|
-
|
|
444
|
+
results: Joi.array().items(
|
|
445
|
+
LogisticApplicationModel.CountryEntityResponse()
|
|
446
|
+
),
|
|
781
447
|
});
|
|
782
448
|
}
|
|
783
449
|
|
|
784
|
-
/** @returns {
|
|
785
|
-
static
|
|
450
|
+
/** @returns {GetZoneFromPincodeViewRequest} */
|
|
451
|
+
static GetZoneFromPincodeViewRequest() {
|
|
786
452
|
return Joi.object({
|
|
787
|
-
|
|
788
|
-
|
|
453
|
+
pincode: Joi.string().allow("").required(),
|
|
454
|
+
country: Joi.string().allow("").required(),
|
|
789
455
|
});
|
|
790
456
|
}
|
|
791
457
|
|
|
792
|
-
/** @returns {
|
|
793
|
-
static
|
|
458
|
+
/** @returns {GetZoneFromPincodeViewResponse} */
|
|
459
|
+
static GetZoneFromPincodeViewResponse() {
|
|
794
460
|
return Joi.object({
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
sub_type: Joi.string().allow(""),
|
|
798
|
-
uid: Joi.string().allow(""),
|
|
461
|
+
serviceability_type: Joi.string().allow("").required(),
|
|
462
|
+
zones: Joi.array().items(Joi.string().allow("")).required(),
|
|
799
463
|
});
|
|
800
464
|
}
|
|
801
465
|
|
|
802
466
|
/** @returns {ReAssignStoreRequest} */
|
|
803
467
|
static ReAssignStoreRequest() {
|
|
804
468
|
return Joi.object({
|
|
805
|
-
articles: Joi.array().items(Joi.any()).required(),
|
|
806
469
|
configuration: Joi.any().required(),
|
|
807
|
-
identifier: Joi.string().allow("").required(),
|
|
808
|
-
ignored_locations: Joi.array().items(Joi.number()).required(),
|
|
809
470
|
to_pincode: Joi.string().allow("").required(),
|
|
471
|
+
ignored_locations: Joi.array().items(Joi.number()).required(),
|
|
472
|
+
identifier: Joi.string().allow("").required(),
|
|
473
|
+
articles: Joi.array().items(Joi.any()).required(),
|
|
810
474
|
});
|
|
811
475
|
}
|
|
812
476
|
|
|
813
477
|
/** @returns {ReAssignStoreResponse} */
|
|
814
478
|
static ReAssignStoreResponse() {
|
|
815
479
|
return Joi.object({
|
|
816
|
-
|
|
817
|
-
error: Joi.any().required(),
|
|
480
|
+
to_pincode: Joi.string().allow("").required(),
|
|
818
481
|
pystormbreaker_uuid: Joi.string().allow("").required(),
|
|
819
482
|
success: Joi.boolean().required(),
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
/** @returns {StoreItemResponse} */
|
|
825
|
-
static StoreItemResponse() {
|
|
826
|
-
return Joi.object({
|
|
827
|
-
company_id: Joi.number(),
|
|
828
|
-
fulfillment_type: Joi.string().allow(""),
|
|
829
|
-
id: Joi.number(),
|
|
830
|
-
latitude: Joi.number(),
|
|
831
|
-
longitude: Joi.number(),
|
|
832
|
-
processing_time: Joi.number(),
|
|
833
|
-
store_type: Joi.string().allow(""),
|
|
834
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
835
|
-
});
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
/** @returns {TATArticlesRequest} */
|
|
839
|
-
static TATArticlesRequest() {
|
|
840
|
-
return Joi.object({
|
|
841
|
-
category: LogisticApplicationModel.TATCategoryRequest(),
|
|
842
|
-
manufacturing_time: Joi.number(),
|
|
843
|
-
manufacturing_time_unit: Joi.string().allow(""),
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
/** @returns {TATArticlesResponse} */
|
|
848
|
-
static TATArticlesResponse() {
|
|
849
|
-
return Joi.object({
|
|
850
|
-
_manufacturing_time_seconds: Joi.number(),
|
|
851
|
-
category: LogisticApplicationModel.TATCategoryRequest(),
|
|
852
|
-
error: LogisticApplicationModel.TATErrorSchemaResponse(),
|
|
853
|
-
is_cod_available: Joi.boolean(),
|
|
854
|
-
manufacturing_time: Joi.number(),
|
|
855
|
-
manufacturing_time_unit: Joi.string().allow(""),
|
|
856
|
-
promise: LogisticApplicationModel.TATPromiseResponse(),
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
/** @returns {TATCategoryRequest} */
|
|
861
|
-
static TATCategoryRequest() {
|
|
862
|
-
return Joi.object({
|
|
863
|
-
id: Joi.number(),
|
|
864
|
-
level: Joi.string().allow(""),
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
/** @returns {TATErrorSchemaResponse} */
|
|
869
|
-
static TATErrorSchemaResponse() {
|
|
870
|
-
return Joi.object({
|
|
871
|
-
message: Joi.string().allow("").allow(null),
|
|
872
|
-
type: Joi.string().allow("").allow(null),
|
|
873
|
-
value: Joi.string().allow("").allow(null),
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
/** @returns {TATFormattedResponse} */
|
|
878
|
-
static TATFormattedResponse() {
|
|
879
|
-
return Joi.object({
|
|
880
|
-
max: Joi.string().allow(""),
|
|
881
|
-
min: Joi.string().allow(""),
|
|
882
|
-
});
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
/** @returns {TATLocationDetailsRequest} */
|
|
886
|
-
static TATLocationDetailsRequest() {
|
|
887
|
-
return Joi.object({
|
|
888
|
-
articles: Joi.array().items(
|
|
889
|
-
LogisticApplicationModel.TATArticlesRequest()
|
|
890
|
-
),
|
|
891
|
-
from_pincode: Joi.string().allow(""),
|
|
892
|
-
fulfillment_id: Joi.number(),
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
/** @returns {TATLocationDetailsResponse} */
|
|
897
|
-
static TATLocationDetailsResponse() {
|
|
898
|
-
return Joi.object({
|
|
899
|
-
articles: Joi.array().items(
|
|
900
|
-
LogisticApplicationModel.TATArticlesResponse()
|
|
901
|
-
),
|
|
902
|
-
from_pincode: Joi.string().allow(""),
|
|
903
|
-
fulfillment_id: Joi.number(),
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
/** @returns {TATPromiseResponse} */
|
|
908
|
-
static TATPromiseResponse() {
|
|
909
|
-
return Joi.object({
|
|
910
|
-
formatted: LogisticApplicationModel.TATFormattedResponse(),
|
|
911
|
-
timestamp: LogisticApplicationModel.TATTimestampResponse(),
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
/** @returns {TATTimestampResponse} */
|
|
916
|
-
static TATTimestampResponse() {
|
|
917
|
-
return Joi.object({
|
|
918
|
-
max: Joi.number(),
|
|
919
|
-
min: Joi.number(),
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
/** @returns {TATViewRequest} */
|
|
924
|
-
static TATViewRequest() {
|
|
925
|
-
return Joi.object({
|
|
926
|
-
action: Joi.string().allow(""),
|
|
927
|
-
identifier: Joi.string().allow(""),
|
|
928
|
-
journey: Joi.string().allow(""),
|
|
929
|
-
location_details: Joi.array().items(
|
|
930
|
-
LogisticApplicationModel.TATLocationDetailsRequest()
|
|
931
|
-
),
|
|
932
|
-
source: Joi.string().allow(""),
|
|
933
|
-
to_pincode: Joi.string().allow(""),
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
/** @returns {TATViewResponse} */
|
|
938
|
-
static TATViewResponse() {
|
|
939
|
-
return Joi.object({
|
|
940
|
-
action: Joi.string().allow(""),
|
|
941
|
-
error: LogisticApplicationModel.TATErrorSchemaResponse(),
|
|
942
|
-
identifier: Joi.string().allow(""),
|
|
943
|
-
is_cod_available: Joi.boolean(),
|
|
944
|
-
journey: Joi.string().allow(""),
|
|
945
|
-
location_details: Joi.array().items(
|
|
946
|
-
LogisticApplicationModel.TATLocationDetailsResponse()
|
|
947
|
-
),
|
|
948
|
-
payment_mode: Joi.string().allow(""),
|
|
949
|
-
request_uuid: Joi.string().allow(""),
|
|
950
|
-
source: Joi.string().allow(""),
|
|
951
|
-
stormbreaker_uuid: Joi.string().allow(""),
|
|
952
|
-
success: Joi.boolean(),
|
|
953
|
-
to_city: Joi.string().allow(""),
|
|
954
|
-
to_pincode: Joi.string().allow(""),
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
/** @returns {ValidateAddressRequest} */
|
|
959
|
-
static ValidateAddressRequest() {
|
|
960
|
-
return Joi.object({
|
|
961
|
-
address: Joi.string().allow(""),
|
|
962
|
-
address1: Joi.string().allow(""),
|
|
963
|
-
address2: Joi.string().allow(""),
|
|
964
|
-
area: Joi.string().allow(""),
|
|
965
|
-
city: Joi.string().allow(""),
|
|
966
|
-
email: Joi.string().allow(""),
|
|
967
|
-
landmark: Joi.string().allow(""),
|
|
968
|
-
name: Joi.string().allow(""),
|
|
969
|
-
phone: Joi.string().allow(""),
|
|
970
|
-
pincode: Joi.string().allow(""),
|
|
971
|
-
sector: Joi.string().allow(""),
|
|
972
|
-
state: Joi.string().allow(""),
|
|
483
|
+
error: Joi.any().required(),
|
|
484
|
+
assigned_stores: Joi.array().items(Joi.any()),
|
|
973
485
|
});
|
|
974
486
|
}
|
|
975
487
|
}
|