@gofynd/fdk-client-javascript 1.4.15-beta.14 → 1.4.15-beta.15
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 +23 -26
- package/package.json +5 -1
- package/sdk/application/ApplicationClient.d.ts +5 -6
- package/sdk/application/ApplicationClient.js +24 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
- package/sdk/application/Cart/CartApplicationClient.js +444 -76
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
- package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
- package/sdk/application/Content/ContentApplicationClient.js +274 -111
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
- package/sdk/application/Lead/LeadApplicationClient.js +6 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
- package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
- package/sdk/application/Order/OrderApplicationClient.js +217 -17
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
- package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
- package/sdk/application/User/UserApplicationClient.d.ts +103 -53
- package/sdk/application/User/UserApplicationClient.js +308 -49
- package/sdk/common/AxiosHelper.js +11 -4
- package/sdk/common/Constant.d.ts +27 -4
- package/sdk/common/Constant.js +33 -6
- package/sdk/common/utils.d.ts +10 -0
- package/sdk/common/utils.js +24 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
- package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
- package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
- package/sdk/partner/PartnerClient.d.ts +5 -2
- package/sdk/partner/PartnerClient.js +21 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
- package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
- package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
- package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
- 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 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
- package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9573 -2678
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5033 -1973
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
- package/sdk/platform/Common/CommonPlatformModel.js +25 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
- package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
- package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
- package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
- package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
- package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
- package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
- package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
- package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
- package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
- package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
- package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
- package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/PlatformClient.d.ts +5 -4
- package/sdk/platform/PlatformClient.js +32 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
- package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
- package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
- package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
- package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
- package/sdk/platform/User/UserPlatformModel.js +607 -46
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
- package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
- package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -2
- package/sdk/platform/index.js +0 -4
- 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 +5 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
- package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
- package/sdk/public/Content/ContentPublicClient.js +1067 -17
- package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
- package/sdk/public/Content/ContentPublicModel.js +751 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
- package/sdk/public/Content/ContentPublicValidator.js +119 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- 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 +5 -2
- package/sdk/public/PublicClient.js +16 -6
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +81 -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 -0
- package/sdk/public/index.js +2 -0
- package/utility.d.ts +3 -0
- package/utility.js +7 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
- package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
- 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 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
|
@@ -4,9 +4,9 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @typedef AddInventoryParam
|
|
7
|
-
* @property {number} itemId - Item
|
|
7
|
+
* @property {number} itemId - Item id of the product of which size is to be get.
|
|
8
8
|
* @property {string} size - Size in which inventory is to be added.
|
|
9
|
-
* @property {CatalogPlatformModel.
|
|
9
|
+
* @property {CatalogPlatformModel.InventoryRequestSchema} body
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -22,12 +22,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
22
22
|
/**
|
|
23
23
|
* @typedef CreateBulkInventoryParam
|
|
24
24
|
* @property {string} batchId - Batch Id of the bulk create job.
|
|
25
|
-
* @property {CatalogPlatformModel.
|
|
25
|
+
* @property {CatalogPlatformModel.InventoryBulkRequestSchema} body
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* @typedef CreateBulkInventoryJobParam
|
|
30
|
-
* @property {CatalogPlatformModel.
|
|
30
|
+
* @property {CatalogPlatformModel.BulkInventoryJob} body
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -35,26 +35,31 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
35
35
|
* @property {CatalogPlatformModel.BulkJob} body
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* @typedef CreateHsCodeParam
|
|
40
|
+
* @property {CatalogPlatformModel.HSCodeItem} body
|
|
41
|
+
*/
|
|
42
|
+
|
|
38
43
|
/**
|
|
39
44
|
* @typedef CreateInventoryExportParam
|
|
40
|
-
* @property {CatalogPlatformModel.
|
|
45
|
+
* @property {CatalogPlatformModel.InventoryCreateRequestSchema} body
|
|
41
46
|
*/
|
|
42
47
|
|
|
43
48
|
/**
|
|
44
49
|
* @typedef CreateInventoryExportJobParam
|
|
45
|
-
* @property {CatalogPlatformModel.
|
|
50
|
+
* @property {CatalogPlatformModel.InventoryExportRequestSchema} body
|
|
46
51
|
*/
|
|
47
52
|
|
|
48
53
|
/**
|
|
49
54
|
* @typedef CreateMarketplaceOptinParam
|
|
50
55
|
* @property {string} marketplaceSlug - The marketplace for which the detail
|
|
51
56
|
* needs to be retrieved.
|
|
52
|
-
* @property {CatalogPlatformModel.
|
|
57
|
+
* @property {CatalogPlatformModel.OptInPostRequestSchema} body
|
|
53
58
|
*/
|
|
54
59
|
|
|
55
60
|
/**
|
|
56
61
|
* @typedef CreateProductParam
|
|
57
|
-
* @property {CatalogPlatformModel.
|
|
62
|
+
* @property {CatalogPlatformModel.ProductCreateSchemaV3} body
|
|
58
63
|
*/
|
|
59
64
|
|
|
60
65
|
/**
|
|
@@ -62,11 +67,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
62
67
|
* @property {CatalogPlatformModel.ProductBulkAssets} body
|
|
63
68
|
*/
|
|
64
69
|
|
|
65
|
-
/**
|
|
66
|
-
* @typedef CreateProductBundleParam
|
|
67
|
-
* @property {CatalogPlatformModel.ProductBundleRequest} body
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
70
|
/**
|
|
71
71
|
* @typedef CreateProductExportJobParam
|
|
72
72
|
* @property {CatalogPlatformModel.ProductTemplateDownloadsExport} body
|
|
@@ -75,7 +75,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
75
75
|
/**
|
|
76
76
|
* @typedef CreateProductsInBulkParam
|
|
77
77
|
* @property {string} batchId - Batch Id in which assets to be uploaded.
|
|
78
|
-
* @property {CatalogPlatformModel.
|
|
78
|
+
* @property {CatalogPlatformModel.BulkProductRequestSchema} body
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
81
|
/**
|
|
@@ -83,6 +83,22 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
83
83
|
* @property {CatalogPlatformModel.ValidateSizeGuide} body
|
|
84
84
|
*/
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* @typedef CreateTaxParam
|
|
88
|
+
* @property {CatalogPlatformModel.CreateTaxRequestBody} body
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @typedef CreateTaxComponentNameParam
|
|
93
|
+
* @property {CatalogPlatformModel.CreateTaxComponentNameRequestSchema} body
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @typedef CreateTaxVersionParam
|
|
98
|
+
* @property {string} ruleId - Unique identifier of the tax rule
|
|
99
|
+
* @property {CatalogPlatformModel.CreateTaxVersionRequestBody} body
|
|
100
|
+
*/
|
|
101
|
+
|
|
86
102
|
/**
|
|
87
103
|
* @typedef DeleteBulkInventoryJobParam
|
|
88
104
|
* @property {string} batchId - Batch Id of the bulk delete job.
|
|
@@ -90,7 +106,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
90
106
|
|
|
91
107
|
/**
|
|
92
108
|
* @typedef DeleteProductParam
|
|
93
|
-
* @property {number} itemId - Id of the product to be
|
|
109
|
+
* @property {number} itemId - Id of the product to be deleted.
|
|
94
110
|
*/
|
|
95
111
|
|
|
96
112
|
/**
|
|
@@ -112,9 +128,22 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
112
128
|
* @property {string} size - Size to be deleted.
|
|
113
129
|
*/
|
|
114
130
|
|
|
131
|
+
/**
|
|
132
|
+
* @typedef DeleteTaxRuleParam
|
|
133
|
+
* @property {string} ruleId - Unique identifier of the tax rule to be deleted
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @typedef DeleteTaxVersionParam
|
|
138
|
+
* @property {string} ruleId - Unique identifier of the tax rule to be deleted
|
|
139
|
+
* @property {string} versionId - Unique identifier of the tax version to be deleted
|
|
140
|
+
*/
|
|
141
|
+
|
|
115
142
|
/**
|
|
116
143
|
* @typedef DownloadInventoryTemplateViewParam
|
|
117
|
-
* @property {string}
|
|
144
|
+
* @property {string} schemaType - Specifies the type of template to download.
|
|
145
|
+
* Either quantity or price
|
|
146
|
+
* @property {string} type - File extension type
|
|
118
147
|
*/
|
|
119
148
|
|
|
120
149
|
/**
|
|
@@ -128,7 +157,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
128
157
|
/**
|
|
129
158
|
* @typedef EditProductParam
|
|
130
159
|
* @property {number} itemId - Id of the product to be updated.
|
|
131
|
-
* @property {CatalogPlatformModel.
|
|
160
|
+
* @property {CatalogPlatformModel.ProductUpdateSchemaV3} body
|
|
132
161
|
*/
|
|
133
162
|
|
|
134
163
|
/**
|
|
@@ -139,12 +168,22 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
139
168
|
|
|
140
169
|
/**
|
|
141
170
|
* @typedef GetAllProductHsnCodesParam
|
|
142
|
-
* @property {number} [pageNo] -
|
|
143
|
-
* @property {number} [pageSize] -
|
|
171
|
+
* @property {number} [pageNo] - Indicates current page number
|
|
172
|
+
* @property {number} [pageSize] - Indicates page size
|
|
144
173
|
* @property {string} [q] - Search using hsn code, description, reporting_hsn
|
|
145
174
|
* @property {string} [type] - Search using type
|
|
146
175
|
*/
|
|
147
176
|
|
|
177
|
+
/**
|
|
178
|
+
* @typedef GetAllTaxRulesParam
|
|
179
|
+
* @property {string} [q] - Search query to filter tax rules
|
|
180
|
+
* @property {string} [statuses] - Filter tax rules based on their lifecycle status.
|
|
181
|
+
* @property {number} [page] - The page number to retrieve
|
|
182
|
+
* @property {number} [limit] - Maximum number of tax rule items per page
|
|
183
|
+
* @property {string} [versionStatus] - Filter tax rules to include only those
|
|
184
|
+
* with versions in the specified status.
|
|
185
|
+
*/
|
|
186
|
+
|
|
148
187
|
/**
|
|
149
188
|
* @typedef GetAttributeParam
|
|
150
189
|
* @property {string} attributeSlug - Slug of the attribute for which you want
|
|
@@ -176,6 +215,14 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
176
215
|
* @property {string} uid - A `uid` is a unique identifier of a department.
|
|
177
216
|
*/
|
|
178
217
|
|
|
218
|
+
/**
|
|
219
|
+
* @typedef GetHsCodesParam
|
|
220
|
+
* @property {number} [page] - The page number for pagination.
|
|
221
|
+
* @property {number} [limit] - The number of items to return per page.
|
|
222
|
+
* @property {string} [type] - Filter by HS/SAC code type.
|
|
223
|
+
* @property {string} [q] - Search query to filter HS/SAC codes by code or description.
|
|
224
|
+
*/
|
|
225
|
+
|
|
179
226
|
/**
|
|
180
227
|
* @typedef GetHsnCodeParam
|
|
181
228
|
* @property {string} id - Unique id
|
|
@@ -219,6 +266,10 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
219
266
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
220
267
|
* Default is 12.
|
|
221
268
|
* @property {string} [search] - Search string to filter the results by batch id
|
|
269
|
+
* @property {string} [startDate] - Filter results by the job's start date.
|
|
270
|
+
* @property {string} [endDate] - Filter results by the job's end date.
|
|
271
|
+
* @property {string} [stage] - Filter results by the current stage of the import job.
|
|
272
|
+
* @property {string} [tags] - Filter results by the tags of the import job.
|
|
222
273
|
*/
|
|
223
274
|
|
|
224
275
|
/**
|
|
@@ -252,11 +303,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
252
303
|
|
|
253
304
|
/** @typedef GetMarketplacesParam */
|
|
254
305
|
|
|
255
|
-
/**
|
|
256
|
-
* @typedef GetOptimalLocationsParam
|
|
257
|
-
* @property {CatalogPlatformModel.AssignStore} body
|
|
258
|
-
*/
|
|
259
|
-
|
|
260
306
|
/**
|
|
261
307
|
* @typedef GetProductParam
|
|
262
308
|
* @property {number} itemId - Item Id of the product.
|
|
@@ -288,18 +334,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
288
334
|
* Default is 12.
|
|
289
335
|
*/
|
|
290
336
|
|
|
291
|
-
/**
|
|
292
|
-
* @typedef GetProductBundleParam
|
|
293
|
-
* @property {string} [q] - A search string that is searched with product bundle name.
|
|
294
|
-
* @property {string[]} [slug] - Slugs of bundles to be retrieved.
|
|
295
|
-
*/
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* @typedef GetProductBundleDetailParam
|
|
299
|
-
* @property {string} id - A `id` is a unique identifier for a particular
|
|
300
|
-
* detail. Pass the `id` of the keywords which you want to retrieve.
|
|
301
|
-
*/
|
|
302
|
-
|
|
303
337
|
/**
|
|
304
338
|
* @typedef GetProductExportJobsParam
|
|
305
339
|
* @property {string} [status] - This is a parameter used to find all the jobs
|
|
@@ -390,6 +424,19 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
390
424
|
* page for the company id.
|
|
391
425
|
*/
|
|
392
426
|
|
|
427
|
+
/** @typedef GetTaxComponentNamesParam */
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @typedef GetTaxVersionDetailsParam
|
|
431
|
+
* @property {string} ruleId - Unique identifier of the tax rule
|
|
432
|
+
* @property {string} [versionStatus] - Filter by tax version status
|
|
433
|
+
* @property {string} [q] - Case-insensitive search by region name (e.g.,
|
|
434
|
+
* "john", "New York") to find matching tax versions
|
|
435
|
+
* @property {string} [limit] - The number of items to return per page for
|
|
436
|
+
* paginated past versions
|
|
437
|
+
* @property {string} [page] - The page number for paginated past versions.
|
|
438
|
+
*/
|
|
439
|
+
|
|
393
440
|
/**
|
|
394
441
|
* @typedef GetVariantsOfProductsParam
|
|
395
442
|
* @property {number} itemId - Get list of variants of item Id
|
|
@@ -402,7 +449,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
402
449
|
|
|
403
450
|
/**
|
|
404
451
|
* @typedef ListCategoriesParam
|
|
405
|
-
* @property {
|
|
452
|
+
* @property {number[]} [level] - Get category for multiple levels
|
|
406
453
|
* @property {number} [department] - Get category for multiple departments filtered
|
|
407
454
|
* @property {string} [q] - Get multiple categories filtered by search string
|
|
408
455
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
@@ -433,7 +480,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
433
480
|
|
|
434
481
|
/**
|
|
435
482
|
* @typedef ListInventoryExportParam
|
|
436
|
-
* @property {string} [status] - Status of the export job.
|
|
483
|
+
* @property {string} [status] - Status of the export job.(Pending, Running, Success)
|
|
437
484
|
* @property {string} [fromDate] - Inventory export history filtered according
|
|
438
485
|
* to from_date.
|
|
439
486
|
* @property {string} [toDate] - Inventory export history filtered according to from_date.
|
|
@@ -447,6 +494,10 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
447
494
|
/**
|
|
448
495
|
* @typedef ListProductTemplateParam
|
|
449
496
|
* @property {string} department - A `department` is the name of a particular department.
|
|
497
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
498
|
+
* set of results
|
|
499
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
500
|
+
* Default is 12.
|
|
450
501
|
*/
|
|
451
502
|
|
|
452
503
|
/**
|
|
@@ -469,6 +520,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
469
520
|
* of template required.
|
|
470
521
|
*/
|
|
471
522
|
|
|
523
|
+
/**
|
|
524
|
+
* @typedef PartialUpdateProductParam
|
|
525
|
+
* @property {number} itemId - Item ID of the product to be patched.
|
|
526
|
+
* @property {CatalogPlatformModel.ProductPatchSchemaV3} body
|
|
527
|
+
*/
|
|
528
|
+
|
|
472
529
|
/**
|
|
473
530
|
* @typedef UpdateHsnCodeParam
|
|
474
531
|
* @property {string} id - Unique id
|
|
@@ -481,16 +538,26 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
481
538
|
*/
|
|
482
539
|
|
|
483
540
|
/**
|
|
484
|
-
* @typedef
|
|
485
|
-
* @property {
|
|
486
|
-
* @property {
|
|
541
|
+
* @typedef UpdateLocationPriceParam
|
|
542
|
+
* @property {number} storeId - The Store Id to update price of size for specific store.
|
|
543
|
+
* @property {string} sellerIdentifier - Size Identifier (Seller Identifier or
|
|
544
|
+
* Primary Identifier) of which article price is to update.
|
|
545
|
+
* @property {CatalogPlatformModel.LocationPriceRequestSchema} body
|
|
487
546
|
*/
|
|
488
547
|
|
|
489
548
|
/**
|
|
490
|
-
* @typedef
|
|
491
|
-
* @property {
|
|
492
|
-
*
|
|
493
|
-
* @property {
|
|
549
|
+
* @typedef UpdateLocationQuantityParam
|
|
550
|
+
* @property {number} storeId - The Store Id to update quantity of size for
|
|
551
|
+
* specific store.
|
|
552
|
+
* @property {string} sellerIdentifier - Size Identifier (Seller Identifier or
|
|
553
|
+
* Primary Identifier) of which article quantity is to update.
|
|
554
|
+
* @property {CatalogPlatformModel.LocationQuantityRequestSchema} body
|
|
555
|
+
*/
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* @typedef UpdateMarketplaceOptinParam
|
|
559
|
+
* @property {string} marketplaceSlug - Slug of the marketplace.
|
|
560
|
+
* @property {CatalogPlatformModel.UpdateMarketplaceOptinRequestSchema} body
|
|
494
561
|
*/
|
|
495
562
|
|
|
496
563
|
/**
|
|
@@ -503,16 +570,31 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
503
570
|
|
|
504
571
|
/**
|
|
505
572
|
* @typedef UpdateSizeGuideParam
|
|
506
|
-
* @property {string} id -
|
|
573
|
+
* @property {string} id - Identifier of the size guide to be edited
|
|
507
574
|
* @property {CatalogPlatformModel.ValidateSizeGuide} body
|
|
508
575
|
*/
|
|
509
576
|
|
|
510
577
|
/**
|
|
511
|
-
* @typedef
|
|
512
|
-
* @property {string}
|
|
513
|
-
* @property {
|
|
514
|
-
|
|
515
|
-
|
|
578
|
+
* @typedef UpdateTaxRuleParam
|
|
579
|
+
* @property {string} ruleId - Unique identifier of the tax rule to update
|
|
580
|
+
* @property {CatalogPlatformModel.UpdateTaxRequestBody} body
|
|
581
|
+
*/
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* @typedef UpdateTaxVersionParam
|
|
585
|
+
* @property {string} ruleId - Unique identifier of the tax rule to be updated
|
|
586
|
+
* @property {string} versionId - Unique identifier of the tax version to be updated
|
|
587
|
+
* @property {CatalogPlatformModel.UpdateTaxVersionRequestBody} body
|
|
588
|
+
*/
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* @typedef ValidateProductGlobalTemplateParam
|
|
592
|
+
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
593
|
+
* default value is standard.
|
|
594
|
+
* @property {boolean} [bulk] - This specification determines the schema type to
|
|
595
|
+
* be retrieved. When set to true, it will return the schema for bulk data;
|
|
596
|
+
* when set to false, it will provide the schema for a single product. The
|
|
597
|
+
* default value is false.
|
|
516
598
|
*/
|
|
517
599
|
|
|
518
600
|
/**
|
|
@@ -530,6 +612,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
530
612
|
* @typedef ValidateProductTemplateSchemaParam
|
|
531
613
|
* @property {string} itemType - An `item_type` defines the type of item. The
|
|
532
614
|
* default value is standard.
|
|
615
|
+
* @property {string} [schemaType] - Schema of price or quantity template
|
|
533
616
|
*/
|
|
534
617
|
|
|
535
618
|
class CatalogPlatformValidator {
|
|
@@ -538,7 +621,7 @@ class CatalogPlatformValidator {
|
|
|
538
621
|
return Joi.object({
|
|
539
622
|
itemId: Joi.number().required(),
|
|
540
623
|
size: Joi.string().allow("").required(),
|
|
541
|
-
body: CatalogPlatformModel.
|
|
624
|
+
body: CatalogPlatformModel.InventoryRequestSchema().required(),
|
|
542
625
|
}).required();
|
|
543
626
|
}
|
|
544
627
|
|
|
@@ -560,14 +643,14 @@ class CatalogPlatformValidator {
|
|
|
560
643
|
static createBulkInventory() {
|
|
561
644
|
return Joi.object({
|
|
562
645
|
batchId: Joi.string().allow("").required(),
|
|
563
|
-
body: CatalogPlatformModel.
|
|
646
|
+
body: CatalogPlatformModel.InventoryBulkRequestSchema().required(),
|
|
564
647
|
}).required();
|
|
565
648
|
}
|
|
566
649
|
|
|
567
650
|
/** @returns {CreateBulkInventoryJobParam} */
|
|
568
651
|
static createBulkInventoryJob() {
|
|
569
652
|
return Joi.object({
|
|
570
|
-
body: CatalogPlatformModel.
|
|
653
|
+
body: CatalogPlatformModel.BulkInventoryJob().required(),
|
|
571
654
|
}).required();
|
|
572
655
|
}
|
|
573
656
|
|
|
@@ -578,17 +661,24 @@ class CatalogPlatformValidator {
|
|
|
578
661
|
}).required();
|
|
579
662
|
}
|
|
580
663
|
|
|
664
|
+
/** @returns {CreateHsCodeParam} */
|
|
665
|
+
static createHsCode() {
|
|
666
|
+
return Joi.object({
|
|
667
|
+
body: CatalogPlatformModel.HSCodeItem().required(),
|
|
668
|
+
}).required();
|
|
669
|
+
}
|
|
670
|
+
|
|
581
671
|
/** @returns {CreateInventoryExportParam} */
|
|
582
672
|
static createInventoryExport() {
|
|
583
673
|
return Joi.object({
|
|
584
|
-
body: CatalogPlatformModel.
|
|
674
|
+
body: CatalogPlatformModel.InventoryCreateRequestSchema().required(),
|
|
585
675
|
}).required();
|
|
586
676
|
}
|
|
587
677
|
|
|
588
678
|
/** @returns {CreateInventoryExportJobParam} */
|
|
589
679
|
static createInventoryExportJob() {
|
|
590
680
|
return Joi.object({
|
|
591
|
-
body: CatalogPlatformModel.
|
|
681
|
+
body: CatalogPlatformModel.InventoryExportRequestSchema().required(),
|
|
592
682
|
}).required();
|
|
593
683
|
}
|
|
594
684
|
|
|
@@ -596,14 +686,14 @@ class CatalogPlatformValidator {
|
|
|
596
686
|
static createMarketplaceOptin() {
|
|
597
687
|
return Joi.object({
|
|
598
688
|
marketplaceSlug: Joi.string().allow("").required(),
|
|
599
|
-
body: CatalogPlatformModel.
|
|
689
|
+
body: CatalogPlatformModel.OptInPostRequestSchema().required(),
|
|
600
690
|
}).required();
|
|
601
691
|
}
|
|
602
692
|
|
|
603
693
|
/** @returns {CreateProductParam} */
|
|
604
694
|
static createProduct() {
|
|
605
695
|
return Joi.object({
|
|
606
|
-
body: CatalogPlatformModel.
|
|
696
|
+
body: CatalogPlatformModel.ProductCreateSchemaV3().required(),
|
|
607
697
|
}).required();
|
|
608
698
|
}
|
|
609
699
|
|
|
@@ -614,13 +704,6 @@ class CatalogPlatformValidator {
|
|
|
614
704
|
}).required();
|
|
615
705
|
}
|
|
616
706
|
|
|
617
|
-
/** @returns {CreateProductBundleParam} */
|
|
618
|
-
static createProductBundle() {
|
|
619
|
-
return Joi.object({
|
|
620
|
-
body: CatalogPlatformModel.ProductBundleRequest().required(),
|
|
621
|
-
}).required();
|
|
622
|
-
}
|
|
623
|
-
|
|
624
707
|
/** @returns {CreateProductExportJobParam} */
|
|
625
708
|
static createProductExportJob() {
|
|
626
709
|
return Joi.object({
|
|
@@ -632,7 +715,7 @@ class CatalogPlatformValidator {
|
|
|
632
715
|
static createProductsInBulk() {
|
|
633
716
|
return Joi.object({
|
|
634
717
|
batchId: Joi.string().allow("").required(),
|
|
635
|
-
body: CatalogPlatformModel.
|
|
718
|
+
body: CatalogPlatformModel.BulkProductRequestSchema().required(),
|
|
636
719
|
}).required();
|
|
637
720
|
}
|
|
638
721
|
|
|
@@ -643,6 +726,28 @@ class CatalogPlatformValidator {
|
|
|
643
726
|
}).required();
|
|
644
727
|
}
|
|
645
728
|
|
|
729
|
+
/** @returns {CreateTaxParam} */
|
|
730
|
+
static createTax() {
|
|
731
|
+
return Joi.object({
|
|
732
|
+
body: CatalogPlatformModel.CreateTaxRequestBody().required(),
|
|
733
|
+
}).required();
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/** @returns {CreateTaxComponentNameParam} */
|
|
737
|
+
static createTaxComponentName() {
|
|
738
|
+
return Joi.object({
|
|
739
|
+
body: CatalogPlatformModel.CreateTaxComponentNameRequestSchema().required(),
|
|
740
|
+
}).required();
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
/** @returns {CreateTaxVersionParam} */
|
|
744
|
+
static createTaxVersion() {
|
|
745
|
+
return Joi.object({
|
|
746
|
+
ruleId: Joi.string().allow("").required(),
|
|
747
|
+
body: CatalogPlatformModel.CreateTaxVersionRequestBody().required(),
|
|
748
|
+
}).required();
|
|
749
|
+
}
|
|
750
|
+
|
|
646
751
|
/** @returns {DeleteBulkInventoryJobParam} */
|
|
647
752
|
static deleteBulkInventoryJob() {
|
|
648
753
|
return Joi.object({
|
|
@@ -681,10 +786,26 @@ class CatalogPlatformValidator {
|
|
|
681
786
|
}).required();
|
|
682
787
|
}
|
|
683
788
|
|
|
789
|
+
/** @returns {DeleteTaxRuleParam} */
|
|
790
|
+
static deleteTaxRule() {
|
|
791
|
+
return Joi.object({
|
|
792
|
+
ruleId: Joi.string().allow("").required(),
|
|
793
|
+
}).required();
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/** @returns {DeleteTaxVersionParam} */
|
|
797
|
+
static deleteTaxVersion() {
|
|
798
|
+
return Joi.object({
|
|
799
|
+
ruleId: Joi.string().allow("").required(),
|
|
800
|
+
versionId: Joi.string().allow("").required(),
|
|
801
|
+
}).required();
|
|
802
|
+
}
|
|
803
|
+
|
|
684
804
|
/** @returns {DownloadInventoryTemplateViewParam} */
|
|
685
805
|
static downloadInventoryTemplateView() {
|
|
686
806
|
return Joi.object({
|
|
687
|
-
|
|
807
|
+
schemaType: Joi.string().allow("").required(),
|
|
808
|
+
type: Joi.string().allow("").required(),
|
|
688
809
|
}).required();
|
|
689
810
|
}
|
|
690
811
|
|
|
@@ -701,7 +822,7 @@ class CatalogPlatformValidator {
|
|
|
701
822
|
static editProduct() {
|
|
702
823
|
return Joi.object({
|
|
703
824
|
itemId: Joi.number().required(),
|
|
704
|
-
body: CatalogPlatformModel.
|
|
825
|
+
body: CatalogPlatformModel.ProductUpdateSchemaV3().required(),
|
|
705
826
|
}).required();
|
|
706
827
|
}
|
|
707
828
|
|
|
@@ -722,6 +843,17 @@ class CatalogPlatformValidator {
|
|
|
722
843
|
}).required();
|
|
723
844
|
}
|
|
724
845
|
|
|
846
|
+
/** @returns {GetAllTaxRulesParam} */
|
|
847
|
+
static getAllTaxRules() {
|
|
848
|
+
return Joi.object({
|
|
849
|
+
q: Joi.string().allow(""),
|
|
850
|
+
statuses: Joi.string().allow(""),
|
|
851
|
+
page: Joi.number(),
|
|
852
|
+
limit: Joi.number(),
|
|
853
|
+
versionStatus: Joi.string().allow(""),
|
|
854
|
+
}).required();
|
|
855
|
+
}
|
|
856
|
+
|
|
725
857
|
/** @returns {GetAttributeParam} */
|
|
726
858
|
static getAttribute() {
|
|
727
859
|
return Joi.object({
|
|
@@ -764,6 +896,16 @@ class CatalogPlatformValidator {
|
|
|
764
896
|
}).required();
|
|
765
897
|
}
|
|
766
898
|
|
|
899
|
+
/** @returns {GetHsCodesParam} */
|
|
900
|
+
static getHsCodes() {
|
|
901
|
+
return Joi.object({
|
|
902
|
+
page: Joi.number(),
|
|
903
|
+
limit: Joi.number(),
|
|
904
|
+
type: Joi.string().allow(""),
|
|
905
|
+
q: Joi.string().allow(""),
|
|
906
|
+
}).required();
|
|
907
|
+
}
|
|
908
|
+
|
|
767
909
|
/** @returns {GetHsnCodeParam} */
|
|
768
910
|
static getHsnCode() {
|
|
769
911
|
return Joi.object({
|
|
@@ -800,6 +942,10 @@ class CatalogPlatformValidator {
|
|
|
800
942
|
pageNo: Joi.number(),
|
|
801
943
|
pageSize: Joi.number(),
|
|
802
944
|
search: Joi.string().allow(""),
|
|
945
|
+
startDate: Joi.string().allow(""),
|
|
946
|
+
endDate: Joi.string().allow(""),
|
|
947
|
+
stage: Joi.string().allow(""),
|
|
948
|
+
tags: Joi.string().allow("").allow(null),
|
|
803
949
|
}).required();
|
|
804
950
|
}
|
|
805
951
|
|
|
@@ -842,13 +988,6 @@ class CatalogPlatformValidator {
|
|
|
842
988
|
return Joi.object({}).required();
|
|
843
989
|
}
|
|
844
990
|
|
|
845
|
-
/** @returns {GetOptimalLocationsParam} */
|
|
846
|
-
static getOptimalLocations() {
|
|
847
|
-
return Joi.object({
|
|
848
|
-
body: CatalogPlatformModel.AssignStore().required(),
|
|
849
|
-
}).required();
|
|
850
|
-
}
|
|
851
|
-
|
|
852
991
|
/** @returns {GetProductParam} */
|
|
853
992
|
static getProduct() {
|
|
854
993
|
return Joi.object({
|
|
@@ -883,21 +1022,6 @@ class CatalogPlatformValidator {
|
|
|
883
1022
|
}).required();
|
|
884
1023
|
}
|
|
885
1024
|
|
|
886
|
-
/** @returns {GetProductBundleParam} */
|
|
887
|
-
static getProductBundle() {
|
|
888
|
-
return Joi.object({
|
|
889
|
-
q: Joi.string().allow(""),
|
|
890
|
-
slug: Joi.array().items(Joi.string().allow("")),
|
|
891
|
-
}).required();
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
/** @returns {GetProductBundleDetailParam} */
|
|
895
|
-
static getProductBundleDetail() {
|
|
896
|
-
return Joi.object({
|
|
897
|
-
id: Joi.string().allow("").required(),
|
|
898
|
-
}).required();
|
|
899
|
-
}
|
|
900
|
-
|
|
901
1025
|
/** @returns {GetProductExportJobsParam} */
|
|
902
1026
|
static getProductExportJobs() {
|
|
903
1027
|
return Joi.object({
|
|
@@ -993,6 +1117,22 @@ class CatalogPlatformValidator {
|
|
|
993
1117
|
}).required();
|
|
994
1118
|
}
|
|
995
1119
|
|
|
1120
|
+
/** @returns {GetTaxComponentNamesParam} */
|
|
1121
|
+
static getTaxComponentNames() {
|
|
1122
|
+
return Joi.object({}).required();
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/** @returns {GetTaxVersionDetailsParam} */
|
|
1126
|
+
static getTaxVersionDetails() {
|
|
1127
|
+
return Joi.object({
|
|
1128
|
+
ruleId: Joi.string().allow("").required(),
|
|
1129
|
+
versionStatus: Joi.string().allow(""),
|
|
1130
|
+
q: Joi.string().allow(""),
|
|
1131
|
+
limit: Joi.string().allow(""),
|
|
1132
|
+
page: Joi.string().allow(""),
|
|
1133
|
+
}).required();
|
|
1134
|
+
}
|
|
1135
|
+
|
|
996
1136
|
/** @returns {GetVariantsOfProductsParam} */
|
|
997
1137
|
static getVariantsOfProducts() {
|
|
998
1138
|
return Joi.object({
|
|
@@ -1006,7 +1146,7 @@ class CatalogPlatformValidator {
|
|
|
1006
1146
|
/** @returns {ListCategoriesParam} */
|
|
1007
1147
|
static listCategories() {
|
|
1008
1148
|
return Joi.object({
|
|
1009
|
-
level: Joi.
|
|
1149
|
+
level: Joi.array().items(Joi.number()),
|
|
1010
1150
|
department: Joi.number(),
|
|
1011
1151
|
q: Joi.string().allow(""),
|
|
1012
1152
|
pageNo: Joi.number(),
|
|
@@ -1050,6 +1190,8 @@ class CatalogPlatformValidator {
|
|
|
1050
1190
|
static listProductTemplate() {
|
|
1051
1191
|
return Joi.object({
|
|
1052
1192
|
department: Joi.string().allow("").required(),
|
|
1193
|
+
pageNo: Joi.number(),
|
|
1194
|
+
pageSize: Joi.number(),
|
|
1053
1195
|
}).required();
|
|
1054
1196
|
}
|
|
1055
1197
|
|
|
@@ -1075,6 +1217,14 @@ class CatalogPlatformValidator {
|
|
|
1075
1217
|
}).required();
|
|
1076
1218
|
}
|
|
1077
1219
|
|
|
1220
|
+
/** @returns {PartialUpdateProductParam} */
|
|
1221
|
+
static partialUpdateProduct() {
|
|
1222
|
+
return Joi.object({
|
|
1223
|
+
itemId: Joi.number().required(),
|
|
1224
|
+
body: CatalogPlatformModel.ProductPatchSchemaV3().required(),
|
|
1225
|
+
}).required();
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1078
1228
|
/** @returns {UpdateHsnCodeParam} */
|
|
1079
1229
|
static updateHsnCode() {
|
|
1080
1230
|
return Joi.object({
|
|
@@ -1090,19 +1240,29 @@ class CatalogPlatformValidator {
|
|
|
1090
1240
|
}).required();
|
|
1091
1241
|
}
|
|
1092
1242
|
|
|
1093
|
-
/** @returns {
|
|
1094
|
-
static
|
|
1243
|
+
/** @returns {UpdateLocationPriceParam} */
|
|
1244
|
+
static updateLocationPrice() {
|
|
1095
1245
|
return Joi.object({
|
|
1096
|
-
|
|
1097
|
-
|
|
1246
|
+
storeId: Joi.number().required(),
|
|
1247
|
+
sellerIdentifier: Joi.string().allow("").required(),
|
|
1248
|
+
body: CatalogPlatformModel.LocationPriceRequestSchema().required(),
|
|
1098
1249
|
}).required();
|
|
1099
1250
|
}
|
|
1100
1251
|
|
|
1101
|
-
/** @returns {
|
|
1102
|
-
static
|
|
1252
|
+
/** @returns {UpdateLocationQuantityParam} */
|
|
1253
|
+
static updateLocationQuantity() {
|
|
1103
1254
|
return Joi.object({
|
|
1104
|
-
|
|
1105
|
-
|
|
1255
|
+
storeId: Joi.number().required(),
|
|
1256
|
+
sellerIdentifier: Joi.string().allow("").required(),
|
|
1257
|
+
body: CatalogPlatformModel.LocationQuantityRequestSchema().required(),
|
|
1258
|
+
}).required();
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
/** @returns {UpdateMarketplaceOptinParam} */
|
|
1262
|
+
static updateMarketplaceOptin() {
|
|
1263
|
+
return Joi.object({
|
|
1264
|
+
marketplaceSlug: Joi.string().allow("").required(),
|
|
1265
|
+
body: CatalogPlatformModel.UpdateMarketplaceOptinRequestSchema().required(),
|
|
1106
1266
|
}).required();
|
|
1107
1267
|
}
|
|
1108
1268
|
|
|
@@ -1123,12 +1283,28 @@ class CatalogPlatformValidator {
|
|
|
1123
1283
|
}).required();
|
|
1124
1284
|
}
|
|
1125
1285
|
|
|
1126
|
-
/** @returns {
|
|
1127
|
-
static
|
|
1286
|
+
/** @returns {UpdateTaxRuleParam} */
|
|
1287
|
+
static updateTaxRule() {
|
|
1128
1288
|
return Joi.object({
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1289
|
+
ruleId: Joi.string().allow("").required(),
|
|
1290
|
+
body: CatalogPlatformModel.UpdateTaxRequestBody().required(),
|
|
1291
|
+
}).required();
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
/** @returns {UpdateTaxVersionParam} */
|
|
1295
|
+
static updateTaxVersion() {
|
|
1296
|
+
return Joi.object({
|
|
1297
|
+
ruleId: Joi.string().allow("").required(),
|
|
1298
|
+
versionId: Joi.string().allow("").required(),
|
|
1299
|
+
body: CatalogPlatformModel.UpdateTaxVersionRequestBody().required(),
|
|
1300
|
+
}).required();
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
/** @returns {ValidateProductGlobalTemplateParam} */
|
|
1304
|
+
static validateProductGlobalTemplate() {
|
|
1305
|
+
return Joi.object({
|
|
1306
|
+
itemType: Joi.string().allow(""),
|
|
1307
|
+
bulk: Joi.boolean(),
|
|
1132
1308
|
}).required();
|
|
1133
1309
|
}
|
|
1134
1310
|
|
|
@@ -1145,6 +1321,7 @@ class CatalogPlatformValidator {
|
|
|
1145
1321
|
static validateProductTemplateSchema() {
|
|
1146
1322
|
return Joi.object({
|
|
1147
1323
|
itemType: Joi.string().allow("").required(),
|
|
1324
|
+
schemaType: Joi.string().allow(""),
|
|
1148
1325
|
}).required();
|
|
1149
1326
|
}
|
|
1150
1327
|
}
|