@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,120 +1,643 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @typedef AddInventoryParam
|
|
7
|
+
* @property {number} itemId - Item code of the product of which size is to be get.
|
|
8
|
+
* @property {string} size - Size in which inventory is to be added.
|
|
9
|
+
* @property {CatalogPlatformModel.InventoryRequest} body
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @typedef AllSizesParam
|
|
14
|
+
* @property {number} itemId - Id of the product to be updated.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @typedef BulkHsnCodeParam
|
|
19
|
+
* @property {CatalogPlatformModel.BulkHsnUpsert} body
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @typedef CreateBulkInventoryParam
|
|
24
|
+
* @property {string} batchId - Batch Id of the bulk create job.
|
|
25
|
+
* @property {CatalogPlatformModel.InventoryBulkRequest} body
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @typedef CreateBulkInventoryJobParam
|
|
30
|
+
* @property {CatalogPlatformModel.BulkJob} body
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @typedef CreateBulkProductUploadJobParam
|
|
35
|
+
* @property {CatalogPlatformModel.BulkJob} body
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @typedef CreateCategoriesParam
|
|
40
|
+
* @property {CatalogPlatformModel.CategoryRequestBody} body
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @typedef CreateDepartmentsParam
|
|
45
|
+
* @property {CatalogPlatformModel.DepartmentCreateUpdate} body
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @typedef CreateInventoryExportParam
|
|
50
|
+
* @property {CatalogPlatformModel.InventoryCreateRequest} body
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @typedef CreateInventoryExportJobParam
|
|
55
|
+
* @property {CatalogPlatformModel.InventoryExportRequest} body
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @typedef CreateMarketplaceOptinParam
|
|
60
|
+
* @property {string} marketplace - The marketplace for which the detail needs
|
|
61
|
+
* to be retrieved.
|
|
62
|
+
* @property {CatalogPlatformModel.OptInPostRequest} body
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @typedef CreateProductParam
|
|
67
|
+
* @property {CatalogPlatformModel.ProductCreateUpdateSchemaV2} body
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @typedef CreateProductAssetsInBulkParam
|
|
72
|
+
* @property {CatalogPlatformModel.ProductBulkAssets} body
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @typedef CreateProductBundleParam
|
|
77
|
+
* @property {CatalogPlatformModel.ProductBundleRequest} body
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @typedef CreateProductExportJobParam
|
|
82
|
+
* @property {CatalogPlatformModel.ProductTemplateDownloadsExport} body
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @typedef CreateProductsInBulkParam
|
|
87
|
+
* @property {string} batchId - Batch Id in which assets to be uploaded.
|
|
88
|
+
* @property {CatalogPlatformModel.BulkProductRequest} body
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @typedef CreateSizeGuideParam
|
|
93
|
+
* @property {CatalogPlatformModel.ValidateSizeGuide} body
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @typedef DeleteBulkInventoryJobParam
|
|
98
|
+
* @property {string} batchId - Batch Id of the bulk delete job.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @typedef DeleteInventoryParam
|
|
103
|
+
* @property {string} size - Size that is to be deleted.
|
|
104
|
+
* @property {number} itemId - Id of the product associated with Inventory to be deleted.
|
|
105
|
+
* @property {number} locationId - Location ID of store of which inventory is to
|
|
106
|
+
* be deleted.
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @typedef DeleteProductParam
|
|
111
|
+
* @property {number} itemId - Id of the product to be updated.
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @typedef DeleteProductBulkJobParam
|
|
116
|
+
* @property {number} batchId - Batch Id of the bulk product job to be deleted.
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @typedef DeleteRealtimeInventoryParam
|
|
121
|
+
* @property {number} itemId - Item code of the product of which size is to be get.
|
|
122
|
+
* @property {string} sellerIdentifier - Size Identifier (Seller Identifier or
|
|
123
|
+
* Primary Identifier) of which inventory is to get.
|
|
124
|
+
* @property {CatalogPlatformModel.InventoryRequestSchemaV2} body
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @typedef DeleteSizeParam
|
|
129
|
+
* @property {number} itemId - Item Id of the product associated with size to be deleted.
|
|
130
|
+
* @property {string} size - Size to be deleted.
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @typedef DownloadInventoryTemplateViewParam
|
|
135
|
+
* @property {string} itemType - An `item_type` defines the type of item.
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @typedef DownloadProductTemplateViewsParam
|
|
140
|
+
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
141
|
+
*/
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @typedef EditProductParam
|
|
145
|
+
* @property {number} itemId - Id of the product to be updated.
|
|
146
|
+
* @property {CatalogPlatformModel.ProductCreateUpdateSchemaV2} body
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @typedef ExportInventoryConfigParam
|
|
151
|
+
* @property {string} [filterType] - Filter type from any one of ['brand',
|
|
152
|
+
* 'store', 'type']
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @typedef GetAllProductHsnCodesParam
|
|
157
|
+
* @property {number} [pageNo] - Page no
|
|
158
|
+
* @property {number} [pageSize] - Page size
|
|
159
|
+
* @property {string} [q] - Search using hsn code, description, reporting_hsn
|
|
160
|
+
* @property {string} [type] - Search using type
|
|
161
|
+
*/
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @typedef GetCategoryDataParam
|
|
165
|
+
* @property {string} uid - Category unique id
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @typedef GetCompanyBrandDetailParam
|
|
170
|
+
* @property {boolean} [isActive] - The is_active status for the optin id.
|
|
171
|
+
* @property {string} [q] - The search value to filter the list.
|
|
172
|
+
* @property {number} [pageNo] - The number of page for the company id.
|
|
173
|
+
* @property {number} [pageSize] - Number of records that can be seen on the
|
|
174
|
+
* page for the company id.
|
|
175
|
+
* @property {string} [marketplace] - The marketplace platform associated with
|
|
176
|
+
* the company id.
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
/** @typedef GetCompanyDetailParam */
|
|
180
|
+
|
|
181
|
+
/** @typedef GetCompanyMetricsParam */
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @typedef GetDepartmentDataParam
|
|
185
|
+
* @property {string} uid - A `uid` is a unique identifier of a department.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @typedef GetGenderAttributeParam
|
|
190
|
+
* @property {string} attributeSlug - Slug of the attribute for which you want
|
|
191
|
+
* to view the genders
|
|
192
|
+
*/
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @typedef GetHsnCodeParam
|
|
196
|
+
* @property {string} id - Unique id
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @typedef GetInventoriesParam
|
|
201
|
+
* @property {string} [itemId] - Item code of the product of which size is to be get.
|
|
202
|
+
* @property {string} [size] - Size of which inventory is to get.
|
|
203
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
204
|
+
* set of results
|
|
205
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
206
|
+
* Default is 12.
|
|
207
|
+
* @property {string} [q] - Search with help of store code.
|
|
208
|
+
* @property {boolean} [sellable] - Filter on whether product is in stock or not.
|
|
209
|
+
* @property {number[]} [storeIds] - The Store Id of products to fetch inventory.
|
|
210
|
+
* @property {string} [sizeIdentifier] - Size Identifier (Seller Identifier or
|
|
211
|
+
* Primary Identifier) of which inventory is to get.
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @typedef GetInventoryBulkUploadHistoryParam
|
|
216
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
217
|
+
* set of results
|
|
218
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
219
|
+
* Default is 12.
|
|
220
|
+
*/
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @typedef GetInventoryBySizeParam
|
|
224
|
+
* @property {number} itemId - Item code of the product of which size is to be get.
|
|
225
|
+
* @property {string} size - Size of which inventory is to get.
|
|
226
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
227
|
+
* set of results
|
|
228
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
229
|
+
* Default is 12.
|
|
230
|
+
* @property {string} [q] - Search with help of store code.
|
|
231
|
+
* @property {boolean} [sellable] - Filter on whether product is in stock or not.
|
|
232
|
+
*/
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @typedef GetInventoryBySizeIdentifierParam
|
|
236
|
+
* @property {number} itemId - Item code of the product of which size is to be get.
|
|
237
|
+
* @property {string} sizeIdentifier - Size Identifier (Seller Identifier or
|
|
238
|
+
* Primary Identifier) of which inventory is to get.
|
|
239
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
240
|
+
* set of results
|
|
241
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
242
|
+
* Default is 12.
|
|
243
|
+
* @property {string} [q] - Search with help of store code.
|
|
244
|
+
* @property {number[]} [locationIds] - Search by store ids.
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
/** @typedef GetInventoryExportParam */
|
|
248
|
+
|
|
249
|
+
/** @typedef GetMarketplaceOptinDetailParam */
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @typedef GetOptimalLocationsParam
|
|
253
|
+
* @property {CatalogPlatformModel.AssignStore} body
|
|
254
|
+
*/
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @typedef GetProductParam
|
|
258
|
+
* @property {number} itemId - Item Id of the product.
|
|
259
|
+
* @property {number} [brandUid] - Brand Id of the product.
|
|
260
|
+
* @property {string} [itemCode] - Item code of the product.
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @typedef GetProductAssetsInBulkParam
|
|
265
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
266
|
+
* set of results
|
|
267
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
268
|
+
* Default is 12.
|
|
269
|
+
*/
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @typedef GetProductAttributesParam
|
|
273
|
+
* @property {string} category - It is the name of the l3 cateogry
|
|
274
|
+
* @property {boolean} [filter] - If true, returns filtered values, else returns
|
|
275
|
+
* all the attributes
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @typedef GetProductBulkUploadHistoryParam
|
|
280
|
+
* @property {string} [search] - Search string to filter the results by batch id
|
|
281
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
282
|
+
* set of results
|
|
283
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
284
|
+
* Default is 12.
|
|
285
|
+
*/
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @typedef GetProductBundleParam
|
|
289
|
+
* @property {string} [q] - A search string that is searched with product bundle name.
|
|
290
|
+
* @property {string[]} [slug] - Slugs of bundles to be retrieved.
|
|
291
|
+
*/
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @typedef GetProductBundleDetailParam
|
|
295
|
+
* @property {string} id - A `id` is a unique identifier for a particular
|
|
296
|
+
* detail. Pass the `id` of the keywords which you want to retrieve.
|
|
297
|
+
*/
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @typedef GetProductExportJobsParam
|
|
301
|
+
* @property {string} [status] - This is a parameter used to find all the jobs
|
|
302
|
+
* with the specified status.
|
|
303
|
+
* @property {string} [fromDate] - This is a parameter used to find the job from
|
|
304
|
+
* the date specified to the current date.
|
|
305
|
+
* @property {string} [toDate] - This is a parameter used to find the job from
|
|
306
|
+
* the from_date specified to the to_date.
|
|
307
|
+
* @property {string} [q] - It is a query parameter to search the export job
|
|
308
|
+
* with the task ID.
|
|
309
|
+
*/
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @typedef GetProductSizeParam
|
|
313
|
+
* @property {string} [itemCode] - Item code of the product size.
|
|
314
|
+
* @property {number} itemId - Item Id of the product size.
|
|
315
|
+
* @property {number} [brandUid] - Brand Id of the product size.
|
|
316
|
+
* @property {number} [uid] - Id of the product size.
|
|
317
|
+
*/
|
|
318
|
+
|
|
319
|
+
/** @typedef GetProductTagsParam */
|
|
320
|
+
|
|
321
|
+
/** @typedef GetProductValidationParam */
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @typedef GetProductsParam
|
|
325
|
+
* @property {number[]} [brandIds] - Get multiple products filtered by Brand Ids
|
|
326
|
+
* @property {number[]} [categoryIds] - Get multiple products filtered by Category Ids
|
|
327
|
+
* @property {number[]} [itemIds] - Get multiple products filtered by Item Ids
|
|
328
|
+
* @property {number[]} [departmentIds] - Get multiple products filtered by Department Ids
|
|
329
|
+
* @property {string[]} [itemCode] - Get multiple products filtered by Item Code
|
|
330
|
+
* @property {string} [q] - Get multiple products filtered by q string
|
|
331
|
+
* @property {string[]} [tags] - Get multiple products filtered by tags
|
|
332
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
333
|
+
* set of results
|
|
334
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
335
|
+
* Default is 10.
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @typedef GetSellerInsightsParam
|
|
340
|
+
* @property {string} sellerAppId - Id of the seller application which is
|
|
341
|
+
* serving the invetory/catalog of the company
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @typedef GetSingleProductHSNCodeParam
|
|
346
|
+
* @property {string} reportingHsn - Reporting_hsn
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* @typedef GetSizeGuideParam
|
|
351
|
+
* @property {string} id - Id of the size guide to be viewed.
|
|
352
|
+
*/
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @typedef GetSizeGuidesParam
|
|
356
|
+
* @property {boolean} [active] - Filter size guide on basis of active, in-active
|
|
357
|
+
* @property {string} [q] - Query that is to be searched.
|
|
358
|
+
* @property {string} [tag] - To filter size guide on basis of tag.
|
|
359
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
360
|
+
* set of results
|
|
361
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
362
|
+
* Default is 10.
|
|
363
|
+
*/
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* @typedef GetStoreDetailParam
|
|
367
|
+
* @property {string} [q] - The search related the store for the company id.
|
|
368
|
+
* @property {number} [pageNo] - The number of page for the company id.
|
|
369
|
+
* @property {number} [pageSize] - Number of records that can be seen on the
|
|
370
|
+
* page for the company id.
|
|
371
|
+
*/
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @typedef GetVariantsOfProductsParam
|
|
375
|
+
* @property {number} itemId - Get list of variants of item Id
|
|
376
|
+
* @property {string} variantType - Get multiple products filtered by variant type
|
|
377
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
378
|
+
* set of results
|
|
379
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
380
|
+
* Default is 10.
|
|
381
|
+
*/
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* @typedef ListCategoriesParam
|
|
385
|
+
* @property {string} [level] - Get category for multiple levels
|
|
386
|
+
* @property {string} [departments] - Get category for multiple departments filtered
|
|
387
|
+
* @property {string} [q] - Get multiple categories filtered by search string
|
|
388
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
389
|
+
* set of results
|
|
390
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
391
|
+
* Default is 10.
|
|
392
|
+
*/
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* @typedef ListDepartmentsDataParam
|
|
396
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
397
|
+
* set of results
|
|
398
|
+
* @property {string} [itemType] - A `item_type` is a type of product eg. set,
|
|
399
|
+
* standard, digital
|
|
400
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
401
|
+
* Default is 10.
|
|
402
|
+
* @property {string} [name] - Can search departments by passing name.
|
|
403
|
+
* @property {string} [search] - Can search departments by passing name of the
|
|
404
|
+
* department in search parameter.
|
|
405
|
+
* @property {boolean} [isActive] - Can query for departments based on whether
|
|
406
|
+
* they are active or inactive.
|
|
407
|
+
*/
|
|
408
|
+
|
|
409
|
+
/** @typedef ListHSNCodesParam */
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* @typedef ListInventoryExportParam
|
|
413
|
+
* @property {string} [status] - Status of the export job.
|
|
414
|
+
* @property {string} [fromDate] - Inventory export history filtered according
|
|
415
|
+
* to from_date.
|
|
416
|
+
* @property {string} [toDate] - Inventory export history filtered according to from_date.
|
|
417
|
+
* @property {string} [q] - Inventory export history filtered according to task ID.
|
|
418
|
+
*/
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @typedef ListProductTemplateParam
|
|
422
|
+
* @property {string} department - A `department` is the name of a particular department.
|
|
423
|
+
*/
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @typedef ListProductTemplateCategoriesParam
|
|
427
|
+
* @property {string} departments - A `department` is name of a departments
|
|
428
|
+
* whose category needs to be listed. Can specify multiple departments.
|
|
429
|
+
* @property {string} itemType - An `item_type` is the type of item, it can be
|
|
430
|
+
* `set`, `standard`, `digital`, etc.
|
|
431
|
+
*/
|
|
432
|
+
|
|
433
|
+
/** @typedef ListProductTemplateExportDetailsParam */
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* @typedef ListTemplateBrandTypeValuesParam
|
|
437
|
+
* @property {string} filter - A `filter` is the unique identifier of the type
|
|
438
|
+
* of value required.
|
|
439
|
+
* @property {string} [templateTag] - A `template_tag` is the identifier of the
|
|
440
|
+
* type of template required.
|
|
441
|
+
* @property {string} [itemType] - A `item_type` is the identifier of the type
|
|
442
|
+
* of template required.
|
|
443
|
+
*/
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @typedef UpdateCategoryParam
|
|
447
|
+
* @property {string} uid - Category unique id
|
|
448
|
+
* @property {CatalogPlatformModel.CategoryRequestBody} body
|
|
449
|
+
*/
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* @typedef UpdateDepartmentParam
|
|
453
|
+
* @property {string} uid - A `uid` is a unique identifier of a department.
|
|
454
|
+
* @property {CatalogPlatformModel.DepartmentCreateUpdate} body
|
|
455
|
+
*/
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* @typedef UpdateHsnCodeParam
|
|
459
|
+
* @property {string} id - Unique id
|
|
460
|
+
* @property {CatalogPlatformModel.HsnUpsert} body
|
|
461
|
+
*/
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* @typedef UpdateInventoriesParam
|
|
465
|
+
* @property {CatalogPlatformModel.InventoryRequestSchemaV2} body
|
|
466
|
+
*/
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* @typedef UpdateProductBundleParam
|
|
470
|
+
* @property {string} id - A `id` is a unique identifier for a particular
|
|
471
|
+
* detail. Pass the `id` of the keywords which you want to delete.
|
|
472
|
+
* @property {CatalogPlatformModel.ProductBundleUpdateRequest} body
|
|
473
|
+
*/
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @typedef UpdateRealtimeInventoryParam
|
|
477
|
+
* @property {number} itemId - Item code of the product of which size is to be get.
|
|
478
|
+
* @property {string} sellerIdentifier - Size Identifier (Seller Identifier or
|
|
479
|
+
* Primary Identifier) of which inventory is to get.
|
|
480
|
+
* @property {CatalogPlatformModel.InventoryRequestSchemaV2} body
|
|
481
|
+
*/
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* @typedef UpdateSizeGuideParam
|
|
485
|
+
* @property {string} id - Mongo id of the size guide to be edited
|
|
486
|
+
* @property {CatalogPlatformModel.ValidateSizeGuide} body
|
|
487
|
+
*/
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* @typedef UploadBulkProductsParam
|
|
491
|
+
* @property {string} department - Department of the product to be uploaded.
|
|
492
|
+
* @property {string} productType - Product type of the product to be uploaded
|
|
493
|
+
* i.e. set, standard , digital.
|
|
494
|
+
* @property {CatalogPlatformModel.BulkJob} body
|
|
495
|
+
*/
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* @typedef ValidateProductTemplateParam
|
|
499
|
+
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
500
|
+
*/
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* @typedef ValidateProductTemplateSchemaParam
|
|
504
|
+
* @property {string} itemType - An `item_type` defines the type of item. The
|
|
505
|
+
* default value is standard.
|
|
506
|
+
*/
|
|
507
|
+
|
|
508
|
+
class CatalogPlatformValidator {
|
|
509
|
+
/** @returns {AddInventoryParam} */
|
|
5
510
|
static addInventory() {
|
|
6
511
|
return Joi.object({
|
|
7
512
|
itemId: Joi.number().required(),
|
|
8
513
|
size: Joi.string().allow("").required(),
|
|
9
|
-
body:
|
|
514
|
+
body: CatalogPlatformModel.InventoryRequest().required(),
|
|
10
515
|
}).required();
|
|
11
516
|
}
|
|
12
517
|
|
|
518
|
+
/** @returns {AllSizesParam} */
|
|
13
519
|
static allSizes() {
|
|
14
520
|
return Joi.object({
|
|
15
521
|
itemId: Joi.number().required(),
|
|
16
522
|
}).required();
|
|
17
523
|
}
|
|
18
524
|
|
|
525
|
+
/** @returns {BulkHsnCodeParam} */
|
|
19
526
|
static bulkHsnCode() {
|
|
20
527
|
return Joi.object({
|
|
21
|
-
body:
|
|
528
|
+
body: CatalogPlatformModel.BulkHsnUpsert().required(),
|
|
22
529
|
}).required();
|
|
23
530
|
}
|
|
24
531
|
|
|
532
|
+
/** @returns {CreateBulkInventoryParam} */
|
|
25
533
|
static createBulkInventory() {
|
|
26
534
|
return Joi.object({
|
|
27
535
|
batchId: Joi.string().allow("").required(),
|
|
28
|
-
body:
|
|
536
|
+
body: CatalogPlatformModel.InventoryBulkRequest().required(),
|
|
29
537
|
}).required();
|
|
30
538
|
}
|
|
31
539
|
|
|
540
|
+
/** @returns {CreateBulkInventoryJobParam} */
|
|
32
541
|
static createBulkInventoryJob() {
|
|
33
542
|
return Joi.object({
|
|
34
|
-
body:
|
|
543
|
+
body: CatalogPlatformModel.BulkJob().required(),
|
|
35
544
|
}).required();
|
|
36
545
|
}
|
|
37
546
|
|
|
547
|
+
/** @returns {CreateBulkProductUploadJobParam} */
|
|
38
548
|
static createBulkProductUploadJob() {
|
|
39
549
|
return Joi.object({
|
|
40
|
-
body:
|
|
550
|
+
body: CatalogPlatformModel.BulkJob().required(),
|
|
41
551
|
}).required();
|
|
42
552
|
}
|
|
43
553
|
|
|
554
|
+
/** @returns {CreateCategoriesParam} */
|
|
44
555
|
static createCategories() {
|
|
45
556
|
return Joi.object({
|
|
46
|
-
body:
|
|
557
|
+
body: CatalogPlatformModel.CategoryRequestBody().required(),
|
|
47
558
|
}).required();
|
|
48
559
|
}
|
|
49
560
|
|
|
561
|
+
/** @returns {CreateDepartmentsParam} */
|
|
50
562
|
static createDepartments() {
|
|
51
563
|
return Joi.object({
|
|
52
|
-
body:
|
|
564
|
+
body: CatalogPlatformModel.DepartmentCreateUpdate().required(),
|
|
53
565
|
}).required();
|
|
54
566
|
}
|
|
55
567
|
|
|
568
|
+
/** @returns {CreateInventoryExportParam} */
|
|
56
569
|
static createInventoryExport() {
|
|
57
570
|
return Joi.object({
|
|
58
|
-
body:
|
|
571
|
+
body: CatalogPlatformModel.InventoryCreateRequest().required(),
|
|
59
572
|
}).required();
|
|
60
573
|
}
|
|
61
574
|
|
|
575
|
+
/** @returns {CreateInventoryExportJobParam} */
|
|
62
576
|
static createInventoryExportJob() {
|
|
63
577
|
return Joi.object({
|
|
64
|
-
body:
|
|
578
|
+
body: CatalogPlatformModel.InventoryExportRequest().required(),
|
|
65
579
|
}).required();
|
|
66
580
|
}
|
|
67
581
|
|
|
582
|
+
/** @returns {CreateMarketplaceOptinParam} */
|
|
68
583
|
static createMarketplaceOptin() {
|
|
69
584
|
return Joi.object({
|
|
70
585
|
marketplace: Joi.string().allow("").required(),
|
|
71
|
-
body:
|
|
586
|
+
body: CatalogPlatformModel.OptInPostRequest().required(),
|
|
72
587
|
}).required();
|
|
73
588
|
}
|
|
74
589
|
|
|
590
|
+
/** @returns {CreateProductParam} */
|
|
75
591
|
static createProduct() {
|
|
76
592
|
return Joi.object({
|
|
77
|
-
body:
|
|
593
|
+
body: CatalogPlatformModel.ProductCreateUpdateSchemaV2().required(),
|
|
78
594
|
}).required();
|
|
79
595
|
}
|
|
80
596
|
|
|
597
|
+
/** @returns {CreateProductAssetsInBulkParam} */
|
|
81
598
|
static createProductAssetsInBulk() {
|
|
82
599
|
return Joi.object({
|
|
83
|
-
body:
|
|
600
|
+
body: CatalogPlatformModel.ProductBulkAssets().required(),
|
|
84
601
|
}).required();
|
|
85
602
|
}
|
|
86
603
|
|
|
604
|
+
/** @returns {CreateProductBundleParam} */
|
|
87
605
|
static createProductBundle() {
|
|
88
606
|
return Joi.object({
|
|
89
|
-
body:
|
|
607
|
+
body: CatalogPlatformModel.ProductBundleRequest().required(),
|
|
90
608
|
}).required();
|
|
91
609
|
}
|
|
92
610
|
|
|
611
|
+
/** @returns {CreateProductExportJobParam} */
|
|
93
612
|
static createProductExportJob() {
|
|
94
613
|
return Joi.object({
|
|
95
|
-
body:
|
|
614
|
+
body: CatalogPlatformModel.ProductTemplateDownloadsExport().required(),
|
|
96
615
|
}).required();
|
|
97
616
|
}
|
|
98
617
|
|
|
618
|
+
/** @returns {CreateProductsInBulkParam} */
|
|
99
619
|
static createProductsInBulk() {
|
|
100
620
|
return Joi.object({
|
|
101
621
|
batchId: Joi.string().allow("").required(),
|
|
102
|
-
body:
|
|
622
|
+
body: CatalogPlatformModel.BulkProductRequest().required(),
|
|
103
623
|
}).required();
|
|
104
624
|
}
|
|
105
625
|
|
|
626
|
+
/** @returns {CreateSizeGuideParam} */
|
|
106
627
|
static createSizeGuide() {
|
|
107
628
|
return Joi.object({
|
|
108
|
-
body:
|
|
629
|
+
body: CatalogPlatformModel.ValidateSizeGuide().required(),
|
|
109
630
|
}).required();
|
|
110
631
|
}
|
|
111
632
|
|
|
633
|
+
/** @returns {DeleteBulkInventoryJobParam} */
|
|
112
634
|
static deleteBulkInventoryJob() {
|
|
113
635
|
return Joi.object({
|
|
114
636
|
batchId: Joi.string().allow("").required(),
|
|
115
637
|
}).required();
|
|
116
638
|
}
|
|
117
639
|
|
|
640
|
+
/** @returns {DeleteInventoryParam} */
|
|
118
641
|
static deleteInventory() {
|
|
119
642
|
return Joi.object({
|
|
120
643
|
size: Joi.string().allow("").required(),
|
|
@@ -123,26 +646,30 @@ class CatalogValidator {
|
|
|
123
646
|
}).required();
|
|
124
647
|
}
|
|
125
648
|
|
|
649
|
+
/** @returns {DeleteProductParam} */
|
|
126
650
|
static deleteProduct() {
|
|
127
651
|
return Joi.object({
|
|
128
652
|
itemId: Joi.number().required(),
|
|
129
653
|
}).required();
|
|
130
654
|
}
|
|
131
655
|
|
|
656
|
+
/** @returns {DeleteProductBulkJobParam} */
|
|
132
657
|
static deleteProductBulkJob() {
|
|
133
658
|
return Joi.object({
|
|
134
659
|
batchId: Joi.number().required(),
|
|
135
660
|
}).required();
|
|
136
661
|
}
|
|
137
662
|
|
|
663
|
+
/** @returns {DeleteRealtimeInventoryParam} */
|
|
138
664
|
static deleteRealtimeInventory() {
|
|
139
665
|
return Joi.object({
|
|
140
666
|
itemId: Joi.number().required(),
|
|
141
667
|
sellerIdentifier: Joi.string().allow("").required(),
|
|
142
|
-
body:
|
|
668
|
+
body: CatalogPlatformModel.InventoryRequestSchemaV2().required(),
|
|
143
669
|
}).required();
|
|
144
670
|
}
|
|
145
671
|
|
|
672
|
+
/** @returns {DeleteSizeParam} */
|
|
146
673
|
static deleteSize() {
|
|
147
674
|
return Joi.object({
|
|
148
675
|
itemId: Joi.number().required(),
|
|
@@ -150,31 +677,36 @@ class CatalogValidator {
|
|
|
150
677
|
}).required();
|
|
151
678
|
}
|
|
152
679
|
|
|
680
|
+
/** @returns {DownloadInventoryTemplateViewParam} */
|
|
153
681
|
static downloadInventoryTemplateView() {
|
|
154
682
|
return Joi.object({
|
|
155
683
|
itemType: Joi.string().allow("").required(),
|
|
156
684
|
}).required();
|
|
157
685
|
}
|
|
158
686
|
|
|
687
|
+
/** @returns {DownloadProductTemplateViewsParam} */
|
|
159
688
|
static downloadProductTemplateViews() {
|
|
160
689
|
return Joi.object({
|
|
161
690
|
slug: Joi.string().allow("").required(),
|
|
162
691
|
}).required();
|
|
163
692
|
}
|
|
164
693
|
|
|
694
|
+
/** @returns {EditProductParam} */
|
|
165
695
|
static editProduct() {
|
|
166
696
|
return Joi.object({
|
|
167
697
|
itemId: Joi.number().required(),
|
|
168
|
-
body:
|
|
698
|
+
body: CatalogPlatformModel.ProductCreateUpdateSchemaV2().required(),
|
|
169
699
|
}).required();
|
|
170
700
|
}
|
|
171
701
|
|
|
702
|
+
/** @returns {ExportInventoryConfigParam} */
|
|
172
703
|
static exportInventoryConfig() {
|
|
173
704
|
return Joi.object({
|
|
174
705
|
filterType: Joi.string().allow(""),
|
|
175
706
|
}).required();
|
|
176
707
|
}
|
|
177
708
|
|
|
709
|
+
/** @returns {GetAllProductHsnCodesParam} */
|
|
178
710
|
static getAllProductHsnCodes() {
|
|
179
711
|
return Joi.object({
|
|
180
712
|
pageNo: Joi.number(),
|
|
@@ -184,12 +716,14 @@ class CatalogValidator {
|
|
|
184
716
|
}).required();
|
|
185
717
|
}
|
|
186
718
|
|
|
719
|
+
/** @returns {GetCategoryDataParam} */
|
|
187
720
|
static getCategoryData() {
|
|
188
721
|
return Joi.object({
|
|
189
722
|
uid: Joi.string().allow("").required(),
|
|
190
723
|
}).required();
|
|
191
724
|
}
|
|
192
725
|
|
|
726
|
+
/** @returns {GetCompanyBrandDetailParam} */
|
|
193
727
|
static getCompanyBrandDetail() {
|
|
194
728
|
return Joi.object({
|
|
195
729
|
isActive: Joi.boolean(),
|
|
@@ -200,32 +734,38 @@ class CatalogValidator {
|
|
|
200
734
|
}).required();
|
|
201
735
|
}
|
|
202
736
|
|
|
737
|
+
/** @returns {GetCompanyDetailParam} */
|
|
203
738
|
static getCompanyDetail() {
|
|
204
739
|
return Joi.object({}).required();
|
|
205
740
|
}
|
|
206
741
|
|
|
742
|
+
/** @returns {GetCompanyMetricsParam} */
|
|
207
743
|
static getCompanyMetrics() {
|
|
208
744
|
return Joi.object({}).required();
|
|
209
745
|
}
|
|
210
746
|
|
|
747
|
+
/** @returns {GetDepartmentDataParam} */
|
|
211
748
|
static getDepartmentData() {
|
|
212
749
|
return Joi.object({
|
|
213
750
|
uid: Joi.string().allow("").required(),
|
|
214
751
|
}).required();
|
|
215
752
|
}
|
|
216
753
|
|
|
754
|
+
/** @returns {GetGenderAttributeParam} */
|
|
217
755
|
static getGenderAttribute() {
|
|
218
756
|
return Joi.object({
|
|
219
757
|
attributeSlug: Joi.string().allow("").required(),
|
|
220
758
|
}).required();
|
|
221
759
|
}
|
|
222
760
|
|
|
761
|
+
/** @returns {GetHsnCodeParam} */
|
|
223
762
|
static getHsnCode() {
|
|
224
763
|
return Joi.object({
|
|
225
764
|
id: Joi.string().allow("").required(),
|
|
226
765
|
}).required();
|
|
227
766
|
}
|
|
228
767
|
|
|
768
|
+
/** @returns {GetInventoriesParam} */
|
|
229
769
|
static getInventories() {
|
|
230
770
|
return Joi.object({
|
|
231
771
|
itemId: Joi.string().allow(""),
|
|
@@ -239,6 +779,7 @@ class CatalogValidator {
|
|
|
239
779
|
}).required();
|
|
240
780
|
}
|
|
241
781
|
|
|
782
|
+
/** @returns {GetInventoryBulkUploadHistoryParam} */
|
|
242
783
|
static getInventoryBulkUploadHistory() {
|
|
243
784
|
return Joi.object({
|
|
244
785
|
pageNo: Joi.number(),
|
|
@@ -246,6 +787,7 @@ class CatalogValidator {
|
|
|
246
787
|
}).required();
|
|
247
788
|
}
|
|
248
789
|
|
|
790
|
+
/** @returns {GetInventoryBySizeParam} */
|
|
249
791
|
static getInventoryBySize() {
|
|
250
792
|
return Joi.object({
|
|
251
793
|
itemId: Joi.number().required(),
|
|
@@ -257,6 +799,7 @@ class CatalogValidator {
|
|
|
257
799
|
}).required();
|
|
258
800
|
}
|
|
259
801
|
|
|
802
|
+
/** @returns {GetInventoryBySizeIdentifierParam} */
|
|
260
803
|
static getInventoryBySizeIdentifier() {
|
|
261
804
|
return Joi.object({
|
|
262
805
|
itemId: Joi.number().required(),
|
|
@@ -268,20 +811,24 @@ class CatalogValidator {
|
|
|
268
811
|
}).required();
|
|
269
812
|
}
|
|
270
813
|
|
|
814
|
+
/** @returns {GetInventoryExportParam} */
|
|
271
815
|
static getInventoryExport() {
|
|
272
816
|
return Joi.object({}).required();
|
|
273
817
|
}
|
|
274
818
|
|
|
819
|
+
/** @returns {GetMarketplaceOptinDetailParam} */
|
|
275
820
|
static getMarketplaceOptinDetail() {
|
|
276
821
|
return Joi.object({}).required();
|
|
277
822
|
}
|
|
278
823
|
|
|
824
|
+
/** @returns {GetOptimalLocationsParam} */
|
|
279
825
|
static getOptimalLocations() {
|
|
280
826
|
return Joi.object({
|
|
281
|
-
body:
|
|
827
|
+
body: CatalogPlatformModel.AssignStore().required(),
|
|
282
828
|
}).required();
|
|
283
829
|
}
|
|
284
830
|
|
|
831
|
+
/** @returns {GetProductParam} */
|
|
285
832
|
static getProduct() {
|
|
286
833
|
return Joi.object({
|
|
287
834
|
itemId: Joi.number().required(),
|
|
@@ -290,6 +837,7 @@ class CatalogValidator {
|
|
|
290
837
|
}).required();
|
|
291
838
|
}
|
|
292
839
|
|
|
840
|
+
/** @returns {GetProductAssetsInBulkParam} */
|
|
293
841
|
static getProductAssetsInBulk() {
|
|
294
842
|
return Joi.object({
|
|
295
843
|
pageNo: Joi.number(),
|
|
@@ -297,6 +845,7 @@ class CatalogValidator {
|
|
|
297
845
|
}).required();
|
|
298
846
|
}
|
|
299
847
|
|
|
848
|
+
/** @returns {GetProductAttributesParam} */
|
|
300
849
|
static getProductAttributes() {
|
|
301
850
|
return Joi.object({
|
|
302
851
|
category: Joi.string().allow("").required(),
|
|
@@ -304,6 +853,7 @@ class CatalogValidator {
|
|
|
304
853
|
}).required();
|
|
305
854
|
}
|
|
306
855
|
|
|
856
|
+
/** @returns {GetProductBulkUploadHistoryParam} */
|
|
307
857
|
static getProductBulkUploadHistory() {
|
|
308
858
|
return Joi.object({
|
|
309
859
|
search: Joi.string().allow(""),
|
|
@@ -312,6 +862,7 @@ class CatalogValidator {
|
|
|
312
862
|
}).required();
|
|
313
863
|
}
|
|
314
864
|
|
|
865
|
+
/** @returns {GetProductBundleParam} */
|
|
315
866
|
static getProductBundle() {
|
|
316
867
|
return Joi.object({
|
|
317
868
|
q: Joi.string().allow(""),
|
|
@@ -319,12 +870,14 @@ class CatalogValidator {
|
|
|
319
870
|
}).required();
|
|
320
871
|
}
|
|
321
872
|
|
|
873
|
+
/** @returns {GetProductBundleDetailParam} */
|
|
322
874
|
static getProductBundleDetail() {
|
|
323
875
|
return Joi.object({
|
|
324
876
|
id: Joi.string().allow("").required(),
|
|
325
877
|
}).required();
|
|
326
878
|
}
|
|
327
879
|
|
|
880
|
+
/** @returns {GetProductExportJobsParam} */
|
|
328
881
|
static getProductExportJobs() {
|
|
329
882
|
return Joi.object({
|
|
330
883
|
status: Joi.string().allow(""),
|
|
@@ -334,6 +887,7 @@ class CatalogValidator {
|
|
|
334
887
|
}).required();
|
|
335
888
|
}
|
|
336
889
|
|
|
890
|
+
/** @returns {GetProductSizeParam} */
|
|
337
891
|
static getProductSize() {
|
|
338
892
|
return Joi.object({
|
|
339
893
|
itemCode: Joi.string().allow(""),
|
|
@@ -343,14 +897,17 @@ class CatalogValidator {
|
|
|
343
897
|
}).required();
|
|
344
898
|
}
|
|
345
899
|
|
|
900
|
+
/** @returns {GetProductTagsParam} */
|
|
346
901
|
static getProductTags() {
|
|
347
902
|
return Joi.object({}).required();
|
|
348
903
|
}
|
|
349
904
|
|
|
905
|
+
/** @returns {GetProductValidationParam} */
|
|
350
906
|
static getProductValidation() {
|
|
351
907
|
return Joi.object({}).required();
|
|
352
908
|
}
|
|
353
909
|
|
|
910
|
+
/** @returns {GetProductsParam} */
|
|
354
911
|
static getProducts() {
|
|
355
912
|
return Joi.object({
|
|
356
913
|
brandIds: Joi.array().items(Joi.number()),
|
|
@@ -365,24 +922,28 @@ class CatalogValidator {
|
|
|
365
922
|
}).required();
|
|
366
923
|
}
|
|
367
924
|
|
|
925
|
+
/** @returns {GetSellerInsightsParam} */
|
|
368
926
|
static getSellerInsights() {
|
|
369
927
|
return Joi.object({
|
|
370
928
|
sellerAppId: Joi.string().allow("").required(),
|
|
371
929
|
}).required();
|
|
372
930
|
}
|
|
373
931
|
|
|
932
|
+
/** @returns {GetSingleProductHSNCodeParam} */
|
|
374
933
|
static getSingleProductHSNCode() {
|
|
375
934
|
return Joi.object({
|
|
376
935
|
reportingHsn: Joi.string().allow("").required(),
|
|
377
936
|
}).required();
|
|
378
937
|
}
|
|
379
938
|
|
|
939
|
+
/** @returns {GetSizeGuideParam} */
|
|
380
940
|
static getSizeGuide() {
|
|
381
941
|
return Joi.object({
|
|
382
942
|
id: Joi.string().allow("").required(),
|
|
383
943
|
}).required();
|
|
384
944
|
}
|
|
385
945
|
|
|
946
|
+
/** @returns {GetSizeGuidesParam} */
|
|
386
947
|
static getSizeGuides() {
|
|
387
948
|
return Joi.object({
|
|
388
949
|
active: Joi.boolean(),
|
|
@@ -393,6 +954,7 @@ class CatalogValidator {
|
|
|
393
954
|
}).required();
|
|
394
955
|
}
|
|
395
956
|
|
|
957
|
+
/** @returns {GetStoreDetailParam} */
|
|
396
958
|
static getStoreDetail() {
|
|
397
959
|
return Joi.object({
|
|
398
960
|
q: Joi.string().allow(""),
|
|
@@ -401,6 +963,7 @@ class CatalogValidator {
|
|
|
401
963
|
}).required();
|
|
402
964
|
}
|
|
403
965
|
|
|
966
|
+
/** @returns {GetVariantsOfProductsParam} */
|
|
404
967
|
static getVariantsOfProducts() {
|
|
405
968
|
return Joi.object({
|
|
406
969
|
itemId: Joi.number().required(),
|
|
@@ -410,6 +973,7 @@ class CatalogValidator {
|
|
|
410
973
|
}).required();
|
|
411
974
|
}
|
|
412
975
|
|
|
976
|
+
/** @returns {ListCategoriesParam} */
|
|
413
977
|
static listCategories() {
|
|
414
978
|
return Joi.object({
|
|
415
979
|
level: Joi.string().allow(""),
|
|
@@ -420,6 +984,7 @@ class CatalogValidator {
|
|
|
420
984
|
}).required();
|
|
421
985
|
}
|
|
422
986
|
|
|
987
|
+
/** @returns {ListDepartmentsDataParam} */
|
|
423
988
|
static listDepartmentsData() {
|
|
424
989
|
return Joi.object({
|
|
425
990
|
pageNo: Joi.number(),
|
|
@@ -431,10 +996,12 @@ class CatalogValidator {
|
|
|
431
996
|
}).required();
|
|
432
997
|
}
|
|
433
998
|
|
|
999
|
+
/** @returns {ListHSNCodesParam} */
|
|
434
1000
|
static listHSNCodes() {
|
|
435
1001
|
return Joi.object({}).required();
|
|
436
1002
|
}
|
|
437
1003
|
|
|
1004
|
+
/** @returns {ListInventoryExportParam} */
|
|
438
1005
|
static listInventoryExport() {
|
|
439
1006
|
return Joi.object({
|
|
440
1007
|
status: Joi.string().allow(""),
|
|
@@ -444,12 +1011,14 @@ class CatalogValidator {
|
|
|
444
1011
|
}).required();
|
|
445
1012
|
}
|
|
446
1013
|
|
|
1014
|
+
/** @returns {ListProductTemplateParam} */
|
|
447
1015
|
static listProductTemplate() {
|
|
448
1016
|
return Joi.object({
|
|
449
1017
|
department: Joi.string().allow("").required(),
|
|
450
1018
|
}).required();
|
|
451
1019
|
}
|
|
452
1020
|
|
|
1021
|
+
/** @returns {ListProductTemplateCategoriesParam} */
|
|
453
1022
|
static listProductTemplateCategories() {
|
|
454
1023
|
return Joi.object({
|
|
455
1024
|
departments: Joi.string().allow("").required(),
|
|
@@ -457,10 +1026,12 @@ class CatalogValidator {
|
|
|
457
1026
|
}).required();
|
|
458
1027
|
}
|
|
459
1028
|
|
|
1029
|
+
/** @returns {ListProductTemplateExportDetailsParam} */
|
|
460
1030
|
static listProductTemplateExportDetails() {
|
|
461
1031
|
return Joi.object({}).required();
|
|
462
1032
|
}
|
|
463
1033
|
|
|
1034
|
+
/** @returns {ListTemplateBrandTypeValuesParam} */
|
|
464
1035
|
static listTemplateBrandTypeValues() {
|
|
465
1036
|
return Joi.object({
|
|
466
1037
|
filter: Joi.string().allow("").required(),
|
|
@@ -469,69 +1040,79 @@ class CatalogValidator {
|
|
|
469
1040
|
}).required();
|
|
470
1041
|
}
|
|
471
1042
|
|
|
1043
|
+
/** @returns {UpdateCategoryParam} */
|
|
472
1044
|
static updateCategory() {
|
|
473
1045
|
return Joi.object({
|
|
474
1046
|
uid: Joi.string().allow("").required(),
|
|
475
|
-
body:
|
|
1047
|
+
body: CatalogPlatformModel.CategoryRequestBody().required(),
|
|
476
1048
|
}).required();
|
|
477
1049
|
}
|
|
478
1050
|
|
|
1051
|
+
/** @returns {UpdateDepartmentParam} */
|
|
479
1052
|
static updateDepartment() {
|
|
480
1053
|
return Joi.object({
|
|
481
1054
|
uid: Joi.string().allow("").required(),
|
|
482
|
-
body:
|
|
1055
|
+
body: CatalogPlatformModel.DepartmentCreateUpdate().required(),
|
|
483
1056
|
}).required();
|
|
484
1057
|
}
|
|
485
1058
|
|
|
1059
|
+
/** @returns {UpdateHsnCodeParam} */
|
|
486
1060
|
static updateHsnCode() {
|
|
487
1061
|
return Joi.object({
|
|
488
1062
|
id: Joi.string().allow("").required(),
|
|
489
|
-
body:
|
|
1063
|
+
body: CatalogPlatformModel.HsnUpsert().required(),
|
|
490
1064
|
}).required();
|
|
491
1065
|
}
|
|
492
1066
|
|
|
1067
|
+
/** @returns {UpdateInventoriesParam} */
|
|
493
1068
|
static updateInventories() {
|
|
494
1069
|
return Joi.object({
|
|
495
|
-
body:
|
|
1070
|
+
body: CatalogPlatformModel.InventoryRequestSchemaV2().required(),
|
|
496
1071
|
}).required();
|
|
497
1072
|
}
|
|
498
1073
|
|
|
1074
|
+
/** @returns {UpdateProductBundleParam} */
|
|
499
1075
|
static updateProductBundle() {
|
|
500
1076
|
return Joi.object({
|
|
501
1077
|
id: Joi.string().allow("").required(),
|
|
502
|
-
body:
|
|
1078
|
+
body: CatalogPlatformModel.ProductBundleUpdateRequest().required(),
|
|
503
1079
|
}).required();
|
|
504
1080
|
}
|
|
505
1081
|
|
|
1082
|
+
/** @returns {UpdateRealtimeInventoryParam} */
|
|
506
1083
|
static updateRealtimeInventory() {
|
|
507
1084
|
return Joi.object({
|
|
508
1085
|
itemId: Joi.number().required(),
|
|
509
1086
|
sellerIdentifier: Joi.string().allow("").required(),
|
|
510
|
-
body:
|
|
1087
|
+
body: CatalogPlatformModel.InventoryRequestSchemaV2().required(),
|
|
511
1088
|
}).required();
|
|
512
1089
|
}
|
|
513
1090
|
|
|
1091
|
+
/** @returns {UpdateSizeGuideParam} */
|
|
514
1092
|
static updateSizeGuide() {
|
|
515
1093
|
return Joi.object({
|
|
516
1094
|
id: Joi.string().allow("").required(),
|
|
517
|
-
body:
|
|
1095
|
+
body: CatalogPlatformModel.ValidateSizeGuide().required(),
|
|
518
1096
|
}).required();
|
|
519
1097
|
}
|
|
520
1098
|
|
|
1099
|
+
/** @returns {UploadBulkProductsParam} */
|
|
521
1100
|
static uploadBulkProducts() {
|
|
522
1101
|
return Joi.object({
|
|
523
1102
|
department: Joi.string().allow("").required(),
|
|
524
1103
|
productType: Joi.string().allow("").required(),
|
|
525
|
-
body:
|
|
1104
|
+
body: CatalogPlatformModel.BulkJob().required(),
|
|
526
1105
|
}).required();
|
|
527
1106
|
}
|
|
528
1107
|
|
|
1108
|
+
/** @returns {ValidateProductTemplateParam} */
|
|
529
1109
|
static validateProductTemplate() {
|
|
530
1110
|
return Joi.object({
|
|
531
1111
|
slug: Joi.string().allow("").required(),
|
|
532
1112
|
}).required();
|
|
533
1113
|
}
|
|
534
1114
|
|
|
1115
|
+
/** @returns {ValidateProductTemplateSchemaParam} */
|
|
535
1116
|
static validateProductTemplateSchema() {
|
|
536
1117
|
return Joi.object({
|
|
537
1118
|
itemType: Joi.string().allow("").required(),
|
|
@@ -539,4 +1120,4 @@ class CatalogValidator {
|
|
|
539
1120
|
}
|
|
540
1121
|
}
|
|
541
1122
|
|
|
542
|
-
module.exports =
|
|
1123
|
+
module.exports = CatalogPlatformValidator;
|