@gofynd/fdk-client-javascript 1.1.6 → 1.2.0
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 +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,6 +1,751 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef AddressResponse
|
|
5
|
+
* @property {string} [address1]
|
|
6
|
+
* @property {string} [address2]
|
|
7
|
+
* @property {string} [city]
|
|
8
|
+
* @property {string} [country]
|
|
9
|
+
* @property {string} [landmark]
|
|
10
|
+
* @property {number} [latitude]
|
|
11
|
+
* @property {number} [longitude]
|
|
12
|
+
* @property {number} [pincode]
|
|
13
|
+
* @property {string} [state]
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @typedef ApplicationCompanyDpViewRequest
|
|
18
|
+
* @property {string} [dp_id]
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @typedef ApplicationCompanyDpViewResponse
|
|
23
|
+
* @property {string} application_id
|
|
24
|
+
* @property {number} company_id
|
|
25
|
+
* @property {number} [courier_partner_id]
|
|
26
|
+
* @property {boolean} success
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @typedef ApplicationSelfShipConfig
|
|
31
|
+
* @property {SelfShipResponse} [self_ship]
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @typedef ApplicationSelfShipConfigResponse
|
|
36
|
+
* @property {ApplicationSelfShipConfig} [data]
|
|
37
|
+
* @property {ServiceabilityErrorResponse} [error]
|
|
38
|
+
* @property {boolean} success
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @typedef ApplicationServiceabilityConfig
|
|
43
|
+
* @property {string} channel_id
|
|
44
|
+
* @property {string} channel_type
|
|
45
|
+
* @property {string} serviceability_type
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @typedef ApplicationServiceabilityConfigResponse
|
|
50
|
+
* @property {ApplicationServiceabilityConfig} [data]
|
|
51
|
+
* @property {ServiceabilityErrorResponse} [error]
|
|
52
|
+
* @property {boolean} success
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @typedef CommonError
|
|
57
|
+
* @property {Object} [error]
|
|
58
|
+
* @property {string} [status_code]
|
|
59
|
+
* @property {string} [success]
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @typedef CompanyDpAccountListResponse
|
|
64
|
+
* @property {Dp1[]} items
|
|
65
|
+
* @property {Page} page
|
|
66
|
+
* @property {boolean} success
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @typedef CompanyDpAccountRequest
|
|
71
|
+
* @property {Dp1[]} data
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @typedef CompanyDpAccountResponse
|
|
76
|
+
* @property {boolean} success
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @typedef CompanyStoreView_PageItems
|
|
81
|
+
* @property {number} current
|
|
82
|
+
* @property {boolean} has_next
|
|
83
|
+
* @property {number} item_total
|
|
84
|
+
* @property {number} size
|
|
85
|
+
* @property {string} type
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @typedef CompanyStoreView_Response
|
|
90
|
+
* @property {Object[]} [items]
|
|
91
|
+
* @property {CompanyStoreView_PageItems[]} page
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @typedef ContactNumberResponse
|
|
96
|
+
* @property {number} [country_code]
|
|
97
|
+
* @property {string} [number]
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @typedef CreatedByResponse
|
|
102
|
+
* @property {string} [user_id]
|
|
103
|
+
* @property {string} [username]
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @typedef CreateZoneData
|
|
108
|
+
* @property {string} [assignment_preference]
|
|
109
|
+
* @property {GetZoneDataViewChannels[]} channels
|
|
110
|
+
* @property {number} company_id
|
|
111
|
+
* @property {boolean} is_active
|
|
112
|
+
* @property {ZoneMappingType[]} mapping
|
|
113
|
+
* @property {string} name
|
|
114
|
+
* @property {ZoneProductTypes} product
|
|
115
|
+
* @property {string} region_type
|
|
116
|
+
* @property {string} slug
|
|
117
|
+
* @property {number[]} store_ids
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @typedef DocumentsResponse
|
|
122
|
+
* @property {string} [legal_name]
|
|
123
|
+
* @property {string} [type]
|
|
124
|
+
* @property {string} [value]
|
|
125
|
+
* @property {boolean} [verified]
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @typedef Dp
|
|
130
|
+
* @property {number} [area_code]
|
|
131
|
+
* @property {boolean} [assign_dp_from_sb]
|
|
132
|
+
* @property {string} [external_account_id]
|
|
133
|
+
* @property {number} [fm_priority]
|
|
134
|
+
* @property {string} [internal_account_id]
|
|
135
|
+
* @property {number} [lm_priority]
|
|
136
|
+
* @property {string[]} [operations]
|
|
137
|
+
* @property {string} [payment_mode]
|
|
138
|
+
* @property {number} [rvp_priority]
|
|
139
|
+
* @property {string} [transport_mode]
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @typedef Dp1
|
|
144
|
+
* @property {string} account_id
|
|
145
|
+
* @property {string} dp_id
|
|
146
|
+
* @property {boolean} is_self_ship
|
|
147
|
+
* @property {string} name
|
|
148
|
+
* @property {string} plan_id
|
|
149
|
+
* @property {Object} plan_rules
|
|
150
|
+
* @property {string} stage
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @typedef DpAccountFailureResponse
|
|
155
|
+
* @property {ErrorResponse[]} error
|
|
156
|
+
* @property {number} status_code
|
|
157
|
+
* @property {boolean} success
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @typedef DPApplicationRuleRequest
|
|
162
|
+
* @property {string[]} shipping_rules
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @typedef DPApplicationRuleResponse
|
|
167
|
+
* @property {DpRuleResponse[]} data
|
|
168
|
+
* @property {boolean} status_code
|
|
169
|
+
* @property {boolean} success
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @typedef DPCompanyRuleRequest
|
|
174
|
+
* @property {string[]} rule_ids
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @typedef DPCompanyRuleResponse
|
|
179
|
+
* @property {DpRuleResponse[]} data
|
|
180
|
+
* @property {number} status_code
|
|
181
|
+
* @property {boolean} success
|
|
182
|
+
*/
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @typedef DpIds
|
|
186
|
+
* @property {boolean} enabled
|
|
187
|
+
* @property {Object} [meta]
|
|
188
|
+
* @property {number} priority
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @typedef DpMultipleRuleSuccessResponse
|
|
193
|
+
* @property {DpRule[]} items
|
|
194
|
+
* @property {Page} page
|
|
195
|
+
* @property {boolean} success
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @typedef DpRule
|
|
200
|
+
* @property {number} [company_id]
|
|
201
|
+
* @property {Object[]} conditions
|
|
202
|
+
* @property {Object} dp_ids
|
|
203
|
+
* @property {boolean} [is_active]
|
|
204
|
+
* @property {string} name
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @typedef DpRuleRequest
|
|
209
|
+
* @property {number} [company_id]
|
|
210
|
+
* @property {Object[]} conditions
|
|
211
|
+
* @property {Object} dp_ids
|
|
212
|
+
* @property {boolean} [is_active]
|
|
213
|
+
* @property {string} name
|
|
214
|
+
*/
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @typedef DpRuleResponse
|
|
218
|
+
* @property {number} company_id
|
|
219
|
+
* @property {string[]} conditions
|
|
220
|
+
* @property {Object} [created_by]
|
|
221
|
+
* @property {string} [created_on]
|
|
222
|
+
* @property {Object} dp_ids
|
|
223
|
+
* @property {boolean} [is_active]
|
|
224
|
+
* @property {Object} [modified_by]
|
|
225
|
+
* @property {string} [modified_on]
|
|
226
|
+
* @property {string} name
|
|
227
|
+
* @property {string} uid
|
|
228
|
+
*/
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @typedef DpRuleSuccessResponse
|
|
232
|
+
* @property {DpRule} data
|
|
233
|
+
* @property {number} status_code
|
|
234
|
+
* @property {boolean} success
|
|
235
|
+
*/
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @typedef DpRulesUpdateRequest
|
|
239
|
+
* @property {Object[]} conditions
|
|
240
|
+
* @property {Object} dp_ids
|
|
241
|
+
* @property {boolean} is_active
|
|
242
|
+
* @property {string} name
|
|
243
|
+
*/
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @typedef DpRuleUpdateSuccessResponse
|
|
247
|
+
* @property {DpRuleResponse} data
|
|
248
|
+
* @property {number} status_code
|
|
249
|
+
* @property {boolean} success
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @typedef DpSchemaInRuleListing
|
|
254
|
+
* @property {string} account_id
|
|
255
|
+
* @property {string} dp_id
|
|
256
|
+
* @property {boolean} is_self_ship
|
|
257
|
+
* @property {string} name
|
|
258
|
+
* @property {string} plan_id
|
|
259
|
+
* @property {Object} plan_rules
|
|
260
|
+
* @property {number} priority
|
|
261
|
+
* @property {string} stage
|
|
262
|
+
*/
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @typedef EinvoiceResponse
|
|
266
|
+
* @property {boolean} [enabled]
|
|
267
|
+
*/
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* @typedef EntityRegionView_Error
|
|
271
|
+
* @property {string} [message]
|
|
272
|
+
* @property {string} [type]
|
|
273
|
+
* @property {string} [value]
|
|
274
|
+
*/
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @typedef EntityRegionView_Items
|
|
278
|
+
* @property {string} [display_name]
|
|
279
|
+
* @property {string} name
|
|
280
|
+
* @property {string} sub_type
|
|
281
|
+
* @property {string} uid
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @typedef EntityRegionView_page
|
|
286
|
+
* @property {number} current
|
|
287
|
+
* @property {boolean} has_next
|
|
288
|
+
* @property {number} item_total
|
|
289
|
+
* @property {number} size
|
|
290
|
+
* @property {string} type
|
|
291
|
+
*/
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @typedef EntityRegionView_Request
|
|
295
|
+
* @property {string[]} [parent_id]
|
|
296
|
+
* @property {string[]} sub_type
|
|
297
|
+
*/
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @typedef EntityRegionView_Response
|
|
301
|
+
* @property {EntityRegionView_Error} error
|
|
302
|
+
* @property {EntityRegionView_Items[]} [items]
|
|
303
|
+
* @property {EntityRegionView_page} page
|
|
304
|
+
* @property {boolean} success
|
|
305
|
+
*/
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @typedef Error
|
|
309
|
+
* @property {string} [message]
|
|
310
|
+
* @property {string} [type]
|
|
311
|
+
* @property {string} [value]
|
|
312
|
+
*/
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @typedef ErrorResponse
|
|
316
|
+
* @property {string} message
|
|
317
|
+
* @property {string} type
|
|
318
|
+
* @property {string} value
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @typedef EwayBillResponse
|
|
323
|
+
* @property {boolean} [enabled]
|
|
324
|
+
*/
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* @typedef FailureResponse
|
|
328
|
+
* @property {ErrorResponse[]} error
|
|
329
|
+
* @property {number} status_code
|
|
330
|
+
* @property {boolean} success
|
|
331
|
+
*/
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @typedef GetSingleZoneDataViewResponse
|
|
335
|
+
* @property {GetZoneDataViewItems} data
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @typedef GetStoresViewResponse
|
|
340
|
+
* @property {ItemResponse[]} [items]
|
|
341
|
+
* @property {ServiceabilityPageResponse} page
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @typedef GetZoneDataViewChannels
|
|
346
|
+
* @property {string} channel_id
|
|
347
|
+
* @property {string} channel_type
|
|
348
|
+
*/
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @typedef GetZoneDataViewItems
|
|
352
|
+
* @property {string} [assignment_preference]
|
|
353
|
+
* @property {GetZoneDataViewChannels[]} channels
|
|
354
|
+
* @property {number} [company_id]
|
|
355
|
+
* @property {boolean} is_active
|
|
356
|
+
* @property {ZoneMappingType[]} mapping
|
|
357
|
+
* @property {string} name
|
|
358
|
+
* @property {number} pincodes_count
|
|
359
|
+
* @property {ZoneProductTypes} product
|
|
360
|
+
* @property {string} region_type
|
|
361
|
+
* @property {string} slug
|
|
362
|
+
* @property {number[]} store_ids
|
|
363
|
+
* @property {number} stores_count
|
|
364
|
+
* @property {string} zone_id
|
|
365
|
+
*/
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @typedef GetZoneFromApplicationIdViewResponse
|
|
369
|
+
* @property {ListViewItems[]} items
|
|
370
|
+
* @property {ZoneDataItem[]} page
|
|
371
|
+
*/
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @typedef GetZoneFromPincodeViewRequest
|
|
375
|
+
* @property {string} country
|
|
376
|
+
* @property {string} pincode
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* @typedef GetZoneFromPincodeViewResponse
|
|
381
|
+
* @property {string} serviceability_type
|
|
382
|
+
* @property {Zone[]} zones
|
|
383
|
+
*/
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @typedef GstCredentialsResponse
|
|
387
|
+
* @property {EinvoiceResponse} [e_invoice]
|
|
388
|
+
* @property {EwayBillResponse} [e_waybill]
|
|
389
|
+
*/
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @typedef IntegrationTypeResponse
|
|
393
|
+
* @property {string} [inventory]
|
|
394
|
+
* @property {string} [order]
|
|
395
|
+
*/
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @typedef ItemResponse
|
|
399
|
+
* @property {string} [_cls]
|
|
400
|
+
* @property {Object} [_custom_json]
|
|
401
|
+
* @property {AddressResponse} [address]
|
|
402
|
+
* @property {string} [code]
|
|
403
|
+
* @property {number} [company]
|
|
404
|
+
* @property {number} [company_id]
|
|
405
|
+
* @property {ContactNumberResponse[]} [contact_numbers]
|
|
406
|
+
* @property {CreatedByResponse} [created_by]
|
|
407
|
+
* @property {string} [created_on]
|
|
408
|
+
* @property {string} [display_name]
|
|
409
|
+
* @property {DocumentsResponse[]} [documents]
|
|
410
|
+
* @property {GstCredentialsResponse} [gst_credentials]
|
|
411
|
+
* @property {IntegrationTypeResponse} [integration_type]
|
|
412
|
+
* @property {LogisticsResponse} [logistics]
|
|
413
|
+
* @property {ManagerResponse} [manager]
|
|
414
|
+
* @property {ModifiedByResponse} [modified_by]
|
|
415
|
+
* @property {string} [modified_on]
|
|
416
|
+
* @property {string} [name]
|
|
417
|
+
* @property {string[]} [notification_emails]
|
|
418
|
+
* @property {ProductReturnConfigResponse} [product_return_config]
|
|
419
|
+
* @property {string} [stage]
|
|
420
|
+
* @property {string} [store_type]
|
|
421
|
+
* @property {string} [sub_type]
|
|
422
|
+
* @property {TimmingResponse[]} [timing]
|
|
423
|
+
* @property {number} [uid]
|
|
424
|
+
* @property {ModifiedByResponse} [verified_by]
|
|
425
|
+
* @property {string} [verified_on]
|
|
426
|
+
* @property {WarningsResponse} [warnings]
|
|
427
|
+
*/
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @typedef ListViewChannels
|
|
431
|
+
* @property {string} channel_id
|
|
432
|
+
* @property {string} channel_type
|
|
433
|
+
*/
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* @typedef ListViewItems
|
|
437
|
+
* @property {ListViewChannels[]} channels
|
|
438
|
+
* @property {number} company_id
|
|
439
|
+
* @property {boolean} is_active
|
|
440
|
+
* @property {string} name
|
|
441
|
+
* @property {number} pincodes_count
|
|
442
|
+
* @property {ListViewProduct} product
|
|
443
|
+
* @property {string} slug
|
|
444
|
+
* @property {number} stores_count
|
|
445
|
+
* @property {string} zone_id
|
|
446
|
+
*/
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* @typedef ListViewProduct
|
|
450
|
+
* @property {number} count
|
|
451
|
+
* @property {string} type
|
|
452
|
+
*/
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @typedef ListViewResponse
|
|
456
|
+
* @property {ListViewItems[]} items
|
|
457
|
+
* @property {ZoneDataItem} page
|
|
458
|
+
* @property {ListViewSummary} summary
|
|
459
|
+
*/
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* @typedef ListViewSummary
|
|
463
|
+
* @property {number} total_active_zones
|
|
464
|
+
* @property {number} total_pincodes_served
|
|
465
|
+
* @property {number} total_zones
|
|
466
|
+
*/
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* @typedef LogisticsResponse
|
|
470
|
+
* @property {Dp} [dp]
|
|
471
|
+
* @property {boolean} [override]
|
|
472
|
+
*/
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* @typedef ManagerResponse
|
|
476
|
+
* @property {string} [email]
|
|
477
|
+
* @property {MobileNo} [mobile_no]
|
|
478
|
+
* @property {string} [name]
|
|
479
|
+
*/
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* @typedef MobileNo
|
|
483
|
+
* @property {number} [country_code]
|
|
484
|
+
* @property {string} [number]
|
|
485
|
+
*/
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* @typedef ModifiedByResponse
|
|
489
|
+
* @property {string} [user_id]
|
|
490
|
+
* @property {string} [username]
|
|
491
|
+
*/
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* @typedef OpeningClosing
|
|
495
|
+
* @property {number} [hour]
|
|
496
|
+
* @property {number} [minute]
|
|
497
|
+
*/
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* @typedef Page
|
|
501
|
+
* @property {number} [current]
|
|
502
|
+
* @property {boolean} [has_next]
|
|
503
|
+
* @property {boolean} [has_previous]
|
|
504
|
+
* @property {number} [item_total]
|
|
505
|
+
* @property {string} [next_id]
|
|
506
|
+
* @property {number} [size]
|
|
507
|
+
* @property {string} type
|
|
508
|
+
*/
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* @typedef PincodeBulkViewResponse
|
|
512
|
+
* @property {string} batch_id
|
|
513
|
+
* @property {string} s3_url
|
|
514
|
+
*/
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* @typedef PincodeCodStatusListingPage
|
|
518
|
+
* @property {number} current
|
|
519
|
+
* @property {boolean} has_next
|
|
520
|
+
* @property {number} item_total
|
|
521
|
+
* @property {number} size
|
|
522
|
+
* @property {string} type
|
|
523
|
+
*/
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @typedef PincodeCodStatusListingRequest
|
|
527
|
+
* @property {string} [country]
|
|
528
|
+
* @property {number} [current]
|
|
529
|
+
* @property {boolean} [is_active]
|
|
530
|
+
* @property {number} [page_size]
|
|
531
|
+
* @property {number} [pincode]
|
|
532
|
+
*/
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* @typedef PincodeCodStatusListingResponse
|
|
536
|
+
* @property {string} country
|
|
537
|
+
* @property {PincodeCodStatusListingResponse[]} data
|
|
538
|
+
* @property {Error[]} [errors]
|
|
539
|
+
* @property {PincodeCodStatusListingPage} page
|
|
540
|
+
* @property {boolean} success
|
|
541
|
+
* @property {PincodeCodStatusListingSummary} summary
|
|
542
|
+
*/
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* @typedef PincodeCodStatusListingSummary
|
|
546
|
+
* @property {number} total_active_pincodes
|
|
547
|
+
* @property {number} total_inactive_pincodes
|
|
548
|
+
*/
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* @typedef PincodeMopBulkData
|
|
552
|
+
* @property {string} batch_id
|
|
553
|
+
* @property {string} s3_url
|
|
554
|
+
*/
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* @typedef PincodeMopData
|
|
558
|
+
* @property {string} action
|
|
559
|
+
* @property {string} country
|
|
560
|
+
* @property {number[]} pincodes
|
|
561
|
+
*/
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* @typedef PincodeMOPresponse
|
|
565
|
+
* @property {string} action
|
|
566
|
+
* @property {string} batch_id
|
|
567
|
+
* @property {string} country
|
|
568
|
+
* @property {number[]} [pincodes]
|
|
569
|
+
* @property {number} status_code
|
|
570
|
+
* @property {boolean} success
|
|
571
|
+
* @property {PincodeMopUpdateResponse[]} [updated_pincodes]
|
|
572
|
+
*/
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* @typedef PincodeMopUpdateAuditHistoryPaging
|
|
576
|
+
* @property {number} [current]
|
|
577
|
+
* @property {boolean} [has_next]
|
|
578
|
+
* @property {number} [item_total]
|
|
579
|
+
* @property {number} [size]
|
|
580
|
+
* @property {string} [type]
|
|
581
|
+
*/
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* @typedef PincodeMopUpdateAuditHistoryRequest
|
|
585
|
+
* @property {string} entity_type
|
|
586
|
+
* @property {string} [file_name]
|
|
587
|
+
*/
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* @typedef PincodeMopUpdateAuditHistoryResponse
|
|
591
|
+
* @property {string} [batch_id]
|
|
592
|
+
* @property {string} [entity_type]
|
|
593
|
+
* @property {string} [error_file_s3_url]
|
|
594
|
+
* @property {string} [file_name]
|
|
595
|
+
* @property {string} [s3_url]
|
|
596
|
+
* @property {boolean} [success]
|
|
597
|
+
* @property {string} [updated_at]
|
|
598
|
+
* @property {string} [updated_by]
|
|
599
|
+
*/
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* @typedef PincodeMopUpdateAuditHistoryResponseData
|
|
603
|
+
* @property {PincodeMopUpdateAuditHistoryResponse[]} data
|
|
604
|
+
* @property {string} [entity_type]
|
|
605
|
+
* @property {PincodeMopUpdateAuditHistoryPaging} page
|
|
606
|
+
*/
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* @typedef PincodeMopUpdateResponse
|
|
610
|
+
* @property {string} channel_id
|
|
611
|
+
* @property {string} country
|
|
612
|
+
* @property {boolean} is_active
|
|
613
|
+
* @property {number} pincode
|
|
614
|
+
*/
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* @typedef ProductReturnConfigResponse
|
|
618
|
+
* @property {boolean} [on_same_store]
|
|
619
|
+
*/
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* @typedef ReAssignStoreRequest
|
|
623
|
+
* @property {Object[]} articles
|
|
624
|
+
* @property {Object} configuration
|
|
625
|
+
* @property {string} identifier
|
|
626
|
+
* @property {string[]} ignored_locations
|
|
627
|
+
* @property {string} to_pincode
|
|
628
|
+
*/
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* @typedef ReAssignStoreResponse
|
|
632
|
+
* @property {Object[]} [articles]
|
|
633
|
+
* @property {Object} error
|
|
634
|
+
* @property {boolean} success
|
|
635
|
+
* @property {string} to_pincode
|
|
636
|
+
*/
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* @typedef SelfShipResponse
|
|
640
|
+
* @property {boolean} is_active
|
|
641
|
+
* @property {number} tat
|
|
642
|
+
*/
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* @typedef ServiceabilityErrorResponse
|
|
646
|
+
* @property {string} message
|
|
647
|
+
* @property {string} type
|
|
648
|
+
* @property {string} value
|
|
649
|
+
*/
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* @typedef ServiceabilityPageResponse
|
|
653
|
+
* @property {number} [current]
|
|
654
|
+
* @property {boolean} [has_next]
|
|
655
|
+
* @property {number} [item_total]
|
|
656
|
+
* @property {number} [size]
|
|
657
|
+
* @property {string} [type]
|
|
658
|
+
*/
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* @typedef TimmingResponse
|
|
662
|
+
* @property {OpeningClosing} [closing]
|
|
663
|
+
* @property {boolean} [open]
|
|
664
|
+
* @property {OpeningClosing} [opening]
|
|
665
|
+
* @property {string} [weekday]
|
|
666
|
+
*/
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* @typedef UpdateZoneData
|
|
670
|
+
* @property {string} [assignment_preference]
|
|
671
|
+
* @property {GetZoneDataViewChannels[]} channels
|
|
672
|
+
* @property {number} company_id
|
|
673
|
+
* @property {boolean} is_active
|
|
674
|
+
* @property {ZoneMappingType[]} mapping
|
|
675
|
+
* @property {string} name
|
|
676
|
+
* @property {ZoneProductTypes} product
|
|
677
|
+
* @property {string} region_type
|
|
678
|
+
* @property {string} slug
|
|
679
|
+
* @property {number[]} store_ids
|
|
680
|
+
* @property {string} zone_id
|
|
681
|
+
*/
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* @typedef WarningsResponse
|
|
685
|
+
* @property {string} [store_address]
|
|
686
|
+
*/
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* @typedef Zone
|
|
690
|
+
* @property {string} assignment_preference
|
|
691
|
+
* @property {boolean} is_active
|
|
692
|
+
* @property {string} name
|
|
693
|
+
* @property {string} slug
|
|
694
|
+
* @property {number[]} store_ids
|
|
695
|
+
* @property {string[]} tags
|
|
696
|
+
* @property {string} type
|
|
697
|
+
* @property {string} zone_id
|
|
698
|
+
*/
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* @typedef ZoneDataItem
|
|
702
|
+
* @property {number} current
|
|
703
|
+
* @property {boolean} has_next
|
|
704
|
+
* @property {number} item_total
|
|
705
|
+
* @property {number} size
|
|
706
|
+
* @property {string} type
|
|
707
|
+
*/
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* @typedef ZoneMappingType
|
|
711
|
+
* @property {string} country
|
|
712
|
+
* @property {string[]} [pincode]
|
|
713
|
+
* @property {string[]} [state]
|
|
714
|
+
*/
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* @typedef ZoneProductTypes
|
|
718
|
+
* @property {string[]} tags
|
|
719
|
+
* @property {string} type
|
|
720
|
+
*/
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* @typedef ZoneRequest
|
|
724
|
+
* @property {CreateZoneData} data
|
|
725
|
+
* @property {string} identifier
|
|
726
|
+
*/
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* @typedef ZoneResponse
|
|
730
|
+
* @property {number} status_code
|
|
731
|
+
* @property {boolean} success
|
|
732
|
+
* @property {string} zone_id
|
|
733
|
+
*/
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* @typedef ZoneSuccessResponse
|
|
737
|
+
* @property {number} status_code
|
|
738
|
+
* @property {boolean} success
|
|
739
|
+
*/
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* @typedef ZoneUpdateRequest
|
|
743
|
+
* @property {UpdateZoneData} data
|
|
744
|
+
* @property {string} identifier
|
|
745
|
+
*/
|
|
746
|
+
|
|
747
|
+
class ServiceabilityPlatformModel {
|
|
748
|
+
/** @returns {AddressResponse} */
|
|
4
749
|
static AddressResponse() {
|
|
5
750
|
return Joi.object({
|
|
6
751
|
address1: Joi.string().allow(""),
|
|
@@ -14,11 +759,15 @@ class ServiceabilityModel {
|
|
|
14
759
|
state: Joi.string().allow(""),
|
|
15
760
|
});
|
|
16
761
|
}
|
|
762
|
+
|
|
763
|
+
/** @returns {ApplicationCompanyDpViewRequest} */
|
|
17
764
|
static ApplicationCompanyDpViewRequest() {
|
|
18
765
|
return Joi.object({
|
|
19
766
|
dp_id: Joi.string().allow(""),
|
|
20
767
|
});
|
|
21
768
|
}
|
|
769
|
+
|
|
770
|
+
/** @returns {ApplicationCompanyDpViewResponse} */
|
|
22
771
|
static ApplicationCompanyDpViewResponse() {
|
|
23
772
|
return Joi.object({
|
|
24
773
|
application_id: Joi.string().allow("").required(),
|
|
@@ -27,18 +776,24 @@ class ServiceabilityModel {
|
|
|
27
776
|
success: Joi.boolean().required(),
|
|
28
777
|
});
|
|
29
778
|
}
|
|
779
|
+
|
|
780
|
+
/** @returns {ApplicationSelfShipConfig} */
|
|
30
781
|
static ApplicationSelfShipConfig() {
|
|
31
782
|
return Joi.object({
|
|
32
|
-
self_ship:
|
|
783
|
+
self_ship: ServiceabilityPlatformModel.SelfShipResponse(),
|
|
33
784
|
});
|
|
34
785
|
}
|
|
786
|
+
|
|
787
|
+
/** @returns {ApplicationSelfShipConfigResponse} */
|
|
35
788
|
static ApplicationSelfShipConfigResponse() {
|
|
36
789
|
return Joi.object({
|
|
37
|
-
data:
|
|
38
|
-
error:
|
|
790
|
+
data: ServiceabilityPlatformModel.ApplicationSelfShipConfig(),
|
|
791
|
+
error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
|
|
39
792
|
success: Joi.boolean().required(),
|
|
40
793
|
});
|
|
41
794
|
}
|
|
795
|
+
|
|
796
|
+
/** @returns {ApplicationServiceabilityConfig} */
|
|
42
797
|
static ApplicationServiceabilityConfig() {
|
|
43
798
|
return Joi.object({
|
|
44
799
|
channel_id: Joi.string().allow("").required(),
|
|
@@ -46,13 +801,17 @@ class ServiceabilityModel {
|
|
|
46
801
|
serviceability_type: Joi.string().allow("").required(),
|
|
47
802
|
});
|
|
48
803
|
}
|
|
804
|
+
|
|
805
|
+
/** @returns {ApplicationServiceabilityConfigResponse} */
|
|
49
806
|
static ApplicationServiceabilityConfigResponse() {
|
|
50
807
|
return Joi.object({
|
|
51
|
-
data:
|
|
52
|
-
error:
|
|
808
|
+
data: ServiceabilityPlatformModel.ApplicationServiceabilityConfig(),
|
|
809
|
+
error: ServiceabilityPlatformModel.ServiceabilityErrorResponse(),
|
|
53
810
|
success: Joi.boolean().required(),
|
|
54
811
|
});
|
|
55
812
|
}
|
|
813
|
+
|
|
814
|
+
/** @returns {CommonError} */
|
|
56
815
|
static CommonError() {
|
|
57
816
|
return Joi.object({
|
|
58
817
|
error: Joi.any(),
|
|
@@ -60,23 +819,31 @@ class ServiceabilityModel {
|
|
|
60
819
|
success: Joi.string().allow(""),
|
|
61
820
|
});
|
|
62
821
|
}
|
|
822
|
+
|
|
823
|
+
/** @returns {CompanyDpAccountListResponse} */
|
|
63
824
|
static CompanyDpAccountListResponse() {
|
|
64
825
|
return Joi.object({
|
|
65
|
-
items: Joi.array().items(
|
|
66
|
-
page:
|
|
826
|
+
items: Joi.array().items(ServiceabilityPlatformModel.Dp1()).required(),
|
|
827
|
+
page: ServiceabilityPlatformModel.Page().required(),
|
|
67
828
|
success: Joi.boolean().required(),
|
|
68
829
|
});
|
|
69
830
|
}
|
|
831
|
+
|
|
832
|
+
/** @returns {CompanyDpAccountRequest} */
|
|
70
833
|
static CompanyDpAccountRequest() {
|
|
71
834
|
return Joi.object({
|
|
72
|
-
data: Joi.array().items(
|
|
835
|
+
data: Joi.array().items(ServiceabilityPlatformModel.Dp1()).required(),
|
|
73
836
|
});
|
|
74
837
|
}
|
|
838
|
+
|
|
839
|
+
/** @returns {CompanyDpAccountResponse} */
|
|
75
840
|
static CompanyDpAccountResponse() {
|
|
76
841
|
return Joi.object({
|
|
77
842
|
success: Joi.boolean().required(),
|
|
78
843
|
});
|
|
79
844
|
}
|
|
845
|
+
|
|
846
|
+
/** @returns {CompanyStoreView_PageItems} */
|
|
80
847
|
static CompanyStoreView_PageItems() {
|
|
81
848
|
return Joi.object({
|
|
82
849
|
current: Joi.number().required(),
|
|
@@ -86,44 +853,54 @@ class ServiceabilityModel {
|
|
|
86
853
|
type: Joi.string().allow("").required(),
|
|
87
854
|
});
|
|
88
855
|
}
|
|
856
|
+
|
|
857
|
+
/** @returns {CompanyStoreView_Response} */
|
|
89
858
|
static CompanyStoreView_Response() {
|
|
90
859
|
return Joi.object({
|
|
91
860
|
items: Joi.array().items(Joi.any()),
|
|
92
861
|
page: Joi.array()
|
|
93
|
-
.items(
|
|
862
|
+
.items(ServiceabilityPlatformModel.CompanyStoreView_PageItems())
|
|
94
863
|
.required(),
|
|
95
864
|
});
|
|
96
865
|
}
|
|
866
|
+
|
|
867
|
+
/** @returns {ContactNumberResponse} */
|
|
97
868
|
static ContactNumberResponse() {
|
|
98
869
|
return Joi.object({
|
|
99
870
|
country_code: Joi.number(),
|
|
100
871
|
number: Joi.string().allow(""),
|
|
101
872
|
});
|
|
102
873
|
}
|
|
874
|
+
|
|
875
|
+
/** @returns {CreatedByResponse} */
|
|
103
876
|
static CreatedByResponse() {
|
|
104
877
|
return Joi.object({
|
|
105
878
|
user_id: Joi.string().allow(""),
|
|
106
879
|
username: Joi.string().allow(""),
|
|
107
880
|
});
|
|
108
881
|
}
|
|
882
|
+
|
|
883
|
+
/** @returns {CreateZoneData} */
|
|
109
884
|
static CreateZoneData() {
|
|
110
885
|
return Joi.object({
|
|
111
886
|
assignment_preference: Joi.string().allow(""),
|
|
112
887
|
channels: Joi.array()
|
|
113
|
-
.items(
|
|
888
|
+
.items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
|
|
114
889
|
.required(),
|
|
115
890
|
company_id: Joi.number().required(),
|
|
116
891
|
is_active: Joi.boolean().required(),
|
|
117
892
|
mapping: Joi.array()
|
|
118
|
-
.items(
|
|
893
|
+
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
119
894
|
.required(),
|
|
120
895
|
name: Joi.string().allow("").required(),
|
|
121
|
-
product:
|
|
896
|
+
product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
|
|
122
897
|
region_type: Joi.string().allow("").required(),
|
|
123
898
|
slug: Joi.string().allow("").required(),
|
|
124
899
|
store_ids: Joi.array().items(Joi.number()).required(),
|
|
125
900
|
});
|
|
126
901
|
}
|
|
902
|
+
|
|
903
|
+
/** @returns {DocumentsResponse} */
|
|
127
904
|
static DocumentsResponse() {
|
|
128
905
|
return Joi.object({
|
|
129
906
|
legal_name: Joi.string().allow(""),
|
|
@@ -132,6 +909,8 @@ class ServiceabilityModel {
|
|
|
132
909
|
verified: Joi.boolean(),
|
|
133
910
|
});
|
|
134
911
|
}
|
|
912
|
+
|
|
913
|
+
/** @returns {Dp} */
|
|
135
914
|
static Dp() {
|
|
136
915
|
return Joi.object({
|
|
137
916
|
area_code: Joi.number().allow(null),
|
|
@@ -146,6 +925,8 @@ class ServiceabilityModel {
|
|
|
146
925
|
transport_mode: Joi.string().allow(""),
|
|
147
926
|
});
|
|
148
927
|
}
|
|
928
|
+
|
|
929
|
+
/** @returns {Dp1} */
|
|
149
930
|
static Dp1() {
|
|
150
931
|
return Joi.object({
|
|
151
932
|
account_id: Joi.string().allow("").required(),
|
|
@@ -157,37 +938,55 @@ class ServiceabilityModel {
|
|
|
157
938
|
stage: Joi.string().allow("").required(),
|
|
158
939
|
});
|
|
159
940
|
}
|
|
941
|
+
|
|
942
|
+
/** @returns {DpAccountFailureResponse} */
|
|
160
943
|
static DpAccountFailureResponse() {
|
|
161
944
|
return Joi.object({
|
|
162
|
-
error: Joi.array()
|
|
945
|
+
error: Joi.array()
|
|
946
|
+
.items(ServiceabilityPlatformModel.ErrorResponse())
|
|
947
|
+
.required(),
|
|
163
948
|
status_code: Joi.number().required(),
|
|
164
949
|
success: Joi.boolean().required(),
|
|
165
950
|
});
|
|
166
951
|
}
|
|
952
|
+
|
|
953
|
+
/** @returns {DPApplicationRuleRequest} */
|
|
167
954
|
static DPApplicationRuleRequest() {
|
|
168
955
|
return Joi.object({
|
|
169
956
|
shipping_rules: Joi.array().items(Joi.string().allow("")).required(),
|
|
170
957
|
});
|
|
171
958
|
}
|
|
959
|
+
|
|
960
|
+
/** @returns {DPApplicationRuleResponse} */
|
|
172
961
|
static DPApplicationRuleResponse() {
|
|
173
962
|
return Joi.object({
|
|
174
|
-
data: Joi.array()
|
|
963
|
+
data: Joi.array()
|
|
964
|
+
.items(ServiceabilityPlatformModel.DpRuleResponse())
|
|
965
|
+
.required(),
|
|
175
966
|
status_code: Joi.boolean().required(),
|
|
176
967
|
success: Joi.boolean().required(),
|
|
177
968
|
});
|
|
178
969
|
}
|
|
970
|
+
|
|
971
|
+
/** @returns {DPCompanyRuleRequest} */
|
|
179
972
|
static DPCompanyRuleRequest() {
|
|
180
973
|
return Joi.object({
|
|
181
974
|
rule_ids: Joi.array().items(Joi.string().allow("")).required(),
|
|
182
975
|
});
|
|
183
976
|
}
|
|
977
|
+
|
|
978
|
+
/** @returns {DPCompanyRuleResponse} */
|
|
184
979
|
static DPCompanyRuleResponse() {
|
|
185
980
|
return Joi.object({
|
|
186
|
-
data: Joi.array()
|
|
981
|
+
data: Joi.array()
|
|
982
|
+
.items(ServiceabilityPlatformModel.DpRuleResponse())
|
|
983
|
+
.required(),
|
|
187
984
|
status_code: Joi.number().required(),
|
|
188
985
|
success: Joi.boolean().required(),
|
|
189
986
|
});
|
|
190
987
|
}
|
|
988
|
+
|
|
989
|
+
/** @returns {DpIds} */
|
|
191
990
|
static DpIds() {
|
|
192
991
|
return Joi.object({
|
|
193
992
|
enabled: Joi.boolean().required(),
|
|
@@ -195,35 +994,43 @@ class ServiceabilityModel {
|
|
|
195
994
|
priority: Joi.number().required(),
|
|
196
995
|
});
|
|
197
996
|
}
|
|
997
|
+
|
|
998
|
+
/** @returns {DpMultipleRuleSuccessResponse} */
|
|
198
999
|
static DpMultipleRuleSuccessResponse() {
|
|
199
1000
|
return Joi.object({
|
|
200
|
-
items: Joi.array().items(
|
|
201
|
-
page:
|
|
1001
|
+
items: Joi.array().items(ServiceabilityPlatformModel.DpRule()).required(),
|
|
1002
|
+
page: ServiceabilityPlatformModel.Page().required(),
|
|
202
1003
|
success: Joi.boolean().required(),
|
|
203
1004
|
});
|
|
204
1005
|
}
|
|
1006
|
+
|
|
1007
|
+
/** @returns {DpRule} */
|
|
205
1008
|
static DpRule() {
|
|
206
1009
|
return Joi.object({
|
|
207
1010
|
company_id: Joi.number(),
|
|
208
1011
|
conditions: Joi.array().items(Joi.any()).required(),
|
|
209
1012
|
dp_ids: Joi.object()
|
|
210
|
-
.pattern(/\S/,
|
|
1013
|
+
.pattern(/\S/, ServiceabilityPlatformModel.DpSchemaInRuleListing())
|
|
211
1014
|
.required(),
|
|
212
1015
|
is_active: Joi.boolean(),
|
|
213
1016
|
name: Joi.string().allow("").required(),
|
|
214
1017
|
});
|
|
215
1018
|
}
|
|
1019
|
+
|
|
1020
|
+
/** @returns {DpRuleRequest} */
|
|
216
1021
|
static DpRuleRequest() {
|
|
217
1022
|
return Joi.object({
|
|
218
1023
|
company_id: Joi.number(),
|
|
219
1024
|
conditions: Joi.array().items(Joi.any()).required(),
|
|
220
1025
|
dp_ids: Joi.object()
|
|
221
|
-
.pattern(/\S/,
|
|
1026
|
+
.pattern(/\S/, ServiceabilityPlatformModel.DpIds())
|
|
222
1027
|
.required(),
|
|
223
1028
|
is_active: Joi.boolean(),
|
|
224
1029
|
name: Joi.string().allow("").required(),
|
|
225
1030
|
});
|
|
226
1031
|
}
|
|
1032
|
+
|
|
1033
|
+
/** @returns {DpRuleResponse} */
|
|
227
1034
|
static DpRuleResponse() {
|
|
228
1035
|
return Joi.object({
|
|
229
1036
|
company_id: Joi.number().required(),
|
|
@@ -238,13 +1045,17 @@ class ServiceabilityModel {
|
|
|
238
1045
|
uid: Joi.string().allow("").required(),
|
|
239
1046
|
});
|
|
240
1047
|
}
|
|
1048
|
+
|
|
1049
|
+
/** @returns {DpRuleSuccessResponse} */
|
|
241
1050
|
static DpRuleSuccessResponse() {
|
|
242
1051
|
return Joi.object({
|
|
243
|
-
data:
|
|
1052
|
+
data: ServiceabilityPlatformModel.DpRule().required(),
|
|
244
1053
|
status_code: Joi.number().required(),
|
|
245
1054
|
success: Joi.boolean().required(),
|
|
246
1055
|
});
|
|
247
1056
|
}
|
|
1057
|
+
|
|
1058
|
+
/** @returns {DpRulesUpdateRequest} */
|
|
248
1059
|
static DpRulesUpdateRequest() {
|
|
249
1060
|
return Joi.object({
|
|
250
1061
|
conditions: Joi.array().items(Joi.any()).required(),
|
|
@@ -253,13 +1064,17 @@ class ServiceabilityModel {
|
|
|
253
1064
|
name: Joi.string().allow("").required(),
|
|
254
1065
|
});
|
|
255
1066
|
}
|
|
1067
|
+
|
|
1068
|
+
/** @returns {DpRuleUpdateSuccessResponse} */
|
|
256
1069
|
static DpRuleUpdateSuccessResponse() {
|
|
257
1070
|
return Joi.object({
|
|
258
|
-
data:
|
|
1071
|
+
data: ServiceabilityPlatformModel.DpRuleResponse().required(),
|
|
259
1072
|
status_code: Joi.number().required(),
|
|
260
1073
|
success: Joi.boolean().required(),
|
|
261
1074
|
});
|
|
262
1075
|
}
|
|
1076
|
+
|
|
1077
|
+
/** @returns {DpSchemaInRuleListing} */
|
|
263
1078
|
static DpSchemaInRuleListing() {
|
|
264
1079
|
return Joi.object({
|
|
265
1080
|
account_id: Joi.string().allow("").required(),
|
|
@@ -272,11 +1087,15 @@ class ServiceabilityModel {
|
|
|
272
1087
|
stage: Joi.string().allow("").required(),
|
|
273
1088
|
});
|
|
274
1089
|
}
|
|
1090
|
+
|
|
1091
|
+
/** @returns {EinvoiceResponse} */
|
|
275
1092
|
static EinvoiceResponse() {
|
|
276
1093
|
return Joi.object({
|
|
277
1094
|
enabled: Joi.boolean(),
|
|
278
1095
|
});
|
|
279
1096
|
}
|
|
1097
|
+
|
|
1098
|
+
/** @returns {EntityRegionView_Error} */
|
|
280
1099
|
static EntityRegionView_Error() {
|
|
281
1100
|
return Joi.object({
|
|
282
1101
|
message: Joi.string().allow(""),
|
|
@@ -284,6 +1103,8 @@ class ServiceabilityModel {
|
|
|
284
1103
|
value: Joi.string().allow(""),
|
|
285
1104
|
});
|
|
286
1105
|
}
|
|
1106
|
+
|
|
1107
|
+
/** @returns {EntityRegionView_Items} */
|
|
287
1108
|
static EntityRegionView_Items() {
|
|
288
1109
|
return Joi.object({
|
|
289
1110
|
display_name: Joi.string().allow(""),
|
|
@@ -292,6 +1113,8 @@ class ServiceabilityModel {
|
|
|
292
1113
|
uid: Joi.string().allow("").required(),
|
|
293
1114
|
});
|
|
294
1115
|
}
|
|
1116
|
+
|
|
1117
|
+
/** @returns {EntityRegionView_page} */
|
|
295
1118
|
static EntityRegionView_page() {
|
|
296
1119
|
return Joi.object({
|
|
297
1120
|
current: Joi.number().required(),
|
|
@@ -301,20 +1124,28 @@ class ServiceabilityModel {
|
|
|
301
1124
|
type: Joi.string().allow("").required(),
|
|
302
1125
|
});
|
|
303
1126
|
}
|
|
1127
|
+
|
|
1128
|
+
/** @returns {EntityRegionView_Request} */
|
|
304
1129
|
static EntityRegionView_Request() {
|
|
305
1130
|
return Joi.object({
|
|
306
1131
|
parent_id: Joi.array().items(Joi.string().allow("")),
|
|
307
1132
|
sub_type: Joi.array().items(Joi.string().allow("")).required(),
|
|
308
1133
|
});
|
|
309
1134
|
}
|
|
1135
|
+
|
|
1136
|
+
/** @returns {EntityRegionView_Response} */
|
|
310
1137
|
static EntityRegionView_Response() {
|
|
311
1138
|
return Joi.object({
|
|
312
|
-
error:
|
|
313
|
-
items: Joi.array().items(
|
|
314
|
-
|
|
1139
|
+
error: ServiceabilityPlatformModel.EntityRegionView_Error().required(),
|
|
1140
|
+
items: Joi.array().items(
|
|
1141
|
+
ServiceabilityPlatformModel.EntityRegionView_Items()
|
|
1142
|
+
),
|
|
1143
|
+
page: ServiceabilityPlatformModel.EntityRegionView_page().required(),
|
|
315
1144
|
success: Joi.boolean().required(),
|
|
316
1145
|
});
|
|
317
1146
|
}
|
|
1147
|
+
|
|
1148
|
+
/** @returns {Error} */
|
|
318
1149
|
static Error() {
|
|
319
1150
|
return Joi.object({
|
|
320
1151
|
message: Joi.string().allow("").allow(null),
|
|
@@ -322,6 +1153,8 @@ class ServiceabilityModel {
|
|
|
322
1153
|
value: Joi.string().allow("").allow(null),
|
|
323
1154
|
});
|
|
324
1155
|
}
|
|
1156
|
+
|
|
1157
|
+
/** @returns {ErrorResponse} */
|
|
325
1158
|
static ErrorResponse() {
|
|
326
1159
|
return Joi.object({
|
|
327
1160
|
message: Joi.string().allow("").required(),
|
|
@@ -329,49 +1162,63 @@ class ServiceabilityModel {
|
|
|
329
1162
|
value: Joi.string().allow("").required(),
|
|
330
1163
|
});
|
|
331
1164
|
}
|
|
1165
|
+
|
|
1166
|
+
/** @returns {EwayBillResponse} */
|
|
332
1167
|
static EwayBillResponse() {
|
|
333
1168
|
return Joi.object({
|
|
334
1169
|
enabled: Joi.boolean(),
|
|
335
1170
|
});
|
|
336
1171
|
}
|
|
1172
|
+
|
|
1173
|
+
/** @returns {FailureResponse} */
|
|
337
1174
|
static FailureResponse() {
|
|
338
1175
|
return Joi.object({
|
|
339
|
-
error: Joi.array()
|
|
1176
|
+
error: Joi.array()
|
|
1177
|
+
.items(ServiceabilityPlatformModel.ErrorResponse())
|
|
1178
|
+
.required(),
|
|
340
1179
|
status_code: Joi.number().required(),
|
|
341
1180
|
success: Joi.boolean().required(),
|
|
342
1181
|
});
|
|
343
1182
|
}
|
|
1183
|
+
|
|
1184
|
+
/** @returns {GetSingleZoneDataViewResponse} */
|
|
344
1185
|
static GetSingleZoneDataViewResponse() {
|
|
345
1186
|
return Joi.object({
|
|
346
|
-
data:
|
|
1187
|
+
data: ServiceabilityPlatformModel.GetZoneDataViewItems().required(),
|
|
347
1188
|
});
|
|
348
1189
|
}
|
|
1190
|
+
|
|
1191
|
+
/** @returns {GetStoresViewResponse} */
|
|
349
1192
|
static GetStoresViewResponse() {
|
|
350
1193
|
return Joi.object({
|
|
351
|
-
items: Joi.array().items(
|
|
352
|
-
page:
|
|
1194
|
+
items: Joi.array().items(ServiceabilityPlatformModel.ItemResponse()),
|
|
1195
|
+
page: ServiceabilityPlatformModel.ServiceabilityPageResponse().required(),
|
|
353
1196
|
});
|
|
354
1197
|
}
|
|
1198
|
+
|
|
1199
|
+
/** @returns {GetZoneDataViewChannels} */
|
|
355
1200
|
static GetZoneDataViewChannels() {
|
|
356
1201
|
return Joi.object({
|
|
357
1202
|
channel_id: Joi.string().allow("").required(),
|
|
358
1203
|
channel_type: Joi.string().allow("").required(),
|
|
359
1204
|
});
|
|
360
1205
|
}
|
|
1206
|
+
|
|
1207
|
+
/** @returns {GetZoneDataViewItems} */
|
|
361
1208
|
static GetZoneDataViewItems() {
|
|
362
1209
|
return Joi.object({
|
|
363
1210
|
assignment_preference: Joi.string().allow(""),
|
|
364
1211
|
channels: Joi.array()
|
|
365
|
-
.items(
|
|
1212
|
+
.items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
|
|
366
1213
|
.required(),
|
|
367
1214
|
company_id: Joi.number(),
|
|
368
1215
|
is_active: Joi.boolean().required(),
|
|
369
1216
|
mapping: Joi.array()
|
|
370
|
-
.items(
|
|
1217
|
+
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
371
1218
|
.required(),
|
|
372
1219
|
name: Joi.string().allow("").required(),
|
|
373
1220
|
pincodes_count: Joi.number().required(),
|
|
374
|
-
product:
|
|
1221
|
+
product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
|
|
375
1222
|
region_type: Joi.string().allow("").required(),
|
|
376
1223
|
slug: Joi.string().allow("").required(),
|
|
377
1224
|
store_ids: Joi.array().items(Joi.number()).required(),
|
|
@@ -379,104 +1226,134 @@ class ServiceabilityModel {
|
|
|
379
1226
|
zone_id: Joi.string().allow("").required(),
|
|
380
1227
|
});
|
|
381
1228
|
}
|
|
1229
|
+
|
|
1230
|
+
/** @returns {GetZoneFromApplicationIdViewResponse} */
|
|
382
1231
|
static GetZoneFromApplicationIdViewResponse() {
|
|
383
1232
|
return Joi.object({
|
|
384
|
-
items: Joi.array()
|
|
385
|
-
|
|
1233
|
+
items: Joi.array()
|
|
1234
|
+
.items(ServiceabilityPlatformModel.ListViewItems())
|
|
1235
|
+
.required(),
|
|
1236
|
+
page: Joi.array()
|
|
1237
|
+
.items(ServiceabilityPlatformModel.ZoneDataItem())
|
|
1238
|
+
.required(),
|
|
386
1239
|
});
|
|
387
1240
|
}
|
|
1241
|
+
|
|
1242
|
+
/** @returns {GetZoneFromPincodeViewRequest} */
|
|
388
1243
|
static GetZoneFromPincodeViewRequest() {
|
|
389
1244
|
return Joi.object({
|
|
390
1245
|
country: Joi.string().allow("").required(),
|
|
391
1246
|
pincode: Joi.string().allow("").required(),
|
|
392
1247
|
});
|
|
393
1248
|
}
|
|
1249
|
+
|
|
1250
|
+
/** @returns {GetZoneFromPincodeViewResponse} */
|
|
394
1251
|
static GetZoneFromPincodeViewResponse() {
|
|
395
1252
|
return Joi.object({
|
|
396
1253
|
serviceability_type: Joi.string().allow("").required(),
|
|
397
|
-
zones: Joi.array().items(
|
|
1254
|
+
zones: Joi.array().items(ServiceabilityPlatformModel.Zone()).required(),
|
|
398
1255
|
});
|
|
399
1256
|
}
|
|
1257
|
+
|
|
1258
|
+
/** @returns {GstCredentialsResponse} */
|
|
400
1259
|
static GstCredentialsResponse() {
|
|
401
1260
|
return Joi.object({
|
|
402
|
-
e_invoice:
|
|
403
|
-
e_waybill:
|
|
1261
|
+
e_invoice: ServiceabilityPlatformModel.EinvoiceResponse(),
|
|
1262
|
+
e_waybill: ServiceabilityPlatformModel.EwayBillResponse(),
|
|
404
1263
|
});
|
|
405
1264
|
}
|
|
1265
|
+
|
|
1266
|
+
/** @returns {IntegrationTypeResponse} */
|
|
406
1267
|
static IntegrationTypeResponse() {
|
|
407
1268
|
return Joi.object({
|
|
408
1269
|
inventory: Joi.string().allow(""),
|
|
409
1270
|
order: Joi.string().allow(""),
|
|
410
1271
|
});
|
|
411
1272
|
}
|
|
1273
|
+
|
|
1274
|
+
/** @returns {ItemResponse} */
|
|
412
1275
|
static ItemResponse() {
|
|
413
1276
|
return Joi.object({
|
|
414
1277
|
_cls: Joi.string().allow(""),
|
|
415
1278
|
_custom_json: Joi.any(),
|
|
416
|
-
address:
|
|
1279
|
+
address: ServiceabilityPlatformModel.AddressResponse(),
|
|
417
1280
|
code: Joi.string().allow(""),
|
|
418
1281
|
company: Joi.number(),
|
|
419
1282
|
company_id: Joi.number(),
|
|
420
1283
|
contact_numbers: Joi.array().items(
|
|
421
|
-
|
|
1284
|
+
ServiceabilityPlatformModel.ContactNumberResponse()
|
|
422
1285
|
),
|
|
423
|
-
created_by:
|
|
1286
|
+
created_by: ServiceabilityPlatformModel.CreatedByResponse(),
|
|
424
1287
|
created_on: Joi.string().allow(""),
|
|
425
1288
|
display_name: Joi.string().allow(""),
|
|
426
|
-
documents: Joi.array().items(
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
1289
|
+
documents: Joi.array().items(
|
|
1290
|
+
ServiceabilityPlatformModel.DocumentsResponse()
|
|
1291
|
+
),
|
|
1292
|
+
gst_credentials: ServiceabilityPlatformModel.GstCredentialsResponse(),
|
|
1293
|
+
integration_type: ServiceabilityPlatformModel.IntegrationTypeResponse(),
|
|
1294
|
+
logistics: ServiceabilityPlatformModel.LogisticsResponse(),
|
|
1295
|
+
manager: ServiceabilityPlatformModel.ManagerResponse(),
|
|
1296
|
+
modified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
|
|
432
1297
|
modified_on: Joi.string().allow(""),
|
|
433
1298
|
name: Joi.string().allow(""),
|
|
434
1299
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
435
|
-
product_return_config:
|
|
1300
|
+
product_return_config: ServiceabilityPlatformModel.ProductReturnConfigResponse(),
|
|
436
1301
|
stage: Joi.string().allow(""),
|
|
437
1302
|
store_type: Joi.string().allow(""),
|
|
438
1303
|
sub_type: Joi.string().allow(""),
|
|
439
|
-
timing: Joi.array().items(
|
|
1304
|
+
timing: Joi.array().items(ServiceabilityPlatformModel.TimmingResponse()),
|
|
440
1305
|
uid: Joi.number(),
|
|
441
|
-
verified_by:
|
|
1306
|
+
verified_by: ServiceabilityPlatformModel.ModifiedByResponse(),
|
|
442
1307
|
verified_on: Joi.string().allow(""),
|
|
443
|
-
warnings:
|
|
1308
|
+
warnings: ServiceabilityPlatformModel.WarningsResponse(),
|
|
444
1309
|
});
|
|
445
1310
|
}
|
|
1311
|
+
|
|
1312
|
+
/** @returns {ListViewChannels} */
|
|
446
1313
|
static ListViewChannels() {
|
|
447
1314
|
return Joi.object({
|
|
448
1315
|
channel_id: Joi.string().allow("").required(),
|
|
449
1316
|
channel_type: Joi.string().allow("").required(),
|
|
450
1317
|
});
|
|
451
1318
|
}
|
|
1319
|
+
|
|
1320
|
+
/** @returns {ListViewItems} */
|
|
452
1321
|
static ListViewItems() {
|
|
453
1322
|
return Joi.object({
|
|
454
1323
|
channels: Joi.array()
|
|
455
|
-
.items(
|
|
1324
|
+
.items(ServiceabilityPlatformModel.ListViewChannels())
|
|
456
1325
|
.required(),
|
|
457
1326
|
company_id: Joi.number().required(),
|
|
458
1327
|
is_active: Joi.boolean().required(),
|
|
459
1328
|
name: Joi.string().allow("").required(),
|
|
460
1329
|
pincodes_count: Joi.number().required(),
|
|
461
|
-
product:
|
|
1330
|
+
product: ServiceabilityPlatformModel.ListViewProduct().required(),
|
|
462
1331
|
slug: Joi.string().allow("").required(),
|
|
463
1332
|
stores_count: Joi.number().required(),
|
|
464
1333
|
zone_id: Joi.string().allow("").required(),
|
|
465
1334
|
});
|
|
466
1335
|
}
|
|
1336
|
+
|
|
1337
|
+
/** @returns {ListViewProduct} */
|
|
467
1338
|
static ListViewProduct() {
|
|
468
1339
|
return Joi.object({
|
|
469
1340
|
count: Joi.number().required(),
|
|
470
1341
|
type: Joi.string().allow("").required(),
|
|
471
1342
|
});
|
|
472
1343
|
}
|
|
1344
|
+
|
|
1345
|
+
/** @returns {ListViewResponse} */
|
|
473
1346
|
static ListViewResponse() {
|
|
474
1347
|
return Joi.object({
|
|
475
|
-
items: Joi.array()
|
|
476
|
-
|
|
477
|
-
|
|
1348
|
+
items: Joi.array()
|
|
1349
|
+
.items(ServiceabilityPlatformModel.ListViewItems())
|
|
1350
|
+
.required(),
|
|
1351
|
+
page: ServiceabilityPlatformModel.ZoneDataItem().required(),
|
|
1352
|
+
summary: ServiceabilityPlatformModel.ListViewSummary().required(),
|
|
478
1353
|
});
|
|
479
1354
|
}
|
|
1355
|
+
|
|
1356
|
+
/** @returns {ListViewSummary} */
|
|
480
1357
|
static ListViewSummary() {
|
|
481
1358
|
return Joi.object({
|
|
482
1359
|
total_active_zones: Joi.number().required(),
|
|
@@ -484,37 +1361,49 @@ class ServiceabilityModel {
|
|
|
484
1361
|
total_zones: Joi.number().required(),
|
|
485
1362
|
});
|
|
486
1363
|
}
|
|
1364
|
+
|
|
1365
|
+
/** @returns {LogisticsResponse} */
|
|
487
1366
|
static LogisticsResponse() {
|
|
488
1367
|
return Joi.object({
|
|
489
|
-
dp:
|
|
1368
|
+
dp: ServiceabilityPlatformModel.Dp(),
|
|
490
1369
|
override: Joi.boolean(),
|
|
491
1370
|
});
|
|
492
1371
|
}
|
|
1372
|
+
|
|
1373
|
+
/** @returns {ManagerResponse} */
|
|
493
1374
|
static ManagerResponse() {
|
|
494
1375
|
return Joi.object({
|
|
495
1376
|
email: Joi.string().allow(""),
|
|
496
|
-
mobile_no:
|
|
1377
|
+
mobile_no: ServiceabilityPlatformModel.MobileNo(),
|
|
497
1378
|
name: Joi.string().allow(""),
|
|
498
1379
|
});
|
|
499
1380
|
}
|
|
1381
|
+
|
|
1382
|
+
/** @returns {MobileNo} */
|
|
500
1383
|
static MobileNo() {
|
|
501
1384
|
return Joi.object({
|
|
502
1385
|
country_code: Joi.number(),
|
|
503
1386
|
number: Joi.string().allow(""),
|
|
504
1387
|
});
|
|
505
1388
|
}
|
|
1389
|
+
|
|
1390
|
+
/** @returns {ModifiedByResponse} */
|
|
506
1391
|
static ModifiedByResponse() {
|
|
507
1392
|
return Joi.object({
|
|
508
1393
|
user_id: Joi.string().allow(""),
|
|
509
1394
|
username: Joi.string().allow(""),
|
|
510
1395
|
});
|
|
511
1396
|
}
|
|
1397
|
+
|
|
1398
|
+
/** @returns {OpeningClosing} */
|
|
512
1399
|
static OpeningClosing() {
|
|
513
1400
|
return Joi.object({
|
|
514
1401
|
hour: Joi.number(),
|
|
515
1402
|
minute: Joi.number(),
|
|
516
1403
|
});
|
|
517
1404
|
}
|
|
1405
|
+
|
|
1406
|
+
/** @returns {Page} */
|
|
518
1407
|
static Page() {
|
|
519
1408
|
return Joi.object({
|
|
520
1409
|
current: Joi.number(),
|
|
@@ -526,12 +1415,16 @@ class ServiceabilityModel {
|
|
|
526
1415
|
type: Joi.string().allow("").required(),
|
|
527
1416
|
});
|
|
528
1417
|
}
|
|
1418
|
+
|
|
1419
|
+
/** @returns {PincodeBulkViewResponse} */
|
|
529
1420
|
static PincodeBulkViewResponse() {
|
|
530
1421
|
return Joi.object({
|
|
531
1422
|
batch_id: Joi.string().allow("").required(),
|
|
532
1423
|
s3_url: Joi.string().allow("").required(),
|
|
533
1424
|
});
|
|
534
1425
|
}
|
|
1426
|
+
|
|
1427
|
+
/** @returns {PincodeCodStatusListingPage} */
|
|
535
1428
|
static PincodeCodStatusListingPage() {
|
|
536
1429
|
return Joi.object({
|
|
537
1430
|
current: Joi.number().required(),
|
|
@@ -541,6 +1434,8 @@ class ServiceabilityModel {
|
|
|
541
1434
|
type: Joi.string().allow("").required(),
|
|
542
1435
|
});
|
|
543
1436
|
}
|
|
1437
|
+
|
|
1438
|
+
/** @returns {PincodeCodStatusListingRequest} */
|
|
544
1439
|
static PincodeCodStatusListingRequest() {
|
|
545
1440
|
return Joi.object({
|
|
546
1441
|
country: Joi.string().allow(""),
|
|
@@ -550,30 +1445,38 @@ class ServiceabilityModel {
|
|
|
550
1445
|
pincode: Joi.number().allow(null),
|
|
551
1446
|
});
|
|
552
1447
|
}
|
|
1448
|
+
|
|
1449
|
+
/** @returns {PincodeCodStatusListingResponse} */
|
|
553
1450
|
static PincodeCodStatusListingResponse() {
|
|
554
1451
|
return Joi.object({
|
|
555
1452
|
country: Joi.string().allow("").required(),
|
|
556
1453
|
data: Joi.array()
|
|
557
1454
|
.items(Joi.link("#PincodeCodStatusListingResponse"))
|
|
558
1455
|
.required(),
|
|
559
|
-
errors: Joi.array().items(
|
|
560
|
-
page:
|
|
1456
|
+
errors: Joi.array().items(ServiceabilityPlatformModel.Error()),
|
|
1457
|
+
page: ServiceabilityPlatformModel.PincodeCodStatusListingPage().required(),
|
|
561
1458
|
success: Joi.boolean().required(),
|
|
562
|
-
summary:
|
|
1459
|
+
summary: ServiceabilityPlatformModel.PincodeCodStatusListingSummary().required(),
|
|
563
1460
|
});
|
|
564
1461
|
}
|
|
1462
|
+
|
|
1463
|
+
/** @returns {PincodeCodStatusListingSummary} */
|
|
565
1464
|
static PincodeCodStatusListingSummary() {
|
|
566
1465
|
return Joi.object({
|
|
567
1466
|
total_active_pincodes: Joi.number().required(),
|
|
568
1467
|
total_inactive_pincodes: Joi.number().required(),
|
|
569
1468
|
});
|
|
570
1469
|
}
|
|
1470
|
+
|
|
1471
|
+
/** @returns {PincodeMopBulkData} */
|
|
571
1472
|
static PincodeMopBulkData() {
|
|
572
1473
|
return Joi.object({
|
|
573
1474
|
batch_id: Joi.string().allow("").required(),
|
|
574
1475
|
s3_url: Joi.string().allow("").required(),
|
|
575
1476
|
});
|
|
576
1477
|
}
|
|
1478
|
+
|
|
1479
|
+
/** @returns {PincodeMopData} */
|
|
577
1480
|
static PincodeMopData() {
|
|
578
1481
|
return Joi.object({
|
|
579
1482
|
action: Joi.string().allow("").required(),
|
|
@@ -581,6 +1484,8 @@ class ServiceabilityModel {
|
|
|
581
1484
|
pincodes: Joi.array().items(Joi.number()).required(),
|
|
582
1485
|
});
|
|
583
1486
|
}
|
|
1487
|
+
|
|
1488
|
+
/** @returns {PincodeMOPresponse} */
|
|
584
1489
|
static PincodeMOPresponse() {
|
|
585
1490
|
return Joi.object({
|
|
586
1491
|
action: Joi.string().allow("").required(),
|
|
@@ -590,10 +1495,12 @@ class ServiceabilityModel {
|
|
|
590
1495
|
status_code: Joi.number().required(),
|
|
591
1496
|
success: Joi.boolean().required(),
|
|
592
1497
|
updated_pincodes: Joi.array().items(
|
|
593
|
-
|
|
1498
|
+
ServiceabilityPlatformModel.PincodeMopUpdateResponse()
|
|
594
1499
|
),
|
|
595
1500
|
});
|
|
596
1501
|
}
|
|
1502
|
+
|
|
1503
|
+
/** @returns {PincodeMopUpdateAuditHistoryPaging} */
|
|
597
1504
|
static PincodeMopUpdateAuditHistoryPaging() {
|
|
598
1505
|
return Joi.object({
|
|
599
1506
|
current: Joi.number(),
|
|
@@ -603,12 +1510,16 @@ class ServiceabilityModel {
|
|
|
603
1510
|
type: Joi.string().allow(""),
|
|
604
1511
|
});
|
|
605
1512
|
}
|
|
1513
|
+
|
|
1514
|
+
/** @returns {PincodeMopUpdateAuditHistoryRequest} */
|
|
606
1515
|
static PincodeMopUpdateAuditHistoryRequest() {
|
|
607
1516
|
return Joi.object({
|
|
608
1517
|
entity_type: Joi.string().allow("").required(),
|
|
609
1518
|
file_name: Joi.string().allow(""),
|
|
610
1519
|
});
|
|
611
1520
|
}
|
|
1521
|
+
|
|
1522
|
+
/** @returns {PincodeMopUpdateAuditHistoryResponse} */
|
|
612
1523
|
static PincodeMopUpdateAuditHistoryResponse() {
|
|
613
1524
|
return Joi.object({
|
|
614
1525
|
batch_id: Joi.string().allow(""),
|
|
@@ -621,15 +1532,21 @@ class ServiceabilityModel {
|
|
|
621
1532
|
updated_by: Joi.string().allow(""),
|
|
622
1533
|
});
|
|
623
1534
|
}
|
|
1535
|
+
|
|
1536
|
+
/** @returns {PincodeMopUpdateAuditHistoryResponseData} */
|
|
624
1537
|
static PincodeMopUpdateAuditHistoryResponseData() {
|
|
625
1538
|
return Joi.object({
|
|
626
1539
|
data: Joi.array()
|
|
627
|
-
.items(
|
|
1540
|
+
.items(
|
|
1541
|
+
ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponse()
|
|
1542
|
+
)
|
|
628
1543
|
.required(),
|
|
629
1544
|
entity_type: Joi.string().allow(""),
|
|
630
|
-
page:
|
|
1545
|
+
page: ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryPaging().required(),
|
|
631
1546
|
});
|
|
632
1547
|
}
|
|
1548
|
+
|
|
1549
|
+
/** @returns {PincodeMopUpdateResponse} */
|
|
633
1550
|
static PincodeMopUpdateResponse() {
|
|
634
1551
|
return Joi.object({
|
|
635
1552
|
channel_id: Joi.string().allow("").required(),
|
|
@@ -638,11 +1555,15 @@ class ServiceabilityModel {
|
|
|
638
1555
|
pincode: Joi.number().required(),
|
|
639
1556
|
});
|
|
640
1557
|
}
|
|
1558
|
+
|
|
1559
|
+
/** @returns {ProductReturnConfigResponse} */
|
|
641
1560
|
static ProductReturnConfigResponse() {
|
|
642
1561
|
return Joi.object({
|
|
643
1562
|
on_same_store: Joi.boolean(),
|
|
644
1563
|
});
|
|
645
1564
|
}
|
|
1565
|
+
|
|
1566
|
+
/** @returns {ReAssignStoreRequest} */
|
|
646
1567
|
static ReAssignStoreRequest() {
|
|
647
1568
|
return Joi.object({
|
|
648
1569
|
articles: Joi.array().items(Joi.any()).required(),
|
|
@@ -652,6 +1573,8 @@ class ServiceabilityModel {
|
|
|
652
1573
|
to_pincode: Joi.string().allow("").required(),
|
|
653
1574
|
});
|
|
654
1575
|
}
|
|
1576
|
+
|
|
1577
|
+
/** @returns {ReAssignStoreResponse} */
|
|
655
1578
|
static ReAssignStoreResponse() {
|
|
656
1579
|
return Joi.object({
|
|
657
1580
|
articles: Joi.array().items(Joi.any()),
|
|
@@ -660,12 +1583,16 @@ class ServiceabilityModel {
|
|
|
660
1583
|
to_pincode: Joi.string().allow("").required(),
|
|
661
1584
|
});
|
|
662
1585
|
}
|
|
1586
|
+
|
|
1587
|
+
/** @returns {SelfShipResponse} */
|
|
663
1588
|
static SelfShipResponse() {
|
|
664
1589
|
return Joi.object({
|
|
665
1590
|
is_active: Joi.boolean().required(),
|
|
666
1591
|
tat: Joi.number().required(),
|
|
667
1592
|
});
|
|
668
1593
|
}
|
|
1594
|
+
|
|
1595
|
+
/** @returns {ServiceabilityErrorResponse} */
|
|
669
1596
|
static ServiceabilityErrorResponse() {
|
|
670
1597
|
return Joi.object({
|
|
671
1598
|
message: Joi.string().allow("").required(),
|
|
@@ -673,6 +1600,8 @@ class ServiceabilityModel {
|
|
|
673
1600
|
value: Joi.string().allow("").required(),
|
|
674
1601
|
});
|
|
675
1602
|
}
|
|
1603
|
+
|
|
1604
|
+
/** @returns {ServiceabilityPageResponse} */
|
|
676
1605
|
static ServiceabilityPageResponse() {
|
|
677
1606
|
return Joi.object({
|
|
678
1607
|
current: Joi.number(),
|
|
@@ -682,38 +1611,46 @@ class ServiceabilityModel {
|
|
|
682
1611
|
type: Joi.string().allow(""),
|
|
683
1612
|
});
|
|
684
1613
|
}
|
|
1614
|
+
|
|
1615
|
+
/** @returns {TimmingResponse} */
|
|
685
1616
|
static TimmingResponse() {
|
|
686
1617
|
return Joi.object({
|
|
687
|
-
closing:
|
|
1618
|
+
closing: ServiceabilityPlatformModel.OpeningClosing(),
|
|
688
1619
|
open: Joi.boolean(),
|
|
689
|
-
opening:
|
|
1620
|
+
opening: ServiceabilityPlatformModel.OpeningClosing(),
|
|
690
1621
|
weekday: Joi.string().allow(""),
|
|
691
1622
|
});
|
|
692
1623
|
}
|
|
1624
|
+
|
|
1625
|
+
/** @returns {UpdateZoneData} */
|
|
693
1626
|
static UpdateZoneData() {
|
|
694
1627
|
return Joi.object({
|
|
695
1628
|
assignment_preference: Joi.string().allow(""),
|
|
696
1629
|
channels: Joi.array()
|
|
697
|
-
.items(
|
|
1630
|
+
.items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
|
|
698
1631
|
.required(),
|
|
699
1632
|
company_id: Joi.number().required(),
|
|
700
1633
|
is_active: Joi.boolean().required(),
|
|
701
1634
|
mapping: Joi.array()
|
|
702
|
-
.items(
|
|
1635
|
+
.items(ServiceabilityPlatformModel.ZoneMappingType())
|
|
703
1636
|
.required(),
|
|
704
1637
|
name: Joi.string().allow("").required(),
|
|
705
|
-
product:
|
|
1638
|
+
product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
|
|
706
1639
|
region_type: Joi.string().allow("").required(),
|
|
707
1640
|
slug: Joi.string().allow("").required(),
|
|
708
1641
|
store_ids: Joi.array().items(Joi.number()).required(),
|
|
709
1642
|
zone_id: Joi.string().allow("").required(),
|
|
710
1643
|
});
|
|
711
1644
|
}
|
|
1645
|
+
|
|
1646
|
+
/** @returns {WarningsResponse} */
|
|
712
1647
|
static WarningsResponse() {
|
|
713
1648
|
return Joi.object({
|
|
714
1649
|
store_address: Joi.string().allow(""),
|
|
715
1650
|
});
|
|
716
1651
|
}
|
|
1652
|
+
|
|
1653
|
+
/** @returns {Zone} */
|
|
717
1654
|
static Zone() {
|
|
718
1655
|
return Joi.object({
|
|
719
1656
|
assignment_preference: Joi.string().allow("").required(),
|
|
@@ -726,6 +1663,8 @@ class ServiceabilityModel {
|
|
|
726
1663
|
zone_id: Joi.string().allow("").required(),
|
|
727
1664
|
});
|
|
728
1665
|
}
|
|
1666
|
+
|
|
1667
|
+
/** @returns {ZoneDataItem} */
|
|
729
1668
|
static ZoneDataItem() {
|
|
730
1669
|
return Joi.object({
|
|
731
1670
|
current: Joi.number().required(),
|
|
@@ -735,6 +1674,8 @@ class ServiceabilityModel {
|
|
|
735
1674
|
type: Joi.string().allow("").required(),
|
|
736
1675
|
});
|
|
737
1676
|
}
|
|
1677
|
+
|
|
1678
|
+
/** @returns {ZoneMappingType} */
|
|
738
1679
|
static ZoneMappingType() {
|
|
739
1680
|
return Joi.object({
|
|
740
1681
|
country: Joi.string().allow("").required(),
|
|
@@ -742,18 +1683,24 @@ class ServiceabilityModel {
|
|
|
742
1683
|
state: Joi.array().items(Joi.string().allow("")),
|
|
743
1684
|
});
|
|
744
1685
|
}
|
|
1686
|
+
|
|
1687
|
+
/** @returns {ZoneProductTypes} */
|
|
745
1688
|
static ZoneProductTypes() {
|
|
746
1689
|
return Joi.object({
|
|
747
1690
|
tags: Joi.array().items(Joi.string().allow("")).required(),
|
|
748
1691
|
type: Joi.string().allow("").required(),
|
|
749
1692
|
});
|
|
750
1693
|
}
|
|
1694
|
+
|
|
1695
|
+
/** @returns {ZoneRequest} */
|
|
751
1696
|
static ZoneRequest() {
|
|
752
1697
|
return Joi.object({
|
|
753
|
-
data:
|
|
1698
|
+
data: ServiceabilityPlatformModel.CreateZoneData().required(),
|
|
754
1699
|
identifier: Joi.string().allow("").required(),
|
|
755
1700
|
});
|
|
756
1701
|
}
|
|
1702
|
+
|
|
1703
|
+
/** @returns {ZoneResponse} */
|
|
757
1704
|
static ZoneResponse() {
|
|
758
1705
|
return Joi.object({
|
|
759
1706
|
status_code: Joi.number().required(),
|
|
@@ -761,17 +1708,21 @@ class ServiceabilityModel {
|
|
|
761
1708
|
zone_id: Joi.string().allow("").required(),
|
|
762
1709
|
});
|
|
763
1710
|
}
|
|
1711
|
+
|
|
1712
|
+
/** @returns {ZoneSuccessResponse} */
|
|
764
1713
|
static ZoneSuccessResponse() {
|
|
765
1714
|
return Joi.object({
|
|
766
1715
|
status_code: Joi.number().required(),
|
|
767
1716
|
success: Joi.boolean().required(),
|
|
768
1717
|
});
|
|
769
1718
|
}
|
|
1719
|
+
|
|
1720
|
+
/** @returns {ZoneUpdateRequest} */
|
|
770
1721
|
static ZoneUpdateRequest() {
|
|
771
1722
|
return Joi.object({
|
|
772
|
-
data:
|
|
1723
|
+
data: ServiceabilityPlatformModel.UpdateZoneData().required(),
|
|
773
1724
|
identifier: Joi.string().allow("").required(),
|
|
774
1725
|
});
|
|
775
1726
|
}
|
|
776
1727
|
}
|
|
777
|
-
module.exports =
|
|
1728
|
+
module.exports = ServiceabilityPlatformModel;
|