@gofynd/fdk-client-javascript 1.6.4 → 3.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +100 -80
- package/sdk/application/Cart/CartApplicationClient.js +257 -126
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -21
- package/sdk/application/Content/ContentApplicationClient.js +250 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
- package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
- package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
- package/sdk/platform/Content/ContentPlatformModel.js +940 -599
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
- package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
- package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
- package/sdk/platform/Share/SharePlatformModel.js +5 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -2,54 +2,41 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
4
4
|
|
|
5
|
-
/**
|
|
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
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
5
|
/**
|
|
13
6
|
* @typedef AllSizesParam
|
|
14
7
|
* @property {number} itemId - Id of the product to be updated.
|
|
15
8
|
*/
|
|
16
9
|
|
|
17
|
-
/**
|
|
18
|
-
* @typedef BulkHsnCodeParam
|
|
19
|
-
* @property {CatalogPlatformModel.BulkHsnUpsert} body
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
10
|
/**
|
|
23
11
|
* @typedef CreateBulkInventoryParam
|
|
24
12
|
* @property {string} batchId - Batch Id of the bulk create job.
|
|
25
|
-
* @property {CatalogPlatformModel.
|
|
13
|
+
* @property {CatalogPlatformModel.InventoryBulkRequest} body
|
|
26
14
|
*/
|
|
27
15
|
|
|
28
16
|
/**
|
|
29
17
|
* @typedef CreateBulkInventoryJobParam
|
|
30
|
-
* @property {CatalogPlatformModel.
|
|
18
|
+
* @property {CatalogPlatformModel.InventoryBulkJob} body
|
|
31
19
|
*/
|
|
32
20
|
|
|
33
21
|
/**
|
|
34
22
|
* @typedef CreateBulkProductUploadJobParam
|
|
35
|
-
* @property {CatalogPlatformModel.
|
|
23
|
+
* @property {CatalogPlatformModel.BulkProductUploadJob} body
|
|
36
24
|
*/
|
|
37
25
|
|
|
38
26
|
/**
|
|
39
27
|
* @typedef CreateInventoryExportParam
|
|
40
|
-
* @property {CatalogPlatformModel.
|
|
28
|
+
* @property {CatalogPlatformModel.InventoryCreateRequest} body
|
|
41
29
|
*/
|
|
42
30
|
|
|
43
31
|
/**
|
|
44
32
|
* @typedef CreateInventoryExportJobParam
|
|
45
|
-
* @property {CatalogPlatformModel.
|
|
33
|
+
* @property {CatalogPlatformModel.InventoryExportRequest} body
|
|
46
34
|
*/
|
|
47
35
|
|
|
48
36
|
/**
|
|
49
37
|
* @typedef CreateMarketplaceOptinParam
|
|
50
|
-
* @property {string}
|
|
51
|
-
*
|
|
52
|
-
* @property {CatalogPlatformModel.OptInPostRequestSchema} body
|
|
38
|
+
* @property {string} marketplace - Slug of the marketplace .
|
|
39
|
+
* @property {CatalogPlatformModel.CreateMarketplaceOptinRequest} body
|
|
53
40
|
*/
|
|
54
41
|
|
|
55
42
|
/**
|
|
@@ -64,7 +51,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
64
51
|
|
|
65
52
|
/**
|
|
66
53
|
* @typedef CreateProductBundleParam
|
|
67
|
-
* @property {CatalogPlatformModel.
|
|
54
|
+
* @property {CatalogPlatformModel.ProductBundleRequest} body
|
|
68
55
|
*/
|
|
69
56
|
|
|
70
57
|
/**
|
|
@@ -75,7 +62,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
75
62
|
/**
|
|
76
63
|
* @typedef CreateProductsInBulkParam
|
|
77
64
|
* @property {string} batchId - Batch Id in which assets to be uploaded.
|
|
78
|
-
* @property {CatalogPlatformModel.
|
|
65
|
+
* @property {CatalogPlatformModel.BulkProductRequest} body
|
|
79
66
|
*/
|
|
80
67
|
|
|
81
68
|
/**
|
|
@@ -90,13 +77,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
90
77
|
|
|
91
78
|
/**
|
|
92
79
|
* @typedef DeleteProductParam
|
|
93
|
-
* @property {number} itemId - Id of the product to be
|
|
94
|
-
* @property {CatalogPlatformModel.DeleteProductRequestBody} body
|
|
80
|
+
* @property {number} itemId - Id of the product to be updated.
|
|
95
81
|
*/
|
|
96
82
|
|
|
97
83
|
/**
|
|
98
84
|
* @typedef DeleteProductBulkJobParam
|
|
99
|
-
* @property {
|
|
85
|
+
* @property {string} batchId - Batch Id of the bulk product job to be deleted.
|
|
100
86
|
*/
|
|
101
87
|
|
|
102
88
|
/**
|
|
@@ -115,7 +101,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
115
101
|
|
|
116
102
|
/**
|
|
117
103
|
* @typedef DownloadInventoryTemplateViewParam
|
|
118
|
-
* @property {string}
|
|
104
|
+
* @property {string} type - Type of file
|
|
119
105
|
*/
|
|
120
106
|
|
|
121
107
|
/**
|
|
@@ -134,14 +120,13 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
134
120
|
|
|
135
121
|
/**
|
|
136
122
|
* @typedef ExportInventoryConfigParam
|
|
137
|
-
* @property {string}
|
|
138
|
-
* 'store', 'type']
|
|
123
|
+
* @property {string} filter - Filter type from any one of ['brand', 'store', 'type']
|
|
139
124
|
*/
|
|
140
125
|
|
|
141
126
|
/**
|
|
142
127
|
* @typedef GetAllProductHsnCodesParam
|
|
143
|
-
* @property {number} [pageNo] -
|
|
144
|
-
* @property {number} [pageSize] -
|
|
128
|
+
* @property {number} [pageNo] - Page no
|
|
129
|
+
* @property {number} [pageSize] - Page size
|
|
145
130
|
* @property {string} [q] - Search using hsn code, description, reporting_hsn
|
|
146
131
|
* @property {string} [type] - Search using type
|
|
147
132
|
*/
|
|
@@ -168,10 +153,25 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
168
153
|
* the company id.
|
|
169
154
|
*/
|
|
170
155
|
|
|
156
|
+
/**
|
|
157
|
+
* @typedef GetCompanyBrandsDRIParam
|
|
158
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
159
|
+
* set of results
|
|
160
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
161
|
+
* Default is 10.
|
|
162
|
+
*/
|
|
163
|
+
|
|
171
164
|
/** @typedef GetCompanyDetailParam */
|
|
172
165
|
|
|
173
166
|
/** @typedef GetCompanyMetricsParam */
|
|
174
167
|
|
|
168
|
+
/**
|
|
169
|
+
* @typedef GetCompanyVerificationParam
|
|
170
|
+
* @property {string} [q] - A `q` parameter is used to search the company by its name.
|
|
171
|
+
* @property {number} [pageNo] - A `page_no` parameter is a number of the page requested.
|
|
172
|
+
* @property {number} [pageSize] - A `page_size` is the no of items per page.
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
175
|
/**
|
|
176
176
|
* @typedef GetDepartmentDataParam
|
|
177
177
|
* @property {string} uid - A `uid` is a unique identifier of a department.
|
|
@@ -184,7 +184,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* @typedef GetInventoriesParam
|
|
187
|
-
* @property {
|
|
187
|
+
* @property {number} [itemId] - Item code of the product of which size is to be get.
|
|
188
188
|
* @property {string} [size] - Size of which inventory is to get.
|
|
189
189
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
190
190
|
* set of results
|
|
@@ -198,17 +198,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
198
198
|
* @property {number[]} [brandIds] - The Brand Id of products to fetch inventory.
|
|
199
199
|
* @property {string[]} [sellerIdentifiers] - The Seller Identifier or Primary
|
|
200
200
|
* Identifier of the inventory.
|
|
201
|
-
* @property {number} [
|
|
202
|
-
*
|
|
203
|
-
* @property {number} [qtyLt] - This field allows you to filter for inventories
|
|
204
|
-
* that have a quantity less than to the specified value based on qty_type filter.
|
|
205
|
-
* @property {string} [qtyType] - This field provides flexibility in selecting
|
|
206
|
-
* filter for inventory quantity counts and date queries. For example, you
|
|
207
|
-
* might use this field to specify "total" or "sellable" quantity.
|
|
201
|
+
* @property {number} [minSellable] - Min sellable quantity.
|
|
202
|
+
* @property {number} [maxSellable] - Max sellable quantity.
|
|
208
203
|
* @property {string} [fromDate] - Inventory updated on filter to get
|
|
209
|
-
* inventories greater then
|
|
204
|
+
* inventories greater then provided date.
|
|
210
205
|
* @property {string} [toDate] - Inventory updated on filter to get inventories
|
|
211
|
-
* less then
|
|
206
|
+
* less then provided date.
|
|
212
207
|
* @property {string} [sizeIdentifier] - Size Identifier (Seller Identifier or
|
|
213
208
|
* Primary Identifier) of which inventory is to get.
|
|
214
209
|
*/
|
|
@@ -219,7 +214,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
219
214
|
* set of results
|
|
220
215
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
221
216
|
* Default is 12.
|
|
222
|
-
* @property {string} [search] - Search string to filter the results by batch id
|
|
223
217
|
*/
|
|
224
218
|
|
|
225
219
|
/**
|
|
@@ -249,15 +243,15 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
249
243
|
|
|
250
244
|
/** @typedef GetInventoryExportParam */
|
|
251
245
|
|
|
252
|
-
/** @typedef GetMarketplaceOptinDetailParam */
|
|
253
|
-
|
|
254
|
-
/** @typedef GetMarketplacesParam */
|
|
255
|
-
|
|
256
246
|
/**
|
|
257
|
-
* @typedef
|
|
258
|
-
* @property {
|
|
247
|
+
* @typedef GetInventoryExportDetailParam
|
|
248
|
+
* @property {string} jobId - Company Id in which assets to be uploaded.
|
|
259
249
|
*/
|
|
260
250
|
|
|
251
|
+
/** @typedef GetLocationTagsParam */
|
|
252
|
+
|
|
253
|
+
/** @typedef GetMarketplacesParam */
|
|
254
|
+
|
|
261
255
|
/**
|
|
262
256
|
* @typedef GetProductParam
|
|
263
257
|
* @property {number} itemId - Item Id of the product.
|
|
@@ -305,6 +299,11 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
305
299
|
* detail. Pass the `id` of the keywords which you want to retrieve.
|
|
306
300
|
*/
|
|
307
301
|
|
|
302
|
+
/**
|
|
303
|
+
* @typedef GetProductExportDetailParam
|
|
304
|
+
* @property {string} jobId - Company Id in which assets to be uploaded.
|
|
305
|
+
*/
|
|
306
|
+
|
|
308
307
|
/**
|
|
309
308
|
* @typedef GetProductExportJobsParam
|
|
310
309
|
* @property {string} [status] - This is a parameter used to find all the jobs
|
|
@@ -323,19 +322,32 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
323
322
|
|
|
324
323
|
/**
|
|
325
324
|
* @typedef GetProductSizeParam
|
|
326
|
-
* @property {string} [itemCode] - Item code of the product size.
|
|
327
325
|
* @property {number} itemId - Item Id of the product size.
|
|
328
|
-
* @property {number} [brandUid] - Brand Id of the product size.
|
|
329
|
-
* @property {number} [uid] - Id of the product size.
|
|
330
326
|
*/
|
|
331
327
|
|
|
332
328
|
/** @typedef GetProductTagsParam */
|
|
333
329
|
|
|
334
|
-
/**
|
|
330
|
+
/**
|
|
331
|
+
* @typedef GetProductTemplateBySlugParam
|
|
332
|
+
* @property {string} slug - Slug of the template.
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @typedef GetProductValidationParam
|
|
337
|
+
* @property {string} type - Type of identifier to validate the product against.
|
|
338
|
+
* @property {string} slug - Type of identifier to validate the product against.
|
|
339
|
+
*/
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @typedef GetProductVerificationDetailsParam
|
|
343
|
+
* @property {number} itemId - A `item_id` is a unique identifier for a specific product.
|
|
344
|
+
*/
|
|
335
345
|
|
|
336
346
|
/**
|
|
337
347
|
* @typedef GetProductsParam
|
|
338
348
|
* @property {number[]} [brandIds] - Get multiple products filtered by Brand Ids
|
|
349
|
+
* @property {boolean} [multiSize] - Get multiple products filtered by weather
|
|
350
|
+
* have multiple sizes or not
|
|
339
351
|
* @property {number[]} [categoryIds] - Get multiple products filtered by Category Ids
|
|
340
352
|
* @property {number[]} [itemIds] - Get multiple products filtered by Item Ids
|
|
341
353
|
* @property {number[]} [departmentIds] - Get multiple products filtered by Department Ids
|
|
@@ -379,12 +391,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
379
391
|
* @typedef GetSizeGuidesParam
|
|
380
392
|
* @property {boolean} [active] - Filter size guide on basis of active, in-active
|
|
381
393
|
* @property {string} [q] - Query that is to be searched.
|
|
394
|
+
* @property {number} [brandId] - Brand id that is to be searched.
|
|
382
395
|
* @property {string} [tag] - To filter size guide on basis of tag.
|
|
383
396
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
384
397
|
* set of results
|
|
385
398
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
386
399
|
* Default is 10.
|
|
387
|
-
* @property {number} [brandId] - Brand id that is to be searched.
|
|
388
400
|
*/
|
|
389
401
|
|
|
390
402
|
/**
|
|
@@ -395,6 +407,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
395
407
|
* page for the company id.
|
|
396
408
|
*/
|
|
397
409
|
|
|
410
|
+
/**
|
|
411
|
+
* @typedef GetVariantTypesParam
|
|
412
|
+
* @property {string} templateTag - The page number to navigate through the
|
|
413
|
+
* given set of results
|
|
414
|
+
*/
|
|
415
|
+
|
|
398
416
|
/**
|
|
399
417
|
* @typedef GetVariantsOfProductsParam
|
|
400
418
|
* @property {number} itemId - Get list of variants of item Id
|
|
@@ -415,7 +433,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
415
433
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
416
434
|
* Default is 10.
|
|
417
435
|
* @property {number[]} [uids] - Get multiple categories filtered by category uids.
|
|
418
|
-
* @property {string} [slug] - Get category by slug
|
|
419
436
|
*/
|
|
420
437
|
|
|
421
438
|
/**
|
|
@@ -431,14 +448,14 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
431
448
|
* department in search parameter.
|
|
432
449
|
* @property {boolean} [isActive] - Can query for departments based on whether
|
|
433
450
|
* they are active or inactive.
|
|
434
|
-
* @property {
|
|
451
|
+
* @property {number[]} [uids] - Filter department by uids.
|
|
435
452
|
*/
|
|
436
453
|
|
|
437
454
|
/** @typedef ListHSNCodesParam */
|
|
438
455
|
|
|
439
456
|
/**
|
|
440
457
|
* @typedef ListInventoryExportParam
|
|
441
|
-
* @property {string} [status] - Status of the export job.
|
|
458
|
+
* @property {string} [status] - Status of the export job.
|
|
442
459
|
* @property {string} [fromDate] - Inventory export history filtered according
|
|
443
460
|
* to from_date.
|
|
444
461
|
* @property {string} [toDate] - Inventory export history filtered according to from_date.
|
|
@@ -460,10 +477,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
460
477
|
* whose category needs to be listed. Can specify multiple departments.
|
|
461
478
|
* @property {string} itemType - An `item_type` is the type of item, it can be
|
|
462
479
|
* `set`, `standard`, `digital`, etc.
|
|
480
|
+
* @property {number} [pageSize] - Number of categories needed in one page
|
|
481
|
+
* @property {number} [pageNo] - Page number to fetch, for example if pagesize
|
|
482
|
+
* is 10 and page number 1,
|
|
483
|
+
* @property {number} [q] - Search string to search categories from
|
|
463
484
|
*/
|
|
464
485
|
|
|
465
|
-
/** @typedef ListProductTemplateExportDetailsParam */
|
|
466
|
-
|
|
467
486
|
/**
|
|
468
487
|
* @typedef ListTemplateBrandTypeValuesParam
|
|
469
488
|
* @property {string} filter - A `filter` is the unique identifier of the type
|
|
@@ -475,44 +494,33 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
475
494
|
*/
|
|
476
495
|
|
|
477
496
|
/**
|
|
478
|
-
* @typedef
|
|
479
|
-
* @property {string}
|
|
480
|
-
* @property {CatalogPlatformModel.
|
|
497
|
+
* @typedef PatchInventoryExportDetailParam
|
|
498
|
+
* @property {string} jobId - Company Id in which assets to be uploaded.
|
|
499
|
+
* @property {CatalogPlatformModel.ExportPatchRequest} body
|
|
481
500
|
*/
|
|
482
501
|
|
|
483
502
|
/**
|
|
484
|
-
* @typedef
|
|
485
|
-
* @property {
|
|
503
|
+
* @typedef PatchProductExportDetailParam
|
|
504
|
+
* @property {string} jobId - Company Id in which assets to be uploaded.
|
|
505
|
+
* @property {CatalogPlatformModel.ExportPatchRequest} body
|
|
486
506
|
*/
|
|
487
507
|
|
|
488
508
|
/**
|
|
489
|
-
* @typedef
|
|
490
|
-
* @property {
|
|
491
|
-
* @property {string} sellerIdentifier - Size Identifier (Seller Identifier or
|
|
492
|
-
* Primary Identifier) of which article price is to update.
|
|
493
|
-
* @property {CatalogPlatformModel.LocationPriceRequestSchema} body
|
|
494
|
-
*/
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* @typedef UpdateLocationQuantityParam
|
|
498
|
-
* @property {number} storeId - The Store Id to update quantity of size for
|
|
499
|
-
* specific store.
|
|
500
|
-
* @property {string} sellerIdentifier - Size Identifier (Seller Identifier or
|
|
501
|
-
* Primary Identifier) of which article quantity is to update.
|
|
502
|
-
* @property {CatalogPlatformModel.LocationQuantityRequestSchema} body
|
|
509
|
+
* @typedef UpdateInventoriesParam
|
|
510
|
+
* @property {CatalogPlatformModel.InventoryRequestSchemaV2} body
|
|
503
511
|
*/
|
|
504
512
|
|
|
505
513
|
/**
|
|
506
514
|
* @typedef UpdateMarketplaceOptinParam
|
|
507
|
-
* @property {string}
|
|
508
|
-
* @property {CatalogPlatformModel.
|
|
515
|
+
* @property {string} marketplace - Slug of the marketplace .
|
|
516
|
+
* @property {CatalogPlatformModel.UpdateMarketplaceOptinRequest} body
|
|
509
517
|
*/
|
|
510
518
|
|
|
511
519
|
/**
|
|
512
520
|
* @typedef UpdateProductBundleParam
|
|
513
521
|
* @property {string} id - A `id` is a unique identifier for a particular
|
|
514
522
|
* detail. Pass the `id` of the keywords which you want to delete.
|
|
515
|
-
* @property {CatalogPlatformModel.
|
|
523
|
+
* @property {CatalogPlatformModel.ProductBundleUpdateRequest} body
|
|
516
524
|
*/
|
|
517
525
|
|
|
518
526
|
/**
|
|
@@ -533,20 +541,10 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
533
541
|
* @typedef UploadBulkProductsParam
|
|
534
542
|
* @property {string} department - Department of the product to be uploaded.
|
|
535
543
|
* @property {string} productType - Product type of the product to be uploaded
|
|
536
|
-
* i.e. set, standard, digital.
|
|
544
|
+
* i.e. set, standard , digital.
|
|
537
545
|
* @property {CatalogPlatformModel.BulkProductJob} body
|
|
538
546
|
*/
|
|
539
547
|
|
|
540
|
-
/**
|
|
541
|
-
* @typedef ValidateProductGlobalTemplateParam
|
|
542
|
-
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
543
|
-
* default value is standard.
|
|
544
|
-
* @property {boolean} [bulk] - This specification determines the schema type to
|
|
545
|
-
* be retrieved. When set to true, it will return the schema for bulk data;
|
|
546
|
-
* when set to false, it will provide the schema for a single product. The
|
|
547
|
-
* default value is false.
|
|
548
|
-
*/
|
|
549
|
-
|
|
550
548
|
/**
|
|
551
549
|
* @typedef ValidateProductTemplateParam
|
|
552
550
|
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
@@ -562,18 +560,10 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
562
560
|
* @typedef ValidateProductTemplateSchemaParam
|
|
563
561
|
* @property {string} itemType - An `item_type` defines the type of item. The
|
|
564
562
|
* default value is standard.
|
|
563
|
+
* @property {boolean} bulk - Type of file template i.e if bulk
|
|
565
564
|
*/
|
|
566
565
|
|
|
567
566
|
class CatalogPlatformValidator {
|
|
568
|
-
/** @returns {AddInventoryParam} */
|
|
569
|
-
static addInventory() {
|
|
570
|
-
return Joi.object({
|
|
571
|
-
itemId: Joi.number().required(),
|
|
572
|
-
size: Joi.string().allow("").required(),
|
|
573
|
-
body: CatalogPlatformModel.InventoryRequestSchema().required(),
|
|
574
|
-
}).required();
|
|
575
|
-
}
|
|
576
|
-
|
|
577
567
|
/** @returns {AllSizesParam} */
|
|
578
568
|
static allSizes() {
|
|
579
569
|
return Joi.object({
|
|
@@ -581,54 +571,47 @@ class CatalogPlatformValidator {
|
|
|
581
571
|
}).required();
|
|
582
572
|
}
|
|
583
573
|
|
|
584
|
-
/** @returns {BulkHsnCodeParam} */
|
|
585
|
-
static bulkHsnCode() {
|
|
586
|
-
return Joi.object({
|
|
587
|
-
body: CatalogPlatformModel.BulkHsnUpsert().required(),
|
|
588
|
-
}).required();
|
|
589
|
-
}
|
|
590
|
-
|
|
591
574
|
/** @returns {CreateBulkInventoryParam} */
|
|
592
575
|
static createBulkInventory() {
|
|
593
576
|
return Joi.object({
|
|
594
577
|
batchId: Joi.string().allow("").required(),
|
|
595
|
-
body: CatalogPlatformModel.
|
|
578
|
+
body: CatalogPlatformModel.InventoryBulkRequest().required(),
|
|
596
579
|
}).required();
|
|
597
580
|
}
|
|
598
581
|
|
|
599
582
|
/** @returns {CreateBulkInventoryJobParam} */
|
|
600
583
|
static createBulkInventoryJob() {
|
|
601
584
|
return Joi.object({
|
|
602
|
-
body: CatalogPlatformModel.
|
|
585
|
+
body: CatalogPlatformModel.InventoryBulkJob().required(),
|
|
603
586
|
}).required();
|
|
604
587
|
}
|
|
605
588
|
|
|
606
589
|
/** @returns {CreateBulkProductUploadJobParam} */
|
|
607
590
|
static createBulkProductUploadJob() {
|
|
608
591
|
return Joi.object({
|
|
609
|
-
body: CatalogPlatformModel.
|
|
592
|
+
body: CatalogPlatformModel.BulkProductUploadJob().required(),
|
|
610
593
|
}).required();
|
|
611
594
|
}
|
|
612
595
|
|
|
613
596
|
/** @returns {CreateInventoryExportParam} */
|
|
614
597
|
static createInventoryExport() {
|
|
615
598
|
return Joi.object({
|
|
616
|
-
body: CatalogPlatformModel.
|
|
599
|
+
body: CatalogPlatformModel.InventoryCreateRequest().required(),
|
|
617
600
|
}).required();
|
|
618
601
|
}
|
|
619
602
|
|
|
620
603
|
/** @returns {CreateInventoryExportJobParam} */
|
|
621
604
|
static createInventoryExportJob() {
|
|
622
605
|
return Joi.object({
|
|
623
|
-
body: CatalogPlatformModel.
|
|
606
|
+
body: CatalogPlatformModel.InventoryExportRequest().required(),
|
|
624
607
|
}).required();
|
|
625
608
|
}
|
|
626
609
|
|
|
627
610
|
/** @returns {CreateMarketplaceOptinParam} */
|
|
628
611
|
static createMarketplaceOptin() {
|
|
629
612
|
return Joi.object({
|
|
630
|
-
|
|
631
|
-
body: CatalogPlatformModel.
|
|
613
|
+
marketplace: Joi.string().allow("").required(),
|
|
614
|
+
body: CatalogPlatformModel.CreateMarketplaceOptinRequest().required(),
|
|
632
615
|
}).required();
|
|
633
616
|
}
|
|
634
617
|
|
|
@@ -649,7 +632,7 @@ class CatalogPlatformValidator {
|
|
|
649
632
|
/** @returns {CreateProductBundleParam} */
|
|
650
633
|
static createProductBundle() {
|
|
651
634
|
return Joi.object({
|
|
652
|
-
body: CatalogPlatformModel.
|
|
635
|
+
body: CatalogPlatformModel.ProductBundleRequest().required(),
|
|
653
636
|
}).required();
|
|
654
637
|
}
|
|
655
638
|
|
|
@@ -664,7 +647,7 @@ class CatalogPlatformValidator {
|
|
|
664
647
|
static createProductsInBulk() {
|
|
665
648
|
return Joi.object({
|
|
666
649
|
batchId: Joi.string().allow("").required(),
|
|
667
|
-
body: CatalogPlatformModel.
|
|
650
|
+
body: CatalogPlatformModel.BulkProductRequest().required(),
|
|
668
651
|
}).required();
|
|
669
652
|
}
|
|
670
653
|
|
|
@@ -686,14 +669,13 @@ class CatalogPlatformValidator {
|
|
|
686
669
|
static deleteProduct() {
|
|
687
670
|
return Joi.object({
|
|
688
671
|
itemId: Joi.number().required(),
|
|
689
|
-
body: CatalogPlatformModel.DeleteProductRequestBody().required(),
|
|
690
672
|
}).required();
|
|
691
673
|
}
|
|
692
674
|
|
|
693
675
|
/** @returns {DeleteProductBulkJobParam} */
|
|
694
676
|
static deleteProductBulkJob() {
|
|
695
677
|
return Joi.object({
|
|
696
|
-
batchId: Joi.
|
|
678
|
+
batchId: Joi.string().allow("").required(),
|
|
697
679
|
}).required();
|
|
698
680
|
}
|
|
699
681
|
|
|
@@ -717,7 +699,7 @@ class CatalogPlatformValidator {
|
|
|
717
699
|
/** @returns {DownloadInventoryTemplateViewParam} */
|
|
718
700
|
static downloadInventoryTemplateView() {
|
|
719
701
|
return Joi.object({
|
|
720
|
-
|
|
702
|
+
type: Joi.string().allow("").required(),
|
|
721
703
|
}).required();
|
|
722
704
|
}
|
|
723
705
|
|
|
@@ -741,7 +723,7 @@ class CatalogPlatformValidator {
|
|
|
741
723
|
/** @returns {ExportInventoryConfigParam} */
|
|
742
724
|
static exportInventoryConfig() {
|
|
743
725
|
return Joi.object({
|
|
744
|
-
|
|
726
|
+
filter: Joi.string().allow("").required(),
|
|
745
727
|
}).required();
|
|
746
728
|
}
|
|
747
729
|
|
|
@@ -780,6 +762,14 @@ class CatalogPlatformValidator {
|
|
|
780
762
|
}).required();
|
|
781
763
|
}
|
|
782
764
|
|
|
765
|
+
/** @returns {GetCompanyBrandsDRIParam} */
|
|
766
|
+
static getCompanyBrandsDRI() {
|
|
767
|
+
return Joi.object({
|
|
768
|
+
pageNo: Joi.number(),
|
|
769
|
+
pageSize: Joi.number(),
|
|
770
|
+
}).required();
|
|
771
|
+
}
|
|
772
|
+
|
|
783
773
|
/** @returns {GetCompanyDetailParam} */
|
|
784
774
|
static getCompanyDetail() {
|
|
785
775
|
return Joi.object({}).required();
|
|
@@ -790,6 +780,15 @@ class CatalogPlatformValidator {
|
|
|
790
780
|
return Joi.object({}).required();
|
|
791
781
|
}
|
|
792
782
|
|
|
783
|
+
/** @returns {GetCompanyVerificationParam} */
|
|
784
|
+
static getCompanyVerification() {
|
|
785
|
+
return Joi.object({
|
|
786
|
+
q: Joi.string().allow(""),
|
|
787
|
+
pageNo: Joi.number(),
|
|
788
|
+
pageSize: Joi.number(),
|
|
789
|
+
}).required();
|
|
790
|
+
}
|
|
791
|
+
|
|
793
792
|
/** @returns {GetDepartmentDataParam} */
|
|
794
793
|
static getDepartmentData() {
|
|
795
794
|
return Joi.object({
|
|
@@ -807,7 +806,7 @@ class CatalogPlatformValidator {
|
|
|
807
806
|
/** @returns {GetInventoriesParam} */
|
|
808
807
|
static getInventories() {
|
|
809
808
|
return Joi.object({
|
|
810
|
-
itemId: Joi.
|
|
809
|
+
itemId: Joi.number(),
|
|
811
810
|
size: Joi.string().allow(""),
|
|
812
811
|
pageNo: Joi.number(),
|
|
813
812
|
pageSize: Joi.number(),
|
|
@@ -818,9 +817,8 @@ class CatalogPlatformValidator {
|
|
|
818
817
|
storeIds: Joi.array().items(Joi.number()),
|
|
819
818
|
brandIds: Joi.array().items(Joi.number()),
|
|
820
819
|
sellerIdentifiers: Joi.array().items(Joi.string().allow("")),
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
qtyType: Joi.string().allow(""),
|
|
820
|
+
minSellable: Joi.number(),
|
|
821
|
+
maxSellable: Joi.number(),
|
|
824
822
|
fromDate: Joi.string().allow(""),
|
|
825
823
|
toDate: Joi.string().allow(""),
|
|
826
824
|
sizeIdentifier: Joi.string().allow(""),
|
|
@@ -832,7 +830,6 @@ class CatalogPlatformValidator {
|
|
|
832
830
|
return Joi.object({
|
|
833
831
|
pageNo: Joi.number(),
|
|
834
832
|
pageSize: Joi.number(),
|
|
835
|
-
search: Joi.string().allow(""),
|
|
836
833
|
}).required();
|
|
837
834
|
}
|
|
838
835
|
|
|
@@ -865,8 +862,15 @@ class CatalogPlatformValidator {
|
|
|
865
862
|
return Joi.object({}).required();
|
|
866
863
|
}
|
|
867
864
|
|
|
868
|
-
/** @returns {
|
|
869
|
-
static
|
|
865
|
+
/** @returns {GetInventoryExportDetailParam} */
|
|
866
|
+
static getInventoryExportDetail() {
|
|
867
|
+
return Joi.object({
|
|
868
|
+
jobId: Joi.string().allow("").required(),
|
|
869
|
+
}).required();
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/** @returns {GetLocationTagsParam} */
|
|
873
|
+
static getLocationTags() {
|
|
870
874
|
return Joi.object({}).required();
|
|
871
875
|
}
|
|
872
876
|
|
|
@@ -875,13 +879,6 @@ class CatalogPlatformValidator {
|
|
|
875
879
|
return Joi.object({}).required();
|
|
876
880
|
}
|
|
877
881
|
|
|
878
|
-
/** @returns {GetOptimalLocationsParam} */
|
|
879
|
-
static getOptimalLocations() {
|
|
880
|
-
return Joi.object({
|
|
881
|
-
body: CatalogPlatformModel.AssignStore().required(),
|
|
882
|
-
}).required();
|
|
883
|
-
}
|
|
884
|
-
|
|
885
882
|
/** @returns {GetProductParam} */
|
|
886
883
|
static getProduct() {
|
|
887
884
|
return Joi.object({
|
|
@@ -933,6 +930,13 @@ class CatalogPlatformValidator {
|
|
|
933
930
|
}).required();
|
|
934
931
|
}
|
|
935
932
|
|
|
933
|
+
/** @returns {GetProductExportDetailParam} */
|
|
934
|
+
static getProductExportDetail() {
|
|
935
|
+
return Joi.object({
|
|
936
|
+
jobId: Joi.string().allow("").required(),
|
|
937
|
+
}).required();
|
|
938
|
+
}
|
|
939
|
+
|
|
936
940
|
/** @returns {GetProductExportJobsParam} */
|
|
937
941
|
static getProductExportJobs() {
|
|
938
942
|
return Joi.object({
|
|
@@ -948,10 +952,7 @@ class CatalogPlatformValidator {
|
|
|
948
952
|
/** @returns {GetProductSizeParam} */
|
|
949
953
|
static getProductSize() {
|
|
950
954
|
return Joi.object({
|
|
951
|
-
itemCode: Joi.string().allow(""),
|
|
952
955
|
itemId: Joi.number().required(),
|
|
953
|
-
brandUid: Joi.number(),
|
|
954
|
-
uid: Joi.number(),
|
|
955
956
|
}).required();
|
|
956
957
|
}
|
|
957
958
|
|
|
@@ -960,15 +961,33 @@ class CatalogPlatformValidator {
|
|
|
960
961
|
return Joi.object({}).required();
|
|
961
962
|
}
|
|
962
963
|
|
|
964
|
+
/** @returns {GetProductTemplateBySlugParam} */
|
|
965
|
+
static getProductTemplateBySlug() {
|
|
966
|
+
return Joi.object({
|
|
967
|
+
slug: Joi.string().allow("").required(),
|
|
968
|
+
}).required();
|
|
969
|
+
}
|
|
970
|
+
|
|
963
971
|
/** @returns {GetProductValidationParam} */
|
|
964
972
|
static getProductValidation() {
|
|
965
|
-
return Joi.object({
|
|
973
|
+
return Joi.object({
|
|
974
|
+
type: Joi.string().allow("").required(),
|
|
975
|
+
slug: Joi.string().allow("").required(),
|
|
976
|
+
}).required();
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/** @returns {GetProductVerificationDetailsParam} */
|
|
980
|
+
static getProductVerificationDetails() {
|
|
981
|
+
return Joi.object({
|
|
982
|
+
itemId: Joi.number().required(),
|
|
983
|
+
}).required();
|
|
966
984
|
}
|
|
967
985
|
|
|
968
986
|
/** @returns {GetProductsParam} */
|
|
969
987
|
static getProducts() {
|
|
970
988
|
return Joi.object({
|
|
971
989
|
brandIds: Joi.array().items(Joi.number()),
|
|
990
|
+
multiSize: Joi.boolean(),
|
|
972
991
|
categoryIds: Joi.array().items(Joi.number()),
|
|
973
992
|
itemIds: Joi.array().items(Joi.number()),
|
|
974
993
|
departmentIds: Joi.array().items(Joi.number()),
|
|
@@ -1012,10 +1031,10 @@ class CatalogPlatformValidator {
|
|
|
1012
1031
|
return Joi.object({
|
|
1013
1032
|
active: Joi.boolean(),
|
|
1014
1033
|
q: Joi.string().allow(""),
|
|
1034
|
+
brandId: Joi.number(),
|
|
1015
1035
|
tag: Joi.string().allow(""),
|
|
1016
1036
|
pageNo: Joi.number(),
|
|
1017
1037
|
pageSize: Joi.number(),
|
|
1018
|
-
brandId: Joi.number(),
|
|
1019
1038
|
}).required();
|
|
1020
1039
|
}
|
|
1021
1040
|
|
|
@@ -1028,6 +1047,13 @@ class CatalogPlatformValidator {
|
|
|
1028
1047
|
}).required();
|
|
1029
1048
|
}
|
|
1030
1049
|
|
|
1050
|
+
/** @returns {GetVariantTypesParam} */
|
|
1051
|
+
static getVariantTypes() {
|
|
1052
|
+
return Joi.object({
|
|
1053
|
+
templateTag: Joi.string().allow("").required(),
|
|
1054
|
+
}).required();
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1031
1057
|
/** @returns {GetVariantsOfProductsParam} */
|
|
1032
1058
|
static getVariantsOfProducts() {
|
|
1033
1059
|
return Joi.object({
|
|
@@ -1047,7 +1073,6 @@ class CatalogPlatformValidator {
|
|
|
1047
1073
|
pageNo: Joi.number(),
|
|
1048
1074
|
pageSize: Joi.number(),
|
|
1049
1075
|
uids: Joi.array().items(Joi.number()),
|
|
1050
|
-
slug: Joi.string().allow(""),
|
|
1051
1076
|
}).required();
|
|
1052
1077
|
}
|
|
1053
1078
|
|
|
@@ -1060,7 +1085,7 @@ class CatalogPlatformValidator {
|
|
|
1060
1085
|
name: Joi.string().allow(""),
|
|
1061
1086
|
search: Joi.string().allow(""),
|
|
1062
1087
|
isActive: Joi.boolean(),
|
|
1063
|
-
|
|
1088
|
+
uids: Joi.array().items(Joi.number()),
|
|
1064
1089
|
}).required();
|
|
1065
1090
|
}
|
|
1066
1091
|
|
|
@@ -1093,14 +1118,12 @@ class CatalogPlatformValidator {
|
|
|
1093
1118
|
return Joi.object({
|
|
1094
1119
|
departments: Joi.string().allow("").required(),
|
|
1095
1120
|
itemType: Joi.string().allow("").required(),
|
|
1121
|
+
pageSize: Joi.number(),
|
|
1122
|
+
pageNo: Joi.number(),
|
|
1123
|
+
q: Joi.number(),
|
|
1096
1124
|
}).required();
|
|
1097
1125
|
}
|
|
1098
1126
|
|
|
1099
|
-
/** @returns {ListProductTemplateExportDetailsParam} */
|
|
1100
|
-
static listProductTemplateExportDetails() {
|
|
1101
|
-
return Joi.object({}).required();
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
1127
|
/** @returns {ListTemplateBrandTypeValuesParam} */
|
|
1105
1128
|
static listTemplateBrandTypeValues() {
|
|
1106
1129
|
return Joi.object({
|
|
@@ -1110,44 +1133,34 @@ class CatalogPlatformValidator {
|
|
|
1110
1133
|
}).required();
|
|
1111
1134
|
}
|
|
1112
1135
|
|
|
1113
|
-
/** @returns {
|
|
1114
|
-
static
|
|
1136
|
+
/** @returns {PatchInventoryExportDetailParam} */
|
|
1137
|
+
static patchInventoryExportDetail() {
|
|
1115
1138
|
return Joi.object({
|
|
1116
|
-
|
|
1117
|
-
body: CatalogPlatformModel.
|
|
1139
|
+
jobId: Joi.string().allow("").required(),
|
|
1140
|
+
body: CatalogPlatformModel.ExportPatchRequest().required(),
|
|
1118
1141
|
}).required();
|
|
1119
1142
|
}
|
|
1120
1143
|
|
|
1121
|
-
/** @returns {
|
|
1122
|
-
static
|
|
1144
|
+
/** @returns {PatchProductExportDetailParam} */
|
|
1145
|
+
static patchProductExportDetail() {
|
|
1123
1146
|
return Joi.object({
|
|
1124
|
-
|
|
1147
|
+
jobId: Joi.string().allow("").required(),
|
|
1148
|
+
body: CatalogPlatformModel.ExportPatchRequest().required(),
|
|
1125
1149
|
}).required();
|
|
1126
1150
|
}
|
|
1127
1151
|
|
|
1128
|
-
/** @returns {
|
|
1129
|
-
static
|
|
1130
|
-
return Joi.object({
|
|
1131
|
-
storeId: Joi.number().required(),
|
|
1132
|
-
sellerIdentifier: Joi.string().allow("").required(),
|
|
1133
|
-
body: CatalogPlatformModel.LocationPriceRequestSchema().required(),
|
|
1134
|
-
}).required();
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
/** @returns {UpdateLocationQuantityParam} */
|
|
1138
|
-
static updateLocationQuantity() {
|
|
1152
|
+
/** @returns {UpdateInventoriesParam} */
|
|
1153
|
+
static updateInventories() {
|
|
1139
1154
|
return Joi.object({
|
|
1140
|
-
|
|
1141
|
-
sellerIdentifier: Joi.string().allow("").required(),
|
|
1142
|
-
body: CatalogPlatformModel.LocationQuantityRequestSchema().required(),
|
|
1155
|
+
body: CatalogPlatformModel.InventoryRequestSchemaV2().required(),
|
|
1143
1156
|
}).required();
|
|
1144
1157
|
}
|
|
1145
1158
|
|
|
1146
1159
|
/** @returns {UpdateMarketplaceOptinParam} */
|
|
1147
1160
|
static updateMarketplaceOptin() {
|
|
1148
1161
|
return Joi.object({
|
|
1149
|
-
|
|
1150
|
-
body: CatalogPlatformModel.
|
|
1162
|
+
marketplace: Joi.string().allow("").required(),
|
|
1163
|
+
body: CatalogPlatformModel.UpdateMarketplaceOptinRequest().required(),
|
|
1151
1164
|
}).required();
|
|
1152
1165
|
}
|
|
1153
1166
|
|
|
@@ -1155,7 +1168,7 @@ class CatalogPlatformValidator {
|
|
|
1155
1168
|
static updateProductBundle() {
|
|
1156
1169
|
return Joi.object({
|
|
1157
1170
|
id: Joi.string().allow("").required(),
|
|
1158
|
-
body: CatalogPlatformModel.
|
|
1171
|
+
body: CatalogPlatformModel.ProductBundleUpdateRequest().required(),
|
|
1159
1172
|
}).required();
|
|
1160
1173
|
}
|
|
1161
1174
|
|
|
@@ -1185,14 +1198,6 @@ class CatalogPlatformValidator {
|
|
|
1185
1198
|
}).required();
|
|
1186
1199
|
}
|
|
1187
1200
|
|
|
1188
|
-
/** @returns {ValidateProductGlobalTemplateParam} */
|
|
1189
|
-
static validateProductGlobalTemplate() {
|
|
1190
|
-
return Joi.object({
|
|
1191
|
-
itemType: Joi.string().allow(""),
|
|
1192
|
-
bulk: Joi.boolean(),
|
|
1193
|
-
}).required();
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
1201
|
/** @returns {ValidateProductTemplateParam} */
|
|
1197
1202
|
static validateProductTemplate() {
|
|
1198
1203
|
return Joi.object({
|
|
@@ -1206,6 +1211,7 @@ class CatalogPlatformValidator {
|
|
|
1206
1211
|
static validateProductTemplateSchema() {
|
|
1207
1212
|
return Joi.object({
|
|
1208
1213
|
itemType: Joi.string().allow("").required(),
|
|
1214
|
+
bulk: Joi.boolean().required(),
|
|
1209
1215
|
}).required();
|
|
1210
1216
|
}
|
|
1211
1217
|
}
|