@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
- package/sdk/application/Cart/CartApplicationClient.js +118 -27
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
- package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -30
- package/sdk/application/Content/ContentApplicationClient.js +161 -56
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -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 +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
- package/sdk/application/Logistic/LogisticApplicationClient.js +101 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
- package/sdk/application/Order/OrderApplicationClient.js +56 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -21
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- 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 +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5070 -1296
- package/sdk/platform/Cart/CartPlatformModel.js +1992 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6512 -1770
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -1687
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +204 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1372 -400
- package/sdk/platform/Content/ContentPlatformModel.js +631 -394
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +95 -39
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -22
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7607 -1267
- package/sdk/platform/Order/OrderPlatformModel.js +3929 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- 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 +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- 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/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +810 -6
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export = CatalogPlatformValidator;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef AddInventoryParam
|
|
4
|
-
* @property {number} itemId - Item
|
|
4
|
+
* @property {number} itemId - Item id of the product of which size is to be get.
|
|
5
5
|
* @property {string} size - Size in which inventory is to be added.
|
|
6
|
-
* @property {CatalogPlatformModel.
|
|
6
|
+
* @property {CatalogPlatformModel.InventoryRequestSchema} body
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* @typedef AllSizesParam
|
|
@@ -16,7 +16,7 @@ export = CatalogPlatformValidator;
|
|
|
16
16
|
/**
|
|
17
17
|
* @typedef CreateBulkInventoryParam
|
|
18
18
|
* @property {string} batchId - Batch Id of the bulk create job.
|
|
19
|
-
* @property {CatalogPlatformModel.
|
|
19
|
+
* @property {CatalogPlatformModel.InventoryBulkRequestSchema} body
|
|
20
20
|
*/
|
|
21
21
|
/**
|
|
22
22
|
* @typedef CreateBulkInventoryJobParam
|
|
@@ -28,17 +28,17 @@ export = CatalogPlatformValidator;
|
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
30
|
* @typedef CreateInventoryExportParam
|
|
31
|
-
* @property {CatalogPlatformModel.
|
|
31
|
+
* @property {CatalogPlatformModel.InventoryCreateRequestSchema} body
|
|
32
32
|
*/
|
|
33
33
|
/**
|
|
34
34
|
* @typedef CreateInventoryExportJobParam
|
|
35
|
-
* @property {CatalogPlatformModel.
|
|
35
|
+
* @property {CatalogPlatformModel.InventoryExportRequestSchema} body
|
|
36
36
|
*/
|
|
37
37
|
/**
|
|
38
38
|
* @typedef CreateMarketplaceOptinParam
|
|
39
39
|
* @property {string} marketplaceSlug - The marketplace for which the detail
|
|
40
40
|
* needs to be retrieved.
|
|
41
|
-
* @property {CatalogPlatformModel.
|
|
41
|
+
* @property {CatalogPlatformModel.OptInPostRequestSchema} body
|
|
42
42
|
*/
|
|
43
43
|
/**
|
|
44
44
|
* @typedef CreateProductParam
|
|
@@ -50,7 +50,7 @@ export = CatalogPlatformValidator;
|
|
|
50
50
|
*/
|
|
51
51
|
/**
|
|
52
52
|
* @typedef CreateProductBundleParam
|
|
53
|
-
* @property {CatalogPlatformModel.
|
|
53
|
+
* @property {CatalogPlatformModel.ProductBundleRequestSchema} body
|
|
54
54
|
*/
|
|
55
55
|
/**
|
|
56
56
|
* @typedef CreateProductExportJobParam
|
|
@@ -59,7 +59,7 @@ export = CatalogPlatformValidator;
|
|
|
59
59
|
/**
|
|
60
60
|
* @typedef CreateProductsInBulkParam
|
|
61
61
|
* @property {string} batchId - Batch Id in which assets to be uploaded.
|
|
62
|
-
* @property {CatalogPlatformModel.
|
|
62
|
+
* @property {CatalogPlatformModel.BulkProductRequestSchema} body
|
|
63
63
|
*/
|
|
64
64
|
/**
|
|
65
65
|
* @typedef CreateSizeGuideParam
|
|
@@ -71,7 +71,8 @@ export = CatalogPlatformValidator;
|
|
|
71
71
|
*/
|
|
72
72
|
/**
|
|
73
73
|
* @typedef DeleteProductParam
|
|
74
|
-
* @property {number} itemId - Id of the product to be
|
|
74
|
+
* @property {number} itemId - Id of the product to be deleted.
|
|
75
|
+
* @property {CatalogPlatformModel.DeleteProductRequestBody} body
|
|
75
76
|
*/
|
|
76
77
|
/**
|
|
77
78
|
* @typedef DeleteProductBulkJobParam
|
|
@@ -112,8 +113,8 @@ export = CatalogPlatformValidator;
|
|
|
112
113
|
*/
|
|
113
114
|
/**
|
|
114
115
|
* @typedef GetAllProductHsnCodesParam
|
|
115
|
-
* @property {number} [pageNo] -
|
|
116
|
-
* @property {number} [pageSize] -
|
|
116
|
+
* @property {number} [pageNo] - Indicates current page number
|
|
117
|
+
* @property {number} [pageSize] - Indicates page size
|
|
117
118
|
* @property {string} [q] - Search using hsn code, description, reporting_hsn
|
|
118
119
|
* @property {string} [type] - Search using type
|
|
119
120
|
*/
|
|
@@ -245,6 +246,10 @@ export = CatalogPlatformValidator;
|
|
|
245
246
|
* @typedef GetProductBundleParam
|
|
246
247
|
* @property {string} [q] - A search string that is searched with product bundle name.
|
|
247
248
|
* @property {string[]} [slug] - Slugs of bundles to be retrieved.
|
|
249
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
250
|
+
* set of results
|
|
251
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
252
|
+
* Default is 12.
|
|
248
253
|
*/
|
|
249
254
|
/**
|
|
250
255
|
* @typedef GetProductBundleDetailParam
|
|
@@ -370,7 +375,7 @@ export = CatalogPlatformValidator;
|
|
|
370
375
|
/** @typedef ListHSNCodesParam */
|
|
371
376
|
/**
|
|
372
377
|
* @typedef ListInventoryExportParam
|
|
373
|
-
* @property {string} [status] - Status of the export job.
|
|
378
|
+
* @property {string} [status] - Status of the export job.(Pending, Running, Success)
|
|
374
379
|
* @property {string} [fromDate] - Inventory export history filtered according
|
|
375
380
|
* to from_date.
|
|
376
381
|
* @property {string} [toDate] - Inventory export history filtered according to from_date.
|
|
@@ -413,13 +418,13 @@ export = CatalogPlatformValidator;
|
|
|
413
418
|
/**
|
|
414
419
|
* @typedef UpdateMarketplaceOptinParam
|
|
415
420
|
* @property {string} marketplaceSlug - Slug of the marketplace .
|
|
416
|
-
* @property {CatalogPlatformModel.
|
|
421
|
+
* @property {CatalogPlatformModel.UpdateMarketplaceOptinRequestSchema} body
|
|
417
422
|
*/
|
|
418
423
|
/**
|
|
419
424
|
* @typedef UpdateProductBundleParam
|
|
420
425
|
* @property {string} id - A `id` is a unique identifier for a particular
|
|
421
426
|
* detail. Pass the `id` of the keywords which you want to delete.
|
|
422
|
-
* @property {CatalogPlatformModel.
|
|
427
|
+
* @property {CatalogPlatformModel.ProductBundleUpdateRequestSchema} body
|
|
423
428
|
*/
|
|
424
429
|
/**
|
|
425
430
|
* @typedef UpdateRealtimeInventoryParam
|
|
@@ -437,9 +442,18 @@ export = CatalogPlatformValidator;
|
|
|
437
442
|
* @typedef UploadBulkProductsParam
|
|
438
443
|
* @property {string} department - Department of the product to be uploaded.
|
|
439
444
|
* @property {string} productType - Product type of the product to be uploaded
|
|
440
|
-
* i.e. set, standard
|
|
445
|
+
* i.e. set, standard, digital.
|
|
441
446
|
* @property {CatalogPlatformModel.BulkProductJob} body
|
|
442
447
|
*/
|
|
448
|
+
/**
|
|
449
|
+
* @typedef ValidateProductGlobalTemplateParam
|
|
450
|
+
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
451
|
+
* default value is standard.
|
|
452
|
+
* @property {boolean} [bulk] - This specification determines the schema type to
|
|
453
|
+
* be retrieved. When set to true, it will return the schema for bulk data;
|
|
454
|
+
* when set to false, it will provide the schema for a single product. The
|
|
455
|
+
* default value is false.
|
|
456
|
+
*/
|
|
443
457
|
/**
|
|
444
458
|
* @typedef ValidateProductTemplateParam
|
|
445
459
|
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
@@ -600,24 +614,26 @@ declare class CatalogPlatformValidator {
|
|
|
600
614
|
static updateSizeGuide(): UpdateSizeGuideParam;
|
|
601
615
|
/** @returns {UploadBulkProductsParam} */
|
|
602
616
|
static uploadBulkProducts(): UploadBulkProductsParam;
|
|
617
|
+
/** @returns {ValidateProductGlobalTemplateParam} */
|
|
618
|
+
static validateProductGlobalTemplate(): ValidateProductGlobalTemplateParam;
|
|
603
619
|
/** @returns {ValidateProductTemplateParam} */
|
|
604
620
|
static validateProductTemplate(): ValidateProductTemplateParam;
|
|
605
621
|
/** @returns {ValidateProductTemplateSchemaParam} */
|
|
606
622
|
static validateProductTemplateSchema(): ValidateProductTemplateSchemaParam;
|
|
607
623
|
}
|
|
608
624
|
declare namespace CatalogPlatformValidator {
|
|
609
|
-
export { AddInventoryParam, AllSizesParam, BulkHsnCodeParam, CreateBulkInventoryParam, CreateBulkInventoryJobParam, CreateBulkProductUploadJobParam, CreateInventoryExportParam, CreateInventoryExportJobParam, CreateMarketplaceOptinParam, CreateProductParam, CreateProductAssetsInBulkParam, CreateProductBundleParam, CreateProductExportJobParam, CreateProductsInBulkParam, CreateSizeGuideParam, DeleteBulkInventoryJobParam, DeleteProductParam, DeleteProductBulkJobParam, DeleteRealtimeInventoryParam, DeleteSizeParam, DownloadInventoryTemplateViewParam, DownloadProductTemplateViewsParam, EditProductParam, ExportInventoryConfigParam, GetAllProductHsnCodesParam, GetAttributeParam, GetCategoryDataParam, GetCompanyBrandDetailParam, GetCompanyDetailParam, GetCompanyMetricsParam, GetDepartmentDataParam, GetHsnCodeParam, GetInventoriesParam, GetInventoryBulkUploadHistoryParam, GetInventoryBySizeParam, GetInventoryBySizeIdentifierParam, GetInventoryExportParam, GetMarketplaceOptinDetailParam, GetMarketplacesParam, GetOptimalLocationsParam, GetProductParam, GetProductAssetsInBulkParam, GetProductAttributesParam, GetProductBulkUploadHistoryParam, GetProductBundleParam, GetProductBundleDetailParam, GetProductExportJobsParam, GetProductSizeParam, GetProductTagsParam, GetProductValidationParam, GetProductsParam, GetSellerInsightsParam, GetSingleProductHSNCodeParam, GetSizeGuideParam, GetSizeGuidesParam, GetStoreDetailParam, GetVariantsOfProductsParam, ListCategoriesParam, ListDepartmentsDataParam, ListHSNCodesParam, ListInventoryExportParam, ListProductTemplateParam, ListProductTemplateCategoriesParam, ListProductTemplateExportDetailsParam, ListTemplateBrandTypeValuesParam, UpdateHsnCodeParam, UpdateInventoriesParam, UpdateMarketplaceOptinParam, UpdateProductBundleParam, UpdateRealtimeInventoryParam, UpdateSizeGuideParam, UploadBulkProductsParam, ValidateProductTemplateParam, ValidateProductTemplateSchemaParam };
|
|
625
|
+
export { AddInventoryParam, AllSizesParam, BulkHsnCodeParam, CreateBulkInventoryParam, CreateBulkInventoryJobParam, CreateBulkProductUploadJobParam, CreateInventoryExportParam, CreateInventoryExportJobParam, CreateMarketplaceOptinParam, CreateProductParam, CreateProductAssetsInBulkParam, CreateProductBundleParam, CreateProductExportJobParam, CreateProductsInBulkParam, CreateSizeGuideParam, DeleteBulkInventoryJobParam, DeleteProductParam, DeleteProductBulkJobParam, DeleteRealtimeInventoryParam, DeleteSizeParam, DownloadInventoryTemplateViewParam, DownloadProductTemplateViewsParam, EditProductParam, ExportInventoryConfigParam, GetAllProductHsnCodesParam, GetAttributeParam, GetCategoryDataParam, GetCompanyBrandDetailParam, GetCompanyDetailParam, GetCompanyMetricsParam, GetDepartmentDataParam, GetHsnCodeParam, GetInventoriesParam, GetInventoryBulkUploadHistoryParam, GetInventoryBySizeParam, GetInventoryBySizeIdentifierParam, GetInventoryExportParam, GetMarketplaceOptinDetailParam, GetMarketplacesParam, GetOptimalLocationsParam, GetProductParam, GetProductAssetsInBulkParam, GetProductAttributesParam, GetProductBulkUploadHistoryParam, GetProductBundleParam, GetProductBundleDetailParam, GetProductExportJobsParam, GetProductSizeParam, GetProductTagsParam, GetProductValidationParam, GetProductsParam, GetSellerInsightsParam, GetSingleProductHSNCodeParam, GetSizeGuideParam, GetSizeGuidesParam, GetStoreDetailParam, GetVariantsOfProductsParam, ListCategoriesParam, ListDepartmentsDataParam, ListHSNCodesParam, ListInventoryExportParam, ListProductTemplateParam, ListProductTemplateCategoriesParam, ListProductTemplateExportDetailsParam, ListTemplateBrandTypeValuesParam, UpdateHsnCodeParam, UpdateInventoriesParam, UpdateMarketplaceOptinParam, UpdateProductBundleParam, UpdateRealtimeInventoryParam, UpdateSizeGuideParam, UploadBulkProductsParam, ValidateProductGlobalTemplateParam, ValidateProductTemplateParam, ValidateProductTemplateSchemaParam };
|
|
610
626
|
}
|
|
611
627
|
type AddInventoryParam = {
|
|
612
628
|
/**
|
|
613
|
-
* - Item
|
|
629
|
+
* - Item id of the product of which size is to be get.
|
|
614
630
|
*/
|
|
615
631
|
itemId: number;
|
|
616
632
|
/**
|
|
617
633
|
* - Size in which inventory is to be added.
|
|
618
634
|
*/
|
|
619
635
|
size: string;
|
|
620
|
-
body: CatalogPlatformModel.
|
|
636
|
+
body: CatalogPlatformModel.InventoryRequestSchema;
|
|
621
637
|
};
|
|
622
638
|
type AllSizesParam = {
|
|
623
639
|
/**
|
|
@@ -633,7 +649,7 @@ type CreateBulkInventoryParam = {
|
|
|
633
649
|
* - Batch Id of the bulk create job.
|
|
634
650
|
*/
|
|
635
651
|
batchId: string;
|
|
636
|
-
body: CatalogPlatformModel.
|
|
652
|
+
body: CatalogPlatformModel.InventoryBulkRequestSchema;
|
|
637
653
|
};
|
|
638
654
|
type CreateBulkInventoryJobParam = {
|
|
639
655
|
body: CatalogPlatformModel.BulkJob;
|
|
@@ -642,10 +658,10 @@ type CreateBulkProductUploadJobParam = {
|
|
|
642
658
|
body: CatalogPlatformModel.BulkJob;
|
|
643
659
|
};
|
|
644
660
|
type CreateInventoryExportParam = {
|
|
645
|
-
body: CatalogPlatformModel.
|
|
661
|
+
body: CatalogPlatformModel.InventoryCreateRequestSchema;
|
|
646
662
|
};
|
|
647
663
|
type CreateInventoryExportJobParam = {
|
|
648
|
-
body: CatalogPlatformModel.
|
|
664
|
+
body: CatalogPlatformModel.InventoryExportRequestSchema;
|
|
649
665
|
};
|
|
650
666
|
type CreateMarketplaceOptinParam = {
|
|
651
667
|
/**
|
|
@@ -653,7 +669,7 @@ type CreateMarketplaceOptinParam = {
|
|
|
653
669
|
* needs to be retrieved.
|
|
654
670
|
*/
|
|
655
671
|
marketplaceSlug: string;
|
|
656
|
-
body: CatalogPlatformModel.
|
|
672
|
+
body: CatalogPlatformModel.OptInPostRequestSchema;
|
|
657
673
|
};
|
|
658
674
|
type CreateProductParam = {
|
|
659
675
|
body: CatalogPlatformModel.ProductCreateUpdateSchemaV2;
|
|
@@ -662,7 +678,7 @@ type CreateProductAssetsInBulkParam = {
|
|
|
662
678
|
body: CatalogPlatformModel.ProductBulkAssets;
|
|
663
679
|
};
|
|
664
680
|
type CreateProductBundleParam = {
|
|
665
|
-
body: CatalogPlatformModel.
|
|
681
|
+
body: CatalogPlatformModel.ProductBundleRequestSchema;
|
|
666
682
|
};
|
|
667
683
|
type CreateProductExportJobParam = {
|
|
668
684
|
body: CatalogPlatformModel.ProductTemplateDownloadsExport;
|
|
@@ -672,7 +688,7 @@ type CreateProductsInBulkParam = {
|
|
|
672
688
|
* - Batch Id in which assets to be uploaded.
|
|
673
689
|
*/
|
|
674
690
|
batchId: string;
|
|
675
|
-
body: CatalogPlatformModel.
|
|
691
|
+
body: CatalogPlatformModel.BulkProductRequestSchema;
|
|
676
692
|
};
|
|
677
693
|
type CreateSizeGuideParam = {
|
|
678
694
|
body: CatalogPlatformModel.ValidateSizeGuide;
|
|
@@ -685,9 +701,10 @@ type DeleteBulkInventoryJobParam = {
|
|
|
685
701
|
};
|
|
686
702
|
type DeleteProductParam = {
|
|
687
703
|
/**
|
|
688
|
-
* - Id of the product to be
|
|
704
|
+
* - Id of the product to be deleted.
|
|
689
705
|
*/
|
|
690
706
|
itemId: number;
|
|
707
|
+
body: CatalogPlatformModel.DeleteProductRequestBody;
|
|
691
708
|
};
|
|
692
709
|
type DeleteProductBulkJobParam = {
|
|
693
710
|
/**
|
|
@@ -754,11 +771,11 @@ type ExportInventoryConfigParam = {
|
|
|
754
771
|
};
|
|
755
772
|
type GetAllProductHsnCodesParam = {
|
|
756
773
|
/**
|
|
757
|
-
* -
|
|
774
|
+
* - Indicates current page number
|
|
758
775
|
*/
|
|
759
776
|
pageNo?: number;
|
|
760
777
|
/**
|
|
761
|
-
* -
|
|
778
|
+
* - Indicates page size
|
|
762
779
|
*/
|
|
763
780
|
pageSize?: number;
|
|
764
781
|
/**
|
|
@@ -1037,6 +1054,16 @@ type GetProductBundleParam = {
|
|
|
1037
1054
|
* - Slugs of bundles to be retrieved.
|
|
1038
1055
|
*/
|
|
1039
1056
|
slug?: string[];
|
|
1057
|
+
/**
|
|
1058
|
+
* - The page number to navigate through the given
|
|
1059
|
+
* set of results
|
|
1060
|
+
*/
|
|
1061
|
+
pageNo?: number;
|
|
1062
|
+
/**
|
|
1063
|
+
* - Number of items to retrieve in each page.
|
|
1064
|
+
* Default is 12.
|
|
1065
|
+
*/
|
|
1066
|
+
pageSize?: number;
|
|
1040
1067
|
};
|
|
1041
1068
|
type GetProductBundleDetailParam = {
|
|
1042
1069
|
/**
|
|
@@ -1315,7 +1342,7 @@ type ListDepartmentsDataParam = {
|
|
|
1315
1342
|
};
|
|
1316
1343
|
type ListInventoryExportParam = {
|
|
1317
1344
|
/**
|
|
1318
|
-
* - Status of the export job.
|
|
1345
|
+
* - Status of the export job.(Pending, Running, Success)
|
|
1319
1346
|
*/
|
|
1320
1347
|
status?: string;
|
|
1321
1348
|
/**
|
|
@@ -1392,7 +1419,7 @@ type UpdateMarketplaceOptinParam = {
|
|
|
1392
1419
|
* - Slug of the marketplace .
|
|
1393
1420
|
*/
|
|
1394
1421
|
marketplaceSlug: string;
|
|
1395
|
-
body: CatalogPlatformModel.
|
|
1422
|
+
body: CatalogPlatformModel.UpdateMarketplaceOptinRequestSchema;
|
|
1396
1423
|
};
|
|
1397
1424
|
type UpdateProductBundleParam = {
|
|
1398
1425
|
/**
|
|
@@ -1400,7 +1427,7 @@ type UpdateProductBundleParam = {
|
|
|
1400
1427
|
* detail. Pass the `id` of the keywords which you want to delete.
|
|
1401
1428
|
*/
|
|
1402
1429
|
id: string;
|
|
1403
|
-
body: CatalogPlatformModel.
|
|
1430
|
+
body: CatalogPlatformModel.ProductBundleUpdateRequestSchema;
|
|
1404
1431
|
};
|
|
1405
1432
|
type UpdateRealtimeInventoryParam = {
|
|
1406
1433
|
/**
|
|
@@ -1428,11 +1455,25 @@ type UploadBulkProductsParam = {
|
|
|
1428
1455
|
department: string;
|
|
1429
1456
|
/**
|
|
1430
1457
|
* - Product type of the product to be uploaded
|
|
1431
|
-
* i.e. set, standard
|
|
1458
|
+
* i.e. set, standard, digital.
|
|
1432
1459
|
*/
|
|
1433
1460
|
productType: string;
|
|
1434
1461
|
body: CatalogPlatformModel.BulkProductJob;
|
|
1435
1462
|
};
|
|
1463
|
+
type ValidateProductGlobalTemplateParam = {
|
|
1464
|
+
/**
|
|
1465
|
+
* - An `item_type` defines the type of item. The
|
|
1466
|
+
* default value is standard.
|
|
1467
|
+
*/
|
|
1468
|
+
itemType?: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* - This specification determines the schema type to
|
|
1471
|
+
* be retrieved. When set to true, it will return the schema for bulk data;
|
|
1472
|
+
* when set to false, it will provide the schema for a single product. The
|
|
1473
|
+
* default value is false.
|
|
1474
|
+
*/
|
|
1475
|
+
bulk?: boolean;
|
|
1476
|
+
};
|
|
1436
1477
|
type ValidateProductTemplateParam = {
|
|
1437
1478
|
/**
|
|
1438
1479
|
* - A `slug` is a unique identifier for a particular template.
|
|
@@ -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,7 +22,7 @@ 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
|
/**
|
|
@@ -37,19 +37,19 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* @typedef CreateInventoryExportParam
|
|
40
|
-
* @property {CatalogPlatformModel.
|
|
40
|
+
* @property {CatalogPlatformModel.InventoryCreateRequestSchema} body
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @typedef CreateInventoryExportJobParam
|
|
45
|
-
* @property {CatalogPlatformModel.
|
|
45
|
+
* @property {CatalogPlatformModel.InventoryExportRequestSchema} body
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* @typedef CreateMarketplaceOptinParam
|
|
50
50
|
* @property {string} marketplaceSlug - The marketplace for which the detail
|
|
51
51
|
* needs to be retrieved.
|
|
52
|
-
* @property {CatalogPlatformModel.
|
|
52
|
+
* @property {CatalogPlatformModel.OptInPostRequestSchema} body
|
|
53
53
|
*/
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -64,7 +64,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* @typedef CreateProductBundleParam
|
|
67
|
-
* @property {CatalogPlatformModel.
|
|
67
|
+
* @property {CatalogPlatformModel.ProductBundleRequestSchema} body
|
|
68
68
|
*/
|
|
69
69
|
|
|
70
70
|
/**
|
|
@@ -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
|
/**
|
|
@@ -90,7 +90,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* @typedef DeleteProductParam
|
|
93
|
-
* @property {number} itemId - Id of the product to be
|
|
93
|
+
* @property {number} itemId - Id of the product to be deleted.
|
|
94
|
+
* @property {CatalogPlatformModel.DeleteProductRequestBody} body
|
|
94
95
|
*/
|
|
95
96
|
|
|
96
97
|
/**
|
|
@@ -139,8 +140,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
139
140
|
|
|
140
141
|
/**
|
|
141
142
|
* @typedef GetAllProductHsnCodesParam
|
|
142
|
-
* @property {number} [pageNo] -
|
|
143
|
-
* @property {number} [pageSize] -
|
|
143
|
+
* @property {number} [pageNo] - Indicates current page number
|
|
144
|
+
* @property {number} [pageSize] - Indicates page size
|
|
144
145
|
* @property {string} [q] - Search using hsn code, description, reporting_hsn
|
|
145
146
|
* @property {string} [type] - Search using type
|
|
146
147
|
*/
|
|
@@ -292,6 +293,10 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
292
293
|
* @typedef GetProductBundleParam
|
|
293
294
|
* @property {string} [q] - A search string that is searched with product bundle name.
|
|
294
295
|
* @property {string[]} [slug] - Slugs of bundles to be retrieved.
|
|
296
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
297
|
+
* set of results
|
|
298
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
299
|
+
* Default is 12.
|
|
295
300
|
*/
|
|
296
301
|
|
|
297
302
|
/**
|
|
@@ -433,7 +438,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
433
438
|
|
|
434
439
|
/**
|
|
435
440
|
* @typedef ListInventoryExportParam
|
|
436
|
-
* @property {string} [status] - Status of the export job.
|
|
441
|
+
* @property {string} [status] - Status of the export job.(Pending, Running, Success)
|
|
437
442
|
* @property {string} [fromDate] - Inventory export history filtered according
|
|
438
443
|
* to from_date.
|
|
439
444
|
* @property {string} [toDate] - Inventory export history filtered according to from_date.
|
|
@@ -483,14 +488,14 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
483
488
|
/**
|
|
484
489
|
* @typedef UpdateMarketplaceOptinParam
|
|
485
490
|
* @property {string} marketplaceSlug - Slug of the marketplace .
|
|
486
|
-
* @property {CatalogPlatformModel.
|
|
491
|
+
* @property {CatalogPlatformModel.UpdateMarketplaceOptinRequestSchema} body
|
|
487
492
|
*/
|
|
488
493
|
|
|
489
494
|
/**
|
|
490
495
|
* @typedef UpdateProductBundleParam
|
|
491
496
|
* @property {string} id - A `id` is a unique identifier for a particular
|
|
492
497
|
* detail. Pass the `id` of the keywords which you want to delete.
|
|
493
|
-
* @property {CatalogPlatformModel.
|
|
498
|
+
* @property {CatalogPlatformModel.ProductBundleUpdateRequestSchema} body
|
|
494
499
|
*/
|
|
495
500
|
|
|
496
501
|
/**
|
|
@@ -511,10 +516,20 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
511
516
|
* @typedef UploadBulkProductsParam
|
|
512
517
|
* @property {string} department - Department of the product to be uploaded.
|
|
513
518
|
* @property {string} productType - Product type of the product to be uploaded
|
|
514
|
-
* i.e. set, standard
|
|
519
|
+
* i.e. set, standard, digital.
|
|
515
520
|
* @property {CatalogPlatformModel.BulkProductJob} body
|
|
516
521
|
*/
|
|
517
522
|
|
|
523
|
+
/**
|
|
524
|
+
* @typedef ValidateProductGlobalTemplateParam
|
|
525
|
+
* @property {string} [itemType] - An `item_type` defines the type of item. The
|
|
526
|
+
* default value is standard.
|
|
527
|
+
* @property {boolean} [bulk] - This specification determines the schema type to
|
|
528
|
+
* be retrieved. When set to true, it will return the schema for bulk data;
|
|
529
|
+
* when set to false, it will provide the schema for a single product. The
|
|
530
|
+
* default value is false.
|
|
531
|
+
*/
|
|
532
|
+
|
|
518
533
|
/**
|
|
519
534
|
* @typedef ValidateProductTemplateParam
|
|
520
535
|
* @property {string} slug - A `slug` is a unique identifier for a particular template.
|
|
@@ -538,7 +553,7 @@ class CatalogPlatformValidator {
|
|
|
538
553
|
return Joi.object({
|
|
539
554
|
itemId: Joi.number().required(),
|
|
540
555
|
size: Joi.string().allow("").required(),
|
|
541
|
-
body: CatalogPlatformModel.
|
|
556
|
+
body: CatalogPlatformModel.InventoryRequestSchema().required(),
|
|
542
557
|
}).required();
|
|
543
558
|
}
|
|
544
559
|
|
|
@@ -560,7 +575,7 @@ class CatalogPlatformValidator {
|
|
|
560
575
|
static createBulkInventory() {
|
|
561
576
|
return Joi.object({
|
|
562
577
|
batchId: Joi.string().allow("").required(),
|
|
563
|
-
body: CatalogPlatformModel.
|
|
578
|
+
body: CatalogPlatformModel.InventoryBulkRequestSchema().required(),
|
|
564
579
|
}).required();
|
|
565
580
|
}
|
|
566
581
|
|
|
@@ -581,14 +596,14 @@ class CatalogPlatformValidator {
|
|
|
581
596
|
/** @returns {CreateInventoryExportParam} */
|
|
582
597
|
static createInventoryExport() {
|
|
583
598
|
return Joi.object({
|
|
584
|
-
body: CatalogPlatformModel.
|
|
599
|
+
body: CatalogPlatformModel.InventoryCreateRequestSchema().required(),
|
|
585
600
|
}).required();
|
|
586
601
|
}
|
|
587
602
|
|
|
588
603
|
/** @returns {CreateInventoryExportJobParam} */
|
|
589
604
|
static createInventoryExportJob() {
|
|
590
605
|
return Joi.object({
|
|
591
|
-
body: CatalogPlatformModel.
|
|
606
|
+
body: CatalogPlatformModel.InventoryExportRequestSchema().required(),
|
|
592
607
|
}).required();
|
|
593
608
|
}
|
|
594
609
|
|
|
@@ -596,7 +611,7 @@ class CatalogPlatformValidator {
|
|
|
596
611
|
static createMarketplaceOptin() {
|
|
597
612
|
return Joi.object({
|
|
598
613
|
marketplaceSlug: Joi.string().allow("").required(),
|
|
599
|
-
body: CatalogPlatformModel.
|
|
614
|
+
body: CatalogPlatformModel.OptInPostRequestSchema().required(),
|
|
600
615
|
}).required();
|
|
601
616
|
}
|
|
602
617
|
|
|
@@ -617,7 +632,7 @@ class CatalogPlatformValidator {
|
|
|
617
632
|
/** @returns {CreateProductBundleParam} */
|
|
618
633
|
static createProductBundle() {
|
|
619
634
|
return Joi.object({
|
|
620
|
-
body: CatalogPlatformModel.
|
|
635
|
+
body: CatalogPlatformModel.ProductBundleRequestSchema().required(),
|
|
621
636
|
}).required();
|
|
622
637
|
}
|
|
623
638
|
|
|
@@ -632,7 +647,7 @@ class CatalogPlatformValidator {
|
|
|
632
647
|
static createProductsInBulk() {
|
|
633
648
|
return Joi.object({
|
|
634
649
|
batchId: Joi.string().allow("").required(),
|
|
635
|
-
body: CatalogPlatformModel.
|
|
650
|
+
body: CatalogPlatformModel.BulkProductRequestSchema().required(),
|
|
636
651
|
}).required();
|
|
637
652
|
}
|
|
638
653
|
|
|
@@ -654,6 +669,7 @@ class CatalogPlatformValidator {
|
|
|
654
669
|
static deleteProduct() {
|
|
655
670
|
return Joi.object({
|
|
656
671
|
itemId: Joi.number().required(),
|
|
672
|
+
body: CatalogPlatformModel.DeleteProductRequestBody().required(),
|
|
657
673
|
}).required();
|
|
658
674
|
}
|
|
659
675
|
|
|
@@ -888,6 +904,8 @@ class CatalogPlatformValidator {
|
|
|
888
904
|
return Joi.object({
|
|
889
905
|
q: Joi.string().allow(""),
|
|
890
906
|
slug: Joi.array().items(Joi.string().allow("")),
|
|
907
|
+
pageNo: Joi.number(),
|
|
908
|
+
pageSize: Joi.number(),
|
|
891
909
|
}).required();
|
|
892
910
|
}
|
|
893
911
|
|
|
@@ -1094,7 +1112,7 @@ class CatalogPlatformValidator {
|
|
|
1094
1112
|
static updateMarketplaceOptin() {
|
|
1095
1113
|
return Joi.object({
|
|
1096
1114
|
marketplaceSlug: Joi.string().allow("").required(),
|
|
1097
|
-
body: CatalogPlatformModel.
|
|
1115
|
+
body: CatalogPlatformModel.UpdateMarketplaceOptinRequestSchema().required(),
|
|
1098
1116
|
}).required();
|
|
1099
1117
|
}
|
|
1100
1118
|
|
|
@@ -1102,7 +1120,7 @@ class CatalogPlatformValidator {
|
|
|
1102
1120
|
static updateProductBundle() {
|
|
1103
1121
|
return Joi.object({
|
|
1104
1122
|
id: Joi.string().allow("").required(),
|
|
1105
|
-
body: CatalogPlatformModel.
|
|
1123
|
+
body: CatalogPlatformModel.ProductBundleUpdateRequestSchema().required(),
|
|
1106
1124
|
}).required();
|
|
1107
1125
|
}
|
|
1108
1126
|
|
|
@@ -1132,6 +1150,14 @@ class CatalogPlatformValidator {
|
|
|
1132
1150
|
}).required();
|
|
1133
1151
|
}
|
|
1134
1152
|
|
|
1153
|
+
/** @returns {ValidateProductGlobalTemplateParam} */
|
|
1154
|
+
static validateProductGlobalTemplate() {
|
|
1155
|
+
return Joi.object({
|
|
1156
|
+
itemType: Joi.string().allow(""),
|
|
1157
|
+
bulk: Joi.boolean(),
|
|
1158
|
+
}).required();
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1135
1161
|
/** @returns {ValidateProductTemplateParam} */
|
|
1136
1162
|
static validateProductTemplate() {
|
|
1137
1163
|
return Joi.object({
|
|
@@ -16,12 +16,13 @@ declare class Common {
|
|
|
16
16
|
* @param {CommonPlatformValidator.SearchApplicationParam} arg - Arg object
|
|
17
17
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
18
18
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
19
|
-
* @returns {Promise<CommonPlatformModel.
|
|
19
|
+
* @returns {Promise<CommonPlatformModel.ApplicationResponseSchema>} -
|
|
20
|
+
* Success response
|
|
20
21
|
* @name searchApplication
|
|
21
22
|
* @summary: List sales channel categories
|
|
22
23
|
* @description: This API retrieves details for a specific sales channel based on the provided search criteria. The search can be performed using the name of the sales channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/searchApplication/).
|
|
23
24
|
*/
|
|
24
|
-
searchApplication({ authorization, query, requestHeaders }?: CommonPlatformValidator.SearchApplicationParam, { responseHeaders }?: object): Promise<CommonPlatformModel.
|
|
25
|
+
searchApplication({ authorization, query, requestHeaders }?: CommonPlatformValidator.SearchApplicationParam, { responseHeaders }?: object): Promise<CommonPlatformModel.ApplicationResponseSchema>;
|
|
25
26
|
}
|
|
26
27
|
import CommonPlatformValidator = require("./CommonPlatformValidator");
|
|
27
28
|
import CommonPlatformModel = require("./CommonPlatformModel");
|
|
@@ -93,7 +93,8 @@ class Common {
|
|
|
93
93
|
* @param {CommonPlatformValidator.SearchApplicationParam} arg - Arg object
|
|
94
94
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
95
95
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
96
|
-
* @returns {Promise<CommonPlatformModel.
|
|
96
|
+
* @returns {Promise<CommonPlatformModel.ApplicationResponseSchema>} -
|
|
97
|
+
* Success response
|
|
97
98
|
* @name searchApplication
|
|
98
99
|
* @summary: List sales channel categories
|
|
99
100
|
* @description: This API retrieves details for a specific sales channel based on the provided search criteria. The search can be performed using the name of the sales channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/searchApplication/).
|
|
@@ -147,7 +148,7 @@ class Common {
|
|
|
147
148
|
|
|
148
149
|
const {
|
|
149
150
|
error: res_error,
|
|
150
|
-
} = CommonPlatformModel.
|
|
151
|
+
} = CommonPlatformModel.ApplicationResponseSchema().validate(responseData, {
|
|
151
152
|
abortEarly: false,
|
|
152
153
|
allowUnknown: true,
|
|
153
154
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export = CommonPlatformModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
3
|
+
* @typedef ApplicationResponseSchema
|
|
4
4
|
* @property {Application} [application]
|
|
5
5
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
6
6
|
* of the current sales channel supported currency
|
|
@@ -104,7 +104,7 @@ export = CommonPlatformModel;
|
|
|
104
104
|
* @property {string} [message] - Response message for not found
|
|
105
105
|
*/
|
|
106
106
|
/**
|
|
107
|
-
* @typedef
|
|
107
|
+
* @typedef BadRequestSchema
|
|
108
108
|
* @property {string} [message] - Failure message (in a string format)
|
|
109
109
|
*/
|
|
110
110
|
/**
|
|
@@ -145,11 +145,11 @@ export = CommonPlatformModel;
|
|
|
145
145
|
declare class CommonPlatformModel {
|
|
146
146
|
}
|
|
147
147
|
declare namespace CommonPlatformModel {
|
|
148
|
-
export {
|
|
148
|
+
export { ApplicationResponseSchema, Domain, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, NotFound, BadRequestSchema, LocationDefaultLanguage, LocationDefaultCurrency, LocationCountry, Locations };
|
|
149
149
|
}
|
|
150
|
-
/** @returns {
|
|
151
|
-
declare function
|
|
152
|
-
type
|
|
150
|
+
/** @returns {ApplicationResponseSchema} */
|
|
151
|
+
declare function ApplicationResponseSchema(): ApplicationResponseSchema;
|
|
152
|
+
type ApplicationResponseSchema = {
|
|
153
153
|
application?: Application;
|
|
154
154
|
/**
|
|
155
155
|
* - The unique identifier (24-digit Mongo Object ID)
|
|
@@ -372,9 +372,9 @@ type NotFound = {
|
|
|
372
372
|
*/
|
|
373
373
|
message?: string;
|
|
374
374
|
};
|
|
375
|
-
/** @returns {
|
|
376
|
-
declare function
|
|
377
|
-
type
|
|
375
|
+
/** @returns {BadRequestSchema} */
|
|
376
|
+
declare function BadRequestSchema(): BadRequestSchema;
|
|
377
|
+
type BadRequestSchema = {
|
|
378
378
|
/**
|
|
379
379
|
* - Failure message (in a string format)
|
|
380
380
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef ApplicationResponseSchema
|
|
5
5
|
* @property {Application} [application]
|
|
6
6
|
* @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
|
|
7
7
|
* of the current sales channel supported currency
|
|
@@ -115,7 +115,7 @@ const Joi = require("joi");
|
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
|
-
* @typedef
|
|
118
|
+
* @typedef BadRequestSchema
|
|
119
119
|
* @property {string} [message] - Failure message (in a string format)
|
|
120
120
|
*/
|
|
121
121
|
|
|
@@ -159,8 +159,8 @@ const Joi = require("joi");
|
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
161
|
class CommonPlatformModel {
|
|
162
|
-
/** @returns {
|
|
163
|
-
static
|
|
162
|
+
/** @returns {ApplicationResponseSchema} */
|
|
163
|
+
static ApplicationResponseSchema() {
|
|
164
164
|
return Joi.object({
|
|
165
165
|
application: CommonPlatformModel.Application(),
|
|
166
166
|
_id: Joi.string().allow(""),
|
|
@@ -272,8 +272,8 @@ class CommonPlatformModel {
|
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
/** @returns {
|
|
276
|
-
static
|
|
275
|
+
/** @returns {BadRequestSchema} */
|
|
276
|
+
static BadRequestSchema() {
|
|
277
277
|
return Joi.object({
|
|
278
278
|
message: Joi.string().allow(""),
|
|
279
279
|
});
|