@gofynd/fdk-client-javascript 1.4.15-beta.13 → 1.4.15-beta.15
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 +23 -26
- package/package.json +5 -1
- package/sdk/application/ApplicationClient.d.ts +5 -6
- package/sdk/application/ApplicationClient.js +24 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
- package/sdk/application/Cart/CartApplicationClient.js +444 -76
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
- package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
- package/sdk/application/Content/ContentApplicationClient.js +274 -111
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
- package/sdk/application/Lead/LeadApplicationClient.js +6 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
- package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
- package/sdk/application/Order/OrderApplicationClient.js +217 -17
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
- package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
- package/sdk/application/User/UserApplicationClient.d.ts +103 -53
- package/sdk/application/User/UserApplicationClient.js +308 -49
- package/sdk/common/AxiosHelper.js +11 -4
- package/sdk/common/Constant.d.ts +27 -4
- package/sdk/common/Constant.js +33 -6
- package/sdk/common/utils.d.ts +10 -0
- package/sdk/common/utils.js +24 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
- package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
- package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
- package/sdk/partner/PartnerClient.d.ts +5 -2
- package/sdk/partner/PartnerClient.js +21 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
- package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
- package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
- package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
- 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 +266 -203
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
- package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9571 -2674
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5081 -2019
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
- package/sdk/platform/Common/CommonPlatformModel.js +25 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
- package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
- package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
- package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
- package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
- package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
- package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
- package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
- package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
- package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
- package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
- package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
- package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/PlatformClient.d.ts +5 -4
- package/sdk/platform/PlatformClient.js +32 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
- package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
- package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
- package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
- package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
- package/sdk/platform/User/UserPlatformModel.js +607 -46
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
- package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
- package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -2
- package/sdk/platform/index.js +0 -4
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
- package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
- package/sdk/public/Content/ContentPublicClient.js +1067 -17
- package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
- package/sdk/public/Content/ContentPublicModel.js +751 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
- package/sdk/public/Content/ContentPublicValidator.js +119 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +5 -2
- package/sdk/public/PublicClient.js +16 -6
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/utility.d.ts +3 -0
- package/utility.js +7 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
- package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
- 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
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
|
@@ -2,34 +2,177 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @typedef CreateBulkExportParam
|
|
7
|
+
* @property {ServiceabilityPlatformModel.BulkCreateZoneExport} body
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef CreateBulkGeoAreaParam
|
|
12
|
+
* @property {ServiceabilityPlatformModel.BulkGeoAreaDetails} body
|
|
13
|
+
*/
|
|
14
|
+
|
|
5
15
|
/**
|
|
6
16
|
* @typedef CreateCourierPartnerRuleParam
|
|
7
17
|
* @property {ServiceabilityPlatformModel.CourierPartnerRule} body
|
|
8
18
|
*/
|
|
9
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef CreateFulfillmentOptionParam
|
|
22
|
+
* @property {ServiceabilityPlatformModel.FulfillmentOption} body
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @typedef CreateGeoAreaParam
|
|
27
|
+
* @property {ServiceabilityPlatformModel.GeoAreaRequestBody} body
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @typedef CreateGeoAreaExportJobParam
|
|
32
|
+
* @property {string} geoareaId - The unique identifier of the Geoarea.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @typedef CreatePolygonParam
|
|
37
|
+
* @property {ServiceabilityPlatformModel.StorePolygonServiceabilityRequestBody} body
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @typedef CreateShipmentsParam
|
|
42
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
43
|
+
* identify source of order creation.
|
|
44
|
+
* @property {ServiceabilityPlatformModel.PlatformShipmentsRequestSchema} body
|
|
45
|
+
*/
|
|
46
|
+
|
|
10
47
|
/**
|
|
11
48
|
* @typedef CreateStoreRulesParam
|
|
12
|
-
* @property {ServiceabilityPlatformModel.
|
|
49
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema} body
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @typedef CreateZoneParam
|
|
54
|
+
* @property {ServiceabilityPlatformModel.CreateZoneDataSchema} body
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @typedef CreateZoneProductsBulkPatchJobParam
|
|
59
|
+
* @property {ServiceabilityPlatformModel.ZoneProductsBulkPatchDetails} body
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @typedef DeleteFulfillmentOptionsParam
|
|
64
|
+
* @property {string} slug - Slug of the fulfillment option for retrieving details.
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @typedef DeleteZoneParam
|
|
69
|
+
* @property {string} zoneId - Unique identifier for a particular zone
|
|
13
70
|
*/
|
|
14
71
|
|
|
72
|
+
/** @typedef DownloadGeoareaSampleFileParam */
|
|
73
|
+
|
|
74
|
+
/** @typedef DownloadZoneProductsBulkSampleFileParam */
|
|
75
|
+
|
|
15
76
|
/** @typedef GetApplicationConfigParam */
|
|
16
77
|
|
|
17
78
|
/** @typedef GetApplicationConfigurationParam */
|
|
18
79
|
|
|
19
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* @typedef GetApplicationCourierPartnersListParam
|
|
82
|
+
* @property {ServiceabilityPlatformModel.CourierPartnerDetails} body
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @typedef GetBulkExportParam
|
|
87
|
+
* @property {string} batchId - A `batch_id` is a unique identifier for a particular zone.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @typedef GetBulkFulfillmentValidationStatusParam
|
|
92
|
+
* @property {string} bulkId - Unique id created by validate api.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @typedef GetBulkGeoAreaParam
|
|
97
|
+
* @property {string} geoareaId - A unique identifier for the GeoArea.
|
|
98
|
+
*/
|
|
20
99
|
|
|
21
100
|
/**
|
|
22
101
|
* @typedef GetCourierPartnerRuleParam
|
|
23
|
-
* @property {string}
|
|
102
|
+
* @property {string} ruleUid - Unique identifier of the courier partner rule
|
|
24
103
|
*/
|
|
25
104
|
|
|
26
105
|
/**
|
|
27
106
|
* @typedef GetCourierPartnerRulesParam
|
|
28
|
-
* @property {number} [pageNo] -
|
|
107
|
+
* @property {number} [pageNo] - The current page number for paginated results.
|
|
29
108
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
30
109
|
* @property {string} [status] - Filter rules based on rule status
|
|
31
110
|
*/
|
|
32
111
|
|
|
112
|
+
/**
|
|
113
|
+
* @typedef GetCourierPartnersParam
|
|
114
|
+
* @property {ServiceabilityPlatformModel.ShipmentCourierPartnerDetails} body
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @typedef GetFulfillmentOptionProductsParam
|
|
119
|
+
* @property {string} slug - Slug of the fulfillment option for retrieving details.
|
|
120
|
+
* @property {string} [q] - Query to search product by name.
|
|
121
|
+
* @property {number} storeId - The unique identifier of the store.
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @typedef GetFulfillmentOptionStoresParam
|
|
126
|
+
* @property {string} slug - Slug of the fulfillment option for retrieving details.
|
|
127
|
+
* @property {string} [q] - Query to search product by name.
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @typedef GetFulfillmentOptionsParam
|
|
132
|
+
* @property {string} slug - Slug of the fulfillment option for retrieving details.
|
|
133
|
+
* @property {number} [productId] - The unique identifier of the product.
|
|
134
|
+
* @property {number} [storeId] - The unique identifier of the store.
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @typedef GetFulfillmentOptionsListParam
|
|
139
|
+
* @property {string} [productSlug] - The unique identifier (slug) of the product.
|
|
140
|
+
* @property {number} [storeId] - The unique identifier of the store.
|
|
141
|
+
* @property {string} [status] - Status of the fulfillment option. Must be
|
|
142
|
+
* either `ACTIVE` or `INACTIVE`.
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @typedef GetGeoAreaParam
|
|
147
|
+
* @property {string} geoareaId - A unique identifier for the GeoArea.
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @typedef GetGeoAreaExportJobStatusParam
|
|
152
|
+
* @property {string} geoareaId - The unique identifier of the Geoarea.
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @typedef GetGeoAreasParam
|
|
157
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
158
|
+
* @property {boolean} [isActive] - Status of GeoAreas (either active or inactive)
|
|
159
|
+
* @property {number} [pageNo] - Current page number
|
|
160
|
+
* @property {string} [type] - To fetch the type of a specific geoarea.
|
|
161
|
+
* @property {string} [q] - Used to search for matching results based on the
|
|
162
|
+
* provided input.
|
|
163
|
+
* @property {string} [countryIsoCode] - ISO2 code of the country
|
|
164
|
+
* @property {string} [state] - State name
|
|
165
|
+
* @property {string} [city] - City name
|
|
166
|
+
* @property {string} [pincode] - Pincode value to search geoareas
|
|
167
|
+
* @property {string} [sector] - Sector value to search geoareas
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @typedef GetPolygonParam
|
|
172
|
+
* @property {number} [pageNumber] - Page number to be fetched.
|
|
173
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
174
|
+
*/
|
|
175
|
+
|
|
33
176
|
/**
|
|
34
177
|
* @typedef GetStoreRuleParam
|
|
35
178
|
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
@@ -38,9 +181,36 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
38
181
|
|
|
39
182
|
/**
|
|
40
183
|
* @typedef GetStoreRulesParam
|
|
41
|
-
* @property {number} [pageNo]
|
|
42
|
-
* @property {number} [pageSize]
|
|
43
|
-
* @property {string} [status]
|
|
184
|
+
* @property {number} [pageNo] - The current page number for paginated results.
|
|
185
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
186
|
+
* @property {string} [status] - Filter rules based on rule status
|
|
187
|
+
*/
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @typedef GetZoneParam
|
|
191
|
+
* @property {string} zoneId - Unique identifier for a particular zone
|
|
192
|
+
*/
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @typedef GetZoneProductsBulkPatchJobStatusParam
|
|
196
|
+
* @property {string} batchId - A unique identifier for the bulk zone products patch job.
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @typedef GetZonesParam
|
|
201
|
+
* @property {string} [stage] - Identifies the specific stage of zone bing requested.
|
|
202
|
+
* @property {number} [pageSize] - Defines the number of items displayed per page.
|
|
203
|
+
* @property {number} [pageNo] - Current page number.
|
|
204
|
+
* @property {string} [fulfillmentOptionSlug] - Slug identifier for filtering by
|
|
205
|
+
* fulfillment option.
|
|
206
|
+
* @property {boolean} [isActive] - Status of Zone (either active or inactive)
|
|
207
|
+
* @property {string} [q] - Used to search for matching results based on the
|
|
208
|
+
* provided input.
|
|
209
|
+
* @property {string} [countryIsoCode] - ISO2 code of the country.
|
|
210
|
+
* @property {string} [pincode] - PIN Code of the country.
|
|
211
|
+
* @property {string} [state] - State of the country.
|
|
212
|
+
* @property {string} [city] - City of the country.
|
|
213
|
+
* @property {string} [sector] - Sector name of mentioned address.
|
|
44
214
|
*/
|
|
45
215
|
|
|
46
216
|
/**
|
|
@@ -49,29 +219,44 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
49
219
|
*/
|
|
50
220
|
|
|
51
221
|
/**
|
|
52
|
-
* @typedef
|
|
53
|
-
* @property {ServiceabilityPlatformModel.
|
|
222
|
+
* @typedef PatchApplicationConfigurationParam
|
|
223
|
+
* @property {ServiceabilityPlatformModel.ApplicationConfigPatch} body
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @typedef PutFulfillmentOptionParam
|
|
228
|
+
* @property {string} slug - Slug of the fulfillment option for retrieving details.
|
|
229
|
+
* @property {ServiceabilityPlatformModel.FulfillmentOption} body
|
|
54
230
|
*/
|
|
55
231
|
|
|
56
232
|
/**
|
|
57
|
-
* @typedef
|
|
58
|
-
* @property {
|
|
233
|
+
* @typedef UpdateBulkGeoAreaParam
|
|
234
|
+
* @property {string} geoareaId - A unique identifier for the GeoArea.
|
|
235
|
+
* @property {ServiceabilityPlatformModel.BulkGeoAreaDetails} body
|
|
59
236
|
*/
|
|
60
237
|
|
|
61
238
|
/**
|
|
62
239
|
* @typedef UpdateCourierPartnerRulePriorityParam
|
|
63
|
-
* @property {ServiceabilityPlatformModel.
|
|
240
|
+
* @property {ServiceabilityPlatformModel.RulePriorityDetails} body
|
|
64
241
|
*/
|
|
65
242
|
|
|
66
243
|
/**
|
|
67
244
|
* @typedef UpdateCourierRuleParam
|
|
68
|
-
* @property {string}
|
|
245
|
+
* @property {string} ruleUid - Unique identifier of the courier partner rule.
|
|
69
246
|
* @property {ServiceabilityPlatformModel.CourierPartnerRule} body
|
|
70
247
|
*/
|
|
71
248
|
|
|
249
|
+
/**
|
|
250
|
+
* @typedef UpdateGeoAreaParam
|
|
251
|
+
* @property {string} geoareaId - A unique identifier for the GeoArea.
|
|
252
|
+
* @property {ServiceabilityPlatformModel.GeoAreaRequestBody} body
|
|
253
|
+
*/
|
|
254
|
+
|
|
72
255
|
/**
|
|
73
256
|
* @typedef UpdatePincodeAuditHistoryParam
|
|
74
|
-
* @property {
|
|
257
|
+
* @property {number} [pageNumber] - Page number to be fetched.
|
|
258
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
259
|
+
* @property {ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails} body
|
|
75
260
|
*/
|
|
76
261
|
|
|
77
262
|
/**
|
|
@@ -81,7 +266,9 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
81
266
|
|
|
82
267
|
/**
|
|
83
268
|
* @typedef UpdatePincodeCoDListingParam
|
|
84
|
-
* @property {
|
|
269
|
+
* @property {number} [pageNumber] - Page number to be fetched.
|
|
270
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
271
|
+
* @property {ServiceabilityPlatformModel.PincodeCodStatusListingDetails} body
|
|
85
272
|
*/
|
|
86
273
|
|
|
87
274
|
/**
|
|
@@ -89,11 +276,21 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
89
276
|
* @property {ServiceabilityPlatformModel.PincodeMopData} body
|
|
90
277
|
*/
|
|
91
278
|
|
|
279
|
+
/**
|
|
280
|
+
* @typedef UpdatePolygonParam
|
|
281
|
+
* @property {ServiceabilityPlatformModel.StorePolygonServiceabilityRequestBody} body
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @typedef UpdateStoreRulePriorityParam
|
|
286
|
+
* @property {ServiceabilityPlatformModel.RulePriorityDetails} body
|
|
287
|
+
*/
|
|
288
|
+
|
|
92
289
|
/**
|
|
93
290
|
* @typedef UpdateStoreRulesParam
|
|
94
291
|
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
95
292
|
* particular rule object.
|
|
96
|
-
* @property {ServiceabilityPlatformModel.
|
|
293
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema} body
|
|
97
294
|
*/
|
|
98
295
|
|
|
99
296
|
/**
|
|
@@ -101,7 +298,38 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
101
298
|
* @property {ServiceabilityPlatformModel.StoreRuleConfigData} body
|
|
102
299
|
*/
|
|
103
300
|
|
|
301
|
+
/**
|
|
302
|
+
* @typedef UpdateZoneParam
|
|
303
|
+
* @property {string} zoneId - Unique identifier for a particular zone
|
|
304
|
+
* @property {ServiceabilityPlatformModel.UpdateZoneData} body
|
|
305
|
+
*/
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @typedef UploadBulkFulfillmentOptionsParam
|
|
309
|
+
* @property {ServiceabilityPlatformModel.FulfillmentOptionBulk} body
|
|
310
|
+
*/
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @typedef ValidateBulkFulfillmentOptionsParam
|
|
314
|
+
* @property {string} type - Type of entity being validated (stores or products).
|
|
315
|
+
* @property {ServiceabilityPlatformModel.FulfillmentOptionBulkValidate} body
|
|
316
|
+
*/
|
|
317
|
+
|
|
104
318
|
class ServiceabilityPlatformApplicationValidator {
|
|
319
|
+
/** @returns {CreateBulkExportParam} */
|
|
320
|
+
static createBulkExport() {
|
|
321
|
+
return Joi.object({
|
|
322
|
+
body: ServiceabilityPlatformModel.BulkCreateZoneExport().required(),
|
|
323
|
+
}).required();
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/** @returns {CreateBulkGeoAreaParam} */
|
|
327
|
+
static createBulkGeoArea() {
|
|
328
|
+
return Joi.object({
|
|
329
|
+
body: ServiceabilityPlatformModel.BulkGeoAreaDetails().required(),
|
|
330
|
+
}).required();
|
|
331
|
+
}
|
|
332
|
+
|
|
105
333
|
/** @returns {CreateCourierPartnerRuleParam} */
|
|
106
334
|
static createCourierPartnerRule() {
|
|
107
335
|
return Joi.object({
|
|
@@ -109,13 +337,88 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
109
337
|
}).required();
|
|
110
338
|
}
|
|
111
339
|
|
|
340
|
+
/** @returns {CreateFulfillmentOptionParam} */
|
|
341
|
+
static createFulfillmentOption() {
|
|
342
|
+
return Joi.object({
|
|
343
|
+
body: ServiceabilityPlatformModel.FulfillmentOption().required(),
|
|
344
|
+
}).required();
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/** @returns {CreateGeoAreaParam} */
|
|
348
|
+
static createGeoArea() {
|
|
349
|
+
return Joi.object({
|
|
350
|
+
body: ServiceabilityPlatformModel.GeoAreaRequestBody().required(),
|
|
351
|
+
}).required();
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/** @returns {CreateGeoAreaExportJobParam} */
|
|
355
|
+
static createGeoAreaExportJob() {
|
|
356
|
+
return Joi.object({
|
|
357
|
+
geoareaId: Joi.string().allow("").required(),
|
|
358
|
+
}).required();
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/** @returns {CreatePolygonParam} */
|
|
362
|
+
static createPolygon() {
|
|
363
|
+
return Joi.object({
|
|
364
|
+
body: ServiceabilityPlatformModel.StorePolygonServiceabilityRequestBody().required(),
|
|
365
|
+
}).required();
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/** @returns {CreateShipmentsParam} */
|
|
369
|
+
static createShipments() {
|
|
370
|
+
return Joi.object({
|
|
371
|
+
xOrderingSource: Joi.string().allow(""),
|
|
372
|
+
|
|
373
|
+
body: ServiceabilityPlatformModel.PlatformShipmentsRequestSchema().required(),
|
|
374
|
+
}).required();
|
|
375
|
+
}
|
|
376
|
+
|
|
112
377
|
/** @returns {CreateStoreRulesParam} */
|
|
113
378
|
static createStoreRules() {
|
|
114
379
|
return Joi.object({
|
|
115
|
-
body: ServiceabilityPlatformModel.
|
|
380
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema().required(),
|
|
116
381
|
}).required();
|
|
117
382
|
}
|
|
118
383
|
|
|
384
|
+
/** @returns {CreateZoneParam} */
|
|
385
|
+
static createZone() {
|
|
386
|
+
return Joi.object({
|
|
387
|
+
body: ServiceabilityPlatformModel.CreateZoneDataSchema().required(),
|
|
388
|
+
}).required();
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/** @returns {CreateZoneProductsBulkPatchJobParam} */
|
|
392
|
+
static createZoneProductsBulkPatchJob() {
|
|
393
|
+
return Joi.object({
|
|
394
|
+
body: ServiceabilityPlatformModel.ZoneProductsBulkPatchDetails().required(),
|
|
395
|
+
}).required();
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/** @returns {DeleteFulfillmentOptionsParam} */
|
|
399
|
+
static deleteFulfillmentOptions() {
|
|
400
|
+
return Joi.object({
|
|
401
|
+
slug: Joi.string().allow("").required(),
|
|
402
|
+
}).required();
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/** @returns {DeleteZoneParam} */
|
|
406
|
+
static deleteZone() {
|
|
407
|
+
return Joi.object({
|
|
408
|
+
zoneId: Joi.string().allow("").required(),
|
|
409
|
+
}).required();
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/** @returns {DownloadGeoareaSampleFileParam} */
|
|
413
|
+
static downloadGeoareaSampleFile() {
|
|
414
|
+
return Joi.object({}).required();
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/** @returns {DownloadZoneProductsBulkSampleFileParam} */
|
|
418
|
+
static downloadZoneProductsBulkSampleFile() {
|
|
419
|
+
return Joi.object({}).required();
|
|
420
|
+
}
|
|
421
|
+
|
|
119
422
|
/** @returns {GetApplicationConfigParam} */
|
|
120
423
|
static getApplicationConfig() {
|
|
121
424
|
return Joi.object({}).required();
|
|
@@ -126,15 +429,38 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
126
429
|
return Joi.object({}).required();
|
|
127
430
|
}
|
|
128
431
|
|
|
129
|
-
/** @returns {
|
|
130
|
-
static
|
|
131
|
-
return Joi.object({
|
|
432
|
+
/** @returns {GetApplicationCourierPartnersListParam} */
|
|
433
|
+
static getApplicationCourierPartnersList() {
|
|
434
|
+
return Joi.object({
|
|
435
|
+
body: ServiceabilityPlatformModel.CourierPartnerDetails().required(),
|
|
436
|
+
}).required();
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/** @returns {GetBulkExportParam} */
|
|
440
|
+
static getBulkExport() {
|
|
441
|
+
return Joi.object({
|
|
442
|
+
batchId: Joi.string().allow("").required(),
|
|
443
|
+
}).required();
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/** @returns {GetBulkFulfillmentValidationStatusParam} */
|
|
447
|
+
static getBulkFulfillmentValidationStatus() {
|
|
448
|
+
return Joi.object({
|
|
449
|
+
bulkId: Joi.string().allow("").required(),
|
|
450
|
+
}).required();
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/** @returns {GetBulkGeoAreaParam} */
|
|
454
|
+
static getBulkGeoArea() {
|
|
455
|
+
return Joi.object({
|
|
456
|
+
geoareaId: Joi.string().allow("").required(),
|
|
457
|
+
}).required();
|
|
132
458
|
}
|
|
133
459
|
|
|
134
460
|
/** @returns {GetCourierPartnerRuleParam} */
|
|
135
461
|
static getCourierPartnerRule() {
|
|
136
462
|
return Joi.object({
|
|
137
|
-
|
|
463
|
+
ruleUid: Joi.string().allow("").required(),
|
|
138
464
|
}).required();
|
|
139
465
|
}
|
|
140
466
|
|
|
@@ -147,6 +473,86 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
147
473
|
}).required();
|
|
148
474
|
}
|
|
149
475
|
|
|
476
|
+
/** @returns {GetCourierPartnersParam} */
|
|
477
|
+
static getCourierPartners() {
|
|
478
|
+
return Joi.object({
|
|
479
|
+
body: ServiceabilityPlatformModel.ShipmentCourierPartnerDetails().required(),
|
|
480
|
+
}).required();
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/** @returns {GetFulfillmentOptionProductsParam} */
|
|
484
|
+
static getFulfillmentOptionProducts() {
|
|
485
|
+
return Joi.object({
|
|
486
|
+
slug: Joi.string().allow("").required(),
|
|
487
|
+
q: Joi.string().allow(""),
|
|
488
|
+
storeId: Joi.number().required(),
|
|
489
|
+
}).required();
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/** @returns {GetFulfillmentOptionStoresParam} */
|
|
493
|
+
static getFulfillmentOptionStores() {
|
|
494
|
+
return Joi.object({
|
|
495
|
+
slug: Joi.string().allow("").required(),
|
|
496
|
+
q: Joi.string().allow(""),
|
|
497
|
+
}).required();
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/** @returns {GetFulfillmentOptionsParam} */
|
|
501
|
+
static getFulfillmentOptions() {
|
|
502
|
+
return Joi.object({
|
|
503
|
+
slug: Joi.string().allow("").required(),
|
|
504
|
+
productId: Joi.number(),
|
|
505
|
+
storeId: Joi.number(),
|
|
506
|
+
}).required();
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/** @returns {GetFulfillmentOptionsListParam} */
|
|
510
|
+
static getFulfillmentOptionsList() {
|
|
511
|
+
return Joi.object({
|
|
512
|
+
productSlug: Joi.string().allow(""),
|
|
513
|
+
storeId: Joi.number(),
|
|
514
|
+
status: Joi.string().allow(""),
|
|
515
|
+
}).required();
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/** @returns {GetGeoAreaParam} */
|
|
519
|
+
static getGeoArea() {
|
|
520
|
+
return Joi.object({
|
|
521
|
+
geoareaId: Joi.string().allow("").required(),
|
|
522
|
+
}).required();
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/** @returns {GetGeoAreaExportJobStatusParam} */
|
|
526
|
+
static getGeoAreaExportJobStatus() {
|
|
527
|
+
return Joi.object({
|
|
528
|
+
geoareaId: Joi.string().allow("").required(),
|
|
529
|
+
}).required();
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/** @returns {GetGeoAreasParam} */
|
|
533
|
+
static getGeoAreas() {
|
|
534
|
+
return Joi.object({
|
|
535
|
+
pageSize: Joi.number(),
|
|
536
|
+
isActive: Joi.boolean(),
|
|
537
|
+
pageNo: Joi.number(),
|
|
538
|
+
type: Joi.string().allow(""),
|
|
539
|
+
q: Joi.string().allow(""),
|
|
540
|
+
countryIsoCode: Joi.string().allow(""),
|
|
541
|
+
state: Joi.string().allow(""),
|
|
542
|
+
city: Joi.string().allow(""),
|
|
543
|
+
pincode: Joi.string().allow(""),
|
|
544
|
+
sector: Joi.string().allow(""),
|
|
545
|
+
}).required();
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/** @returns {GetPolygonParam} */
|
|
549
|
+
static getPolygon() {
|
|
550
|
+
return Joi.object({
|
|
551
|
+
pageNumber: Joi.number(),
|
|
552
|
+
pageSize: Joi.number(),
|
|
553
|
+
}).required();
|
|
554
|
+
}
|
|
555
|
+
|
|
150
556
|
/** @returns {GetStoreRuleParam} */
|
|
151
557
|
static getStoreRule() {
|
|
152
558
|
return Joi.object({
|
|
@@ -163,6 +569,37 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
163
569
|
}).required();
|
|
164
570
|
}
|
|
165
571
|
|
|
572
|
+
/** @returns {GetZoneParam} */
|
|
573
|
+
static getZone() {
|
|
574
|
+
return Joi.object({
|
|
575
|
+
zoneId: Joi.string().allow("").required(),
|
|
576
|
+
}).required();
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/** @returns {GetZoneProductsBulkPatchJobStatusParam} */
|
|
580
|
+
static getZoneProductsBulkPatchJobStatus() {
|
|
581
|
+
return Joi.object({
|
|
582
|
+
batchId: Joi.string().allow("").required(),
|
|
583
|
+
}).required();
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/** @returns {GetZonesParam} */
|
|
587
|
+
static getZones() {
|
|
588
|
+
return Joi.object({
|
|
589
|
+
stage: Joi.string().allow(""),
|
|
590
|
+
pageSize: Joi.number(),
|
|
591
|
+
pageNo: Joi.number(),
|
|
592
|
+
fulfillmentOptionSlug: Joi.string().allow(""),
|
|
593
|
+
isActive: Joi.boolean(),
|
|
594
|
+
q: Joi.string().allow(""),
|
|
595
|
+
countryIsoCode: Joi.string().allow(""),
|
|
596
|
+
pincode: Joi.string().allow(""),
|
|
597
|
+
state: Joi.string().allow(""),
|
|
598
|
+
city: Joi.string().allow(""),
|
|
599
|
+
sector: Joi.string().allow(""),
|
|
600
|
+
}).required();
|
|
601
|
+
}
|
|
602
|
+
|
|
166
603
|
/** @returns {InsertApplicationConfigParam} */
|
|
167
604
|
static insertApplicationConfig() {
|
|
168
605
|
return Joi.object({
|
|
@@ -170,39 +607,59 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
170
607
|
}).required();
|
|
171
608
|
}
|
|
172
609
|
|
|
173
|
-
/** @returns {
|
|
174
|
-
static
|
|
610
|
+
/** @returns {PatchApplicationConfigurationParam} */
|
|
611
|
+
static patchApplicationConfiguration() {
|
|
175
612
|
return Joi.object({
|
|
176
|
-
body: ServiceabilityPlatformModel.
|
|
613
|
+
body: ServiceabilityPlatformModel.ApplicationConfigPatch().required(),
|
|
177
614
|
}).required();
|
|
178
615
|
}
|
|
179
616
|
|
|
180
|
-
/** @returns {
|
|
181
|
-
static
|
|
617
|
+
/** @returns {PutFulfillmentOptionParam} */
|
|
618
|
+
static putFulfillmentOption() {
|
|
182
619
|
return Joi.object({
|
|
183
|
-
|
|
620
|
+
slug: Joi.string().allow("").required(),
|
|
621
|
+
body: ServiceabilityPlatformModel.FulfillmentOption().required(),
|
|
622
|
+
}).required();
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/** @returns {UpdateBulkGeoAreaParam} */
|
|
626
|
+
static updateBulkGeoArea() {
|
|
627
|
+
return Joi.object({
|
|
628
|
+
geoareaId: Joi.string().allow("").required(),
|
|
629
|
+
body: ServiceabilityPlatformModel.BulkGeoAreaDetails().required(),
|
|
184
630
|
}).required();
|
|
185
631
|
}
|
|
186
632
|
|
|
187
633
|
/** @returns {UpdateCourierPartnerRulePriorityParam} */
|
|
188
634
|
static updateCourierPartnerRulePriority() {
|
|
189
635
|
return Joi.object({
|
|
190
|
-
body: ServiceabilityPlatformModel.
|
|
636
|
+
body: ServiceabilityPlatformModel.RulePriorityDetails().required(),
|
|
191
637
|
}).required();
|
|
192
638
|
}
|
|
193
639
|
|
|
194
640
|
/** @returns {UpdateCourierRuleParam} */
|
|
195
641
|
static updateCourierRule() {
|
|
196
642
|
return Joi.object({
|
|
197
|
-
|
|
643
|
+
ruleUid: Joi.string().allow("").required(),
|
|
198
644
|
body: ServiceabilityPlatformModel.CourierPartnerRule().required(),
|
|
199
645
|
}).required();
|
|
200
646
|
}
|
|
201
647
|
|
|
648
|
+
/** @returns {UpdateGeoAreaParam} */
|
|
649
|
+
static updateGeoArea() {
|
|
650
|
+
return Joi.object({
|
|
651
|
+
geoareaId: Joi.string().allow("").required(),
|
|
652
|
+
|
|
653
|
+
body: ServiceabilityPlatformModel.GeoAreaRequestBody().required(),
|
|
654
|
+
}).required();
|
|
655
|
+
}
|
|
656
|
+
|
|
202
657
|
/** @returns {UpdatePincodeAuditHistoryParam} */
|
|
203
658
|
static updatePincodeAuditHistory() {
|
|
204
659
|
return Joi.object({
|
|
205
|
-
|
|
660
|
+
pageNumber: Joi.number(),
|
|
661
|
+
pageSize: Joi.number(),
|
|
662
|
+
body: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails().required(),
|
|
206
663
|
}).required();
|
|
207
664
|
}
|
|
208
665
|
|
|
@@ -216,7 +673,9 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
216
673
|
/** @returns {UpdatePincodeCoDListingParam} */
|
|
217
674
|
static updatePincodeCoDListing() {
|
|
218
675
|
return Joi.object({
|
|
219
|
-
|
|
676
|
+
pageNumber: Joi.number(),
|
|
677
|
+
pageSize: Joi.number(),
|
|
678
|
+
body: ServiceabilityPlatformModel.PincodeCodStatusListingDetails().required(),
|
|
220
679
|
}).required();
|
|
221
680
|
}
|
|
222
681
|
|
|
@@ -227,11 +686,25 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
227
686
|
}).required();
|
|
228
687
|
}
|
|
229
688
|
|
|
689
|
+
/** @returns {UpdatePolygonParam} */
|
|
690
|
+
static updatePolygon() {
|
|
691
|
+
return Joi.object({
|
|
692
|
+
body: ServiceabilityPlatformModel.StorePolygonServiceabilityRequestBody().required(),
|
|
693
|
+
}).required();
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/** @returns {UpdateStoreRulePriorityParam} */
|
|
697
|
+
static updateStoreRulePriority() {
|
|
698
|
+
return Joi.object({
|
|
699
|
+
body: ServiceabilityPlatformModel.RulePriorityDetails().required(),
|
|
700
|
+
}).required();
|
|
701
|
+
}
|
|
702
|
+
|
|
230
703
|
/** @returns {UpdateStoreRulesParam} */
|
|
231
704
|
static updateStoreRules() {
|
|
232
705
|
return Joi.object({
|
|
233
706
|
ruleUid: Joi.string().allow("").required(),
|
|
234
|
-
body: ServiceabilityPlatformModel.
|
|
707
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema().required(),
|
|
235
708
|
}).required();
|
|
236
709
|
}
|
|
237
710
|
|
|
@@ -241,6 +714,30 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
241
714
|
body: ServiceabilityPlatformModel.StoreRuleConfigData().required(),
|
|
242
715
|
}).required();
|
|
243
716
|
}
|
|
717
|
+
|
|
718
|
+
/** @returns {UpdateZoneParam} */
|
|
719
|
+
static updateZone() {
|
|
720
|
+
return Joi.object({
|
|
721
|
+
zoneId: Joi.string().allow("").required(),
|
|
722
|
+
|
|
723
|
+
body: ServiceabilityPlatformModel.UpdateZoneData().required(),
|
|
724
|
+
}).required();
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/** @returns {UploadBulkFulfillmentOptionsParam} */
|
|
728
|
+
static uploadBulkFulfillmentOptions() {
|
|
729
|
+
return Joi.object({
|
|
730
|
+
body: ServiceabilityPlatformModel.FulfillmentOptionBulk().required(),
|
|
731
|
+
}).required();
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/** @returns {ValidateBulkFulfillmentOptionsParam} */
|
|
735
|
+
static validateBulkFulfillmentOptions() {
|
|
736
|
+
return Joi.object({
|
|
737
|
+
type: Joi.string().allow("").required(),
|
|
738
|
+
body: ServiceabilityPlatformModel.FulfillmentOptionBulkValidate().required(),
|
|
739
|
+
}).required();
|
|
740
|
+
}
|
|
244
741
|
}
|
|
245
742
|
|
|
246
743
|
module.exports = ServiceabilityPlatformApplicationValidator;
|