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