@gofynd/fdk-client-javascript 1.6.4 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4103 -9109
- package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -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 +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -12,55 +12,55 @@ class Catalog {
|
|
|
12
12
|
this._conf = _conf;
|
|
13
13
|
this._relativeUrls = {
|
|
14
14
|
followById:
|
|
15
|
-
"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}
|
|
16
|
-
getBrandDetailBySlug: "/service/application/catalog/v1.0/brands/{slug}
|
|
17
|
-
getBrands: "/service/application/catalog/v1.0/brands
|
|
18
|
-
getCategories: "/service/application/catalog/v1.0/categories
|
|
15
|
+
"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}",
|
|
16
|
+
getBrandDetailBySlug: "/service/application/catalog/v1.0/brands/{slug}",
|
|
17
|
+
getBrands: "/service/application/catalog/v1.0/brands",
|
|
18
|
+
getCategories: "/service/application/catalog/v1.0/categories",
|
|
19
19
|
getCategoryDetailBySlug:
|
|
20
|
-
"/service/application/catalog/v1.0/categories/{slug}
|
|
20
|
+
"/service/application/catalog/v1.0/categories/{slug}",
|
|
21
21
|
getCollectionDetailBySlug:
|
|
22
|
-
"/service/application/catalog/v1.0/collections/{slug}
|
|
22
|
+
"/service/application/catalog/v1.0/collections/{slug}",
|
|
23
23
|
getCollectionItemsBySlug:
|
|
24
|
-
"/service/application/catalog/v1.0/collections/{slug}/items
|
|
25
|
-
getCollections: "/service/application/catalog/v1.0/collections
|
|
24
|
+
"/service/application/catalog/v1.0/collections/{slug}/items",
|
|
25
|
+
getCollections: "/service/application/catalog/v1.0/collections",
|
|
26
26
|
getComparedFrequentlyProductBySlug:
|
|
27
|
-
"/service/application/catalog/v1.0/products/{slug}/similar/compared-frequently
|
|
28
|
-
getDepartments: "/service/application/catalog/v1.0/departments
|
|
29
|
-
getFollowIds: "/service/application/catalog/v1.0/follow/ids
|
|
27
|
+
"/service/application/catalog/v1.0/products/{slug}/similar/compared-frequently",
|
|
28
|
+
getDepartments: "/service/application/catalog/v1.0/departments",
|
|
29
|
+
getFollowIds: "/service/application/catalog/v1.0/follow/ids",
|
|
30
30
|
getFollowedListing:
|
|
31
|
-
"/service/application/catalog/v1.0/follow/{collection_type}
|
|
31
|
+
"/service/application/catalog/v1.0/follow/{collection_type}",
|
|
32
32
|
getFollowerCountById:
|
|
33
|
-
"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/count
|
|
34
|
-
getHomeProducts: "/service/application/catalog/v1.0/home/listing
|
|
33
|
+
"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/count",
|
|
34
|
+
getHomeProducts: "/service/application/catalog/v1.0/home/listing",
|
|
35
35
|
getInStockLocations:
|
|
36
|
-
"/service/application/catalog/
|
|
36
|
+
"/service/application/catalog/v2.0/in-stock/locations",
|
|
37
37
|
getLocationDetailsById:
|
|
38
|
-
"/service/application/catalog/
|
|
38
|
+
"/service/application/catalog/v2.0/locations/{location_id}",
|
|
39
39
|
getProductBundlesBySlug:
|
|
40
|
-
"/service/application/catalog/
|
|
40
|
+
"/service/application/catalog/v2.0/product-grouping",
|
|
41
41
|
getProductComparisonBySlugs:
|
|
42
|
-
"/service/application/catalog/v1.0/products/compare
|
|
42
|
+
"/service/application/catalog/v1.0/products/compare",
|
|
43
43
|
getProductDetailBySlug:
|
|
44
|
-
"/service/application/catalog/v1.0/products/{slug}
|
|
44
|
+
"/service/application/catalog/v1.0/products/{slug}",
|
|
45
45
|
getProductPriceBySlug:
|
|
46
|
-
"/service/application/catalog/
|
|
46
|
+
"/service/application/catalog/v1.0/products/sizes/price",
|
|
47
47
|
getProductSellersBySlug:
|
|
48
|
-
"/service/application/catalog/
|
|
48
|
+
"/service/application/catalog/v4.0/products/{slug}/sizes/{size}/sellers",
|
|
49
49
|
getProductSizesBySlug:
|
|
50
|
-
"/service/application/catalog/v1.0/products/{slug}/sizes
|
|
50
|
+
"/service/application/catalog/v1.0/products/{slug}/sizes",
|
|
51
51
|
getProductStockByIds:
|
|
52
|
-
"/service/application/catalog/v1.0/products/stock-status
|
|
52
|
+
"/service/application/catalog/v1.0/products/stock-status",
|
|
53
53
|
getProductStockForTimeByIds:
|
|
54
|
-
"/service/application/catalog/v1.0/products/stock-status/poll
|
|
54
|
+
"/service/application/catalog/v1.0/products/stock-status/poll",
|
|
55
55
|
getProductVariantsBySlug:
|
|
56
|
-
"/service/application/catalog/v1.0/products/{slug}/variants
|
|
57
|
-
getProducts: "/service/application/catalog/v1.0/products
|
|
58
|
-
getSearchResults: "/service/application/catalog/v1.0/auto-complete
|
|
56
|
+
"/service/application/catalog/v1.0/products/{slug}/variants",
|
|
57
|
+
getProducts: "/service/application/catalog/v1.0/products",
|
|
58
|
+
getSearchResults: "/service/application/catalog/v1.0/auto-complete",
|
|
59
59
|
getSimilarComparisonProductBySlug:
|
|
60
|
-
"/service/application/catalog/v1.0/products/{slug}/similar/compare
|
|
61
|
-
getStores: "/service/application/catalog/
|
|
60
|
+
"/service/application/catalog/v1.0/products/{slug}/similar/compare",
|
|
61
|
+
getStores: "/service/application/catalog/v2.0/locations",
|
|
62
62
|
unfollowById:
|
|
63
|
-
"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}
|
|
63
|
+
"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}",
|
|
64
64
|
};
|
|
65
65
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
66
66
|
(urls, [method, relativeUrl]) => {
|
|
@@ -81,9 +81,9 @@ class Catalog {
|
|
|
81
81
|
/**
|
|
82
82
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
83
83
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
84
|
-
* @returns {Promise<
|
|
84
|
+
* @returns {Promise<FollowPostResponse>} - Success response
|
|
85
85
|
* @name followById
|
|
86
|
-
* @summary:
|
|
86
|
+
* @summary: Follows an item by ID.
|
|
87
87
|
* @description: Add a product, brand, or item to the user's followed list by collection Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/followById/).
|
|
88
88
|
*/
|
|
89
89
|
async followById(
|
|
@@ -139,9 +139,9 @@ class Catalog {
|
|
|
139
139
|
/**
|
|
140
140
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
141
141
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
142
|
-
* @returns {Promise<
|
|
142
|
+
* @returns {Promise<BrandDetailResponse>} - Success response
|
|
143
143
|
* @name getBrandDetailBySlug
|
|
144
|
-
* @summary:
|
|
144
|
+
* @summary: Retrieves detailed brand info by slug.
|
|
145
145
|
* @description: Get metadata of a brand such as name, information, logo, banner, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getBrandDetailBySlug/).
|
|
146
146
|
*/
|
|
147
147
|
async getBrandDetailBySlug(
|
|
@@ -191,9 +191,9 @@ class Catalog {
|
|
|
191
191
|
/**
|
|
192
192
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
193
193
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
194
|
-
* @returns {Promise<
|
|
194
|
+
* @returns {Promise<BrandListingResponse>} - Success response
|
|
195
195
|
* @name getBrands
|
|
196
|
-
* @summary:
|
|
196
|
+
* @summary: Fetches all available brands.
|
|
197
197
|
* @description: Get a list of all the available brands. Filtering can be applied to the department. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getBrands/).
|
|
198
198
|
*/
|
|
199
199
|
async getBrands(
|
|
@@ -243,8 +243,8 @@ class Catalog {
|
|
|
243
243
|
* of available departments below. Also, you can get available departments
|
|
244
244
|
* from the endpoint /service/application/catalog/v1.0/departments/.
|
|
245
245
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
246
|
-
* @returns {Paginator<
|
|
247
|
-
* @summary:
|
|
246
|
+
* @returns {Paginator<BrandListingResponse>}
|
|
247
|
+
* @summary: Fetches all available brands.
|
|
248
248
|
* @description: Get a list of all the available brands. Filtering can be applied to the department.
|
|
249
249
|
*/
|
|
250
250
|
getBrandsPaginator({ department, pageSize } = {}) {
|
|
@@ -271,9 +271,9 @@ class Catalog {
|
|
|
271
271
|
/**
|
|
272
272
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
273
273
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
274
|
-
* @returns {Promise<
|
|
274
|
+
* @returns {Promise<CategoryListingResponse>} - Success response
|
|
275
275
|
* @name getCategories
|
|
276
|
-
* @summary:
|
|
276
|
+
* @summary: Lists all product categories.
|
|
277
277
|
* @description: List all available product categories. Also, users can filter the categories by department. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCategories/).
|
|
278
278
|
*/
|
|
279
279
|
async getCategories(
|
|
@@ -317,9 +317,9 @@ class Catalog {
|
|
|
317
317
|
/**
|
|
318
318
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
319
319
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
320
|
-
* @returns {Promise<
|
|
320
|
+
* @returns {Promise<CategoryMetaResponse>} - Success response
|
|
321
321
|
* @name getCategoryDetailBySlug
|
|
322
|
-
* @summary:
|
|
322
|
+
* @summary: Retrieves category details by slug.
|
|
323
323
|
* @description: Get detailed information about a specific product category using its slug and get metadata of a category such as name, information, logo, banner, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCategoryDetailBySlug/).
|
|
324
324
|
*/
|
|
325
325
|
async getCategoryDetailBySlug(
|
|
@@ -369,9 +369,9 @@ class Catalog {
|
|
|
369
369
|
/**
|
|
370
370
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
371
371
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
372
|
-
* @returns {Promise<
|
|
372
|
+
* @returns {Promise<CollectionDetailResponse>} - Success response
|
|
373
373
|
* @name getCollectionDetailBySlug
|
|
374
|
-
* @summary:
|
|
374
|
+
* @summary: Retrieves collection details by slug.
|
|
375
375
|
* @description: Get detailed information about a specific collection using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollectionDetailBySlug/).
|
|
376
376
|
*/
|
|
377
377
|
async getCollectionDetailBySlug(
|
|
@@ -421,9 +421,9 @@ class Catalog {
|
|
|
421
421
|
/**
|
|
422
422
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
423
423
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
424
|
-
* @returns {Promise<
|
|
424
|
+
* @returns {Promise<ProductListingResponse>} - Success response
|
|
425
425
|
* @name getCollectionItemsBySlug
|
|
426
|
-
* @summary: Lists items
|
|
426
|
+
* @summary: Lists items in a collection by slug.
|
|
427
427
|
* @description: Fetch items within a particular collection identified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollectionItemsBySlug/).
|
|
428
428
|
*/
|
|
429
429
|
async getCollectionItemsBySlug(
|
|
@@ -506,8 +506,8 @@ class Catalog {
|
|
|
506
506
|
* should be sorted, e.g. popularity, price, latest and discount, in
|
|
507
507
|
* either ascending or descending order. See the supported values below.
|
|
508
508
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
509
|
-
* @returns {Paginator<
|
|
510
|
-
* @summary: Lists items
|
|
509
|
+
* @returns {Paginator<ProductListingResponse>}
|
|
510
|
+
* @summary: Lists items in a collection by slug.
|
|
511
511
|
* @description: Fetch items within a particular collection identified by its slug.
|
|
512
512
|
*/
|
|
513
513
|
getCollectionItemsBySlugPaginator({
|
|
@@ -547,9 +547,9 @@ class Catalog {
|
|
|
547
547
|
/**
|
|
548
548
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
549
549
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
550
|
-
* @returns {Promise<
|
|
550
|
+
* @returns {Promise<GetCollectionListingResponse>} - Success response
|
|
551
551
|
* @name getCollections
|
|
552
|
-
* @summary:
|
|
552
|
+
* @summary: Fetches all available collections.
|
|
553
553
|
* @description: List of curated product collections with filtering options based on tags and collection names. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollections/).
|
|
554
554
|
*/
|
|
555
555
|
async getCollections(
|
|
@@ -598,8 +598,8 @@ class Catalog {
|
|
|
598
598
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
599
599
|
* @param {string[]} [arg.tag] - List of tags to filter collections.
|
|
600
600
|
* @param {string} [arg.q] - Name of the collection to filter collection.
|
|
601
|
-
* @returns {Paginator<
|
|
602
|
-
* @summary:
|
|
601
|
+
* @returns {Paginator<GetCollectionListingResponse>}
|
|
602
|
+
* @summary: Fetches all available collections.
|
|
603
603
|
* @description: List of curated product collections with filtering options based on tags and collection names.
|
|
604
604
|
*/
|
|
605
605
|
getCollectionsPaginator({ pageSize, tag, q } = {}) {
|
|
@@ -627,10 +627,9 @@ class Catalog {
|
|
|
627
627
|
/**
|
|
628
628
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
629
629
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
630
|
-
* @returns {Promise<
|
|
631
|
-
* Success response
|
|
630
|
+
* @returns {Promise<ProductFrequentlyComparedSimilarResponse>} - Success response
|
|
632
631
|
* @name getComparedFrequentlyProductBySlug
|
|
633
|
-
* @summary:
|
|
632
|
+
* @summary: Retrieves products frequently compared with a given product.
|
|
634
633
|
* @description: Get products that are often compared to the product specified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getComparedFrequentlyProductBySlug/).
|
|
635
634
|
*/
|
|
636
635
|
async getComparedFrequentlyProductBySlug(
|
|
@@ -680,9 +679,9 @@ class Catalog {
|
|
|
680
679
|
/**
|
|
681
680
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
682
681
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
683
|
-
* @returns {Promise<
|
|
682
|
+
* @returns {Promise<DepartmentResponse>} - Success response
|
|
684
683
|
* @name getDepartments
|
|
685
|
-
* @summary:
|
|
684
|
+
* @summary: Lists all departments.
|
|
686
685
|
* @description: List all departments associated with available products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getDepartments/).
|
|
687
686
|
*/
|
|
688
687
|
async getDepartments(
|
|
@@ -725,9 +724,9 @@ class Catalog {
|
|
|
725
724
|
/**
|
|
726
725
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
727
726
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
728
|
-
* @returns {Promise<
|
|
727
|
+
* @returns {Promise<FollowIdsResponse>} - Success response
|
|
729
728
|
* @name getFollowIds
|
|
730
|
-
* @summary:
|
|
729
|
+
* @summary: Fetches IDs of followed items.
|
|
731
730
|
* @description: Get the IDs of all items the user is currently following, such as Products, Brands, and Collections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowIds/).
|
|
732
731
|
*/
|
|
733
732
|
async getFollowIds(
|
|
@@ -771,9 +770,9 @@ class Catalog {
|
|
|
771
770
|
/**
|
|
772
771
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
773
772
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
774
|
-
* @returns {Promise<
|
|
773
|
+
* @returns {Promise<GetFollowListingResponse>} - Success response
|
|
775
774
|
* @name getFollowedListing
|
|
776
|
-
* @summary:
|
|
775
|
+
* @summary: Retrieves user's followed listings.
|
|
777
776
|
* @description: Get a list of products or brands the user is following. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowedListing/).
|
|
778
777
|
*/
|
|
779
778
|
async getFollowedListing(
|
|
@@ -829,8 +828,8 @@ class Catalog {
|
|
|
829
828
|
* @param {string} arg.collectionType - Type of collection followed, i.e.
|
|
830
829
|
* products, brands, or collections.
|
|
831
830
|
* @param {number} [arg.pageSize] - Page ID to retrieve next set of results.
|
|
832
|
-
* @returns {Paginator<
|
|
833
|
-
* @summary:
|
|
831
|
+
* @returns {Paginator<GetFollowListingResponse>}
|
|
832
|
+
* @summary: Retrieves user's followed listings.
|
|
834
833
|
* @description: Get a list of products or brands the user is following.
|
|
835
834
|
*/
|
|
836
835
|
getFollowedListingPaginator({ collectionType, pageSize } = {}) {
|
|
@@ -857,9 +856,9 @@ class Catalog {
|
|
|
857
856
|
/**
|
|
858
857
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
859
858
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
860
|
-
* @returns {Promise<
|
|
859
|
+
* @returns {Promise<FollowerCountResponse>} - Success response
|
|
861
860
|
* @name getFollowerCountById
|
|
862
|
-
* @summary:
|
|
861
|
+
* @summary: Retrieves follower count for an item.
|
|
863
862
|
* @description: Get the total number of followers for a specific item by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowerCountById/).
|
|
864
863
|
*/
|
|
865
864
|
async getFollowerCountById(
|
|
@@ -915,9 +914,9 @@ class Catalog {
|
|
|
915
914
|
/**
|
|
916
915
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
917
916
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
918
|
-
* @returns {Promise<
|
|
917
|
+
* @returns {Promise<HomeListingResponse>} - Success response
|
|
919
918
|
* @name getHomeProducts
|
|
920
|
-
* @summary:
|
|
919
|
+
* @summary: Fetches homepage-featured products.
|
|
921
920
|
* @description: List all the products associated with a brand, collection or category in a random order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getHomeProducts/).
|
|
922
921
|
*/
|
|
923
922
|
async getHomeProducts(
|
|
@@ -966,8 +965,8 @@ class Catalog {
|
|
|
966
965
|
* should be sorted, e.g. popularity, price, latest and discount, in
|
|
967
966
|
* either ascending or descending order.
|
|
968
967
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
969
|
-
* @returns {Paginator<
|
|
970
|
-
* @summary:
|
|
968
|
+
* @returns {Paginator<HomeListingResponse>}
|
|
969
|
+
* @summary: Fetches homepage-featured products.
|
|
971
970
|
* @description: List all the products associated with a brand, collection or category in a random order.
|
|
972
971
|
*/
|
|
973
972
|
getHomeProductsPaginator({ sortOn, pageSize } = {}) {
|
|
@@ -996,7 +995,7 @@ class Catalog {
|
|
|
996
995
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
997
996
|
* @returns {Promise<ApplicationStoreListing>} - Success response
|
|
998
997
|
* @name getInStockLocations
|
|
999
|
-
* @summary:
|
|
998
|
+
* @summary: Get store meta information.
|
|
1000
999
|
* @description: List stores where specified products are currently in stock. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getInStockLocations/).
|
|
1001
1000
|
*/
|
|
1002
1001
|
async getInStockLocations(
|
|
@@ -1064,7 +1063,7 @@ class Catalog {
|
|
|
1064
1063
|
* @param {number} [arg.longitude] - Longitude of the location from where
|
|
1065
1064
|
* one wants to retrieve the nearest stores, e.g. 19.1174114.
|
|
1066
1065
|
* @returns {Paginator<ApplicationStoreListing>}
|
|
1067
|
-
* @summary:
|
|
1066
|
+
* @summary: Get store meta information.
|
|
1068
1067
|
* @description: List stores where specified products are currently in stock.
|
|
1069
1068
|
*/
|
|
1070
1069
|
getInStockLocationsPaginator({
|
|
@@ -1104,7 +1103,7 @@ class Catalog {
|
|
|
1104
1103
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1105
1104
|
* @returns {Promise<StoreDetails>} - Success response
|
|
1106
1105
|
* @name getLocationDetailsById
|
|
1107
|
-
* @summary: Get
|
|
1106
|
+
* @summary: Get store meta information.
|
|
1108
1107
|
* @description: Get details about a store based on its location Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getLocationDetailsById/).
|
|
1109
1108
|
*/
|
|
1110
1109
|
async getLocationDetailsById(
|
|
@@ -1156,11 +1155,11 @@ class Catalog {
|
|
|
1156
1155
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1157
1156
|
* @returns {Promise<ProductBundle>} - Success response
|
|
1158
1157
|
* @name getProductBundlesBySlug
|
|
1159
|
-
* @summary:
|
|
1158
|
+
* @summary: Fetches product bundles by slug.
|
|
1160
1159
|
* @description: Get products bundles to the one specified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductBundlesBySlug/).
|
|
1161
1160
|
*/
|
|
1162
1161
|
async getProductBundlesBySlug(
|
|
1163
|
-
{ slug, id, requestHeaders } = { requestHeaders: {} },
|
|
1162
|
+
{ slug, id, size, sellerId, requestHeaders } = { requestHeaders: {} },
|
|
1164
1163
|
{ responseHeaders } = { responseHeaders: false }
|
|
1165
1164
|
) {
|
|
1166
1165
|
let invalidInput = [];
|
|
@@ -1174,6 +1173,8 @@ class Catalog {
|
|
|
1174
1173
|
const query_params = {};
|
|
1175
1174
|
query_params["slug"] = slug;
|
|
1176
1175
|
query_params["id"] = id;
|
|
1176
|
+
query_params["size"] = size;
|
|
1177
|
+
query_params["seller_id"] = sellerId;
|
|
1177
1178
|
|
|
1178
1179
|
const xHeaders = {};
|
|
1179
1180
|
|
|
@@ -1201,9 +1202,9 @@ class Catalog {
|
|
|
1201
1202
|
/**
|
|
1202
1203
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1203
1204
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1204
|
-
* @returns {Promise<
|
|
1205
|
+
* @returns {Promise<ProductsComparisonResponse>} - Success response
|
|
1205
1206
|
* @name getProductComparisonBySlugs
|
|
1206
|
-
* @summary:
|
|
1207
|
+
* @summary: Compares multiple products by slugs.
|
|
1207
1208
|
* @description: Get all the products that have the same category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductComparisonBySlugs/).
|
|
1208
1209
|
*/
|
|
1209
1210
|
async getProductComparisonBySlugs(
|
|
@@ -1256,7 +1257,7 @@ class Catalog {
|
|
|
1256
1257
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1257
1258
|
* @returns {Promise<ProductDetail>} - Success response
|
|
1258
1259
|
* @name getProductDetailBySlug
|
|
1259
|
-
* @summary:
|
|
1260
|
+
* @summary: Fetches detailed product information by slug.
|
|
1260
1261
|
* @description: Get product details such as price, attributes, HSN code, SKU code, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductDetailBySlug/).
|
|
1261
1262
|
*/
|
|
1262
1263
|
async getProductDetailBySlug(
|
|
@@ -1306,29 +1307,16 @@ class Catalog {
|
|
|
1306
1307
|
/**
|
|
1307
1308
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1308
1309
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1309
|
-
* @returns {Promise<
|
|
1310
|
+
* @returns {Promise<ProductSizePriceResponseV1>} - Success response
|
|
1310
1311
|
* @name getProductPriceBySlug
|
|
1311
|
-
* @summary:
|
|
1312
|
+
* @summary: get size price for multiple products
|
|
1312
1313
|
* @description: Get the price of a product size at all the selling locations near to a PIN Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductPriceBySlug/).
|
|
1313
1314
|
*/
|
|
1314
1315
|
async getProductPriceBySlug(
|
|
1315
|
-
{
|
|
1316
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1316
1317
|
{ responseHeaders } = { responseHeaders: false }
|
|
1317
1318
|
) {
|
|
1318
1319
|
let invalidInput = [];
|
|
1319
|
-
|
|
1320
|
-
if (!slug) {
|
|
1321
|
-
invalidInput.push({
|
|
1322
|
-
message: `The 'slug' field is required.`,
|
|
1323
|
-
path: ["slug"],
|
|
1324
|
-
});
|
|
1325
|
-
}
|
|
1326
|
-
if (!size) {
|
|
1327
|
-
invalidInput.push({
|
|
1328
|
-
message: `The 'size' field is required.`,
|
|
1329
|
-
path: ["size"],
|
|
1330
|
-
});
|
|
1331
|
-
}
|
|
1332
1320
|
if (invalidInput.length) {
|
|
1333
1321
|
const error = new Error();
|
|
1334
1322
|
error.message = "Missing required field";
|
|
@@ -1337,20 +1325,18 @@ class Catalog {
|
|
|
1337
1325
|
}
|
|
1338
1326
|
|
|
1339
1327
|
const query_params = {};
|
|
1340
|
-
query_params["store_id"] = storeId;
|
|
1341
|
-
query_params["moq"] = moq;
|
|
1342
1328
|
|
|
1343
1329
|
const xHeaders = {};
|
|
1344
1330
|
|
|
1345
1331
|
const response = await ApplicationAPIClient.execute(
|
|
1346
1332
|
this._conf,
|
|
1347
|
-
"
|
|
1333
|
+
"post",
|
|
1348
1334
|
constructUrl({
|
|
1349
1335
|
url: this._urls["getProductPriceBySlug"],
|
|
1350
|
-
params: {
|
|
1336
|
+
params: {},
|
|
1351
1337
|
}),
|
|
1352
1338
|
query_params,
|
|
1353
|
-
|
|
1339
|
+
body,
|
|
1354
1340
|
{ ...xHeaders, ...requestHeaders },
|
|
1355
1341
|
{ responseHeaders }
|
|
1356
1342
|
);
|
|
@@ -1366,13 +1352,13 @@ class Catalog {
|
|
|
1366
1352
|
/**
|
|
1367
1353
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1368
1354
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1369
|
-
* @returns {Promise<
|
|
1355
|
+
* @returns {Promise<ProductSizeSellersResponseV4>} - Success response
|
|
1370
1356
|
* @name getProductSellersBySlug
|
|
1371
|
-
* @summary:
|
|
1357
|
+
* @summary: Get the sellers of a product size at a PIN Code
|
|
1372
1358
|
* @description: List all sellers offering a specific product identified by its slug and size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductSellersBySlug/).
|
|
1373
1359
|
*/
|
|
1374
1360
|
async getProductSellersBySlug(
|
|
1375
|
-
{ slug, size, strategy, pageNo, pageSize, requestHeaders } = {
|
|
1361
|
+
{ slug, size, pincode, strategy, pageNo, pageSize, requestHeaders } = {
|
|
1376
1362
|
requestHeaders: {},
|
|
1377
1363
|
},
|
|
1378
1364
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -1399,6 +1385,7 @@ class Catalog {
|
|
|
1399
1385
|
}
|
|
1400
1386
|
|
|
1401
1387
|
const query_params = {};
|
|
1388
|
+
query_params["pincode"] = pincode;
|
|
1402
1389
|
query_params["strategy"] = strategy;
|
|
1403
1390
|
query_params["page_no"] = pageNo;
|
|
1404
1391
|
query_params["page_size"] = pageSize;
|
|
@@ -1434,14 +1421,22 @@ class Catalog {
|
|
|
1434
1421
|
* @param {string} arg.size - A string indicating the size of the product,
|
|
1435
1422
|
* e.g. S, M, XL. You can get slug value from the endpoint
|
|
1436
1423
|
* /service/application/catalog/v1.0/products/sizes.
|
|
1424
|
+
* @param {string} [arg.pincode] - The 6-digit PIN Code of the area near
|
|
1425
|
+
* which the selling locations should be searched, e.g. 400059
|
|
1437
1426
|
* @param {string} [arg.strategy] - Sort stores on the basis of strategy.
|
|
1438
1427
|
* eg, fast-delivery, low-price, optimal.
|
|
1439
1428
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
1440
|
-
* @returns {Paginator<
|
|
1441
|
-
* @summary:
|
|
1429
|
+
* @returns {Paginator<ProductSizeSellersResponseV4>}
|
|
1430
|
+
* @summary: Get the sellers of a product size at a PIN Code
|
|
1442
1431
|
* @description: List all sellers offering a specific product identified by its slug and size.
|
|
1443
1432
|
*/
|
|
1444
|
-
getProductSellersBySlugPaginator({
|
|
1433
|
+
getProductSellersBySlugPaginator({
|
|
1434
|
+
slug,
|
|
1435
|
+
size,
|
|
1436
|
+
pincode,
|
|
1437
|
+
strategy,
|
|
1438
|
+
pageSize,
|
|
1439
|
+
} = {}) {
|
|
1445
1440
|
const paginator = new Paginator();
|
|
1446
1441
|
const callback = async () => {
|
|
1447
1442
|
const pageId = paginator.nextId;
|
|
@@ -1450,6 +1445,7 @@ class Catalog {
|
|
|
1450
1445
|
const data = await this.getProductSellersBySlug({
|
|
1451
1446
|
slug: slug,
|
|
1452
1447
|
size: size,
|
|
1448
|
+
pincode: pincode,
|
|
1453
1449
|
strategy: strategy,
|
|
1454
1450
|
pageNo: pageNo,
|
|
1455
1451
|
pageSize: pageSize,
|
|
@@ -1469,7 +1465,7 @@ class Catalog {
|
|
|
1469
1465
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1470
1466
|
* @returns {Promise<ProductSizes>} - Success response
|
|
1471
1467
|
* @name getProductSizesBySlug
|
|
1472
|
-
* @summary:
|
|
1468
|
+
* @summary: Retrieves available sizes for a product by slug.
|
|
1473
1469
|
* @description: Provides detailed information about a product, including its availability (sellable), available sizes with quantities, dimensions, weight, availability status, price details (marked, effective, selling), minimum order quantity (MOQ). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductSizesBySlug/).
|
|
1474
1470
|
*/
|
|
1475
1471
|
async getProductSizesBySlug(
|
|
@@ -1520,9 +1516,9 @@ class Catalog {
|
|
|
1520
1516
|
/**
|
|
1521
1517
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1522
1518
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1523
|
-
* @returns {Promise<
|
|
1519
|
+
* @returns {Promise<ProductStockStatusResponse>} - Success response
|
|
1524
1520
|
* @name getProductStockByIds
|
|
1525
|
-
* @summary:
|
|
1521
|
+
* @summary: Checks product stock by IDs.
|
|
1526
1522
|
* @description: Get the current stock status for products identified by their IDs, such as SKU, ALU, EAN, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductStockByIds/).
|
|
1527
1523
|
*/
|
|
1528
1524
|
async getProductStockByIds(
|
|
@@ -1572,7 +1568,7 @@ class Catalog {
|
|
|
1572
1568
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1573
1569
|
* @returns {Promise<ProductStockPolling>} - Success response
|
|
1574
1570
|
* @name getProductStockForTimeByIds
|
|
1575
|
-
* @summary:
|
|
1571
|
+
* @summary: Fetches future stock data for products.
|
|
1576
1572
|
* @description: Get the available stock levels for all products associated with a particular sales channel at a specified future time. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductStockForTimeByIds/).
|
|
1577
1573
|
*/
|
|
1578
1574
|
async getProductStockForTimeByIds(
|
|
@@ -1627,7 +1623,7 @@ class Catalog {
|
|
|
1627
1623
|
* @param {string} arg.timestamp - Timestamp in UTC format (2020-07-23T10:27:50Z).
|
|
1628
1624
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
1629
1625
|
* @returns {Paginator<ProductStockPolling>}
|
|
1630
|
-
* @summary:
|
|
1626
|
+
* @summary: Fetches future stock data for products.
|
|
1631
1627
|
* @description: Get the available stock levels for all products associated with a particular sales channel at a specified future time.
|
|
1632
1628
|
*/
|
|
1633
1629
|
getProductStockForTimeByIdsPaginator({ timestamp, pageSize } = {}) {
|
|
@@ -1654,9 +1650,9 @@ class Catalog {
|
|
|
1654
1650
|
/**
|
|
1655
1651
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1656
1652
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1657
|
-
* @returns {Promise<
|
|
1653
|
+
* @returns {Promise<ProductVariantsResponse>} - Success response
|
|
1658
1654
|
* @name getProductVariantsBySlug
|
|
1659
|
-
* @summary:
|
|
1655
|
+
* @summary: Retrieves product variants by slug.
|
|
1660
1656
|
* @description: Get all available variants of a specific product identified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductVariantsBySlug/).
|
|
1661
1657
|
*/
|
|
1662
1658
|
async getProductVariantsBySlug(
|
|
@@ -1706,9 +1702,9 @@ class Catalog {
|
|
|
1706
1702
|
/**
|
|
1707
1703
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1708
1704
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1709
|
-
* @returns {Promise<
|
|
1705
|
+
* @returns {Promise<ProductListingResponse>} - Success response
|
|
1710
1706
|
* @name getProducts
|
|
1711
|
-
* @summary:
|
|
1707
|
+
* @summary: Lists all products.
|
|
1712
1708
|
* @description: List all products available in the catalog. It supports filtering based on product name, brand, department, category, collection, and more, while also offering sorting options based on factors like price, ratings, discounts, and other relevant criteria. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProducts/).
|
|
1713
1709
|
*/
|
|
1714
1710
|
async getProducts(
|
|
@@ -1780,8 +1776,8 @@ class Catalog {
|
|
|
1780
1776
|
* should be sorted, e.g. popularity, price, latest and discount, in
|
|
1781
1777
|
* either ascending or descending order. See the supported values below.
|
|
1782
1778
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
1783
|
-
* @returns {Paginator<
|
|
1784
|
-
* @summary:
|
|
1779
|
+
* @returns {Paginator<ProductListingResponse>}
|
|
1780
|
+
* @summary: Lists all products.
|
|
1785
1781
|
* @description: List all products available in the catalog. It supports filtering based on product name, brand, department, category, collection, and more, while also offering sorting options based on factors like price, ratings, discounts, and other relevant criteria.
|
|
1786
1782
|
*/
|
|
1787
1783
|
getProductsPaginator({ q, f, filters, sortOn, pageSize } = {}) {
|
|
@@ -1813,9 +1809,9 @@ class Catalog {
|
|
|
1813
1809
|
/**
|
|
1814
1810
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1815
1811
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1816
|
-
* @returns {Promise<
|
|
1812
|
+
* @returns {Promise<AutoCompleteResponse>} - Success response
|
|
1817
1813
|
* @name getSearchResults
|
|
1818
|
-
* @summary:
|
|
1814
|
+
* @summary: Retrieves search result listings.
|
|
1819
1815
|
* @description: Get products, brands, or categories based on a search query, which can be a partial or full name match. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getSearchResults/).
|
|
1820
1816
|
*/
|
|
1821
1817
|
async getSearchResults(
|
|
@@ -1866,9 +1862,9 @@ class Catalog {
|
|
|
1866
1862
|
/**
|
|
1867
1863
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1868
1864
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1869
|
-
* @returns {Promise<
|
|
1865
|
+
* @returns {Promise<ProductCompareResponse>} - Success response
|
|
1870
1866
|
* @name getSimilarComparisonProductBySlug
|
|
1871
|
-
* @summary:
|
|
1867
|
+
* @summary: Fetches similar products for comparison.
|
|
1872
1868
|
* @description: Get all products within the same category as the one specified by the provided slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getSimilarComparisonProductBySlug/).
|
|
1873
1869
|
*/
|
|
1874
1870
|
async getSimilarComparisonProductBySlug(
|
|
@@ -1918,9 +1914,9 @@ class Catalog {
|
|
|
1918
1914
|
/**
|
|
1919
1915
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1920
1916
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1921
|
-
* @returns {Promise<
|
|
1917
|
+
* @returns {Promise<StoreListingResponse>} - Success response
|
|
1922
1918
|
* @name getStores
|
|
1923
|
-
* @summary:
|
|
1919
|
+
* @summary: Get store meta information.
|
|
1924
1920
|
* @description: List all stores associated with the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getStores/).
|
|
1925
1921
|
*/
|
|
1926
1922
|
async getStores(
|
|
@@ -1932,7 +1928,6 @@ class Catalog {
|
|
|
1932
1928
|
range,
|
|
1933
1929
|
latitude,
|
|
1934
1930
|
longitude,
|
|
1935
|
-
tags,
|
|
1936
1931
|
requestHeaders,
|
|
1937
1932
|
} = { requestHeaders: {} },
|
|
1938
1933
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -1953,7 +1948,6 @@ class Catalog {
|
|
|
1953
1948
|
query_params["range"] = range;
|
|
1954
1949
|
query_params["latitude"] = latitude;
|
|
1955
1950
|
query_params["longitude"] = longitude;
|
|
1956
|
-
query_params["tags"] = tags;
|
|
1957
1951
|
|
|
1958
1952
|
const xHeaders = {};
|
|
1959
1953
|
|
|
@@ -1989,20 +1983,11 @@ class Catalog {
|
|
|
1989
1983
|
* wants to retrieve the nearest stores, e.g. 72.8691788.
|
|
1990
1984
|
* @param {number} [arg.longitude] - Longitude of the location from where
|
|
1991
1985
|
* one wants to retrieve the nearest stores, e.g. 19.1174114.
|
|
1992
|
-
* @
|
|
1993
|
-
* @
|
|
1994
|
-
* @summary: List available stores
|
|
1986
|
+
* @returns {Paginator<StoreListingResponse>}
|
|
1987
|
+
* @summary: Get store meta information.
|
|
1995
1988
|
* @description: List all stores associated with the sales channel.
|
|
1996
1989
|
*/
|
|
1997
|
-
getStoresPaginator({
|
|
1998
|
-
pageSize,
|
|
1999
|
-
q,
|
|
2000
|
-
city,
|
|
2001
|
-
range,
|
|
2002
|
-
latitude,
|
|
2003
|
-
longitude,
|
|
2004
|
-
tags,
|
|
2005
|
-
} = {}) {
|
|
1990
|
+
getStoresPaginator({ pageSize, q, city, range, latitude, longitude } = {}) {
|
|
2006
1991
|
const paginator = new Paginator();
|
|
2007
1992
|
const callback = async () => {
|
|
2008
1993
|
const pageId = paginator.nextId;
|
|
@@ -2016,7 +2001,6 @@ class Catalog {
|
|
|
2016
2001
|
range: range,
|
|
2017
2002
|
latitude: latitude,
|
|
2018
2003
|
longitude: longitude,
|
|
2019
|
-
tags: tags,
|
|
2020
2004
|
});
|
|
2021
2005
|
paginator.setPaginator({
|
|
2022
2006
|
hasNext: data.page.has_next ? true : false,
|
|
@@ -2031,9 +2015,9 @@ class Catalog {
|
|
|
2031
2015
|
/**
|
|
2032
2016
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2033
2017
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2034
|
-
* @returns {Promise<
|
|
2018
|
+
* @returns {Promise<FollowPostResponse>} - Success response
|
|
2035
2019
|
* @name unfollowById
|
|
2036
|
-
* @summary:
|
|
2020
|
+
* @summary: Unfollows an item by ID.
|
|
2037
2021
|
* @description: Remove a followed item, brand, or product using its collection ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/unfollowById/).
|
|
2038
2022
|
*/
|
|
2039
2023
|
async unfollowById(
|