@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
- package/sdk/application/Cart/CartApplicationClient.js +53 -130
- package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
- package/sdk/application/Cart/CartApplicationModel.js +159 -380
- package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
- package/sdk/application/Cart/CartApplicationValidator.js +18 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
- package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
- package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -6
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
- package/sdk/application/Content/ContentApplicationClient.js +75 -54
- package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
- package/sdk/application/Content/ContentApplicationModel.js +32 -83
- package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
- package/sdk/application/Content/ContentApplicationValidator.js +10 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
- package/sdk/application/Lead/LeadApplicationClient.js +3 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
- package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
- package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
- package/sdk/application/Order/OrderApplicationClient.js +13 -96
- package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
- package/sdk/application/Order/OrderApplicationModel.js +81 -279
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
- package/sdk/application/Order/OrderApplicationValidator.js +2 -15
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
- package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
- package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
- 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 +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
- package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
- 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 +9 -11
- package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- 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 +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1304 -4979
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- 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 +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- 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 +4 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
- package/sdk/platform/Order/OrderPlatformClient.js +245 -597
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- 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 +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +341 -602
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +284 -483
- 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 +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- 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 +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +5 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- 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/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef UpdateZoneConfigRequest
|
|
5
5
|
* @property {string} [serviceability_type]
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @typedef
|
|
9
|
+
* @typedef ServiceabilityErrorResponse
|
|
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 ApplicationServiceabilityConfigResponse
|
|
24
|
+
* @property {ServiceabilityErrorResponse} [error]
|
|
25
25
|
* @property {ApplicationServiceabilityConfig} [data]
|
|
26
26
|
* @property {boolean} success
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* @typedef
|
|
30
|
+
* @typedef EntityRegionView_Request
|
|
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 getAppRegionZonesResponse
|
|
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_Response
|
|
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 ListViewResponse
|
|
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_Response
|
|
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 ZoneUpdateRequest
|
|
182
182
|
* @property {string} identifier
|
|
183
183
|
* @property {UpdateZoneData} data
|
|
184
184
|
*/
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
|
-
* @typedef
|
|
187
|
+
* @typedef ZoneSuccessResponse
|
|
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 GetSingleZoneDataViewResponse
|
|
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 ZoneResponse
|
|
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 GetZoneFromPincodeViewRequest
|
|
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 GetZoneFromPincodeViewResponse
|
|
269
269
|
* @property {string} serviceability_type
|
|
270
270
|
* @property {Zone[]} zones
|
|
271
271
|
*/
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
|
-
* @typedef
|
|
274
|
+
* @typedef GetZoneFromApplicationIdViewResponse
|
|
275
275
|
* @property {ZoneDataItem[]} page
|
|
276
276
|
* @property {ListViewItems[]} items
|
|
277
277
|
*/
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
|
-
* @typedef
|
|
280
|
+
* @typedef ServiceabilityPageResponse
|
|
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 ManagerResponse
|
|
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 ModifiedByResponse
|
|
303
303
|
* @property {string} [username]
|
|
304
304
|
* @property {string} [user_id]
|
|
305
305
|
*/
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
|
-
* @typedef
|
|
308
|
+
* @typedef IntegrationTypeResponse
|
|
309
309
|
* @property {string} [inventory]
|
|
310
310
|
* @property {string} [order]
|
|
311
311
|
*/
|
|
312
312
|
|
|
313
313
|
/**
|
|
314
|
-
* @typedef
|
|
314
|
+
* @typedef ProductReturnConfigResponse
|
|
315
315
|
* @property {boolean} [on_same_store]
|
|
316
316
|
*/
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
|
-
* @typedef
|
|
319
|
+
* @typedef ContactNumberResponse
|
|
320
320
|
* @property {string} [number]
|
|
321
321
|
* @property {number} [country_code]
|
|
322
322
|
*/
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
|
-
* @typedef
|
|
325
|
+
* @typedef AddressResponse
|
|
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 CreatedByResponse
|
|
339
339
|
* @property {string} [username]
|
|
340
340
|
* @property {string} [user_id]
|
|
341
341
|
*/
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
|
-
* @typedef
|
|
344
|
+
* @typedef EwayBillResponse
|
|
345
345
|
* @property {boolean} [enabled]
|
|
346
346
|
*/
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
|
-
* @typedef
|
|
349
|
+
* @typedef EinvoiceResponse
|
|
350
350
|
* @property {boolean} [enabled]
|
|
351
351
|
*/
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* @typedef
|
|
355
|
-
* @property {
|
|
356
|
-
* @property {
|
|
354
|
+
* @typedef GstCredentialsResponse
|
|
355
|
+
* @property {EwayBillResponse} [e_waybill]
|
|
356
|
+
* @property {EinvoiceResponse} [e_invoice]
|
|
357
357
|
*/
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
|
-
* @typedef
|
|
360
|
+
* @typedef WarningsResponse
|
|
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 TimmingResponse
|
|
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 DocumentsResponse
|
|
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 LogisticsResponse
|
|
402
402
|
* @property {boolean} [override]
|
|
403
403
|
* @property {Dp} [dp]
|
|
404
404
|
*/
|
|
405
405
|
|
|
406
406
|
/**
|
|
407
|
-
* @typedef
|
|
407
|
+
* @typedef ItemResponse
|
|
408
408
|
* @property {string} [created_on]
|
|
409
|
-
* @property {
|
|
410
|
-
* @property {
|
|
411
|
-
* @property {
|
|
409
|
+
* @property {ManagerResponse} [manager]
|
|
410
|
+
* @property {ModifiedByResponse} [modified_by]
|
|
411
|
+
* @property {IntegrationTypeResponse} [integration_type]
|
|
412
412
|
* @property {string} [verified_on]
|
|
413
|
-
* @property {
|
|
414
|
-
* @property {
|
|
415
|
-
* @property {
|
|
413
|
+
* @property {ProductReturnConfigResponse} [product_return_config]
|
|
414
|
+
* @property {ContactNumberResponse[]} [contact_numbers]
|
|
415
|
+
* @property {ModifiedByResponse} [verified_by]
|
|
416
416
|
* @property {string} [stage]
|
|
417
|
-
* @property {
|
|
417
|
+
* @property {AddressResponse} [address]
|
|
418
418
|
* @property {string} [modified_on]
|
|
419
|
-
* @property {
|
|
420
|
-
* @property {
|
|
419
|
+
* @property {CreatedByResponse} [created_by]
|
|
420
|
+
* @property {GstCredentialsResponse} [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 {WarningsResponse} [warnings]
|
|
427
427
|
* @property {string} [name]
|
|
428
|
-
* @property {
|
|
429
|
-
* @property {
|
|
428
|
+
* @property {TimmingResponse[]} [timing]
|
|
429
|
+
* @property {DocumentsResponse[]} [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 {LogisticsResponse} [logistics]
|
|
435
435
|
* @property {string[]} [notification_emails]
|
|
436
436
|
*/
|
|
437
437
|
|
|
438
438
|
/**
|
|
439
|
-
* @typedef
|
|
440
|
-
* @property {
|
|
441
|
-
* @property {
|
|
439
|
+
* @typedef GetStoresViewResponse
|
|
440
|
+
* @property {ServiceabilityPageResponse} page
|
|
441
|
+
* @property {ItemResponse[]} [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 PincodeMopUpdateResponse
|
|
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 PincodeMOPresponse
|
|
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 {PincodeMopUpdateResponse[]} [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 PincodeBulkViewResponse
|
|
485
485
|
* @property {string} batch_id
|
|
486
486
|
* @property {string} s3_url
|
|
487
487
|
*/
|
|
488
488
|
|
|
489
489
|
/**
|
|
490
|
-
* @typedef
|
|
490
|
+
* @typedef PincodeCodStatusListingRequest
|
|
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 PincodeCodStatusListingResponse
|
|
500
500
|
* @property {string} country
|
|
501
|
-
* @property {
|
|
501
|
+
* @property {PincodeCodStatusListingResponse[]} 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 PincodeMopUpdateAuditHistoryRequest
|
|
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 PincodeMopUpdateAuditHistoryResponse
|
|
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 PincodeMopUpdateAuditHistoryResponseData
|
|
559
559
|
* @property {string} [entity_type]
|
|
560
560
|
* @property {PincodeMopUpdateAuditHistoryPaging} page
|
|
561
|
-
* @property {
|
|
561
|
+
* @property {PincodeMopUpdateAuditHistoryResponse[]} 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 CourierAccountRequestBody
|
|
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 ErrorResponse
|
|
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 CourierPartnerAccountFailureResponse
|
|
621
621
|
* @property {boolean} success
|
|
622
|
-
* @property {
|
|
622
|
+
* @property {ErrorResponse[]} 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 CourierPartnerRuleCPListResponse
|
|
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 CourierPartnerRuleResponse
|
|
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 {CourierPartnerRuleCPListResponse[]} [cp_list]
|
|
658
658
|
*/
|
|
659
659
|
|
|
660
660
|
/**
|
|
@@ -719,91 +719,17 @@ const Joi = require("joi");
|
|
|
719
719
|
*/
|
|
720
720
|
|
|
721
721
|
/**
|
|
722
|
-
* @typedef
|
|
722
|
+
* @typedef FailureResponse
|
|
723
723
|
* @property {boolean} success
|
|
724
|
-
* @property {
|
|
724
|
+
* @property {ErrorResponse[]} error
|
|
725
725
|
*/
|
|
726
726
|
|
|
727
727
|
/**
|
|
728
|
-
* @typedef
|
|
729
|
-
* @property {
|
|
728
|
+
* @typedef CourierPartnerRulesListResponse
|
|
729
|
+
* @property {CourierPartnerRuleResponse[]} 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
|
-
|
|
807
733
|
/**
|
|
808
734
|
* @typedef CompanyConfig
|
|
809
735
|
* @property {string[]} rule_ids
|
|
@@ -824,7 +750,7 @@ const Joi = require("joi");
|
|
|
824
750
|
*/
|
|
825
751
|
|
|
826
752
|
/**
|
|
827
|
-
* @typedef
|
|
753
|
+
* @typedef BulkRegionJobSerializer
|
|
828
754
|
* @property {string} [file_path]
|
|
829
755
|
* @property {string} country
|
|
830
756
|
* @property {string} action
|
|
@@ -832,7 +758,7 @@ const Joi = require("joi");
|
|
|
832
758
|
*/
|
|
833
759
|
|
|
834
760
|
/**
|
|
835
|
-
* @typedef
|
|
761
|
+
* @typedef BulkRegionResponseItemData
|
|
836
762
|
* @property {string} file_path
|
|
837
763
|
* @property {number} [failed]
|
|
838
764
|
* @property {Object[]} [failed_records]
|
|
@@ -847,25 +773,25 @@ const Joi = require("joi");
|
|
|
847
773
|
*/
|
|
848
774
|
|
|
849
775
|
/**
|
|
850
|
-
* @typedef
|
|
851
|
-
* @property {
|
|
776
|
+
* @typedef BulkRegionResponse
|
|
777
|
+
* @property {BulkRegionResponseItemData[]} items
|
|
852
778
|
* @property {Page} page
|
|
853
779
|
*/
|
|
854
780
|
|
|
855
781
|
/**
|
|
856
|
-
* @typedef
|
|
782
|
+
* @typedef SelfShipResponse
|
|
857
783
|
* @property {boolean} is_active
|
|
858
784
|
* @property {number} tat
|
|
859
785
|
*/
|
|
860
786
|
|
|
861
787
|
/**
|
|
862
788
|
* @typedef ApplicationSelfShipConfig
|
|
863
|
-
* @property {
|
|
789
|
+
* @property {Object} [self_ship]
|
|
864
790
|
*/
|
|
865
791
|
|
|
866
792
|
/**
|
|
867
|
-
* @typedef
|
|
868
|
-
* @property {
|
|
793
|
+
* @typedef ApplicationSelfShipConfigResponse
|
|
794
|
+
* @property {ServiceabilityErrorResponse} [error]
|
|
869
795
|
* @property {ApplicationSelfShipConfig} [data]
|
|
870
796
|
* @property {boolean} success
|
|
871
797
|
*/
|
|
@@ -924,13 +850,13 @@ const Joi = require("joi");
|
|
|
924
850
|
*/
|
|
925
851
|
|
|
926
852
|
/**
|
|
927
|
-
* @typedef
|
|
853
|
+
* @typedef GetStoreRulesApiResponse
|
|
928
854
|
* @property {StoreRuleDataSchema[]} [items]
|
|
929
855
|
* @property {Page} [page]
|
|
930
856
|
*/
|
|
931
857
|
|
|
932
858
|
/**
|
|
933
|
-
* @typedef
|
|
859
|
+
* @typedef CreateStoreRuleRequestSchema
|
|
934
860
|
* @property {string} [name]
|
|
935
861
|
* @property {boolean} [is_active]
|
|
936
862
|
* @property {StoreRuleConditionSchema} [conditions]
|
|
@@ -941,7 +867,7 @@ const Joi = require("joi");
|
|
|
941
867
|
*/
|
|
942
868
|
|
|
943
869
|
/**
|
|
944
|
-
* @typedef
|
|
870
|
+
* @typedef StoreRuleResponseSchema
|
|
945
871
|
* @property {string} [id]
|
|
946
872
|
* @property {string} [name]
|
|
947
873
|
* @property {string} [type]
|
|
@@ -954,7 +880,7 @@ const Joi = require("joi");
|
|
|
954
880
|
*/
|
|
955
881
|
|
|
956
882
|
/**
|
|
957
|
-
* @typedef
|
|
883
|
+
* @typedef StoreRuleUpdateResponseSchema
|
|
958
884
|
* @property {string} [id]
|
|
959
885
|
* @property {string} [name]
|
|
960
886
|
* @property {string} [type]
|
|
@@ -972,8 +898,8 @@ const Joi = require("joi");
|
|
|
972
898
|
* @typedef ServiceabilityModel
|
|
973
899
|
* @property {number} lm_cod_limit
|
|
974
900
|
* @property {boolean} is_qc
|
|
975
|
-
* @property {string}
|
|
976
|
-
* @property {string}
|
|
901
|
+
* @property {string} pickup_cutoff
|
|
902
|
+
* @property {string} route_code
|
|
977
903
|
* @property {boolean} is_first_mile
|
|
978
904
|
* @property {boolean} is_return
|
|
979
905
|
* @property {boolean} is_installation
|
|
@@ -1016,7 +942,7 @@ const Joi = require("joi");
|
|
|
1016
942
|
*/
|
|
1017
943
|
|
|
1018
944
|
/**
|
|
1019
|
-
* @typedef
|
|
945
|
+
* @typedef CourierAccountResponse
|
|
1020
946
|
* @property {string} account_id
|
|
1021
947
|
* @property {string} scheme_id
|
|
1022
948
|
* @property {boolean} is_self_ship
|
|
@@ -1026,8 +952,8 @@ const Joi = require("joi");
|
|
|
1026
952
|
*/
|
|
1027
953
|
|
|
1028
954
|
/**
|
|
1029
|
-
* @typedef
|
|
1030
|
-
* @property {
|
|
955
|
+
* @typedef CompanyCourierPartnerAccountListResponse
|
|
956
|
+
* @property {CourierAccountResponse[]} items
|
|
1031
957
|
* @property {Page} page
|
|
1032
958
|
*/
|
|
1033
959
|
|
|
@@ -1053,7 +979,7 @@ const Joi = require("joi");
|
|
|
1053
979
|
*/
|
|
1054
980
|
|
|
1055
981
|
/**
|
|
1056
|
-
* @typedef
|
|
982
|
+
* @typedef PackageMaterialResponse
|
|
1057
983
|
* @property {string} name
|
|
1058
984
|
* @property {string} [id]
|
|
1059
985
|
* @property {number} [item_id]
|
|
@@ -1094,7 +1020,7 @@ const Joi = require("joi");
|
|
|
1094
1020
|
*/
|
|
1095
1021
|
|
|
1096
1022
|
/**
|
|
1097
|
-
* @typedef
|
|
1023
|
+
* @typedef PackageRuleResponse
|
|
1098
1024
|
* @property {string} [id]
|
|
1099
1025
|
* @property {string} name
|
|
1100
1026
|
* @property {number} company_id
|
|
@@ -1113,13 +1039,13 @@ const Joi = require("joi");
|
|
|
1113
1039
|
|
|
1114
1040
|
/**
|
|
1115
1041
|
* @typedef PackageMaterialRuleList
|
|
1116
|
-
* @property {
|
|
1042
|
+
* @property {PackageRuleResponse} [items]
|
|
1117
1043
|
* @property {Page} [page]
|
|
1118
1044
|
*/
|
|
1119
1045
|
|
|
1120
1046
|
/**
|
|
1121
1047
|
* @typedef PackageMaterialList
|
|
1122
|
-
* @property {
|
|
1048
|
+
* @property {PackageMaterialResponse} [items]
|
|
1123
1049
|
* @property {Page} [page]
|
|
1124
1050
|
*/
|
|
1125
1051
|
|
|
@@ -1145,13 +1071,13 @@ const Joi = require("joi");
|
|
|
1145
1071
|
*/
|
|
1146
1072
|
|
|
1147
1073
|
/**
|
|
1148
|
-
* @typedef
|
|
1074
|
+
* @typedef RulePriorityRequest
|
|
1149
1075
|
* @property {string} rule_id
|
|
1150
1076
|
* @property {number} priority
|
|
1151
1077
|
*/
|
|
1152
1078
|
|
|
1153
1079
|
/**
|
|
1154
|
-
* @typedef
|
|
1080
|
+
* @typedef RulePriorityResponse
|
|
1155
1081
|
* @property {boolean} [success]
|
|
1156
1082
|
*/
|
|
1157
1083
|
|
|
@@ -1183,7 +1109,7 @@ const Joi = require("joi");
|
|
|
1183
1109
|
* @typedef OptimalLocationsArticles
|
|
1184
1110
|
* @property {number} item_id
|
|
1185
1111
|
* @property {string} size
|
|
1186
|
-
* @property {
|
|
1112
|
+
* @property {string} quantity
|
|
1187
1113
|
* @property {string} [group_id]
|
|
1188
1114
|
* @property {boolean} [is_primary_item]
|
|
1189
1115
|
* @property {Object} [meta]
|
|
@@ -1194,16 +1120,16 @@ const Joi = require("joi");
|
|
|
1194
1120
|
*/
|
|
1195
1121
|
|
|
1196
1122
|
/**
|
|
1197
|
-
* @typedef
|
|
1123
|
+
* @typedef OptimlLocationsRequestSchema
|
|
1198
1124
|
* @property {string} channel_id
|
|
1199
1125
|
* @property {string} channel_type
|
|
1200
1126
|
* @property {string} [channel_identifier]
|
|
1201
1127
|
* @property {LocationDetailsServiceability} to_serviceability
|
|
1202
|
-
* @property {OptimalLocationsArticles
|
|
1128
|
+
* @property {OptimalLocationsArticles} [article]
|
|
1203
1129
|
*/
|
|
1204
1130
|
|
|
1205
1131
|
/**
|
|
1206
|
-
* @typedef
|
|
1132
|
+
* @typedef OptimalLocationArticlesResponse
|
|
1207
1133
|
* @property {number} item_id
|
|
1208
1134
|
* @property {string} size
|
|
1209
1135
|
* @property {number} quantity
|
|
@@ -1221,38 +1147,27 @@ const Joi = require("joi");
|
|
|
1221
1147
|
*/
|
|
1222
1148
|
|
|
1223
1149
|
/**
|
|
1224
|
-
* @typedef
|
|
1150
|
+
* @typedef OptimalLocationAssignedStoresResponse
|
|
1225
1151
|
* @property {number} store_id
|
|
1226
|
-
* @property {
|
|
1227
|
-
*/
|
|
1228
|
-
|
|
1229
|
-
/**
|
|
1230
|
-
* @typedef OptimalLocationsResult
|
|
1231
|
-
* @property {OptimalLocationAssignedStoresResult[]} assigned_stores
|
|
1232
|
-
* @property {ErrorResult[]} [faulty_articles]
|
|
1152
|
+
* @property {OptimalLocationArticlesResponse[]} articles
|
|
1233
1153
|
*/
|
|
1234
1154
|
|
|
1235
1155
|
/**
|
|
1236
|
-
* @typedef
|
|
1237
|
-
* @property {
|
|
1238
|
-
* @property {
|
|
1239
|
-
*/
|
|
1240
|
-
|
|
1241
|
-
/**
|
|
1242
|
-
* @typedef StandardError
|
|
1243
|
-
* @property {string} message - A brief description of the error.
|
|
1156
|
+
* @typedef OptimalLocationsResponse
|
|
1157
|
+
* @property {OptimalLocationAssignedStoresResponse[]} assigned_stores
|
|
1158
|
+
* @property {ErrorResponse[]} [faulty_articles]
|
|
1244
1159
|
*/
|
|
1245
1160
|
|
|
1246
1161
|
class ServiceabilityPlatformModel {
|
|
1247
|
-
/** @returns {
|
|
1248
|
-
static
|
|
1162
|
+
/** @returns {UpdateZoneConfigRequest} */
|
|
1163
|
+
static UpdateZoneConfigRequest() {
|
|
1249
1164
|
return Joi.object({
|
|
1250
1165
|
serviceability_type: Joi.string().allow(""),
|
|
1251
1166
|
});
|
|
1252
1167
|
}
|
|
1253
1168
|
|
|
1254
|
-
/** @returns {
|
|
1255
|
-
static
|
|
1169
|
+
/** @returns {ServiceabilityErrorResponse} */
|
|
1170
|
+
static ServiceabilityErrorResponse() {
|
|
1256
1171
|
return Joi.object({
|
|
1257
1172
|
message: Joi.string().allow("").required(),
|
|
1258
1173
|
value: Joi.string().allow("").required(),
|
|
@@ -1269,17 +1184,17 @@ class ServiceabilityPlatformModel {
|
|
|
1269
1184
|
});
|
|
1270
1185
|
}
|
|
1271
1186
|
|
|
1272
|
-
/** @returns {
|
|
1273
|
-
static
|
|
1187
|
+
/** @returns {ApplicationServiceabilityConfigResponse} */
|
|
1188
|
+
static ApplicationServiceabilityConfigResponse() {
|
|
1274
1189
|
return Joi.object({
|
|
1275
|
-
error: ServiceabilityPlatformModel.
|
|
1190
|
+
error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
|
|
1276
1191
|
data: ServiceabilityPlatformModel.ApplicationServiceabilityConfig(),
|
|
1277
1192
|
success: Joi.boolean().required(),
|
|
1278
1193
|
});
|
|
1279
1194
|
}
|
|
1280
1195
|
|
|
1281
|
-
/** @returns {
|
|
1282
|
-
static
|
|
1196
|
+
/** @returns {EntityRegionView_Request} */
|
|
1197
|
+
static EntityRegionView_Request() {
|
|
1283
1198
|
return Joi.object({
|
|
1284
1199
|
sub_type: Joi.array().items(Joi.string().allow("")).required(),
|
|
1285
1200
|
parent_id: Joi.array().items(Joi.string().allow("")),
|
|
@@ -1306,8 +1221,8 @@ class ServiceabilityPlatformModel {
|
|
|
1306
1221
|
});
|
|
1307
1222
|
}
|
|
1308
1223
|
|
|
1309
|
-
/** @returns {
|
|
1310
|
-
static
|
|
1224
|
+
/** @returns {getAppRegionZonesResponse} */
|
|
1225
|
+
static getAppRegionZonesResponse() {
|
|
1311
1226
|
return Joi.object({
|
|
1312
1227
|
page: Joi.array()
|
|
1313
1228
|
.items(ServiceabilityPlatformModel.PageSchema())
|
|
@@ -1338,8 +1253,8 @@ class ServiceabilityPlatformModel {
|
|
|
1338
1253
|
});
|
|
1339
1254
|
}
|
|
1340
1255
|
|
|
1341
|
-
/** @returns {
|
|
1342
|
-
static
|
|
1256
|
+
/** @returns {EntityRegionView_Response} */
|
|
1257
|
+
static EntityRegionView_Response() {
|
|
1343
1258
|
return Joi.object({
|
|
1344
1259
|
error: ServiceabilityPlatformModel.EntityRegionView_Error().required(),
|
|
1345
1260
|
page: ServiceabilityPlatformModel.EntityRegionView_page().required(),
|
|
@@ -1403,8 +1318,8 @@ class ServiceabilityPlatformModel {
|
|
|
1403
1318
|
});
|
|
1404
1319
|
}
|
|
1405
1320
|
|
|
1406
|
-
/** @returns {
|
|
1407
|
-
static
|
|
1321
|
+
/** @returns {ListViewResponse} */
|
|
1322
|
+
static ListViewResponse() {
|
|
1408
1323
|
return Joi.object({
|
|
1409
1324
|
page: ServiceabilityPlatformModel.ZoneDataItem().required(),
|
|
1410
1325
|
items: Joi.array()
|
|
@@ -1424,8 +1339,8 @@ class ServiceabilityPlatformModel {
|
|
|
1424
1339
|
});
|
|
1425
1340
|
}
|
|
1426
1341
|
|
|
1427
|
-
/** @returns {
|
|
1428
|
-
static
|
|
1342
|
+
/** @returns {CompanyStoreView_Response} */
|
|
1343
|
+
static CompanyStoreView_Response() {
|
|
1429
1344
|
return Joi.object({
|
|
1430
1345
|
page: Joi.array()
|
|
1431
1346
|
.items(ServiceabilityPlatformModel.CompanyStoreView_PageItems())
|
|
@@ -1480,16 +1395,16 @@ class ServiceabilityPlatformModel {
|
|
|
1480
1395
|
});
|
|
1481
1396
|
}
|
|
1482
1397
|
|
|
1483
|
-
/** @returns {
|
|
1484
|
-
static
|
|
1398
|
+
/** @returns {ZoneUpdateRequest} */
|
|
1399
|
+
static ZoneUpdateRequest() {
|
|
1485
1400
|
return Joi.object({
|
|
1486
1401
|
identifier: Joi.string().allow("").required(),
|
|
1487
1402
|
data: ServiceabilityPlatformModel.UpdateZoneData().required(),
|
|
1488
1403
|
});
|
|
1489
1404
|
}
|
|
1490
1405
|
|
|
1491
|
-
/** @returns {
|
|
1492
|
-
static
|
|
1406
|
+
/** @returns {ZoneSuccessResponse} */
|
|
1407
|
+
static ZoneSuccessResponse() {
|
|
1493
1408
|
return Joi.object({
|
|
1494
1409
|
status_code: Joi.number().required(),
|
|
1495
1410
|
success: Joi.boolean().required(),
|
|
@@ -1518,8 +1433,8 @@ class ServiceabilityPlatformModel {
|
|
|
1518
1433
|
});
|
|
1519
1434
|
}
|
|
1520
1435
|
|
|
1521
|
-
/** @returns {
|
|
1522
|
-
static
|
|
1436
|
+
/** @returns {GetSingleZoneDataViewResponse} */
|
|
1437
|
+
static GetSingleZoneDataViewResponse() {
|
|
1523
1438
|
return Joi.object({
|
|
1524
1439
|
data: ServiceabilityPlatformModel.GetZoneDataViewItems().required(),
|
|
1525
1440
|
});
|
|
@@ -1566,8 +1481,8 @@ class ServiceabilityPlatformModel {
|
|
|
1566
1481
|
});
|
|
1567
1482
|
}
|
|
1568
1483
|
|
|
1569
|
-
/** @returns {
|
|
1570
|
-
static
|
|
1484
|
+
/** @returns {ZoneResponse} */
|
|
1485
|
+
static ZoneResponse() {
|
|
1571
1486
|
return Joi.object({
|
|
1572
1487
|
status_code: Joi.number().required(),
|
|
1573
1488
|
zone_id: Joi.string().allow("").required(),
|
|
@@ -1575,8 +1490,8 @@ class ServiceabilityPlatformModel {
|
|
|
1575
1490
|
});
|
|
1576
1491
|
}
|
|
1577
1492
|
|
|
1578
|
-
/** @returns {
|
|
1579
|
-
static
|
|
1493
|
+
/** @returns {GetZoneFromPincodeViewRequest} */
|
|
1494
|
+
static GetZoneFromPincodeViewRequest() {
|
|
1580
1495
|
return Joi.object({
|
|
1581
1496
|
country: Joi.string().allow("").required(),
|
|
1582
1497
|
pincode: Joi.string().allow("").required(),
|
|
@@ -1597,16 +1512,16 @@ class ServiceabilityPlatformModel {
|
|
|
1597
1512
|
});
|
|
1598
1513
|
}
|
|
1599
1514
|
|
|
1600
|
-
/** @returns {
|
|
1601
|
-
static
|
|
1515
|
+
/** @returns {GetZoneFromPincodeViewResponse} */
|
|
1516
|
+
static GetZoneFromPincodeViewResponse() {
|
|
1602
1517
|
return Joi.object({
|
|
1603
1518
|
serviceability_type: Joi.string().allow("").required(),
|
|
1604
1519
|
zones: Joi.array().items(ServiceabilityPlatformModel.Zone()).required(),
|
|
1605
1520
|
});
|
|
1606
1521
|
}
|
|
1607
1522
|
|
|
1608
|
-
/** @returns {
|
|
1609
|
-
static
|
|
1523
|
+
/** @returns {GetZoneFromApplicationIdViewResponse} */
|
|
1524
|
+
static GetZoneFromApplicationIdViewResponse() {
|
|
1610
1525
|
return Joi.object({
|
|
1611
1526
|
page: Joi.array()
|
|
1612
1527
|
.items(ServiceabilityPlatformModel.ZoneDataItem())
|
|
@@ -1617,8 +1532,8 @@ class ServiceabilityPlatformModel {
|
|
|
1617
1532
|
});
|
|
1618
1533
|
}
|
|
1619
1534
|
|
|
1620
|
-
/** @returns {
|
|
1621
|
-
static
|
|
1535
|
+
/** @returns {ServiceabilityPageResponse} */
|
|
1536
|
+
static ServiceabilityPageResponse() {
|
|
1622
1537
|
return Joi.object({
|
|
1623
1538
|
type: Joi.string().allow(""),
|
|
1624
1539
|
has_next: Joi.boolean(),
|
|
@@ -1636,8 +1551,8 @@ class ServiceabilityPlatformModel {
|
|
|
1636
1551
|
});
|
|
1637
1552
|
}
|
|
1638
1553
|
|
|
1639
|
-
/** @returns {
|
|
1640
|
-
static
|
|
1554
|
+
/** @returns {ManagerResponse} */
|
|
1555
|
+
static ManagerResponse() {
|
|
1641
1556
|
return Joi.object({
|
|
1642
1557
|
email: Joi.string().allow(""),
|
|
1643
1558
|
mobile_no: ServiceabilityPlatformModel.MobileNo(),
|
|
@@ -1645,39 +1560,39 @@ class ServiceabilityPlatformModel {
|
|
|
1645
1560
|
});
|
|
1646
1561
|
}
|
|
1647
1562
|
|
|
1648
|
-
/** @returns {
|
|
1649
|
-
static
|
|
1563
|
+
/** @returns {ModifiedByResponse} */
|
|
1564
|
+
static ModifiedByResponse() {
|
|
1650
1565
|
return Joi.object({
|
|
1651
1566
|
username: Joi.string().allow(""),
|
|
1652
1567
|
user_id: Joi.string().allow(""),
|
|
1653
1568
|
});
|
|
1654
1569
|
}
|
|
1655
1570
|
|
|
1656
|
-
/** @returns {
|
|
1657
|
-
static
|
|
1571
|
+
/** @returns {IntegrationTypeResponse} */
|
|
1572
|
+
static IntegrationTypeResponse() {
|
|
1658
1573
|
return Joi.object({
|
|
1659
1574
|
inventory: Joi.string().allow(""),
|
|
1660
1575
|
order: Joi.string().allow(""),
|
|
1661
1576
|
});
|
|
1662
1577
|
}
|
|
1663
1578
|
|
|
1664
|
-
/** @returns {
|
|
1665
|
-
static
|
|
1579
|
+
/** @returns {ProductReturnConfigResponse} */
|
|
1580
|
+
static ProductReturnConfigResponse() {
|
|
1666
1581
|
return Joi.object({
|
|
1667
1582
|
on_same_store: Joi.boolean(),
|
|
1668
1583
|
});
|
|
1669
1584
|
}
|
|
1670
1585
|
|
|
1671
|
-
/** @returns {
|
|
1672
|
-
static
|
|
1586
|
+
/** @returns {ContactNumberResponse} */
|
|
1587
|
+
static ContactNumberResponse() {
|
|
1673
1588
|
return Joi.object({
|
|
1674
1589
|
number: Joi.string().allow(""),
|
|
1675
1590
|
country_code: Joi.number(),
|
|
1676
1591
|
});
|
|
1677
1592
|
}
|
|
1678
1593
|
|
|
1679
|
-
/** @returns {
|
|
1680
|
-
static
|
|
1594
|
+
/** @returns {AddressResponse} */
|
|
1595
|
+
static AddressResponse() {
|
|
1681
1596
|
return Joi.object({
|
|
1682
1597
|
city: Joi.string().allow(""),
|
|
1683
1598
|
address1: Joi.string().allow(""),
|
|
@@ -1691,38 +1606,38 @@ class ServiceabilityPlatformModel {
|
|
|
1691
1606
|
});
|
|
1692
1607
|
}
|
|
1693
1608
|
|
|
1694
|
-
/** @returns {
|
|
1695
|
-
static
|
|
1609
|
+
/** @returns {CreatedByResponse} */
|
|
1610
|
+
static CreatedByResponse() {
|
|
1696
1611
|
return Joi.object({
|
|
1697
1612
|
username: Joi.string().allow(""),
|
|
1698
1613
|
user_id: Joi.string().allow(""),
|
|
1699
1614
|
});
|
|
1700
1615
|
}
|
|
1701
1616
|
|
|
1702
|
-
/** @returns {
|
|
1703
|
-
static
|
|
1617
|
+
/** @returns {EwayBillResponse} */
|
|
1618
|
+
static EwayBillResponse() {
|
|
1704
1619
|
return Joi.object({
|
|
1705
1620
|
enabled: Joi.boolean(),
|
|
1706
1621
|
});
|
|
1707
1622
|
}
|
|
1708
1623
|
|
|
1709
|
-
/** @returns {
|
|
1710
|
-
static
|
|
1624
|
+
/** @returns {EinvoiceResponse} */
|
|
1625
|
+
static EinvoiceResponse() {
|
|
1711
1626
|
return Joi.object({
|
|
1712
1627
|
enabled: Joi.boolean(),
|
|
1713
1628
|
});
|
|
1714
1629
|
}
|
|
1715
1630
|
|
|
1716
|
-
/** @returns {
|
|
1717
|
-
static
|
|
1631
|
+
/** @returns {GstCredentialsResponse} */
|
|
1632
|
+
static GstCredentialsResponse() {
|
|
1718
1633
|
return Joi.object({
|
|
1719
|
-
e_waybill: ServiceabilityPlatformModel.
|
|
1720
|
-
e_invoice: ServiceabilityPlatformModel.
|
|
1634
|
+
e_waybill: ServiceabilityPlatformModel.EwayBillResponse(),
|
|
1635
|
+
e_invoice: ServiceabilityPlatformModel.EinvoiceResponse(),
|
|
1721
1636
|
});
|
|
1722
1637
|
}
|
|
1723
1638
|
|
|
1724
|
-
/** @returns {
|
|
1725
|
-
static
|
|
1639
|
+
/** @returns {WarningsResponse} */
|
|
1640
|
+
static WarningsResponse() {
|
|
1726
1641
|
return Joi.object({
|
|
1727
1642
|
store_address: Joi.string().allow(""),
|
|
1728
1643
|
});
|
|
@@ -1736,8 +1651,8 @@ class ServiceabilityPlatformModel {
|
|
|
1736
1651
|
});
|
|
1737
1652
|
}
|
|
1738
1653
|
|
|
1739
|
-
/** @returns {
|
|
1740
|
-
static
|
|
1654
|
+
/** @returns {TimmingResponse} */
|
|
1655
|
+
static TimmingResponse() {
|
|
1741
1656
|
return Joi.object({
|
|
1742
1657
|
open: Joi.boolean(),
|
|
1743
1658
|
weekday: Joi.string().allow(""),
|
|
@@ -1746,8 +1661,8 @@ class ServiceabilityPlatformModel {
|
|
|
1746
1661
|
});
|
|
1747
1662
|
}
|
|
1748
1663
|
|
|
1749
|
-
/** @returns {
|
|
1750
|
-
static
|
|
1664
|
+
/** @returns {DocumentsResponse} */
|
|
1665
|
+
static DocumentsResponse() {
|
|
1751
1666
|
return Joi.object({
|
|
1752
1667
|
legal_name: Joi.string().allow(""),
|
|
1753
1668
|
value: Joi.string().allow(""),
|
|
@@ -1772,57 +1687,57 @@ class ServiceabilityPlatformModel {
|
|
|
1772
1687
|
});
|
|
1773
1688
|
}
|
|
1774
1689
|
|
|
1775
|
-
/** @returns {
|
|
1776
|
-
static
|
|
1690
|
+
/** @returns {LogisticsResponse} */
|
|
1691
|
+
static LogisticsResponse() {
|
|
1777
1692
|
return Joi.object({
|
|
1778
1693
|
override: Joi.boolean(),
|
|
1779
1694
|
dp: ServiceabilityPlatformModel.Dp(),
|
|
1780
1695
|
});
|
|
1781
1696
|
}
|
|
1782
1697
|
|
|
1783
|
-
/** @returns {
|
|
1784
|
-
static
|
|
1698
|
+
/** @returns {ItemResponse} */
|
|
1699
|
+
static ItemResponse() {
|
|
1785
1700
|
return Joi.object({
|
|
1786
1701
|
created_on: Joi.string().allow(""),
|
|
1787
|
-
manager: ServiceabilityPlatformModel.
|
|
1788
|
-
modified_by: ServiceabilityPlatformModel.
|
|
1789
|
-
integration_type: ServiceabilityPlatformModel.
|
|
1702
|
+
manager: ServiceabilityPlatformModel.ManagerResponse(),
|
|
1703
|
+
modified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
|
|
1704
|
+
integration_type: ServiceabilityPlatformModel.IntegrationTypeResponse(),
|
|
1790
1705
|
verified_on: Joi.string().allow(""),
|
|
1791
|
-
product_return_config: ServiceabilityPlatformModel.
|
|
1706
|
+
product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResponse(),
|
|
1792
1707
|
contact_numbers: Joi.array().items(
|
|
1793
|
-
ServiceabilityPlatformModel.
|
|
1708
|
+
ServiceabilityPlatformModel.ContactNumberResponse()
|
|
1794
1709
|
),
|
|
1795
|
-
verified_by: ServiceabilityPlatformModel.
|
|
1710
|
+
verified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
|
|
1796
1711
|
stage: Joi.string().allow(""),
|
|
1797
|
-
address: ServiceabilityPlatformModel.
|
|
1712
|
+
address: ServiceabilityPlatformModel.AddressResponse(),
|
|
1798
1713
|
modified_on: Joi.string().allow(""),
|
|
1799
|
-
created_by: ServiceabilityPlatformModel.
|
|
1800
|
-
gst_credentials: ServiceabilityPlatformModel.
|
|
1714
|
+
created_by: ServiceabilityPlatformModel.CreatedByResponse(),
|
|
1715
|
+
gst_credentials: ServiceabilityPlatformModel.GstCredentialsResponse(),
|
|
1801
1716
|
display_name: Joi.string().allow(""),
|
|
1802
1717
|
company_id: Joi.number(),
|
|
1803
1718
|
uid: Joi.number(),
|
|
1804
|
-
_custom_json: Joi.
|
|
1719
|
+
_custom_json: Joi.any(),
|
|
1805
1720
|
code: Joi.string().allow(""),
|
|
1806
|
-
warnings: ServiceabilityPlatformModel.
|
|
1721
|
+
warnings: ServiceabilityPlatformModel.WarningsResponse(),
|
|
1807
1722
|
name: Joi.string().allow(""),
|
|
1808
|
-
timing: Joi.array().items(ServiceabilityPlatformModel.
|
|
1723
|
+
timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResponse()),
|
|
1809
1724
|
documents: Joi.array().items(
|
|
1810
|
-
ServiceabilityPlatformModel.
|
|
1725
|
+
ServiceabilityPlatformModel.DocumentsResponse()
|
|
1811
1726
|
),
|
|
1812
1727
|
store_type: Joi.string().allow(""),
|
|
1813
1728
|
sub_type: Joi.string().allow(""),
|
|
1814
1729
|
company: Joi.number(),
|
|
1815
1730
|
_cls: Joi.string().allow(""),
|
|
1816
|
-
logistics: ServiceabilityPlatformModel.
|
|
1731
|
+
logistics: ServiceabilityPlatformModel.LogisticsResponse(),
|
|
1817
1732
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
1818
1733
|
});
|
|
1819
1734
|
}
|
|
1820
1735
|
|
|
1821
|
-
/** @returns {
|
|
1822
|
-
static
|
|
1736
|
+
/** @returns {GetStoresViewResponse} */
|
|
1737
|
+
static GetStoresViewResponse() {
|
|
1823
1738
|
return Joi.object({
|
|
1824
|
-
page: ServiceabilityPlatformModel.
|
|
1825
|
-
items: Joi.array().items(ServiceabilityPlatformModel.
|
|
1739
|
+
page: ServiceabilityPlatformModel.ServiceabilityPageResponse().required(),
|
|
1740
|
+
items: Joi.array().items(ServiceabilityPlatformModel.ItemResponse()),
|
|
1826
1741
|
});
|
|
1827
1742
|
}
|
|
1828
1743
|
|
|
@@ -1835,8 +1750,8 @@ class ServiceabilityPlatformModel {
|
|
|
1835
1750
|
});
|
|
1836
1751
|
}
|
|
1837
1752
|
|
|
1838
|
-
/** @returns {
|
|
1839
|
-
static
|
|
1753
|
+
/** @returns {PincodeMopUpdateResponse} */
|
|
1754
|
+
static PincodeMopUpdateResponse() {
|
|
1840
1755
|
return Joi.object({
|
|
1841
1756
|
pincode: Joi.number().required(),
|
|
1842
1757
|
channel_id: Joi.string().allow("").required(),
|
|
@@ -1845,8 +1760,8 @@ class ServiceabilityPlatformModel {
|
|
|
1845
1760
|
});
|
|
1846
1761
|
}
|
|
1847
1762
|
|
|
1848
|
-
/** @returns {
|
|
1849
|
-
static
|
|
1763
|
+
/** @returns {PincodeMOPresponse} */
|
|
1764
|
+
static PincodeMOPresponse() {
|
|
1850
1765
|
return Joi.object({
|
|
1851
1766
|
success: Joi.boolean().required(),
|
|
1852
1767
|
status_code: Joi.number().required(),
|
|
@@ -1855,7 +1770,7 @@ class ServiceabilityPlatformModel {
|
|
|
1855
1770
|
action: Joi.string().allow("").required(),
|
|
1856
1771
|
pincodes: Joi.array().items(Joi.number()),
|
|
1857
1772
|
updated_pincodes: Joi.array().items(
|
|
1858
|
-
ServiceabilityPlatformModel.
|
|
1773
|
+
ServiceabilityPlatformModel.PincodeMopUpdateResponse()
|
|
1859
1774
|
),
|
|
1860
1775
|
});
|
|
1861
1776
|
}
|
|
@@ -1877,16 +1792,16 @@ class ServiceabilityPlatformModel {
|
|
|
1877
1792
|
});
|
|
1878
1793
|
}
|
|
1879
1794
|
|
|
1880
|
-
/** @returns {
|
|
1881
|
-
static
|
|
1795
|
+
/** @returns {PincodeBulkViewResponse} */
|
|
1796
|
+
static PincodeBulkViewResponse() {
|
|
1882
1797
|
return Joi.object({
|
|
1883
1798
|
batch_id: Joi.string().allow("").required(),
|
|
1884
1799
|
s3_url: Joi.string().allow("").required(),
|
|
1885
1800
|
});
|
|
1886
1801
|
}
|
|
1887
1802
|
|
|
1888
|
-
/** @returns {
|
|
1889
|
-
static
|
|
1803
|
+
/** @returns {PincodeCodStatusListingRequest} */
|
|
1804
|
+
static PincodeCodStatusListingRequest() {
|
|
1890
1805
|
return Joi.object({
|
|
1891
1806
|
country: Joi.string().allow(""),
|
|
1892
1807
|
is_active: Joi.boolean(),
|
|
@@ -1896,18 +1811,18 @@ class ServiceabilityPlatformModel {
|
|
|
1896
1811
|
});
|
|
1897
1812
|
}
|
|
1898
1813
|
|
|
1899
|
-
/** @returns {
|
|
1900
|
-
static
|
|
1814
|
+
/** @returns {PincodeCodStatusListingResponse} */
|
|
1815
|
+
static PincodeCodStatusListingResponse() {
|
|
1901
1816
|
return Joi.object({
|
|
1902
1817
|
country: Joi.string().allow("").required(),
|
|
1903
1818
|
data: Joi.array()
|
|
1904
|
-
.items(Joi.link("#
|
|
1819
|
+
.items(Joi.link("#PincodeCodStatusListingResponse"))
|
|
1905
1820
|
.required(),
|
|
1906
1821
|
success: Joi.boolean().required(),
|
|
1907
1822
|
errors: Joi.array().items(ServiceabilityPlatformModel.Error()),
|
|
1908
1823
|
page: ServiceabilityPlatformModel.PincodeCodStatusListingPage().required(),
|
|
1909
1824
|
summary: ServiceabilityPlatformModel.PincodeCodStatusListingSummary().required(),
|
|
1910
|
-
}).id("
|
|
1825
|
+
}).id("PincodeCodStatusListingResponse");
|
|
1911
1826
|
}
|
|
1912
1827
|
|
|
1913
1828
|
/** @returns {Error} */
|
|
@@ -1938,8 +1853,8 @@ class ServiceabilityPlatformModel {
|
|
|
1938
1853
|
});
|
|
1939
1854
|
}
|
|
1940
1855
|
|
|
1941
|
-
/** @returns {
|
|
1942
|
-
static
|
|
1856
|
+
/** @returns {PincodeMopUpdateAuditHistoryRequest} */
|
|
1857
|
+
static PincodeMopUpdateAuditHistoryRequest() {
|
|
1943
1858
|
return Joi.object({
|
|
1944
1859
|
entity_type: Joi.string().allow("").required(),
|
|
1945
1860
|
file_name: Joi.string().allow(""),
|
|
@@ -1957,8 +1872,8 @@ class ServiceabilityPlatformModel {
|
|
|
1957
1872
|
});
|
|
1958
1873
|
}
|
|
1959
1874
|
|
|
1960
|
-
/** @returns {
|
|
1961
|
-
static
|
|
1875
|
+
/** @returns {PincodeMopUpdateAuditHistoryResponse} */
|
|
1876
|
+
static PincodeMopUpdateAuditHistoryResponse() {
|
|
1962
1877
|
return Joi.object({
|
|
1963
1878
|
batch_id: Joi.string().allow(""),
|
|
1964
1879
|
entity_type: Joi.string().allow(""),
|
|
@@ -1971,13 +1886,15 @@ class ServiceabilityPlatformModel {
|
|
|
1971
1886
|
});
|
|
1972
1887
|
}
|
|
1973
1888
|
|
|
1974
|
-
/** @returns {
|
|
1975
|
-
static
|
|
1889
|
+
/** @returns {PincodeMopUpdateAuditHistoryResponseData} */
|
|
1890
|
+
static PincodeMopUpdateAuditHistoryResponseData() {
|
|
1976
1891
|
return Joi.object({
|
|
1977
1892
|
entity_type: Joi.string().allow(""),
|
|
1978
1893
|
page: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryPaging().required(),
|
|
1979
1894
|
data: Joi.array()
|
|
1980
|
-
.items(
|
|
1895
|
+
.items(
|
|
1896
|
+
ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponse()
|
|
1897
|
+
)
|
|
1981
1898
|
.required(),
|
|
1982
1899
|
});
|
|
1983
1900
|
}
|
|
@@ -2028,8 +1945,8 @@ class ServiceabilityPlatformModel {
|
|
|
2028
1945
|
});
|
|
2029
1946
|
}
|
|
2030
1947
|
|
|
2031
|
-
/** @returns {
|
|
2032
|
-
static
|
|
1948
|
+
/** @returns {CourierAccountRequestBody} */
|
|
1949
|
+
static CourierAccountRequestBody() {
|
|
2033
1950
|
return Joi.object({
|
|
2034
1951
|
extension_id: Joi.string().allow("").required(),
|
|
2035
1952
|
account_id: Joi.string().allow(""),
|
|
@@ -2040,8 +1957,8 @@ class ServiceabilityPlatformModel {
|
|
|
2040
1957
|
});
|
|
2041
1958
|
}
|
|
2042
1959
|
|
|
2043
|
-
/** @returns {
|
|
2044
|
-
static
|
|
1960
|
+
/** @returns {ErrorResponse} */
|
|
1961
|
+
static ErrorResponse() {
|
|
2045
1962
|
return Joi.object({
|
|
2046
1963
|
value: Joi.string().allow("").required(),
|
|
2047
1964
|
message: Joi.string().allow("").required(),
|
|
@@ -2049,12 +1966,12 @@ class ServiceabilityPlatformModel {
|
|
|
2049
1966
|
});
|
|
2050
1967
|
}
|
|
2051
1968
|
|
|
2052
|
-
/** @returns {
|
|
2053
|
-
static
|
|
1969
|
+
/** @returns {CourierPartnerAccountFailureResponse} */
|
|
1970
|
+
static CourierPartnerAccountFailureResponse() {
|
|
2054
1971
|
return Joi.object({
|
|
2055
1972
|
success: Joi.boolean().required(),
|
|
2056
1973
|
error: Joi.array()
|
|
2057
|
-
.items(ServiceabilityPlatformModel.
|
|
1974
|
+
.items(ServiceabilityPlatformModel.ErrorResponse())
|
|
2058
1975
|
.required(),
|
|
2059
1976
|
});
|
|
2060
1977
|
}
|
|
@@ -2072,32 +1989,32 @@ class ServiceabilityPlatformModel {
|
|
|
2072
1989
|
});
|
|
2073
1990
|
}
|
|
2074
1991
|
|
|
2075
|
-
/** @returns {
|
|
2076
|
-
static
|
|
1992
|
+
/** @returns {CourierPartnerRuleCPListResponse} */
|
|
1993
|
+
static CourierPartnerRuleCPListResponse() {
|
|
2077
1994
|
return Joi.object({
|
|
2078
1995
|
account_id: Joi.string().allow(""),
|
|
2079
1996
|
extension_id: Joi.string().allow(""),
|
|
2080
1997
|
is_self_ship: Joi.boolean(),
|
|
2081
|
-
scheme_rules: Joi.
|
|
1998
|
+
scheme_rules: Joi.any(),
|
|
2082
1999
|
});
|
|
2083
2000
|
}
|
|
2084
2001
|
|
|
2085
|
-
/** @returns {
|
|
2086
|
-
static
|
|
2002
|
+
/** @returns {CourierPartnerRuleResponse} */
|
|
2003
|
+
static CourierPartnerRuleResponse() {
|
|
2087
2004
|
return Joi.object({
|
|
2088
2005
|
is_active: Joi.boolean(),
|
|
2089
2006
|
application_id: Joi.string().allow(""),
|
|
2090
2007
|
company_id: Joi.number(),
|
|
2091
2008
|
conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions(),
|
|
2092
2009
|
sort: Joi.array().items(Joi.string().allow("")),
|
|
2093
|
-
created_by: Joi.
|
|
2010
|
+
created_by: Joi.any().allow(null),
|
|
2094
2011
|
id: Joi.string().allow(""),
|
|
2095
|
-
modified_by: Joi.
|
|
2012
|
+
modified_by: Joi.any().allow(null),
|
|
2096
2013
|
modified_on: Joi.string().allow("").allow(null),
|
|
2097
2014
|
name: Joi.string().allow(""),
|
|
2098
2015
|
type: Joi.string().allow(""),
|
|
2099
2016
|
cp_list: Joi.array().items(
|
|
2100
|
-
ServiceabilityPlatformModel.
|
|
2017
|
+
ServiceabilityPlatformModel.CourierPartnerRuleCPListResponse()
|
|
2101
2018
|
),
|
|
2102
2019
|
});
|
|
2103
2020
|
}
|
|
@@ -2181,125 +2098,26 @@ class ServiceabilityPlatformModel {
|
|
|
2181
2098
|
});
|
|
2182
2099
|
}
|
|
2183
2100
|
|
|
2184
|
-
/** @returns {
|
|
2185
|
-
static
|
|
2101
|
+
/** @returns {FailureResponse} */
|
|
2102
|
+
static FailureResponse() {
|
|
2186
2103
|
return Joi.object({
|
|
2187
2104
|
success: Joi.boolean().required(),
|
|
2188
2105
|
error: Joi.array()
|
|
2189
|
-
.items(ServiceabilityPlatformModel.
|
|
2106
|
+
.items(ServiceabilityPlatformModel.ErrorResponse())
|
|
2190
2107
|
.required(),
|
|
2191
2108
|
});
|
|
2192
2109
|
}
|
|
2193
2110
|
|
|
2194
|
-
/** @returns {
|
|
2195
|
-
static
|
|
2111
|
+
/** @returns {CourierPartnerRulesListResponse} */
|
|
2112
|
+
static CourierPartnerRulesListResponse() {
|
|
2196
2113
|
return Joi.object({
|
|
2197
2114
|
items: Joi.array()
|
|
2198
|
-
.items(ServiceabilityPlatformModel.
|
|
2115
|
+
.items(ServiceabilityPlatformModel.CourierPartnerRuleResponse())
|
|
2199
2116
|
.required(),
|
|
2200
2117
|
page: ServiceabilityPlatformModel.Page().required(),
|
|
2201
2118
|
});
|
|
2202
2119
|
}
|
|
2203
2120
|
|
|
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
|
-
|
|
2303
2121
|
/** @returns {CompanyConfig} */
|
|
2304
2122
|
static CompanyConfig() {
|
|
2305
2123
|
return Joi.object({
|
|
@@ -2325,8 +2143,8 @@ class ServiceabilityPlatformModel {
|
|
|
2325
2143
|
});
|
|
2326
2144
|
}
|
|
2327
2145
|
|
|
2328
|
-
/** @returns {
|
|
2329
|
-
static
|
|
2146
|
+
/** @returns {BulkRegionJobSerializer} */
|
|
2147
|
+
static BulkRegionJobSerializer() {
|
|
2330
2148
|
return Joi.object({
|
|
2331
2149
|
file_path: Joi.string().allow(""),
|
|
2332
2150
|
country: Joi.string().allow("").required(),
|
|
@@ -2335,12 +2153,12 @@ class ServiceabilityPlatformModel {
|
|
|
2335
2153
|
});
|
|
2336
2154
|
}
|
|
2337
2155
|
|
|
2338
|
-
/** @returns {
|
|
2339
|
-
static
|
|
2156
|
+
/** @returns {BulkRegionResponseItemData} */
|
|
2157
|
+
static BulkRegionResponseItemData() {
|
|
2340
2158
|
return Joi.object({
|
|
2341
2159
|
file_path: Joi.string().allow("").required(),
|
|
2342
2160
|
failed: Joi.number(),
|
|
2343
|
-
failed_records: Joi.array().items(Joi.
|
|
2161
|
+
failed_records: Joi.array().items(Joi.any()),
|
|
2344
2162
|
action: Joi.string().allow("").required(),
|
|
2345
2163
|
batch_id: Joi.string().allow("").required(),
|
|
2346
2164
|
country: Joi.string().allow("").required(),
|
|
@@ -2352,18 +2170,18 @@ class ServiceabilityPlatformModel {
|
|
|
2352
2170
|
});
|
|
2353
2171
|
}
|
|
2354
2172
|
|
|
2355
|
-
/** @returns {
|
|
2356
|
-
static
|
|
2173
|
+
/** @returns {BulkRegionResponse} */
|
|
2174
|
+
static BulkRegionResponse() {
|
|
2357
2175
|
return Joi.object({
|
|
2358
2176
|
items: Joi.array()
|
|
2359
|
-
.items(ServiceabilityPlatformModel.
|
|
2177
|
+
.items(ServiceabilityPlatformModel.BulkRegionResponseItemData())
|
|
2360
2178
|
.required(),
|
|
2361
2179
|
page: ServiceabilityPlatformModel.Page().required(),
|
|
2362
2180
|
});
|
|
2363
2181
|
}
|
|
2364
2182
|
|
|
2365
|
-
/** @returns {
|
|
2366
|
-
static
|
|
2183
|
+
/** @returns {SelfShipResponse} */
|
|
2184
|
+
static SelfShipResponse() {
|
|
2367
2185
|
return Joi.object({
|
|
2368
2186
|
is_active: Joi.boolean().required(),
|
|
2369
2187
|
tat: Joi.number().required(),
|
|
@@ -2373,14 +2191,14 @@ class ServiceabilityPlatformModel {
|
|
|
2373
2191
|
/** @returns {ApplicationSelfShipConfig} */
|
|
2374
2192
|
static ApplicationSelfShipConfig() {
|
|
2375
2193
|
return Joi.object({
|
|
2376
|
-
self_ship:
|
|
2194
|
+
self_ship: Joi.any().allow(null),
|
|
2377
2195
|
});
|
|
2378
2196
|
}
|
|
2379
2197
|
|
|
2380
|
-
/** @returns {
|
|
2381
|
-
static
|
|
2198
|
+
/** @returns {ApplicationSelfShipConfigResponse} */
|
|
2199
|
+
static ApplicationSelfShipConfigResponse() {
|
|
2382
2200
|
return Joi.object({
|
|
2383
|
-
error: ServiceabilityPlatformModel.
|
|
2201
|
+
error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
|
|
2384
2202
|
data: ServiceabilityPlatformModel.ApplicationSelfShipConfig(),
|
|
2385
2203
|
success: Joi.boolean().required(),
|
|
2386
2204
|
});
|
|
@@ -2453,8 +2271,8 @@ class ServiceabilityPlatformModel {
|
|
|
2453
2271
|
});
|
|
2454
2272
|
}
|
|
2455
2273
|
|
|
2456
|
-
/** @returns {
|
|
2457
|
-
static
|
|
2274
|
+
/** @returns {GetStoreRulesApiResponse} */
|
|
2275
|
+
static GetStoreRulesApiResponse() {
|
|
2458
2276
|
return Joi.object({
|
|
2459
2277
|
items: Joi.array().items(
|
|
2460
2278
|
ServiceabilityPlatformModel.StoreRuleDataSchema()
|
|
@@ -2463,8 +2281,8 @@ class ServiceabilityPlatformModel {
|
|
|
2463
2281
|
});
|
|
2464
2282
|
}
|
|
2465
2283
|
|
|
2466
|
-
/** @returns {
|
|
2467
|
-
static
|
|
2284
|
+
/** @returns {CreateStoreRuleRequestSchema} */
|
|
2285
|
+
static CreateStoreRuleRequestSchema() {
|
|
2468
2286
|
return Joi.object({
|
|
2469
2287
|
name: Joi.string().allow(""),
|
|
2470
2288
|
is_active: Joi.boolean(),
|
|
@@ -2478,8 +2296,8 @@ class ServiceabilityPlatformModel {
|
|
|
2478
2296
|
});
|
|
2479
2297
|
}
|
|
2480
2298
|
|
|
2481
|
-
/** @returns {
|
|
2482
|
-
static
|
|
2299
|
+
/** @returns {StoreRuleResponseSchema} */
|
|
2300
|
+
static StoreRuleResponseSchema() {
|
|
2483
2301
|
return Joi.object({
|
|
2484
2302
|
id: Joi.string().allow(""),
|
|
2485
2303
|
name: Joi.string().allow(""),
|
|
@@ -2495,8 +2313,8 @@ class ServiceabilityPlatformModel {
|
|
|
2495
2313
|
});
|
|
2496
2314
|
}
|
|
2497
2315
|
|
|
2498
|
-
/** @returns {
|
|
2499
|
-
static
|
|
2316
|
+
/** @returns {StoreRuleUpdateResponseSchema} */
|
|
2317
|
+
static StoreRuleUpdateResponseSchema() {
|
|
2500
2318
|
return Joi.object({
|
|
2501
2319
|
id: Joi.string().allow(""),
|
|
2502
2320
|
name: Joi.string().allow(""),
|
|
@@ -2519,8 +2337,8 @@ class ServiceabilityPlatformModel {
|
|
|
2519
2337
|
return Joi.object({
|
|
2520
2338
|
lm_cod_limit: Joi.number().required(),
|
|
2521
2339
|
is_qc: Joi.boolean().required(),
|
|
2522
|
-
pickup_cutoff: Joi.string().allow("").allow(null),
|
|
2523
|
-
route_code: Joi.string().allow("").allow(null),
|
|
2340
|
+
pickup_cutoff: Joi.string().allow("").allow(null).required(),
|
|
2341
|
+
route_code: Joi.string().allow("").allow(null).required(),
|
|
2524
2342
|
is_first_mile: Joi.boolean().required(),
|
|
2525
2343
|
is_return: Joi.boolean().required(),
|
|
2526
2344
|
is_installation: Joi.boolean().required(),
|
|
@@ -2567,8 +2385,8 @@ class ServiceabilityPlatformModel {
|
|
|
2567
2385
|
});
|
|
2568
2386
|
}
|
|
2569
2387
|
|
|
2570
|
-
/** @returns {
|
|
2571
|
-
static
|
|
2388
|
+
/** @returns {CourierAccountResponse} */
|
|
2389
|
+
static CourierAccountResponse() {
|
|
2572
2390
|
return Joi.object({
|
|
2573
2391
|
account_id: Joi.string().allow("").required(),
|
|
2574
2392
|
scheme_id: Joi.string().allow("").required(),
|
|
@@ -2579,11 +2397,11 @@ class ServiceabilityPlatformModel {
|
|
|
2579
2397
|
});
|
|
2580
2398
|
}
|
|
2581
2399
|
|
|
2582
|
-
/** @returns {
|
|
2583
|
-
static
|
|
2400
|
+
/** @returns {CompanyCourierPartnerAccountListResponse} */
|
|
2401
|
+
static CompanyCourierPartnerAccountListResponse() {
|
|
2584
2402
|
return Joi.object({
|
|
2585
2403
|
items: Joi.array()
|
|
2586
|
-
.items(ServiceabilityPlatformModel.
|
|
2404
|
+
.items(ServiceabilityPlatformModel.CourierAccountResponse())
|
|
2587
2405
|
.required(),
|
|
2588
2406
|
page: ServiceabilityPlatformModel.Page().required(),
|
|
2589
2407
|
});
|
|
@@ -2616,8 +2434,8 @@ class ServiceabilityPlatformModel {
|
|
|
2616
2434
|
});
|
|
2617
2435
|
}
|
|
2618
2436
|
|
|
2619
|
-
/** @returns {
|
|
2620
|
-
static
|
|
2437
|
+
/** @returns {PackageMaterialResponse} */
|
|
2438
|
+
static PackageMaterialResponse() {
|
|
2621
2439
|
return Joi.object({
|
|
2622
2440
|
name: Joi.string().allow("").required(),
|
|
2623
2441
|
id: Joi.string().allow(""),
|
|
@@ -2667,8 +2485,8 @@ class ServiceabilityPlatformModel {
|
|
|
2667
2485
|
});
|
|
2668
2486
|
}
|
|
2669
2487
|
|
|
2670
|
-
/** @returns {
|
|
2671
|
-
static
|
|
2488
|
+
/** @returns {PackageRuleResponse} */
|
|
2489
|
+
static PackageRuleResponse() {
|
|
2672
2490
|
return Joi.object({
|
|
2673
2491
|
id: Joi.string().allow(""),
|
|
2674
2492
|
name: Joi.string().allow("").required(),
|
|
@@ -2692,7 +2510,7 @@ class ServiceabilityPlatformModel {
|
|
|
2692
2510
|
/** @returns {PackageMaterialRuleList} */
|
|
2693
2511
|
static PackageMaterialRuleList() {
|
|
2694
2512
|
return Joi.object({
|
|
2695
|
-
items: ServiceabilityPlatformModel.
|
|
2513
|
+
items: ServiceabilityPlatformModel.PackageRuleResponse(),
|
|
2696
2514
|
page: ServiceabilityPlatformModel.Page(),
|
|
2697
2515
|
});
|
|
2698
2516
|
}
|
|
@@ -2700,7 +2518,7 @@ class ServiceabilityPlatformModel {
|
|
|
2700
2518
|
/** @returns {PackageMaterialList} */
|
|
2701
2519
|
static PackageMaterialList() {
|
|
2702
2520
|
return Joi.object({
|
|
2703
|
-
items: ServiceabilityPlatformModel.
|
|
2521
|
+
items: ServiceabilityPlatformModel.PackageMaterialResponse(),
|
|
2704
2522
|
page: ServiceabilityPlatformModel.Page(),
|
|
2705
2523
|
});
|
|
2706
2524
|
}
|
|
@@ -2734,16 +2552,16 @@ class ServiceabilityPlatformModel {
|
|
|
2734
2552
|
});
|
|
2735
2553
|
}
|
|
2736
2554
|
|
|
2737
|
-
/** @returns {
|
|
2738
|
-
static
|
|
2555
|
+
/** @returns {RulePriorityRequest} */
|
|
2556
|
+
static RulePriorityRequest() {
|
|
2739
2557
|
return Joi.object({
|
|
2740
2558
|
rule_id: Joi.string().allow("").required(),
|
|
2741
2559
|
priority: Joi.number().required(),
|
|
2742
2560
|
});
|
|
2743
2561
|
}
|
|
2744
2562
|
|
|
2745
|
-
/** @returns {
|
|
2746
|
-
static
|
|
2563
|
+
/** @returns {RulePriorityResponse} */
|
|
2564
|
+
static RulePriorityResponse() {
|
|
2747
2565
|
return Joi.object({
|
|
2748
2566
|
success: Joi.boolean(),
|
|
2749
2567
|
});
|
|
@@ -2783,10 +2601,10 @@ class ServiceabilityPlatformModel {
|
|
|
2783
2601
|
return Joi.object({
|
|
2784
2602
|
item_id: Joi.number().required(),
|
|
2785
2603
|
size: Joi.string().allow("").required(),
|
|
2786
|
-
quantity: Joi.
|
|
2604
|
+
quantity: Joi.string().allow("").required(),
|
|
2787
2605
|
group_id: Joi.string().allow(""),
|
|
2788
2606
|
is_primary_item: Joi.boolean(),
|
|
2789
|
-
meta: Joi.
|
|
2607
|
+
meta: Joi.any(),
|
|
2790
2608
|
article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
|
|
2791
2609
|
ignore_locations: Joi.array().items(Joi.number()).required(),
|
|
2792
2610
|
assign_locations: Joi.array().items(Joi.number()).required(),
|
|
@@ -2794,28 +2612,26 @@ class ServiceabilityPlatformModel {
|
|
|
2794
2612
|
});
|
|
2795
2613
|
}
|
|
2796
2614
|
|
|
2797
|
-
/** @returns {
|
|
2798
|
-
static
|
|
2615
|
+
/** @returns {OptimlLocationsRequestSchema} */
|
|
2616
|
+
static OptimlLocationsRequestSchema() {
|
|
2799
2617
|
return Joi.object({
|
|
2800
2618
|
channel_id: Joi.string().allow("").required(),
|
|
2801
2619
|
channel_type: Joi.string().allow("").required(),
|
|
2802
2620
|
channel_identifier: Joi.string().allow(""),
|
|
2803
2621
|
to_serviceability: ServiceabilityPlatformModel.LocationDetailsServiceability().required(),
|
|
2804
|
-
|
|
2805
|
-
ServiceabilityPlatformModel.OptimalLocationsArticles()
|
|
2806
|
-
),
|
|
2622
|
+
article: ServiceabilityPlatformModel.OptimalLocationsArticles(),
|
|
2807
2623
|
});
|
|
2808
2624
|
}
|
|
2809
2625
|
|
|
2810
|
-
/** @returns {
|
|
2811
|
-
static
|
|
2626
|
+
/** @returns {OptimalLocationArticlesResponse} */
|
|
2627
|
+
static OptimalLocationArticlesResponse() {
|
|
2812
2628
|
return Joi.object({
|
|
2813
2629
|
item_id: Joi.number().required(),
|
|
2814
2630
|
size: Joi.string().allow("").required(),
|
|
2815
2631
|
quantity: Joi.number().required(),
|
|
2816
2632
|
group_id: Joi.string().allow(""),
|
|
2817
2633
|
is_primary_item: Joi.boolean(),
|
|
2818
|
-
meta: Joi.
|
|
2634
|
+
meta: Joi.any(),
|
|
2819
2635
|
article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(),
|
|
2820
2636
|
seller_id: Joi.number(),
|
|
2821
2637
|
ignore_locations: Joi.array().items(Joi.number()).required(),
|
|
@@ -2827,43 +2643,28 @@ class ServiceabilityPlatformModel {
|
|
|
2827
2643
|
});
|
|
2828
2644
|
}
|
|
2829
2645
|
|
|
2830
|
-
/** @returns {
|
|
2831
|
-
static
|
|
2646
|
+
/** @returns {OptimalLocationAssignedStoresResponse} */
|
|
2647
|
+
static OptimalLocationAssignedStoresResponse() {
|
|
2832
2648
|
return Joi.object({
|
|
2833
2649
|
store_id: Joi.number().required(),
|
|
2834
2650
|
articles: Joi.array()
|
|
2835
|
-
.items(ServiceabilityPlatformModel.
|
|
2651
|
+
.items(ServiceabilityPlatformModel.OptimalLocationArticlesResponse())
|
|
2836
2652
|
.required(),
|
|
2837
2653
|
});
|
|
2838
2654
|
}
|
|
2839
2655
|
|
|
2840
|
-
/** @returns {
|
|
2841
|
-
static
|
|
2656
|
+
/** @returns {OptimalLocationsResponse} */
|
|
2657
|
+
static OptimalLocationsResponse() {
|
|
2842
2658
|
return Joi.object({
|
|
2843
2659
|
assigned_stores: Joi.array()
|
|
2844
2660
|
.items(
|
|
2845
|
-
ServiceabilityPlatformModel.
|
|
2661
|
+
ServiceabilityPlatformModel.OptimalLocationAssignedStoresResponse()
|
|
2846
2662
|
)
|
|
2847
2663
|
.required(),
|
|
2848
2664
|
faulty_articles: Joi.array().items(
|
|
2849
|
-
ServiceabilityPlatformModel.
|
|
2665
|
+
ServiceabilityPlatformModel.ErrorResponse()
|
|
2850
2666
|
),
|
|
2851
2667
|
});
|
|
2852
2668
|
}
|
|
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
|
-
}
|
|
2868
2669
|
}
|
|
2869
2670
|
module.exports = ServiceabilityPlatformModel;
|