@gofynd/fdk-client-javascript 1.4.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 +990 -1589
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
- 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,354 +1,319 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {string}
|
|
6
|
-
* @property {string} [address2]
|
|
7
|
-
* @property {string} [city]
|
|
8
|
-
* @property {string} [country]
|
|
9
|
-
* @property {string} [landmark]
|
|
10
|
-
* @property {number} [latitude]
|
|
11
|
-
* @property {number} [longitude]
|
|
12
|
-
* @property {number} [pincode]
|
|
13
|
-
* @property {string} [state]
|
|
4
|
+
* @typedef ServiceabilityPayloadSchema
|
|
5
|
+
* @property {string} serviceability_type
|
|
14
6
|
*/
|
|
15
7
|
|
|
16
8
|
/**
|
|
17
|
-
* @typedef
|
|
18
|
-
* @property {string
|
|
19
|
-
* @property {string
|
|
20
|
-
* @property {
|
|
9
|
+
* @typedef ServiceabilityErrorResponse
|
|
10
|
+
* @property {string} message
|
|
11
|
+
* @property {string} value
|
|
12
|
+
* @property {string} type
|
|
21
13
|
*/
|
|
22
14
|
|
|
23
15
|
/**
|
|
24
|
-
* @typedef
|
|
25
|
-
* @property {
|
|
16
|
+
* @typedef ApplicationServiceabilityConfig
|
|
17
|
+
* @property {string} channel_id
|
|
18
|
+
* @property {string} serviceability_type
|
|
19
|
+
* @property {string} channel_type
|
|
26
20
|
*/
|
|
27
21
|
|
|
28
22
|
/**
|
|
29
|
-
* @typedef
|
|
30
|
-
* @property {ApplicationSelfShipConfig} [data]
|
|
23
|
+
* @typedef ApplicationServiceabilityConfigResponse
|
|
31
24
|
* @property {ServiceabilityErrorResponse} [error]
|
|
25
|
+
* @property {ApplicationServiceabilityConfig} [data]
|
|
32
26
|
* @property {boolean} success
|
|
33
27
|
*/
|
|
34
28
|
|
|
35
29
|
/**
|
|
36
|
-
* @typedef
|
|
37
|
-
* @property {string}
|
|
38
|
-
* @property {string}
|
|
39
|
-
* @property {string} serviceability_type
|
|
30
|
+
* @typedef EntityRegionView_Request
|
|
31
|
+
* @property {string[]} sub_type
|
|
32
|
+
* @property {string[]} [parent_id]
|
|
40
33
|
*/
|
|
41
34
|
|
|
42
35
|
/**
|
|
43
|
-
* @typedef
|
|
44
|
-
* @property {
|
|
45
|
-
* @property {
|
|
46
|
-
* @property {
|
|
36
|
+
* @typedef EntityRegionView_Error
|
|
37
|
+
* @property {string} [message]
|
|
38
|
+
* @property {string} [value]
|
|
39
|
+
* @property {string} [type]
|
|
47
40
|
*/
|
|
48
41
|
|
|
49
42
|
/**
|
|
50
|
-
* @typedef
|
|
51
|
-
* @property {
|
|
52
|
-
* @property {
|
|
53
|
-
* @property {number}
|
|
54
|
-
* @property {number}
|
|
43
|
+
* @typedef EntityRegionView_page
|
|
44
|
+
* @property {string} type
|
|
45
|
+
* @property {boolean} has_next
|
|
46
|
+
* @property {number} item_total
|
|
47
|
+
* @property {number} size
|
|
48
|
+
* @property {number} current
|
|
55
49
|
*/
|
|
56
50
|
|
|
57
51
|
/**
|
|
58
|
-
* @typedef
|
|
59
|
-
* @property {string}
|
|
60
|
-
* @property {string}
|
|
61
|
-
* @property {string}
|
|
62
|
-
* @property {string}
|
|
52
|
+
* @typedef EntityRegionView_Items
|
|
53
|
+
* @property {string} sub_type
|
|
54
|
+
* @property {string} uid
|
|
55
|
+
* @property {string} name
|
|
56
|
+
* @property {string} [display_name]
|
|
63
57
|
*/
|
|
64
58
|
|
|
65
59
|
/**
|
|
66
|
-
* @typedef
|
|
67
|
-
* @property {
|
|
68
|
-
* @property {
|
|
60
|
+
* @typedef EntityRegionView_Response
|
|
61
|
+
* @property {EntityRegionView_Error} error
|
|
62
|
+
* @property {EntityRegionView_page} page
|
|
63
|
+
* @property {EntityRegionView_Items[]} [items]
|
|
64
|
+
* @property {boolean} success
|
|
69
65
|
*/
|
|
70
66
|
|
|
71
67
|
/**
|
|
72
|
-
* @typedef
|
|
73
|
-
* @property {
|
|
74
|
-
* @property {
|
|
75
|
-
* @property {
|
|
76
|
-
* @property {string} [error_file_path]
|
|
77
|
-
* @property {number} [failed]
|
|
78
|
-
* @property {Object[]} [failed_records]
|
|
79
|
-
* @property {string} file_path
|
|
80
|
-
* @property {string} region
|
|
81
|
-
* @property {string} status
|
|
82
|
-
* @property {number} [success]
|
|
83
|
-
* @property {number} [total]
|
|
68
|
+
* @typedef ListViewSummary
|
|
69
|
+
* @property {number} total_zones
|
|
70
|
+
* @property {number} total_pincodes_served
|
|
71
|
+
* @property {number} total_active_zones
|
|
84
72
|
*/
|
|
85
73
|
|
|
86
74
|
/**
|
|
87
|
-
* @typedef
|
|
88
|
-
* @property {
|
|
89
|
-
* @property {
|
|
75
|
+
* @typedef ZoneDataItem
|
|
76
|
+
* @property {boolean} has_next
|
|
77
|
+
* @property {number} item_total
|
|
78
|
+
* @property {number} size
|
|
79
|
+
* @property {number} current
|
|
80
|
+
* @property {string} type
|
|
90
81
|
*/
|
|
91
82
|
|
|
92
83
|
/**
|
|
93
|
-
* @typedef
|
|
94
|
-
* @property {
|
|
95
|
-
* @property {string}
|
|
96
|
-
* @property {string} [success]
|
|
84
|
+
* @typedef ListViewProduct
|
|
85
|
+
* @property {number} count
|
|
86
|
+
* @property {string} type
|
|
97
87
|
*/
|
|
98
88
|
|
|
99
89
|
/**
|
|
100
|
-
* @typedef
|
|
101
|
-
* @property {
|
|
102
|
-
* @property {string
|
|
103
|
-
* @property {string[]} sort
|
|
90
|
+
* @typedef ListViewChannels
|
|
91
|
+
* @property {string} channel_id
|
|
92
|
+
* @property {string} channel_type
|
|
104
93
|
*/
|
|
105
94
|
|
|
106
95
|
/**
|
|
107
|
-
* @typedef
|
|
108
|
-
* @property {
|
|
109
|
-
* @property {
|
|
96
|
+
* @typedef ListViewItems
|
|
97
|
+
* @property {string} zone_id
|
|
98
|
+
* @property {string} name
|
|
99
|
+
* @property {string} slug
|
|
100
|
+
* @property {number} stores_count
|
|
101
|
+
* @property {boolean} is_active
|
|
102
|
+
* @property {ListViewProduct} product
|
|
103
|
+
* @property {number} pincodes_count
|
|
104
|
+
* @property {number} company_id
|
|
105
|
+
* @property {ListViewChannels[]} channels
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @typedef ListViewResponse
|
|
110
|
+
* @property {ListViewSummary} summary
|
|
111
|
+
* @property {ZoneDataItem} page
|
|
112
|
+
* @property {ListViewItems[]} items
|
|
110
113
|
*/
|
|
111
114
|
|
|
112
115
|
/**
|
|
113
116
|
* @typedef CompanyStoreView_PageItems
|
|
114
|
-
* @property {
|
|
117
|
+
* @property {string} type
|
|
115
118
|
* @property {boolean} has_next
|
|
116
119
|
* @property {number} item_total
|
|
117
120
|
* @property {number} size
|
|
118
|
-
* @property {
|
|
121
|
+
* @property {number} current
|
|
119
122
|
*/
|
|
120
123
|
|
|
121
124
|
/**
|
|
122
125
|
* @typedef CompanyStoreView_Response
|
|
123
|
-
* @property {Object[]} [items]
|
|
124
126
|
* @property {CompanyStoreView_PageItems[]} page
|
|
127
|
+
* @property {Object[]} [items]
|
|
125
128
|
*/
|
|
126
129
|
|
|
127
130
|
/**
|
|
128
|
-
* @typedef
|
|
129
|
-
* @property {
|
|
130
|
-
* @property {string}
|
|
131
|
+
* @typedef GetZoneDataViewChannels
|
|
132
|
+
* @property {string} channel_id
|
|
133
|
+
* @property {string} channel_type
|
|
131
134
|
*/
|
|
132
135
|
|
|
133
136
|
/**
|
|
134
|
-
* @typedef
|
|
135
|
-
* @property {string}
|
|
136
|
-
* @property {string}
|
|
137
|
-
* @property {boolean} is_own_account
|
|
138
|
-
* @property {boolean} is_self_ship
|
|
139
|
-
* @property {string} scheme_id
|
|
140
|
-
* @property {string} stage
|
|
137
|
+
* @typedef ZoneProductTypes
|
|
138
|
+
* @property {string} type
|
|
139
|
+
* @property {string[]} tags
|
|
141
140
|
*/
|
|
142
141
|
|
|
143
142
|
/**
|
|
144
|
-
* @typedef
|
|
145
|
-
* @property {string}
|
|
146
|
-
* @property {
|
|
147
|
-
* @property {
|
|
148
|
-
* @property {string} scheme_id
|
|
149
|
-
* @property {CourierPartnerSchemeModel} scheme_rules
|
|
150
|
-
* @property {string} stage
|
|
143
|
+
* @typedef ZoneMappingType
|
|
144
|
+
* @property {string} country
|
|
145
|
+
* @property {string[]} [pincode]
|
|
146
|
+
* @property {string[]} [state]
|
|
151
147
|
*/
|
|
152
148
|
|
|
153
149
|
/**
|
|
154
|
-
* @typedef
|
|
155
|
-
* @property {
|
|
156
|
-
* @property {
|
|
150
|
+
* @typedef UpdateZoneData
|
|
151
|
+
* @property {string} zone_id
|
|
152
|
+
* @property {string} name
|
|
153
|
+
* @property {string} slug
|
|
154
|
+
* @property {number} company_id
|
|
155
|
+
* @property {boolean} is_active
|
|
156
|
+
* @property {GetZoneDataViewChannels[]} channels
|
|
157
|
+
* @property {ZoneProductTypes} product
|
|
158
|
+
* @property {number[]} store_ids
|
|
159
|
+
* @property {string} region_type
|
|
160
|
+
* @property {ZoneMappingType[]} mapping
|
|
161
|
+
* @property {string} [assignment_preference]
|
|
157
162
|
*/
|
|
158
163
|
|
|
159
164
|
/**
|
|
160
|
-
* @typedef
|
|
161
|
-
* @property {string}
|
|
162
|
-
* @property {
|
|
163
|
-
* @property {boolean} is_self_ship
|
|
164
|
-
* @property {string} name
|
|
165
|
+
* @typedef ZoneUpdateRequest
|
|
166
|
+
* @property {string} identifier
|
|
167
|
+
* @property {UpdateZoneData} data
|
|
165
168
|
*/
|
|
166
169
|
|
|
167
170
|
/**
|
|
168
|
-
* @typedef
|
|
169
|
-
* @property {
|
|
170
|
-
* @property {
|
|
171
|
-
|
|
171
|
+
* @typedef ZoneSuccessResponse
|
|
172
|
+
* @property {number} status_code
|
|
173
|
+
* @property {boolean} success
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @typedef GetZoneDataViewItems
|
|
178
|
+
* @property {string} zone_id
|
|
172
179
|
* @property {string} name
|
|
173
|
-
* @property {string
|
|
180
|
+
* @property {string} slug
|
|
181
|
+
* @property {number} [company_id]
|
|
182
|
+
* @property {boolean} is_active
|
|
183
|
+
* @property {GetZoneDataViewChannels[]} channels
|
|
184
|
+
* @property {ZoneProductTypes} product
|
|
185
|
+
* @property {number[]} store_ids
|
|
186
|
+
* @property {string} region_type
|
|
187
|
+
* @property {ZoneMappingType[]} mapping
|
|
188
|
+
* @property {string} [assignment_preference]
|
|
189
|
+
* @property {number} stores_count
|
|
190
|
+
* @property {number} pincodes_count
|
|
174
191
|
*/
|
|
175
192
|
|
|
176
193
|
/**
|
|
177
|
-
* @typedef
|
|
178
|
-
* @property {
|
|
179
|
-
* @property {IntComparisonOperations} [category_ids]
|
|
180
|
-
* @property {IntComparisonOperations} [department_ids]
|
|
181
|
-
* @property {LocationRule} [forward]
|
|
182
|
-
* @property {ArithmeticOperations} [order_place_date]
|
|
183
|
-
* @property {StringComparisonOperations} [payment_mode]
|
|
184
|
-
* @property {IntComparisonOperations} [product_ids]
|
|
185
|
-
* @property {StringComparisonOperations} [product_tags]
|
|
186
|
-
* @property {LocationRule} [reverse]
|
|
187
|
-
* @property {ArithmeticOperations} [shipment_cost]
|
|
188
|
-
* @property {ArithmeticOperations} [shipment_volumetric_weight]
|
|
189
|
-
* @property {ArithmeticOperations} [shipment_weight]
|
|
190
|
-
* @property {IntComparisonOperations} [store_ids]
|
|
191
|
-
* @property {StringComparisonOperations} [store_tags]
|
|
192
|
-
* @property {StringComparisonOperations} [store_type]
|
|
193
|
-
* @property {StringComparisonOperations} [zone_ids]
|
|
194
|
+
* @typedef GetSingleZoneDataViewResponse
|
|
195
|
+
* @property {GetZoneDataViewItems} data
|
|
194
196
|
*/
|
|
195
197
|
|
|
196
198
|
/**
|
|
197
|
-
* @typedef
|
|
198
|
-
* @property {
|
|
199
|
-
* @property {
|
|
199
|
+
* @typedef CreateZoneData
|
|
200
|
+
* @property {string} name
|
|
201
|
+
* @property {string} slug
|
|
202
|
+
* @property {number} company_id
|
|
203
|
+
* @property {boolean} is_active
|
|
204
|
+
* @property {GetZoneDataViewChannels[]} channels
|
|
205
|
+
* @property {ZoneProductTypes} product
|
|
206
|
+
* @property {number[]} store_ids
|
|
207
|
+
* @property {string} region_type
|
|
208
|
+
* @property {ZoneMappingType[]} mapping
|
|
209
|
+
* @property {string} [assignment_preference]
|
|
200
210
|
*/
|
|
201
211
|
|
|
202
212
|
/**
|
|
203
|
-
* @typedef
|
|
204
|
-
* @property {
|
|
205
|
-
* @property {
|
|
206
|
-
* @property {boolean} [doorstep_exchange]
|
|
207
|
-
* @property {boolean} [doorstep_qc]
|
|
208
|
-
* @property {boolean} [doorstep_return]
|
|
209
|
-
* @property {boolean} [ewaybill]
|
|
210
|
-
* @property {boolean} [fragile_goods]
|
|
211
|
-
* @property {boolean} [mps]
|
|
212
|
-
* @property {boolean} [multi_pick_multi_drop]
|
|
213
|
-
* @property {boolean} [multi_pick_single_drop]
|
|
214
|
-
* @property {boolean} [ndr]
|
|
215
|
-
* @property {number} [ndr_attempts]
|
|
216
|
-
* @property {boolean} [openbox_delivery]
|
|
217
|
-
* @property {boolean} [product_installation]
|
|
218
|
-
* @property {boolean} [qr]
|
|
219
|
-
* @property {boolean} [restricted_goods]
|
|
220
|
-
* @property {boolean} [single_pick_multi_drop]
|
|
221
|
-
* @property {string} [status_updates]
|
|
222
|
-
*/
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* @typedef CourierPartnerSchemeModel
|
|
226
|
-
* @property {string} delivery_type
|
|
227
|
-
* @property {string} extension_id
|
|
228
|
-
* @property {CourierPartnerSchemeFeatures} feature
|
|
229
|
-
* @property {string[]} payment_mode
|
|
230
|
-
* @property {string} region
|
|
231
|
-
* @property {string} scheme_id
|
|
232
|
-
* @property {string} stage
|
|
233
|
-
* @property {string} transport_type
|
|
234
|
-
* @property {ArithmeticOperations} weight
|
|
213
|
+
* @typedef ZoneRequest
|
|
214
|
+
* @property {string} identifier
|
|
215
|
+
* @property {CreateZoneData} data
|
|
235
216
|
*/
|
|
236
217
|
|
|
237
218
|
/**
|
|
238
|
-
* @typedef
|
|
239
|
-
* @property {
|
|
240
|
-
* @property {string}
|
|
219
|
+
* @typedef ZoneResponse
|
|
220
|
+
* @property {number} status_code
|
|
221
|
+
* @property {string} zone_id
|
|
222
|
+
* @property {boolean} success
|
|
241
223
|
*/
|
|
242
224
|
|
|
243
225
|
/**
|
|
244
|
-
* @typedef
|
|
245
|
-
* @property {
|
|
246
|
-
* @property {
|
|
247
|
-
* @property {string} [name]
|
|
248
|
-
* @property {string[]} [sort]
|
|
249
|
-
* @property {StorePrioritySchema[]} [store_priority]
|
|
250
|
-
* @property {string[]} [tag_based_priority]
|
|
251
|
-
* @property {string[]} [type_based_priority]
|
|
226
|
+
* @typedef GetZoneFromPincodeViewRequest
|
|
227
|
+
* @property {string} country
|
|
228
|
+
* @property {string} pincode
|
|
252
229
|
*/
|
|
253
230
|
|
|
254
231
|
/**
|
|
255
|
-
* @typedef
|
|
256
|
-
* @property {string}
|
|
257
|
-
* @property {
|
|
258
|
-
* @property {number} company_id
|
|
259
|
-
* @property {boolean} is_active
|
|
260
|
-
* @property {ZoneMappingType[]} mapping
|
|
232
|
+
* @typedef Zone
|
|
233
|
+
* @property {string} zone_id
|
|
234
|
+
* @property {string} type
|
|
261
235
|
* @property {string} name
|
|
262
|
-
* @property {string}
|
|
236
|
+
* @property {string[]} tags
|
|
263
237
|
* @property {string} slug
|
|
238
|
+
* @property {boolean} is_active
|
|
264
239
|
* @property {number[]} store_ids
|
|
240
|
+
* @property {string} assignment_preference
|
|
265
241
|
*/
|
|
266
242
|
|
|
267
243
|
/**
|
|
268
|
-
* @typedef
|
|
269
|
-
* @property {
|
|
270
|
-
* @property {
|
|
271
|
-
* @property {number} [lt]
|
|
272
|
-
* @property {number} [lte]
|
|
273
|
-
* @property {string} unit
|
|
244
|
+
* @typedef GetZoneFromPincodeViewResponse
|
|
245
|
+
* @property {string} serviceability_type
|
|
246
|
+
* @property {Zone[]} zones
|
|
274
247
|
*/
|
|
275
248
|
|
|
276
249
|
/**
|
|
277
|
-
* @typedef
|
|
278
|
-
* @property {
|
|
250
|
+
* @typedef GetZoneFromApplicationIdViewResponse
|
|
251
|
+
* @property {ZoneDataItem[]} page
|
|
252
|
+
* @property {ListViewItems[]} items
|
|
253
|
+
*/
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @typedef ServiceabilityPageResponse
|
|
279
257
|
* @property {string} [type]
|
|
280
|
-
* @property {
|
|
281
|
-
* @property {
|
|
258
|
+
* @property {boolean} [has_next]
|
|
259
|
+
* @property {number} [item_total]
|
|
260
|
+
* @property {number} [size]
|
|
261
|
+
* @property {number} [current]
|
|
282
262
|
*/
|
|
283
263
|
|
|
284
264
|
/**
|
|
285
|
-
* @typedef
|
|
286
|
-
* @property {
|
|
287
|
-
* @property {
|
|
288
|
-
* @property {string} [external_account_id]
|
|
289
|
-
* @property {number} [fm_priority]
|
|
290
|
-
* @property {string} [internal_account_id]
|
|
291
|
-
* @property {number} [lm_priority]
|
|
292
|
-
* @property {string[]} [operations]
|
|
293
|
-
* @property {string} [payment_mode]
|
|
294
|
-
* @property {number} [rvp_priority]
|
|
295
|
-
* @property {string} [transport_mode]
|
|
265
|
+
* @typedef MobileNo
|
|
266
|
+
* @property {string} [number]
|
|
267
|
+
* @property {number} [country_code]
|
|
296
268
|
*/
|
|
297
269
|
|
|
298
270
|
/**
|
|
299
|
-
* @typedef
|
|
300
|
-
* @property {
|
|
271
|
+
* @typedef ManagerResponse
|
|
272
|
+
* @property {string} [email]
|
|
273
|
+
* @property {MobileNo} [mobile_no]
|
|
274
|
+
* @property {string} [name]
|
|
301
275
|
*/
|
|
302
276
|
|
|
303
277
|
/**
|
|
304
|
-
* @typedef
|
|
305
|
-
* @property {string} [
|
|
306
|
-
* @property {string} [
|
|
307
|
-
* @property {string} [value]
|
|
278
|
+
* @typedef ModifiedByResponse
|
|
279
|
+
* @property {string} [username]
|
|
280
|
+
* @property {string} [user_id]
|
|
308
281
|
*/
|
|
309
282
|
|
|
310
283
|
/**
|
|
311
|
-
* @typedef
|
|
312
|
-
* @property {string}
|
|
313
|
-
* @property {string}
|
|
314
|
-
* @property {string} uid
|
|
284
|
+
* @typedef IntegrationTypeResponse
|
|
285
|
+
* @property {string} [inventory]
|
|
286
|
+
* @property {string} [order]
|
|
315
287
|
*/
|
|
316
288
|
|
|
317
289
|
/**
|
|
318
|
-
* @typedef
|
|
319
|
-
* @property {
|
|
320
|
-
* @property {boolean} has_next
|
|
321
|
-
* @property {number} item_total
|
|
322
|
-
* @property {number} size
|
|
323
|
-
* @property {string} type
|
|
324
|
-
*/
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* @typedef EntityRegionView_Request
|
|
328
|
-
* @property {string[]} [parent_id]
|
|
329
|
-
* @property {string[]} sub_type
|
|
290
|
+
* @typedef ProductReturnConfigResponse
|
|
291
|
+
* @property {boolean} [on_same_store]
|
|
330
292
|
*/
|
|
331
293
|
|
|
332
294
|
/**
|
|
333
|
-
* @typedef
|
|
334
|
-
* @property {
|
|
335
|
-
* @property {
|
|
336
|
-
* @property {EntityRegionView_page} page
|
|
337
|
-
* @property {boolean} success
|
|
295
|
+
* @typedef ContactNumberResponse
|
|
296
|
+
* @property {string} [number]
|
|
297
|
+
* @property {number} [country_code]
|
|
338
298
|
*/
|
|
339
299
|
|
|
340
300
|
/**
|
|
341
|
-
* @typedef
|
|
342
|
-
* @property {string} [
|
|
343
|
-
* @property {string} [
|
|
344
|
-
* @property {
|
|
301
|
+
* @typedef AddressResponse
|
|
302
|
+
* @property {string} [city]
|
|
303
|
+
* @property {string} [address1]
|
|
304
|
+
* @property {number} [pincode]
|
|
305
|
+
* @property {string} [address2]
|
|
306
|
+
* @property {string} [landmark]
|
|
307
|
+
* @property {string} [state]
|
|
308
|
+
* @property {string} [country]
|
|
309
|
+
* @property {number} [latitude]
|
|
310
|
+
* @property {number} [longitude]
|
|
345
311
|
*/
|
|
346
312
|
|
|
347
313
|
/**
|
|
348
|
-
* @typedef
|
|
349
|
-
* @property {string}
|
|
350
|
-
* @property {string}
|
|
351
|
-
* @property {string} value
|
|
314
|
+
* @typedef CreatedByResponse
|
|
315
|
+
* @property {string} [username]
|
|
316
|
+
* @property {string} [user_id]
|
|
352
317
|
*/
|
|
353
318
|
|
|
354
319
|
/**
|
|
@@ -357,508 +322,413 @@ const Joi = require("joi");
|
|
|
357
322
|
*/
|
|
358
323
|
|
|
359
324
|
/**
|
|
360
|
-
* @typedef
|
|
361
|
-
* @property {
|
|
362
|
-
* @property {boolean} success
|
|
325
|
+
* @typedef EinvoiceResponse
|
|
326
|
+
* @property {boolean} [enabled]
|
|
363
327
|
*/
|
|
364
328
|
|
|
365
329
|
/**
|
|
366
|
-
* @typedef
|
|
367
|
-
* @property {
|
|
368
|
-
* @property {
|
|
330
|
+
* @typedef GstCredentialsResponse
|
|
331
|
+
* @property {EwayBillResponse} [e_waybill]
|
|
332
|
+
* @property {EinvoiceResponse} [e_invoice]
|
|
369
333
|
*/
|
|
370
334
|
|
|
371
335
|
/**
|
|
372
|
-
* @typedef
|
|
373
|
-
* @property {
|
|
336
|
+
* @typedef WarningsResponse
|
|
337
|
+
* @property {string} [store_address]
|
|
374
338
|
*/
|
|
375
339
|
|
|
376
340
|
/**
|
|
377
|
-
* @typedef
|
|
378
|
-
* @property {
|
|
379
|
-
* @property {
|
|
341
|
+
* @typedef OpeningClosing
|
|
342
|
+
* @property {number} [minute]
|
|
343
|
+
* @property {number} [hour]
|
|
380
344
|
*/
|
|
381
345
|
|
|
382
346
|
/**
|
|
383
|
-
* @typedef
|
|
384
|
-
* @property {
|
|
385
|
-
* @property {
|
|
347
|
+
* @typedef TimmingResponse
|
|
348
|
+
* @property {boolean} [open]
|
|
349
|
+
* @property {string} [weekday]
|
|
350
|
+
* @property {OpeningClosing} [closing]
|
|
351
|
+
* @property {OpeningClosing} [opening]
|
|
386
352
|
*/
|
|
387
353
|
|
|
388
354
|
/**
|
|
389
|
-
* @typedef
|
|
390
|
-
* @property {string} [
|
|
391
|
-
* @property {
|
|
392
|
-
* @property {
|
|
393
|
-
* @property {boolean}
|
|
394
|
-
* @property {ZoneMappingType[]} mapping
|
|
395
|
-
* @property {string} name
|
|
396
|
-
* @property {ZoneProductTypes} product
|
|
397
|
-
* @property {string} region_type
|
|
398
|
-
* @property {string} slug
|
|
399
|
-
* @property {number[]} store_ids
|
|
400
|
-
* @property {number} stores_count
|
|
401
|
-
* @property {string} zone_id
|
|
355
|
+
* @typedef DocumentsResponse
|
|
356
|
+
* @property {string} [legal_name]
|
|
357
|
+
* @property {string} [value]
|
|
358
|
+
* @property {string} [type]
|
|
359
|
+
* @property {boolean} [verified]
|
|
402
360
|
*/
|
|
403
361
|
|
|
404
362
|
/**
|
|
405
|
-
* @typedef
|
|
406
|
-
* @property {
|
|
407
|
-
* @property {
|
|
363
|
+
* @typedef Dp
|
|
364
|
+
* @property {number} [fm_priority]
|
|
365
|
+
* @property {number} [rvp_priority]
|
|
366
|
+
* @property {number} [lm_priority]
|
|
367
|
+
* @property {string} [internal_account_id]
|
|
368
|
+
* @property {number} [area_code]
|
|
369
|
+
* @property {string} [payment_mode]
|
|
370
|
+
* @property {string[]} [operations]
|
|
371
|
+
* @property {string} [external_account_id]
|
|
372
|
+
* @property {string} [transport_mode]
|
|
373
|
+
* @property {boolean} [assign_dp_from_sb]
|
|
408
374
|
*/
|
|
409
375
|
|
|
410
376
|
/**
|
|
411
|
-
* @typedef
|
|
412
|
-
* @property {
|
|
413
|
-
* @property {
|
|
414
|
-
* @property {number} [company_id]
|
|
415
|
-
* @property {boolean} is_active
|
|
416
|
-
* @property {ZoneMappingType[]} mapping
|
|
417
|
-
* @property {string} name
|
|
418
|
-
* @property {ZoneProductTypes} product
|
|
419
|
-
* @property {string} [region_type]
|
|
420
|
-
* @property {string} slug
|
|
421
|
-
* @property {number[]} store_ids
|
|
422
|
-
* @property {number} stores_count
|
|
423
|
-
* @property {string} zone_id
|
|
377
|
+
* @typedef LogisticsResponse
|
|
378
|
+
* @property {boolean} [override]
|
|
379
|
+
* @property {Dp} [dp]
|
|
424
380
|
*/
|
|
425
381
|
|
|
426
382
|
/**
|
|
427
|
-
* @typedef
|
|
428
|
-
* @property {
|
|
429
|
-
* @property {
|
|
383
|
+
* @typedef ItemResponse
|
|
384
|
+
* @property {string} [created_on]
|
|
385
|
+
* @property {ManagerResponse} [manager]
|
|
386
|
+
* @property {ModifiedByResponse} [modified_by]
|
|
387
|
+
* @property {IntegrationTypeResponse} [integration_type]
|
|
388
|
+
* @property {string} [verified_on]
|
|
389
|
+
* @property {ProductReturnConfigResponse} [product_return_config]
|
|
390
|
+
* @property {ContactNumberResponse[]} [contact_numbers]
|
|
391
|
+
* @property {ModifiedByResponse} [verified_by]
|
|
392
|
+
* @property {string} [stage]
|
|
393
|
+
* @property {AddressResponse} [address]
|
|
394
|
+
* @property {string} [modified_on]
|
|
395
|
+
* @property {CreatedByResponse} [created_by]
|
|
396
|
+
* @property {GstCredentialsResponse} [gst_credentials]
|
|
397
|
+
* @property {string} [display_name]
|
|
398
|
+
* @property {number} [company_id]
|
|
399
|
+
* @property {number} [uid]
|
|
400
|
+
* @property {Object} [_custom_json]
|
|
401
|
+
* @property {string} [code]
|
|
402
|
+
* @property {WarningsResponse} [warnings]
|
|
403
|
+
* @property {string} [name]
|
|
404
|
+
* @property {TimmingResponse[]} [timing]
|
|
405
|
+
* @property {DocumentsResponse[]} [documents]
|
|
406
|
+
* @property {string} [store_type]
|
|
407
|
+
* @property {string} [sub_type]
|
|
408
|
+
* @property {number} [company]
|
|
409
|
+
* @property {string} [_cls]
|
|
410
|
+
* @property {LogisticsResponse} [logistics]
|
|
411
|
+
* @property {string[]} [notification_emails]
|
|
430
412
|
*/
|
|
431
413
|
|
|
432
414
|
/**
|
|
433
|
-
* @typedef
|
|
434
|
-
* @property {
|
|
435
|
-
* @property {
|
|
415
|
+
* @typedef GetStoresViewResponse
|
|
416
|
+
* @property {ServiceabilityPageResponse} page
|
|
417
|
+
* @property {ItemResponse[]} [items]
|
|
436
418
|
*/
|
|
437
419
|
|
|
438
420
|
/**
|
|
439
|
-
* @typedef
|
|
440
|
-
* @property {string}
|
|
441
|
-
* @property {
|
|
421
|
+
* @typedef ReAssignStoreRequest
|
|
422
|
+
* @property {string} to_pincode
|
|
423
|
+
* @property {string} identifier
|
|
424
|
+
* @property {Object} configuration
|
|
425
|
+
* @property {string[]} ignored_locations
|
|
426
|
+
* @property {Object[]} articles
|
|
442
427
|
*/
|
|
443
428
|
|
|
444
429
|
/**
|
|
445
|
-
* @typedef
|
|
446
|
-
* @property {
|
|
447
|
-
* @property {
|
|
430
|
+
* @typedef ReAssignStoreResponse
|
|
431
|
+
* @property {string} to_pincode
|
|
432
|
+
* @property {boolean} success
|
|
433
|
+
* @property {Object} error
|
|
434
|
+
* @property {Object[]} [articles]
|
|
448
435
|
*/
|
|
449
436
|
|
|
450
437
|
/**
|
|
451
|
-
* @typedef
|
|
452
|
-
* @property {number
|
|
438
|
+
* @typedef ApplicationCompanyDpViewResponse
|
|
439
|
+
* @property {number} [courier_partner_id]
|
|
440
|
+
* @property {number} company_id
|
|
441
|
+
* @property {string} application_id
|
|
442
|
+
* @property {boolean} success
|
|
453
443
|
*/
|
|
454
444
|
|
|
455
445
|
/**
|
|
456
|
-
* @typedef
|
|
457
|
-
* @property {string} [
|
|
458
|
-
* @property {string} [order]
|
|
446
|
+
* @typedef ApplicationCompanyDpViewRequest
|
|
447
|
+
* @property {string} [dp_id]
|
|
459
448
|
*/
|
|
460
449
|
|
|
461
450
|
/**
|
|
462
|
-
* @typedef
|
|
463
|
-
* @property {
|
|
464
|
-
* @property {
|
|
465
|
-
* @property {
|
|
466
|
-
* @property {string} [code]
|
|
467
|
-
* @property {number} [company]
|
|
468
|
-
* @property {number} [company_id]
|
|
469
|
-
* @property {ContactNumberResponse[]} [contact_numbers]
|
|
470
|
-
* @property {CreatedByResponse} [created_by]
|
|
471
|
-
* @property {string} [created_on]
|
|
472
|
-
* @property {string} [display_name]
|
|
473
|
-
* @property {DocumentsResponse[]} [documents]
|
|
474
|
-
* @property {GstCredentialsResponse} [gst_credentials]
|
|
475
|
-
* @property {IntegrationTypeResponse} [integration_type]
|
|
476
|
-
* @property {LogisticsResponse} [logistics]
|
|
477
|
-
* @property {ManagerResponse} [manager]
|
|
478
|
-
* @property {ModifiedByResponse} [modified_by]
|
|
479
|
-
* @property {string} [modified_on]
|
|
480
|
-
* @property {string} [name]
|
|
481
|
-
* @property {string[]} [notification_emails]
|
|
482
|
-
* @property {ProductReturnConfigResponse} [product_return_config]
|
|
483
|
-
* @property {string} [stage]
|
|
484
|
-
* @property {string} [store_type]
|
|
485
|
-
* @property {string} [sub_type]
|
|
486
|
-
* @property {TimmingResponse[]} [timing]
|
|
487
|
-
* @property {number} [uid]
|
|
488
|
-
* @property {ModifiedByResponse} [verified_by]
|
|
489
|
-
* @property {string} [verified_on]
|
|
490
|
-
* @property {WarningsResponse} [warnings]
|
|
451
|
+
* @typedef PincodeMopData
|
|
452
|
+
* @property {number[]} pincodes
|
|
453
|
+
* @property {string} country
|
|
454
|
+
* @property {string} action
|
|
491
455
|
*/
|
|
492
456
|
|
|
493
457
|
/**
|
|
494
|
-
* @typedef
|
|
458
|
+
* @typedef PincodeMopUpdateResponse
|
|
459
|
+
* @property {number} pincode
|
|
495
460
|
* @property {string} channel_id
|
|
496
|
-
* @property {string}
|
|
497
|
-
*/
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* @typedef ListViewItems
|
|
501
|
-
* @property {ListViewChannels} channels
|
|
502
|
-
* @property {number} company_id
|
|
461
|
+
* @property {string} country
|
|
503
462
|
* @property {boolean} is_active
|
|
504
|
-
* @property {string} name
|
|
505
|
-
* @property {ListViewProduct} product
|
|
506
|
-
* @property {number} regions_count
|
|
507
|
-
* @property {string} slug
|
|
508
|
-
* @property {number} stores_count
|
|
509
|
-
* @property {string} zone_id
|
|
510
463
|
*/
|
|
511
464
|
|
|
512
465
|
/**
|
|
513
|
-
* @typedef
|
|
514
|
-
* @property {
|
|
515
|
-
* @property {
|
|
466
|
+
* @typedef PincodeMOPresponse
|
|
467
|
+
* @property {boolean} success
|
|
468
|
+
* @property {number} status_code
|
|
469
|
+
* @property {string} batch_id
|
|
470
|
+
* @property {string} country
|
|
471
|
+
* @property {string} action
|
|
472
|
+
* @property {number[]} [pincodes]
|
|
473
|
+
* @property {PincodeMopUpdateResponse[]} [updated_pincodes]
|
|
516
474
|
*/
|
|
517
475
|
|
|
518
476
|
/**
|
|
519
|
-
* @typedef
|
|
520
|
-
* @property {
|
|
521
|
-
* @property {
|
|
477
|
+
* @typedef CommonError
|
|
478
|
+
* @property {string} [status_code]
|
|
479
|
+
* @property {Object} [error]
|
|
480
|
+
* @property {string} [success]
|
|
522
481
|
*/
|
|
523
482
|
|
|
524
483
|
/**
|
|
525
|
-
* @typedef
|
|
526
|
-
* @property {
|
|
527
|
-
* @property {
|
|
528
|
-
* @property {number} total_zones
|
|
484
|
+
* @typedef PincodeMopBulkData
|
|
485
|
+
* @property {string} batch_id
|
|
486
|
+
* @property {string} s3_url
|
|
529
487
|
*/
|
|
530
488
|
|
|
531
489
|
/**
|
|
532
|
-
* @typedef
|
|
533
|
-
* @property {
|
|
534
|
-
* @property {string}
|
|
490
|
+
* @typedef PincodeBulkViewResponse
|
|
491
|
+
* @property {string} batch_id
|
|
492
|
+
* @property {string} s3_url
|
|
535
493
|
*/
|
|
536
494
|
|
|
537
495
|
/**
|
|
538
|
-
* @typedef
|
|
539
|
-
* @property {string} [
|
|
540
|
-
* @property {
|
|
541
|
-
* @property {
|
|
542
|
-
* @property {
|
|
543
|
-
* @property {
|
|
544
|
-
* @property {string} [sub_type]
|
|
496
|
+
* @typedef PincodeCodStatusListingRequest
|
|
497
|
+
* @property {string} [country]
|
|
498
|
+
* @property {boolean} [is_active]
|
|
499
|
+
* @property {number} [pincode]
|
|
500
|
+
* @property {number} [current]
|
|
501
|
+
* @property {number} [page_size]
|
|
545
502
|
*/
|
|
546
503
|
|
|
547
504
|
/**
|
|
548
|
-
* @typedef
|
|
549
|
-
* @property {
|
|
550
|
-
* @property {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
* @
|
|
555
|
-
* @property {string} [email]
|
|
556
|
-
* @property {MobileNo} [mobile_no]
|
|
557
|
-
* @property {string} [name]
|
|
558
|
-
*/
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* @typedef MobileNo
|
|
562
|
-
* @property {number} [country_code]
|
|
563
|
-
* @property {string} [number]
|
|
564
|
-
*/
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* @typedef ModifiedByResponse
|
|
568
|
-
* @property {string} [user_id]
|
|
569
|
-
* @property {string} [username]
|
|
505
|
+
* @typedef PincodeCodStatusListingResponse
|
|
506
|
+
* @property {string} country
|
|
507
|
+
* @property {PincodeCodStatusListingResponse[]} data
|
|
508
|
+
* @property {boolean} success
|
|
509
|
+
* @property {Error[]} [errors]
|
|
510
|
+
* @property {PincodeCodStatusListingPage} page
|
|
511
|
+
* @property {PincodeCodStatusListingSummary} summary
|
|
570
512
|
*/
|
|
571
513
|
|
|
572
514
|
/**
|
|
573
|
-
* @typedef
|
|
574
|
-
* @property {
|
|
575
|
-
* @property {
|
|
515
|
+
* @typedef Error
|
|
516
|
+
* @property {string} [type]
|
|
517
|
+
* @property {string} [value]
|
|
518
|
+
* @property {string} [message]
|
|
576
519
|
*/
|
|
577
520
|
|
|
578
521
|
/**
|
|
579
|
-
* @typedef
|
|
580
|
-
* @property {
|
|
581
|
-
* @property {
|
|
582
|
-
* @property {number}
|
|
583
|
-
* @property {number}
|
|
584
|
-
* @property {number}
|
|
585
|
-
* @property {number} [max_weight]
|
|
586
|
-
* @property {string[]} [media]
|
|
587
|
-
* @property {string} name
|
|
588
|
-
* @property {string} package_type
|
|
589
|
-
* @property {number} [package_vol_weight]
|
|
590
|
-
* @property {PackageMaterialRule[]} [rules]
|
|
591
|
-
* @property {string} size
|
|
592
|
-
* @property {string} status
|
|
593
|
-
* @property {number[]} store_ids
|
|
594
|
-
* @property {boolean} [track_inventory]
|
|
595
|
-
* @property {number} weight
|
|
596
|
-
* @property {number} width
|
|
522
|
+
* @typedef PincodeCodStatusListingPage
|
|
523
|
+
* @property {string} type
|
|
524
|
+
* @property {boolean} has_next
|
|
525
|
+
* @property {number} item_total
|
|
526
|
+
* @property {number} size
|
|
527
|
+
* @property {number} current
|
|
597
528
|
*/
|
|
598
529
|
|
|
599
530
|
/**
|
|
600
|
-
* @typedef
|
|
601
|
-
* @property {
|
|
602
|
-
* @property {
|
|
531
|
+
* @typedef PincodeCodStatusListingSummary
|
|
532
|
+
* @property {number} total_active_pincodes
|
|
533
|
+
* @property {number} total_inactive_pincodes
|
|
603
534
|
*/
|
|
604
535
|
|
|
605
536
|
/**
|
|
606
|
-
* @typedef
|
|
607
|
-
* @property {
|
|
608
|
-
* @property {
|
|
609
|
-
* @property {number} error_rate
|
|
610
|
-
* @property {number} height
|
|
611
|
-
* @property {string} [id]
|
|
612
|
-
* @property {number} [item_id]
|
|
613
|
-
* @property {number} length
|
|
614
|
-
* @property {number} [max_weight]
|
|
615
|
-
* @property {string[]} [media]
|
|
616
|
-
* @property {string} name
|
|
617
|
-
* @property {string} package_type
|
|
618
|
-
* @property {number} [package_vol_weight]
|
|
619
|
-
* @property {PackageMaterialRule[]} [rules]
|
|
620
|
-
* @property {string} size
|
|
621
|
-
* @property {string} status
|
|
622
|
-
* @property {number[]} store_ids
|
|
623
|
-
* @property {boolean} [track_inventory]
|
|
624
|
-
* @property {number} weight
|
|
625
|
-
* @property {number} width
|
|
537
|
+
* @typedef PincodeMopUpdateAuditHistoryRequest
|
|
538
|
+
* @property {string} entity_type
|
|
539
|
+
* @property {string} [file_name]
|
|
626
540
|
*/
|
|
627
541
|
|
|
628
542
|
/**
|
|
629
|
-
* @typedef
|
|
630
|
-
* @property {
|
|
631
|
-
* @property {
|
|
632
|
-
* @property {number} [
|
|
543
|
+
* @typedef PincodeMopUpdateAuditHistoryPaging
|
|
544
|
+
* @property {string} [type]
|
|
545
|
+
* @property {number} [size]
|
|
546
|
+
* @property {number} [current]
|
|
547
|
+
* @property {boolean} [has_next]
|
|
548
|
+
* @property {number} [item_total]
|
|
633
549
|
*/
|
|
634
550
|
|
|
635
551
|
/**
|
|
636
|
-
* @typedef
|
|
637
|
-
* @property {
|
|
638
|
-
* @property {
|
|
552
|
+
* @typedef PincodeMopUpdateAuditHistoryResponse
|
|
553
|
+
* @property {string} [batch_id]
|
|
554
|
+
* @property {string} [entity_type]
|
|
555
|
+
* @property {string} [error_file_s3_url]
|
|
556
|
+
* @property {string} [s3_url]
|
|
557
|
+
* @property {string} [file_name]
|
|
558
|
+
* @property {string} [updated_at]
|
|
559
|
+
* @property {string} [updated_by]
|
|
560
|
+
* @property {boolean} [success]
|
|
639
561
|
*/
|
|
640
562
|
|
|
641
563
|
/**
|
|
642
|
-
* @typedef
|
|
643
|
-
* @property {
|
|
644
|
-
* @property {
|
|
564
|
+
* @typedef PincodeMopUpdateAuditHistoryResponseData
|
|
565
|
+
* @property {string} [entity_type]
|
|
566
|
+
* @property {PincodeMopUpdateAuditHistoryPaging} page
|
|
567
|
+
* @property {PincodeMopUpdateAuditHistoryResponse[]} data
|
|
645
568
|
*/
|
|
646
569
|
|
|
647
570
|
/**
|
|
648
|
-
* @typedef
|
|
649
|
-
* @property {
|
|
650
|
-
* @property {number} company_id
|
|
651
|
-
* @property {boolean} [is_active]
|
|
571
|
+
* @typedef Dp1
|
|
572
|
+
* @property {boolean} is_self_ship
|
|
652
573
|
* @property {string} name
|
|
653
|
-
* @property {
|
|
654
|
-
* @property {
|
|
655
|
-
* @property {string}
|
|
574
|
+
* @property {string} plan_id
|
|
575
|
+
* @property {string} stage
|
|
576
|
+
* @property {string} account_id
|
|
577
|
+
* @property {string} dp_id
|
|
578
|
+
* @property {Object} plan_rules
|
|
656
579
|
*/
|
|
657
580
|
|
|
658
581
|
/**
|
|
659
|
-
* @typedef
|
|
660
|
-
* @property {
|
|
582
|
+
* @typedef CompanyDpAccountRequest
|
|
583
|
+
* @property {Dp1[]} data
|
|
661
584
|
*/
|
|
662
585
|
|
|
663
586
|
/**
|
|
664
|
-
* @typedef
|
|
665
|
-
* @property {
|
|
587
|
+
* @typedef CompanyDpAccountResponse
|
|
588
|
+
* @property {boolean} success
|
|
666
589
|
*/
|
|
667
590
|
|
|
668
591
|
/**
|
|
669
|
-
* @typedef
|
|
670
|
-
* @property {string
|
|
592
|
+
* @typedef ErrorResponse
|
|
593
|
+
* @property {string} message
|
|
594
|
+
* @property {string} value
|
|
595
|
+
* @property {string} type
|
|
671
596
|
*/
|
|
672
597
|
|
|
673
598
|
/**
|
|
674
|
-
* @typedef
|
|
675
|
-
* @property {
|
|
676
|
-
* @property {
|
|
677
|
-
* @property {
|
|
678
|
-
* @property {boolean} [is_active]
|
|
679
|
-
* @property {string} name
|
|
680
|
-
* @property {PackageRuleProduct} [product_id]
|
|
681
|
-
* @property {PackageRuleProductTag} [product_tag]
|
|
682
|
-
* @property {string} type
|
|
599
|
+
* @typedef DpAccountFailureResponse
|
|
600
|
+
* @property {number} status_code
|
|
601
|
+
* @property {ErrorResponse[]} error
|
|
602
|
+
* @property {boolean} success
|
|
683
603
|
*/
|
|
684
604
|
|
|
685
605
|
/**
|
|
686
606
|
* @typedef Page
|
|
687
|
-
* @property {number} [current]
|
|
688
|
-
* @property {boolean} [has_next]
|
|
689
|
-
* @property {boolean} [has_previous]
|
|
690
607
|
* @property {number} [item_total]
|
|
691
608
|
* @property {string} [next_id]
|
|
692
|
-
* @property {
|
|
693
|
-
* @property {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* @typedef PageSchema
|
|
698
|
-
* @property {number} current
|
|
699
|
-
* @property {boolean} has_next
|
|
700
|
-
* @property {number} item_total
|
|
701
|
-
* @property {number} size
|
|
609
|
+
* @property {boolean} [has_previous]
|
|
610
|
+
* @property {boolean} [has_next]
|
|
611
|
+
* @property {number} [current]
|
|
702
612
|
* @property {string} type
|
|
613
|
+
* @property {number} [size]
|
|
703
614
|
*/
|
|
704
615
|
|
|
705
616
|
/**
|
|
706
|
-
* @typedef
|
|
707
|
-
* @property {
|
|
708
|
-
* @property {
|
|
617
|
+
* @typedef CompanyDpAccountListResponse
|
|
618
|
+
* @property {boolean} success
|
|
619
|
+
* @property {Page} page
|
|
620
|
+
* @property {Dp1[]} items
|
|
709
621
|
*/
|
|
710
622
|
|
|
711
623
|
/**
|
|
712
|
-
* @typedef
|
|
713
|
-
* @property {
|
|
714
|
-
* @property {
|
|
715
|
-
* @property {
|
|
716
|
-
* @property {
|
|
717
|
-
* @property {string} type
|
|
624
|
+
* @typedef DpRulesUpdateRequest
|
|
625
|
+
* @property {boolean} is_active
|
|
626
|
+
* @property {Object[]} conditions
|
|
627
|
+
* @property {Object} dp_ids
|
|
628
|
+
* @property {string} name
|
|
718
629
|
*/
|
|
719
630
|
|
|
720
631
|
/**
|
|
721
|
-
* @typedef
|
|
722
|
-
* @property {string} [
|
|
723
|
-
* @property {
|
|
632
|
+
* @typedef DpRuleResponse
|
|
633
|
+
* @property {string} [created_on]
|
|
634
|
+
* @property {string} name
|
|
635
|
+
* @property {Object} [modified_by]
|
|
636
|
+
* @property {Object} dp_ids
|
|
724
637
|
* @property {boolean} [is_active]
|
|
725
|
-
* @property {
|
|
726
|
-
* @property {
|
|
638
|
+
* @property {string} [modified_on]
|
|
639
|
+
* @property {string} uid
|
|
640
|
+
* @property {Object} [created_by]
|
|
641
|
+
* @property {number} company_id
|
|
642
|
+
* @property {string[]} conditions
|
|
727
643
|
*/
|
|
728
644
|
|
|
729
645
|
/**
|
|
730
|
-
* @typedef
|
|
731
|
-
* @property {
|
|
732
|
-
* @property {
|
|
733
|
-
* @property {Error[]} [errors]
|
|
734
|
-
* @property {PincodeCodStatusListingPage} page
|
|
646
|
+
* @typedef DpRuleUpdateSuccessResponse
|
|
647
|
+
* @property {number} status_code
|
|
648
|
+
* @property {DpRuleResponse} data
|
|
735
649
|
* @property {boolean} success
|
|
736
|
-
* @property {PincodeCodStatusListingSummary} summary
|
|
737
|
-
*/
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* @typedef PincodeCodStatusListingSummary
|
|
741
|
-
* @property {number} total_active_pincodes
|
|
742
|
-
* @property {number} total_inactive_pincodes
|
|
743
|
-
*/
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* @typedef PincodeMopBulkData
|
|
747
|
-
* @property {string} batch_id
|
|
748
|
-
* @property {string} s3_url
|
|
749
|
-
*/
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* @typedef PincodeMopData
|
|
753
|
-
* @property {string} action
|
|
754
|
-
* @property {string} country
|
|
755
|
-
* @property {number[]} pincodes
|
|
756
650
|
*/
|
|
757
651
|
|
|
758
652
|
/**
|
|
759
|
-
* @typedef
|
|
760
|
-
* @property {string} action
|
|
761
|
-
* @property {string} batch_id
|
|
762
|
-
* @property {string} country
|
|
763
|
-
* @property {number[]} [pincodes]
|
|
653
|
+
* @typedef FailureResponse
|
|
764
654
|
* @property {number} status_code
|
|
655
|
+
* @property {ErrorResponse[]} error
|
|
765
656
|
* @property {boolean} success
|
|
766
|
-
* @property {PincodeMopUpdateResponse[]} [updated_pincodes]
|
|
767
|
-
*/
|
|
768
|
-
|
|
769
|
-
/**
|
|
770
|
-
* @typedef PincodeMopUpdateAuditHistoryPaging
|
|
771
|
-
* @property {number} [current]
|
|
772
|
-
* @property {boolean} [has_next]
|
|
773
|
-
* @property {number} [item_total]
|
|
774
|
-
* @property {number} [size]
|
|
775
|
-
* @property {string} [type]
|
|
776
|
-
*/
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* @typedef PincodeMopUpdateAuditHistoryRequest
|
|
780
|
-
* @property {string} entity_type
|
|
781
|
-
* @property {string} [file_name]
|
|
782
657
|
*/
|
|
783
658
|
|
|
784
659
|
/**
|
|
785
|
-
* @typedef
|
|
786
|
-
* @property {
|
|
787
|
-
* @property {string}
|
|
788
|
-
* @property {string}
|
|
789
|
-
* @property {string}
|
|
790
|
-
* @property {string}
|
|
791
|
-
* @property {
|
|
792
|
-
* @property {string}
|
|
793
|
-
* @property {
|
|
660
|
+
* @typedef DpSchemaInRuleListing
|
|
661
|
+
* @property {boolean} is_self_ship
|
|
662
|
+
* @property {string} name
|
|
663
|
+
* @property {string} plan_id
|
|
664
|
+
* @property {string} stage
|
|
665
|
+
* @property {string} account_id
|
|
666
|
+
* @property {number} priority
|
|
667
|
+
* @property {string} dp_id
|
|
668
|
+
* @property {Object} plan_rules
|
|
794
669
|
*/
|
|
795
670
|
|
|
796
671
|
/**
|
|
797
|
-
* @typedef
|
|
798
|
-
* @property {
|
|
799
|
-
* @property {
|
|
800
|
-
* @property {
|
|
672
|
+
* @typedef DpRule
|
|
673
|
+
* @property {string} name
|
|
674
|
+
* @property {Object} dp_ids
|
|
675
|
+
* @property {boolean} [is_active]
|
|
676
|
+
* @property {number} [company_id]
|
|
677
|
+
* @property {Object[]} conditions
|
|
801
678
|
*/
|
|
802
679
|
|
|
803
680
|
/**
|
|
804
|
-
* @typedef
|
|
805
|
-
* @property {
|
|
806
|
-
* @property {
|
|
807
|
-
* @property {boolean}
|
|
808
|
-
* @property {number} pincode
|
|
681
|
+
* @typedef DpRuleSuccessResponse
|
|
682
|
+
* @property {number} status_code
|
|
683
|
+
* @property {DpRule} data
|
|
684
|
+
* @property {boolean} success
|
|
809
685
|
*/
|
|
810
686
|
|
|
811
687
|
/**
|
|
812
|
-
* @typedef
|
|
813
|
-
* @property {boolean}
|
|
688
|
+
* @typedef DpIds
|
|
689
|
+
* @property {boolean} enabled
|
|
690
|
+
* @property {number} priority
|
|
691
|
+
* @property {Object} [meta]
|
|
814
692
|
*/
|
|
815
693
|
|
|
816
694
|
/**
|
|
817
|
-
* @typedef
|
|
818
|
-
* @property {
|
|
819
|
-
* @property {Object}
|
|
820
|
-
* @property {
|
|
821
|
-
* @property {
|
|
822
|
-
* @property {
|
|
695
|
+
* @typedef DpRuleRequest
|
|
696
|
+
* @property {string} name
|
|
697
|
+
* @property {Object} dp_ids
|
|
698
|
+
* @property {boolean} [is_active]
|
|
699
|
+
* @property {number} [company_id]
|
|
700
|
+
* @property {Object[]} conditions
|
|
823
701
|
*/
|
|
824
702
|
|
|
825
703
|
/**
|
|
826
|
-
* @typedef
|
|
827
|
-
* @property {Object[]} [articles]
|
|
828
|
-
* @property {Object} error
|
|
704
|
+
* @typedef DpMultipleRuleSuccessResponse
|
|
829
705
|
* @property {boolean} success
|
|
830
|
-
* @property {
|
|
706
|
+
* @property {Page} page
|
|
707
|
+
* @property {DpRule[]} items
|
|
831
708
|
*/
|
|
832
709
|
|
|
833
710
|
/**
|
|
834
|
-
* @typedef
|
|
835
|
-
* @property {
|
|
836
|
-
* @property {string} rule_id
|
|
711
|
+
* @typedef DPCompanyRuleRequest
|
|
712
|
+
* @property {string[]} rule_ids
|
|
837
713
|
*/
|
|
838
714
|
|
|
839
715
|
/**
|
|
840
|
-
* @typedef
|
|
841
|
-
* @property {
|
|
716
|
+
* @typedef DPCompanyRuleResponse
|
|
717
|
+
* @property {number} status_code
|
|
718
|
+
* @property {DpRuleResponse[]} data
|
|
719
|
+
* @property {boolean} success
|
|
842
720
|
*/
|
|
843
721
|
|
|
844
722
|
/**
|
|
845
|
-
* @typedef
|
|
846
|
-
* @property {
|
|
847
|
-
* @property {string[]} [payment_mode]
|
|
848
|
-
* @property {string} [region]
|
|
849
|
-
* @property {string[]} [transport_type]
|
|
850
|
-
* @property {ArithmeticOperations} [weight]
|
|
723
|
+
* @typedef DPApplicationRuleRequest
|
|
724
|
+
* @property {string[]} shipping_rules
|
|
851
725
|
*/
|
|
852
726
|
|
|
853
727
|
/**
|
|
854
|
-
* @typedef
|
|
855
|
-
* @property {boolean}
|
|
856
|
-
* @property {
|
|
857
|
-
* @property {boolean}
|
|
858
|
-
* @property {boolean} [hazmat]
|
|
859
|
-
* @property {boolean} [multi_part_shipments]
|
|
860
|
-
* @property {boolean} [quality_check]
|
|
861
|
-
* @property {boolean} [quick_response_code]
|
|
728
|
+
* @typedef DPApplicationRuleResponse
|
|
729
|
+
* @property {boolean} status_code
|
|
730
|
+
* @property {DpRuleResponse[]} data
|
|
731
|
+
* @property {boolean} success
|
|
862
732
|
*/
|
|
863
733
|
|
|
864
734
|
/**
|
|
@@ -868,239 +738,31 @@ const Joi = require("joi");
|
|
|
868
738
|
*/
|
|
869
739
|
|
|
870
740
|
/**
|
|
871
|
-
* @typedef
|
|
872
|
-
* @property {
|
|
873
|
-
* @property {string} type
|
|
874
|
-
* @property {string} value
|
|
875
|
-
*/
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* @typedef ServiceabilityModel
|
|
879
|
-
* @property {boolean} is_first_mile
|
|
880
|
-
* @property {boolean} is_installation
|
|
881
|
-
* @property {boolean} is_last_mile
|
|
882
|
-
* @property {boolean} is_qc
|
|
883
|
-
* @property {boolean} is_return
|
|
884
|
-
* @property {number} lm_cod_limit
|
|
885
|
-
* @property {string} pickup_cutoff
|
|
886
|
-
* @property {string} route_code
|
|
741
|
+
* @typedef ApplicationSelfShipConfig
|
|
742
|
+
* @property {Object} [self_ship]
|
|
887
743
|
*/
|
|
888
744
|
|
|
889
745
|
/**
|
|
890
|
-
* @typedef
|
|
891
|
-
* @property {
|
|
892
|
-
* @property {
|
|
893
|
-
* @property {
|
|
894
|
-
* @property {number} [size]
|
|
895
|
-
* @property {string} [type]
|
|
746
|
+
* @typedef ApplicationSelfShipConfigResponse
|
|
747
|
+
* @property {ServiceabilityErrorResponse} [error]
|
|
748
|
+
* @property {ApplicationSelfShipConfig} [data]
|
|
749
|
+
* @property {boolean} success
|
|
896
750
|
*/
|
|
897
751
|
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
752
|
+
class ServiceabilityPlatformModel {
|
|
753
|
+
/** @returns {ServiceabilityPayloadSchema} */
|
|
754
|
+
static ServiceabilityPayloadSchema() {
|
|
755
|
+
return Joi.object({
|
|
756
|
+
serviceability_type: Joi.string().allow("").required(),
|
|
757
|
+
});
|
|
758
|
+
}
|
|
903
759
|
|
|
904
|
-
/**
|
|
905
|
-
|
|
906
|
-
* @property {IntComparisonOperations} [brand_ids]
|
|
907
|
-
* @property {IntComparisonOperations} [category_ids]
|
|
908
|
-
* @property {CustomerRadiusSchema} [customer_radius]
|
|
909
|
-
* @property {IntComparisonOperations} [department_ids]
|
|
910
|
-
* @property {ArithmeticOperations} [order_place_date]
|
|
911
|
-
* @property {IntComparisonOperations} [product_ids]
|
|
912
|
-
* @property {StringComparisonOperations} [product_tags]
|
|
913
|
-
* @property {StringComparisonOperations} [store_tags]
|
|
914
|
-
* @property {StringComparisonOperations} [store_type]
|
|
915
|
-
* @property {LocationRule} [to_location]
|
|
916
|
-
* @property {StringComparisonOperations} [zone_ids]
|
|
917
|
-
*/
|
|
918
|
-
|
|
919
|
-
/**
|
|
920
|
-
* @typedef StoreRuleConfigData
|
|
921
|
-
* @property {string[]} [rule_ids]
|
|
922
|
-
* @property {string[]} [sort]
|
|
923
|
-
* @property {StorePrioritySchema[]} [store_priority]
|
|
924
|
-
* @property {string[]} [tag_based_priority]
|
|
925
|
-
* @property {string[]} [type_based_priority]
|
|
926
|
-
*/
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
* @typedef StoreRuleDataSchema
|
|
930
|
-
* @property {string} [application_id]
|
|
931
|
-
* @property {number} [company_id]
|
|
932
|
-
* @property {StoreRuleConditionSchema} [conditions]
|
|
933
|
-
* @property {string} [id]
|
|
934
|
-
* @property {boolean} [is_active]
|
|
935
|
-
* @property {string} [name]
|
|
936
|
-
* @property {string[]} [sort]
|
|
937
|
-
* @property {StorePrioritySchema[]} [store_priority]
|
|
938
|
-
* @property {string[]} [tag_based_priority]
|
|
939
|
-
* @property {string[]} [type_based_priority]
|
|
940
|
-
*/
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* @typedef StoreRuleResponseSchema
|
|
944
|
-
* @property {StoreRuleConditionSchema} [conditions]
|
|
945
|
-
* @property {string} [id]
|
|
946
|
-
* @property {boolean} [is_active]
|
|
947
|
-
* @property {string} [name]
|
|
948
|
-
* @property {string[]} [sort]
|
|
949
|
-
* @property {StorePrioritySchema[]} [store_priority]
|
|
950
|
-
* @property {string[]} [tag_based_priority]
|
|
951
|
-
* @property {string} [type]
|
|
952
|
-
* @property {string[]} [type_based_priority]
|
|
953
|
-
*/
|
|
954
|
-
|
|
955
|
-
/**
|
|
956
|
-
* @typedef StoreRuleUpdateResponseSchema
|
|
957
|
-
* @property {string} [application_id]
|
|
958
|
-
* @property {number} [company_id]
|
|
959
|
-
* @property {StoreRuleConditionSchema} [conditions]
|
|
960
|
-
* @property {string} [id]
|
|
961
|
-
* @property {boolean} [is_active]
|
|
962
|
-
* @property {string} [name]
|
|
963
|
-
* @property {string[]} [sort]
|
|
964
|
-
* @property {StorePrioritySchema[]} [store_priority]
|
|
965
|
-
* @property {string[]} [tag_based_priority]
|
|
966
|
-
* @property {string} [type]
|
|
967
|
-
* @property {string[]} [type_based_priority]
|
|
968
|
-
*/
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* @typedef StringComparisonOperations
|
|
972
|
-
* @property {string[]} [includes]
|
|
973
|
-
*/
|
|
974
|
-
|
|
975
|
-
/**
|
|
976
|
-
* @typedef TimmingResponse
|
|
977
|
-
* @property {OpeningClosing} [closing]
|
|
978
|
-
* @property {boolean} [open]
|
|
979
|
-
* @property {OpeningClosing} [opening]
|
|
980
|
-
* @property {string} [weekday]
|
|
981
|
-
*/
|
|
982
|
-
|
|
983
|
-
/**
|
|
984
|
-
* @typedef UpdateZoneConfigRequest
|
|
985
|
-
* @property {string} [serviceability_type]
|
|
986
|
-
*/
|
|
987
|
-
|
|
988
|
-
/**
|
|
989
|
-
* @typedef UpdateZoneData
|
|
990
|
-
* @property {string} [assignment_preference]
|
|
991
|
-
* @property {GetZoneDataViewChannels[]} channels
|
|
992
|
-
* @property {number} company_id
|
|
993
|
-
* @property {boolean} is_active
|
|
994
|
-
* @property {ZoneMappingType[]} mapping
|
|
995
|
-
* @property {string} name
|
|
996
|
-
* @property {ZoneProductTypes} product
|
|
997
|
-
* @property {string} region_type
|
|
998
|
-
* @property {string} slug
|
|
999
|
-
* @property {number[]} store_ids
|
|
1000
|
-
* @property {string} zone_id
|
|
1001
|
-
*/
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* @typedef WarningsResponse
|
|
1005
|
-
* @property {string} [store_address]
|
|
1006
|
-
*/
|
|
1007
|
-
|
|
1008
|
-
/**
|
|
1009
|
-
* @typedef Zone
|
|
1010
|
-
* @property {string} assignment_preference
|
|
1011
|
-
* @property {boolean} is_active
|
|
1012
|
-
* @property {string} name
|
|
1013
|
-
* @property {string} slug
|
|
1014
|
-
* @property {number[]} store_ids
|
|
1015
|
-
* @property {string[]} tags
|
|
1016
|
-
* @property {string} type
|
|
1017
|
-
* @property {string} zone_id
|
|
1018
|
-
*/
|
|
1019
|
-
|
|
1020
|
-
/**
|
|
1021
|
-
* @typedef ZoneConfig
|
|
1022
|
-
* @property {string} [serviceability_type]
|
|
1023
|
-
*/
|
|
1024
|
-
|
|
1025
|
-
/**
|
|
1026
|
-
* @typedef ZoneDataItem
|
|
1027
|
-
* @property {number} current
|
|
1028
|
-
* @property {boolean} has_next
|
|
1029
|
-
* @property {number} item_total
|
|
1030
|
-
* @property {number} size
|
|
1031
|
-
* @property {string} type
|
|
1032
|
-
*/
|
|
1033
|
-
|
|
1034
|
-
/**
|
|
1035
|
-
* @typedef ZoneMappingType
|
|
1036
|
-
* @property {string} country
|
|
1037
|
-
* @property {string[]} [pincode]
|
|
1038
|
-
* @property {string[]} [state]
|
|
1039
|
-
*/
|
|
1040
|
-
|
|
1041
|
-
/**
|
|
1042
|
-
* @typedef ZoneProductTypes
|
|
1043
|
-
* @property {string[]} tags
|
|
1044
|
-
* @property {string} type
|
|
1045
|
-
*/
|
|
1046
|
-
|
|
1047
|
-
/**
|
|
1048
|
-
* @typedef ZoneResponse
|
|
1049
|
-
* @property {number} status_code
|
|
1050
|
-
* @property {boolean} success
|
|
1051
|
-
* @property {string} zone_id
|
|
1052
|
-
*/
|
|
1053
|
-
|
|
1054
|
-
/**
|
|
1055
|
-
* @typedef ZoneSuccessResponse
|
|
1056
|
-
* @property {number} status_code
|
|
1057
|
-
* @property {boolean} success
|
|
1058
|
-
*/
|
|
1059
|
-
|
|
1060
|
-
/**
|
|
1061
|
-
* @typedef ZoneUpdateRequest
|
|
1062
|
-
* @property {UpdateZoneData} data
|
|
1063
|
-
* @property {string} identifier
|
|
1064
|
-
*/
|
|
1065
|
-
|
|
1066
|
-
class ServiceabilityPlatformModel {
|
|
1067
|
-
/** @returns {AddressResponse} */
|
|
1068
|
-
static AddressResponse() {
|
|
1069
|
-
return Joi.object({
|
|
1070
|
-
address1: Joi.string().allow(""),
|
|
1071
|
-
address2: Joi.string().allow(""),
|
|
1072
|
-
city: Joi.string().allow(""),
|
|
1073
|
-
country: Joi.string().allow(""),
|
|
1074
|
-
landmark: Joi.string().allow(""),
|
|
1075
|
-
latitude: Joi.number(),
|
|
1076
|
-
longitude: Joi.number(),
|
|
1077
|
-
pincode: Joi.number(),
|
|
1078
|
-
state: Joi.string().allow(""),
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
/** @returns {ApplicationConfig} */
|
|
1083
|
-
static ApplicationConfig() {
|
|
1084
|
-
return Joi.object({
|
|
1085
|
-
rule_ids: Joi.array().items(Joi.string().allow("")),
|
|
1086
|
-
sort: Joi.array().items(Joi.string().allow("")),
|
|
1087
|
-
zones: ServiceabilityPlatformModel.ZoneConfig(),
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
/** @returns {ApplicationSelfShipConfig} */
|
|
1092
|
-
static ApplicationSelfShipConfig() {
|
|
1093
|
-
return Joi.object({
|
|
1094
|
-
self_ship: Joi.any().allow(null),
|
|
1095
|
-
});
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
/** @returns {ApplicationSelfShipConfigResponse} */
|
|
1099
|
-
static ApplicationSelfShipConfigResponse() {
|
|
760
|
+
/** @returns {ServiceabilityErrorResponse} */
|
|
761
|
+
static ServiceabilityErrorResponse() {
|
|
1100
762
|
return Joi.object({
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
763
|
+
message: Joi.string().allow("").required(),
|
|
764
|
+
value: Joi.string().allow("").required(),
|
|
765
|
+
type: Joi.string().allow("").required(),
|
|
1104
766
|
});
|
|
1105
767
|
}
|
|
1106
768
|
|
|
@@ -1108,528 +770,281 @@ class ServiceabilityPlatformModel {
|
|
|
1108
770
|
static ApplicationServiceabilityConfig() {
|
|
1109
771
|
return Joi.object({
|
|
1110
772
|
channel_id: Joi.string().allow("").required(),
|
|
1111
|
-
channel_type: Joi.string().allow("").required(),
|
|
1112
773
|
serviceability_type: Joi.string().allow("").required(),
|
|
774
|
+
channel_type: Joi.string().allow("").required(),
|
|
1113
775
|
});
|
|
1114
776
|
}
|
|
1115
777
|
|
|
1116
778
|
/** @returns {ApplicationServiceabilityConfigResponse} */
|
|
1117
779
|
static ApplicationServiceabilityConfigResponse() {
|
|
1118
780
|
return Joi.object({
|
|
1119
|
-
data: ServiceabilityPlatformModel.ApplicationServiceabilityConfig(),
|
|
1120
781
|
error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
|
|
782
|
+
data: ServiceabilityPlatformModel.ApplicationServiceabilityConfig(),
|
|
1121
783
|
success: Joi.boolean().required(),
|
|
1122
784
|
});
|
|
1123
785
|
}
|
|
1124
786
|
|
|
1125
|
-
/** @returns {
|
|
1126
|
-
static
|
|
1127
|
-
return Joi.object({
|
|
1128
|
-
gt: Joi.number(),
|
|
1129
|
-
gte: Joi.number(),
|
|
1130
|
-
lt: Joi.number(),
|
|
1131
|
-
lte: Joi.number(),
|
|
1132
|
-
});
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
/** @returns {BulkRegionJobSerializer} */
|
|
1136
|
-
static BulkRegionJobSerializer() {
|
|
1137
|
-
return Joi.object({
|
|
1138
|
-
action: Joi.string().allow("").required(),
|
|
1139
|
-
country: Joi.string().allow("").required(),
|
|
1140
|
-
file_path: Joi.string().allow(""),
|
|
1141
|
-
region: Joi.string().allow("").required(),
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
/** @returns {BulkRegionResponse} */
|
|
1146
|
-
static BulkRegionResponse() {
|
|
1147
|
-
return Joi.object({
|
|
1148
|
-
items: Joi.array()
|
|
1149
|
-
.items(ServiceabilityPlatformModel.BulkRegionResponseItemData())
|
|
1150
|
-
.required(),
|
|
1151
|
-
page: ServiceabilityPlatformModel.Page().required(),
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
/** @returns {BulkRegionResponseItemData} */
|
|
1156
|
-
static BulkRegionResponseItemData() {
|
|
787
|
+
/** @returns {EntityRegionView_Request} */
|
|
788
|
+
static EntityRegionView_Request() {
|
|
1157
789
|
return Joi.object({
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
country: Joi.string().allow("").required(),
|
|
1161
|
-
error_file_path: Joi.string().allow(""),
|
|
1162
|
-
failed: Joi.number(),
|
|
1163
|
-
failed_records: Joi.array().items(Joi.any()),
|
|
1164
|
-
file_path: Joi.string().allow("").required(),
|
|
1165
|
-
region: Joi.string().allow("").required(),
|
|
1166
|
-
status: Joi.string().allow("").required(),
|
|
1167
|
-
success: Joi.number(),
|
|
1168
|
-
total: Joi.number(),
|
|
790
|
+
sub_type: Joi.array().items(Joi.string().allow("")).required(),
|
|
791
|
+
parent_id: Joi.array().items(Joi.string().allow("")),
|
|
1169
792
|
});
|
|
1170
793
|
}
|
|
1171
794
|
|
|
1172
|
-
/** @returns {
|
|
1173
|
-
static
|
|
795
|
+
/** @returns {EntityRegionView_Error} */
|
|
796
|
+
static EntityRegionView_Error() {
|
|
1174
797
|
return Joi.object({
|
|
1175
|
-
|
|
798
|
+
message: Joi.string().allow(""),
|
|
799
|
+
value: Joi.string().allow(""),
|
|
1176
800
|
type: Joi.string().allow(""),
|
|
1177
801
|
});
|
|
1178
802
|
}
|
|
1179
803
|
|
|
1180
|
-
/** @returns {
|
|
1181
|
-
static
|
|
1182
|
-
return Joi.object({
|
|
1183
|
-
error: Joi.any(),
|
|
1184
|
-
status_code: Joi.string().allow(""),
|
|
1185
|
-
success: Joi.string().allow(""),
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
/** @returns {CompanyConfig} */
|
|
1190
|
-
static CompanyConfig() {
|
|
1191
|
-
return Joi.object({
|
|
1192
|
-
logistics_as_actual: Joi.boolean(),
|
|
1193
|
-
rule_ids: Joi.array().items(Joi.string().allow("")).required(),
|
|
1194
|
-
sort: Joi.array().items(Joi.string().allow("")).required(),
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
/** @returns {CompanyCourierPartnerAccountListResponse} */
|
|
1199
|
-
static CompanyCourierPartnerAccountListResponse() {
|
|
1200
|
-
return Joi.object({
|
|
1201
|
-
items: Joi.array()
|
|
1202
|
-
.items(ServiceabilityPlatformModel.CourierAccountResponse())
|
|
1203
|
-
.required(),
|
|
1204
|
-
page: ServiceabilityPlatformModel.Page().required(),
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
/** @returns {CompanyStoreView_PageItems} */
|
|
1209
|
-
static CompanyStoreView_PageItems() {
|
|
804
|
+
/** @returns {EntityRegionView_page} */
|
|
805
|
+
static EntityRegionView_page() {
|
|
1210
806
|
return Joi.object({
|
|
1211
|
-
|
|
807
|
+
type: Joi.string().allow("").required(),
|
|
1212
808
|
has_next: Joi.boolean().required(),
|
|
1213
809
|
item_total: Joi.number().required(),
|
|
1214
810
|
size: Joi.number().required(),
|
|
1215
|
-
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
/** @returns {CompanyStoreView_Response} */
|
|
1220
|
-
static CompanyStoreView_Response() {
|
|
1221
|
-
return Joi.object({
|
|
1222
|
-
items: Joi.array().items(Joi.any()),
|
|
1223
|
-
page: Joi.array()
|
|
1224
|
-
.items(ServiceabilityPlatformModel.CompanyStoreView_PageItems())
|
|
1225
|
-
.required(),
|
|
1226
|
-
});
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
/** @returns {ContactNumberResponse} */
|
|
1230
|
-
static ContactNumberResponse() {
|
|
1231
|
-
return Joi.object({
|
|
1232
|
-
country_code: Joi.number(),
|
|
1233
|
-
number: Joi.string().allow(""),
|
|
1234
|
-
});
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
/** @returns {CourierAccount} */
|
|
1238
|
-
static CourierAccount() {
|
|
1239
|
-
return Joi.object({
|
|
1240
|
-
account_id: Joi.string().allow("").required(),
|
|
1241
|
-
extension_id: Joi.string().allow("").required(),
|
|
1242
|
-
is_own_account: Joi.boolean().required(),
|
|
1243
|
-
is_self_ship: Joi.boolean().required(),
|
|
1244
|
-
scheme_id: Joi.string().allow("").required(),
|
|
1245
|
-
stage: Joi.string().allow("").required(),
|
|
1246
|
-
});
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
/** @returns {CourierAccountResponse} */
|
|
1250
|
-
static CourierAccountResponse() {
|
|
1251
|
-
return Joi.object({
|
|
1252
|
-
account_id: Joi.string().allow("").required(),
|
|
1253
|
-
is_own_account: Joi.boolean().required(),
|
|
1254
|
-
is_self_ship: Joi.boolean().required(),
|
|
1255
|
-
scheme_id: Joi.string().allow("").required(),
|
|
1256
|
-
scheme_rules: ServiceabilityPlatformModel.CourierPartnerSchemeModel().required(),
|
|
1257
|
-
stage: Joi.string().allow("").required(),
|
|
1258
|
-
});
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
/** @returns {CourierPartnerAccountFailureResponse} */
|
|
1262
|
-
static CourierPartnerAccountFailureResponse() {
|
|
1263
|
-
return Joi.object({
|
|
1264
|
-
error: Joi.array()
|
|
1265
|
-
.items(ServiceabilityPlatformModel.ErrorResponse())
|
|
1266
|
-
.required(),
|
|
1267
|
-
success: Joi.boolean().required(),
|
|
1268
|
-
});
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
/** @returns {CourierPartnerList} */
|
|
1272
|
-
static CourierPartnerList() {
|
|
1273
|
-
return Joi.object({
|
|
1274
|
-
account_id: Joi.string().allow("").required(),
|
|
1275
|
-
extension_id: Joi.string().allow("").required(),
|
|
1276
|
-
is_self_ship: Joi.boolean().required(),
|
|
1277
|
-
name: Joi.string().allow("").required(),
|
|
811
|
+
current: Joi.number().required(),
|
|
1278
812
|
});
|
|
1279
813
|
}
|
|
1280
814
|
|
|
1281
|
-
/** @returns {
|
|
1282
|
-
static
|
|
815
|
+
/** @returns {EntityRegionView_Items} */
|
|
816
|
+
static EntityRegionView_Items() {
|
|
1283
817
|
return Joi.object({
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
ServiceabilityPlatformModel.CourierPartnerList()
|
|
1287
|
-
),
|
|
1288
|
-
is_active: Joi.boolean().required(),
|
|
818
|
+
sub_type: Joi.string().allow("").required(),
|
|
819
|
+
uid: Joi.string().allow("").required(),
|
|
1289
820
|
name: Joi.string().allow("").required(),
|
|
1290
|
-
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
/** @returns {CourierPartnerRuleConditions} */
|
|
1295
|
-
static CourierPartnerRuleConditions() {
|
|
1296
|
-
return Joi.object({
|
|
1297
|
-
brand_ids: ServiceabilityPlatformModel.IntComparisonOperations(),
|
|
1298
|
-
category_ids: ServiceabilityPlatformModel.IntComparisonOperations(),
|
|
1299
|
-
department_ids: ServiceabilityPlatformModel.IntComparisonOperations(),
|
|
1300
|
-
forward: ServiceabilityPlatformModel.LocationRule(),
|
|
1301
|
-
order_place_date: ServiceabilityPlatformModel.ArithmeticOperations(),
|
|
1302
|
-
payment_mode: ServiceabilityPlatformModel.StringComparisonOperations(),
|
|
1303
|
-
product_ids: ServiceabilityPlatformModel.IntComparisonOperations(),
|
|
1304
|
-
product_tags: ServiceabilityPlatformModel.StringComparisonOperations(),
|
|
1305
|
-
reverse: ServiceabilityPlatformModel.LocationRule(),
|
|
1306
|
-
shipment_cost: ServiceabilityPlatformModel.ArithmeticOperations(),
|
|
1307
|
-
shipment_volumetric_weight: ServiceabilityPlatformModel.ArithmeticOperations(),
|
|
1308
|
-
shipment_weight: ServiceabilityPlatformModel.ArithmeticOperations(),
|
|
1309
|
-
store_ids: ServiceabilityPlatformModel.IntComparisonOperations(),
|
|
1310
|
-
store_tags: ServiceabilityPlatformModel.StringComparisonOperations(),
|
|
1311
|
-
store_type: ServiceabilityPlatformModel.StringComparisonOperations(),
|
|
1312
|
-
zone_ids: ServiceabilityPlatformModel.StringComparisonOperations(),
|
|
1313
|
-
});
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
/** @returns {CourierPartnerRulesListResponse} */
|
|
1317
|
-
static CourierPartnerRulesListResponse() {
|
|
1318
|
-
return Joi.object({
|
|
1319
|
-
items: Joi.array()
|
|
1320
|
-
.items(ServiceabilityPlatformModel.CourierPartnerRule())
|
|
1321
|
-
.required(),
|
|
1322
|
-
page: ServiceabilityPlatformModel.Page().required(),
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
/** @returns {CourierPartnerSchemeFeatures} */
|
|
1327
|
-
static CourierPartnerSchemeFeatures() {
|
|
1328
|
-
return Joi.object({
|
|
1329
|
-
cold_storage_goods: Joi.boolean(),
|
|
1330
|
-
dangerous_goods: Joi.boolean(),
|
|
1331
|
-
doorstep_exchange: Joi.boolean(),
|
|
1332
|
-
doorstep_qc: Joi.boolean(),
|
|
1333
|
-
doorstep_return: Joi.boolean(),
|
|
1334
|
-
ewaybill: Joi.boolean(),
|
|
1335
|
-
fragile_goods: Joi.boolean(),
|
|
1336
|
-
mps: Joi.boolean(),
|
|
1337
|
-
multi_pick_multi_drop: Joi.boolean(),
|
|
1338
|
-
multi_pick_single_drop: Joi.boolean(),
|
|
1339
|
-
ndr: Joi.boolean(),
|
|
1340
|
-
ndr_attempts: Joi.number(),
|
|
1341
|
-
openbox_delivery: Joi.boolean(),
|
|
1342
|
-
product_installation: Joi.boolean(),
|
|
1343
|
-
qr: Joi.boolean(),
|
|
1344
|
-
restricted_goods: Joi.boolean(),
|
|
1345
|
-
single_pick_multi_drop: Joi.boolean(),
|
|
1346
|
-
status_updates: Joi.string().allow(""),
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
/** @returns {CourierPartnerSchemeModel} */
|
|
1351
|
-
static CourierPartnerSchemeModel() {
|
|
1352
|
-
return Joi.object({
|
|
1353
|
-
delivery_type: Joi.string().allow("").required(),
|
|
1354
|
-
extension_id: Joi.string().allow("").required(),
|
|
1355
|
-
feature: ServiceabilityPlatformModel.CourierPartnerSchemeFeatures().required(),
|
|
1356
|
-
payment_mode: Joi.array().items(Joi.string().allow("")).required(),
|
|
1357
|
-
region: Joi.string().allow("").required(),
|
|
1358
|
-
scheme_id: Joi.string().allow("").required(),
|
|
1359
|
-
stage: Joi.string().allow("").required(),
|
|
1360
|
-
transport_type: Joi.string().allow("").required(),
|
|
1361
|
-
weight: ServiceabilityPlatformModel.ArithmeticOperations().required(),
|
|
1362
|
-
});
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
/** @returns {CreatedByResponse} */
|
|
1366
|
-
static CreatedByResponse() {
|
|
1367
|
-
return Joi.object({
|
|
1368
|
-
user_id: Joi.string().allow(""),
|
|
1369
|
-
username: Joi.string().allow(""),
|
|
821
|
+
display_name: Joi.string().allow(""),
|
|
1370
822
|
});
|
|
1371
823
|
}
|
|
1372
824
|
|
|
1373
|
-
/** @returns {
|
|
1374
|
-
static
|
|
825
|
+
/** @returns {EntityRegionView_Response} */
|
|
826
|
+
static EntityRegionView_Response() {
|
|
1375
827
|
return Joi.object({
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
store_priority: Joi.array().items(
|
|
1381
|
-
ServiceabilityPlatformModel.StorePrioritySchema()
|
|
828
|
+
error: ServiceabilityPlatformModel.EntityRegionView_Error().required(),
|
|
829
|
+
page: ServiceabilityPlatformModel.EntityRegionView_page().required(),
|
|
830
|
+
items: Joi.array().items(
|
|
831
|
+
ServiceabilityPlatformModel.EntityRegionView_Items()
|
|
1382
832
|
),
|
|
1383
|
-
|
|
1384
|
-
type_based_priority: Joi.array().items(Joi.string().allow("")),
|
|
1385
|
-
});
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
/** @returns {CreateZoneData} */
|
|
1389
|
-
static CreateZoneData() {
|
|
1390
|
-
return Joi.object({
|
|
1391
|
-
assignment_preference: Joi.string().allow(""),
|
|
1392
|
-
channels: Joi.array()
|
|
1393
|
-
.items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
|
|
1394
|
-
.required(),
|
|
1395
|
-
company_id: Joi.number().required(),
|
|
1396
|
-
is_active: Joi.boolean().required(),
|
|
1397
|
-
mapping: Joi.array()
|
|
1398
|
-
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
1399
|
-
.required(),
|
|
1400
|
-
name: Joi.string().allow("").required(),
|
|
1401
|
-
region_type: Joi.string().allow("").required(),
|
|
1402
|
-
slug: Joi.string().allow("").required(),
|
|
1403
|
-
store_ids: Joi.array().items(Joi.number()).required(),
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
/** @returns {CustomerRadiusSchema} */
|
|
1408
|
-
static CustomerRadiusSchema() {
|
|
1409
|
-
return Joi.object({
|
|
1410
|
-
gt: Joi.number(),
|
|
1411
|
-
gte: Joi.number(),
|
|
1412
|
-
lt: Joi.number(),
|
|
1413
|
-
lte: Joi.number(),
|
|
1414
|
-
unit: Joi.string().allow("").required(),
|
|
1415
|
-
});
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
/** @returns {DocumentsResponse} */
|
|
1419
|
-
static DocumentsResponse() {
|
|
1420
|
-
return Joi.object({
|
|
1421
|
-
legal_name: Joi.string().allow(""),
|
|
1422
|
-
type: Joi.string().allow(""),
|
|
1423
|
-
value: Joi.string().allow(""),
|
|
1424
|
-
verified: Joi.boolean(),
|
|
1425
|
-
});
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
/** @returns {Dp} */
|
|
1429
|
-
static Dp() {
|
|
1430
|
-
return Joi.object({
|
|
1431
|
-
area_code: Joi.number().allow(null),
|
|
1432
|
-
assign_dp_from_sb: Joi.boolean(),
|
|
1433
|
-
external_account_id: Joi.string().allow("").allow(null),
|
|
1434
|
-
fm_priority: Joi.number(),
|
|
1435
|
-
internal_account_id: Joi.string().allow(""),
|
|
1436
|
-
lm_priority: Joi.number(),
|
|
1437
|
-
operations: Joi.array().items(Joi.string().allow("")),
|
|
1438
|
-
payment_mode: Joi.string().allow(""),
|
|
1439
|
-
rvp_priority: Joi.number(),
|
|
1440
|
-
transport_mode: Joi.string().allow(""),
|
|
1441
|
-
});
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
/** @returns {EinvoiceResponse} */
|
|
1445
|
-
static EinvoiceResponse() {
|
|
1446
|
-
return Joi.object({
|
|
1447
|
-
enabled: Joi.boolean(),
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
/** @returns {EntityRegionView_Error} */
|
|
1452
|
-
static EntityRegionView_Error() {
|
|
1453
|
-
return Joi.object({
|
|
1454
|
-
message: Joi.string().allow(""),
|
|
1455
|
-
type: Joi.string().allow(""),
|
|
1456
|
-
value: Joi.string().allow(""),
|
|
833
|
+
success: Joi.boolean().required(),
|
|
1457
834
|
});
|
|
1458
835
|
}
|
|
1459
836
|
|
|
1460
|
-
/** @returns {
|
|
1461
|
-
static
|
|
837
|
+
/** @returns {ListViewSummary} */
|
|
838
|
+
static ListViewSummary() {
|
|
1462
839
|
return Joi.object({
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
840
|
+
total_zones: Joi.number().required(),
|
|
841
|
+
total_pincodes_served: Joi.number().required(),
|
|
842
|
+
total_active_zones: Joi.number().required(),
|
|
1466
843
|
});
|
|
1467
844
|
}
|
|
1468
845
|
|
|
1469
|
-
/** @returns {
|
|
1470
|
-
static
|
|
846
|
+
/** @returns {ZoneDataItem} */
|
|
847
|
+
static ZoneDataItem() {
|
|
1471
848
|
return Joi.object({
|
|
1472
|
-
current: Joi.number().required(),
|
|
1473
849
|
has_next: Joi.boolean().required(),
|
|
1474
850
|
item_total: Joi.number().required(),
|
|
1475
851
|
size: Joi.number().required(),
|
|
852
|
+
current: Joi.number().required(),
|
|
1476
853
|
type: Joi.string().allow("").required(),
|
|
1477
854
|
});
|
|
1478
855
|
}
|
|
1479
856
|
|
|
1480
|
-
/** @returns {
|
|
1481
|
-
static
|
|
1482
|
-
return Joi.object({
|
|
1483
|
-
parent_id: Joi.array().items(Joi.string().allow("")),
|
|
1484
|
-
sub_type: Joi.array().items(Joi.string().allow("")).required(),
|
|
1485
|
-
});
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
|
-
/** @returns {EntityRegionView_Response} */
|
|
1489
|
-
static EntityRegionView_Response() {
|
|
857
|
+
/** @returns {ListViewProduct} */
|
|
858
|
+
static ListViewProduct() {
|
|
1490
859
|
return Joi.object({
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
.required(),
|
|
1494
|
-
error: ServiceabilityPlatformModel.EntityRegionView_Error().required(),
|
|
1495
|
-
page: ServiceabilityPlatformModel.EntityRegionView_page().required(),
|
|
1496
|
-
success: Joi.boolean().required(),
|
|
860
|
+
count: Joi.number().required(),
|
|
861
|
+
type: Joi.string().allow("").required(),
|
|
1497
862
|
});
|
|
1498
863
|
}
|
|
1499
864
|
|
|
1500
|
-
/** @returns {
|
|
1501
|
-
static
|
|
865
|
+
/** @returns {ListViewChannels} */
|
|
866
|
+
static ListViewChannels() {
|
|
1502
867
|
return Joi.object({
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
value: Joi.string().allow("").allow(null),
|
|
868
|
+
channel_id: Joi.string().allow("").required(),
|
|
869
|
+
channel_type: Joi.string().allow("").required(),
|
|
1506
870
|
});
|
|
1507
871
|
}
|
|
1508
872
|
|
|
1509
|
-
/** @returns {
|
|
1510
|
-
static
|
|
873
|
+
/** @returns {ListViewItems} */
|
|
874
|
+
static ListViewItems() {
|
|
1511
875
|
return Joi.object({
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
876
|
+
zone_id: Joi.string().allow("").required(),
|
|
877
|
+
name: Joi.string().allow("").required(),
|
|
878
|
+
slug: Joi.string().allow("").required(),
|
|
879
|
+
stores_count: Joi.number().required(),
|
|
880
|
+
is_active: Joi.boolean().required(),
|
|
881
|
+
product: ServiceabilityPlatformModel.ListViewProduct().required(),
|
|
882
|
+
pincodes_count: Joi.number().required(),
|
|
883
|
+
company_id: Joi.number().required(),
|
|
884
|
+
channels: Joi.array()
|
|
885
|
+
.items(ServiceabilityPlatformModel.ListViewChannels())
|
|
886
|
+
.required(),
|
|
1515
887
|
});
|
|
1516
888
|
}
|
|
1517
889
|
|
|
1518
|
-
/** @returns {
|
|
1519
|
-
static
|
|
890
|
+
/** @returns {ListViewResponse} */
|
|
891
|
+
static ListViewResponse() {
|
|
1520
892
|
return Joi.object({
|
|
1521
|
-
|
|
893
|
+
summary: ServiceabilityPlatformModel.ListViewSummary().required(),
|
|
894
|
+
page: ServiceabilityPlatformModel.ZoneDataItem().required(),
|
|
895
|
+
items: Joi.array()
|
|
896
|
+
.items(ServiceabilityPlatformModel.ListViewItems())
|
|
897
|
+
.required(),
|
|
1522
898
|
});
|
|
1523
899
|
}
|
|
1524
900
|
|
|
1525
|
-
/** @returns {
|
|
1526
|
-
static
|
|
901
|
+
/** @returns {CompanyStoreView_PageItems} */
|
|
902
|
+
static CompanyStoreView_PageItems() {
|
|
1527
903
|
return Joi.object({
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
904
|
+
type: Joi.string().allow("").required(),
|
|
905
|
+
has_next: Joi.boolean().required(),
|
|
906
|
+
item_total: Joi.number().required(),
|
|
907
|
+
size: Joi.number().required(),
|
|
908
|
+
current: Joi.number().required(),
|
|
1532
909
|
});
|
|
1533
910
|
}
|
|
1534
911
|
|
|
1535
|
-
/** @returns {
|
|
1536
|
-
static
|
|
912
|
+
/** @returns {CompanyStoreView_Response} */
|
|
913
|
+
static CompanyStoreView_Response() {
|
|
1537
914
|
return Joi.object({
|
|
1538
|
-
items: Joi.array()
|
|
1539
|
-
.items(ServiceabilityPlatformModel.ListViewItems())
|
|
1540
|
-
.required(),
|
|
1541
915
|
page: Joi.array()
|
|
1542
|
-
.items(ServiceabilityPlatformModel.
|
|
916
|
+
.items(ServiceabilityPlatformModel.CompanyStoreView_PageItems())
|
|
1543
917
|
.required(),
|
|
918
|
+
items: Joi.array().items(Joi.any()),
|
|
1544
919
|
});
|
|
1545
920
|
}
|
|
1546
921
|
|
|
1547
|
-
/** @returns {
|
|
1548
|
-
static
|
|
922
|
+
/** @returns {GetZoneDataViewChannels} */
|
|
923
|
+
static GetZoneDataViewChannels() {
|
|
1549
924
|
return Joi.object({
|
|
1550
|
-
|
|
925
|
+
channel_id: Joi.string().allow("").required(),
|
|
926
|
+
channel_type: Joi.string().allow("").required(),
|
|
1551
927
|
});
|
|
1552
928
|
}
|
|
1553
929
|
|
|
1554
|
-
/** @returns {
|
|
1555
|
-
static
|
|
930
|
+
/** @returns {ZoneProductTypes} */
|
|
931
|
+
static ZoneProductTypes() {
|
|
1556
932
|
return Joi.object({
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
),
|
|
1560
|
-
page: ServiceabilityPlatformModel.Page(),
|
|
933
|
+
type: Joi.string().allow("").required(),
|
|
934
|
+
tags: Joi.array().items(Joi.string().allow("")).required(),
|
|
1561
935
|
});
|
|
1562
936
|
}
|
|
1563
937
|
|
|
1564
|
-
/** @returns {
|
|
1565
|
-
static
|
|
938
|
+
/** @returns {ZoneMappingType} */
|
|
939
|
+
static ZoneMappingType() {
|
|
1566
940
|
return Joi.object({
|
|
1567
|
-
|
|
1568
|
-
|
|
941
|
+
country: Joi.string().allow("").required(),
|
|
942
|
+
pincode: Joi.array().items(Joi.string().allow("")),
|
|
943
|
+
state: Joi.array().items(Joi.string().allow("")),
|
|
1569
944
|
});
|
|
1570
945
|
}
|
|
1571
946
|
|
|
1572
|
-
/** @returns {
|
|
1573
|
-
static
|
|
947
|
+
/** @returns {UpdateZoneData} */
|
|
948
|
+
static UpdateZoneData() {
|
|
1574
949
|
return Joi.object({
|
|
1575
|
-
|
|
950
|
+
zone_id: Joi.string().allow("").required(),
|
|
951
|
+
name: Joi.string().allow("").required(),
|
|
952
|
+
slug: Joi.string().allow("").required(),
|
|
953
|
+
company_id: Joi.number().required(),
|
|
954
|
+
is_active: Joi.boolean().required(),
|
|
1576
955
|
channels: Joi.array()
|
|
1577
956
|
.items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
|
|
1578
957
|
.required(),
|
|
1579
|
-
|
|
1580
|
-
|
|
958
|
+
product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
|
|
959
|
+
store_ids: Joi.array().items(Joi.number()).required(),
|
|
960
|
+
region_type: Joi.string().allow("").required(),
|
|
1581
961
|
mapping: Joi.array()
|
|
1582
962
|
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
1583
963
|
.required(),
|
|
1584
|
-
|
|
1585
|
-
product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
|
|
1586
|
-
region_type: Joi.string().allow("").required(),
|
|
1587
|
-
slug: Joi.string().allow("").required(),
|
|
1588
|
-
store_ids: Joi.array().items(Joi.number()).required(),
|
|
1589
|
-
stores_count: Joi.number().required(),
|
|
1590
|
-
zone_id: Joi.string().allow("").required(),
|
|
964
|
+
assignment_preference: Joi.string().allow(""),
|
|
1591
965
|
});
|
|
1592
966
|
}
|
|
1593
967
|
|
|
1594
|
-
/** @returns {
|
|
1595
|
-
static
|
|
968
|
+
/** @returns {ZoneUpdateRequest} */
|
|
969
|
+
static ZoneUpdateRequest() {
|
|
1596
970
|
return Joi.object({
|
|
1597
|
-
|
|
1598
|
-
|
|
971
|
+
identifier: Joi.string().allow("").required(),
|
|
972
|
+
data: ServiceabilityPlatformModel.UpdateZoneData().required(),
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
/** @returns {ZoneSuccessResponse} */
|
|
977
|
+
static ZoneSuccessResponse() {
|
|
978
|
+
return Joi.object({
|
|
979
|
+
status_code: Joi.number().required(),
|
|
980
|
+
success: Joi.boolean().required(),
|
|
1599
981
|
});
|
|
1600
982
|
}
|
|
1601
983
|
|
|
1602
984
|
/** @returns {GetZoneDataViewItems} */
|
|
1603
985
|
static GetZoneDataViewItems() {
|
|
1604
986
|
return Joi.object({
|
|
1605
|
-
|
|
987
|
+
zone_id: Joi.string().allow("").required(),
|
|
988
|
+
name: Joi.string().allow("").required(),
|
|
989
|
+
slug: Joi.string().allow("").required(),
|
|
990
|
+
company_id: Joi.number(),
|
|
991
|
+
is_active: Joi.boolean().required(),
|
|
1606
992
|
channels: Joi.array()
|
|
1607
993
|
.items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
|
|
1608
994
|
.required(),
|
|
1609
|
-
|
|
1610
|
-
|
|
995
|
+
product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
|
|
996
|
+
store_ids: Joi.array().items(Joi.number()).required(),
|
|
997
|
+
region_type: Joi.string().allow("").required(),
|
|
1611
998
|
mapping: Joi.array()
|
|
1612
999
|
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
1613
1000
|
.required(),
|
|
1614
|
-
|
|
1615
|
-
product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
|
|
1616
|
-
region_type: Joi.string().allow(""),
|
|
1617
|
-
slug: Joi.string().allow("").required(),
|
|
1618
|
-
store_ids: Joi.array().items(Joi.number()).required(),
|
|
1001
|
+
assignment_preference: Joi.string().allow(""),
|
|
1619
1002
|
stores_count: Joi.number().required(),
|
|
1620
|
-
|
|
1003
|
+
pincodes_count: Joi.number().required(),
|
|
1621
1004
|
});
|
|
1622
1005
|
}
|
|
1623
1006
|
|
|
1624
|
-
/** @returns {
|
|
1625
|
-
static
|
|
1007
|
+
/** @returns {GetSingleZoneDataViewResponse} */
|
|
1008
|
+
static GetSingleZoneDataViewResponse() {
|
|
1626
1009
|
return Joi.object({
|
|
1627
|
-
|
|
1628
|
-
|
|
1010
|
+
data: ServiceabilityPlatformModel.GetZoneDataViewItems().required(),
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/** @returns {CreateZoneData} */
|
|
1015
|
+
static CreateZoneData() {
|
|
1016
|
+
return Joi.object({
|
|
1017
|
+
name: Joi.string().allow("").required(),
|
|
1018
|
+
slug: Joi.string().allow("").required(),
|
|
1019
|
+
company_id: Joi.number().required(),
|
|
1020
|
+
is_active: Joi.boolean().required(),
|
|
1021
|
+
channels: Joi.array()
|
|
1022
|
+
.items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
|
|
1629
1023
|
.required(),
|
|
1630
|
-
|
|
1631
|
-
|
|
1024
|
+
product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
|
|
1025
|
+
store_ids: Joi.array().items(Joi.number()).required(),
|
|
1026
|
+
region_type: Joi.string().allow("").required(),
|
|
1027
|
+
mapping: Joi.array()
|
|
1028
|
+
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
1632
1029
|
.required(),
|
|
1030
|
+
assignment_preference: Joi.string().allow(""),
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
/** @returns {ZoneRequest} */
|
|
1035
|
+
static ZoneRequest() {
|
|
1036
|
+
return Joi.object({
|
|
1037
|
+
identifier: Joi.string().allow("").required(),
|
|
1038
|
+
data: ServiceabilityPlatformModel.CreateZoneData().required(),
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/** @returns {ZoneResponse} */
|
|
1043
|
+
static ZoneResponse() {
|
|
1044
|
+
return Joi.object({
|
|
1045
|
+
status_code: Joi.number().required(),
|
|
1046
|
+
zone_id: Joi.string().allow("").required(),
|
|
1047
|
+
success: Joi.boolean().required(),
|
|
1633
1048
|
});
|
|
1634
1049
|
}
|
|
1635
1050
|
|
|
@@ -1641,6 +1056,20 @@ class ServiceabilityPlatformModel {
|
|
|
1641
1056
|
});
|
|
1642
1057
|
}
|
|
1643
1058
|
|
|
1059
|
+
/** @returns {Zone} */
|
|
1060
|
+
static Zone() {
|
|
1061
|
+
return Joi.object({
|
|
1062
|
+
zone_id: Joi.string().allow("").required(),
|
|
1063
|
+
type: Joi.string().allow("").required(),
|
|
1064
|
+
name: Joi.string().allow("").required(),
|
|
1065
|
+
tags: Joi.array().items(Joi.string().allow("")).required(),
|
|
1066
|
+
slug: Joi.string().allow("").required(),
|
|
1067
|
+
is_active: Joi.boolean().required(),
|
|
1068
|
+
store_ids: Joi.array().items(Joi.number()).required(),
|
|
1069
|
+
assignment_preference: Joi.string().allow("").required(),
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1644
1073
|
/** @returns {GetZoneFromPincodeViewResponse} */
|
|
1645
1074
|
static GetZoneFromPincodeViewResponse() {
|
|
1646
1075
|
return Joi.object({
|
|
@@ -1649,340 +1078,313 @@ class ServiceabilityPlatformModel {
|
|
|
1649
1078
|
});
|
|
1650
1079
|
}
|
|
1651
1080
|
|
|
1652
|
-
/** @returns {
|
|
1653
|
-
static
|
|
1081
|
+
/** @returns {GetZoneFromApplicationIdViewResponse} */
|
|
1082
|
+
static GetZoneFromApplicationIdViewResponse() {
|
|
1654
1083
|
return Joi.object({
|
|
1655
|
-
|
|
1656
|
-
|
|
1084
|
+
page: Joi.array()
|
|
1085
|
+
.items(ServiceabilityPlatformModel.ZoneDataItem())
|
|
1086
|
+
.required(),
|
|
1087
|
+
items: Joi.array()
|
|
1088
|
+
.items(ServiceabilityPlatformModel.ListViewItems())
|
|
1089
|
+
.required(),
|
|
1657
1090
|
});
|
|
1658
1091
|
}
|
|
1659
1092
|
|
|
1660
|
-
/** @returns {
|
|
1661
|
-
static
|
|
1093
|
+
/** @returns {ServiceabilityPageResponse} */
|
|
1094
|
+
static ServiceabilityPageResponse() {
|
|
1662
1095
|
return Joi.object({
|
|
1663
|
-
|
|
1096
|
+
type: Joi.string().allow(""),
|
|
1097
|
+
has_next: Joi.boolean(),
|
|
1098
|
+
item_total: Joi.number(),
|
|
1099
|
+
size: Joi.number(),
|
|
1100
|
+
current: Joi.number(),
|
|
1664
1101
|
});
|
|
1665
1102
|
}
|
|
1666
1103
|
|
|
1667
|
-
/** @returns {
|
|
1668
|
-
static
|
|
1104
|
+
/** @returns {MobileNo} */
|
|
1105
|
+
static MobileNo() {
|
|
1669
1106
|
return Joi.object({
|
|
1670
|
-
|
|
1671
|
-
|
|
1107
|
+
number: Joi.string().allow(""),
|
|
1108
|
+
country_code: Joi.number(),
|
|
1672
1109
|
});
|
|
1673
1110
|
}
|
|
1674
1111
|
|
|
1675
|
-
/** @returns {
|
|
1676
|
-
static
|
|
1112
|
+
/** @returns {ManagerResponse} */
|
|
1113
|
+
static ManagerResponse() {
|
|
1677
1114
|
return Joi.object({
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
address: ServiceabilityPlatformModel.AddressResponse(),
|
|
1681
|
-
code: Joi.string().allow(""),
|
|
1682
|
-
company: Joi.number(),
|
|
1683
|
-
company_id: Joi.number(),
|
|
1684
|
-
contact_numbers: Joi.array().items(
|
|
1685
|
-
ServiceabilityPlatformModel.ContactNumberResponse()
|
|
1686
|
-
),
|
|
1687
|
-
created_by: ServiceabilityPlatformModel.CreatedByResponse(),
|
|
1688
|
-
created_on: Joi.string().allow(""),
|
|
1689
|
-
display_name: Joi.string().allow(""),
|
|
1690
|
-
documents: Joi.array().items(
|
|
1691
|
-
ServiceabilityPlatformModel.DocumentsResponse()
|
|
1692
|
-
),
|
|
1693
|
-
gst_credentials: ServiceabilityPlatformModel.GstCredentialsResponse(),
|
|
1694
|
-
integration_type: ServiceabilityPlatformModel.IntegrationTypeResponse(),
|
|
1695
|
-
logistics: ServiceabilityPlatformModel.LogisticsResponse(),
|
|
1696
|
-
manager: ServiceabilityPlatformModel.ManagerResponse(),
|
|
1697
|
-
modified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
|
|
1698
|
-
modified_on: Joi.string().allow(""),
|
|
1115
|
+
email: Joi.string().allow(""),
|
|
1116
|
+
mobile_no: ServiceabilityPlatformModel.MobileNo(),
|
|
1699
1117
|
name: Joi.string().allow(""),
|
|
1700
|
-
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
1701
|
-
product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResponse(),
|
|
1702
|
-
stage: Joi.string().allow(""),
|
|
1703
|
-
store_type: Joi.string().allow(""),
|
|
1704
|
-
sub_type: Joi.string().allow(""),
|
|
1705
|
-
timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResponse()),
|
|
1706
|
-
uid: Joi.number(),
|
|
1707
|
-
verified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
|
|
1708
|
-
verified_on: Joi.string().allow(""),
|
|
1709
|
-
warnings: ServiceabilityPlatformModel.WarningsResponse(),
|
|
1710
1118
|
});
|
|
1711
1119
|
}
|
|
1712
1120
|
|
|
1713
|
-
/** @returns {
|
|
1714
|
-
static
|
|
1121
|
+
/** @returns {ModifiedByResponse} */
|
|
1122
|
+
static ModifiedByResponse() {
|
|
1715
1123
|
return Joi.object({
|
|
1716
|
-
|
|
1717
|
-
|
|
1124
|
+
username: Joi.string().allow(""),
|
|
1125
|
+
user_id: Joi.string().allow(""),
|
|
1718
1126
|
});
|
|
1719
1127
|
}
|
|
1720
1128
|
|
|
1721
|
-
/** @returns {
|
|
1722
|
-
static
|
|
1129
|
+
/** @returns {IntegrationTypeResponse} */
|
|
1130
|
+
static IntegrationTypeResponse() {
|
|
1723
1131
|
return Joi.object({
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
is_active: Joi.boolean().required(),
|
|
1727
|
-
name: Joi.string().allow("").required(),
|
|
1728
|
-
product: ServiceabilityPlatformModel.ListViewProduct().required(),
|
|
1729
|
-
regions_count: Joi.number().required(),
|
|
1730
|
-
slug: Joi.string().allow("").required(),
|
|
1731
|
-
stores_count: Joi.number().required(),
|
|
1732
|
-
zone_id: Joi.string().allow("").required(),
|
|
1132
|
+
inventory: Joi.string().allow(""),
|
|
1133
|
+
order: Joi.string().allow(""),
|
|
1733
1134
|
});
|
|
1734
1135
|
}
|
|
1735
1136
|
|
|
1736
|
-
/** @returns {
|
|
1737
|
-
static
|
|
1137
|
+
/** @returns {ProductReturnConfigResponse} */
|
|
1138
|
+
static ProductReturnConfigResponse() {
|
|
1139
|
+
return Joi.object({
|
|
1140
|
+
on_same_store: Joi.boolean(),
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
/** @returns {ContactNumberResponse} */
|
|
1145
|
+
static ContactNumberResponse() {
|
|
1738
1146
|
return Joi.object({
|
|
1739
|
-
|
|
1740
|
-
|
|
1147
|
+
number: Joi.string().allow(""),
|
|
1148
|
+
country_code: Joi.number(),
|
|
1741
1149
|
});
|
|
1742
1150
|
}
|
|
1743
1151
|
|
|
1744
|
-
/** @returns {
|
|
1745
|
-
static
|
|
1152
|
+
/** @returns {AddressResponse} */
|
|
1153
|
+
static AddressResponse() {
|
|
1746
1154
|
return Joi.object({
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1155
|
+
city: Joi.string().allow(""),
|
|
1156
|
+
address1: Joi.string().allow(""),
|
|
1157
|
+
pincode: Joi.number(),
|
|
1158
|
+
address2: Joi.string().allow(""),
|
|
1159
|
+
landmark: Joi.string().allow(""),
|
|
1160
|
+
state: Joi.string().allow(""),
|
|
1161
|
+
country: Joi.string().allow(""),
|
|
1162
|
+
latitude: Joi.number(),
|
|
1163
|
+
longitude: Joi.number(),
|
|
1753
1164
|
});
|
|
1754
1165
|
}
|
|
1755
1166
|
|
|
1756
|
-
/** @returns {
|
|
1757
|
-
static
|
|
1167
|
+
/** @returns {CreatedByResponse} */
|
|
1168
|
+
static CreatedByResponse() {
|
|
1758
1169
|
return Joi.object({
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
total_zones: Joi.number().required(),
|
|
1170
|
+
username: Joi.string().allow(""),
|
|
1171
|
+
user_id: Joi.string().allow(""),
|
|
1762
1172
|
});
|
|
1763
1173
|
}
|
|
1764
1174
|
|
|
1765
|
-
/** @returns {
|
|
1766
|
-
static
|
|
1175
|
+
/** @returns {EwayBillResponse} */
|
|
1176
|
+
static EwayBillResponse() {
|
|
1767
1177
|
return Joi.object({
|
|
1768
|
-
|
|
1769
|
-
ServiceabilityPlatformModel.LocationRuleValues()
|
|
1770
|
-
),
|
|
1771
|
-
type: Joi.string().allow(""),
|
|
1178
|
+
enabled: Joi.boolean(),
|
|
1772
1179
|
});
|
|
1773
1180
|
}
|
|
1774
1181
|
|
|
1775
|
-
/** @returns {
|
|
1776
|
-
static
|
|
1182
|
+
/** @returns {EinvoiceResponse} */
|
|
1183
|
+
static EinvoiceResponse() {
|
|
1777
1184
|
return Joi.object({
|
|
1778
|
-
|
|
1779
|
-
id: Joi.string().allow("").required(),
|
|
1780
|
-
name: Joi.string().allow(""),
|
|
1781
|
-
parent_id: Joi.string().allow(""),
|
|
1782
|
-
parent_ids: Joi.array().items(Joi.string().allow("")),
|
|
1783
|
-
sub_type: Joi.string().allow(""),
|
|
1185
|
+
enabled: Joi.boolean(),
|
|
1784
1186
|
});
|
|
1785
1187
|
}
|
|
1786
1188
|
|
|
1787
|
-
/** @returns {
|
|
1788
|
-
static
|
|
1189
|
+
/** @returns {GstCredentialsResponse} */
|
|
1190
|
+
static GstCredentialsResponse() {
|
|
1789
1191
|
return Joi.object({
|
|
1790
|
-
|
|
1791
|
-
|
|
1192
|
+
e_waybill: ServiceabilityPlatformModel.EwayBillResponse(),
|
|
1193
|
+
e_invoice: ServiceabilityPlatformModel.EinvoiceResponse(),
|
|
1792
1194
|
});
|
|
1793
1195
|
}
|
|
1794
1196
|
|
|
1795
|
-
/** @returns {
|
|
1796
|
-
static
|
|
1197
|
+
/** @returns {WarningsResponse} */
|
|
1198
|
+
static WarningsResponse() {
|
|
1797
1199
|
return Joi.object({
|
|
1798
|
-
|
|
1799
|
-
mobile_no: ServiceabilityPlatformModel.MobileNo(),
|
|
1800
|
-
name: Joi.string().allow(""),
|
|
1200
|
+
store_address: Joi.string().allow(""),
|
|
1801
1201
|
});
|
|
1802
1202
|
}
|
|
1803
1203
|
|
|
1804
|
-
/** @returns {
|
|
1805
|
-
static
|
|
1204
|
+
/** @returns {OpeningClosing} */
|
|
1205
|
+
static OpeningClosing() {
|
|
1806
1206
|
return Joi.object({
|
|
1807
|
-
|
|
1808
|
-
|
|
1207
|
+
minute: Joi.number(),
|
|
1208
|
+
hour: Joi.number(),
|
|
1809
1209
|
});
|
|
1810
1210
|
}
|
|
1811
1211
|
|
|
1812
|
-
/** @returns {
|
|
1813
|
-
static
|
|
1212
|
+
/** @returns {TimmingResponse} */
|
|
1213
|
+
static TimmingResponse() {
|
|
1814
1214
|
return Joi.object({
|
|
1815
|
-
|
|
1816
|
-
|
|
1215
|
+
open: Joi.boolean(),
|
|
1216
|
+
weekday: Joi.string().allow(""),
|
|
1217
|
+
closing: ServiceabilityPlatformModel.OpeningClosing(),
|
|
1218
|
+
opening: ServiceabilityPlatformModel.OpeningClosing(),
|
|
1817
1219
|
});
|
|
1818
1220
|
}
|
|
1819
1221
|
|
|
1820
|
-
/** @returns {
|
|
1821
|
-
static
|
|
1222
|
+
/** @returns {DocumentsResponse} */
|
|
1223
|
+
static DocumentsResponse() {
|
|
1822
1224
|
return Joi.object({
|
|
1823
|
-
|
|
1824
|
-
|
|
1225
|
+
legal_name: Joi.string().allow(""),
|
|
1226
|
+
value: Joi.string().allow(""),
|
|
1227
|
+
type: Joi.string().allow(""),
|
|
1228
|
+
verified: Joi.boolean(),
|
|
1825
1229
|
});
|
|
1826
1230
|
}
|
|
1827
1231
|
|
|
1828
|
-
/** @returns {
|
|
1829
|
-
static
|
|
1232
|
+
/** @returns {Dp} */
|
|
1233
|
+
static Dp() {
|
|
1830
1234
|
return Joi.object({
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
package_type: Joi.string().allow("").required(),
|
|
1842
|
-
package_vol_weight: Joi.number(),
|
|
1843
|
-
rules: Joi.array().items(
|
|
1844
|
-
ServiceabilityPlatformModel.PackageMaterialRule()
|
|
1845
|
-
),
|
|
1846
|
-
size: Joi.string().allow("").required(),
|
|
1847
|
-
status: Joi.string().allow("").required(),
|
|
1848
|
-
store_ids: Joi.array().items(Joi.number()).required(),
|
|
1849
|
-
track_inventory: Joi.boolean(),
|
|
1850
|
-
weight: Joi.number().required(),
|
|
1851
|
-
width: Joi.number().required(),
|
|
1235
|
+
fm_priority: Joi.number(),
|
|
1236
|
+
rvp_priority: Joi.number(),
|
|
1237
|
+
lm_priority: Joi.number(),
|
|
1238
|
+
internal_account_id: Joi.string().allow(""),
|
|
1239
|
+
area_code: Joi.number().allow(null),
|
|
1240
|
+
payment_mode: Joi.string().allow(""),
|
|
1241
|
+
operations: Joi.array().items(Joi.string().allow("")),
|
|
1242
|
+
external_account_id: Joi.string().allow("").allow(null),
|
|
1243
|
+
transport_mode: Joi.string().allow(""),
|
|
1244
|
+
assign_dp_from_sb: Joi.boolean(),
|
|
1852
1245
|
});
|
|
1853
1246
|
}
|
|
1854
1247
|
|
|
1855
|
-
/** @returns {
|
|
1856
|
-
static
|
|
1248
|
+
/** @returns {LogisticsResponse} */
|
|
1249
|
+
static LogisticsResponse() {
|
|
1857
1250
|
return Joi.object({
|
|
1858
|
-
|
|
1859
|
-
|
|
1251
|
+
override: Joi.boolean(),
|
|
1252
|
+
dp: ServiceabilityPlatformModel.Dp(),
|
|
1860
1253
|
});
|
|
1861
1254
|
}
|
|
1862
1255
|
|
|
1863
|
-
/** @returns {
|
|
1864
|
-
static
|
|
1256
|
+
/** @returns {ItemResponse} */
|
|
1257
|
+
static ItemResponse() {
|
|
1865
1258
|
return Joi.object({
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
length: Joi.number().required(),
|
|
1875
|
-
max_weight: Joi.number(),
|
|
1876
|
-
media: Joi.array().items(Joi.string().allow("")),
|
|
1877
|
-
name: Joi.string().allow("").required(),
|
|
1878
|
-
package_type: Joi.string().allow("").required(),
|
|
1879
|
-
package_vol_weight: Joi.number(),
|
|
1880
|
-
rules: Joi.array().items(
|
|
1881
|
-
ServiceabilityPlatformModel.PackageMaterialRule()
|
|
1259
|
+
created_on: Joi.string().allow(""),
|
|
1260
|
+
manager: ServiceabilityPlatformModel.ManagerResponse(),
|
|
1261
|
+
modified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
|
|
1262
|
+
integration_type: ServiceabilityPlatformModel.IntegrationTypeResponse(),
|
|
1263
|
+
verified_on: Joi.string().allow(""),
|
|
1264
|
+
product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResponse(),
|
|
1265
|
+
contact_numbers: Joi.array().items(
|
|
1266
|
+
ServiceabilityPlatformModel.ContactNumberResponse()
|
|
1882
1267
|
),
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1268
|
+
verified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
|
|
1269
|
+
stage: Joi.string().allow(""),
|
|
1270
|
+
address: ServiceabilityPlatformModel.AddressResponse(),
|
|
1271
|
+
modified_on: Joi.string().allow(""),
|
|
1272
|
+
created_by: ServiceabilityPlatformModel.CreatedByResponse(),
|
|
1273
|
+
gst_credentials: ServiceabilityPlatformModel.GstCredentialsResponse(),
|
|
1274
|
+
display_name: Joi.string().allow(""),
|
|
1275
|
+
company_id: Joi.number(),
|
|
1276
|
+
uid: Joi.number(),
|
|
1277
|
+
_custom_json: Joi.any(),
|
|
1278
|
+
code: Joi.string().allow(""),
|
|
1279
|
+
warnings: ServiceabilityPlatformModel.WarningsResponse(),
|
|
1280
|
+
name: Joi.string().allow(""),
|
|
1281
|
+
timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResponse()),
|
|
1282
|
+
documents: Joi.array().items(
|
|
1283
|
+
ServiceabilityPlatformModel.DocumentsResponse()
|
|
1284
|
+
),
|
|
1285
|
+
store_type: Joi.string().allow(""),
|
|
1286
|
+
sub_type: Joi.string().allow(""),
|
|
1287
|
+
company: Joi.number(),
|
|
1288
|
+
_cls: Joi.string().allow(""),
|
|
1289
|
+
logistics: ServiceabilityPlatformModel.LogisticsResponse(),
|
|
1290
|
+
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
1889
1291
|
});
|
|
1890
1292
|
}
|
|
1891
1293
|
|
|
1892
|
-
/** @returns {
|
|
1893
|
-
static
|
|
1294
|
+
/** @returns {GetStoresViewResponse} */
|
|
1295
|
+
static GetStoresViewResponse() {
|
|
1894
1296
|
return Joi.object({
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
weight: Joi.number(),
|
|
1297
|
+
page: ServiceabilityPlatformModel.ServiceabilityPageResponse().required(),
|
|
1298
|
+
items: Joi.array().items(ServiceabilityPlatformModel.ItemResponse()),
|
|
1898
1299
|
});
|
|
1899
1300
|
}
|
|
1900
1301
|
|
|
1901
|
-
/** @returns {
|
|
1902
|
-
static
|
|
1302
|
+
/** @returns {ReAssignStoreRequest} */
|
|
1303
|
+
static ReAssignStoreRequest() {
|
|
1903
1304
|
return Joi.object({
|
|
1904
|
-
|
|
1905
|
-
|
|
1305
|
+
to_pincode: Joi.string().allow("").required(),
|
|
1306
|
+
identifier: Joi.string().allow("").required(),
|
|
1307
|
+
configuration: Joi.any().required(),
|
|
1308
|
+
ignored_locations: Joi.array().items(Joi.string().allow("")).required(),
|
|
1309
|
+
articles: Joi.array().items(Joi.any()).required(),
|
|
1906
1310
|
});
|
|
1907
1311
|
}
|
|
1908
1312
|
|
|
1909
|
-
/** @returns {
|
|
1910
|
-
static
|
|
1313
|
+
/** @returns {ReAssignStoreResponse} */
|
|
1314
|
+
static ReAssignStoreResponse() {
|
|
1911
1315
|
return Joi.object({
|
|
1912
|
-
|
|
1913
|
-
|
|
1316
|
+
to_pincode: Joi.string().allow("").required(),
|
|
1317
|
+
success: Joi.boolean().required(),
|
|
1318
|
+
error: Joi.any().required(),
|
|
1319
|
+
articles: Joi.array().items(Joi.any()),
|
|
1914
1320
|
});
|
|
1915
1321
|
}
|
|
1916
1322
|
|
|
1917
|
-
/** @returns {
|
|
1918
|
-
static
|
|
1323
|
+
/** @returns {ApplicationCompanyDpViewResponse} */
|
|
1324
|
+
static ApplicationCompanyDpViewResponse() {
|
|
1919
1325
|
return Joi.object({
|
|
1920
|
-
|
|
1326
|
+
courier_partner_id: Joi.number(),
|
|
1921
1327
|
company_id: Joi.number().required(),
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
product_id: ServiceabilityPlatformModel.PackageRuleProduct(),
|
|
1925
|
-
product_tag: ServiceabilityPlatformModel.PackageRuleProductTag(),
|
|
1926
|
-
type: Joi.string().allow("").required(),
|
|
1328
|
+
application_id: Joi.string().allow("").required(),
|
|
1329
|
+
success: Joi.boolean().required(),
|
|
1927
1330
|
});
|
|
1928
1331
|
}
|
|
1929
1332
|
|
|
1930
|
-
/** @returns {
|
|
1931
|
-
static
|
|
1333
|
+
/** @returns {ApplicationCompanyDpViewRequest} */
|
|
1334
|
+
static ApplicationCompanyDpViewRequest() {
|
|
1932
1335
|
return Joi.object({
|
|
1933
|
-
|
|
1336
|
+
dp_id: Joi.string().allow(""),
|
|
1934
1337
|
});
|
|
1935
1338
|
}
|
|
1936
1339
|
|
|
1937
|
-
/** @returns {
|
|
1938
|
-
static
|
|
1340
|
+
/** @returns {PincodeMopData} */
|
|
1341
|
+
static PincodeMopData() {
|
|
1939
1342
|
return Joi.object({
|
|
1940
|
-
|
|
1343
|
+
pincodes: Joi.array().items(Joi.number()).required(),
|
|
1344
|
+
country: Joi.string().allow("").required(),
|
|
1345
|
+
action: Joi.string().allow("").required(),
|
|
1941
1346
|
});
|
|
1942
1347
|
}
|
|
1943
1348
|
|
|
1944
|
-
/** @returns {
|
|
1945
|
-
static
|
|
1349
|
+
/** @returns {PincodeMopUpdateResponse} */
|
|
1350
|
+
static PincodeMopUpdateResponse() {
|
|
1946
1351
|
return Joi.object({
|
|
1947
|
-
|
|
1352
|
+
pincode: Joi.number().required(),
|
|
1353
|
+
channel_id: Joi.string().allow("").required(),
|
|
1354
|
+
country: Joi.string().allow("").required(),
|
|
1355
|
+
is_active: Joi.boolean().required(),
|
|
1948
1356
|
});
|
|
1949
1357
|
}
|
|
1950
1358
|
|
|
1951
|
-
/** @returns {
|
|
1952
|
-
static
|
|
1359
|
+
/** @returns {PincodeMOPresponse} */
|
|
1360
|
+
static PincodeMOPresponse() {
|
|
1953
1361
|
return Joi.object({
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1362
|
+
success: Joi.boolean().required(),
|
|
1363
|
+
status_code: Joi.number().required(),
|
|
1364
|
+
batch_id: Joi.string().allow("").required(),
|
|
1365
|
+
country: Joi.string().allow("").required(),
|
|
1366
|
+
action: Joi.string().allow("").required(),
|
|
1367
|
+
pincodes: Joi.array().items(Joi.number()),
|
|
1368
|
+
updated_pincodes: Joi.array().items(
|
|
1369
|
+
ServiceabilityPlatformModel.PincodeMopUpdateResponse()
|
|
1370
|
+
),
|
|
1962
1371
|
});
|
|
1963
1372
|
}
|
|
1964
1373
|
|
|
1965
|
-
/** @returns {
|
|
1966
|
-
static
|
|
1374
|
+
/** @returns {CommonError} */
|
|
1375
|
+
static CommonError() {
|
|
1967
1376
|
return Joi.object({
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
item_total: Joi.number(),
|
|
1972
|
-
next_id: Joi.string().allow(""),
|
|
1973
|
-
size: Joi.number(),
|
|
1974
|
-
type: Joi.string().allow("").required(),
|
|
1377
|
+
status_code: Joi.string().allow(""),
|
|
1378
|
+
error: Joi.any(),
|
|
1379
|
+
success: Joi.string().allow(""),
|
|
1975
1380
|
});
|
|
1976
1381
|
}
|
|
1977
1382
|
|
|
1978
|
-
/** @returns {
|
|
1979
|
-
static
|
|
1383
|
+
/** @returns {PincodeMopBulkData} */
|
|
1384
|
+
static PincodeMopBulkData() {
|
|
1980
1385
|
return Joi.object({
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
item_total: Joi.number().required(),
|
|
1984
|
-
size: Joi.number().required(),
|
|
1985
|
-
type: Joi.string().allow("").required(),
|
|
1386
|
+
batch_id: Joi.string().allow("").required(),
|
|
1387
|
+
s3_url: Joi.string().allow("").required(),
|
|
1986
1388
|
});
|
|
1987
1389
|
}
|
|
1988
1390
|
|
|
@@ -1994,25 +1396,14 @@ class ServiceabilityPlatformModel {
|
|
|
1994
1396
|
});
|
|
1995
1397
|
}
|
|
1996
1398
|
|
|
1997
|
-
/** @returns {PincodeCodStatusListingPage} */
|
|
1998
|
-
static PincodeCodStatusListingPage() {
|
|
1999
|
-
return Joi.object({
|
|
2000
|
-
current: Joi.number().required(),
|
|
2001
|
-
has_next: Joi.boolean().required(),
|
|
2002
|
-
item_total: Joi.number().required(),
|
|
2003
|
-
size: Joi.number().required(),
|
|
2004
|
-
type: Joi.string().allow("").required(),
|
|
2005
|
-
});
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
1399
|
/** @returns {PincodeCodStatusListingRequest} */
|
|
2009
1400
|
static PincodeCodStatusListingRequest() {
|
|
2010
1401
|
return Joi.object({
|
|
2011
1402
|
country: Joi.string().allow(""),
|
|
2012
|
-
current: Joi.number(),
|
|
2013
1403
|
is_active: Joi.boolean(),
|
|
2014
|
-
page_size: Joi.number(),
|
|
2015
1404
|
pincode: Joi.number().allow(null),
|
|
1405
|
+
current: Joi.number(),
|
|
1406
|
+
page_size: Joi.number(),
|
|
2016
1407
|
});
|
|
2017
1408
|
}
|
|
2018
1409
|
|
|
@@ -2023,69 +1414,57 @@ class ServiceabilityPlatformModel {
|
|
|
2023
1414
|
data: Joi.array()
|
|
2024
1415
|
.items(Joi.link("#PincodeCodStatusListingResponse"))
|
|
2025
1416
|
.required(),
|
|
1417
|
+
success: Joi.boolean().required(),
|
|
2026
1418
|
errors: Joi.array().items(ServiceabilityPlatformModel.Error()),
|
|
2027
1419
|
page: ServiceabilityPlatformModel.PincodeCodStatusListingPage().required(),
|
|
2028
|
-
success: Joi.boolean().required(),
|
|
2029
1420
|
summary: ServiceabilityPlatformModel.PincodeCodStatusListingSummary().required(),
|
|
2030
|
-
});
|
|
1421
|
+
}).id("PincodeCodStatusListingResponse");
|
|
2031
1422
|
}
|
|
2032
1423
|
|
|
2033
|
-
/** @returns {
|
|
2034
|
-
static
|
|
1424
|
+
/** @returns {Error} */
|
|
1425
|
+
static Error() {
|
|
2035
1426
|
return Joi.object({
|
|
2036
|
-
|
|
2037
|
-
|
|
1427
|
+
type: Joi.string().allow("").allow(null),
|
|
1428
|
+
value: Joi.string().allow("").allow(null),
|
|
1429
|
+
message: Joi.string().allow("").allow(null),
|
|
2038
1430
|
});
|
|
2039
1431
|
}
|
|
2040
1432
|
|
|
2041
|
-
/** @returns {
|
|
2042
|
-
static
|
|
1433
|
+
/** @returns {PincodeCodStatusListingPage} */
|
|
1434
|
+
static PincodeCodStatusListingPage() {
|
|
2043
1435
|
return Joi.object({
|
|
2044
|
-
|
|
2045
|
-
|
|
1436
|
+
type: Joi.string().allow("").required(),
|
|
1437
|
+
has_next: Joi.boolean().required(),
|
|
1438
|
+
item_total: Joi.number().required(),
|
|
1439
|
+
size: Joi.number().required(),
|
|
1440
|
+
current: Joi.number().required(),
|
|
2046
1441
|
});
|
|
2047
1442
|
}
|
|
2048
1443
|
|
|
2049
|
-
/** @returns {
|
|
2050
|
-
static
|
|
1444
|
+
/** @returns {PincodeCodStatusListingSummary} */
|
|
1445
|
+
static PincodeCodStatusListingSummary() {
|
|
2051
1446
|
return Joi.object({
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
pincodes: Joi.array().items(Joi.number()).required(),
|
|
1447
|
+
total_active_pincodes: Joi.number().required(),
|
|
1448
|
+
total_inactive_pincodes: Joi.number().required(),
|
|
2055
1449
|
});
|
|
2056
1450
|
}
|
|
2057
1451
|
|
|
2058
|
-
/** @returns {
|
|
2059
|
-
static
|
|
1452
|
+
/** @returns {PincodeMopUpdateAuditHistoryRequest} */
|
|
1453
|
+
static PincodeMopUpdateAuditHistoryRequest() {
|
|
2060
1454
|
return Joi.object({
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
country: Joi.string().allow("").required(),
|
|
2064
|
-
pincodes: Joi.array().items(Joi.number()),
|
|
2065
|
-
status_code: Joi.number().required(),
|
|
2066
|
-
success: Joi.boolean().required(),
|
|
2067
|
-
updated_pincodes: Joi.array().items(
|
|
2068
|
-
ServiceabilityPlatformModel.PincodeMopUpdateResponse()
|
|
2069
|
-
),
|
|
1455
|
+
entity_type: Joi.string().allow("").required(),
|
|
1456
|
+
file_name: Joi.string().allow(""),
|
|
2070
1457
|
});
|
|
2071
1458
|
}
|
|
2072
1459
|
|
|
2073
1460
|
/** @returns {PincodeMopUpdateAuditHistoryPaging} */
|
|
2074
1461
|
static PincodeMopUpdateAuditHistoryPaging() {
|
|
2075
1462
|
return Joi.object({
|
|
1463
|
+
type: Joi.string().allow(""),
|
|
1464
|
+
size: Joi.number(),
|
|
2076
1465
|
current: Joi.number(),
|
|
2077
1466
|
has_next: Joi.boolean(),
|
|
2078
1467
|
item_total: Joi.number(),
|
|
2079
|
-
size: Joi.number(),
|
|
2080
|
-
type: Joi.string().allow(""),
|
|
2081
|
-
});
|
|
2082
|
-
}
|
|
2083
|
-
|
|
2084
|
-
/** @returns {PincodeMopUpdateAuditHistoryRequest} */
|
|
2085
|
-
static PincodeMopUpdateAuditHistoryRequest() {
|
|
2086
|
-
return Joi.object({
|
|
2087
|
-
entity_type: Joi.string().allow("").required(),
|
|
2088
|
-
file_name: Joi.string().allow(""),
|
|
2089
1468
|
});
|
|
2090
1469
|
}
|
|
2091
1470
|
|
|
@@ -2095,362 +1474,267 @@ class ServiceabilityPlatformModel {
|
|
|
2095
1474
|
batch_id: Joi.string().allow(""),
|
|
2096
1475
|
entity_type: Joi.string().allow(""),
|
|
2097
1476
|
error_file_s3_url: Joi.string().allow(""),
|
|
2098
|
-
file_name: Joi.string().allow(""),
|
|
2099
1477
|
s3_url: Joi.string().allow(""),
|
|
2100
|
-
|
|
1478
|
+
file_name: Joi.string().allow(""),
|
|
2101
1479
|
updated_at: Joi.string().allow(""),
|
|
2102
1480
|
updated_by: Joi.string().allow(""),
|
|
1481
|
+
success: Joi.boolean(),
|
|
2103
1482
|
});
|
|
2104
1483
|
}
|
|
2105
1484
|
|
|
2106
1485
|
/** @returns {PincodeMopUpdateAuditHistoryResponseData} */
|
|
2107
1486
|
static PincodeMopUpdateAuditHistoryResponseData() {
|
|
2108
1487
|
return Joi.object({
|
|
1488
|
+
entity_type: Joi.string().allow(""),
|
|
1489
|
+
page: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryPaging().required(),
|
|
2109
1490
|
data: Joi.array()
|
|
2110
1491
|
.items(
|
|
2111
1492
|
ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponse()
|
|
2112
1493
|
)
|
|
2113
1494
|
.required(),
|
|
2114
|
-
entity_type: Joi.string().allow(""),
|
|
2115
|
-
page: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryPaging().required(),
|
|
2116
|
-
});
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
|
-
/** @returns {PincodeMopUpdateResponse} */
|
|
2120
|
-
static PincodeMopUpdateResponse() {
|
|
2121
|
-
return Joi.object({
|
|
2122
|
-
channel_id: Joi.string().allow("").required(),
|
|
2123
|
-
country: Joi.string().allow("").required(),
|
|
2124
|
-
is_active: Joi.boolean().required(),
|
|
2125
|
-
pincode: Joi.number().required(),
|
|
2126
1495
|
});
|
|
2127
1496
|
}
|
|
2128
1497
|
|
|
2129
|
-
/** @returns {
|
|
2130
|
-
static
|
|
1498
|
+
/** @returns {Dp1} */
|
|
1499
|
+
static Dp1() {
|
|
2131
1500
|
return Joi.object({
|
|
2132
|
-
|
|
1501
|
+
is_self_ship: Joi.boolean().required(),
|
|
1502
|
+
name: Joi.string().allow("").required(),
|
|
1503
|
+
plan_id: Joi.string().allow("").required(),
|
|
1504
|
+
stage: Joi.string().allow("").required(),
|
|
1505
|
+
account_id: Joi.string().allow("").required(),
|
|
1506
|
+
dp_id: Joi.string().allow("").required(),
|
|
1507
|
+
plan_rules: Joi.any().required(),
|
|
2133
1508
|
});
|
|
2134
1509
|
}
|
|
2135
1510
|
|
|
2136
|
-
/** @returns {
|
|
2137
|
-
static
|
|
1511
|
+
/** @returns {CompanyDpAccountRequest} */
|
|
1512
|
+
static CompanyDpAccountRequest() {
|
|
2138
1513
|
return Joi.object({
|
|
2139
|
-
|
|
2140
|
-
configuration: Joi.any().required(),
|
|
2141
|
-
identifier: Joi.string().allow("").required(),
|
|
2142
|
-
ignored_locations: Joi.array().items(Joi.string().allow("")).required(),
|
|
2143
|
-
to_pincode: Joi.string().allow("").required(),
|
|
1514
|
+
data: Joi.array().items(ServiceabilityPlatformModel.Dp1()).required(),
|
|
2144
1515
|
});
|
|
2145
1516
|
}
|
|
2146
1517
|
|
|
2147
|
-
/** @returns {
|
|
2148
|
-
static
|
|
1518
|
+
/** @returns {CompanyDpAccountResponse} */
|
|
1519
|
+
static CompanyDpAccountResponse() {
|
|
2149
1520
|
return Joi.object({
|
|
2150
|
-
articles: Joi.array().items(Joi.any()),
|
|
2151
|
-
error: Joi.any().required(),
|
|
2152
1521
|
success: Joi.boolean().required(),
|
|
2153
|
-
to_pincode: Joi.string().allow("").required(),
|
|
2154
|
-
});
|
|
2155
|
-
}
|
|
2156
|
-
|
|
2157
|
-
/** @returns {RulePriorityRequest} */
|
|
2158
|
-
static RulePriorityRequest() {
|
|
2159
|
-
return Joi.object({
|
|
2160
|
-
priority: Joi.number().required(),
|
|
2161
|
-
rule_id: Joi.string().allow("").required(),
|
|
2162
|
-
});
|
|
2163
|
-
}
|
|
2164
|
-
|
|
2165
|
-
/** @returns {RulePriorityResponse} */
|
|
2166
|
-
static RulePriorityResponse() {
|
|
2167
|
-
return Joi.object({
|
|
2168
|
-
success: Joi.boolean(),
|
|
2169
|
-
});
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
/** @returns {SchemeRules} */
|
|
2173
|
-
static SchemeRules() {
|
|
2174
|
-
return Joi.object({
|
|
2175
|
-
feature: ServiceabilityPlatformModel.SchemeRulesFeatures(),
|
|
2176
|
-
payment_mode: Joi.array().items(Joi.string().allow("")),
|
|
2177
|
-
region: Joi.string().allow(""),
|
|
2178
|
-
transport_type: Joi.array().items(Joi.string().allow("")),
|
|
2179
|
-
weight: ServiceabilityPlatformModel.ArithmeticOperations(),
|
|
2180
|
-
});
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
/** @returns {SchemeRulesFeatures} */
|
|
2184
|
-
static SchemeRulesFeatures() {
|
|
2185
|
-
return Joi.object({
|
|
2186
|
-
battery_operated: Joi.boolean(),
|
|
2187
|
-
e_waybill: Joi.boolean(),
|
|
2188
|
-
flammable: Joi.boolean(),
|
|
2189
|
-
hazmat: Joi.boolean(),
|
|
2190
|
-
multi_part_shipments: Joi.boolean(),
|
|
2191
|
-
quality_check: Joi.boolean(),
|
|
2192
|
-
quick_response_code: Joi.boolean(),
|
|
2193
|
-
});
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
/** @returns {SelfShipResponse} */
|
|
2197
|
-
static SelfShipResponse() {
|
|
2198
|
-
return Joi.object({
|
|
2199
|
-
is_active: Joi.boolean().required(),
|
|
2200
|
-
tat: Joi.number().required(),
|
|
2201
1522
|
});
|
|
2202
1523
|
}
|
|
2203
1524
|
|
|
2204
|
-
/** @returns {
|
|
2205
|
-
static
|
|
1525
|
+
/** @returns {ErrorResponse} */
|
|
1526
|
+
static ErrorResponse() {
|
|
2206
1527
|
return Joi.object({
|
|
2207
1528
|
message: Joi.string().allow("").required(),
|
|
2208
|
-
type: Joi.string().allow("").required(),
|
|
2209
1529
|
value: Joi.string().allow("").required(),
|
|
1530
|
+
type: Joi.string().allow("").required(),
|
|
2210
1531
|
});
|
|
2211
1532
|
}
|
|
2212
1533
|
|
|
2213
|
-
/** @returns {
|
|
2214
|
-
static
|
|
1534
|
+
/** @returns {DpAccountFailureResponse} */
|
|
1535
|
+
static DpAccountFailureResponse() {
|
|
2215
1536
|
return Joi.object({
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
lm_cod_limit: Joi.number().required(),
|
|
2222
|
-
pickup_cutoff: Joi.string().allow("").allow(null).required(),
|
|
2223
|
-
route_code: Joi.string().allow("").allow(null).required(),
|
|
1537
|
+
status_code: Joi.number().required(),
|
|
1538
|
+
error: Joi.array()
|
|
1539
|
+
.items(ServiceabilityPlatformModel.ErrorResponse())
|
|
1540
|
+
.required(),
|
|
1541
|
+
success: Joi.boolean().required(),
|
|
2224
1542
|
});
|
|
2225
1543
|
}
|
|
2226
1544
|
|
|
2227
|
-
/** @returns {
|
|
2228
|
-
static
|
|
1545
|
+
/** @returns {Page} */
|
|
1546
|
+
static Page() {
|
|
2229
1547
|
return Joi.object({
|
|
2230
|
-
current: Joi.number(),
|
|
2231
|
-
has_next: Joi.boolean(),
|
|
2232
1548
|
item_total: Joi.number(),
|
|
1549
|
+
next_id: Joi.string().allow(""),
|
|
1550
|
+
has_previous: Joi.boolean(),
|
|
1551
|
+
has_next: Joi.boolean(),
|
|
1552
|
+
current: Joi.number(),
|
|
1553
|
+
type: Joi.string().allow("").required(),
|
|
2233
1554
|
size: Joi.number(),
|
|
2234
|
-
type: Joi.string().allow(""),
|
|
2235
1555
|
});
|
|
2236
1556
|
}
|
|
2237
1557
|
|
|
2238
|
-
/** @returns {
|
|
2239
|
-
static
|
|
1558
|
+
/** @returns {CompanyDpAccountListResponse} */
|
|
1559
|
+
static CompanyDpAccountListResponse() {
|
|
2240
1560
|
return Joi.object({
|
|
2241
|
-
|
|
2242
|
-
|
|
1561
|
+
success: Joi.boolean().required(),
|
|
1562
|
+
page: ServiceabilityPlatformModel.Page().required(),
|
|
1563
|
+
items: Joi.array().items(ServiceabilityPlatformModel.Dp1()).required(),
|
|
2243
1564
|
});
|
|
2244
1565
|
}
|
|
2245
1566
|
|
|
2246
|
-
/** @returns {
|
|
2247
|
-
static
|
|
1567
|
+
/** @returns {DpRulesUpdateRequest} */
|
|
1568
|
+
static DpRulesUpdateRequest() {
|
|
2248
1569
|
return Joi.object({
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
order_place_date: ServiceabilityPlatformModel.ArithmeticOperations(),
|
|
2254
|
-
product_ids: ServiceabilityPlatformModel.IntComparisonOperations(),
|
|
2255
|
-
product_tags: ServiceabilityPlatformModel.StringComparisonOperations(),
|
|
2256
|
-
store_tags: ServiceabilityPlatformModel.StringComparisonOperations(),
|
|
2257
|
-
store_type: ServiceabilityPlatformModel.StringComparisonOperations(),
|
|
2258
|
-
to_location: ServiceabilityPlatformModel.LocationRule(),
|
|
2259
|
-
zone_ids: ServiceabilityPlatformModel.StringComparisonOperations(),
|
|
1570
|
+
is_active: Joi.boolean().required(),
|
|
1571
|
+
conditions: Joi.array().items(Joi.any()).required(),
|
|
1572
|
+
dp_ids: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
1573
|
+
name: Joi.string().allow("").required(),
|
|
2260
1574
|
});
|
|
2261
1575
|
}
|
|
2262
1576
|
|
|
2263
|
-
/** @returns {
|
|
2264
|
-
static
|
|
1577
|
+
/** @returns {DpRuleResponse} */
|
|
1578
|
+
static DpRuleResponse() {
|
|
2265
1579
|
return Joi.object({
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
),
|
|
2271
|
-
|
|
2272
|
-
|
|
1580
|
+
created_on: Joi.string().allow(""),
|
|
1581
|
+
name: Joi.string().allow("").required(),
|
|
1582
|
+
modified_by: Joi.any(),
|
|
1583
|
+
dp_ids: Joi.any().required(),
|
|
1584
|
+
is_active: Joi.boolean(),
|
|
1585
|
+
modified_on: Joi.string().allow(""),
|
|
1586
|
+
uid: Joi.string().allow("").required(),
|
|
1587
|
+
created_by: Joi.any(),
|
|
1588
|
+
company_id: Joi.number().required(),
|
|
1589
|
+
conditions: Joi.array().items(Joi.string().allow("")).required(),
|
|
2273
1590
|
});
|
|
2274
1591
|
}
|
|
2275
1592
|
|
|
2276
|
-
/** @returns {
|
|
2277
|
-
static
|
|
1593
|
+
/** @returns {DpRuleUpdateSuccessResponse} */
|
|
1594
|
+
static DpRuleUpdateSuccessResponse() {
|
|
2278
1595
|
return Joi.object({
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
id: Joi.string().allow(""),
|
|
2283
|
-
is_active: Joi.boolean(),
|
|
2284
|
-
name: Joi.string().allow(""),
|
|
2285
|
-
sort: Joi.array().items(Joi.string().allow("")),
|
|
2286
|
-
store_priority: Joi.array().items(
|
|
2287
|
-
ServiceabilityPlatformModel.StorePrioritySchema()
|
|
2288
|
-
),
|
|
2289
|
-
tag_based_priority: Joi.array().items(Joi.string().allow("")),
|
|
2290
|
-
type_based_priority: Joi.array().items(Joi.string().allow("")),
|
|
1596
|
+
status_code: Joi.number().required(),
|
|
1597
|
+
data: ServiceabilityPlatformModel.DpRuleResponse().required(),
|
|
1598
|
+
success: Joi.boolean().required(),
|
|
2291
1599
|
});
|
|
2292
1600
|
}
|
|
2293
1601
|
|
|
2294
|
-
/** @returns {
|
|
2295
|
-
static
|
|
1602
|
+
/** @returns {FailureResponse} */
|
|
1603
|
+
static FailureResponse() {
|
|
2296
1604
|
return Joi.object({
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
store_priority: Joi.array().items(
|
|
2303
|
-
ServiceabilityPlatformModel.StorePrioritySchema()
|
|
2304
|
-
),
|
|
2305
|
-
tag_based_priority: Joi.array().items(Joi.string().allow("")),
|
|
2306
|
-
type: Joi.string().allow(""),
|
|
2307
|
-
type_based_priority: Joi.array().items(Joi.string().allow("")),
|
|
1605
|
+
status_code: Joi.number().required(),
|
|
1606
|
+
error: Joi.array()
|
|
1607
|
+
.items(ServiceabilityPlatformModel.ErrorResponse())
|
|
1608
|
+
.required(),
|
|
1609
|
+
success: Joi.boolean().required(),
|
|
2308
1610
|
});
|
|
2309
1611
|
}
|
|
2310
1612
|
|
|
2311
|
-
/** @returns {
|
|
2312
|
-
static
|
|
1613
|
+
/** @returns {DpSchemaInRuleListing} */
|
|
1614
|
+
static DpSchemaInRuleListing() {
|
|
2313
1615
|
return Joi.object({
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
ServiceabilityPlatformModel.StorePrioritySchema()
|
|
2323
|
-
),
|
|
2324
|
-
tag_based_priority: Joi.array().items(Joi.string().allow("")),
|
|
2325
|
-
type: Joi.string().allow(""),
|
|
2326
|
-
type_based_priority: Joi.array().items(Joi.string().allow("")),
|
|
1616
|
+
is_self_ship: Joi.boolean().required(),
|
|
1617
|
+
name: Joi.string().allow("").required(),
|
|
1618
|
+
plan_id: Joi.string().allow("").required(),
|
|
1619
|
+
stage: Joi.string().allow("").required(),
|
|
1620
|
+
account_id: Joi.string().allow("").required(),
|
|
1621
|
+
priority: Joi.number().required(),
|
|
1622
|
+
dp_id: Joi.string().allow("").required(),
|
|
1623
|
+
plan_rules: Joi.any().required(),
|
|
2327
1624
|
});
|
|
2328
1625
|
}
|
|
2329
1626
|
|
|
2330
|
-
/** @returns {
|
|
2331
|
-
static
|
|
1627
|
+
/** @returns {DpRule} */
|
|
1628
|
+
static DpRule() {
|
|
2332
1629
|
return Joi.object({
|
|
2333
|
-
|
|
1630
|
+
name: Joi.string().allow("").required(),
|
|
1631
|
+
dp_ids: Joi.object()
|
|
1632
|
+
.pattern(/\S/, ServiceabilityPlatformModel.DpSchemaInRuleListing())
|
|
1633
|
+
.required(),
|
|
1634
|
+
is_active: Joi.boolean(),
|
|
1635
|
+
company_id: Joi.number(),
|
|
1636
|
+
conditions: Joi.array().items(Joi.any()).required(),
|
|
2334
1637
|
});
|
|
2335
1638
|
}
|
|
2336
1639
|
|
|
2337
|
-
/** @returns {
|
|
2338
|
-
static
|
|
1640
|
+
/** @returns {DpRuleSuccessResponse} */
|
|
1641
|
+
static DpRuleSuccessResponse() {
|
|
2339
1642
|
return Joi.object({
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
weekday: Joi.string().allow(""),
|
|
1643
|
+
status_code: Joi.number().required(),
|
|
1644
|
+
data: ServiceabilityPlatformModel.DpRule().required(),
|
|
1645
|
+
success: Joi.boolean().required(),
|
|
2344
1646
|
});
|
|
2345
1647
|
}
|
|
2346
1648
|
|
|
2347
|
-
/** @returns {
|
|
2348
|
-
static
|
|
1649
|
+
/** @returns {DpIds} */
|
|
1650
|
+
static DpIds() {
|
|
2349
1651
|
return Joi.object({
|
|
2350
|
-
|
|
1652
|
+
enabled: Joi.boolean().required(),
|
|
1653
|
+
priority: Joi.number().required(),
|
|
1654
|
+
meta: Joi.any(),
|
|
2351
1655
|
});
|
|
2352
1656
|
}
|
|
2353
1657
|
|
|
2354
|
-
/** @returns {
|
|
2355
|
-
static
|
|
1658
|
+
/** @returns {DpRuleRequest} */
|
|
1659
|
+
static DpRuleRequest() {
|
|
2356
1660
|
return Joi.object({
|
|
2357
|
-
assignment_preference: Joi.string().allow(""),
|
|
2358
|
-
channels: Joi.array()
|
|
2359
|
-
.items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
|
|
2360
|
-
.required(),
|
|
2361
|
-
company_id: Joi.number().required(),
|
|
2362
|
-
is_active: Joi.boolean().required(),
|
|
2363
|
-
mapping: Joi.array()
|
|
2364
|
-
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
2365
|
-
.required(),
|
|
2366
1661
|
name: Joi.string().allow("").required(),
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
1662
|
+
dp_ids: Joi.object()
|
|
1663
|
+
.pattern(/\S/, ServiceabilityPlatformModel.DpIds())
|
|
1664
|
+
.required(),
|
|
1665
|
+
is_active: Joi.boolean(),
|
|
1666
|
+
company_id: Joi.number(),
|
|
1667
|
+
conditions: Joi.array().items(Joi.any()).required(),
|
|
2372
1668
|
});
|
|
2373
1669
|
}
|
|
2374
1670
|
|
|
2375
|
-
/** @returns {
|
|
2376
|
-
static
|
|
1671
|
+
/** @returns {DpMultipleRuleSuccessResponse} */
|
|
1672
|
+
static DpMultipleRuleSuccessResponse() {
|
|
2377
1673
|
return Joi.object({
|
|
2378
|
-
|
|
1674
|
+
success: Joi.boolean().required(),
|
|
1675
|
+
page: ServiceabilityPlatformModel.Page().required(),
|
|
1676
|
+
items: Joi.array().items(ServiceabilityPlatformModel.DpRule()).required(),
|
|
2379
1677
|
});
|
|
2380
1678
|
}
|
|
2381
1679
|
|
|
2382
|
-
/** @returns {
|
|
2383
|
-
static
|
|
1680
|
+
/** @returns {DPCompanyRuleRequest} */
|
|
1681
|
+
static DPCompanyRuleRequest() {
|
|
2384
1682
|
return Joi.object({
|
|
2385
|
-
|
|
2386
|
-
is_active: Joi.boolean().required(),
|
|
2387
|
-
name: Joi.string().allow("").required(),
|
|
2388
|
-
slug: Joi.string().allow("").required(),
|
|
2389
|
-
store_ids: Joi.array().items(Joi.number()).required(),
|
|
2390
|
-
tags: Joi.array().items(Joi.string().allow("")).required(),
|
|
2391
|
-
type: Joi.string().allow("").required(),
|
|
2392
|
-
zone_id: Joi.string().allow("").required(),
|
|
1683
|
+
rule_ids: Joi.array().items(Joi.string().allow("")).required(),
|
|
2393
1684
|
});
|
|
2394
1685
|
}
|
|
2395
1686
|
|
|
2396
|
-
/** @returns {
|
|
2397
|
-
static
|
|
1687
|
+
/** @returns {DPCompanyRuleResponse} */
|
|
1688
|
+
static DPCompanyRuleResponse() {
|
|
2398
1689
|
return Joi.object({
|
|
2399
|
-
|
|
1690
|
+
status_code: Joi.number().required(),
|
|
1691
|
+
data: Joi.array()
|
|
1692
|
+
.items(ServiceabilityPlatformModel.DpRuleResponse())
|
|
1693
|
+
.required(),
|
|
1694
|
+
success: Joi.boolean().required(),
|
|
2400
1695
|
});
|
|
2401
1696
|
}
|
|
2402
1697
|
|
|
2403
|
-
/** @returns {
|
|
2404
|
-
static
|
|
1698
|
+
/** @returns {DPApplicationRuleRequest} */
|
|
1699
|
+
static DPApplicationRuleRequest() {
|
|
2405
1700
|
return Joi.object({
|
|
2406
|
-
|
|
2407
|
-
has_next: Joi.boolean().required(),
|
|
2408
|
-
item_total: Joi.number().required(),
|
|
2409
|
-
size: Joi.number().required(),
|
|
2410
|
-
type: Joi.string().allow("").required(),
|
|
1701
|
+
shipping_rules: Joi.array().items(Joi.string().allow("")).required(),
|
|
2411
1702
|
});
|
|
2412
1703
|
}
|
|
2413
1704
|
|
|
2414
|
-
/** @returns {
|
|
2415
|
-
static
|
|
1705
|
+
/** @returns {DPApplicationRuleResponse} */
|
|
1706
|
+
static DPApplicationRuleResponse() {
|
|
2416
1707
|
return Joi.object({
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
1708
|
+
status_code: Joi.boolean().required(),
|
|
1709
|
+
data: Joi.array()
|
|
1710
|
+
.items(ServiceabilityPlatformModel.DpRuleResponse())
|
|
1711
|
+
.required(),
|
|
1712
|
+
success: Joi.boolean().required(),
|
|
2420
1713
|
});
|
|
2421
1714
|
}
|
|
2422
1715
|
|
|
2423
|
-
/** @returns {
|
|
2424
|
-
static
|
|
1716
|
+
/** @returns {SelfShipResponse} */
|
|
1717
|
+
static SelfShipResponse() {
|
|
2425
1718
|
return Joi.object({
|
|
2426
|
-
|
|
2427
|
-
|
|
1719
|
+
is_active: Joi.boolean().required(),
|
|
1720
|
+
tat: Joi.number().required(),
|
|
2428
1721
|
});
|
|
2429
1722
|
}
|
|
2430
1723
|
|
|
2431
|
-
/** @returns {
|
|
2432
|
-
static
|
|
1724
|
+
/** @returns {ApplicationSelfShipConfig} */
|
|
1725
|
+
static ApplicationSelfShipConfig() {
|
|
2433
1726
|
return Joi.object({
|
|
2434
|
-
|
|
2435
|
-
success: Joi.boolean().required(),
|
|
2436
|
-
zone_id: Joi.string().allow("").required(),
|
|
1727
|
+
self_ship: Joi.any().allow(null),
|
|
2437
1728
|
});
|
|
2438
1729
|
}
|
|
2439
1730
|
|
|
2440
|
-
/** @returns {
|
|
2441
|
-
static
|
|
1731
|
+
/** @returns {ApplicationSelfShipConfigResponse} */
|
|
1732
|
+
static ApplicationSelfShipConfigResponse() {
|
|
2442
1733
|
return Joi.object({
|
|
2443
|
-
|
|
1734
|
+
error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
|
|
1735
|
+
data: ServiceabilityPlatformModel.ApplicationSelfShipConfig(),
|
|
2444
1736
|
success: Joi.boolean().required(),
|
|
2445
1737
|
});
|
|
2446
1738
|
}
|
|
2447
|
-
|
|
2448
|
-
/** @returns {ZoneUpdateRequest} */
|
|
2449
|
-
static ZoneUpdateRequest() {
|
|
2450
|
-
return Joi.object({
|
|
2451
|
-
data: ServiceabilityPlatformModel.UpdateZoneData().required(),
|
|
2452
|
-
identifier: Joi.string().allow("").required(),
|
|
2453
|
-
});
|
|
2454
|
-
}
|
|
2455
1739
|
}
|
|
2456
1740
|
module.exports = ServiceabilityPlatformModel;
|