@gofynd/fdk-client-javascript 1.6.4 → 3.1.0-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 +100 -80
- package/sdk/application/Cart/CartApplicationClient.js +257 -126
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -21
- package/sdk/application/Content/ContentApplicationClient.js +250 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- 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 +251 -172
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
- package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
- package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
- package/sdk/platform/Content/ContentPlatformModel.js +940 -599
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- 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 +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
- package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
- package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- 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 +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- 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 +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
- package/sdk/platform/Share/SharePlatformModel.js +5 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- 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 +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -2,25 +2,83 @@ 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
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @typedef CreateBulkZoneParam
|
|
17
|
+
* @property {ServiceabilityPlatformModel.CreateBulkZoneData} body
|
|
18
|
+
*/
|
|
19
|
+
|
|
5
20
|
/**
|
|
6
21
|
* @typedef CreateCourierPartnerRuleParam
|
|
7
22
|
* @property {ServiceabilityPlatformModel.CourierPartnerRule} body
|
|
8
23
|
*/
|
|
9
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
|
+
|
|
10
35
|
/**
|
|
11
36
|
* @typedef CreateStoreRulesParam
|
|
12
|
-
* @property {ServiceabilityPlatformModel.
|
|
37
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleRequestSchema} body
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @typedef CreateZoneParam
|
|
42
|
+
* @property {ServiceabilityPlatformModel.CreateZoneV2Data} body
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @typedef DeleteZoneParam
|
|
47
|
+
* @property {string} zoneId - Unique identifier for a particular zone
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/** @typedef DownloadGeoareaSampleFileParam */
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @typedef DownloadZoneSampleFileParam
|
|
54
|
+
* @property {string} productType - It denotes the attribute of the product
|
|
13
55
|
*/
|
|
14
56
|
|
|
15
57
|
/** @typedef GetApplicationConfigParam */
|
|
16
58
|
|
|
17
59
|
/** @typedef GetApplicationConfigurationParam */
|
|
18
60
|
|
|
19
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* @typedef GetBulkExportParam
|
|
63
|
+
* @property {string} batchId - A `batch_id` is a unique identifier for a particular zone.
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @typedef GetBulkGeoAreaParam
|
|
68
|
+
* @property {string} geoareaId - A unique identifier for the GeoArea.
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/** @typedef GetBulkZoneParam */
|
|
20
72
|
|
|
21
73
|
/**
|
|
22
74
|
* @typedef GetCourierPartnerRuleParam
|
|
23
|
-
* @property {string}
|
|
75
|
+
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a particular Dp.
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @typedef GetCourierPartnerRuleDetailsParam
|
|
80
|
+
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
81
|
+
* courier partner rule.
|
|
24
82
|
*/
|
|
25
83
|
|
|
26
84
|
/**
|
|
@@ -31,8 +89,27 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
31
89
|
*/
|
|
32
90
|
|
|
33
91
|
/**
|
|
34
|
-
* @typedef
|
|
35
|
-
* @property {
|
|
92
|
+
* @typedef GetGeoAreaParam
|
|
93
|
+
* @property {string} geoareaId - A unique identifier for the GeoArea.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @typedef GetGeoAreaExportJobStatusParam
|
|
98
|
+
* @property {string} geoareaId - The unique identifier of the Geoarea.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @typedef GetGeoAreasParam
|
|
103
|
+
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
104
|
+
* @property {boolean} [isActive] - Status of GeoAreas (either active or inactive)
|
|
105
|
+
* @property {number} [pageNo] - Current page number
|
|
106
|
+
* @property {string} [type] - To fetch the type of a specific geoarea.
|
|
107
|
+
* @property {string} [q] - Search with name as a free text
|
|
108
|
+
* @property {string} [countryIsoCode] - ISO2 code of the country
|
|
109
|
+
* @property {string} [state] - State name
|
|
110
|
+
* @property {string} [city] - City name
|
|
111
|
+
* @property {string} [pincode] - Pincode value to search geoareas
|
|
112
|
+
* @property {string} [sector] - Sector value to search geoareas
|
|
36
113
|
*/
|
|
37
114
|
|
|
38
115
|
/**
|
|
@@ -41,6 +118,12 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
41
118
|
* particular rule object.
|
|
42
119
|
*/
|
|
43
120
|
|
|
121
|
+
/**
|
|
122
|
+
* @typedef GetStoreRuleDetailsParam
|
|
123
|
+
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a order
|
|
124
|
+
* routing rule.
|
|
125
|
+
*/
|
|
126
|
+
|
|
44
127
|
/**
|
|
45
128
|
* @typedef GetStoreRulesParam
|
|
46
129
|
* @property {number} [pageNo]
|
|
@@ -48,37 +131,76 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
48
131
|
* @property {string} [status]
|
|
49
132
|
*/
|
|
50
133
|
|
|
134
|
+
/**
|
|
135
|
+
* @typedef GetZoneParam
|
|
136
|
+
* @property {string} zoneId - Unique identifier for a particular zone
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @typedef GetZoneDetailsParam
|
|
141
|
+
* @property {string} zoneId - Unique identifier of a particular zone
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @typedef GetZonesParam
|
|
146
|
+
* @property {string} [stage] - Identifies the specific stage of zone bing requested.
|
|
147
|
+
* @property {string} [type] - Using type, you can filter custom or default zones
|
|
148
|
+
* @property {string} [accessLevel] - Using access level, you can filter public
|
|
149
|
+
* and private zones as marketplace owner
|
|
150
|
+
* @property {string} [status] - Using status zones listing can be filttered for
|
|
151
|
+
* marketplace owner and 3p sellers
|
|
152
|
+
* @property {number} [pageSize] - Defines the number of items displayed per page.
|
|
153
|
+
* @property {number} [pageNo] - Current page number.
|
|
154
|
+
* @property {boolean} [isActive] - Status of Zone (either active or inactive)
|
|
155
|
+
* @property {string} [q] - Search with name as a free text.
|
|
156
|
+
* @property {string} [countryIsoCode] - ISO2 code of the country.
|
|
157
|
+
* @property {string} [pincode] - PIN Code of the country.
|
|
158
|
+
* @property {string} [state] - State of the country.
|
|
159
|
+
* @property {string} [city] - City of the country.
|
|
160
|
+
* @property {string} [sector] - Sector name of mentioned address.
|
|
161
|
+
*/
|
|
162
|
+
|
|
51
163
|
/**
|
|
52
164
|
* @typedef InsertApplicationConfigParam
|
|
53
165
|
* @property {ServiceabilityPlatformModel.StoreRuleConfigData} body
|
|
54
166
|
*/
|
|
55
167
|
|
|
56
168
|
/**
|
|
57
|
-
* @typedef
|
|
58
|
-
* @property {ServiceabilityPlatformModel.
|
|
169
|
+
* @typedef PatchApplicationConfigurationParam
|
|
170
|
+
* @property {ServiceabilityPlatformModel.ApplicationConfigPatchRequest} body
|
|
59
171
|
*/
|
|
60
172
|
|
|
61
173
|
/**
|
|
62
174
|
* @typedef UpdateApplicationConfigurationParam
|
|
63
|
-
* @property {ServiceabilityPlatformModel.
|
|
175
|
+
* @property {ServiceabilityPlatformModel.ApplicationConfigPutRequest} body
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @typedef UpdateBulkGeoAreaParam
|
|
180
|
+
* @property {string} geoareaId - A unique identifier for the GeoArea.
|
|
181
|
+
* @property {ServiceabilityPlatformModel.BulkGeoAreaDetails} body
|
|
64
182
|
*/
|
|
65
183
|
|
|
66
184
|
/**
|
|
67
185
|
* @typedef UpdateCourierPartnerRulePriorityParam
|
|
68
|
-
* @property {ServiceabilityPlatformModel.
|
|
186
|
+
* @property {ServiceabilityPlatformModel.RulePriorityRequest} body
|
|
69
187
|
*/
|
|
70
188
|
|
|
71
189
|
/**
|
|
72
190
|
* @typedef UpdateCourierRuleParam
|
|
73
|
-
* @property {string}
|
|
191
|
+
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a particular Dp.
|
|
74
192
|
* @property {ServiceabilityPlatformModel.CourierPartnerRule} body
|
|
75
193
|
*/
|
|
76
194
|
|
|
195
|
+
/**
|
|
196
|
+
* @typedef UpdateGeoAreaParam
|
|
197
|
+
* @property {string} geoareaId - A unique identifier for the GeoArea.
|
|
198
|
+
* @property {ServiceabilityPlatformModel.GeoAreaRequestBody} body
|
|
199
|
+
*/
|
|
200
|
+
|
|
77
201
|
/**
|
|
78
202
|
* @typedef UpdatePincodeAuditHistoryParam
|
|
79
|
-
* @property {
|
|
80
|
-
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
81
|
-
* @property {ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails} body
|
|
203
|
+
* @property {ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryRequest} body
|
|
82
204
|
*/
|
|
83
205
|
|
|
84
206
|
/**
|
|
@@ -88,9 +210,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
88
210
|
|
|
89
211
|
/**
|
|
90
212
|
* @typedef UpdatePincodeCoDListingParam
|
|
91
|
-
* @property {
|
|
92
|
-
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
93
|
-
* @property {ServiceabilityPlatformModel.PincodeCodStatusListingDetails} body
|
|
213
|
+
* @property {ServiceabilityPlatformModel.PincodeCodStatusListingRequest} body
|
|
94
214
|
*/
|
|
95
215
|
|
|
96
216
|
/**
|
|
@@ -98,11 +218,16 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
98
218
|
* @property {ServiceabilityPlatformModel.PincodeMopData} body
|
|
99
219
|
*/
|
|
100
220
|
|
|
221
|
+
/**
|
|
222
|
+
* @typedef UpdateStoreRulePriorityParam
|
|
223
|
+
* @property {ServiceabilityPlatformModel.RulePriorityRequest} body
|
|
224
|
+
*/
|
|
225
|
+
|
|
101
226
|
/**
|
|
102
227
|
* @typedef UpdateStoreRulesParam
|
|
103
228
|
* @property {string} ruleUid - A `rule_uid` is a unique identifier for a
|
|
104
229
|
* particular rule object.
|
|
105
|
-
* @property {ServiceabilityPlatformModel.
|
|
230
|
+
* @property {ServiceabilityPlatformModel.CreateStoreRuleRequestSchema} body
|
|
106
231
|
*/
|
|
107
232
|
|
|
108
233
|
/**
|
|
@@ -110,7 +235,34 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
110
235
|
* @property {ServiceabilityPlatformModel.StoreRuleConfigData} body
|
|
111
236
|
*/
|
|
112
237
|
|
|
238
|
+
/**
|
|
239
|
+
* @typedef UpdateZoneParam
|
|
240
|
+
* @property {string} zoneId - Unique identifier for a particular zone
|
|
241
|
+
* @property {ServiceabilityPlatformModel.UpdateZoneDataV2} body
|
|
242
|
+
*/
|
|
243
|
+
|
|
113
244
|
class ServiceabilityPlatformApplicationValidator {
|
|
245
|
+
/** @returns {CreateBulkExportParam} */
|
|
246
|
+
static createBulkExport() {
|
|
247
|
+
return Joi.object({
|
|
248
|
+
body: ServiceabilityPlatformModel.BulkCreateZoneExport().required(),
|
|
249
|
+
}).required();
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** @returns {CreateBulkGeoAreaParam} */
|
|
253
|
+
static createBulkGeoArea() {
|
|
254
|
+
return Joi.object({
|
|
255
|
+
body: ServiceabilityPlatformModel.BulkGeoAreaDetails().required(),
|
|
256
|
+
}).required();
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/** @returns {CreateBulkZoneParam} */
|
|
260
|
+
static createBulkZone() {
|
|
261
|
+
return Joi.object({
|
|
262
|
+
body: ServiceabilityPlatformModel.CreateBulkZoneData().required(),
|
|
263
|
+
}).required();
|
|
264
|
+
}
|
|
265
|
+
|
|
114
266
|
/** @returns {CreateCourierPartnerRuleParam} */
|
|
115
267
|
static createCourierPartnerRule() {
|
|
116
268
|
return Joi.object({
|
|
@@ -118,10 +270,50 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
118
270
|
}).required();
|
|
119
271
|
}
|
|
120
272
|
|
|
273
|
+
/** @returns {CreateGeoAreaParam} */
|
|
274
|
+
static createGeoArea() {
|
|
275
|
+
return Joi.object({
|
|
276
|
+
body: ServiceabilityPlatformModel.GeoAreaRequestBody().required(),
|
|
277
|
+
}).required();
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/** @returns {CreateGeoAreaExportJobParam} */
|
|
281
|
+
static createGeoAreaExportJob() {
|
|
282
|
+
return Joi.object({
|
|
283
|
+
geoareaId: Joi.string().allow("").required(),
|
|
284
|
+
}).required();
|
|
285
|
+
}
|
|
286
|
+
|
|
121
287
|
/** @returns {CreateStoreRulesParam} */
|
|
122
288
|
static createStoreRules() {
|
|
123
289
|
return Joi.object({
|
|
124
|
-
body: ServiceabilityPlatformModel.
|
|
290
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleRequestSchema().required(),
|
|
291
|
+
}).required();
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/** @returns {CreateZoneParam} */
|
|
295
|
+
static createZone() {
|
|
296
|
+
return Joi.object({
|
|
297
|
+
body: ServiceabilityPlatformModel.CreateZoneV2Data().required(),
|
|
298
|
+
}).required();
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/** @returns {DeleteZoneParam} */
|
|
302
|
+
static deleteZone() {
|
|
303
|
+
return Joi.object({
|
|
304
|
+
zoneId: Joi.string().allow("").required(),
|
|
305
|
+
}).required();
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/** @returns {DownloadGeoareaSampleFileParam} */
|
|
309
|
+
static downloadGeoareaSampleFile() {
|
|
310
|
+
return Joi.object({}).required();
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/** @returns {DownloadZoneSampleFileParam} */
|
|
314
|
+
static downloadZoneSampleFile() {
|
|
315
|
+
return Joi.object({
|
|
316
|
+
productType: Joi.string().allow("").required(),
|
|
125
317
|
}).required();
|
|
126
318
|
}
|
|
127
319
|
|
|
@@ -135,15 +327,36 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
135
327
|
return Joi.object({}).required();
|
|
136
328
|
}
|
|
137
329
|
|
|
138
|
-
/** @returns {
|
|
139
|
-
static
|
|
330
|
+
/** @returns {GetBulkExportParam} */
|
|
331
|
+
static getBulkExport() {
|
|
332
|
+
return Joi.object({
|
|
333
|
+
batchId: Joi.string().allow("").required(),
|
|
334
|
+
}).required();
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/** @returns {GetBulkGeoAreaParam} */
|
|
338
|
+
static getBulkGeoArea() {
|
|
339
|
+
return Joi.object({
|
|
340
|
+
geoareaId: Joi.string().allow("").required(),
|
|
341
|
+
}).required();
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/** @returns {GetBulkZoneParam} */
|
|
345
|
+
static getBulkZone() {
|
|
140
346
|
return Joi.object({}).required();
|
|
141
347
|
}
|
|
142
348
|
|
|
143
349
|
/** @returns {GetCourierPartnerRuleParam} */
|
|
144
350
|
static getCourierPartnerRule() {
|
|
145
351
|
return Joi.object({
|
|
146
|
-
|
|
352
|
+
ruleUid: Joi.string().allow("").required(),
|
|
353
|
+
}).required();
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/** @returns {GetCourierPartnerRuleDetailsParam} */
|
|
357
|
+
static getCourierPartnerRuleDetails() {
|
|
358
|
+
return Joi.object({
|
|
359
|
+
ruleUid: Joi.string().allow("").required(),
|
|
147
360
|
}).required();
|
|
148
361
|
}
|
|
149
362
|
|
|
@@ -156,10 +369,33 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
156
369
|
}).required();
|
|
157
370
|
}
|
|
158
371
|
|
|
159
|
-
/** @returns {
|
|
160
|
-
static
|
|
372
|
+
/** @returns {GetGeoAreaParam} */
|
|
373
|
+
static getGeoArea() {
|
|
374
|
+
return Joi.object({
|
|
375
|
+
geoareaId: Joi.string().allow("").required(),
|
|
376
|
+
}).required();
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/** @returns {GetGeoAreaExportJobStatusParam} */
|
|
380
|
+
static getGeoAreaExportJobStatus() {
|
|
161
381
|
return Joi.object({
|
|
162
|
-
|
|
382
|
+
geoareaId: Joi.string().allow("").required(),
|
|
383
|
+
}).required();
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/** @returns {GetGeoAreasParam} */
|
|
387
|
+
static getGeoAreas() {
|
|
388
|
+
return Joi.object({
|
|
389
|
+
pageSize: Joi.number(),
|
|
390
|
+
isActive: Joi.boolean(),
|
|
391
|
+
pageNo: Joi.number(),
|
|
392
|
+
type: Joi.string().allow(""),
|
|
393
|
+
q: Joi.string().allow(""),
|
|
394
|
+
countryIsoCode: Joi.string().allow(""),
|
|
395
|
+
state: Joi.string().allow(""),
|
|
396
|
+
city: Joi.string().allow(""),
|
|
397
|
+
pincode: Joi.string().allow(""),
|
|
398
|
+
sector: Joi.string().allow(""),
|
|
163
399
|
}).required();
|
|
164
400
|
}
|
|
165
401
|
|
|
@@ -170,6 +406,13 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
170
406
|
}).required();
|
|
171
407
|
}
|
|
172
408
|
|
|
409
|
+
/** @returns {GetStoreRuleDetailsParam} */
|
|
410
|
+
static getStoreRuleDetails() {
|
|
411
|
+
return Joi.object({
|
|
412
|
+
ruleUid: Joi.string().allow("").required(),
|
|
413
|
+
}).required();
|
|
414
|
+
}
|
|
415
|
+
|
|
173
416
|
/** @returns {GetStoreRulesParam} */
|
|
174
417
|
static getStoreRules() {
|
|
175
418
|
return Joi.object({
|
|
@@ -179,6 +422,39 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
179
422
|
}).required();
|
|
180
423
|
}
|
|
181
424
|
|
|
425
|
+
/** @returns {GetZoneParam} */
|
|
426
|
+
static getZone() {
|
|
427
|
+
return Joi.object({
|
|
428
|
+
zoneId: Joi.string().allow("").required(),
|
|
429
|
+
}).required();
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/** @returns {GetZoneDetailsParam} */
|
|
433
|
+
static getZoneDetails() {
|
|
434
|
+
return Joi.object({
|
|
435
|
+
zoneId: Joi.string().allow("").required(),
|
|
436
|
+
}).required();
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/** @returns {GetZonesParam} */
|
|
440
|
+
static getZones() {
|
|
441
|
+
return Joi.object({
|
|
442
|
+
stage: Joi.string().allow(""),
|
|
443
|
+
type: Joi.string().allow(""),
|
|
444
|
+
accessLevel: Joi.string().allow(""),
|
|
445
|
+
status: Joi.string().allow(""),
|
|
446
|
+
pageSize: Joi.number(),
|
|
447
|
+
pageNo: Joi.number(),
|
|
448
|
+
isActive: Joi.boolean(),
|
|
449
|
+
q: Joi.string().allow(""),
|
|
450
|
+
countryIsoCode: Joi.string().allow(""),
|
|
451
|
+
pincode: Joi.string().allow(""),
|
|
452
|
+
state: Joi.string().allow(""),
|
|
453
|
+
city: Joi.string().allow(""),
|
|
454
|
+
sector: Joi.string().allow(""),
|
|
455
|
+
}).required();
|
|
456
|
+
}
|
|
457
|
+
|
|
182
458
|
/** @returns {InsertApplicationConfigParam} */
|
|
183
459
|
static insertApplicationConfig() {
|
|
184
460
|
return Joi.object({
|
|
@@ -186,41 +462,56 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
186
462
|
}).required();
|
|
187
463
|
}
|
|
188
464
|
|
|
189
|
-
/** @returns {
|
|
190
|
-
static
|
|
465
|
+
/** @returns {PatchApplicationConfigurationParam} */
|
|
466
|
+
static patchApplicationConfiguration() {
|
|
191
467
|
return Joi.object({
|
|
192
|
-
body: ServiceabilityPlatformModel.
|
|
468
|
+
body: ServiceabilityPlatformModel.ApplicationConfigPatchRequest().required(),
|
|
193
469
|
}).required();
|
|
194
470
|
}
|
|
195
471
|
|
|
196
472
|
/** @returns {UpdateApplicationConfigurationParam} */
|
|
197
473
|
static updateApplicationConfiguration() {
|
|
198
474
|
return Joi.object({
|
|
199
|
-
body: ServiceabilityPlatformModel.
|
|
475
|
+
body: ServiceabilityPlatformModel.ApplicationConfigPutRequest().required(),
|
|
476
|
+
}).required();
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/** @returns {UpdateBulkGeoAreaParam} */
|
|
480
|
+
static updateBulkGeoArea() {
|
|
481
|
+
return Joi.object({
|
|
482
|
+
geoareaId: Joi.string().allow("").required(),
|
|
483
|
+
body: ServiceabilityPlatformModel.BulkGeoAreaDetails().required(),
|
|
200
484
|
}).required();
|
|
201
485
|
}
|
|
202
486
|
|
|
203
487
|
/** @returns {UpdateCourierPartnerRulePriorityParam} */
|
|
204
488
|
static updateCourierPartnerRulePriority() {
|
|
205
489
|
return Joi.object({
|
|
206
|
-
body: ServiceabilityPlatformModel.
|
|
490
|
+
body: ServiceabilityPlatformModel.RulePriorityRequest().required(),
|
|
207
491
|
}).required();
|
|
208
492
|
}
|
|
209
493
|
|
|
210
494
|
/** @returns {UpdateCourierRuleParam} */
|
|
211
495
|
static updateCourierRule() {
|
|
212
496
|
return Joi.object({
|
|
213
|
-
|
|
497
|
+
ruleUid: Joi.string().allow("").required(),
|
|
214
498
|
body: ServiceabilityPlatformModel.CourierPartnerRule().required(),
|
|
215
499
|
}).required();
|
|
216
500
|
}
|
|
217
501
|
|
|
502
|
+
/** @returns {UpdateGeoAreaParam} */
|
|
503
|
+
static updateGeoArea() {
|
|
504
|
+
return Joi.object({
|
|
505
|
+
geoareaId: Joi.string().allow("").required(),
|
|
506
|
+
|
|
507
|
+
body: ServiceabilityPlatformModel.GeoAreaRequestBody().required(),
|
|
508
|
+
}).required();
|
|
509
|
+
}
|
|
510
|
+
|
|
218
511
|
/** @returns {UpdatePincodeAuditHistoryParam} */
|
|
219
512
|
static updatePincodeAuditHistory() {
|
|
220
513
|
return Joi.object({
|
|
221
|
-
|
|
222
|
-
pageSize: Joi.number(),
|
|
223
|
-
body: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryDetails().required(),
|
|
514
|
+
body: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryRequest().required(),
|
|
224
515
|
}).required();
|
|
225
516
|
}
|
|
226
517
|
|
|
@@ -234,9 +525,7 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
234
525
|
/** @returns {UpdatePincodeCoDListingParam} */
|
|
235
526
|
static updatePincodeCoDListing() {
|
|
236
527
|
return Joi.object({
|
|
237
|
-
|
|
238
|
-
pageSize: Joi.number(),
|
|
239
|
-
body: ServiceabilityPlatformModel.PincodeCodStatusListingDetails().required(),
|
|
528
|
+
body: ServiceabilityPlatformModel.PincodeCodStatusListingRequest().required(),
|
|
240
529
|
}).required();
|
|
241
530
|
}
|
|
242
531
|
|
|
@@ -247,11 +536,18 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
247
536
|
}).required();
|
|
248
537
|
}
|
|
249
538
|
|
|
539
|
+
/** @returns {UpdateStoreRulePriorityParam} */
|
|
540
|
+
static updateStoreRulePriority() {
|
|
541
|
+
return Joi.object({
|
|
542
|
+
body: ServiceabilityPlatformModel.RulePriorityRequest().required(),
|
|
543
|
+
}).required();
|
|
544
|
+
}
|
|
545
|
+
|
|
250
546
|
/** @returns {UpdateStoreRulesParam} */
|
|
251
547
|
static updateStoreRules() {
|
|
252
548
|
return Joi.object({
|
|
253
549
|
ruleUid: Joi.string().allow("").required(),
|
|
254
|
-
body: ServiceabilityPlatformModel.
|
|
550
|
+
body: ServiceabilityPlatformModel.CreateStoreRuleRequestSchema().required(),
|
|
255
551
|
}).required();
|
|
256
552
|
}
|
|
257
553
|
|
|
@@ -261,6 +557,15 @@ class ServiceabilityPlatformApplicationValidator {
|
|
|
261
557
|
body: ServiceabilityPlatformModel.StoreRuleConfigData().required(),
|
|
262
558
|
}).required();
|
|
263
559
|
}
|
|
560
|
+
|
|
561
|
+
/** @returns {UpdateZoneParam} */
|
|
562
|
+
static updateZone() {
|
|
563
|
+
return Joi.object({
|
|
564
|
+
zoneId: Joi.string().allow("").required(),
|
|
565
|
+
|
|
566
|
+
body: ServiceabilityPlatformModel.UpdateZoneDataV2().required(),
|
|
567
|
+
}).required();
|
|
568
|
+
}
|
|
264
569
|
}
|
|
265
570
|
|
|
266
571
|
module.exports = ServiceabilityPlatformApplicationValidator;
|