@gofynd/fdk-client-javascript 1.4.12 → 1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
- package/sdk/application/Content/ContentApplicationModel.js +88 -34
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
- package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/common/Clickstream.js +12 -0
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
- package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
- package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
- package/sdk/platform/Content/ContentPlatformModel.js +526 -392
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
- package/sdk/platform/Order/OrderPlatformClient.js +267 -203
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
- package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
- package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
- package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef UpdateZoneConfigDetails
|
|
5
5
|
* @property {string} [serviceability_type]
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @typedef
|
|
9
|
+
* @typedef ServiceabilityErrorResult
|
|
10
10
|
* @property {string} message
|
|
11
11
|
* @property {string} value
|
|
12
12
|
* @property {string} type
|
|
@@ -20,14 +20,14 @@ const Joi = require("joi");
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @typedef
|
|
24
|
-
* @property {
|
|
23
|
+
* @typedef ApplicationServiceabilityConfigResult
|
|
24
|
+
* @property {ServiceabilityErrorResult} [error]
|
|
25
25
|
* @property {ApplicationServiceabilityConfig} [data]
|
|
26
26
|
* @property {boolean} success
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* @typedef
|
|
30
|
+
* @typedef EntityRegionView_Details
|
|
31
31
|
* @property {string[]} sub_type
|
|
32
32
|
* @property {string[]} [parent_id]
|
|
33
33
|
*/
|
|
@@ -49,7 +49,7 @@ const Joi = require("joi");
|
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* @typedef
|
|
52
|
+
* @typedef getAppRegionZonesResult
|
|
53
53
|
* @property {PageSchema[]} page
|
|
54
54
|
* @property {ListViewItems[]} items
|
|
55
55
|
*/
|
|
@@ -71,7 +71,7 @@ const Joi = require("joi");
|
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* @typedef
|
|
74
|
+
* @typedef EntityRegionView_Result
|
|
75
75
|
* @property {EntityRegionView_Error} error
|
|
76
76
|
* @property {EntityRegionView_page} page
|
|
77
77
|
* @property {EntityRegionView_Items[]} data
|
|
@@ -123,7 +123,7 @@ const Joi = require("joi");
|
|
|
123
123
|
*/
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* @typedef
|
|
126
|
+
* @typedef ListViewResult
|
|
127
127
|
* @property {ZoneDataItem} page
|
|
128
128
|
* @property {ListViewItems[]} items
|
|
129
129
|
*/
|
|
@@ -138,7 +138,7 @@ const Joi = require("joi");
|
|
|
138
138
|
*/
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* @typedef
|
|
141
|
+
* @typedef CompanyStoreView_Result
|
|
142
142
|
* @property {CompanyStoreView_PageItems[]} page
|
|
143
143
|
* @property {Object[]} [items]
|
|
144
144
|
*/
|
|
@@ -178,13 +178,13 @@ const Joi = require("joi");
|
|
|
178
178
|
*/
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
|
-
* @typedef
|
|
181
|
+
* @typedef ZoneUpdateDetails
|
|
182
182
|
* @property {string} identifier
|
|
183
183
|
* @property {UpdateZoneData} data
|
|
184
184
|
*/
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
|
-
* @typedef
|
|
187
|
+
* @typedef ZoneSuccessResult
|
|
188
188
|
* @property {number} status_code
|
|
189
189
|
* @property {boolean} success
|
|
190
190
|
*/
|
|
@@ -206,7 +206,7 @@ const Joi = require("joi");
|
|
|
206
206
|
*/
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* @typedef
|
|
209
|
+
* @typedef GetSingleZoneDataViewResult
|
|
210
210
|
* @property {GetZoneDataViewItems} data
|
|
211
211
|
*/
|
|
212
212
|
|
|
@@ -240,14 +240,14 @@ const Joi = require("joi");
|
|
|
240
240
|
*/
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
|
-
* @typedef
|
|
243
|
+
* @typedef ZoneResult
|
|
244
244
|
* @property {number} status_code
|
|
245
245
|
* @property {string} zone_id
|
|
246
246
|
* @property {boolean} success
|
|
247
247
|
*/
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
|
-
* @typedef
|
|
250
|
+
* @typedef GetZoneFromPincodeViewDetails
|
|
251
251
|
* @property {string} country
|
|
252
252
|
* @property {string} pincode
|
|
253
253
|
*/
|
|
@@ -265,19 +265,19 @@ const Joi = require("joi");
|
|
|
265
265
|
*/
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
|
-
* @typedef
|
|
268
|
+
* @typedef GetZoneFromPincodeViewResult
|
|
269
269
|
* @property {string} serviceability_type
|
|
270
270
|
* @property {Zone[]} zones
|
|
271
271
|
*/
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
|
-
* @typedef
|
|
274
|
+
* @typedef GetZoneFromApplicationIdViewResult
|
|
275
275
|
* @property {ZoneDataItem[]} page
|
|
276
276
|
* @property {ListViewItems[]} items
|
|
277
277
|
*/
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
|
-
* @typedef
|
|
280
|
+
* @typedef ServiceabilityPageResult
|
|
281
281
|
* @property {string} [type]
|
|
282
282
|
* @property {boolean} [has_next]
|
|
283
283
|
* @property {number} [item_total]
|
|
@@ -292,37 +292,37 @@ const Joi = require("joi");
|
|
|
292
292
|
*/
|
|
293
293
|
|
|
294
294
|
/**
|
|
295
|
-
* @typedef
|
|
295
|
+
* @typedef ManagerResult
|
|
296
296
|
* @property {string} [email]
|
|
297
297
|
* @property {MobileNo} [mobile_no]
|
|
298
298
|
* @property {string} [name]
|
|
299
299
|
*/
|
|
300
300
|
|
|
301
301
|
/**
|
|
302
|
-
* @typedef
|
|
302
|
+
* @typedef ModifiedByResult
|
|
303
303
|
* @property {string} [username]
|
|
304
304
|
* @property {string} [user_id]
|
|
305
305
|
*/
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
|
-
* @typedef
|
|
308
|
+
* @typedef IntegrationTypeResult
|
|
309
309
|
* @property {string} [inventory]
|
|
310
310
|
* @property {string} [order]
|
|
311
311
|
*/
|
|
312
312
|
|
|
313
313
|
/**
|
|
314
|
-
* @typedef
|
|
314
|
+
* @typedef ProductReturnConfigResult
|
|
315
315
|
* @property {boolean} [on_same_store]
|
|
316
316
|
*/
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
|
-
* @typedef
|
|
319
|
+
* @typedef ContactNumberResult
|
|
320
320
|
* @property {string} [number]
|
|
321
321
|
* @property {number} [country_code]
|
|
322
322
|
*/
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
|
-
* @typedef
|
|
325
|
+
* @typedef AddressResult
|
|
326
326
|
* @property {string} [city]
|
|
327
327
|
* @property {string} [address1]
|
|
328
328
|
* @property {number} [pincode]
|
|
@@ -335,29 +335,29 @@ const Joi = require("joi");
|
|
|
335
335
|
*/
|
|
336
336
|
|
|
337
337
|
/**
|
|
338
|
-
* @typedef
|
|
338
|
+
* @typedef CreatedByResult
|
|
339
339
|
* @property {string} [username]
|
|
340
340
|
* @property {string} [user_id]
|
|
341
341
|
*/
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
|
-
* @typedef
|
|
344
|
+
* @typedef EwayBillResult
|
|
345
345
|
* @property {boolean} [enabled]
|
|
346
346
|
*/
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
|
-
* @typedef
|
|
349
|
+
* @typedef EinvoiceResult
|
|
350
350
|
* @property {boolean} [enabled]
|
|
351
351
|
*/
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* @typedef
|
|
355
|
-
* @property {
|
|
356
|
-
* @property {
|
|
354
|
+
* @typedef GstCredentialsResult
|
|
355
|
+
* @property {EwayBillResult} [e_waybill]
|
|
356
|
+
* @property {EinvoiceResult} [e_invoice]
|
|
357
357
|
*/
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
|
-
* @typedef
|
|
360
|
+
* @typedef WarningsResult
|
|
361
361
|
* @property {string} [store_address]
|
|
362
362
|
*/
|
|
363
363
|
|
|
@@ -368,7 +368,7 @@ const Joi = require("joi");
|
|
|
368
368
|
*/
|
|
369
369
|
|
|
370
370
|
/**
|
|
371
|
-
* @typedef
|
|
371
|
+
* @typedef TimmingResult
|
|
372
372
|
* @property {boolean} [open]
|
|
373
373
|
* @property {string} [weekday]
|
|
374
374
|
* @property {OpeningClosing} [closing]
|
|
@@ -376,7 +376,7 @@ const Joi = require("joi");
|
|
|
376
376
|
*/
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
|
-
* @typedef
|
|
379
|
+
* @typedef DocumentsResult
|
|
380
380
|
* @property {string} [legal_name]
|
|
381
381
|
* @property {string} [value]
|
|
382
382
|
* @property {string} [type]
|
|
@@ -398,47 +398,47 @@ const Joi = require("joi");
|
|
|
398
398
|
*/
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
|
-
* @typedef
|
|
401
|
+
* @typedef LogisticsResult
|
|
402
402
|
* @property {boolean} [override]
|
|
403
403
|
* @property {Dp} [dp]
|
|
404
404
|
*/
|
|
405
405
|
|
|
406
406
|
/**
|
|
407
|
-
* @typedef
|
|
407
|
+
* @typedef ItemResult
|
|
408
408
|
* @property {string} [created_on]
|
|
409
|
-
* @property {
|
|
410
|
-
* @property {
|
|
411
|
-
* @property {
|
|
409
|
+
* @property {ManagerResult} [manager]
|
|
410
|
+
* @property {ModifiedByResult} [modified_by]
|
|
411
|
+
* @property {IntegrationTypeResult} [integration_type]
|
|
412
412
|
* @property {string} [verified_on]
|
|
413
|
-
* @property {
|
|
414
|
-
* @property {
|
|
415
|
-
* @property {
|
|
413
|
+
* @property {ProductReturnConfigResult} [product_return_config]
|
|
414
|
+
* @property {ContactNumberResult[]} [contact_numbers]
|
|
415
|
+
* @property {ModifiedByResult} [verified_by]
|
|
416
416
|
* @property {string} [stage]
|
|
417
|
-
* @property {
|
|
417
|
+
* @property {AddressResult} [address]
|
|
418
418
|
* @property {string} [modified_on]
|
|
419
|
-
* @property {
|
|
420
|
-
* @property {
|
|
419
|
+
* @property {CreatedByResult} [created_by]
|
|
420
|
+
* @property {GstCredentialsResult} [gst_credentials]
|
|
421
421
|
* @property {string} [display_name]
|
|
422
422
|
* @property {number} [company_id]
|
|
423
423
|
* @property {number} [uid]
|
|
424
424
|
* @property {Object} [_custom_json]
|
|
425
425
|
* @property {string} [code]
|
|
426
|
-
* @property {
|
|
426
|
+
* @property {WarningsResult} [warnings]
|
|
427
427
|
* @property {string} [name]
|
|
428
|
-
* @property {
|
|
429
|
-
* @property {
|
|
428
|
+
* @property {TimmingResult[]} [timing]
|
|
429
|
+
* @property {DocumentsResult[]} [documents]
|
|
430
430
|
* @property {string} [store_type]
|
|
431
431
|
* @property {string} [sub_type]
|
|
432
432
|
* @property {number} [company]
|
|
433
433
|
* @property {string} [_cls]
|
|
434
|
-
* @property {
|
|
434
|
+
* @property {LogisticsResult} [logistics]
|
|
435
435
|
* @property {string[]} [notification_emails]
|
|
436
436
|
*/
|
|
437
437
|
|
|
438
438
|
/**
|
|
439
|
-
* @typedef
|
|
440
|
-
* @property {
|
|
441
|
-
* @property {
|
|
439
|
+
* @typedef GetStoresViewResult
|
|
440
|
+
* @property {ServiceabilityPageResult} page
|
|
441
|
+
* @property {ItemResult[]} [items]
|
|
442
442
|
*/
|
|
443
443
|
|
|
444
444
|
/**
|
|
@@ -449,7 +449,7 @@ const Joi = require("joi");
|
|
|
449
449
|
*/
|
|
450
450
|
|
|
451
451
|
/**
|
|
452
|
-
* @typedef
|
|
452
|
+
* @typedef PincodeMopUpdateResult
|
|
453
453
|
* @property {number} pincode
|
|
454
454
|
* @property {string} channel_id
|
|
455
455
|
* @property {string} country
|
|
@@ -457,14 +457,14 @@ const Joi = require("joi");
|
|
|
457
457
|
*/
|
|
458
458
|
|
|
459
459
|
/**
|
|
460
|
-
* @typedef
|
|
460
|
+
* @typedef PincodeMOPResult
|
|
461
461
|
* @property {boolean} success
|
|
462
462
|
* @property {number} status_code
|
|
463
463
|
* @property {string} batch_id
|
|
464
464
|
* @property {string} country
|
|
465
465
|
* @property {string} action
|
|
466
466
|
* @property {number[]} [pincodes]
|
|
467
|
-
* @property {
|
|
467
|
+
* @property {PincodeMopUpdateResult[]} [updated_pincodes]
|
|
468
468
|
*/
|
|
469
469
|
|
|
470
470
|
/**
|
|
@@ -481,13 +481,13 @@ const Joi = require("joi");
|
|
|
481
481
|
*/
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
|
-
* @typedef
|
|
484
|
+
* @typedef PincodeBulkViewResult
|
|
485
485
|
* @property {string} batch_id
|
|
486
486
|
* @property {string} s3_url
|
|
487
487
|
*/
|
|
488
488
|
|
|
489
489
|
/**
|
|
490
|
-
* @typedef
|
|
490
|
+
* @typedef PincodeCodStatusListingDetails
|
|
491
491
|
* @property {string} [country]
|
|
492
492
|
* @property {boolean} [is_active]
|
|
493
493
|
* @property {number} [pincode]
|
|
@@ -496,9 +496,9 @@ const Joi = require("joi");
|
|
|
496
496
|
*/
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
|
-
* @typedef
|
|
499
|
+
* @typedef PincodeCodStatusListingResult
|
|
500
500
|
* @property {string} country
|
|
501
|
-
* @property {
|
|
501
|
+
* @property {PincodeCodStatusListingResult[]} data
|
|
502
502
|
* @property {boolean} success
|
|
503
503
|
* @property {Error[]} [errors]
|
|
504
504
|
* @property {PincodeCodStatusListingPage} page
|
|
@@ -528,7 +528,7 @@ const Joi = require("joi");
|
|
|
528
528
|
*/
|
|
529
529
|
|
|
530
530
|
/**
|
|
531
|
-
* @typedef
|
|
531
|
+
* @typedef PincodeMopUpdateAuditHistoryDetails
|
|
532
532
|
* @property {string} entity_type
|
|
533
533
|
* @property {string} [file_name]
|
|
534
534
|
*/
|
|
@@ -543,7 +543,7 @@ const Joi = require("joi");
|
|
|
543
543
|
*/
|
|
544
544
|
|
|
545
545
|
/**
|
|
546
|
-
* @typedef
|
|
546
|
+
* @typedef PincodeMopUpdateAuditHistoryResult
|
|
547
547
|
* @property {string} [batch_id]
|
|
548
548
|
* @property {string} [entity_type]
|
|
549
549
|
* @property {string} [error_file_s3_url]
|
|
@@ -555,10 +555,10 @@ const Joi = require("joi");
|
|
|
555
555
|
*/
|
|
556
556
|
|
|
557
557
|
/**
|
|
558
|
-
* @typedef
|
|
558
|
+
* @typedef PincodeMopUpdateAuditHistoryResultData
|
|
559
559
|
* @property {string} [entity_type]
|
|
560
560
|
* @property {PincodeMopUpdateAuditHistoryPaging} page
|
|
561
|
-
* @property {
|
|
561
|
+
* @property {PincodeMopUpdateAuditHistoryResult[]} data
|
|
562
562
|
*/
|
|
563
563
|
|
|
564
564
|
/**
|
|
@@ -600,7 +600,7 @@ const Joi = require("joi");
|
|
|
600
600
|
*/
|
|
601
601
|
|
|
602
602
|
/**
|
|
603
|
-
* @typedef
|
|
603
|
+
* @typedef CourierAccountDetailsBody
|
|
604
604
|
* @property {string} extension_id
|
|
605
605
|
* @property {string} [account_id]
|
|
606
606
|
* @property {string} scheme_id
|
|
@@ -610,16 +610,16 @@ const Joi = require("joi");
|
|
|
610
610
|
*/
|
|
611
611
|
|
|
612
612
|
/**
|
|
613
|
-
* @typedef
|
|
613
|
+
* @typedef ErrorResult
|
|
614
614
|
* @property {string} value
|
|
615
615
|
* @property {string} message
|
|
616
616
|
* @property {string} type
|
|
617
617
|
*/
|
|
618
618
|
|
|
619
619
|
/**
|
|
620
|
-
* @typedef
|
|
620
|
+
* @typedef CourierPartnerAccountFailureResult
|
|
621
621
|
* @property {boolean} success
|
|
622
|
-
* @property {
|
|
622
|
+
* @property {ErrorResult[]} error
|
|
623
623
|
*/
|
|
624
624
|
|
|
625
625
|
/**
|
|
@@ -634,7 +634,7 @@ const Joi = require("joi");
|
|
|
634
634
|
*/
|
|
635
635
|
|
|
636
636
|
/**
|
|
637
|
-
* @typedef
|
|
637
|
+
* @typedef CourierPartnerRuleCPListResult
|
|
638
638
|
* @property {string} [account_id]
|
|
639
639
|
* @property {string} [extension_id]
|
|
640
640
|
* @property {boolean} [is_self_ship]
|
|
@@ -642,7 +642,7 @@ const Joi = require("joi");
|
|
|
642
642
|
*/
|
|
643
643
|
|
|
644
644
|
/**
|
|
645
|
-
* @typedef
|
|
645
|
+
* @typedef CourierPartnerRuleResult
|
|
646
646
|
* @property {boolean} [is_active]
|
|
647
647
|
* @property {string} [application_id]
|
|
648
648
|
* @property {number} [company_id]
|
|
@@ -654,7 +654,7 @@ const Joi = require("joi");
|
|
|
654
654
|
* @property {string} [modified_on]
|
|
655
655
|
* @property {string} [name]
|
|
656
656
|
* @property {string} [type]
|
|
657
|
-
* @property {
|
|
657
|
+
* @property {CourierPartnerRuleCPListResult[]} [cp_list]
|
|
658
658
|
*/
|
|
659
659
|
|
|
660
660
|
/**
|
|
@@ -719,17 +719,91 @@ const Joi = require("joi");
|
|
|
719
719
|
*/
|
|
720
720
|
|
|
721
721
|
/**
|
|
722
|
-
* @typedef
|
|
722
|
+
* @typedef FailureResult
|
|
723
723
|
* @property {boolean} success
|
|
724
|
-
* @property {
|
|
724
|
+
* @property {ErrorResult[]} error
|
|
725
725
|
*/
|
|
726
726
|
|
|
727
727
|
/**
|
|
728
|
-
* @typedef
|
|
729
|
-
* @property {
|
|
728
|
+
* @typedef CourierPartnerRulesListResult
|
|
729
|
+
* @property {CourierPartnerRuleResult[]} items
|
|
730
730
|
* @property {Page} page
|
|
731
731
|
*/
|
|
732
732
|
|
|
733
|
+
/**
|
|
734
|
+
* @typedef ShipmentsArticles
|
|
735
|
+
* @property {number} [item_id] - Unique identifier of the item.
|
|
736
|
+
* @property {number} [category_id] - Unique identifier of the category.
|
|
737
|
+
* @property {number} [brand_id] - Unique identifier of the brand.
|
|
738
|
+
* @property {number} [department_id] - Unique identifier of the department.
|
|
739
|
+
* @property {string[]} [tags] - Tags associated with the item.
|
|
740
|
+
*/
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* @typedef ShipmentDimension
|
|
744
|
+
* @property {number} height - Height of the shipment in centimeters.
|
|
745
|
+
* @property {number} length - Length of the shipment in centimeters.
|
|
746
|
+
* @property {number} width - Width of the shipment in centimeters.
|
|
747
|
+
*/
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* @typedef Shipments
|
|
751
|
+
* @property {string} [id] - Unique identifier of the shipment.
|
|
752
|
+
* @property {number} [location_id] - Unique identifier of the selling location.
|
|
753
|
+
* @property {string[]} [location_tags] - Tags associated with the selling location.
|
|
754
|
+
* @property {number} [shipment_weight] - Weight of the shipment.
|
|
755
|
+
* @property {number} [shipment_volumetric_weight] - Volumetric weight of the shipment.
|
|
756
|
+
* @property {number} [shipment_cost] - Total Cost of the shipment.
|
|
757
|
+
* @property {ShipmentDimension} [shipment_dimension]
|
|
758
|
+
* @property {string[]} [courier_partner_schemes] - A List of courier schemes.
|
|
759
|
+
* @property {ShipmentsArticles[]} [articles] - List of articles in the shipment.
|
|
760
|
+
*/
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* @typedef ShipmentCourierPartnerDetails
|
|
764
|
+
* @property {ShipmentsCourierPartnersServiceability} from_location
|
|
765
|
+
* @property {ShipmentsCourierPartnersServiceability} to_location
|
|
766
|
+
* @property {Shipments[]} [shipments] - List of shipments.
|
|
767
|
+
* @property {string} [journey] - Journey type of the shipment forward or return.
|
|
768
|
+
* @property {string} [payment_mode] - Payment mode opted for the shipment.
|
|
769
|
+
*/
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* @typedef CourierPartnerPromise
|
|
773
|
+
* @property {string} min - The earliest possible timestamp.
|
|
774
|
+
* @property {string} max - The latest possible timestamp.
|
|
775
|
+
*/
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* @typedef CourierPartners
|
|
779
|
+
* @property {string} [extension_id] - Unique identifier of courier partner extension.
|
|
780
|
+
* @property {string} [scheme_id] - Unique identifier of courier partner scheme.
|
|
781
|
+
* @property {string} [name] - Name of the courier partner.
|
|
782
|
+
* @property {CourierPartnerPromise} [delivery_promise]
|
|
783
|
+
*/
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* @typedef ShipmentCourierPartners
|
|
787
|
+
* @property {string} [id] - Unique identifier of the shipment.
|
|
788
|
+
* @property {CourierPartners[]} [courier_partners] - Courier partners of the shipment.
|
|
789
|
+
*/
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* @typedef ShipmentCourierPartnerResult
|
|
793
|
+
* @property {CourierPartners[]} [courier_partners]
|
|
794
|
+
* @property {ShipmentCourierPartners[]} [shipments]
|
|
795
|
+
*/
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* @typedef ShipmentsCourierPartnersServiceability
|
|
799
|
+
* @property {string} [pincode] - Postal code or PIN code of the address area.
|
|
800
|
+
* @property {string} [sector_code] - Specifies the sector or district code of
|
|
801
|
+
* the address if applicable.
|
|
802
|
+
* @property {string} [state_code] - Indicates the state or province code of the address.
|
|
803
|
+
* @property {string} [city_code] - Denote the city or municipality code of the address.
|
|
804
|
+
* @property {string} country_code - ISO2 code for the country of the address.
|
|
805
|
+
*/
|
|
806
|
+
|
|
733
807
|
/**
|
|
734
808
|
* @typedef CompanyConfig
|
|
735
809
|
* @property {string[]} rule_ids
|
|
@@ -750,7 +824,7 @@ const Joi = require("joi");
|
|
|
750
824
|
*/
|
|
751
825
|
|
|
752
826
|
/**
|
|
753
|
-
* @typedef
|
|
827
|
+
* @typedef BulkRegionJobDetails
|
|
754
828
|
* @property {string} [file_path]
|
|
755
829
|
* @property {string} country
|
|
756
830
|
* @property {string} action
|
|
@@ -758,7 +832,7 @@ const Joi = require("joi");
|
|
|
758
832
|
*/
|
|
759
833
|
|
|
760
834
|
/**
|
|
761
|
-
* @typedef
|
|
835
|
+
* @typedef BulkRegionResultItemData
|
|
762
836
|
* @property {string} file_path
|
|
763
837
|
* @property {number} [failed]
|
|
764
838
|
* @property {Object[]} [failed_records]
|
|
@@ -773,25 +847,25 @@ const Joi = require("joi");
|
|
|
773
847
|
*/
|
|
774
848
|
|
|
775
849
|
/**
|
|
776
|
-
* @typedef
|
|
777
|
-
* @property {
|
|
850
|
+
* @typedef BulkRegionResult
|
|
851
|
+
* @property {BulkRegionResultItemData[]} items
|
|
778
852
|
* @property {Page} page
|
|
779
853
|
*/
|
|
780
854
|
|
|
781
855
|
/**
|
|
782
|
-
* @typedef
|
|
856
|
+
* @typedef SelfShipResult
|
|
783
857
|
* @property {boolean} is_active
|
|
784
858
|
* @property {number} tat
|
|
785
859
|
*/
|
|
786
860
|
|
|
787
861
|
/**
|
|
788
862
|
* @typedef ApplicationSelfShipConfig
|
|
789
|
-
* @property {
|
|
863
|
+
* @property {SelfShipResult} [self_ship]
|
|
790
864
|
*/
|
|
791
865
|
|
|
792
866
|
/**
|
|
793
|
-
* @typedef
|
|
794
|
-
* @property {
|
|
867
|
+
* @typedef ApplicationSelfShipConfigResult
|
|
868
|
+
* @property {ServiceabilityErrorResult} [error]
|
|
795
869
|
* @property {ApplicationSelfShipConfig} [data]
|
|
796
870
|
* @property {boolean} success
|
|
797
871
|
*/
|
|
@@ -850,13 +924,13 @@ const Joi = require("joi");
|
|
|
850
924
|
*/
|
|
851
925
|
|
|
852
926
|
/**
|
|
853
|
-
* @typedef
|
|
927
|
+
* @typedef GetStoreRulesApiResult
|
|
854
928
|
* @property {StoreRuleDataSchema[]} [items]
|
|
855
929
|
* @property {Page} [page]
|
|
856
930
|
*/
|
|
857
931
|
|
|
858
932
|
/**
|
|
859
|
-
* @typedef
|
|
933
|
+
* @typedef CreateStoreRuleDetailsSchema
|
|
860
934
|
* @property {string} [name]
|
|
861
935
|
* @property {boolean} [is_active]
|
|
862
936
|
* @property {StoreRuleConditionSchema} [conditions]
|
|
@@ -867,7 +941,7 @@ const Joi = require("joi");
|
|
|
867
941
|
*/
|
|
868
942
|
|
|
869
943
|
/**
|
|
870
|
-
* @typedef
|
|
944
|
+
* @typedef StoreRuleResultSchema
|
|
871
945
|
* @property {string} [id]
|
|
872
946
|
* @property {string} [name]
|
|
873
947
|
* @property {string} [type]
|
|
@@ -880,7 +954,7 @@ const Joi = require("joi");
|
|
|
880
954
|
*/
|
|
881
955
|
|
|
882
956
|
/**
|
|
883
|
-
* @typedef
|
|
957
|
+
* @typedef StoreRuleUpdateResultSchema
|
|
884
958
|
* @property {string} [id]
|
|
885
959
|
* @property {string} [name]
|
|
886
960
|
* @property {string} [type]
|
|
@@ -898,8 +972,8 @@ const Joi = require("joi");
|
|
|
898
972
|
* @typedef ServiceabilityModel
|
|
899
973
|
* @property {number} lm_cod_limit
|
|
900
974
|
* @property {boolean} is_qc
|
|
901
|
-
* @property {string} pickup_cutoff
|
|
902
|
-
* @property {string} route_code
|
|
975
|
+
* @property {string} [pickup_cutoff]
|
|
976
|
+
* @property {string} [route_code]
|
|
903
977
|
* @property {boolean} is_first_mile
|
|
904
978
|
* @property {boolean} is_return
|
|
905
979
|
* @property {boolean} is_installation
|
|
@@ -942,7 +1016,7 @@ const Joi = require("joi");
|
|
|
942
1016
|
*/
|
|
943
1017
|
|
|
944
1018
|
/**
|
|
945
|
-
* @typedef
|
|
1019
|
+
* @typedef CourierAccountResult
|
|
946
1020
|
* @property {string} account_id
|
|
947
1021
|
* @property {string} scheme_id
|
|
948
1022
|
* @property {boolean} is_self_ship
|
|
@@ -952,8 +1026,8 @@ const Joi = require("joi");
|
|
|
952
1026
|
*/
|
|
953
1027
|
|
|
954
1028
|
/**
|
|
955
|
-
* @typedef
|
|
956
|
-
* @property {
|
|
1029
|
+
* @typedef CompanyCourierPartnerAccountListResult
|
|
1030
|
+
* @property {CourierAccountResult[]} items
|
|
957
1031
|
* @property {Page} page
|
|
958
1032
|
*/
|
|
959
1033
|
|
|
@@ -979,7 +1053,7 @@ const Joi = require("joi");
|
|
|
979
1053
|
*/
|
|
980
1054
|
|
|
981
1055
|
/**
|
|
982
|
-
* @typedef
|
|
1056
|
+
* @typedef PackageMaterialResult
|
|
983
1057
|
* @property {string} name
|
|
984
1058
|
* @property {string} [id]
|
|
985
1059
|
* @property {number} [item_id]
|
|
@@ -1020,7 +1094,7 @@ const Joi = require("joi");
|
|
|
1020
1094
|
*/
|
|
1021
1095
|
|
|
1022
1096
|
/**
|
|
1023
|
-
* @typedef
|
|
1097
|
+
* @typedef PackageRuleResult
|
|
1024
1098
|
* @property {string} [id]
|
|
1025
1099
|
* @property {string} name
|
|
1026
1100
|
* @property {number} company_id
|
|
@@ -1039,13 +1113,13 @@ const Joi = require("joi");
|
|
|
1039
1113
|
|
|
1040
1114
|
/**
|
|
1041
1115
|
* @typedef PackageMaterialRuleList
|
|
1042
|
-
* @property {
|
|
1116
|
+
* @property {PackageRuleResult} [items]
|
|
1043
1117
|
* @property {Page} [page]
|
|
1044
1118
|
*/
|
|
1045
1119
|
|
|
1046
1120
|
/**
|
|
1047
1121
|
* @typedef PackageMaterialList
|
|
1048
|
-
* @property {
|
|
1122
|
+
* @property {PackageMaterialResult} [items]
|
|
1049
1123
|
* @property {Page} [page]
|
|
1050
1124
|
*/
|
|
1051
1125
|
|
|
@@ -1071,13 +1145,13 @@ const Joi = require("joi");
|
|
|
1071
1145
|
*/
|
|
1072
1146
|
|
|
1073
1147
|
/**
|
|
1074
|
-
* @typedef
|
|
1148
|
+
* @typedef RulePriorityDetails
|
|
1075
1149
|
* @property {string} rule_id
|
|
1076
1150
|
* @property {number} priority
|
|
1077
1151
|
*/
|
|
1078
1152
|
|
|
1079
1153
|
/**
|
|
1080
|
-
* @typedef
|
|
1154
|
+
* @typedef RulePriorityResult
|
|
1081
1155
|
* @property {boolean} [success]
|
|
1082
1156
|
*/
|
|
1083
1157
|
|
|
@@ -1109,7 +1183,7 @@ const Joi = require("joi");
|
|
|
1109
1183
|
* @typedef OptimalLocationsArticles
|
|
1110
1184
|
* @property {number} item_id
|
|
1111
1185
|
* @property {string} size
|
|
1112
|
-
* @property {
|
|
1186
|
+
* @property {number} quantity
|
|
1113
1187
|
* @property {string} [group_id]
|
|
1114
1188
|
* @property {boolean} [is_primary_item]
|
|
1115
1189
|
* @property {Object} [meta]
|
|
@@ -1120,16 +1194,16 @@ const Joi = require("joi");
|
|
|
1120
1194
|
*/
|
|
1121
1195
|
|
|
1122
1196
|
/**
|
|
1123
|
-
* @typedef
|
|
1197
|
+
* @typedef OptimlLocationsDetailsSchema
|
|
1124
1198
|
* @property {string} channel_id
|
|
1125
1199
|
* @property {string} channel_type
|
|
1126
1200
|
* @property {string} [channel_identifier]
|
|
1127
1201
|
* @property {LocationDetailsServiceability} to_serviceability
|
|
1128
|
-
* @property {OptimalLocationsArticles} [
|
|
1202
|
+
* @property {OptimalLocationsArticles[]} [articles]
|
|
1129
1203
|
*/
|
|
1130
1204
|
|
|
1131
1205
|
/**
|
|
1132
|
-
* @typedef
|
|
1206
|
+
* @typedef OptimalLocationArticlesResult
|
|
1133
1207
|
* @property {number} item_id
|
|
1134
1208
|
* @property {string} size
|
|
1135
1209
|
* @property {number} quantity
|
|
@@ -1147,27 +1221,38 @@ const Joi = require("joi");
|
|
|
1147
1221
|
*/
|
|
1148
1222
|
|
|
1149
1223
|
/**
|
|
1150
|
-
* @typedef
|
|
1224
|
+
* @typedef OptimalLocationAssignedStoresResult
|
|
1151
1225
|
* @property {number} store_id
|
|
1152
|
-
* @property {
|
|
1226
|
+
* @property {OptimalLocationArticlesResult[]} articles
|
|
1227
|
+
*/
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* @typedef OptimalLocationsResult
|
|
1231
|
+
* @property {OptimalLocationAssignedStoresResult[]} assigned_stores
|
|
1232
|
+
* @property {ErrorResult[]} [faulty_articles]
|
|
1153
1233
|
*/
|
|
1154
1234
|
|
|
1155
1235
|
/**
|
|
1156
|
-
* @typedef
|
|
1157
|
-
* @property {
|
|
1158
|
-
* @property {
|
|
1236
|
+
* @typedef ValidationError
|
|
1237
|
+
* @property {string} message - A brief description of the error encountered.
|
|
1238
|
+
* @property {string} field - The field in the request that caused the error.
|
|
1239
|
+
*/
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* @typedef StandardError
|
|
1243
|
+
* @property {string} message - A brief description of the error.
|
|
1159
1244
|
*/
|
|
1160
1245
|
|
|
1161
1246
|
class ServiceabilityPlatformModel {
|
|
1162
|
-
/** @returns {
|
|
1163
|
-
static
|
|
1247
|
+
/** @returns {UpdateZoneConfigDetails} */
|
|
1248
|
+
static UpdateZoneConfigDetails() {
|
|
1164
1249
|
return Joi.object({
|
|
1165
1250
|
serviceability_type: Joi.string().allow(""),
|
|
1166
1251
|
});
|
|
1167
1252
|
}
|
|
1168
1253
|
|
|
1169
|
-
/** @returns {
|
|
1170
|
-
static
|
|
1254
|
+
/** @returns {ServiceabilityErrorResult} */
|
|
1255
|
+
static ServiceabilityErrorResult() {
|
|
1171
1256
|
return Joi.object({
|
|
1172
1257
|
message: Joi.string().allow("").required(),
|
|
1173
1258
|
value: Joi.string().allow("").required(),
|
|
@@ -1184,17 +1269,17 @@ class ServiceabilityPlatformModel {
|
|
|
1184
1269
|
});
|
|
1185
1270
|
}
|
|
1186
1271
|
|
|
1187
|
-
/** @returns {
|
|
1188
|
-
static
|
|
1272
|
+
/** @returns {ApplicationServiceabilityConfigResult} */
|
|
1273
|
+
static ApplicationServiceabilityConfigResult() {
|
|
1189
1274
|
return Joi.object({
|
|
1190
|
-
error: ServiceabilityPlatformModel.
|
|
1275
|
+
error: ServiceabilityPlatformModel.ServiceabilityErrorResult(),
|
|
1191
1276
|
data: ServiceabilityPlatformModel.ApplicationServiceabilityConfig(),
|
|
1192
1277
|
success: Joi.boolean().required(),
|
|
1193
1278
|
});
|
|
1194
1279
|
}
|
|
1195
1280
|
|
|
1196
|
-
/** @returns {
|
|
1197
|
-
static
|
|
1281
|
+
/** @returns {EntityRegionView_Details} */
|
|
1282
|
+
static EntityRegionView_Details() {
|
|
1198
1283
|
return Joi.object({
|
|
1199
1284
|
sub_type: Joi.array().items(Joi.string().allow("")).required(),
|
|
1200
1285
|
parent_id: Joi.array().items(Joi.string().allow("")),
|
|
@@ -1221,8 +1306,8 @@ class ServiceabilityPlatformModel {
|
|
|
1221
1306
|
});
|
|
1222
1307
|
}
|
|
1223
1308
|
|
|
1224
|
-
/** @returns {
|
|
1225
|
-
static
|
|
1309
|
+
/** @returns {getAppRegionZonesResult} */
|
|
1310
|
+
static getAppRegionZonesResult() {
|
|
1226
1311
|
return Joi.object({
|
|
1227
1312
|
page: Joi.array()
|
|
1228
1313
|
.items(ServiceabilityPlatformModel.PageSchema())
|
|
@@ -1253,8 +1338,8 @@ class ServiceabilityPlatformModel {
|
|
|
1253
1338
|
});
|
|
1254
1339
|
}
|
|
1255
1340
|
|
|
1256
|
-
/** @returns {
|
|
1257
|
-
static
|
|
1341
|
+
/** @returns {EntityRegionView_Result} */
|
|
1342
|
+
static EntityRegionView_Result() {
|
|
1258
1343
|
return Joi.object({
|
|
1259
1344
|
error: ServiceabilityPlatformModel.EntityRegionView_Error().required(),
|
|
1260
1345
|
page: ServiceabilityPlatformModel.EntityRegionView_page().required(),
|
|
@@ -1318,8 +1403,8 @@ class ServiceabilityPlatformModel {
|
|
|
1318
1403
|
});
|
|
1319
1404
|
}
|
|
1320
1405
|
|
|
1321
|
-
/** @returns {
|
|
1322
|
-
static
|
|
1406
|
+
/** @returns {ListViewResult} */
|
|
1407
|
+
static ListViewResult() {
|
|
1323
1408
|
return Joi.object({
|
|
1324
1409
|
page: ServiceabilityPlatformModel.ZoneDataItem().required(),
|
|
1325
1410
|
items: Joi.array()
|
|
@@ -1339,8 +1424,8 @@ class ServiceabilityPlatformModel {
|
|
|
1339
1424
|
});
|
|
1340
1425
|
}
|
|
1341
1426
|
|
|
1342
|
-
/** @returns {
|
|
1343
|
-
static
|
|
1427
|
+
/** @returns {CompanyStoreView_Result} */
|
|
1428
|
+
static CompanyStoreView_Result() {
|
|
1344
1429
|
return Joi.object({
|
|
1345
1430
|
page: Joi.array()
|
|
1346
1431
|
.items(ServiceabilityPlatformModel.CompanyStoreView_PageItems())
|
|
@@ -1395,16 +1480,16 @@ class ServiceabilityPlatformModel {
|
|
|
1395
1480
|
});
|
|
1396
1481
|
}
|
|
1397
1482
|
|
|
1398
|
-
/** @returns {
|
|
1399
|
-
static
|
|
1483
|
+
/** @returns {ZoneUpdateDetails} */
|
|
1484
|
+
static ZoneUpdateDetails() {
|
|
1400
1485
|
return Joi.object({
|
|
1401
1486
|
identifier: Joi.string().allow("").required(),
|
|
1402
1487
|
data: ServiceabilityPlatformModel.UpdateZoneData().required(),
|
|
1403
1488
|
});
|
|
1404
1489
|
}
|
|
1405
1490
|
|
|
1406
|
-
/** @returns {
|
|
1407
|
-
static
|
|
1491
|
+
/** @returns {ZoneSuccessResult} */
|
|
1492
|
+
static ZoneSuccessResult() {
|
|
1408
1493
|
return Joi.object({
|
|
1409
1494
|
status_code: Joi.number().required(),
|
|
1410
1495
|
success: Joi.boolean().required(),
|
|
@@ -1433,8 +1518,8 @@ class ServiceabilityPlatformModel {
|
|
|
1433
1518
|
});
|
|
1434
1519
|
}
|
|
1435
1520
|
|
|
1436
|
-
/** @returns {
|
|
1437
|
-
static
|
|
1521
|
+
/** @returns {GetSingleZoneDataViewResult} */
|
|
1522
|
+
static GetSingleZoneDataViewResult() {
|
|
1438
1523
|
return Joi.object({
|
|
1439
1524
|
data: ServiceabilityPlatformModel.GetZoneDataViewItems().required(),
|
|
1440
1525
|
});
|
|
@@ -1481,8 +1566,8 @@ class ServiceabilityPlatformModel {
|
|
|
1481
1566
|
});
|
|
1482
1567
|
}
|
|
1483
1568
|
|
|
1484
|
-
/** @returns {
|
|
1485
|
-
static
|
|
1569
|
+
/** @returns {ZoneResult} */
|
|
1570
|
+
static ZoneResult() {
|
|
1486
1571
|
return Joi.object({
|
|
1487
1572
|
status_code: Joi.number().required(),
|
|
1488
1573
|
zone_id: Joi.string().allow("").required(),
|
|
@@ -1490,8 +1575,8 @@ class ServiceabilityPlatformModel {
|
|
|
1490
1575
|
});
|
|
1491
1576
|
}
|
|
1492
1577
|
|
|
1493
|
-
/** @returns {
|
|
1494
|
-
static
|
|
1578
|
+
/** @returns {GetZoneFromPincodeViewDetails} */
|
|
1579
|
+
static GetZoneFromPincodeViewDetails() {
|
|
1495
1580
|
return Joi.object({
|
|
1496
1581
|
country: Joi.string().allow("").required(),
|
|
1497
1582
|
pincode: Joi.string().allow("").required(),
|
|
@@ -1512,16 +1597,16 @@ class ServiceabilityPlatformModel {
|
|
|
1512
1597
|
});
|
|
1513
1598
|
}
|
|
1514
1599
|
|
|
1515
|
-
/** @returns {
|
|
1516
|
-
static
|
|
1600
|
+
/** @returns {GetZoneFromPincodeViewResult} */
|
|
1601
|
+
static GetZoneFromPincodeViewResult() {
|
|
1517
1602
|
return Joi.object({
|
|
1518
1603
|
serviceability_type: Joi.string().allow("").required(),
|
|
1519
1604
|
zones: Joi.array().items(ServiceabilityPlatformModel.Zone()).required(),
|
|
1520
1605
|
});
|
|
1521
1606
|
}
|
|
1522
1607
|
|
|
1523
|
-
/** @returns {
|
|
1524
|
-
static
|
|
1608
|
+
/** @returns {GetZoneFromApplicationIdViewResult} */
|
|
1609
|
+
static GetZoneFromApplicationIdViewResult() {
|
|
1525
1610
|
return Joi.object({
|
|
1526
1611
|
page: Joi.array()
|
|
1527
1612
|
.items(ServiceabilityPlatformModel.ZoneDataItem())
|
|
@@ -1532,8 +1617,8 @@ class ServiceabilityPlatformModel {
|
|
|
1532
1617
|
});
|
|
1533
1618
|
}
|
|
1534
1619
|
|
|
1535
|
-
/** @returns {
|
|
1536
|
-
static
|
|
1620
|
+
/** @returns {ServiceabilityPageResult} */
|
|
1621
|
+
static ServiceabilityPageResult() {
|
|
1537
1622
|
return Joi.object({
|
|
1538
1623
|
type: Joi.string().allow(""),
|
|
1539
1624
|
has_next: Joi.boolean(),
|
|
@@ -1551,8 +1636,8 @@ class ServiceabilityPlatformModel {
|
|
|
1551
1636
|
});
|
|
1552
1637
|
}
|
|
1553
1638
|
|
|
1554
|
-
/** @returns {
|
|
1555
|
-
static
|
|
1639
|
+
/** @returns {ManagerResult} */
|
|
1640
|
+
static ManagerResult() {
|
|
1556
1641
|
return Joi.object({
|
|
1557
1642
|
email: Joi.string().allow(""),
|
|
1558
1643
|
mobile_no: ServiceabilityPlatformModel.MobileNo(),
|
|
@@ -1560,39 +1645,39 @@ class ServiceabilityPlatformModel {
|
|
|
1560
1645
|
});
|
|
1561
1646
|
}
|
|
1562
1647
|
|
|
1563
|
-
/** @returns {
|
|
1564
|
-
static
|
|
1648
|
+
/** @returns {ModifiedByResult} */
|
|
1649
|
+
static ModifiedByResult() {
|
|
1565
1650
|
return Joi.object({
|
|
1566
1651
|
username: Joi.string().allow(""),
|
|
1567
1652
|
user_id: Joi.string().allow(""),
|
|
1568
1653
|
});
|
|
1569
1654
|
}
|
|
1570
1655
|
|
|
1571
|
-
/** @returns {
|
|
1572
|
-
static
|
|
1656
|
+
/** @returns {IntegrationTypeResult} */
|
|
1657
|
+
static IntegrationTypeResult() {
|
|
1573
1658
|
return Joi.object({
|
|
1574
1659
|
inventory: Joi.string().allow(""),
|
|
1575
1660
|
order: Joi.string().allow(""),
|
|
1576
1661
|
});
|
|
1577
1662
|
}
|
|
1578
1663
|
|
|
1579
|
-
/** @returns {
|
|
1580
|
-
static
|
|
1664
|
+
/** @returns {ProductReturnConfigResult} */
|
|
1665
|
+
static ProductReturnConfigResult() {
|
|
1581
1666
|
return Joi.object({
|
|
1582
1667
|
on_same_store: Joi.boolean(),
|
|
1583
1668
|
});
|
|
1584
1669
|
}
|
|
1585
1670
|
|
|
1586
|
-
/** @returns {
|
|
1587
|
-
static
|
|
1671
|
+
/** @returns {ContactNumberResult} */
|
|
1672
|
+
static ContactNumberResult() {
|
|
1588
1673
|
return Joi.object({
|
|
1589
1674
|
number: Joi.string().allow(""),
|
|
1590
1675
|
country_code: Joi.number(),
|
|
1591
1676
|
});
|
|
1592
1677
|
}
|
|
1593
1678
|
|
|
1594
|
-
/** @returns {
|
|
1595
|
-
static
|
|
1679
|
+
/** @returns {AddressResult} */
|
|
1680
|
+
static AddressResult() {
|
|
1596
1681
|
return Joi.object({
|
|
1597
1682
|
city: Joi.string().allow(""),
|
|
1598
1683
|
address1: Joi.string().allow(""),
|
|
@@ -1606,38 +1691,38 @@ class ServiceabilityPlatformModel {
|
|
|
1606
1691
|
});
|
|
1607
1692
|
}
|
|
1608
1693
|
|
|
1609
|
-
/** @returns {
|
|
1610
|
-
static
|
|
1694
|
+
/** @returns {CreatedByResult} */
|
|
1695
|
+
static CreatedByResult() {
|
|
1611
1696
|
return Joi.object({
|
|
1612
1697
|
username: Joi.string().allow(""),
|
|
1613
1698
|
user_id: Joi.string().allow(""),
|
|
1614
1699
|
});
|
|
1615
1700
|
}
|
|
1616
1701
|
|
|
1617
|
-
/** @returns {
|
|
1618
|
-
static
|
|
1702
|
+
/** @returns {EwayBillResult} */
|
|
1703
|
+
static EwayBillResult() {
|
|
1619
1704
|
return Joi.object({
|
|
1620
1705
|
enabled: Joi.boolean(),
|
|
1621
1706
|
});
|
|
1622
1707
|
}
|
|
1623
1708
|
|
|
1624
|
-
/** @returns {
|
|
1625
|
-
static
|
|
1709
|
+
/** @returns {EinvoiceResult} */
|
|
1710
|
+
static EinvoiceResult() {
|
|
1626
1711
|
return Joi.object({
|
|
1627
1712
|
enabled: Joi.boolean(),
|
|
1628
1713
|
});
|
|
1629
1714
|
}
|
|
1630
1715
|
|
|
1631
|
-
/** @returns {
|
|
1632
|
-
static
|
|
1716
|
+
/** @returns {GstCredentialsResult} */
|
|
1717
|
+
static GstCredentialsResult() {
|
|
1633
1718
|
return Joi.object({
|
|
1634
|
-
e_waybill: ServiceabilityPlatformModel.
|
|
1635
|
-
e_invoice: ServiceabilityPlatformModel.
|
|
1719
|
+
e_waybill: ServiceabilityPlatformModel.EwayBillResult(),
|
|
1720
|
+
e_invoice: ServiceabilityPlatformModel.EinvoiceResult(),
|
|
1636
1721
|
});
|
|
1637
1722
|
}
|
|
1638
1723
|
|
|
1639
|
-
/** @returns {
|
|
1640
|
-
static
|
|
1724
|
+
/** @returns {WarningsResult} */
|
|
1725
|
+
static WarningsResult() {
|
|
1641
1726
|
return Joi.object({
|
|
1642
1727
|
store_address: Joi.string().allow(""),
|
|
1643
1728
|
});
|
|
@@ -1651,8 +1736,8 @@ class ServiceabilityPlatformModel {
|
|
|
1651
1736
|
});
|
|
1652
1737
|
}
|
|
1653
1738
|
|
|
1654
|
-
/** @returns {
|
|
1655
|
-
static
|
|
1739
|
+
/** @returns {TimmingResult} */
|
|
1740
|
+
static TimmingResult() {
|
|
1656
1741
|
return Joi.object({
|
|
1657
1742
|
open: Joi.boolean(),
|
|
1658
1743
|
weekday: Joi.string().allow(""),
|
|
@@ -1661,8 +1746,8 @@ class ServiceabilityPlatformModel {
|
|
|
1661
1746
|
});
|
|
1662
1747
|
}
|
|
1663
1748
|
|
|
1664
|
-
/** @returns {
|
|
1665
|
-
static
|
|
1749
|
+
/** @returns {DocumentsResult} */
|
|
1750
|
+
static DocumentsResult() {
|
|
1666
1751
|
return Joi.object({
|
|
1667
1752
|
legal_name: Joi.string().allow(""),
|
|
1668
1753
|
value: Joi.string().allow(""),
|
|
@@ -1687,57 +1772,57 @@ class ServiceabilityPlatformModel {
|
|
|
1687
1772
|
});
|
|
1688
1773
|
}
|
|
1689
1774
|
|
|
1690
|
-
/** @returns {
|
|
1691
|
-
static
|
|
1775
|
+
/** @returns {LogisticsResult} */
|
|
1776
|
+
static LogisticsResult() {
|
|
1692
1777
|
return Joi.object({
|
|
1693
1778
|
override: Joi.boolean(),
|
|
1694
1779
|
dp: ServiceabilityPlatformModel.Dp(),
|
|
1695
1780
|
});
|
|
1696
1781
|
}
|
|
1697
1782
|
|
|
1698
|
-
/** @returns {
|
|
1699
|
-
static
|
|
1783
|
+
/** @returns {ItemResult} */
|
|
1784
|
+
static ItemResult() {
|
|
1700
1785
|
return Joi.object({
|
|
1701
1786
|
created_on: Joi.string().allow(""),
|
|
1702
|
-
manager: ServiceabilityPlatformModel.
|
|
1703
|
-
modified_by: ServiceabilityPlatformModel.
|
|
1704
|
-
integration_type: ServiceabilityPlatformModel.
|
|
1787
|
+
manager: ServiceabilityPlatformModel.ManagerResult(),
|
|
1788
|
+
modified_by: ServiceabilityPlatformModel.ModifiedByResult(),
|
|
1789
|
+
integration_type: ServiceabilityPlatformModel.IntegrationTypeResult(),
|
|
1705
1790
|
verified_on: Joi.string().allow(""),
|
|
1706
|
-
product_return_config: ServiceabilityPlatformModel.
|
|
1791
|
+
product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResult(),
|
|
1707
1792
|
contact_numbers: Joi.array().items(
|
|
1708
|
-
ServiceabilityPlatformModel.
|
|
1793
|
+
ServiceabilityPlatformModel.ContactNumberResult()
|
|
1709
1794
|
),
|
|
1710
|
-
verified_by: ServiceabilityPlatformModel.
|
|
1795
|
+
verified_by: ServiceabilityPlatformModel.ModifiedByResult(),
|
|
1711
1796
|
stage: Joi.string().allow(""),
|
|
1712
|
-
address: ServiceabilityPlatformModel.
|
|
1797
|
+
address: ServiceabilityPlatformModel.AddressResult(),
|
|
1713
1798
|
modified_on: Joi.string().allow(""),
|
|
1714
|
-
created_by: ServiceabilityPlatformModel.
|
|
1715
|
-
gst_credentials: ServiceabilityPlatformModel.
|
|
1799
|
+
created_by: ServiceabilityPlatformModel.CreatedByResult(),
|
|
1800
|
+
gst_credentials: ServiceabilityPlatformModel.GstCredentialsResult(),
|
|
1716
1801
|
display_name: Joi.string().allow(""),
|
|
1717
1802
|
company_id: Joi.number(),
|
|
1718
1803
|
uid: Joi.number(),
|
|
1719
|
-
_custom_json: Joi.any(),
|
|
1804
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1720
1805
|
code: Joi.string().allow(""),
|
|
1721
|
-
warnings: ServiceabilityPlatformModel.
|
|
1806
|
+
warnings: ServiceabilityPlatformModel.WarningsResult(),
|
|
1722
1807
|
name: Joi.string().allow(""),
|
|
1723
|
-
timing: Joi.array().items(ServiceabilityPlatformModel.
|
|
1808
|
+
timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResult()),
|
|
1724
1809
|
documents: Joi.array().items(
|
|
1725
|
-
ServiceabilityPlatformModel.
|
|
1810
|
+
ServiceabilityPlatformModel.DocumentsResult()
|
|
1726
1811
|
),
|
|
1727
1812
|
store_type: Joi.string().allow(""),
|
|
1728
1813
|
sub_type: Joi.string().allow(""),
|
|
1729
1814
|
company: Joi.number(),
|
|
1730
1815
|
_cls: Joi.string().allow(""),
|
|
1731
|
-
logistics: ServiceabilityPlatformModel.
|
|
1816
|
+
logistics: ServiceabilityPlatformModel.LogisticsResult(),
|
|
1732
1817
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
1733
1818
|
});
|
|
1734
1819
|
}
|
|
1735
1820
|
|
|
1736
|
-
/** @returns {
|
|
1737
|
-
static
|
|
1821
|
+
/** @returns {GetStoresViewResult} */
|
|
1822
|
+
static GetStoresViewResult() {
|
|
1738
1823
|
return Joi.object({
|
|
1739
|
-
page: ServiceabilityPlatformModel.
|
|
1740
|
-
items: Joi.array().items(ServiceabilityPlatformModel.
|
|
1824
|
+
page: ServiceabilityPlatformModel.ServiceabilityPageResult().required(),
|
|
1825
|
+
items: Joi.array().items(ServiceabilityPlatformModel.ItemResult()),
|
|
1741
1826
|
});
|
|
1742
1827
|
}
|
|
1743
1828
|
|
|
@@ -1750,8 +1835,8 @@ class ServiceabilityPlatformModel {
|
|
|
1750
1835
|
});
|
|
1751
1836
|
}
|
|
1752
1837
|
|
|
1753
|
-
/** @returns {
|
|
1754
|
-
static
|
|
1838
|
+
/** @returns {PincodeMopUpdateResult} */
|
|
1839
|
+
static PincodeMopUpdateResult() {
|
|
1755
1840
|
return Joi.object({
|
|
1756
1841
|
pincode: Joi.number().required(),
|
|
1757
1842
|
channel_id: Joi.string().allow("").required(),
|
|
@@ -1760,8 +1845,8 @@ class ServiceabilityPlatformModel {
|
|
|
1760
1845
|
});
|
|
1761
1846
|
}
|
|
1762
1847
|
|
|
1763
|
-
/** @returns {
|
|
1764
|
-
static
|
|
1848
|
+
/** @returns {PincodeMOPResult} */
|
|
1849
|
+
static PincodeMOPResult() {
|
|
1765
1850
|
return Joi.object({
|
|
1766
1851
|
success: Joi.boolean().required(),
|
|
1767
1852
|
status_code: Joi.number().required(),
|
|
@@ -1770,7 +1855,7 @@ class ServiceabilityPlatformModel {
|
|
|
1770
1855
|
action: Joi.string().allow("").required(),
|
|
1771
1856
|
pincodes: Joi.array().items(Joi.number()),
|
|
1772
1857
|
updated_pincodes: Joi.array().items(
|
|
1773
|
-
ServiceabilityPlatformModel.
|
|
1858
|
+
ServiceabilityPlatformModel.PincodeMopUpdateResult()
|
|
1774
1859
|
),
|
|
1775
1860
|
});
|
|
1776
1861
|
}
|
|
@@ -1792,16 +1877,16 @@ class ServiceabilityPlatformModel {
|
|
|
1792
1877
|
});
|
|
1793
1878
|
}
|
|
1794
1879
|
|
|
1795
|
-
/** @returns {
|
|
1796
|
-
static
|
|
1880
|
+
/** @returns {PincodeBulkViewResult} */
|
|
1881
|
+
static PincodeBulkViewResult() {
|
|
1797
1882
|
return Joi.object({
|
|
1798
1883
|
batch_id: Joi.string().allow("").required(),
|
|
1799
1884
|
s3_url: Joi.string().allow("").required(),
|
|
1800
1885
|
});
|
|
1801
1886
|
}
|
|
1802
1887
|
|
|
1803
|
-
/** @returns {
|
|
1804
|
-
static
|
|
1888
|
+
/** @returns {PincodeCodStatusListingDetails} */
|
|
1889
|
+
static PincodeCodStatusListingDetails() {
|
|
1805
1890
|
return Joi.object({
|
|
1806
1891
|
country: Joi.string().allow(""),
|
|
1807
1892
|
is_active: Joi.boolean(),
|
|
@@ -1811,18 +1896,18 @@ class ServiceabilityPlatformModel {
|
|
|
1811
1896
|
});
|
|
1812
1897
|
}
|
|
1813
1898
|
|
|
1814
|
-
/** @returns {
|
|
1815
|
-
static
|
|
1899
|
+
/** @returns {PincodeCodStatusListingResult} */
|
|
1900
|
+
static PincodeCodStatusListingResult() {
|
|
1816
1901
|
return Joi.object({
|
|
1817
1902
|
country: Joi.string().allow("").required(),
|
|
1818
1903
|
data: Joi.array()
|
|
1819
|
-
.items(Joi.link("#
|
|
1904
|
+
.items(Joi.link("#PincodeCodStatusListingResult"))
|
|
1820
1905
|
.required(),
|
|
1821
1906
|
success: Joi.boolean().required(),
|
|
1822
1907
|
errors: Joi.array().items(ServiceabilityPlatformModel.Error()),
|
|
1823
1908
|
page: ServiceabilityPlatformModel.PincodeCodStatusListingPage().required(),
|
|
1824
1909
|
summary: ServiceabilityPlatformModel.PincodeCodStatusListingSummary().required(),
|
|
1825
|
-
}).id("
|
|
1910
|
+
}).id("PincodeCodStatusListingResult");
|
|
1826
1911
|
}
|
|
1827
1912
|
|
|
1828
1913
|
/** @returns {Error} */
|
|
@@ -1853,8 +1938,8 @@ class ServiceabilityPlatformModel {
|
|
|
1853
1938
|
});
|
|
1854
1939
|
}
|
|
1855
1940
|
|
|
1856
|
-
/** @returns {
|
|
1857
|
-
static
|
|
1941
|
+
/** @returns {PincodeMopUpdateAuditHistoryDetails} */
|
|
1942
|
+
static PincodeMopUpdateAuditHistoryDetails() {
|
|
1858
1943
|
return Joi.object({
|
|
1859
1944
|
entity_type: Joi.string().allow("").required(),
|
|
1860
1945
|
file_name: Joi.string().allow(""),
|
|
@@ -1872,8 +1957,8 @@ class ServiceabilityPlatformModel {
|
|
|
1872
1957
|
});
|
|
1873
1958
|
}
|
|
1874
1959
|
|
|
1875
|
-
/** @returns {
|
|
1876
|
-
static
|
|
1960
|
+
/** @returns {PincodeMopUpdateAuditHistoryResult} */
|
|
1961
|
+
static PincodeMopUpdateAuditHistoryResult() {
|
|
1877
1962
|
return Joi.object({
|
|
1878
1963
|
batch_id: Joi.string().allow(""),
|
|
1879
1964
|
entity_type: Joi.string().allow(""),
|
|
@@ -1886,15 +1971,13 @@ class ServiceabilityPlatformModel {
|
|
|
1886
1971
|
});
|
|
1887
1972
|
}
|
|
1888
1973
|
|
|
1889
|
-
/** @returns {
|
|
1890
|
-
static
|
|
1974
|
+
/** @returns {PincodeMopUpdateAuditHistoryResultData} */
|
|
1975
|
+
static PincodeMopUpdateAuditHistoryResultData() {
|
|
1891
1976
|
return Joi.object({
|
|
1892
1977
|
entity_type: Joi.string().allow(""),
|
|
1893
1978
|
page: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryPaging().required(),
|
|
1894
1979
|
data: Joi.array()
|
|
1895
|
-
.items(
|
|
1896
|
-
ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponse()
|
|
1897
|
-
)
|
|
1980
|
+
.items(ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResult())
|
|
1898
1981
|
.required(),
|
|
1899
1982
|
});
|
|
1900
1983
|
}
|
|
@@ -1945,8 +2028,8 @@ class ServiceabilityPlatformModel {
|
|
|
1945
2028
|
});
|
|
1946
2029
|
}
|
|
1947
2030
|
|
|
1948
|
-
/** @returns {
|
|
1949
|
-
static
|
|
2031
|
+
/** @returns {CourierAccountDetailsBody} */
|
|
2032
|
+
static CourierAccountDetailsBody() {
|
|
1950
2033
|
return Joi.object({
|
|
1951
2034
|
extension_id: Joi.string().allow("").required(),
|
|
1952
2035
|
account_id: Joi.string().allow(""),
|
|
@@ -1957,8 +2040,8 @@ class ServiceabilityPlatformModel {
|
|
|
1957
2040
|
});
|
|
1958
2041
|
}
|
|
1959
2042
|
|
|
1960
|
-
/** @returns {
|
|
1961
|
-
static
|
|
2043
|
+
/** @returns {ErrorResult} */
|
|
2044
|
+
static ErrorResult() {
|
|
1962
2045
|
return Joi.object({
|
|
1963
2046
|
value: Joi.string().allow("").required(),
|
|
1964
2047
|
message: Joi.string().allow("").required(),
|
|
@@ -1966,12 +2049,12 @@ class ServiceabilityPlatformModel {
|
|
|
1966
2049
|
});
|
|
1967
2050
|
}
|
|
1968
2051
|
|
|
1969
|
-
/** @returns {
|
|
1970
|
-
static
|
|
2052
|
+
/** @returns {CourierPartnerAccountFailureResult} */
|
|
2053
|
+
static CourierPartnerAccountFailureResult() {
|
|
1971
2054
|
return Joi.object({
|
|
1972
2055
|
success: Joi.boolean().required(),
|
|
1973
2056
|
error: Joi.array()
|
|
1974
|
-
.items(ServiceabilityPlatformModel.
|
|
2057
|
+
.items(ServiceabilityPlatformModel.ErrorResult())
|
|
1975
2058
|
.required(),
|
|
1976
2059
|
});
|
|
1977
2060
|
}
|
|
@@ -1989,32 +2072,32 @@ class ServiceabilityPlatformModel {
|
|
|
1989
2072
|
});
|
|
1990
2073
|
}
|
|
1991
2074
|
|
|
1992
|
-
/** @returns {
|
|
1993
|
-
static
|
|
2075
|
+
/** @returns {CourierPartnerRuleCPListResult} */
|
|
2076
|
+
static CourierPartnerRuleCPListResult() {
|
|
1994
2077
|
return Joi.object({
|
|
1995
2078
|
account_id: Joi.string().allow(""),
|
|
1996
2079
|
extension_id: Joi.string().allow(""),
|
|
1997
2080
|
is_self_ship: Joi.boolean(),
|
|
1998
|
-
scheme_rules: Joi.any(),
|
|
2081
|
+
scheme_rules: Joi.object().pattern(/\S/, Joi.any()),
|
|
1999
2082
|
});
|
|
2000
2083
|
}
|
|
2001
2084
|
|
|
2002
|
-
/** @returns {
|
|
2003
|
-
static
|
|
2085
|
+
/** @returns {CourierPartnerRuleResult} */
|
|
2086
|
+
static CourierPartnerRuleResult() {
|
|
2004
2087
|
return Joi.object({
|
|
2005
2088
|
is_active: Joi.boolean(),
|
|
2006
2089
|
application_id: Joi.string().allow(""),
|
|
2007
2090
|
company_id: Joi.number(),
|
|
2008
2091
|
conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions(),
|
|
2009
2092
|
sort: Joi.array().items(Joi.string().allow("")),
|
|
2010
|
-
created_by: Joi.any().allow(null),
|
|
2093
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
2011
2094
|
id: Joi.string().allow(""),
|
|
2012
|
-
modified_by: Joi.any().allow(null),
|
|
2095
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
2013
2096
|
modified_on: Joi.string().allow("").allow(null),
|
|
2014
2097
|
name: Joi.string().allow(""),
|
|
2015
2098
|
type: Joi.string().allow(""),
|
|
2016
2099
|
cp_list: Joi.array().items(
|
|
2017
|
-
ServiceabilityPlatformModel.
|
|
2100
|
+
ServiceabilityPlatformModel.CourierPartnerRuleCPListResult()
|
|
2018
2101
|
),
|
|
2019
2102
|
});
|
|
2020
2103
|
}
|
|
@@ -2098,26 +2181,125 @@ class ServiceabilityPlatformModel {
|
|
|
2098
2181
|
});
|
|
2099
2182
|
}
|
|
2100
2183
|
|
|
2101
|
-
/** @returns {
|
|
2102
|
-
static
|
|
2184
|
+
/** @returns {FailureResult} */
|
|
2185
|
+
static FailureResult() {
|
|
2103
2186
|
return Joi.object({
|
|
2104
2187
|
success: Joi.boolean().required(),
|
|
2105
2188
|
error: Joi.array()
|
|
2106
|
-
.items(ServiceabilityPlatformModel.
|
|
2189
|
+
.items(ServiceabilityPlatformModel.ErrorResult())
|
|
2107
2190
|
.required(),
|
|
2108
2191
|
});
|
|
2109
2192
|
}
|
|
2110
2193
|
|
|
2111
|
-
/** @returns {
|
|
2112
|
-
static
|
|
2194
|
+
/** @returns {CourierPartnerRulesListResult} */
|
|
2195
|
+
static CourierPartnerRulesListResult() {
|
|
2113
2196
|
return Joi.object({
|
|
2114
2197
|
items: Joi.array()
|
|
2115
|
-
.items(ServiceabilityPlatformModel.
|
|
2198
|
+
.items(ServiceabilityPlatformModel.CourierPartnerRuleResult())
|
|
2116
2199
|
.required(),
|
|
2117
2200
|
page: ServiceabilityPlatformModel.Page().required(),
|
|
2118
2201
|
});
|
|
2119
2202
|
}
|
|
2120
2203
|
|
|
2204
|
+
/** @returns {ShipmentsArticles} */
|
|
2205
|
+
static ShipmentsArticles() {
|
|
2206
|
+
return Joi.object({
|
|
2207
|
+
item_id: Joi.number(),
|
|
2208
|
+
category_id: Joi.number(),
|
|
2209
|
+
brand_id: Joi.number(),
|
|
2210
|
+
department_id: Joi.number(),
|
|
2211
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
2212
|
+
});
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
/** @returns {ShipmentDimension} */
|
|
2216
|
+
static ShipmentDimension() {
|
|
2217
|
+
return Joi.object({
|
|
2218
|
+
height: Joi.number().required(),
|
|
2219
|
+
length: Joi.number().required(),
|
|
2220
|
+
width: Joi.number().required(),
|
|
2221
|
+
});
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
/** @returns {Shipments} */
|
|
2225
|
+
static Shipments() {
|
|
2226
|
+
return Joi.object({
|
|
2227
|
+
id: Joi.string().allow(""),
|
|
2228
|
+
location_id: Joi.number(),
|
|
2229
|
+
location_tags: Joi.array().items(Joi.string().allow("")),
|
|
2230
|
+
shipment_weight: Joi.number(),
|
|
2231
|
+
shipment_volumetric_weight: Joi.number(),
|
|
2232
|
+
shipment_cost: Joi.number(),
|
|
2233
|
+
shipment_dimension: ServiceabilityPlatformModel.ShipmentDimension(),
|
|
2234
|
+
courier_partner_schemes: Joi.array().items(Joi.string().allow("")),
|
|
2235
|
+
articles: Joi.array().items(
|
|
2236
|
+
ServiceabilityPlatformModel.ShipmentsArticles()
|
|
2237
|
+
),
|
|
2238
|
+
});
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
/** @returns {ShipmentCourierPartnerDetails} */
|
|
2242
|
+
static ShipmentCourierPartnerDetails() {
|
|
2243
|
+
return Joi.object({
|
|
2244
|
+
from_location: ServiceabilityPlatformModel.ShipmentsCourierPartnersServiceability().required(),
|
|
2245
|
+
to_location: ServiceabilityPlatformModel.ShipmentsCourierPartnersServiceability().required(),
|
|
2246
|
+
shipments: Joi.array().items(ServiceabilityPlatformModel.Shipments()),
|
|
2247
|
+
journey: Joi.string().allow(""),
|
|
2248
|
+
payment_mode: Joi.string().allow(""),
|
|
2249
|
+
});
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
/** @returns {CourierPartnerPromise} */
|
|
2253
|
+
static CourierPartnerPromise() {
|
|
2254
|
+
return Joi.object({
|
|
2255
|
+
min: Joi.string().allow("").required(),
|
|
2256
|
+
max: Joi.string().allow("").required(),
|
|
2257
|
+
});
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
/** @returns {CourierPartners} */
|
|
2261
|
+
static CourierPartners() {
|
|
2262
|
+
return Joi.object({
|
|
2263
|
+
extension_id: Joi.string().allow(""),
|
|
2264
|
+
scheme_id: Joi.string().allow(""),
|
|
2265
|
+
name: Joi.string().allow(""),
|
|
2266
|
+
delivery_promise: ServiceabilityPlatformModel.CourierPartnerPromise(),
|
|
2267
|
+
});
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
/** @returns {ShipmentCourierPartners} */
|
|
2271
|
+
static ShipmentCourierPartners() {
|
|
2272
|
+
return Joi.object({
|
|
2273
|
+
id: Joi.string().allow(""),
|
|
2274
|
+
courier_partners: Joi.array().items(
|
|
2275
|
+
ServiceabilityPlatformModel.CourierPartners()
|
|
2276
|
+
),
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
/** @returns {ShipmentCourierPartnerResult} */
|
|
2281
|
+
static ShipmentCourierPartnerResult() {
|
|
2282
|
+
return Joi.object({
|
|
2283
|
+
courier_partners: Joi.array().items(
|
|
2284
|
+
ServiceabilityPlatformModel.CourierPartners()
|
|
2285
|
+
),
|
|
2286
|
+
shipments: Joi.array().items(
|
|
2287
|
+
ServiceabilityPlatformModel.ShipmentCourierPartners()
|
|
2288
|
+
),
|
|
2289
|
+
});
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
/** @returns {ShipmentsCourierPartnersServiceability} */
|
|
2293
|
+
static ShipmentsCourierPartnersServiceability() {
|
|
2294
|
+
return Joi.object({
|
|
2295
|
+
pincode: Joi.string().allow(""),
|
|
2296
|
+
sector_code: Joi.string().allow(""),
|
|
2297
|
+
state_code: Joi.string().allow(""),
|
|
2298
|
+
city_code: Joi.string().allow(""),
|
|
2299
|
+
country_code: Joi.string().allow("").required(),
|
|
2300
|
+
});
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2121
2303
|
/** @returns {CompanyConfig} */
|
|
2122
2304
|
static CompanyConfig() {
|
|
2123
2305
|
return Joi.object({
|
|
@@ -2143,8 +2325,8 @@ class ServiceabilityPlatformModel {
|
|
|
2143
2325
|
});
|
|
2144
2326
|
}
|
|
2145
2327
|
|
|
2146
|
-
/** @returns {
|
|
2147
|
-
static
|
|
2328
|
+
/** @returns {BulkRegionJobDetails} */
|
|
2329
|
+
static BulkRegionJobDetails() {
|
|
2148
2330
|
return Joi.object({
|
|
2149
2331
|
file_path: Joi.string().allow(""),
|
|
2150
2332
|
country: Joi.string().allow("").required(),
|
|
@@ -2153,12 +2335,12 @@ class ServiceabilityPlatformModel {
|
|
|
2153
2335
|
});
|
|
2154
2336
|
}
|
|
2155
2337
|
|
|
2156
|
-
/** @returns {
|
|
2157
|
-
static
|
|
2338
|
+
/** @returns {BulkRegionResultItemData} */
|
|
2339
|
+
static BulkRegionResultItemData() {
|
|
2158
2340
|
return Joi.object({
|
|
2159
2341
|
file_path: Joi.string().allow("").required(),
|
|
2160
2342
|
failed: Joi.number(),
|
|
2161
|
-
failed_records: Joi.array().items(Joi.any()),
|
|
2343
|
+
failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
2162
2344
|
action: Joi.string().allow("").required(),
|
|
2163
2345
|
batch_id: Joi.string().allow("").required(),
|
|
2164
2346
|
country: Joi.string().allow("").required(),
|
|
@@ -2170,18 +2352,18 @@ class ServiceabilityPlatformModel {
|
|
|
2170
2352
|
});
|
|
2171
2353
|
}
|
|
2172
2354
|
|
|
2173
|
-
/** @returns {
|
|
2174
|
-
static
|
|
2355
|
+
/** @returns {BulkRegionResult} */
|
|
2356
|
+
static BulkRegionResult() {
|
|
2175
2357
|
return Joi.object({
|
|
2176
2358
|
items: Joi.array()
|
|
2177
|
-
.items(ServiceabilityPlatformModel.
|
|
2359
|
+
.items(ServiceabilityPlatformModel.BulkRegionResultItemData())
|
|
2178
2360
|
.required(),
|
|
2179
2361
|
page: ServiceabilityPlatformModel.Page().required(),
|
|
2180
2362
|
});
|
|
2181
2363
|
}
|
|
2182
2364
|
|
|
2183
|
-
/** @returns {
|
|
2184
|
-
static
|
|
2365
|
+
/** @returns {SelfShipResult} */
|
|
2366
|
+
static SelfShipResult() {
|
|
2185
2367
|
return Joi.object({
|
|
2186
2368
|
is_active: Joi.boolean().required(),
|
|
2187
2369
|
tat: Joi.number().required(),
|
|
@@ -2191,14 +2373,14 @@ class ServiceabilityPlatformModel {
|
|
|
2191
2373
|
/** @returns {ApplicationSelfShipConfig} */
|
|
2192
2374
|
static ApplicationSelfShipConfig() {
|
|
2193
2375
|
return Joi.object({
|
|
2194
|
-
self_ship:
|
|
2376
|
+
self_ship: ServiceabilityPlatformModel.SelfShipResult(),
|
|
2195
2377
|
});
|
|
2196
2378
|
}
|
|
2197
2379
|
|
|
2198
|
-
/** @returns {
|
|
2199
|
-
static
|
|
2380
|
+
/** @returns {ApplicationSelfShipConfigResult} */
|
|
2381
|
+
static ApplicationSelfShipConfigResult() {
|
|
2200
2382
|
return Joi.object({
|
|
2201
|
-
error: ServiceabilityPlatformModel.
|
|
2383
|
+
error: ServiceabilityPlatformModel.ServiceabilityErrorResult(),
|
|
2202
2384
|
data: ServiceabilityPlatformModel.ApplicationSelfShipConfig(),
|
|
2203
2385
|
success: Joi.boolean().required(),
|
|
2204
2386
|
});
|
|
@@ -2271,8 +2453,8 @@ class ServiceabilityPlatformModel {
|
|
|
2271
2453
|
});
|
|
2272
2454
|
}
|
|
2273
2455
|
|
|
2274
|
-
/** @returns {
|
|
2275
|
-
static
|
|
2456
|
+
/** @returns {GetStoreRulesApiResult} */
|
|
2457
|
+
static GetStoreRulesApiResult() {
|
|
2276
2458
|
return Joi.object({
|
|
2277
2459
|
items: Joi.array().items(
|
|
2278
2460
|
ServiceabilityPlatformModel.StoreRuleDataSchema()
|
|
@@ -2281,8 +2463,8 @@ class ServiceabilityPlatformModel {
|
|
|
2281
2463
|
});
|
|
2282
2464
|
}
|
|
2283
2465
|
|
|
2284
|
-
/** @returns {
|
|
2285
|
-
static
|
|
2466
|
+
/** @returns {CreateStoreRuleDetailsSchema} */
|
|
2467
|
+
static CreateStoreRuleDetailsSchema() {
|
|
2286
2468
|
return Joi.object({
|
|
2287
2469
|
name: Joi.string().allow(""),
|
|
2288
2470
|
is_active: Joi.boolean(),
|
|
@@ -2296,8 +2478,8 @@ class ServiceabilityPlatformModel {
|
|
|
2296
2478
|
});
|
|
2297
2479
|
}
|
|
2298
2480
|
|
|
2299
|
-
/** @returns {
|
|
2300
|
-
static
|
|
2481
|
+
/** @returns {StoreRuleResultSchema} */
|
|
2482
|
+
static StoreRuleResultSchema() {
|
|
2301
2483
|
return Joi.object({
|
|
2302
2484
|
id: Joi.string().allow(""),
|
|
2303
2485
|
name: Joi.string().allow(""),
|
|
@@ -2313,8 +2495,8 @@ class ServiceabilityPlatformModel {
|
|
|
2313
2495
|
});
|
|
2314
2496
|
}
|
|
2315
2497
|
|
|
2316
|
-
/** @returns {
|
|
2317
|
-
static
|
|
2498
|
+
/** @returns {StoreRuleUpdateResultSchema} */
|
|
2499
|
+
static StoreRuleUpdateResultSchema() {
|
|
2318
2500
|
return Joi.object({
|
|
2319
2501
|
id: Joi.string().allow(""),
|
|
2320
2502
|
name: Joi.string().allow(""),
|
|
@@ -2337,8 +2519,8 @@ class ServiceabilityPlatformModel {
|
|
|
2337
2519
|
return Joi.object({
|
|
2338
2520
|
lm_cod_limit: Joi.number().required(),
|
|
2339
2521
|
is_qc: Joi.boolean().required(),
|
|
2340
|
-
pickup_cutoff: Joi.string().allow("").allow(null)
|
|
2341
|
-
route_code: Joi.string().allow("").allow(null)
|
|
2522
|
+
pickup_cutoff: Joi.string().allow("").allow(null),
|
|
2523
|
+
route_code: Joi.string().allow("").allow(null),
|
|
2342
2524
|
is_first_mile: Joi.boolean().required(),
|
|
2343
2525
|
is_return: Joi.boolean().required(),
|
|
2344
2526
|
is_installation: Joi.boolean().required(),
|
|
@@ -2385,8 +2567,8 @@ class ServiceabilityPlatformModel {
|
|
|
2385
2567
|
});
|
|
2386
2568
|
}
|
|
2387
2569
|
|
|
2388
|
-
/** @returns {
|
|
2389
|
-
static
|
|
2570
|
+
/** @returns {CourierAccountResult} */
|
|
2571
|
+
static CourierAccountResult() {
|
|
2390
2572
|
return Joi.object({
|
|
2391
2573
|
account_id: Joi.string().allow("").required(),
|
|
2392
2574
|
scheme_id: Joi.string().allow("").required(),
|
|
@@ -2397,11 +2579,11 @@ class ServiceabilityPlatformModel {
|
|
|
2397
2579
|
});
|
|
2398
2580
|
}
|
|
2399
2581
|
|
|
2400
|
-
/** @returns {
|
|
2401
|
-
static
|
|
2582
|
+
/** @returns {CompanyCourierPartnerAccountListResult} */
|
|
2583
|
+
static CompanyCourierPartnerAccountListResult() {
|
|
2402
2584
|
return Joi.object({
|
|
2403
2585
|
items: Joi.array()
|
|
2404
|
-
.items(ServiceabilityPlatformModel.
|
|
2586
|
+
.items(ServiceabilityPlatformModel.CourierAccountResult())
|
|
2405
2587
|
.required(),
|
|
2406
2588
|
page: ServiceabilityPlatformModel.Page().required(),
|
|
2407
2589
|
});
|
|
@@ -2434,8 +2616,8 @@ class ServiceabilityPlatformModel {
|
|
|
2434
2616
|
});
|
|
2435
2617
|
}
|
|
2436
2618
|
|
|
2437
|
-
/** @returns {
|
|
2438
|
-
static
|
|
2619
|
+
/** @returns {PackageMaterialResult} */
|
|
2620
|
+
static PackageMaterialResult() {
|
|
2439
2621
|
return Joi.object({
|
|
2440
2622
|
name: Joi.string().allow("").required(),
|
|
2441
2623
|
id: Joi.string().allow(""),
|
|
@@ -2485,8 +2667,8 @@ class ServiceabilityPlatformModel {
|
|
|
2485
2667
|
});
|
|
2486
2668
|
}
|
|
2487
2669
|
|
|
2488
|
-
/** @returns {
|
|
2489
|
-
static
|
|
2670
|
+
/** @returns {PackageRuleResult} */
|
|
2671
|
+
static PackageRuleResult() {
|
|
2490
2672
|
return Joi.object({
|
|
2491
2673
|
id: Joi.string().allow(""),
|
|
2492
2674
|
name: Joi.string().allow("").required(),
|
|
@@ -2510,7 +2692,7 @@ class ServiceabilityPlatformModel {
|
|
|
2510
2692
|
/** @returns {PackageMaterialRuleList} */
|
|
2511
2693
|
static PackageMaterialRuleList() {
|
|
2512
2694
|
return Joi.object({
|
|
2513
|
-
items: ServiceabilityPlatformModel.
|
|
2695
|
+
items: ServiceabilityPlatformModel.PackageRuleResult(),
|
|
2514
2696
|
page: ServiceabilityPlatformModel.Page(),
|
|
2515
2697
|
});
|
|
2516
2698
|
}
|
|
@@ -2518,7 +2700,7 @@ class ServiceabilityPlatformModel {
|
|
|
2518
2700
|
/** @returns {PackageMaterialList} */
|
|
2519
2701
|
static PackageMaterialList() {
|
|
2520
2702
|
return Joi.object({
|
|
2521
|
-
items: ServiceabilityPlatformModel.
|
|
2703
|
+
items: ServiceabilityPlatformModel.PackageMaterialResult(),
|
|
2522
2704
|
page: ServiceabilityPlatformModel.Page(),
|
|
2523
2705
|
});
|
|
2524
2706
|
}
|
|
@@ -2552,16 +2734,16 @@ class ServiceabilityPlatformModel {
|
|
|
2552
2734
|
});
|
|
2553
2735
|
}
|
|
2554
2736
|
|
|
2555
|
-
/** @returns {
|
|
2556
|
-
static
|
|
2737
|
+
/** @returns {RulePriorityDetails} */
|
|
2738
|
+
static RulePriorityDetails() {
|
|
2557
2739
|
return Joi.object({
|
|
2558
2740
|
rule_id: Joi.string().allow("").required(),
|
|
2559
2741
|
priority: Joi.number().required(),
|
|
2560
2742
|
});
|
|
2561
2743
|
}
|
|
2562
2744
|
|
|
2563
|
-
/** @returns {
|
|
2564
|
-
static
|
|
2745
|
+
/** @returns {RulePriorityResult} */
|
|
2746
|
+
static RulePriorityResult() {
|
|
2565
2747
|
return Joi.object({
|
|
2566
2748
|
success: Joi.boolean(),
|
|
2567
2749
|
});
|
|
@@ -2601,10 +2783,10 @@ class ServiceabilityPlatformModel {
|
|
|
2601
2783
|
return Joi.object({
|
|
2602
2784
|
item_id: Joi.number().required(),
|
|
2603
2785
|
size: Joi.string().allow("").required(),
|
|
2604
|
-
quantity: Joi.
|
|
2786
|
+
quantity: Joi.number().required(),
|
|
2605
2787
|
group_id: Joi.string().allow(""),
|
|
2606
2788
|
is_primary_item: Joi.boolean(),
|
|
2607
|
-
meta: Joi.any(),
|
|
2789
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
2608
2790
|
article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
|
|
2609
2791
|
ignore_locations: Joi.array().items(Joi.number()).required(),
|
|
2610
2792
|
assign_locations: Joi.array().items(Joi.number()).required(),
|
|
@@ -2612,26 +2794,28 @@ class ServiceabilityPlatformModel {
|
|
|
2612
2794
|
});
|
|
2613
2795
|
}
|
|
2614
2796
|
|
|
2615
|
-
/** @returns {
|
|
2616
|
-
static
|
|
2797
|
+
/** @returns {OptimlLocationsDetailsSchema} */
|
|
2798
|
+
static OptimlLocationsDetailsSchema() {
|
|
2617
2799
|
return Joi.object({
|
|
2618
2800
|
channel_id: Joi.string().allow("").required(),
|
|
2619
2801
|
channel_type: Joi.string().allow("").required(),
|
|
2620
2802
|
channel_identifier: Joi.string().allow(""),
|
|
2621
2803
|
to_serviceability: ServiceabilityPlatformModel.LocationDetailsServiceability().required(),
|
|
2622
|
-
|
|
2804
|
+
articles: Joi.array().items(
|
|
2805
|
+
ServiceabilityPlatformModel.OptimalLocationsArticles()
|
|
2806
|
+
),
|
|
2623
2807
|
});
|
|
2624
2808
|
}
|
|
2625
2809
|
|
|
2626
|
-
/** @returns {
|
|
2627
|
-
static
|
|
2810
|
+
/** @returns {OptimalLocationArticlesResult} */
|
|
2811
|
+
static OptimalLocationArticlesResult() {
|
|
2628
2812
|
return Joi.object({
|
|
2629
2813
|
item_id: Joi.number().required(),
|
|
2630
2814
|
size: Joi.string().allow("").required(),
|
|
2631
2815
|
quantity: Joi.number().required(),
|
|
2632
2816
|
group_id: Joi.string().allow(""),
|
|
2633
2817
|
is_primary_item: Joi.boolean(),
|
|
2634
|
-
meta: Joi.any(),
|
|
2818
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
2635
2819
|
article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
|
|
2636
2820
|
seller_id: Joi.number(),
|
|
2637
2821
|
ignore_locations: Joi.array().items(Joi.number()).required(),
|
|
@@ -2643,28 +2827,43 @@ class ServiceabilityPlatformModel {
|
|
|
2643
2827
|
});
|
|
2644
2828
|
}
|
|
2645
2829
|
|
|
2646
|
-
/** @returns {
|
|
2647
|
-
static
|
|
2830
|
+
/** @returns {OptimalLocationAssignedStoresResult} */
|
|
2831
|
+
static OptimalLocationAssignedStoresResult() {
|
|
2648
2832
|
return Joi.object({
|
|
2649
2833
|
store_id: Joi.number().required(),
|
|
2650
2834
|
articles: Joi.array()
|
|
2651
|
-
.items(ServiceabilityPlatformModel.
|
|
2835
|
+
.items(ServiceabilityPlatformModel.OptimalLocationArticlesResult())
|
|
2652
2836
|
.required(),
|
|
2653
2837
|
});
|
|
2654
2838
|
}
|
|
2655
2839
|
|
|
2656
|
-
/** @returns {
|
|
2657
|
-
static
|
|
2840
|
+
/** @returns {OptimalLocationsResult} */
|
|
2841
|
+
static OptimalLocationsResult() {
|
|
2658
2842
|
return Joi.object({
|
|
2659
2843
|
assigned_stores: Joi.array()
|
|
2660
2844
|
.items(
|
|
2661
|
-
ServiceabilityPlatformModel.
|
|
2845
|
+
ServiceabilityPlatformModel.OptimalLocationAssignedStoresResult()
|
|
2662
2846
|
)
|
|
2663
2847
|
.required(),
|
|
2664
2848
|
faulty_articles: Joi.array().items(
|
|
2665
|
-
ServiceabilityPlatformModel.
|
|
2849
|
+
ServiceabilityPlatformModel.ErrorResult()
|
|
2666
2850
|
),
|
|
2667
2851
|
});
|
|
2668
2852
|
}
|
|
2853
|
+
|
|
2854
|
+
/** @returns {ValidationError} */
|
|
2855
|
+
static ValidationError() {
|
|
2856
|
+
return Joi.object({
|
|
2857
|
+
message: Joi.string().allow("").required(),
|
|
2858
|
+
field: Joi.string().allow("").required(),
|
|
2859
|
+
});
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
/** @returns {StandardError} */
|
|
2863
|
+
static StandardError() {
|
|
2864
|
+
return Joi.object({
|
|
2865
|
+
message: Joi.string().allow("").required(),
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2669
2868
|
}
|
|
2670
2869
|
module.exports = ServiceabilityPlatformModel;
|