@gofynd/fdk-client-javascript 1.1.6 → 1.3.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 +52 -3
- package/index.js +0 -3
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +12 -3
- package/sdk/application/ApplicationClient.d.ts +36 -6
- package/sdk/application/ApplicationClient.js +30 -43
- package/sdk/application/ApplicationConfig.d.ts +92 -12
- package/sdk/application/ApplicationConfig.js +48 -14
- package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
- package/sdk/application/Cart/CartApplicationClient.js +711 -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 +274 -422
- package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
- package/sdk/application/Common/CommonApplicationClient.js +52 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
- package/sdk/application/Common/CommonApplicationModel.js +192 -40
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
- package/sdk/application/Content/ContentApplicationClient.js +489 -278
- package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
- package/sdk/application/Content/ContentApplicationModel.js +737 -396
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
- package/sdk/application/Lead/LeadApplicationClient.js +188 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
- package/sdk/application/Lead/LeadApplicationModel.js +330 -244
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +131 -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 +93 -133
- package/sdk/application/Order/OrderApplicationClient.js +329 -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 +400 -366
- package/sdk/application/Payment/PaymentApplicationClient.js +1176 -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 +205 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +720 -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 +58 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +187 -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 +52 -50
- package/sdk/application/Share/ShareApplicationClient.js +185 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
- package/sdk/application/Share/ShareApplicationModel.js +131 -31
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +260 -305
- package/sdk/application/User/UserApplicationClient.js +910 -522
- package/sdk/application/User/UserApplicationModel.d.ts +992 -101
- package/sdk/application/User/UserApplicationModel.js +699 -248
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +7 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +16 -1
- package/sdk/partner/PartnerAPIClient.js +12 -2
- package/sdk/partner/PartnerClient.d.ts +22 -3
- package/sdk/partner/PartnerClient.js +20 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -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 +3839 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -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 +652 -826
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
- package/sdk/platform/Common/CommonPlatformClient.js +50 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
- package/sdk/platform/Common/CommonPlatformModel.js +214 -40
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -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 +1472 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
- package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +189 -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 +109 -52
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
- package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -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 +100 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -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 +89 -104
- package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -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 +437 -556
- package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -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 +31 -12581
- package/sdk/platform/PlatformClient.js +30 -15089
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -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 +360 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -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 +41 -66
- package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
- 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 +167 -19
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
- package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
- package/sdk/platform/User/UserPlatformModel.js +467 -424
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
- package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +161 -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/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +21 -3
- package/sdk/public/PublicClient.js +20 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -3
- package/sdk/application/ApplicationModels.js +0 -20
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
|
@@ -1,120 +1,652 @@
|
|
|
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
|
+
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
142
|
+
* default value is standard.
|
|
143
|
+
* @property {string} [type] - Format type of the sample file. The default value is excel.
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @typedef EditProductParam
|
|
148
|
+
* @property {number} itemId - Id of the product to be updated.
|
|
149
|
+
* @property {CatalogPlatformModel.ProductCreateUpdateSchemaV2} body
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @typedef ExportInventoryConfigParam
|
|
154
|
+
* @property {string} [filterType] - Filter type from any one of ['brand',
|
|
155
|
+
* 'store', 'type']
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @typedef GetAllProductHsnCodesParam
|
|
160
|
+
* @property {number} [pageNo] - Page no
|
|
161
|
+
* @property {number} [pageSize] - Page size
|
|
162
|
+
* @property {string} [q] - Search using hsn code, description, reporting_hsn
|
|
163
|
+
* @property {string} [type] - Search using type
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @typedef GetCategoryDataParam
|
|
168
|
+
* @property {string} uid - Category unique id
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @typedef GetCompanyBrandDetailParam
|
|
173
|
+
* @property {boolean} [isActive] - The is_active status for the optin id.
|
|
174
|
+
* @property {string} [q] - The search value to filter the list.
|
|
175
|
+
* @property {number} [pageNo] - The number of page for the company id.
|
|
176
|
+
* @property {number} [pageSize] - Number of records that can be seen on the
|
|
177
|
+
* page for the company id.
|
|
178
|
+
* @property {string} [marketplace] - The marketplace platform associated with
|
|
179
|
+
* the company id.
|
|
180
|
+
*/
|
|
181
|
+
|
|
182
|
+
/** @typedef GetCompanyDetailParam */
|
|
183
|
+
|
|
184
|
+
/** @typedef GetCompanyMetricsParam */
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @typedef GetDepartmentDataParam
|
|
188
|
+
* @property {string} uid - A `uid` is a unique identifier of a department.
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @typedef GetGenderAttributeParam
|
|
193
|
+
* @property {string} attributeSlug - Slug of the attribute for which you want
|
|
194
|
+
* to view the genders
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @typedef GetHsnCodeParam
|
|
199
|
+
* @property {string} id - Unique id
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @typedef GetInventoriesParam
|
|
204
|
+
* @property {string} [itemId] - Item code of the product of which size is to be get.
|
|
205
|
+
* @property {string} [size] - Size of which inventory is to get.
|
|
206
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
207
|
+
* set of results
|
|
208
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
209
|
+
* Default is 12.
|
|
210
|
+
* @property {string} [q] - Search with help of store code.
|
|
211
|
+
* @property {boolean} [sellable] - Filter on whether product is in stock or not.
|
|
212
|
+
* @property {number[]} [storeIds] - The Store Id of products to fetch inventory.
|
|
213
|
+
* @property {string} [sizeIdentifier] - Size Identifier (Seller Identifier or
|
|
214
|
+
* Primary Identifier) of which inventory is to get.
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @typedef GetInventoryBulkUploadHistoryParam
|
|
219
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
220
|
+
* set of results
|
|
221
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
222
|
+
* Default is 12.
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @typedef GetInventoryBySizeParam
|
|
227
|
+
* @property {number} itemId - Item code of the product of which size is to be get.
|
|
228
|
+
* @property {string} size - Size of which inventory is to get.
|
|
229
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
230
|
+
* set of results
|
|
231
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
232
|
+
* Default is 12.
|
|
233
|
+
* @property {string} [q] - Search with help of store code.
|
|
234
|
+
* @property {boolean} [sellable] - Filter on whether product is in stock or not.
|
|
235
|
+
*/
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @typedef GetInventoryBySizeIdentifierParam
|
|
239
|
+
* @property {number} itemId - Item code of the product of which size is to be get.
|
|
240
|
+
* @property {string} sizeIdentifier - Size Identifier (Seller Identifier or
|
|
241
|
+
* Primary Identifier) of which inventory is to get.
|
|
242
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
243
|
+
* set of results
|
|
244
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
245
|
+
* Default is 12.
|
|
246
|
+
* @property {string} [q] - Search with help of store code.
|
|
247
|
+
* @property {number[]} [locationIds] - Search by store ids.
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
/** @typedef GetInventoryExportParam */
|
|
251
|
+
|
|
252
|
+
/** @typedef GetMarketplaceOptinDetailParam */
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @typedef GetOptimalLocationsParam
|
|
256
|
+
* @property {CatalogPlatformModel.AssignStore} body
|
|
257
|
+
*/
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @typedef GetProductParam
|
|
261
|
+
* @property {number} itemId - Item Id of the product.
|
|
262
|
+
* @property {number} [brandUid] - Brand Id of the product.
|
|
263
|
+
* @property {string} [itemCode] - Item code of the product.
|
|
264
|
+
*/
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @typedef GetProductAssetsInBulkParam
|
|
268
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
269
|
+
* set of results
|
|
270
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
271
|
+
* Default is 12.
|
|
272
|
+
*/
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @typedef GetProductAttributesParam
|
|
276
|
+
* @property {string} category - It is the name of the l3 cateogry
|
|
277
|
+
* @property {boolean} [filter] - If true, returns filtered values, else returns
|
|
278
|
+
* all the attributes
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @typedef GetProductBulkUploadHistoryParam
|
|
283
|
+
* @property {string} [search] - Search string to filter the results by batch id
|
|
284
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
285
|
+
* set of results
|
|
286
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
287
|
+
* Default is 12.
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @typedef GetProductBundleParam
|
|
292
|
+
* @property {string} [q] - A search string that is searched with product bundle name.
|
|
293
|
+
* @property {string[]} [slug] - Slugs of bundles to be retrieved.
|
|
294
|
+
*/
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @typedef GetProductBundleDetailParam
|
|
298
|
+
* @property {string} id - A `id` is a unique identifier for a particular
|
|
299
|
+
* detail. Pass the `id` of the keywords which you want to retrieve.
|
|
300
|
+
*/
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @typedef GetProductExportJobsParam
|
|
304
|
+
* @property {string} [status] - This is a parameter used to find all the jobs
|
|
305
|
+
* with the specified status.
|
|
306
|
+
* @property {string} [fromDate] - This is a parameter used to find the job from
|
|
307
|
+
* the date specified to the current date.
|
|
308
|
+
* @property {string} [toDate] - This is a parameter used to find the job from
|
|
309
|
+
* the from_date specified to the to_date.
|
|
310
|
+
* @property {string} [q] - It is a query parameter to search the export job
|
|
311
|
+
* with the task ID.
|
|
312
|
+
*/
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @typedef GetProductSizeParam
|
|
316
|
+
* @property {string} [itemCode] - Item code of the product size.
|
|
317
|
+
* @property {number} itemId - Item Id of the product size.
|
|
318
|
+
* @property {number} [brandUid] - Brand Id of the product size.
|
|
319
|
+
* @property {number} [uid] - Id of the product size.
|
|
320
|
+
*/
|
|
321
|
+
|
|
322
|
+
/** @typedef GetProductTagsParam */
|
|
323
|
+
|
|
324
|
+
/** @typedef GetProductValidationParam */
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* @typedef GetProductsParam
|
|
328
|
+
* @property {number[]} [brandIds] - Get multiple products filtered by Brand Ids
|
|
329
|
+
* @property {number[]} [categoryIds] - Get multiple products filtered by Category Ids
|
|
330
|
+
* @property {number[]} [itemIds] - Get multiple products filtered by Item Ids
|
|
331
|
+
* @property {number[]} [departmentIds] - Get multiple products filtered by Department Ids
|
|
332
|
+
* @property {string[]} [itemCode] - Get multiple products filtered by Item Code
|
|
333
|
+
* @property {string} [q] - Get multiple products filtered by q string
|
|
334
|
+
* @property {string[]} [tags] - Get multiple products filtered by tags
|
|
335
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
336
|
+
* set of results
|
|
337
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
338
|
+
* Default is 10.
|
|
339
|
+
*/
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @typedef GetSellerInsightsParam
|
|
343
|
+
* @property {string} sellerAppId - Id of the seller application which is
|
|
344
|
+
* serving the invetory/catalog of the company
|
|
345
|
+
*/
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @typedef GetSingleProductHSNCodeParam
|
|
349
|
+
* @property {string} reportingHsn - Reporting_hsn
|
|
350
|
+
*/
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* @typedef GetSizeGuideParam
|
|
354
|
+
* @property {string} id - Id of the size guide to be viewed.
|
|
355
|
+
*/
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* @typedef GetSizeGuidesParam
|
|
359
|
+
* @property {boolean} [active] - Filter size guide on basis of active, in-active
|
|
360
|
+
* @property {string} [q] - Query that is to be searched.
|
|
361
|
+
* @property {string} [tag] - To filter size guide on basis of tag.
|
|
362
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
363
|
+
* set of results
|
|
364
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
365
|
+
* Default is 10.
|
|
366
|
+
*/
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @typedef GetStoreDetailParam
|
|
370
|
+
* @property {string} [q] - The search related the store for the company id.
|
|
371
|
+
* @property {number} [pageNo] - The number of page for the company id.
|
|
372
|
+
* @property {number} [pageSize] - Number of records that can be seen on the
|
|
373
|
+
* page for the company id.
|
|
374
|
+
*/
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @typedef GetVariantsOfProductsParam
|
|
378
|
+
* @property {number} itemId - Get list of variants of item Id
|
|
379
|
+
* @property {string} variantType - Get multiple products filtered by variant type
|
|
380
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
381
|
+
* set of results
|
|
382
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
383
|
+
* Default is 10.
|
|
384
|
+
*/
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @typedef ListCategoriesParam
|
|
388
|
+
* @property {string} [level] - Get category for multiple levels
|
|
389
|
+
* @property {string} [departments] - Get category for multiple departments filtered
|
|
390
|
+
* @property {string} [q] - Get multiple categories filtered by search string
|
|
391
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
392
|
+
* set of results
|
|
393
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
394
|
+
* Default is 10.
|
|
395
|
+
*/
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @typedef ListDepartmentsDataParam
|
|
399
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
400
|
+
* set of results
|
|
401
|
+
* @property {string} [itemType] - A `item_type` is a type of product eg. set,
|
|
402
|
+
* standard, digital
|
|
403
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
404
|
+
* Default is 10.
|
|
405
|
+
* @property {string} [name] - Can search departments by passing name.
|
|
406
|
+
* @property {string} [search] - Can search departments by passing name of the
|
|
407
|
+
* department in search parameter.
|
|
408
|
+
* @property {boolean} [isActive] - Can query for departments based on whether
|
|
409
|
+
* they are active or inactive.
|
|
410
|
+
*/
|
|
411
|
+
|
|
412
|
+
/** @typedef ListHSNCodesParam */
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* @typedef ListInventoryExportParam
|
|
416
|
+
* @property {string} [status] - Status of the export job.
|
|
417
|
+
* @property {string} [fromDate] - Inventory export history filtered according
|
|
418
|
+
* to from_date.
|
|
419
|
+
* @property {string} [toDate] - Inventory export history filtered according to from_date.
|
|
420
|
+
* @property {string} [q] - Inventory export history filtered according to task ID.
|
|
421
|
+
*/
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* @typedef ListProductTemplateParam
|
|
425
|
+
* @property {string} department - A `department` is the name of a particular department.
|
|
426
|
+
*/
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* @typedef ListProductTemplateCategoriesParam
|
|
430
|
+
* @property {string} departments - A `department` is name of a departments
|
|
431
|
+
* whose category needs to be listed. Can specify multiple departments.
|
|
432
|
+
* @property {string} itemType - An `item_type` is the type of item, it can be
|
|
433
|
+
* `set`, `standard`, `digital`, etc.
|
|
434
|
+
*/
|
|
435
|
+
|
|
436
|
+
/** @typedef ListProductTemplateExportDetailsParam */
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @typedef ListTemplateBrandTypeValuesParam
|
|
440
|
+
* @property {string} filter - A `filter` is the unique identifier of the type
|
|
441
|
+
* of value required.
|
|
442
|
+
* @property {string} [templateTag] - A `template_tag` is the identifier of the
|
|
443
|
+
* type of template required.
|
|
444
|
+
* @property {string} [itemType] - A `item_type` is the identifier of the type
|
|
445
|
+
* of template required.
|
|
446
|
+
*/
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* @typedef UpdateCategoryParam
|
|
450
|
+
* @property {string} uid - Category unique id
|
|
451
|
+
* @property {CatalogPlatformModel.CategoryRequestBody} body
|
|
452
|
+
*/
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @typedef UpdateDepartmentParam
|
|
456
|
+
* @property {string} uid - A `uid` is a unique identifier of a department.
|
|
457
|
+
* @property {CatalogPlatformModel.DepartmentCreateUpdate} body
|
|
458
|
+
*/
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @typedef UpdateHsnCodeParam
|
|
462
|
+
* @property {string} id - Unique id
|
|
463
|
+
* @property {CatalogPlatformModel.HsnUpsert} body
|
|
464
|
+
*/
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* @typedef UpdateInventoriesParam
|
|
468
|
+
* @property {CatalogPlatformModel.InventoryRequestSchemaV2} body
|
|
469
|
+
*/
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* @typedef UpdateProductBundleParam
|
|
473
|
+
* @property {string} id - A `id` is a unique identifier for a particular
|
|
474
|
+
* detail. Pass the `id` of the keywords which you want to delete.
|
|
475
|
+
* @property {CatalogPlatformModel.ProductBundleUpdateRequest} body
|
|
476
|
+
*/
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @typedef UpdateRealtimeInventoryParam
|
|
480
|
+
* @property {number} itemId - Item code of the product of which size is to be get.
|
|
481
|
+
* @property {string} sellerIdentifier - Size Identifier (Seller Identifier or
|
|
482
|
+
* Primary Identifier) of which inventory is to get.
|
|
483
|
+
* @property {CatalogPlatformModel.InventoryRequestSchemaV2} body
|
|
484
|
+
*/
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* @typedef UpdateSizeGuideParam
|
|
488
|
+
* @property {string} id - Mongo id of the size guide to be edited
|
|
489
|
+
* @property {CatalogPlatformModel.ValidateSizeGuide} body
|
|
490
|
+
*/
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* @typedef UploadBulkProductsParam
|
|
494
|
+
* @property {string} department - Department of the product to be uploaded.
|
|
495
|
+
* @property {string} productType - Product type of the product to be uploaded
|
|
496
|
+
* i.e. set, standard , digital.
|
|
497
|
+
* @property {CatalogPlatformModel.BulkJob} body
|
|
498
|
+
*/
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* @typedef ValidateProductTemplateParam
|
|
502
|
+
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
503
|
+
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
504
|
+
* default value is standard.
|
|
505
|
+
* @property {boolean} [bulk] - This specification determines the schema type to
|
|
506
|
+
* be retrieved. When set to true, it will return the schema for bulk data;
|
|
507
|
+
* when set to false, it will provide the schema for a single product. The
|
|
508
|
+
* default value is false.
|
|
509
|
+
*/
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* @typedef ValidateProductTemplateSchemaParam
|
|
513
|
+
* @property {string} itemType - An `item_type` defines the type of item. The
|
|
514
|
+
* default value is standard.
|
|
515
|
+
*/
|
|
516
|
+
|
|
517
|
+
class CatalogPlatformValidator {
|
|
518
|
+
/** @returns {AddInventoryParam} */
|
|
5
519
|
static addInventory() {
|
|
6
520
|
return Joi.object({
|
|
7
521
|
itemId: Joi.number().required(),
|
|
8
522
|
size: Joi.string().allow("").required(),
|
|
9
|
-
body:
|
|
523
|
+
body: CatalogPlatformModel.InventoryRequest().required(),
|
|
10
524
|
}).required();
|
|
11
525
|
}
|
|
12
526
|
|
|
527
|
+
/** @returns {AllSizesParam} */
|
|
13
528
|
static allSizes() {
|
|
14
529
|
return Joi.object({
|
|
15
530
|
itemId: Joi.number().required(),
|
|
16
531
|
}).required();
|
|
17
532
|
}
|
|
18
533
|
|
|
534
|
+
/** @returns {BulkHsnCodeParam} */
|
|
19
535
|
static bulkHsnCode() {
|
|
20
536
|
return Joi.object({
|
|
21
|
-
body:
|
|
537
|
+
body: CatalogPlatformModel.BulkHsnUpsert().required(),
|
|
22
538
|
}).required();
|
|
23
539
|
}
|
|
24
540
|
|
|
541
|
+
/** @returns {CreateBulkInventoryParam} */
|
|
25
542
|
static createBulkInventory() {
|
|
26
543
|
return Joi.object({
|
|
27
544
|
batchId: Joi.string().allow("").required(),
|
|
28
|
-
body:
|
|
545
|
+
body: CatalogPlatformModel.InventoryBulkRequest().required(),
|
|
29
546
|
}).required();
|
|
30
547
|
}
|
|
31
548
|
|
|
549
|
+
/** @returns {CreateBulkInventoryJobParam} */
|
|
32
550
|
static createBulkInventoryJob() {
|
|
33
551
|
return Joi.object({
|
|
34
|
-
body:
|
|
552
|
+
body: CatalogPlatformModel.BulkJob().required(),
|
|
35
553
|
}).required();
|
|
36
554
|
}
|
|
37
555
|
|
|
556
|
+
/** @returns {CreateBulkProductUploadJobParam} */
|
|
38
557
|
static createBulkProductUploadJob() {
|
|
39
558
|
return Joi.object({
|
|
40
|
-
body:
|
|
559
|
+
body: CatalogPlatformModel.BulkJob().required(),
|
|
41
560
|
}).required();
|
|
42
561
|
}
|
|
43
562
|
|
|
563
|
+
/** @returns {CreateCategoriesParam} */
|
|
44
564
|
static createCategories() {
|
|
45
565
|
return Joi.object({
|
|
46
|
-
body:
|
|
566
|
+
body: CatalogPlatformModel.CategoryRequestBody().required(),
|
|
47
567
|
}).required();
|
|
48
568
|
}
|
|
49
569
|
|
|
570
|
+
/** @returns {CreateDepartmentsParam} */
|
|
50
571
|
static createDepartments() {
|
|
51
572
|
return Joi.object({
|
|
52
|
-
body:
|
|
573
|
+
body: CatalogPlatformModel.DepartmentCreateUpdate().required(),
|
|
53
574
|
}).required();
|
|
54
575
|
}
|
|
55
576
|
|
|
577
|
+
/** @returns {CreateInventoryExportParam} */
|
|
56
578
|
static createInventoryExport() {
|
|
57
579
|
return Joi.object({
|
|
58
|
-
body:
|
|
580
|
+
body: CatalogPlatformModel.InventoryCreateRequest().required(),
|
|
59
581
|
}).required();
|
|
60
582
|
}
|
|
61
583
|
|
|
584
|
+
/** @returns {CreateInventoryExportJobParam} */
|
|
62
585
|
static createInventoryExportJob() {
|
|
63
586
|
return Joi.object({
|
|
64
|
-
body:
|
|
587
|
+
body: CatalogPlatformModel.InventoryExportRequest().required(),
|
|
65
588
|
}).required();
|
|
66
589
|
}
|
|
67
590
|
|
|
591
|
+
/** @returns {CreateMarketplaceOptinParam} */
|
|
68
592
|
static createMarketplaceOptin() {
|
|
69
593
|
return Joi.object({
|
|
70
594
|
marketplace: Joi.string().allow("").required(),
|
|
71
|
-
body:
|
|
595
|
+
body: CatalogPlatformModel.OptInPostRequest().required(),
|
|
72
596
|
}).required();
|
|
73
597
|
}
|
|
74
598
|
|
|
599
|
+
/** @returns {CreateProductParam} */
|
|
75
600
|
static createProduct() {
|
|
76
601
|
return Joi.object({
|
|
77
|
-
body:
|
|
602
|
+
body: CatalogPlatformModel.ProductCreateUpdateSchemaV2().required(),
|
|
78
603
|
}).required();
|
|
79
604
|
}
|
|
80
605
|
|
|
606
|
+
/** @returns {CreateProductAssetsInBulkParam} */
|
|
81
607
|
static createProductAssetsInBulk() {
|
|
82
608
|
return Joi.object({
|
|
83
|
-
body:
|
|
609
|
+
body: CatalogPlatformModel.ProductBulkAssets().required(),
|
|
84
610
|
}).required();
|
|
85
611
|
}
|
|
86
612
|
|
|
613
|
+
/** @returns {CreateProductBundleParam} */
|
|
87
614
|
static createProductBundle() {
|
|
88
615
|
return Joi.object({
|
|
89
|
-
body:
|
|
616
|
+
body: CatalogPlatformModel.ProductBundleRequest().required(),
|
|
90
617
|
}).required();
|
|
91
618
|
}
|
|
92
619
|
|
|
620
|
+
/** @returns {CreateProductExportJobParam} */
|
|
93
621
|
static createProductExportJob() {
|
|
94
622
|
return Joi.object({
|
|
95
|
-
body:
|
|
623
|
+
body: CatalogPlatformModel.ProductTemplateDownloadsExport().required(),
|
|
96
624
|
}).required();
|
|
97
625
|
}
|
|
98
626
|
|
|
627
|
+
/** @returns {CreateProductsInBulkParam} */
|
|
99
628
|
static createProductsInBulk() {
|
|
100
629
|
return Joi.object({
|
|
101
630
|
batchId: Joi.string().allow("").required(),
|
|
102
|
-
body:
|
|
631
|
+
body: CatalogPlatformModel.BulkProductRequest().required(),
|
|
103
632
|
}).required();
|
|
104
633
|
}
|
|
105
634
|
|
|
635
|
+
/** @returns {CreateSizeGuideParam} */
|
|
106
636
|
static createSizeGuide() {
|
|
107
637
|
return Joi.object({
|
|
108
|
-
body:
|
|
638
|
+
body: CatalogPlatformModel.ValidateSizeGuide().required(),
|
|
109
639
|
}).required();
|
|
110
640
|
}
|
|
111
641
|
|
|
642
|
+
/** @returns {DeleteBulkInventoryJobParam} */
|
|
112
643
|
static deleteBulkInventoryJob() {
|
|
113
644
|
return Joi.object({
|
|
114
645
|
batchId: Joi.string().allow("").required(),
|
|
115
646
|
}).required();
|
|
116
647
|
}
|
|
117
648
|
|
|
649
|
+
/** @returns {DeleteInventoryParam} */
|
|
118
650
|
static deleteInventory() {
|
|
119
651
|
return Joi.object({
|
|
120
652
|
size: Joi.string().allow("").required(),
|
|
@@ -123,26 +655,30 @@ class CatalogValidator {
|
|
|
123
655
|
}).required();
|
|
124
656
|
}
|
|
125
657
|
|
|
658
|
+
/** @returns {DeleteProductParam} */
|
|
126
659
|
static deleteProduct() {
|
|
127
660
|
return Joi.object({
|
|
128
661
|
itemId: Joi.number().required(),
|
|
129
662
|
}).required();
|
|
130
663
|
}
|
|
131
664
|
|
|
665
|
+
/** @returns {DeleteProductBulkJobParam} */
|
|
132
666
|
static deleteProductBulkJob() {
|
|
133
667
|
return Joi.object({
|
|
134
668
|
batchId: Joi.number().required(),
|
|
135
669
|
}).required();
|
|
136
670
|
}
|
|
137
671
|
|
|
672
|
+
/** @returns {DeleteRealtimeInventoryParam} */
|
|
138
673
|
static deleteRealtimeInventory() {
|
|
139
674
|
return Joi.object({
|
|
140
675
|
itemId: Joi.number().required(),
|
|
141
676
|
sellerIdentifier: Joi.string().allow("").required(),
|
|
142
|
-
body:
|
|
677
|
+
body: CatalogPlatformModel.InventoryRequestSchemaV2().required(),
|
|
143
678
|
}).required();
|
|
144
679
|
}
|
|
145
680
|
|
|
681
|
+
/** @returns {DeleteSizeParam} */
|
|
146
682
|
static deleteSize() {
|
|
147
683
|
return Joi.object({
|
|
148
684
|
itemId: Joi.number().required(),
|
|
@@ -150,31 +686,38 @@ class CatalogValidator {
|
|
|
150
686
|
}).required();
|
|
151
687
|
}
|
|
152
688
|
|
|
689
|
+
/** @returns {DownloadInventoryTemplateViewParam} */
|
|
153
690
|
static downloadInventoryTemplateView() {
|
|
154
691
|
return Joi.object({
|
|
155
692
|
itemType: Joi.string().allow("").required(),
|
|
156
693
|
}).required();
|
|
157
694
|
}
|
|
158
695
|
|
|
696
|
+
/** @returns {DownloadProductTemplateViewsParam} */
|
|
159
697
|
static downloadProductTemplateViews() {
|
|
160
698
|
return Joi.object({
|
|
161
699
|
slug: Joi.string().allow("").required(),
|
|
700
|
+
itemType: Joi.string().allow(""),
|
|
701
|
+
type: Joi.string().allow(""),
|
|
162
702
|
}).required();
|
|
163
703
|
}
|
|
164
704
|
|
|
705
|
+
/** @returns {EditProductParam} */
|
|
165
706
|
static editProduct() {
|
|
166
707
|
return Joi.object({
|
|
167
708
|
itemId: Joi.number().required(),
|
|
168
|
-
body:
|
|
709
|
+
body: CatalogPlatformModel.ProductCreateUpdateSchemaV2().required(),
|
|
169
710
|
}).required();
|
|
170
711
|
}
|
|
171
712
|
|
|
713
|
+
/** @returns {ExportInventoryConfigParam} */
|
|
172
714
|
static exportInventoryConfig() {
|
|
173
715
|
return Joi.object({
|
|
174
716
|
filterType: Joi.string().allow(""),
|
|
175
717
|
}).required();
|
|
176
718
|
}
|
|
177
719
|
|
|
720
|
+
/** @returns {GetAllProductHsnCodesParam} */
|
|
178
721
|
static getAllProductHsnCodes() {
|
|
179
722
|
return Joi.object({
|
|
180
723
|
pageNo: Joi.number(),
|
|
@@ -184,12 +727,14 @@ class CatalogValidator {
|
|
|
184
727
|
}).required();
|
|
185
728
|
}
|
|
186
729
|
|
|
730
|
+
/** @returns {GetCategoryDataParam} */
|
|
187
731
|
static getCategoryData() {
|
|
188
732
|
return Joi.object({
|
|
189
733
|
uid: Joi.string().allow("").required(),
|
|
190
734
|
}).required();
|
|
191
735
|
}
|
|
192
736
|
|
|
737
|
+
/** @returns {GetCompanyBrandDetailParam} */
|
|
193
738
|
static getCompanyBrandDetail() {
|
|
194
739
|
return Joi.object({
|
|
195
740
|
isActive: Joi.boolean(),
|
|
@@ -200,32 +745,38 @@ class CatalogValidator {
|
|
|
200
745
|
}).required();
|
|
201
746
|
}
|
|
202
747
|
|
|
748
|
+
/** @returns {GetCompanyDetailParam} */
|
|
203
749
|
static getCompanyDetail() {
|
|
204
750
|
return Joi.object({}).required();
|
|
205
751
|
}
|
|
206
752
|
|
|
753
|
+
/** @returns {GetCompanyMetricsParam} */
|
|
207
754
|
static getCompanyMetrics() {
|
|
208
755
|
return Joi.object({}).required();
|
|
209
756
|
}
|
|
210
757
|
|
|
758
|
+
/** @returns {GetDepartmentDataParam} */
|
|
211
759
|
static getDepartmentData() {
|
|
212
760
|
return Joi.object({
|
|
213
761
|
uid: Joi.string().allow("").required(),
|
|
214
762
|
}).required();
|
|
215
763
|
}
|
|
216
764
|
|
|
765
|
+
/** @returns {GetGenderAttributeParam} */
|
|
217
766
|
static getGenderAttribute() {
|
|
218
767
|
return Joi.object({
|
|
219
768
|
attributeSlug: Joi.string().allow("").required(),
|
|
220
769
|
}).required();
|
|
221
770
|
}
|
|
222
771
|
|
|
772
|
+
/** @returns {GetHsnCodeParam} */
|
|
223
773
|
static getHsnCode() {
|
|
224
774
|
return Joi.object({
|
|
225
775
|
id: Joi.string().allow("").required(),
|
|
226
776
|
}).required();
|
|
227
777
|
}
|
|
228
778
|
|
|
779
|
+
/** @returns {GetInventoriesParam} */
|
|
229
780
|
static getInventories() {
|
|
230
781
|
return Joi.object({
|
|
231
782
|
itemId: Joi.string().allow(""),
|
|
@@ -239,6 +790,7 @@ class CatalogValidator {
|
|
|
239
790
|
}).required();
|
|
240
791
|
}
|
|
241
792
|
|
|
793
|
+
/** @returns {GetInventoryBulkUploadHistoryParam} */
|
|
242
794
|
static getInventoryBulkUploadHistory() {
|
|
243
795
|
return Joi.object({
|
|
244
796
|
pageNo: Joi.number(),
|
|
@@ -246,6 +798,7 @@ class CatalogValidator {
|
|
|
246
798
|
}).required();
|
|
247
799
|
}
|
|
248
800
|
|
|
801
|
+
/** @returns {GetInventoryBySizeParam} */
|
|
249
802
|
static getInventoryBySize() {
|
|
250
803
|
return Joi.object({
|
|
251
804
|
itemId: Joi.number().required(),
|
|
@@ -257,6 +810,7 @@ class CatalogValidator {
|
|
|
257
810
|
}).required();
|
|
258
811
|
}
|
|
259
812
|
|
|
813
|
+
/** @returns {GetInventoryBySizeIdentifierParam} */
|
|
260
814
|
static getInventoryBySizeIdentifier() {
|
|
261
815
|
return Joi.object({
|
|
262
816
|
itemId: Joi.number().required(),
|
|
@@ -268,20 +822,24 @@ class CatalogValidator {
|
|
|
268
822
|
}).required();
|
|
269
823
|
}
|
|
270
824
|
|
|
825
|
+
/** @returns {GetInventoryExportParam} */
|
|
271
826
|
static getInventoryExport() {
|
|
272
827
|
return Joi.object({}).required();
|
|
273
828
|
}
|
|
274
829
|
|
|
830
|
+
/** @returns {GetMarketplaceOptinDetailParam} */
|
|
275
831
|
static getMarketplaceOptinDetail() {
|
|
276
832
|
return Joi.object({}).required();
|
|
277
833
|
}
|
|
278
834
|
|
|
835
|
+
/** @returns {GetOptimalLocationsParam} */
|
|
279
836
|
static getOptimalLocations() {
|
|
280
837
|
return Joi.object({
|
|
281
|
-
body:
|
|
838
|
+
body: CatalogPlatformModel.AssignStore().required(),
|
|
282
839
|
}).required();
|
|
283
840
|
}
|
|
284
841
|
|
|
842
|
+
/** @returns {GetProductParam} */
|
|
285
843
|
static getProduct() {
|
|
286
844
|
return Joi.object({
|
|
287
845
|
itemId: Joi.number().required(),
|
|
@@ -290,6 +848,7 @@ class CatalogValidator {
|
|
|
290
848
|
}).required();
|
|
291
849
|
}
|
|
292
850
|
|
|
851
|
+
/** @returns {GetProductAssetsInBulkParam} */
|
|
293
852
|
static getProductAssetsInBulk() {
|
|
294
853
|
return Joi.object({
|
|
295
854
|
pageNo: Joi.number(),
|
|
@@ -297,6 +856,7 @@ class CatalogValidator {
|
|
|
297
856
|
}).required();
|
|
298
857
|
}
|
|
299
858
|
|
|
859
|
+
/** @returns {GetProductAttributesParam} */
|
|
300
860
|
static getProductAttributes() {
|
|
301
861
|
return Joi.object({
|
|
302
862
|
category: Joi.string().allow("").required(),
|
|
@@ -304,6 +864,7 @@ class CatalogValidator {
|
|
|
304
864
|
}).required();
|
|
305
865
|
}
|
|
306
866
|
|
|
867
|
+
/** @returns {GetProductBulkUploadHistoryParam} */
|
|
307
868
|
static getProductBulkUploadHistory() {
|
|
308
869
|
return Joi.object({
|
|
309
870
|
search: Joi.string().allow(""),
|
|
@@ -312,6 +873,7 @@ class CatalogValidator {
|
|
|
312
873
|
}).required();
|
|
313
874
|
}
|
|
314
875
|
|
|
876
|
+
/** @returns {GetProductBundleParam} */
|
|
315
877
|
static getProductBundle() {
|
|
316
878
|
return Joi.object({
|
|
317
879
|
q: Joi.string().allow(""),
|
|
@@ -319,12 +881,14 @@ class CatalogValidator {
|
|
|
319
881
|
}).required();
|
|
320
882
|
}
|
|
321
883
|
|
|
884
|
+
/** @returns {GetProductBundleDetailParam} */
|
|
322
885
|
static getProductBundleDetail() {
|
|
323
886
|
return Joi.object({
|
|
324
887
|
id: Joi.string().allow("").required(),
|
|
325
888
|
}).required();
|
|
326
889
|
}
|
|
327
890
|
|
|
891
|
+
/** @returns {GetProductExportJobsParam} */
|
|
328
892
|
static getProductExportJobs() {
|
|
329
893
|
return Joi.object({
|
|
330
894
|
status: Joi.string().allow(""),
|
|
@@ -334,6 +898,7 @@ class CatalogValidator {
|
|
|
334
898
|
}).required();
|
|
335
899
|
}
|
|
336
900
|
|
|
901
|
+
/** @returns {GetProductSizeParam} */
|
|
337
902
|
static getProductSize() {
|
|
338
903
|
return Joi.object({
|
|
339
904
|
itemCode: Joi.string().allow(""),
|
|
@@ -343,14 +908,17 @@ class CatalogValidator {
|
|
|
343
908
|
}).required();
|
|
344
909
|
}
|
|
345
910
|
|
|
911
|
+
/** @returns {GetProductTagsParam} */
|
|
346
912
|
static getProductTags() {
|
|
347
913
|
return Joi.object({}).required();
|
|
348
914
|
}
|
|
349
915
|
|
|
916
|
+
/** @returns {GetProductValidationParam} */
|
|
350
917
|
static getProductValidation() {
|
|
351
918
|
return Joi.object({}).required();
|
|
352
919
|
}
|
|
353
920
|
|
|
921
|
+
/** @returns {GetProductsParam} */
|
|
354
922
|
static getProducts() {
|
|
355
923
|
return Joi.object({
|
|
356
924
|
brandIds: Joi.array().items(Joi.number()),
|
|
@@ -365,24 +933,28 @@ class CatalogValidator {
|
|
|
365
933
|
}).required();
|
|
366
934
|
}
|
|
367
935
|
|
|
936
|
+
/** @returns {GetSellerInsightsParam} */
|
|
368
937
|
static getSellerInsights() {
|
|
369
938
|
return Joi.object({
|
|
370
939
|
sellerAppId: Joi.string().allow("").required(),
|
|
371
940
|
}).required();
|
|
372
941
|
}
|
|
373
942
|
|
|
943
|
+
/** @returns {GetSingleProductHSNCodeParam} */
|
|
374
944
|
static getSingleProductHSNCode() {
|
|
375
945
|
return Joi.object({
|
|
376
946
|
reportingHsn: Joi.string().allow("").required(),
|
|
377
947
|
}).required();
|
|
378
948
|
}
|
|
379
949
|
|
|
950
|
+
/** @returns {GetSizeGuideParam} */
|
|
380
951
|
static getSizeGuide() {
|
|
381
952
|
return Joi.object({
|
|
382
953
|
id: Joi.string().allow("").required(),
|
|
383
954
|
}).required();
|
|
384
955
|
}
|
|
385
956
|
|
|
957
|
+
/** @returns {GetSizeGuidesParam} */
|
|
386
958
|
static getSizeGuides() {
|
|
387
959
|
return Joi.object({
|
|
388
960
|
active: Joi.boolean(),
|
|
@@ -393,6 +965,7 @@ class CatalogValidator {
|
|
|
393
965
|
}).required();
|
|
394
966
|
}
|
|
395
967
|
|
|
968
|
+
/** @returns {GetStoreDetailParam} */
|
|
396
969
|
static getStoreDetail() {
|
|
397
970
|
return Joi.object({
|
|
398
971
|
q: Joi.string().allow(""),
|
|
@@ -401,6 +974,7 @@ class CatalogValidator {
|
|
|
401
974
|
}).required();
|
|
402
975
|
}
|
|
403
976
|
|
|
977
|
+
/** @returns {GetVariantsOfProductsParam} */
|
|
404
978
|
static getVariantsOfProducts() {
|
|
405
979
|
return Joi.object({
|
|
406
980
|
itemId: Joi.number().required(),
|
|
@@ -410,6 +984,7 @@ class CatalogValidator {
|
|
|
410
984
|
}).required();
|
|
411
985
|
}
|
|
412
986
|
|
|
987
|
+
/** @returns {ListCategoriesParam} */
|
|
413
988
|
static listCategories() {
|
|
414
989
|
return Joi.object({
|
|
415
990
|
level: Joi.string().allow(""),
|
|
@@ -420,6 +995,7 @@ class CatalogValidator {
|
|
|
420
995
|
}).required();
|
|
421
996
|
}
|
|
422
997
|
|
|
998
|
+
/** @returns {ListDepartmentsDataParam} */
|
|
423
999
|
static listDepartmentsData() {
|
|
424
1000
|
return Joi.object({
|
|
425
1001
|
pageNo: Joi.number(),
|
|
@@ -431,10 +1007,12 @@ class CatalogValidator {
|
|
|
431
1007
|
}).required();
|
|
432
1008
|
}
|
|
433
1009
|
|
|
1010
|
+
/** @returns {ListHSNCodesParam} */
|
|
434
1011
|
static listHSNCodes() {
|
|
435
1012
|
return Joi.object({}).required();
|
|
436
1013
|
}
|
|
437
1014
|
|
|
1015
|
+
/** @returns {ListInventoryExportParam} */
|
|
438
1016
|
static listInventoryExport() {
|
|
439
1017
|
return Joi.object({
|
|
440
1018
|
status: Joi.string().allow(""),
|
|
@@ -444,12 +1022,14 @@ class CatalogValidator {
|
|
|
444
1022
|
}).required();
|
|
445
1023
|
}
|
|
446
1024
|
|
|
1025
|
+
/** @returns {ListProductTemplateParam} */
|
|
447
1026
|
static listProductTemplate() {
|
|
448
1027
|
return Joi.object({
|
|
449
1028
|
department: Joi.string().allow("").required(),
|
|
450
1029
|
}).required();
|
|
451
1030
|
}
|
|
452
1031
|
|
|
1032
|
+
/** @returns {ListProductTemplateCategoriesParam} */
|
|
453
1033
|
static listProductTemplateCategories() {
|
|
454
1034
|
return Joi.object({
|
|
455
1035
|
departments: Joi.string().allow("").required(),
|
|
@@ -457,10 +1037,12 @@ class CatalogValidator {
|
|
|
457
1037
|
}).required();
|
|
458
1038
|
}
|
|
459
1039
|
|
|
1040
|
+
/** @returns {ListProductTemplateExportDetailsParam} */
|
|
460
1041
|
static listProductTemplateExportDetails() {
|
|
461
1042
|
return Joi.object({}).required();
|
|
462
1043
|
}
|
|
463
1044
|
|
|
1045
|
+
/** @returns {ListTemplateBrandTypeValuesParam} */
|
|
464
1046
|
static listTemplateBrandTypeValues() {
|
|
465
1047
|
return Joi.object({
|
|
466
1048
|
filter: Joi.string().allow("").required(),
|
|
@@ -469,69 +1051,81 @@ class CatalogValidator {
|
|
|
469
1051
|
}).required();
|
|
470
1052
|
}
|
|
471
1053
|
|
|
1054
|
+
/** @returns {UpdateCategoryParam} */
|
|
472
1055
|
static updateCategory() {
|
|
473
1056
|
return Joi.object({
|
|
474
1057
|
uid: Joi.string().allow("").required(),
|
|
475
|
-
body:
|
|
1058
|
+
body: CatalogPlatformModel.CategoryRequestBody().required(),
|
|
476
1059
|
}).required();
|
|
477
1060
|
}
|
|
478
1061
|
|
|
1062
|
+
/** @returns {UpdateDepartmentParam} */
|
|
479
1063
|
static updateDepartment() {
|
|
480
1064
|
return Joi.object({
|
|
481
1065
|
uid: Joi.string().allow("").required(),
|
|
482
|
-
body:
|
|
1066
|
+
body: CatalogPlatformModel.DepartmentCreateUpdate().required(),
|
|
483
1067
|
}).required();
|
|
484
1068
|
}
|
|
485
1069
|
|
|
1070
|
+
/** @returns {UpdateHsnCodeParam} */
|
|
486
1071
|
static updateHsnCode() {
|
|
487
1072
|
return Joi.object({
|
|
488
1073
|
id: Joi.string().allow("").required(),
|
|
489
|
-
body:
|
|
1074
|
+
body: CatalogPlatformModel.HsnUpsert().required(),
|
|
490
1075
|
}).required();
|
|
491
1076
|
}
|
|
492
1077
|
|
|
1078
|
+
/** @returns {UpdateInventoriesParam} */
|
|
493
1079
|
static updateInventories() {
|
|
494
1080
|
return Joi.object({
|
|
495
|
-
body:
|
|
1081
|
+
body: CatalogPlatformModel.InventoryRequestSchemaV2().required(),
|
|
496
1082
|
}).required();
|
|
497
1083
|
}
|
|
498
1084
|
|
|
1085
|
+
/** @returns {UpdateProductBundleParam} */
|
|
499
1086
|
static updateProductBundle() {
|
|
500
1087
|
return Joi.object({
|
|
501
1088
|
id: Joi.string().allow("").required(),
|
|
502
|
-
body:
|
|
1089
|
+
body: CatalogPlatformModel.ProductBundleUpdateRequest().required(),
|
|
503
1090
|
}).required();
|
|
504
1091
|
}
|
|
505
1092
|
|
|
1093
|
+
/** @returns {UpdateRealtimeInventoryParam} */
|
|
506
1094
|
static updateRealtimeInventory() {
|
|
507
1095
|
return Joi.object({
|
|
508
1096
|
itemId: Joi.number().required(),
|
|
509
1097
|
sellerIdentifier: Joi.string().allow("").required(),
|
|
510
|
-
body:
|
|
1098
|
+
body: CatalogPlatformModel.InventoryRequestSchemaV2().required(),
|
|
511
1099
|
}).required();
|
|
512
1100
|
}
|
|
513
1101
|
|
|
1102
|
+
/** @returns {UpdateSizeGuideParam} */
|
|
514
1103
|
static updateSizeGuide() {
|
|
515
1104
|
return Joi.object({
|
|
516
1105
|
id: Joi.string().allow("").required(),
|
|
517
|
-
body:
|
|
1106
|
+
body: CatalogPlatformModel.ValidateSizeGuide().required(),
|
|
518
1107
|
}).required();
|
|
519
1108
|
}
|
|
520
1109
|
|
|
1110
|
+
/** @returns {UploadBulkProductsParam} */
|
|
521
1111
|
static uploadBulkProducts() {
|
|
522
1112
|
return Joi.object({
|
|
523
1113
|
department: Joi.string().allow("").required(),
|
|
524
1114
|
productType: Joi.string().allow("").required(),
|
|
525
|
-
body:
|
|
1115
|
+
body: CatalogPlatformModel.BulkJob().required(),
|
|
526
1116
|
}).required();
|
|
527
1117
|
}
|
|
528
1118
|
|
|
1119
|
+
/** @returns {ValidateProductTemplateParam} */
|
|
529
1120
|
static validateProductTemplate() {
|
|
530
1121
|
return Joi.object({
|
|
531
1122
|
slug: Joi.string().allow("").required(),
|
|
1123
|
+
itemType: Joi.string().allow(""),
|
|
1124
|
+
bulk: Joi.boolean(),
|
|
532
1125
|
}).required();
|
|
533
1126
|
}
|
|
534
1127
|
|
|
1128
|
+
/** @returns {ValidateProductTemplateSchemaParam} */
|
|
535
1129
|
static validateProductTemplateSchema() {
|
|
536
1130
|
return Joi.object({
|
|
537
1131
|
itemType: Joi.string().allow("").required(),
|
|
@@ -539,4 +1133,4 @@ class CatalogValidator {
|
|
|
539
1133
|
}
|
|
540
1134
|
}
|
|
541
1135
|
|
|
542
|
-
module.exports =
|
|
1136
|
+
module.exports = CatalogPlatformValidator;
|