@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.0.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 +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +93 -113
- package/sdk/application/Cart/CartApplicationClient.js +157 -530
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +65 -55
- package/sdk/application/Content/ContentApplicationClient.js +211 -341
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +32 -87
- package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +18 -62
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -406
- package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
- package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
- package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
- package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +236 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +314 -422
- package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -68
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +565 -1282
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -246
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2374 -877
- package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +421 -418
- package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
- package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
- package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +934 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1327 -3529
- package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -513
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -4
- package/sdk/platform/Share/SharePlatformModel.js +45 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
- package/sdk/public/Billing/BillingPublicClient.js +0 -397
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
- package/sdk/public/Billing/BillingPublicModel.js +0 -560
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
- package/sdk/public/Billing/BillingPublicValidator.js +0 -50
|
@@ -3,55 +3,58 @@ const Joi = require("joi");
|
|
|
3
3
|
const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @typedef
|
|
7
|
-
* @property {number} itemId -
|
|
6
|
+
* @typedef AddInventoryParam
|
|
7
|
+
* @property {number} itemId - Item id 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.InventoryRequestSchema} body
|
|
8
10
|
*/
|
|
9
11
|
|
|
10
12
|
/**
|
|
11
|
-
* @typedef
|
|
12
|
-
* @property {
|
|
13
|
-
* @property {CatalogPlatformModel.InventoryBulkRequest} body
|
|
13
|
+
* @typedef AllSizesParam
|
|
14
|
+
* @property {number} itemId - Id of the product to be updated.
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
|
-
* @typedef
|
|
18
|
-
* @property {CatalogPlatformModel.
|
|
18
|
+
* @typedef BulkHsnCodeParam
|
|
19
|
+
* @property {CatalogPlatformModel.BulkHsnUpsert} body
|
|
19
20
|
*/
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
|
-
* @typedef
|
|
23
|
-
* @property {
|
|
23
|
+
* @typedef CreateBulkInventoryParam
|
|
24
|
+
* @property {string} batchId - Batch Id of the bulk create job.
|
|
25
|
+
* @property {CatalogPlatformModel.InventoryBulkRequestSchema} body
|
|
24
26
|
*/
|
|
25
27
|
|
|
26
28
|
/**
|
|
27
|
-
* @typedef
|
|
28
|
-
* @property {CatalogPlatformModel.
|
|
29
|
+
* @typedef CreateBulkInventoryJobParam
|
|
30
|
+
* @property {CatalogPlatformModel.BulkJob} body
|
|
29
31
|
*/
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
|
-
* @typedef
|
|
33
|
-
* @property {CatalogPlatformModel.
|
|
34
|
+
* @typedef CreateBulkProductUploadJobParam
|
|
35
|
+
* @property {CatalogPlatformModel.BulkJob} body
|
|
34
36
|
*/
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
39
|
* @typedef CreateInventoryExportParam
|
|
38
|
-
* @property {CatalogPlatformModel.
|
|
40
|
+
* @property {CatalogPlatformModel.InventoryCreateRequestSchema} body
|
|
39
41
|
*/
|
|
40
42
|
|
|
41
43
|
/**
|
|
42
44
|
* @typedef CreateInventoryExportJobParam
|
|
43
|
-
* @property {CatalogPlatformModel.
|
|
45
|
+
* @property {CatalogPlatformModel.InventoryExportRequestSchema} body
|
|
44
46
|
*/
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
49
|
* @typedef CreateMarketplaceOptinParam
|
|
48
|
-
* @property {string}
|
|
49
|
-
*
|
|
50
|
+
* @property {string} marketplaceSlug - The marketplace for which the detail
|
|
51
|
+
* needs to be retrieved.
|
|
52
|
+
* @property {CatalogPlatformModel.OptInPostRequestSchema} body
|
|
50
53
|
*/
|
|
51
54
|
|
|
52
55
|
/**
|
|
53
56
|
* @typedef CreateProductParam
|
|
54
|
-
* @property {CatalogPlatformModel.
|
|
57
|
+
* @property {CatalogPlatformModel.ProductCreateSchemaV2} body
|
|
55
58
|
*/
|
|
56
59
|
|
|
57
60
|
/**
|
|
@@ -61,7 +64,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
61
64
|
|
|
62
65
|
/**
|
|
63
66
|
* @typedef CreateProductBundleParam
|
|
64
|
-
* @property {CatalogPlatformModel.
|
|
67
|
+
* @property {CatalogPlatformModel.ProductBundleRequestSchema} body
|
|
65
68
|
*/
|
|
66
69
|
|
|
67
70
|
/**
|
|
@@ -72,7 +75,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
72
75
|
/**
|
|
73
76
|
* @typedef CreateProductsInBulkParam
|
|
74
77
|
* @property {string} batchId - Batch Id in which assets to be uploaded.
|
|
75
|
-
* @property {CatalogPlatformModel.
|
|
78
|
+
* @property {CatalogPlatformModel.BulkProductRequestSchema} body
|
|
76
79
|
*/
|
|
77
80
|
|
|
78
81
|
/**
|
|
@@ -87,12 +90,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
87
90
|
|
|
88
91
|
/**
|
|
89
92
|
* @typedef DeleteProductParam
|
|
90
|
-
* @property {number} itemId - Id of the product to be
|
|
93
|
+
* @property {number} itemId - Id of the product to be deleted.
|
|
91
94
|
*/
|
|
92
95
|
|
|
93
96
|
/**
|
|
94
97
|
* @typedef DeleteProductBulkJobParam
|
|
95
|
-
* @property {
|
|
98
|
+
* @property {number} batchId - Batch Id of the bulk product job to be deleted.
|
|
96
99
|
*/
|
|
97
100
|
|
|
98
101
|
/**
|
|
@@ -111,7 +114,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
111
114
|
|
|
112
115
|
/**
|
|
113
116
|
* @typedef DownloadInventoryTemplateViewParam
|
|
114
|
-
* @property {string}
|
|
117
|
+
* @property {string} itemType - An `item_type` defines the type of item.
|
|
115
118
|
*/
|
|
116
119
|
|
|
117
120
|
/**
|
|
@@ -125,22 +128,29 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
125
128
|
/**
|
|
126
129
|
* @typedef EditProductParam
|
|
127
130
|
* @property {number} itemId - Id of the product to be updated.
|
|
128
|
-
* @property {CatalogPlatformModel.
|
|
131
|
+
* @property {CatalogPlatformModel.ProductUpdateSchemaV2} body
|
|
129
132
|
*/
|
|
130
133
|
|
|
131
134
|
/**
|
|
132
135
|
* @typedef ExportInventoryConfigParam
|
|
133
|
-
* @property {string}
|
|
136
|
+
* @property {string} [filterType] - Filter type from any one of ['brand',
|
|
137
|
+
* 'store', 'type']
|
|
134
138
|
*/
|
|
135
139
|
|
|
136
140
|
/**
|
|
137
141
|
* @typedef GetAllProductHsnCodesParam
|
|
138
|
-
* @property {number} [pageNo] -
|
|
139
|
-
* @property {number} [pageSize] -
|
|
142
|
+
* @property {number} [pageNo] - Indicates current page number
|
|
143
|
+
* @property {number} [pageSize] - Indicates page size
|
|
140
144
|
* @property {string} [q] - Search using hsn code, description, reporting_hsn
|
|
141
145
|
* @property {string} [type] - Search using type
|
|
142
146
|
*/
|
|
143
147
|
|
|
148
|
+
/**
|
|
149
|
+
* @typedef GetAttributeParam
|
|
150
|
+
* @property {string} attributeSlug - Slug of the attribute for which you want
|
|
151
|
+
* to view the details
|
|
152
|
+
*/
|
|
153
|
+
|
|
144
154
|
/**
|
|
145
155
|
* @typedef GetCategoryDataParam
|
|
146
156
|
* @property {string} uid - Category unique id
|
|
@@ -157,36 +167,15 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
157
167
|
* the company id.
|
|
158
168
|
*/
|
|
159
169
|
|
|
160
|
-
/**
|
|
161
|
-
* @typedef GetCompanyBrandsDRIParam
|
|
162
|
-
* @property {number} [pageNo] - The page number to navigate through the given
|
|
163
|
-
* set of results
|
|
164
|
-
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
165
|
-
* Default is 10.
|
|
166
|
-
*/
|
|
167
|
-
|
|
168
170
|
/** @typedef GetCompanyDetailParam */
|
|
169
171
|
|
|
170
172
|
/** @typedef GetCompanyMetricsParam */
|
|
171
173
|
|
|
172
|
-
/**
|
|
173
|
-
* @typedef GetCompanyVerificationParam
|
|
174
|
-
* @property {string} [q] - A `q` parameter is used to search the company by its name.
|
|
175
|
-
* @property {number} [pageNo] - A `page_no` parameter is a number of the page requested.
|
|
176
|
-
* @property {number} [pageSize] - A `page_size` is the no of items per page.
|
|
177
|
-
*/
|
|
178
|
-
|
|
179
174
|
/**
|
|
180
175
|
* @typedef GetDepartmentDataParam
|
|
181
176
|
* @property {string} uid - A `uid` is a unique identifier of a department.
|
|
182
177
|
*/
|
|
183
178
|
|
|
184
|
-
/**
|
|
185
|
-
* @typedef GetGenderAttributeParam
|
|
186
|
-
* @property {string} attributeSlug - Slug of the attribute for which you want
|
|
187
|
-
* to view the genders
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
179
|
/**
|
|
191
180
|
* @typedef GetHsnCodeParam
|
|
192
181
|
* @property {string} id - Unique id
|
|
@@ -194,7 +183,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
194
183
|
|
|
195
184
|
/**
|
|
196
185
|
* @typedef GetInventoriesParam
|
|
197
|
-
* @property {
|
|
186
|
+
* @property {string} [itemId] - Item code of the product of which size is to be get.
|
|
198
187
|
* @property {string} [size] - Size of which inventory is to get.
|
|
199
188
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
200
189
|
* set of results
|
|
@@ -208,12 +197,17 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
208
197
|
* @property {number[]} [brandIds] - The Brand Id of products to fetch inventory.
|
|
209
198
|
* @property {string[]} [sellerIdentifiers] - The Seller Identifier or Primary
|
|
210
199
|
* Identifier of the inventory.
|
|
211
|
-
* @property {number} [
|
|
212
|
-
*
|
|
200
|
+
* @property {number} [qtyGt] - This field allows you to filter for inventories
|
|
201
|
+
* that have quantity greater than to the specified value based on qty_type filter.
|
|
202
|
+
* @property {number} [qtyLt] - This field allows you to filter for inventories
|
|
203
|
+
* that have a quantity less than to the specified value based on qty_type filter.
|
|
204
|
+
* @property {string} [qtyType] - This field provides flexibility in selecting
|
|
205
|
+
* filter for inventory quantity counts and date queries. For example, you
|
|
206
|
+
* might use this field to specify "total" or "sellable" quantity.
|
|
213
207
|
* @property {string} [fromDate] - Inventory updated on filter to get
|
|
214
|
-
* inventories greater then provided date.
|
|
208
|
+
* inventories greater then or equal to provided date based on qty_type value.
|
|
215
209
|
* @property {string} [toDate] - Inventory updated on filter to get inventories
|
|
216
|
-
* less then provided date.
|
|
210
|
+
* less then or equal to provided date based on qty_type value.
|
|
217
211
|
* @property {string} [sizeIdentifier] - Size Identifier (Seller Identifier or
|
|
218
212
|
* Primary Identifier) of which inventory is to get.
|
|
219
213
|
*/
|
|
@@ -224,6 +218,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
224
218
|
* set of results
|
|
225
219
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
226
220
|
* Default is 12.
|
|
221
|
+
* @property {string} [search] - Search string to filter the results by batch id
|
|
227
222
|
*/
|
|
228
223
|
|
|
229
224
|
/**
|
|
@@ -253,15 +248,15 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
253
248
|
|
|
254
249
|
/** @typedef GetInventoryExportParam */
|
|
255
250
|
|
|
256
|
-
/**
|
|
257
|
-
* @typedef GetInventoryExportDetailParam
|
|
258
|
-
* @property {string} jobId - Company Id in which assets to be uploaded.
|
|
259
|
-
*/
|
|
260
|
-
|
|
261
|
-
/** @typedef GetLocationTagsParam */
|
|
251
|
+
/** @typedef GetMarketplaceOptinDetailParam */
|
|
262
252
|
|
|
263
253
|
/** @typedef GetMarketplacesParam */
|
|
264
254
|
|
|
255
|
+
/**
|
|
256
|
+
* @typedef GetOptimalLocationsParam
|
|
257
|
+
* @property {CatalogPlatformModel.AssignStore} body
|
|
258
|
+
*/
|
|
259
|
+
|
|
265
260
|
/**
|
|
266
261
|
* @typedef GetProductParam
|
|
267
262
|
* @property {number} itemId - Item Id of the product.
|
|
@@ -309,11 +304,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
309
304
|
* detail. Pass the `id` of the keywords which you want to retrieve.
|
|
310
305
|
*/
|
|
311
306
|
|
|
312
|
-
/**
|
|
313
|
-
* @typedef GetProductExportDetailParam
|
|
314
|
-
* @property {string} jobId - Company Id in which assets to be uploaded.
|
|
315
|
-
*/
|
|
316
|
-
|
|
317
307
|
/**
|
|
318
308
|
* @typedef GetProductExportJobsParam
|
|
319
309
|
* @property {string} [status] - This is a parameter used to find all the jobs
|
|
@@ -332,32 +322,19 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
332
322
|
|
|
333
323
|
/**
|
|
334
324
|
* @typedef GetProductSizeParam
|
|
325
|
+
* @property {string} [itemCode] - Item code of the product size.
|
|
335
326
|
* @property {number} itemId - Item Id of the product size.
|
|
327
|
+
* @property {number} [brandUid] - Brand Id of the product size.
|
|
328
|
+
* @property {number} [uid] - Id of the product size.
|
|
336
329
|
*/
|
|
337
330
|
|
|
338
331
|
/** @typedef GetProductTagsParam */
|
|
339
332
|
|
|
340
|
-
/**
|
|
341
|
-
* @typedef GetProductTemplateBySlugParam
|
|
342
|
-
* @property {string} slug - Slug of the template.
|
|
343
|
-
*/
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* @typedef GetProductValidationParam
|
|
347
|
-
* @property {string} type - Type of identifier to validate the product against.
|
|
348
|
-
* @property {string} slug - Type of identifier to validate the product against.
|
|
349
|
-
*/
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* @typedef GetProductVerificationDetailsParam
|
|
353
|
-
* @property {number} itemId - A `item_id` is a unique identifier for a specific product.
|
|
354
|
-
*/
|
|
333
|
+
/** @typedef GetProductValidationParam */
|
|
355
334
|
|
|
356
335
|
/**
|
|
357
336
|
* @typedef GetProductsParam
|
|
358
337
|
* @property {number[]} [brandIds] - Get multiple products filtered by Brand Ids
|
|
359
|
-
* @property {boolean} [multiSize] - Get multiple products filtered by weather
|
|
360
|
-
* have multiple sizes or not
|
|
361
338
|
* @property {number[]} [categoryIds] - Get multiple products filtered by Category Ids
|
|
362
339
|
* @property {number[]} [itemIds] - Get multiple products filtered by Item Ids
|
|
363
340
|
* @property {number[]} [departmentIds] - Get multiple products filtered by Department Ids
|
|
@@ -401,12 +378,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
401
378
|
* @typedef GetSizeGuidesParam
|
|
402
379
|
* @property {boolean} [active] - Filter size guide on basis of active, in-active
|
|
403
380
|
* @property {string} [q] - Query that is to be searched.
|
|
404
|
-
* @property {number} [brandId] - Brand id that is to be searched.
|
|
405
381
|
* @property {string} [tag] - To filter size guide on basis of tag.
|
|
406
382
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
407
383
|
* set of results
|
|
408
384
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
409
385
|
* Default is 10.
|
|
386
|
+
* @property {number} [brandId] - Brand id that is to be searched.
|
|
410
387
|
*/
|
|
411
388
|
|
|
412
389
|
/**
|
|
@@ -417,12 +394,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
417
394
|
* page for the company id.
|
|
418
395
|
*/
|
|
419
396
|
|
|
420
|
-
/**
|
|
421
|
-
* @typedef GetVariantTypesParam
|
|
422
|
-
* @property {string} templateTag - The page number to navigate through the
|
|
423
|
-
* given set of results
|
|
424
|
-
*/
|
|
425
|
-
|
|
426
397
|
/**
|
|
427
398
|
* @typedef GetVariantsOfProductsParam
|
|
428
399
|
* @property {number} itemId - Get list of variants of item Id
|
|
@@ -443,6 +414,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
443
414
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
444
415
|
* Default is 10.
|
|
445
416
|
* @property {number[]} [uids] - Get multiple categories filtered by category uids.
|
|
417
|
+
* @property {string} [slug] - Get category by slug
|
|
446
418
|
*/
|
|
447
419
|
|
|
448
420
|
/**
|
|
@@ -458,14 +430,14 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
458
430
|
* department in search parameter.
|
|
459
431
|
* @property {boolean} [isActive] - Can query for departments based on whether
|
|
460
432
|
* they are active or inactive.
|
|
461
|
-
* @property {
|
|
433
|
+
* @property {string} [slug] - Can filter by slug
|
|
462
434
|
*/
|
|
463
435
|
|
|
464
436
|
/** @typedef ListHSNCodesParam */
|
|
465
437
|
|
|
466
438
|
/**
|
|
467
439
|
* @typedef ListInventoryExportParam
|
|
468
|
-
* @property {string} [status] - Status of the export job.
|
|
440
|
+
* @property {string} [status] - Status of the export job.(Pending, Running, Success)
|
|
469
441
|
* @property {string} [fromDate] - Inventory export history filtered according
|
|
470
442
|
* to from_date.
|
|
471
443
|
* @property {string} [toDate] - Inventory export history filtered according to from_date.
|
|
@@ -487,12 +459,10 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
487
459
|
* whose category needs to be listed. Can specify multiple departments.
|
|
488
460
|
* @property {string} itemType - An `item_type` is the type of item, it can be
|
|
489
461
|
* `set`, `standard`, `digital`, etc.
|
|
490
|
-
* @property {number} [pageSize] - Number of categories needed in one page
|
|
491
|
-
* @property {number} [pageNo] - Page number to fetch, for example if pagesize
|
|
492
|
-
* is 10 and page number 1,
|
|
493
|
-
* @property {number} [q] - Search string to search categories from
|
|
494
462
|
*/
|
|
495
463
|
|
|
464
|
+
/** @typedef ListProductTemplateExportDetailsParam */
|
|
465
|
+
|
|
496
466
|
/**
|
|
497
467
|
* @typedef ListTemplateBrandTypeValuesParam
|
|
498
468
|
* @property {string} filter - A `filter` is the unique identifier of the type
|
|
@@ -504,45 +474,44 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
504
474
|
*/
|
|
505
475
|
|
|
506
476
|
/**
|
|
507
|
-
* @typedef
|
|
508
|
-
* @property {string}
|
|
509
|
-
* @property {CatalogPlatformModel.
|
|
510
|
-
*/
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* @typedef PatchProductExportDetailParam
|
|
514
|
-
* @property {string} jobId - Company Id in which assets to be uploaded.
|
|
515
|
-
* @property {CatalogPlatformModel.ExportPatchRequest} body
|
|
477
|
+
* @typedef UpdateHsnCodeParam
|
|
478
|
+
* @property {string} id - Unique id
|
|
479
|
+
* @property {CatalogPlatformModel.HsnUpsert} body
|
|
516
480
|
*/
|
|
517
481
|
|
|
518
482
|
/**
|
|
519
|
-
* @typedef
|
|
520
|
-
* @property {
|
|
521
|
-
* @property {CatalogPlatformModel.CategoryRequestBody} body
|
|
483
|
+
* @typedef UpdateInventoriesParam
|
|
484
|
+
* @property {CatalogPlatformModel.InventoryRequestSchemaV2} body
|
|
522
485
|
*/
|
|
523
486
|
|
|
524
487
|
/**
|
|
525
|
-
* @typedef
|
|
526
|
-
* @property {
|
|
527
|
-
* @property {
|
|
488
|
+
* @typedef UpdateLocationPriceParam
|
|
489
|
+
* @property {number} storeId - The Store Id to update price of size for specific store.
|
|
490
|
+
* @property {string} sellerIdentifier - Size Identifier (Seller Identifier or
|
|
491
|
+
* Primary Identifier) of which article price is to update.
|
|
492
|
+
* @property {CatalogPlatformModel.LocationPriceRequestSchema} body
|
|
528
493
|
*/
|
|
529
494
|
|
|
530
495
|
/**
|
|
531
|
-
* @typedef
|
|
532
|
-
* @property {
|
|
496
|
+
* @typedef UpdateLocationQuantityParam
|
|
497
|
+
* @property {number} storeId - The Store Id to update quantity of size for
|
|
498
|
+
* specific store.
|
|
499
|
+
* @property {string} sellerIdentifier - Size Identifier (Seller Identifier or
|
|
500
|
+
* Primary Identifier) of which article quantity is to update.
|
|
501
|
+
* @property {CatalogPlatformModel.LocationQuantityRequestSchema} body
|
|
533
502
|
*/
|
|
534
503
|
|
|
535
504
|
/**
|
|
536
505
|
* @typedef UpdateMarketplaceOptinParam
|
|
537
|
-
* @property {string}
|
|
538
|
-
* @property {CatalogPlatformModel.
|
|
506
|
+
* @property {string} marketplaceSlug - Slug of the marketplace .
|
|
507
|
+
* @property {CatalogPlatformModel.UpdateMarketplaceOptinRequestSchema} body
|
|
539
508
|
*/
|
|
540
509
|
|
|
541
510
|
/**
|
|
542
511
|
* @typedef UpdateProductBundleParam
|
|
543
512
|
* @property {string} id - A `id` is a unique identifier for a particular
|
|
544
513
|
* detail. Pass the `id` of the keywords which you want to delete.
|
|
545
|
-
* @property {CatalogPlatformModel.
|
|
514
|
+
* @property {CatalogPlatformModel.ProductBundleUpdateRequestSchema} body
|
|
546
515
|
*/
|
|
547
516
|
|
|
548
517
|
/**
|
|
@@ -555,7 +524,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
555
524
|
|
|
556
525
|
/**
|
|
557
526
|
* @typedef UpdateSizeGuideParam
|
|
558
|
-
* @property {string} id -
|
|
527
|
+
* @property {string} id - Identifier of the size guide to be edited
|
|
559
528
|
* @property {CatalogPlatformModel.ValidateSizeGuide} body
|
|
560
529
|
*/
|
|
561
530
|
|
|
@@ -563,10 +532,20 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
563
532
|
* @typedef UploadBulkProductsParam
|
|
564
533
|
* @property {string} department - Department of the product to be uploaded.
|
|
565
534
|
* @property {string} productType - Product type of the product to be uploaded
|
|
566
|
-
* i.e. set, standard
|
|
535
|
+
* i.e. set, standard, digital.
|
|
567
536
|
* @property {CatalogPlatformModel.BulkProductJob} body
|
|
568
537
|
*/
|
|
569
538
|
|
|
539
|
+
/**
|
|
540
|
+
* @typedef ValidateProductGlobalTemplateParam
|
|
541
|
+
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
542
|
+
* default value is standard.
|
|
543
|
+
* @property {boolean} [bulk] - This specification determines the schema type to
|
|
544
|
+
* be retrieved. When set to true, it will return the schema for bulk data;
|
|
545
|
+
* when set to false, it will provide the schema for a single product. The
|
|
546
|
+
* default value is false.
|
|
547
|
+
*/
|
|
548
|
+
|
|
570
549
|
/**
|
|
571
550
|
* @typedef ValidateProductTemplateParam
|
|
572
551
|
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
@@ -582,10 +561,18 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
582
561
|
* @typedef ValidateProductTemplateSchemaParam
|
|
583
562
|
* @property {string} itemType - An `item_type` defines the type of item. The
|
|
584
563
|
* default value is standard.
|
|
585
|
-
* @property {boolean} bulk - Type of file template i.e if bulk
|
|
586
564
|
*/
|
|
587
565
|
|
|
588
566
|
class CatalogPlatformValidator {
|
|
567
|
+
/** @returns {AddInventoryParam} */
|
|
568
|
+
static addInventory() {
|
|
569
|
+
return Joi.object({
|
|
570
|
+
itemId: Joi.number().required(),
|
|
571
|
+
size: Joi.string().allow("").required(),
|
|
572
|
+
body: CatalogPlatformModel.InventoryRequestSchema().required(),
|
|
573
|
+
}).required();
|
|
574
|
+
}
|
|
575
|
+
|
|
589
576
|
/** @returns {AllSizesParam} */
|
|
590
577
|
static allSizes() {
|
|
591
578
|
return Joi.object({
|
|
@@ -593,68 +580,61 @@ class CatalogPlatformValidator {
|
|
|
593
580
|
}).required();
|
|
594
581
|
}
|
|
595
582
|
|
|
583
|
+
/** @returns {BulkHsnCodeParam} */
|
|
584
|
+
static bulkHsnCode() {
|
|
585
|
+
return Joi.object({
|
|
586
|
+
body: CatalogPlatformModel.BulkHsnUpsert().required(),
|
|
587
|
+
}).required();
|
|
588
|
+
}
|
|
589
|
+
|
|
596
590
|
/** @returns {CreateBulkInventoryParam} */
|
|
597
591
|
static createBulkInventory() {
|
|
598
592
|
return Joi.object({
|
|
599
593
|
batchId: Joi.string().allow("").required(),
|
|
600
|
-
body: CatalogPlatformModel.
|
|
594
|
+
body: CatalogPlatformModel.InventoryBulkRequestSchema().required(),
|
|
601
595
|
}).required();
|
|
602
596
|
}
|
|
603
597
|
|
|
604
598
|
/** @returns {CreateBulkInventoryJobParam} */
|
|
605
599
|
static createBulkInventoryJob() {
|
|
606
600
|
return Joi.object({
|
|
607
|
-
body: CatalogPlatformModel.
|
|
601
|
+
body: CatalogPlatformModel.BulkJob().required(),
|
|
608
602
|
}).required();
|
|
609
603
|
}
|
|
610
604
|
|
|
611
605
|
/** @returns {CreateBulkProductUploadJobParam} */
|
|
612
606
|
static createBulkProductUploadJob() {
|
|
613
607
|
return Joi.object({
|
|
614
|
-
body: CatalogPlatformModel.
|
|
615
|
-
}).required();
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
/** @returns {CreateCategoriesParam} */
|
|
619
|
-
static createCategories() {
|
|
620
|
-
return Joi.object({
|
|
621
|
-
body: CatalogPlatformModel.CategoryRequestBody().required(),
|
|
622
|
-
}).required();
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
/** @returns {CreateDepartmentsParam} */
|
|
626
|
-
static createDepartments() {
|
|
627
|
-
return Joi.object({
|
|
628
|
-
body: CatalogPlatformModel.DepartmentCreateUpdate().required(),
|
|
608
|
+
body: CatalogPlatformModel.BulkJob().required(),
|
|
629
609
|
}).required();
|
|
630
610
|
}
|
|
631
611
|
|
|
632
612
|
/** @returns {CreateInventoryExportParam} */
|
|
633
613
|
static createInventoryExport() {
|
|
634
614
|
return Joi.object({
|
|
635
|
-
body: CatalogPlatformModel.
|
|
615
|
+
body: CatalogPlatformModel.InventoryCreateRequestSchema().required(),
|
|
636
616
|
}).required();
|
|
637
617
|
}
|
|
638
618
|
|
|
639
619
|
/** @returns {CreateInventoryExportJobParam} */
|
|
640
620
|
static createInventoryExportJob() {
|
|
641
621
|
return Joi.object({
|
|
642
|
-
body: CatalogPlatformModel.
|
|
622
|
+
body: CatalogPlatformModel.InventoryExportRequestSchema().required(),
|
|
643
623
|
}).required();
|
|
644
624
|
}
|
|
645
625
|
|
|
646
626
|
/** @returns {CreateMarketplaceOptinParam} */
|
|
647
627
|
static createMarketplaceOptin() {
|
|
648
628
|
return Joi.object({
|
|
649
|
-
|
|
650
|
-
body: CatalogPlatformModel.
|
|
629
|
+
marketplaceSlug: Joi.string().allow("").required(),
|
|
630
|
+
body: CatalogPlatformModel.OptInPostRequestSchema().required(),
|
|
651
631
|
}).required();
|
|
652
632
|
}
|
|
653
633
|
|
|
654
634
|
/** @returns {CreateProductParam} */
|
|
655
635
|
static createProduct() {
|
|
656
636
|
return Joi.object({
|
|
657
|
-
body: CatalogPlatformModel.
|
|
637
|
+
body: CatalogPlatformModel.ProductCreateSchemaV2().required(),
|
|
658
638
|
}).required();
|
|
659
639
|
}
|
|
660
640
|
|
|
@@ -668,7 +648,7 @@ class CatalogPlatformValidator {
|
|
|
668
648
|
/** @returns {CreateProductBundleParam} */
|
|
669
649
|
static createProductBundle() {
|
|
670
650
|
return Joi.object({
|
|
671
|
-
body: CatalogPlatformModel.
|
|
651
|
+
body: CatalogPlatformModel.ProductBundleRequestSchema().required(),
|
|
672
652
|
}).required();
|
|
673
653
|
}
|
|
674
654
|
|
|
@@ -683,7 +663,7 @@ class CatalogPlatformValidator {
|
|
|
683
663
|
static createProductsInBulk() {
|
|
684
664
|
return Joi.object({
|
|
685
665
|
batchId: Joi.string().allow("").required(),
|
|
686
|
-
body: CatalogPlatformModel.
|
|
666
|
+
body: CatalogPlatformModel.BulkProductRequestSchema().required(),
|
|
687
667
|
}).required();
|
|
688
668
|
}
|
|
689
669
|
|
|
@@ -711,7 +691,7 @@ class CatalogPlatformValidator {
|
|
|
711
691
|
/** @returns {DeleteProductBulkJobParam} */
|
|
712
692
|
static deleteProductBulkJob() {
|
|
713
693
|
return Joi.object({
|
|
714
|
-
batchId: Joi.
|
|
694
|
+
batchId: Joi.number().required(),
|
|
715
695
|
}).required();
|
|
716
696
|
}
|
|
717
697
|
|
|
@@ -735,7 +715,7 @@ class CatalogPlatformValidator {
|
|
|
735
715
|
/** @returns {DownloadInventoryTemplateViewParam} */
|
|
736
716
|
static downloadInventoryTemplateView() {
|
|
737
717
|
return Joi.object({
|
|
738
|
-
|
|
718
|
+
itemType: Joi.string().allow("").required(),
|
|
739
719
|
}).required();
|
|
740
720
|
}
|
|
741
721
|
|
|
@@ -752,14 +732,14 @@ class CatalogPlatformValidator {
|
|
|
752
732
|
static editProduct() {
|
|
753
733
|
return Joi.object({
|
|
754
734
|
itemId: Joi.number().required(),
|
|
755
|
-
body: CatalogPlatformModel.
|
|
735
|
+
body: CatalogPlatformModel.ProductUpdateSchemaV2().required(),
|
|
756
736
|
}).required();
|
|
757
737
|
}
|
|
758
738
|
|
|
759
739
|
/** @returns {ExportInventoryConfigParam} */
|
|
760
740
|
static exportInventoryConfig() {
|
|
761
741
|
return Joi.object({
|
|
762
|
-
|
|
742
|
+
filterType: Joi.string().allow(""),
|
|
763
743
|
}).required();
|
|
764
744
|
}
|
|
765
745
|
|
|
@@ -773,6 +753,13 @@ class CatalogPlatformValidator {
|
|
|
773
753
|
}).required();
|
|
774
754
|
}
|
|
775
755
|
|
|
756
|
+
/** @returns {GetAttributeParam} */
|
|
757
|
+
static getAttribute() {
|
|
758
|
+
return Joi.object({
|
|
759
|
+
attributeSlug: Joi.string().allow("").required(),
|
|
760
|
+
}).required();
|
|
761
|
+
}
|
|
762
|
+
|
|
776
763
|
/** @returns {GetCategoryDataParam} */
|
|
777
764
|
static getCategoryData() {
|
|
778
765
|
return Joi.object({
|
|
@@ -791,14 +778,6 @@ class CatalogPlatformValidator {
|
|
|
791
778
|
}).required();
|
|
792
779
|
}
|
|
793
780
|
|
|
794
|
-
/** @returns {GetCompanyBrandsDRIParam} */
|
|
795
|
-
static getCompanyBrandsDRI() {
|
|
796
|
-
return Joi.object({
|
|
797
|
-
pageNo: Joi.number(),
|
|
798
|
-
pageSize: Joi.number(),
|
|
799
|
-
}).required();
|
|
800
|
-
}
|
|
801
|
-
|
|
802
781
|
/** @returns {GetCompanyDetailParam} */
|
|
803
782
|
static getCompanyDetail() {
|
|
804
783
|
return Joi.object({}).required();
|
|
@@ -809,15 +788,6 @@ class CatalogPlatformValidator {
|
|
|
809
788
|
return Joi.object({}).required();
|
|
810
789
|
}
|
|
811
790
|
|
|
812
|
-
/** @returns {GetCompanyVerificationParam} */
|
|
813
|
-
static getCompanyVerification() {
|
|
814
|
-
return Joi.object({
|
|
815
|
-
q: Joi.string().allow(""),
|
|
816
|
-
pageNo: Joi.number(),
|
|
817
|
-
pageSize: Joi.number(),
|
|
818
|
-
}).required();
|
|
819
|
-
}
|
|
820
|
-
|
|
821
791
|
/** @returns {GetDepartmentDataParam} */
|
|
822
792
|
static getDepartmentData() {
|
|
823
793
|
return Joi.object({
|
|
@@ -825,13 +795,6 @@ class CatalogPlatformValidator {
|
|
|
825
795
|
}).required();
|
|
826
796
|
}
|
|
827
797
|
|
|
828
|
-
/** @returns {GetGenderAttributeParam} */
|
|
829
|
-
static getGenderAttribute() {
|
|
830
|
-
return Joi.object({
|
|
831
|
-
attributeSlug: Joi.string().allow("").required(),
|
|
832
|
-
}).required();
|
|
833
|
-
}
|
|
834
|
-
|
|
835
798
|
/** @returns {GetHsnCodeParam} */
|
|
836
799
|
static getHsnCode() {
|
|
837
800
|
return Joi.object({
|
|
@@ -842,7 +805,7 @@ class CatalogPlatformValidator {
|
|
|
842
805
|
/** @returns {GetInventoriesParam} */
|
|
843
806
|
static getInventories() {
|
|
844
807
|
return Joi.object({
|
|
845
|
-
itemId: Joi.
|
|
808
|
+
itemId: Joi.string().allow(""),
|
|
846
809
|
size: Joi.string().allow(""),
|
|
847
810
|
pageNo: Joi.number(),
|
|
848
811
|
pageSize: Joi.number(),
|
|
@@ -853,8 +816,9 @@ class CatalogPlatformValidator {
|
|
|
853
816
|
storeIds: Joi.array().items(Joi.number()),
|
|
854
817
|
brandIds: Joi.array().items(Joi.number()),
|
|
855
818
|
sellerIdentifiers: Joi.array().items(Joi.string().allow("")),
|
|
856
|
-
|
|
857
|
-
|
|
819
|
+
qtyGt: Joi.number(),
|
|
820
|
+
qtyLt: Joi.number(),
|
|
821
|
+
qtyType: Joi.string().allow(""),
|
|
858
822
|
fromDate: Joi.string().allow(""),
|
|
859
823
|
toDate: Joi.string().allow(""),
|
|
860
824
|
sizeIdentifier: Joi.string().allow(""),
|
|
@@ -866,6 +830,7 @@ class CatalogPlatformValidator {
|
|
|
866
830
|
return Joi.object({
|
|
867
831
|
pageNo: Joi.number(),
|
|
868
832
|
pageSize: Joi.number(),
|
|
833
|
+
search: Joi.string().allow(""),
|
|
869
834
|
}).required();
|
|
870
835
|
}
|
|
871
836
|
|
|
@@ -898,15 +863,8 @@ class CatalogPlatformValidator {
|
|
|
898
863
|
return Joi.object({}).required();
|
|
899
864
|
}
|
|
900
865
|
|
|
901
|
-
/** @returns {
|
|
902
|
-
static
|
|
903
|
-
return Joi.object({
|
|
904
|
-
jobId: Joi.string().allow("").required(),
|
|
905
|
-
}).required();
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
/** @returns {GetLocationTagsParam} */
|
|
909
|
-
static getLocationTags() {
|
|
866
|
+
/** @returns {GetMarketplaceOptinDetailParam} */
|
|
867
|
+
static getMarketplaceOptinDetail() {
|
|
910
868
|
return Joi.object({}).required();
|
|
911
869
|
}
|
|
912
870
|
|
|
@@ -915,6 +873,13 @@ class CatalogPlatformValidator {
|
|
|
915
873
|
return Joi.object({}).required();
|
|
916
874
|
}
|
|
917
875
|
|
|
876
|
+
/** @returns {GetOptimalLocationsParam} */
|
|
877
|
+
static getOptimalLocations() {
|
|
878
|
+
return Joi.object({
|
|
879
|
+
body: CatalogPlatformModel.AssignStore().required(),
|
|
880
|
+
}).required();
|
|
881
|
+
}
|
|
882
|
+
|
|
918
883
|
/** @returns {GetProductParam} */
|
|
919
884
|
static getProduct() {
|
|
920
885
|
return Joi.object({
|
|
@@ -966,13 +931,6 @@ class CatalogPlatformValidator {
|
|
|
966
931
|
}).required();
|
|
967
932
|
}
|
|
968
933
|
|
|
969
|
-
/** @returns {GetProductExportDetailParam} */
|
|
970
|
-
static getProductExportDetail() {
|
|
971
|
-
return Joi.object({
|
|
972
|
-
jobId: Joi.string().allow("").required(),
|
|
973
|
-
}).required();
|
|
974
|
-
}
|
|
975
|
-
|
|
976
934
|
/** @returns {GetProductExportJobsParam} */
|
|
977
935
|
static getProductExportJobs() {
|
|
978
936
|
return Joi.object({
|
|
@@ -988,7 +946,10 @@ class CatalogPlatformValidator {
|
|
|
988
946
|
/** @returns {GetProductSizeParam} */
|
|
989
947
|
static getProductSize() {
|
|
990
948
|
return Joi.object({
|
|
949
|
+
itemCode: Joi.string().allow(""),
|
|
991
950
|
itemId: Joi.number().required(),
|
|
951
|
+
brandUid: Joi.number(),
|
|
952
|
+
uid: Joi.number(),
|
|
992
953
|
}).required();
|
|
993
954
|
}
|
|
994
955
|
|
|
@@ -997,33 +958,15 @@ class CatalogPlatformValidator {
|
|
|
997
958
|
return Joi.object({}).required();
|
|
998
959
|
}
|
|
999
960
|
|
|
1000
|
-
/** @returns {GetProductTemplateBySlugParam} */
|
|
1001
|
-
static getProductTemplateBySlug() {
|
|
1002
|
-
return Joi.object({
|
|
1003
|
-
slug: Joi.string().allow("").required(),
|
|
1004
|
-
}).required();
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
961
|
/** @returns {GetProductValidationParam} */
|
|
1008
962
|
static getProductValidation() {
|
|
1009
|
-
return Joi.object({
|
|
1010
|
-
type: Joi.string().allow("").required(),
|
|
1011
|
-
slug: Joi.string().allow("").required(),
|
|
1012
|
-
}).required();
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
/** @returns {GetProductVerificationDetailsParam} */
|
|
1016
|
-
static getProductVerificationDetails() {
|
|
1017
|
-
return Joi.object({
|
|
1018
|
-
itemId: Joi.number().required(),
|
|
1019
|
-
}).required();
|
|
963
|
+
return Joi.object({}).required();
|
|
1020
964
|
}
|
|
1021
965
|
|
|
1022
966
|
/** @returns {GetProductsParam} */
|
|
1023
967
|
static getProducts() {
|
|
1024
968
|
return Joi.object({
|
|
1025
969
|
brandIds: Joi.array().items(Joi.number()),
|
|
1026
|
-
multiSize: Joi.boolean(),
|
|
1027
970
|
categoryIds: Joi.array().items(Joi.number()),
|
|
1028
971
|
itemIds: Joi.array().items(Joi.number()),
|
|
1029
972
|
departmentIds: Joi.array().items(Joi.number()),
|
|
@@ -1067,10 +1010,10 @@ class CatalogPlatformValidator {
|
|
|
1067
1010
|
return Joi.object({
|
|
1068
1011
|
active: Joi.boolean(),
|
|
1069
1012
|
q: Joi.string().allow(""),
|
|
1070
|
-
brandId: Joi.number(),
|
|
1071
1013
|
tag: Joi.string().allow(""),
|
|
1072
1014
|
pageNo: Joi.number(),
|
|
1073
1015
|
pageSize: Joi.number(),
|
|
1016
|
+
brandId: Joi.number(),
|
|
1074
1017
|
}).required();
|
|
1075
1018
|
}
|
|
1076
1019
|
|
|
@@ -1083,13 +1026,6 @@ class CatalogPlatformValidator {
|
|
|
1083
1026
|
}).required();
|
|
1084
1027
|
}
|
|
1085
1028
|
|
|
1086
|
-
/** @returns {GetVariantTypesParam} */
|
|
1087
|
-
static getVariantTypes() {
|
|
1088
|
-
return Joi.object({
|
|
1089
|
-
templateTag: Joi.string().allow("").required(),
|
|
1090
|
-
}).required();
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
1029
|
/** @returns {GetVariantsOfProductsParam} */
|
|
1094
1030
|
static getVariantsOfProducts() {
|
|
1095
1031
|
return Joi.object({
|
|
@@ -1109,6 +1045,7 @@ class CatalogPlatformValidator {
|
|
|
1109
1045
|
pageNo: Joi.number(),
|
|
1110
1046
|
pageSize: Joi.number(),
|
|
1111
1047
|
uids: Joi.array().items(Joi.number()),
|
|
1048
|
+
slug: Joi.string().allow(""),
|
|
1112
1049
|
}).required();
|
|
1113
1050
|
}
|
|
1114
1051
|
|
|
@@ -1121,7 +1058,7 @@ class CatalogPlatformValidator {
|
|
|
1121
1058
|
name: Joi.string().allow(""),
|
|
1122
1059
|
search: Joi.string().allow(""),
|
|
1123
1060
|
isActive: Joi.boolean(),
|
|
1124
|
-
|
|
1061
|
+
slug: Joi.string().allow(""),
|
|
1125
1062
|
}).required();
|
|
1126
1063
|
}
|
|
1127
1064
|
|
|
@@ -1154,12 +1091,14 @@ class CatalogPlatformValidator {
|
|
|
1154
1091
|
return Joi.object({
|
|
1155
1092
|
departments: Joi.string().allow("").required(),
|
|
1156
1093
|
itemType: Joi.string().allow("").required(),
|
|
1157
|
-
pageSize: Joi.number(),
|
|
1158
|
-
pageNo: Joi.number(),
|
|
1159
|
-
q: Joi.number(),
|
|
1160
1094
|
}).required();
|
|
1161
1095
|
}
|
|
1162
1096
|
|
|
1097
|
+
/** @returns {ListProductTemplateExportDetailsParam} */
|
|
1098
|
+
static listProductTemplateExportDetails() {
|
|
1099
|
+
return Joi.object({}).required();
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1163
1102
|
/** @returns {ListTemplateBrandTypeValuesParam} */
|
|
1164
1103
|
static listTemplateBrandTypeValues() {
|
|
1165
1104
|
return Joi.object({
|
|
@@ -1169,50 +1108,44 @@ class CatalogPlatformValidator {
|
|
|
1169
1108
|
}).required();
|
|
1170
1109
|
}
|
|
1171
1110
|
|
|
1172
|
-
/** @returns {
|
|
1173
|
-
static
|
|
1174
|
-
return Joi.object({
|
|
1175
|
-
jobId: Joi.string().allow("").required(),
|
|
1176
|
-
body: CatalogPlatformModel.ExportPatchRequest().required(),
|
|
1177
|
-
}).required();
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
/** @returns {PatchProductExportDetailParam} */
|
|
1181
|
-
static patchProductExportDetail() {
|
|
1111
|
+
/** @returns {UpdateHsnCodeParam} */
|
|
1112
|
+
static updateHsnCode() {
|
|
1182
1113
|
return Joi.object({
|
|
1183
|
-
|
|
1184
|
-
body: CatalogPlatformModel.
|
|
1114
|
+
id: Joi.string().allow("").required(),
|
|
1115
|
+
body: CatalogPlatformModel.HsnUpsert().required(),
|
|
1185
1116
|
}).required();
|
|
1186
1117
|
}
|
|
1187
1118
|
|
|
1188
|
-
/** @returns {
|
|
1189
|
-
static
|
|
1119
|
+
/** @returns {UpdateInventoriesParam} */
|
|
1120
|
+
static updateInventories() {
|
|
1190
1121
|
return Joi.object({
|
|
1191
|
-
|
|
1192
|
-
body: CatalogPlatformModel.CategoryRequestBody().required(),
|
|
1122
|
+
body: CatalogPlatformModel.InventoryRequestSchemaV2().required(),
|
|
1193
1123
|
}).required();
|
|
1194
1124
|
}
|
|
1195
1125
|
|
|
1196
|
-
/** @returns {
|
|
1197
|
-
static
|
|
1126
|
+
/** @returns {UpdateLocationPriceParam} */
|
|
1127
|
+
static updateLocationPrice() {
|
|
1198
1128
|
return Joi.object({
|
|
1199
|
-
|
|
1200
|
-
|
|
1129
|
+
storeId: Joi.number().required(),
|
|
1130
|
+
sellerIdentifier: Joi.string().allow("").required(),
|
|
1131
|
+
body: CatalogPlatformModel.LocationPriceRequestSchema().required(),
|
|
1201
1132
|
}).required();
|
|
1202
1133
|
}
|
|
1203
1134
|
|
|
1204
|
-
/** @returns {
|
|
1205
|
-
static
|
|
1135
|
+
/** @returns {UpdateLocationQuantityParam} */
|
|
1136
|
+
static updateLocationQuantity() {
|
|
1206
1137
|
return Joi.object({
|
|
1207
|
-
|
|
1138
|
+
storeId: Joi.number().required(),
|
|
1139
|
+
sellerIdentifier: Joi.string().allow("").required(),
|
|
1140
|
+
body: CatalogPlatformModel.LocationQuantityRequestSchema().required(),
|
|
1208
1141
|
}).required();
|
|
1209
1142
|
}
|
|
1210
1143
|
|
|
1211
1144
|
/** @returns {UpdateMarketplaceOptinParam} */
|
|
1212
1145
|
static updateMarketplaceOptin() {
|
|
1213
1146
|
return Joi.object({
|
|
1214
|
-
|
|
1215
|
-
body: CatalogPlatformModel.
|
|
1147
|
+
marketplaceSlug: Joi.string().allow("").required(),
|
|
1148
|
+
body: CatalogPlatformModel.UpdateMarketplaceOptinRequestSchema().required(),
|
|
1216
1149
|
}).required();
|
|
1217
1150
|
}
|
|
1218
1151
|
|
|
@@ -1220,7 +1153,7 @@ class CatalogPlatformValidator {
|
|
|
1220
1153
|
static updateProductBundle() {
|
|
1221
1154
|
return Joi.object({
|
|
1222
1155
|
id: Joi.string().allow("").required(),
|
|
1223
|
-
body: CatalogPlatformModel.
|
|
1156
|
+
body: CatalogPlatformModel.ProductBundleUpdateRequestSchema().required(),
|
|
1224
1157
|
}).required();
|
|
1225
1158
|
}
|
|
1226
1159
|
|
|
@@ -1250,6 +1183,14 @@ class CatalogPlatformValidator {
|
|
|
1250
1183
|
}).required();
|
|
1251
1184
|
}
|
|
1252
1185
|
|
|
1186
|
+
/** @returns {ValidateProductGlobalTemplateParam} */
|
|
1187
|
+
static validateProductGlobalTemplate() {
|
|
1188
|
+
return Joi.object({
|
|
1189
|
+
itemType: Joi.string().allow(""),
|
|
1190
|
+
bulk: Joi.boolean(),
|
|
1191
|
+
}).required();
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1253
1194
|
/** @returns {ValidateProductTemplateParam} */
|
|
1254
1195
|
static validateProductTemplate() {
|
|
1255
1196
|
return Joi.object({
|
|
@@ -1263,7 +1204,6 @@ class CatalogPlatformValidator {
|
|
|
1263
1204
|
static validateProductTemplateSchema() {
|
|
1264
1205
|
return Joi.object({
|
|
1265
1206
|
itemType: Joi.string().allow("").required(),
|
|
1266
|
-
bulk: Joi.boolean().required(),
|
|
1267
1207
|
}).required();
|
|
1268
1208
|
}
|
|
1269
1209
|
}
|